web work
This commit is contained in:
parent
648ef9a38e
commit
5fe6a5766a
|
@ -25,7 +25,11 @@
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@fortawesome/fontawesome-free": "^6.4.2",
|
||||||
|
"@popperjs/core": "^2.11.8",
|
||||||
"@types/qrcode": "^1.5.0",
|
"@types/qrcode": "^1.5.0",
|
||||||
|
"bootstrap": "^5.3.2",
|
||||||
|
"bootswatch": "^5.3.2",
|
||||||
"qrcode": "^1.5.3",
|
"qrcode": "^1.5.3",
|
||||||
"svelte-i18n": "^3.6.0"
|
"svelte-i18n": "^3.6.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en" style="height: 100%;">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width" />
|
||||||
%sveltekit.head%
|
%sveltekit.head%
|
||||||
</head>
|
</head>
|
||||||
<body data-sveltekit-preload-data="hover">
|
<body data-sveltekit-preload-data="hover" style="height: 100%;">
|
||||||
<div style="display: contents">%sveltekit.body%</div>
|
%sveltekit.body%
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
import { locale } from 'svelte-i18n';
|
||||||
|
export const handle = async ({ event, resolve }) => {
|
||||||
|
const lang = event.request.headers.get('accept-language')?.split(',')[0];
|
||||||
|
if (lang) {
|
||||||
|
locale.set(lang);
|
||||||
|
}
|
||||||
|
return resolve(event);
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=hooks.server.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"hooks.server.js","sourceRoot":"","sources":["hooks.server.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,MAAM,CAAC,MAAM,MAAM,GAAW,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IACvD,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;IACxE,IAAI,IAAI,EAAE;QACN,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;KACnB;IACD,OAAO,OAAO,CAAC,KAAK,CAAC,CAAA;AACzB,CAAC,CAAA"}
|
|
@ -0,0 +1,11 @@
|
||||||
|
import { writable } from "svelte/store";
|
||||||
|
import { browser } from "$app/environment";
|
||||||
|
export function persist(name, def_val = "") {
|
||||||
|
const store = writable(browser && localStorage.getItem(name) || def_val);
|
||||||
|
store.subscribe((value) => {
|
||||||
|
if (browser)
|
||||||
|
return (localStorage.setItem(name, value));
|
||||||
|
});
|
||||||
|
return store;
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=PersistentStore.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"PersistentStore.js","sourceRoot":"","sources":["PersistentStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,cAAc,CAAC;AACtC,OAAO,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAEzC,MAAM,UAAU,OAAO,CAAC,IAAY,EAAE,OAAO,GAAG,EAAE;IAC9C,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC;IACzE,KAAK,CAAC,SAAS,CAAC,CAAC,KAAU,EAAE,EAAE;QAC3B,IAAI,OAAO;YAAE,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IAC5D,CAAC,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACjB,CAAC"}
|
|
@ -0,0 +1,78 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import * as runtime from '../runtime';
|
||||||
|
import { AuditLogsList200ResponseFromJSON, AuditLogsList200ResponseToJSON, } from '../models';
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class AuditLogsApi extends runtime.BaseAPI {
|
||||||
|
/**
|
||||||
|
* Get a paginated list of audit logs. Token scope required: `audit-logs:list` ### Request
|
||||||
|
* List audit logs
|
||||||
|
*/
|
||||||
|
async auditLogsListRaw(requestParameters, initOverrides) {
|
||||||
|
const queryParameters = {};
|
||||||
|
if (requestParameters.includeCounts !== undefined) {
|
||||||
|
queryParameters['includeCounts'] = requestParameters.includeCounts;
|
||||||
|
}
|
||||||
|
if (requestParameters.cursor !== undefined) {
|
||||||
|
queryParameters['cursor'] = requestParameters.cursor;
|
||||||
|
}
|
||||||
|
if (requestParameters.pageSize !== undefined) {
|
||||||
|
queryParameters['pageSize'] = requestParameters.pageSize;
|
||||||
|
}
|
||||||
|
if (requestParameters.filterTargetID !== undefined) {
|
||||||
|
queryParameters['filter.targetID'] = requestParameters.filterTargetID;
|
||||||
|
}
|
||||||
|
if (requestParameters.filterTargetType !== undefined) {
|
||||||
|
queryParameters['filter.targetType'] = requestParameters.filterTargetType;
|
||||||
|
}
|
||||||
|
const headerParameters = {};
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = await token("ApiToken", []);
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/v1/audit-logs`,
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
}, initOverrides);
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => AuditLogsList200ResponseFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Get a paginated list of audit logs. Token scope required: `audit-logs:list` ### Request
|
||||||
|
* List audit logs
|
||||||
|
*/
|
||||||
|
async auditLogsList(requestParameters = {}, initOverrides) {
|
||||||
|
const response = await this.auditLogsListRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const AuditLogsListFilterTargetTypeEnum = {
|
||||||
|
ApiKey: 'apiKey',
|
||||||
|
Host: 'host',
|
||||||
|
Network: 'network',
|
||||||
|
Role: 'role',
|
||||||
|
User: 'user',
|
||||||
|
Ca: 'ca',
|
||||||
|
OidcProvider: 'oidcProvider'
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=AuditLogsApi.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"AuditLogsApi.js","sourceRoot":"","sources":["AuditLogsApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,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AAW,EAAE,CAAC;aAC/D;SACJ;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,gBAAgB;YACtB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,gCAAgC,CAAC,SAAS,CAAC,CAAC,CAAC;IAC7G,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,oBAA0C,EAAE,EAAE,aAA0D;QACxH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC/E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC7C,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,IAAI;IACR,YAAY,EAAE,cAAc;CACtB,CAAC"}
|
|
@ -0,0 +1,51 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import * as runtime from '../runtime';
|
||||||
|
import { DownloadsList200ResponseFromJSON, DownloadsList200ResponseToJSON, } from '../models';
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class DownloadsApi extends runtime.BaseAPI {
|
||||||
|
/**
|
||||||
|
* Get a list of recently released software download links and basic info. This endpoint is unauthenticated. ### Request
|
||||||
|
* List software downloads
|
||||||
|
*/
|
||||||
|
async downloadsListRaw(initOverrides) {
|
||||||
|
const queryParameters = {};
|
||||||
|
const headerParameters = {};
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = await token("ApiToken", []);
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/v1/downloads`,
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
}, initOverrides);
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => DownloadsList200ResponseFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Get a list of recently released software download links and basic info. This endpoint is unauthenticated. ### Request
|
||||||
|
* List software downloads
|
||||||
|
*/
|
||||||
|
async downloadsList(initOverrides) {
|
||||||
|
const response = await this.downloadsListRaw(initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=DownloadsApi.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"DownloadsApi.js","sourceRoot":"","sources":["DownloadsApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;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defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import * as runtime from '../runtime';
|
||||||
|
import { HostAndEnrollCodeCreate200ResponseFromJSON, HostAndEnrollCodeCreate200ResponseToJSON, HostAndEnrollCodeCreate400ResponseFromJSON, HostAndEnrollCodeCreate400ResponseToJSON, HostBlock200ResponseFromJSON, HostBlock200ResponseToJSON, HostCreate200ResponseFromJSON, HostCreate200ResponseToJSON, HostCreate400ResponseFromJSON, HostCreate400ResponseToJSON, HostCreateRequestFromJSON, HostCreateRequestToJSON, HostDelete200ResponseFromJSON, HostDelete200ResponseToJSON, HostEdit200ResponseFromJSON, HostEdit200ResponseToJSON, HostEditRequestFromJSON, HostEditRequestToJSON, HostEnrollCodeCreate200ResponseFromJSON, HostEnrollCodeCreate200ResponseToJSON, HostGet200ResponseFromJSON, HostGet200ResponseToJSON, HostsList200ResponseFromJSON, HostsList200ResponseToJSON, } from '../models';
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class HostsApi extends runtime.BaseAPI {
|
||||||
|
/**
|
||||||
|
* Token scopes required: `hosts:create`, `hosts:enroll` ### Request
|
||||||
|
* Create host & enrollment code
|
||||||
|
*/
|
||||||
|
async hostAndEnrollCodeCreateRaw(requestParameters, initOverrides) {
|
||||||
|
if (requestParameters.hostCreateRequest === null || requestParameters.hostCreateRequest === undefined) {
|
||||||
|
throw new runtime.RequiredError('hostCreateRequest', 'Required parameter requestParameters.hostCreateRequest was null or undefined when calling hostAndEnrollCodeCreate.');
|
||||||
|
}
|
||||||
|
const queryParameters = {};
|
||||||
|
const headerParameters = {};
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = await token("ApiToken", []);
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/v1/host-and-enrollment-code`,
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: HostCreateRequestToJSON(requestParameters.hostCreateRequest),
|
||||||
|
}, initOverrides);
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => HostAndEnrollCodeCreate200ResponseFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Token scopes required: `hosts:create`, `hosts:enroll` ### Request
|
||||||
|
* Create host & enrollment code
|
||||||
|
*/
|
||||||
|
async hostAndEnrollCodeCreate(requestParameters, initOverrides) {
|
||||||
|
const response = await this.hostAndEnrollCodeCreateRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Prevent a host from being able to interact with other nodes on your network. See https://www.defined.net/blog/blocklisting/ for more details. To unblock, re-enroll the host. Token scope required: `hosts:block` ### Request
|
||||||
|
* Block host
|
||||||
|
*/
|
||||||
|
async hostBlockRaw(requestParameters, initOverrides) {
|
||||||
|
if (requestParameters.hostID === null || requestParameters.hostID === undefined) {
|
||||||
|
throw new runtime.RequiredError('hostID', 'Required parameter requestParameters.hostID was null or undefined when calling hostBlock.');
|
||||||
|
}
|
||||||
|
const queryParameters = {};
|
||||||
|
const headerParameters = {};
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = await token("ApiToken", []);
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/v1/hosts/{hostID}/block`.replace(`{${"hostID"}}`, encodeURIComponent(String(requestParameters.hostID))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
}, initOverrides);
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => HostBlock200ResponseFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Prevent a host from being able to interact with other nodes on your network. See https://www.defined.net/blog/blocklisting/ for more details. To unblock, re-enroll the host. Token scope required: `hosts:block` ### Request
|
||||||
|
* Block host
|
||||||
|
*/
|
||||||
|
async hostBlock(requestParameters, initOverrides) {
|
||||||
|
const response = await this.hostBlockRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Create a new host, lighthouse, or relay. Token scope required: `hosts:create` ### Request
|
||||||
|
* Create host
|
||||||
|
*/
|
||||||
|
async hostCreateRaw(requestParameters, initOverrides) {
|
||||||
|
if (requestParameters.hostCreateRequest === null || requestParameters.hostCreateRequest === undefined) {
|
||||||
|
throw new runtime.RequiredError('hostCreateRequest', 'Required parameter requestParameters.hostCreateRequest was null or undefined when calling hostCreate.');
|
||||||
|
}
|
||||||
|
const queryParameters = {};
|
||||||
|
const headerParameters = {};
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = await token("ApiToken", []);
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/v1/hosts`,
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: HostCreateRequestToJSON(requestParameters.hostCreateRequest),
|
||||||
|
}, initOverrides);
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => HostCreate200ResponseFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Create a new host, lighthouse, or relay. Token scope required: `hosts:create` ### Request
|
||||||
|
* Create host
|
||||||
|
*/
|
||||||
|
async hostCreate(requestParameters, initOverrides) {
|
||||||
|
const response = await this.hostCreateRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Token scope required: `hosts:delete` ### Request
|
||||||
|
* Delete host
|
||||||
|
*/
|
||||||
|
async hostDeleteRaw(requestParameters, initOverrides) {
|
||||||
|
if (requestParameters.hostID === null || requestParameters.hostID === undefined) {
|
||||||
|
throw new runtime.RequiredError('hostID', 'Required parameter requestParameters.hostID was null or undefined when calling hostDelete.');
|
||||||
|
}
|
||||||
|
const queryParameters = {};
|
||||||
|
const headerParameters = {};
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = await token("ApiToken", []);
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/v1/hosts/{hostID}`.replace(`{${"hostID"}}`, encodeURIComponent(String(requestParameters.hostID))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
}, initOverrides);
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => HostDelete200ResponseFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Token scope required: `hosts:delete` ### Request
|
||||||
|
* Delete host
|
||||||
|
*/
|
||||||
|
async hostDelete(requestParameters, initOverrides) {
|
||||||
|
const response = await this.hostDeleteRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Token scope required: `hosts:update` :::caution Any properties not provided in the request will be reset to their default values. ::: ### Request
|
||||||
|
* Edit host
|
||||||
|
*/
|
||||||
|
async hostEditRaw(requestParameters, initOverrides) {
|
||||||
|
if (requestParameters.hostID === null || requestParameters.hostID === undefined) {
|
||||||
|
throw new runtime.RequiredError('hostID', 'Required parameter requestParameters.hostID was null or undefined when calling hostEdit.');
|
||||||
|
}
|
||||||
|
if (requestParameters.hostEditRequest === null || requestParameters.hostEditRequest === undefined) {
|
||||||
|
throw new runtime.RequiredError('hostEditRequest', 'Required parameter requestParameters.hostEditRequest was null or undefined when calling hostEdit.');
|
||||||
|
}
|
||||||
|
const queryParameters = {};
|
||||||
|
const headerParameters = {};
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = await token("ApiToken", []);
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/v1/hosts/{hostID}`.replace(`{${"hostID"}}`, encodeURIComponent(String(requestParameters.hostID))),
|
||||||
|
method: 'PUT',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: HostEditRequestToJSON(requestParameters.hostEditRequest),
|
||||||
|
}, initOverrides);
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => HostEdit200ResponseFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Token scope required: `hosts:update` :::caution Any properties not provided in the request will be reset to their default values. ::: ### Request
|
||||||
|
* Edit host
|
||||||
|
*/
|
||||||
|
async hostEdit(requestParameters, initOverrides) {
|
||||||
|
const response = await this.hostEditRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Obtain a code that can be used with the `dnclient enroll` command on a host, lighthouse, or relay to enroll it into your Managed Nebula network. Token scope required: `hosts:enroll` ### Request
|
||||||
|
* Create enrollment code
|
||||||
|
*/
|
||||||
|
async hostEnrollCodeCreateRaw(requestParameters, initOverrides) {
|
||||||
|
if (requestParameters.hostID === null || requestParameters.hostID === undefined) {
|
||||||
|
throw new runtime.RequiredError('hostID', 'Required parameter requestParameters.hostID was null or undefined when calling hostEnrollCodeCreate.');
|
||||||
|
}
|
||||||
|
const queryParameters = {};
|
||||||
|
const headerParameters = {};
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = await token("ApiToken", []);
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/v1/hosts/{hostID}/enrollment-code`.replace(`{${"hostID"}}`, encodeURIComponent(String(requestParameters.hostID))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
}, initOverrides);
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => HostEnrollCodeCreate200ResponseFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Obtain a code that can be used with the `dnclient enroll` command on a host, lighthouse, or relay to enroll it into your Managed Nebula network. Token scope required: `hosts:enroll` ### Request
|
||||||
|
* Create enrollment code
|
||||||
|
*/
|
||||||
|
async hostEnrollCodeCreate(requestParameters, initOverrides) {
|
||||||
|
const response = await this.hostEnrollCodeCreateRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Fetch information about a particular host, lighthouse, or relay. Token scope required: `hosts:read` ### Request
|
||||||
|
* Get host
|
||||||
|
*/
|
||||||
|
async hostGetRaw(requestParameters, initOverrides) {
|
||||||
|
if (requestParameters.hostID === null || requestParameters.hostID === undefined) {
|
||||||
|
throw new runtime.RequiredError('hostID', 'Required parameter requestParameters.hostID was null or undefined when calling hostGet.');
|
||||||
|
}
|
||||||
|
const queryParameters = {};
|
||||||
|
const headerParameters = {};
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = await token("ApiToken", []);
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/v1/hosts/{hostID}`.replace(`{${"hostID"}}`, encodeURIComponent(String(requestParameters.hostID))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
}, initOverrides);
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => HostGet200ResponseFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Fetch information about a particular host, lighthouse, or relay. Token scope required: `hosts:read` ### Request
|
||||||
|
* Get host
|
||||||
|
*/
|
||||||
|
async hostGet(requestParameters, initOverrides) {
|
||||||
|
const response = await this.hostGetRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Get a paginated list of hosts, lighthouses, and relays. Token scope required: `hosts:list` ### Request
|
||||||
|
* List hosts
|
||||||
|
*/
|
||||||
|
async hostsListRaw(requestParameters, initOverrides) {
|
||||||
|
const queryParameters = {};
|
||||||
|
if (requestParameters.includeCounts !== undefined) {
|
||||||
|
queryParameters['includeCounts'] = requestParameters.includeCounts;
|
||||||
|
}
|
||||||
|
if (requestParameters.cursor !== undefined) {
|
||||||
|
queryParameters['cursor'] = requestParameters.cursor;
|
||||||
|
}
|
||||||
|
if (requestParameters.pageSize !== undefined) {
|
||||||
|
queryParameters['pageSize'] = requestParameters.pageSize;
|
||||||
|
}
|
||||||
|
if (requestParameters.filterIsBlocked !== undefined) {
|
||||||
|
queryParameters['filter.isBlocked'] = requestParameters.filterIsBlocked;
|
||||||
|
}
|
||||||
|
if (requestParameters.filterIsLighthouse !== undefined) {
|
||||||
|
queryParameters['filter.isLighthouse'] = requestParameters.filterIsLighthouse;
|
||||||
|
}
|
||||||
|
if (requestParameters.filterIsRelay !== undefined) {
|
||||||
|
queryParameters['filter.isRelay'] = requestParameters.filterIsRelay;
|
||||||
|
}
|
||||||
|
if (requestParameters.filterMetadataLastSeenAt !== undefined) {
|
||||||
|
queryParameters['filter.metadata.lastSeenAt'] = requestParameters.filterMetadataLastSeenAt;
|
||||||
|
}
|
||||||
|
if (requestParameters.filterMetadataPlatform !== undefined) {
|
||||||
|
queryParameters['filter.metadata.platform'] = requestParameters.filterMetadataPlatform;
|
||||||
|
}
|
||||||
|
if (requestParameters.filterMetadataUpdateAvailable !== undefined) {
|
||||||
|
queryParameters['filter.metadata.updateAvailable'] = requestParameters.filterMetadataUpdateAvailable;
|
||||||
|
}
|
||||||
|
const headerParameters = {};
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = await token("ApiToken", []);
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/v1/hosts`,
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
}, initOverrides);
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => HostsList200ResponseFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Get a paginated list of hosts, lighthouses, and relays. Token scope required: `hosts:list` ### Request
|
||||||
|
* List hosts
|
||||||
|
*/
|
||||||
|
async hostsList(requestParameters = {}, initOverrides) {
|
||||||
|
const response = await this.hostsListRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const HostsListFilterMetadataLastSeenAtEnum = {
|
||||||
|
Null: 'null'
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const HostsListFilterMetadataPlatformEnum = {
|
||||||
|
Mobile: 'mobile',
|
||||||
|
Dnclient: 'dnclient',
|
||||||
|
Null: 'null'
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=HostsApi.js.map
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,93 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import * as runtime from '../runtime';
|
||||||
|
import { NetworkGet200ResponseFromJSON, NetworkGet200ResponseToJSON, NetworksList200ResponseFromJSON, NetworksList200ResponseToJSON, } from '../models';
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class NetworksApi extends runtime.BaseAPI {
|
||||||
|
/**
|
||||||
|
* Fetch information about a particular network. Token scope required: `networks:read` ### Request
|
||||||
|
* Get network
|
||||||
|
*/
|
||||||
|
async networkGetRaw(requestParameters, initOverrides) {
|
||||||
|
if (requestParameters.networkID === null || requestParameters.networkID === undefined) {
|
||||||
|
throw new runtime.RequiredError('networkID', 'Required parameter requestParameters.networkID was null or undefined when calling networkGet.');
|
||||||
|
}
|
||||||
|
const queryParameters = {};
|
||||||
|
const headerParameters = {};
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = await token("ApiToken", []);
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/v1/networks/{networkID}`.replace(`{${"networkID"}}`, encodeURIComponent(String(requestParameters.networkID))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
}, initOverrides);
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => NetworkGet200ResponseFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Fetch information about a particular network. Token scope required: `networks:read` ### Request
|
||||||
|
* Get network
|
||||||
|
*/
|
||||||
|
async networkGet(requestParameters, initOverrides) {
|
||||||
|
const response = await this.networkGetRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Get a paginated list of networks. :::note Currently, there is a limit of one network per Defined Networking account. ::: Token scope required: `networks:list` ### Request
|
||||||
|
* List networks
|
||||||
|
*/
|
||||||
|
async networksListRaw(requestParameters, initOverrides) {
|
||||||
|
const queryParameters = {};
|
||||||
|
if (requestParameters.includeCounts !== undefined) {
|
||||||
|
queryParameters['includeCounts'] = requestParameters.includeCounts;
|
||||||
|
}
|
||||||
|
if (requestParameters.cursor !== undefined) {
|
||||||
|
queryParameters['cursor'] = requestParameters.cursor;
|
||||||
|
}
|
||||||
|
if (requestParameters.pageSize !== undefined) {
|
||||||
|
queryParameters['pageSize'] = requestParameters.pageSize;
|
||||||
|
}
|
||||||
|
const headerParameters = {};
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = await token("ApiToken", []);
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/v1/networks`,
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
}, initOverrides);
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => NetworksList200ResponseFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Get a paginated list of networks. :::note Currently, there is a limit of one network per Defined Networking account. ::: Token scope required: `networks:list` ### Request
|
||||||
|
* List networks
|
||||||
|
*/
|
||||||
|
async networksList(requestParameters = {}, initOverrides) {
|
||||||
|
const response = await this.networksListRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=NetworksApi.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"NetworksApi.js","sourceRoot":"","sources":["NetworksApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAKtC,OAAO,EACH,6BAA6B,EAC7B,2BAA2B,EAC3B,+BAA+B,EAC/B,6BAA6B,GAChC,MAAM,WAAW,CAAC;AAYnB;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,OAAO,CAAC,OAAO;IAE5C;;;OAGG;IACH,KAAK,CAAC,aAAa,CAA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C,eAAe,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC9E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ"}
|
|
@ -0,0 +1,199 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import * as runtime from '../runtime';
|
||||||
|
import { HostAndEnrollCodeCreate400ResponseFromJSON, HostAndEnrollCodeCreate400ResponseToJSON, HostDelete200ResponseFromJSON, HostDelete200ResponseToJSON, RoleCreate200ResponseFromJSON, RoleCreate200ResponseToJSON, RoleCreateRequestFromJSON, RoleCreateRequestToJSON, RoleEditRequestFromJSON, RoleEditRequestToJSON, RolesList200ResponseFromJSON, RolesList200ResponseToJSON, } from '../models';
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class RolesApi extends runtime.BaseAPI {
|
||||||
|
/**
|
||||||
|
* Create a new role. Token scope required: `roles:create` ### Request
|
||||||
|
* Create role
|
||||||
|
*/
|
||||||
|
async roleCreateRaw(requestParameters, initOverrides) {
|
||||||
|
if (requestParameters.roleCreateRequest === null || requestParameters.roleCreateRequest === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleCreateRequest', 'Required parameter requestParameters.roleCreateRequest was null or undefined when calling roleCreate.');
|
||||||
|
}
|
||||||
|
const queryParameters = {};
|
||||||
|
const headerParameters = {};
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = await token("ApiToken", []);
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/v1/roles`,
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: RoleCreateRequestToJSON(requestParameters.roleCreateRequest),
|
||||||
|
}, initOverrides);
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => RoleCreate200ResponseFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Create a new role. Token scope required: `roles:create` ### Request
|
||||||
|
* Create role
|
||||||
|
*/
|
||||||
|
async roleCreate(requestParameters, initOverrides) {
|
||||||
|
const response = await this.roleCreateRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Token scope required: `roles:delete` ### Request
|
||||||
|
* Delete role
|
||||||
|
*/
|
||||||
|
async roleDeleteRaw(requestParameters, initOverrides) {
|
||||||
|
if (requestParameters.roleID === null || requestParameters.roleID === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleID', 'Required parameter requestParameters.roleID was null or undefined when calling roleDelete.');
|
||||||
|
}
|
||||||
|
const queryParameters = {};
|
||||||
|
const headerParameters = {};
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = await token("ApiToken", []);
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/v1/roles/{roleID}`.replace(`{${"roleID"}}`, encodeURIComponent(String(requestParameters.roleID))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
}, initOverrides);
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => HostDelete200ResponseFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Token scope required: `roles:delete` ### Request
|
||||||
|
* Delete role
|
||||||
|
*/
|
||||||
|
async roleDelete(requestParameters, initOverrides) {
|
||||||
|
const response = await this.roleDeleteRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Token scope required: `roles:update` :::caution Any properties not provided in the request will be reset to their default values. If only changing one firewall rule, be sure to include the others as well, otherwise they will be removed. ::: ### Request
|
||||||
|
* Edit role
|
||||||
|
*/
|
||||||
|
async roleEditRaw(requestParameters, initOverrides) {
|
||||||
|
if (requestParameters.roleID === null || requestParameters.roleID === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleID', 'Required parameter requestParameters.roleID was null or undefined when calling roleEdit.');
|
||||||
|
}
|
||||||
|
if (requestParameters.roleEditRequest === null || requestParameters.roleEditRequest === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleEditRequest', 'Required parameter requestParameters.roleEditRequest was null or undefined when calling roleEdit.');
|
||||||
|
}
|
||||||
|
const queryParameters = {};
|
||||||
|
const headerParameters = {};
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = await token("ApiToken", []);
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/v1/roles/{roleID}`.replace(`{${"roleID"}}`, encodeURIComponent(String(requestParameters.roleID))),
|
||||||
|
method: 'PUT',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: RoleEditRequestToJSON(requestParameters.roleEditRequest),
|
||||||
|
}, initOverrides);
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => RoleCreate200ResponseFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Token scope required: `roles:update` :::caution Any properties not provided in the request will be reset to their default values. If only changing one firewall rule, be sure to include the others as well, otherwise they will be removed. ::: ### Request
|
||||||
|
* Edit role
|
||||||
|
*/
|
||||||
|
async roleEdit(requestParameters, initOverrides) {
|
||||||
|
const response = await this.roleEditRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Fetch information about a particular role. Token scope required: `roles:read` ### Request
|
||||||
|
* Get role
|
||||||
|
*/
|
||||||
|
async roleGetRaw(requestParameters, initOverrides) {
|
||||||
|
if (requestParameters.roleID === null || requestParameters.roleID === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleID', 'Required parameter requestParameters.roleID was null or undefined when calling roleGet.');
|
||||||
|
}
|
||||||
|
const queryParameters = {};
|
||||||
|
const headerParameters = {};
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = await token("ApiToken", []);
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/v1/roles/{roleID}`.replace(`{${"roleID"}}`, encodeURIComponent(String(requestParameters.roleID))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
}, initOverrides);
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => RoleCreate200ResponseFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Fetch information about a particular role. Token scope required: `roles:read` ### Request
|
||||||
|
* Get role
|
||||||
|
*/
|
||||||
|
async roleGet(requestParameters, initOverrides) {
|
||||||
|
const response = await this.roleGetRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Get a paginated list of roles. Token scope required: `roles:list` ### Request
|
||||||
|
* List roles
|
||||||
|
*/
|
||||||
|
async rolesListRaw(requestParameters, initOverrides) {
|
||||||
|
const queryParameters = {};
|
||||||
|
if (requestParameters.includeCounts !== undefined) {
|
||||||
|
queryParameters['includeCounts'] = requestParameters.includeCounts;
|
||||||
|
}
|
||||||
|
if (requestParameters.cursor !== undefined) {
|
||||||
|
queryParameters['cursor'] = requestParameters.cursor;
|
||||||
|
}
|
||||||
|
if (requestParameters.pageSize !== undefined) {
|
||||||
|
queryParameters['pageSize'] = requestParameters.pageSize;
|
||||||
|
}
|
||||||
|
const headerParameters = {};
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = await token("ApiToken", []);
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/v1/roles`,
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
}, initOverrides);
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => RolesList200ResponseFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Get a paginated list of roles. Token scope required: `roles:list` ### Request
|
||||||
|
* List roles
|
||||||
|
*/
|
||||||
|
async rolesList(requestParameters = {}, initOverrides) {
|
||||||
|
const response = await this.rolesListRaw(requestParameters, initOverrides);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=RolesApi.js.map
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,8 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
export * from './AuditLogsApi';
|
||||||
|
export * from './DownloadsApi';
|
||||||
|
export * from './HostsApi';
|
||||||
|
export * from './NetworksApi';
|
||||||
|
export * from './RolesApi';
|
||||||
|
//# sourceMappingURL=index.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
|
|
@ -0,0 +1,6 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
export * from './runtime';
|
||||||
|
export * from './apis';
|
||||||
|
export * from './models';
|
||||||
|
//# sourceMappingURL=index.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
|
|
@ -0,0 +1,56 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { instanceOfActorAPIKey, ActorAPIKeyFromJSON, ActorAPIKeyFromJSONTyped, ActorAPIKeyToJSON, } from './ActorAPIKey';
|
||||||
|
import { instanceOfActorHost, ActorHostFromJSON, ActorHostFromJSONTyped, ActorHostToJSON, } from './ActorHost';
|
||||||
|
import { instanceOfActorOIDCUser, ActorOIDCUserFromJSON, ActorOIDCUserFromJSONTyped, ActorOIDCUserToJSON, } from './ActorOIDCUser';
|
||||||
|
import { instanceOfActorSupport, ActorSupportFromJSON, ActorSupportFromJSONTyped, ActorSupportToJSON, } from './ActorSupport';
|
||||||
|
import { instanceOfActorSystem, ActorSystemFromJSON, ActorSystemFromJSONTyped, ActorSystemToJSON, } from './ActorSystem';
|
||||||
|
import { instanceOfActorUser, ActorUserFromJSON, ActorUserFromJSONTyped, ActorUserToJSON, } from './ActorUser';
|
||||||
|
export function ActorFromJSON(json) {
|
||||||
|
return ActorFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function ActorFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return { ...ActorAPIKeyFromJSONTyped(json, true), ...ActorHostFromJSONTyped(json, true), ...ActorOIDCUserFromJSONTyped(json, true), ...ActorSupportFromJSONTyped(json, true), ...ActorSystemFromJSONTyped(json, true), ...ActorUserFromJSONTyped(json, true) };
|
||||||
|
}
|
||||||
|
export function ActorToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
if (instanceOfActorAPIKey(value)) {
|
||||||
|
return ActorAPIKeyToJSON(value);
|
||||||
|
}
|
||||||
|
if (instanceOfActorHost(value)) {
|
||||||
|
return ActorHostToJSON(value);
|
||||||
|
}
|
||||||
|
if (instanceOfActorOIDCUser(value)) {
|
||||||
|
return ActorOIDCUserToJSON(value);
|
||||||
|
}
|
||||||
|
if (instanceOfActorSupport(value)) {
|
||||||
|
return ActorSupportToJSON(value);
|
||||||
|
}
|
||||||
|
if (instanceOfActorSystem(value)) {
|
||||||
|
return ActorSystemToJSON(value);
|
||||||
|
}
|
||||||
|
if (instanceOfActorUser(value)) {
|
||||||
|
return ActorUserToJSON(value);
|
||||||
|
}
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=Actor.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"Actor.js","sourceRoot":"","sources":["Actor.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,OAAO,EACH,qBAAqB,EACrB,mBAAmB,EACnB,wBAAwB,EACxB,iBAAiB,GACpB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACH,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,GAClB,MAAM,aAAa,CAAC;AAErB,OAAO,EACH,uBAAuB,EACvB,qBAAqB,EACrB,0BAA0B,EAC1B,mBAAmB,GACtB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACH,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,GACrB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACH,qBAAqB,EACrB,mBAAmB,EACnB,wBAAwB,EACxB,iBAAiB,GACpB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACH,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,GAClB,MAAM,aAAa,CAAC;AASrB,MAAM,UAAU,aAAa,CAAC,IAAS;IACnC,OAAO,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,MAA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C9C;IAED,OAAO,EAAE,CAAC;AACd,CAAC"}
|
|
@ -0,0 +1,54 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const ActorAPIKeyTypeEnum = {
|
||||||
|
ApiKey: 'apiKey'
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the ActorAPIKey interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfActorAPIKey(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function ActorAPIKeyFromJSON(json) {
|
||||||
|
return ActorAPIKeyFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function ActorAPIKeyFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'type': !exists(json, 'type') ? undefined : json['type'],
|
||||||
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||||
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function ActorAPIKeyToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'type': value.type,
|
||||||
|
'id': value.id,
|
||||||
|
'name': value.name,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=ActorAPIKey.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"ActorAPIKey.js","sourceRoot":"","sources":["ActorAPIKey.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA4B/C;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,MAAM,EAAE,QAAQ;CACV,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAAa;IAC/C,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,IAAS,EAAE,mBAA4B;IAC5E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,IAAI,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAClD,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;KAC3D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,KAA0B;IACxD,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,MAAM,EAAE,KAAK,CAAC,IAAI;KACrB,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,54 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const ActorHostTypeEnum = {
|
||||||
|
Host: 'host'
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the ActorHost interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfActorHost(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function ActorHostFromJSON(json) {
|
||||||
|
return ActorHostFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function ActorHostFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'type': !exists(json, 'type') ? undefined : json['type'],
|
||||||
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||||
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function ActorHostToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'type': value.type,
|
||||||
|
'id': value.id,
|
||||||
|
'name': value.name,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=ActorHost.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"ActorHost.js","sourceRoot":"","sources":["ActorHost.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA4B/C;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,IAAI,EAAE,MAAM;CACN,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC7C,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,IAAI,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAClD,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;KAC3D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAwB;IACpD,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,MAAM,EAAE,KAAK,CAAC,IAAI;KACrB,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,56 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const ActorOIDCUserTypeEnum = {
|
||||||
|
OidcUser: 'oidcUser'
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the ActorOIDCUser interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfActorOIDCUser(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function ActorOIDCUserFromJSON(json) {
|
||||||
|
return ActorOIDCUserFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function ActorOIDCUserFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'type': !exists(json, 'type') ? undefined : json['type'],
|
||||||
|
'email': !exists(json, 'email') ? undefined : json['email'],
|
||||||
|
'issuer': !exists(json, 'issuer') ? undefined : json['issuer'],
|
||||||
|
'subject': !exists(json, 'subject') ? undefined : json['subject'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function ActorOIDCUserToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'type': value.type,
|
||||||
|
'email': value.email,
|
||||||
|
'issuer': value.issuer,
|
||||||
|
'subject': value.subject,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=ActorOIDCUser.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"ActorOIDCUser.js","sourceRoot":"","sources":["ActorOIDCUser.ts"],"names":[],"mappings":"AA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S,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,SAAS,EAAE,KAAK,CAAC,OAAO;KAC3B,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,50 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const ActorSupportTypeEnum = {
|
||||||
|
Support: 'support'
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the ActorSupport interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfActorSupport(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function ActorSupportFromJSON(json) {
|
||||||
|
return ActorSupportFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function ActorSupportFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'type': !exists(json, 'type') ? undefined : json['type'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function ActorSupportToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'type': value.type,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=ActorSupport.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"ActorSupport.js","sourceRoot":"","sources":["ActorSupport.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAgB/C;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAChC,OAAO,EAAE,SAAS;CACZ,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAa;IAChD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;KAC3D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,KAA2B;IAC1D,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;KACrB,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,50 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const ActorSystemTypeEnum = {
|
||||||
|
System: 'system'
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the ActorSystem interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfActorSystem(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function ActorSystemFromJSON(json) {
|
||||||
|
return ActorSystemFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function ActorSystemFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'type': !exists(json, 'type') ? undefined : json['type'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function ActorSystemToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'type': value.type,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=ActorSystem.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"ActorSystem.js","sourceRoot":"","sources":["ActorSystem.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAgB/C;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,MAAM,EAAE,QAAQ;CACV,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAAa;IAC/C,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,IAAS,EAAE,mBAA4B;IAC5E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;KAC3D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,KAA0B;IACxD,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;KACrB,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,54 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const ActorUserTypeEnum = {
|
||||||
|
User: 'user'
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the ActorUser interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfActorUser(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function ActorUserFromJSON(json) {
|
||||||
|
return ActorUserFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function ActorUserFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'type': !exists(json, 'type') ? undefined : json['type'],
|
||||||
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||||
|
'email': !exists(json, 'email') ? undefined : json['email'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function ActorUserToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'type': value.type,
|
||||||
|
'id': value.id,
|
||||||
|
'email': value.email,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=ActorUser.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"ActorUser.js","sourceRoot":"","sources":["ActorUser.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA4B/C;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,IAAI,EAAE,MAAM;CACN,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC7C,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,IAAI,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAClD,OAAO,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;KAC9D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAwB;IACpD,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,OAAO,EAAE,KAAK,CAAC,KAAK;KACvB,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,57 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { ActorFromJSON, ActorFromJSONTyped, ActorToJSON, } from './Actor';
|
||||||
|
import { EventFromJSON, EventFromJSONTyped, EventToJSON, } from './Event';
|
||||||
|
import { TargetFromJSON, TargetFromJSONTyped, TargetToJSON, } from './Target';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the AuditLog interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfAuditLog(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function AuditLogFromJSON(json) {
|
||||||
|
return AuditLogFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function AuditLogFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||||
|
'organizationID': !exists(json, 'organizationID') ? undefined : json['organizationID'],
|
||||||
|
'timestamp': !exists(json, 'timestamp') ? undefined : (new Date(json['timestamp'])),
|
||||||
|
'actor': !exists(json, 'actor') ? undefined : ActorFromJSON(json['actor']),
|
||||||
|
'target': !exists(json, 'target') ? undefined : TargetFromJSON(json['target']),
|
||||||
|
'event': !exists(json, 'event') ? undefined : EventFromJSON(json['event']),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function AuditLogToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'id': value.id,
|
||||||
|
'organizationID': value.organizationID,
|
||||||
|
'timestamp': value.timestamp === undefined ? undefined : (value.timestamp.toISOString()),
|
||||||
|
'actor': ActorToJSON(value.actor),
|
||||||
|
'target': TargetToJSON(value.target),
|
||||||
|
'event': EventToJSON(value.event),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=AuditLog.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"AuditLog.js","sourceRoot":"","sources":["AuditLog.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,S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AQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC9E,OAAO,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAC7E,CAAC;AACN,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAuB;IAClD,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,gBAAgB,EAAE,KAAK,CAAC,cAAc;QACtC,WAAW,EAAE,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QACxF,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC;QACjC,QAAQ,EAAE,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC;QACpC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC;KACpC,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,48 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { AuditLogFromJSON, AuditLogFromJSONTyped, AuditLogToJSON, } from './AuditLog';
|
||||||
|
import { PaginationMetadataFromJSON, PaginationMetadataFromJSONTyped, PaginationMetadataToJSON, } from './PaginationMetadata';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the AuditLogsList200Response interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfAuditLogsList200Response(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function AuditLogsList200ResponseFromJSON(json) {
|
||||||
|
return AuditLogsList200ResponseFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function AuditLogsList200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': !exists(json, 'data') ? undefined : (json['data'].map(AuditLogFromJSON)),
|
||||||
|
'metadata': !exists(json, 'metadata') ? undefined : PaginationMetadataFromJSON(json['metadata']),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function AuditLogsList200ResponseToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': value.data === undefined ? undefined : (value.data.map(AuditLogToJSON)),
|
||||||
|
'metadata': PaginationMetadataToJSON(value.metadata),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=AuditLogsList200Response.js.map
|
|
@ -0,0 +1 @@
|
||||||
|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AI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,IAAmB,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAC/F,UAAU,EAAE,wBAAwB,CAAC,KAAK,CAAC,QAAQ,CAAC;KACvD,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,51 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { DownloadsDnclientFromJSON, DownloadsDnclientFromJSONTyped, DownloadsDnclientToJSON, } from './DownloadsDnclient';
|
||||||
|
import { DownloadsMobileFromJSON, DownloadsMobileFromJSONTyped, DownloadsMobileToJSON, } from './DownloadsMobile';
|
||||||
|
import { DownloadsVersionInfoFromJSON, DownloadsVersionInfoFromJSONTyped, DownloadsVersionInfoToJSON, } from './DownloadsVersionInfo';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the Downloads interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfDownloads(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function DownloadsFromJSON(json) {
|
||||||
|
return DownloadsFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function DownloadsFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'dnclient': !exists(json, 'dnclient') ? undefined : DownloadsDnclientFromJSON(json['dnclient']),
|
||||||
|
'mobile': !exists(json, 'mobile') ? undefined : DownloadsMobileFromJSON(json['mobile']),
|
||||||
|
'versionInfo': !exists(json, 'versionInfo') ? undefined : DownloadsVersionInfoFromJSON(json['versionInfo']),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function DownloadsToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'dnclient': DownloadsDnclientToJSON(value.dnclient),
|
||||||
|
'mobile': DownloadsMobileToJSON(value.mobile),
|
||||||
|
'versionInfo': DownloadsVersionInfoToJSON(value.versionInfo),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=Downloads.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"Downloads.js","sourceRoot":"","sources":["Downloads.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,yBAAyB,EACzB,8BAA8B,EAC9B,uBAAuB,GAC1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACH,uBAAuB,EACvB,4BAA4B,EAC5B,qBAAqB,GACxB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACH,4BAA4B,EAC5B,iCAAiC,EACjC,0BAA0B,GAC7B,MAAM,wBAAwB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CAAC;KAC/D,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,56 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the DownloadsDNClientLinks interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfDownloadsDNClientLinks(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function DownloadsDNClientLinksFromJSON(json) {
|
||||||
|
return DownloadsDNClientLinksFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function DownloadsDNClientLinksFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
...json,
|
||||||
|
'linuxAmd64': !exists(json, 'linux-amd64') ? undefined : json['linux-amd64'],
|
||||||
|
'linuxArm64': !exists(json, 'linux-arm64') ? undefined : json['linux-arm64'],
|
||||||
|
'macosUniversal': !exists(json, 'macos-universal') ? undefined : json['macos-universal'],
|
||||||
|
'macosUniversalDmg': !exists(json, 'macos-universal-dmg') ? undefined : json['macos-universal-dmg'],
|
||||||
|
'windowsAmd64': !exists(json, 'windows-amd64') ? undefined : json['windows-amd64'],
|
||||||
|
'windowsArm64': !exists(json, 'windows-arm64') ? undefined : json['windows-arm64'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function DownloadsDNClientLinksToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
...value,
|
||||||
|
'linux-amd64': value.linuxAmd64,
|
||||||
|
'linux-arm64': value.linuxArm64,
|
||||||
|
'macos-universal': value.macosUniversal,
|
||||||
|
'macos-universal-dmg': value.macosUniversalDmg,
|
||||||
|
'windows-amd64': value.windowsAmd64,
|
||||||
|
'windows-arm64': value.windowsArm64,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=DownloadsDNClientLinks.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"DownloadsDNClientLinks.js","sourceRoot":"","sources":["DownloadsDNClientLinks.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA8C/C;;GAEG;AACH,MAAM,UAAU,gCAAgC,CAAC,KAAa;IAC1D,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,IAAS;IACpD,OAAO,mCAAmC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,UAAU,mCAAmC,CAAC,IAAS,EAAE,mBAA4B;IACvF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEC,GAAG,IAAI;QACX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ACN,CAAC"}
|
|
@ -0,0 +1,47 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { DownloadsDNClientLinksFromJSON, DownloadsDNClientLinksFromJSONTyped, DownloadsDNClientLinksToJSON, } from './DownloadsDNClientLinks';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the DownloadsDnclient interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfDownloadsDnclient(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function DownloadsDnclientFromJSON(json) {
|
||||||
|
return DownloadsDnclientFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function DownloadsDnclientFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
...json,
|
||||||
|
'latest': !exists(json, 'latest') ? undefined : DownloadsDNClientLinksFromJSON(json['latest']),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function DownloadsDnclientToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
...value,
|
||||||
|
'latest': DownloadsDNClientLinksToJSON(value.latest),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=DownloadsDnclient.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"DownloadsDnclient.js","sourceRoot":"","sources":["DownloadsDnclient.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,8BAA8B,EAC9B,mCAAmC,EACnC,4BAA4B,GAC/B,MAAM,0BAA0B,CAAC;AAiBlC;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAa;IACrD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEC,GAAG,IAAI;QACX,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,8BAA8B,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACjG,CAAC;AACN,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,KAAgC;IACpE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEC,GAAG,KAAK;QACZ,QAAQ,EAAE,4BAA4B,CAAC,KAAK,CAAC,MAAM,CAAC;KACvD,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,45 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { DownloadsFromJSON, DownloadsFromJSONTyped, DownloadsToJSON, } from './Downloads';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the DownloadsList200Response interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfDownloadsList200Response(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function DownloadsList200ResponseFromJSON(json) {
|
||||||
|
return DownloadsList200ResponseFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function DownloadsList200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': !exists(json, 'data') ? undefined : DownloadsFromJSON(json['data']),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function DownloadsList200ResponseToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': DownloadsToJSON(value.data),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=DownloadsList200Response.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"DownloadsList200Response.js","sourceRoot":"","sources":["DownloadsList200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,GAClB,MAAM,aAAa,CAAC;AAgBrB;;GAEG;AACH,MAAM,UAAU,kCAAkC,CAAC,KAAa;IAC5D,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACtD,OAAO,qCAAqC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,qCAAqC,CAAC,IAAS,EAAE,mBAA4B;IACzF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAC9E,CAAC;AACN,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,KAAuC;IAClF,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC;KACtC,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,46 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the DownloadsMobile interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfDownloadsMobile(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function DownloadsMobileFromJSON(json) {
|
||||||
|
return DownloadsMobileFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function DownloadsMobileFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'android': !exists(json, 'android') ? undefined : json['android'],
|
||||||
|
'ios': !exists(json, 'ios') ? undefined : json['ios'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function DownloadsMobileToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'android': value.android,
|
||||||
|
'ios': value.ios,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=DownloadsMobile.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"DownloadsMobile.js","sourceRoot":"","sources":["DownloadsMobile.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB/C;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,KAAa;IACnD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,IAAS,EAAE,mBAA4B;IAChF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,SAAS,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;QACjE,KAAK,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;KACxD,CAAC;AACN,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,KAA8B;IAChE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,OAAO;QACxB,KAAK,EAAE,KAAK,CAAC,GAAG;KACnB,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,48 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { DownloadsVersionInfoDnclientValueFromJSON, DownloadsVersionInfoDnclientValueFromJSONTyped, DownloadsVersionInfoDnclientValueToJSON, } from './DownloadsVersionInfoDnclientValue';
|
||||||
|
import { DownloadsVersionInfoLatestFromJSON, DownloadsVersionInfoLatestFromJSONTyped, DownloadsVersionInfoLatestToJSON, } from './DownloadsVersionInfoLatest';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the DownloadsVersionInfo interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfDownloadsVersionInfo(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function DownloadsVersionInfoFromJSON(json) {
|
||||||
|
return DownloadsVersionInfoFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function DownloadsVersionInfoFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'dnclient': !exists(json, 'dnclient') ? undefined : (mapValues(json['dnclient'], DownloadsVersionInfoDnclientValueFromJSON)),
|
||||||
|
'latest': !exists(json, 'latest') ? undefined : DownloadsVersionInfoLatestFromJSON(json['latest']),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function DownloadsVersionInfoToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'dnclient': value.dnclient === undefined ? undefined : (mapValues(value.dnclient, DownloadsVersionInfoDnclientValueToJSON)),
|
||||||
|
'latest': DownloadsVersionInfoLatestToJSON(value.latest),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=DownloadsVersionInfo.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"DownloadsVersionInfo.js","sourceRoot":"","sources":["DownloadsVersionInfo.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,yCAAyC,EACzC,8CAA8C,EAC9C,uCAAuC,GAC1C,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACH,kCAAkC,EAClC,uCAAuC,EACvC,gCAAgC,GACnC,MAAM,8BAA8B,CAAC;AAsBtC;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAAC,KAAa;IACxD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,yCAAyC,CAAC,CAAC;QAC5H,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,kCAAkC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACrG,CAAC;AACN,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,KAAmC;IAC1E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,EAAE,uCAAuC,CAAC,CAAC;QAC3H,QAAQ,EAAE,gCAAgC,CAAC,KAAK,CAAC,MAAM,CAAC;KAC3D,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,46 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the DownloadsVersionInfoDnclientValue interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfDownloadsVersionInfoDnclientValue(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function DownloadsVersionInfoDnclientValueFromJSON(json) {
|
||||||
|
return DownloadsVersionInfoDnclientValueFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function DownloadsVersionInfoDnclientValueFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'releaseDate': !exists(json, 'releaseDate') ? undefined : json['releaseDate'],
|
||||||
|
'latest': !exists(json, 'latest') ? undefined : json['latest'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function DownloadsVersionInfoDnclientValueToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'releaseDate': value.releaseDate,
|
||||||
|
'latest': value.latest,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=DownloadsVersionInfoDnclientValue.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"DownloadsVersionInfoDnclientValue.js","sourceRoot":"","sources":["DownloadsVersionInfoDnclientValue.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB/C;;GAEG;AACH,MAAM,UAAU,2CAA2C,CAAC,KAAa;IACrE,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,yCAAyC,CAAC,IAAS;IAC/D,OAAO,8CAA8C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,8CAA8C,CAAC,IAAS,EAAE,mBAA4B;IAClG,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;QAC7E,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KACjE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,uCAAuC,CAAC,KAAgD;IACpG,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,QAAQ,EAAE,KAAK,CAAC,MAAM;KACzB,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,46 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the DownloadsVersionInfoLatest interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfDownloadsVersionInfoLatest(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function DownloadsVersionInfoLatestFromJSON(json) {
|
||||||
|
return DownloadsVersionInfoLatestFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function DownloadsVersionInfoLatestFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'dnclient': !exists(json, 'dnclient') ? undefined : json['dnclient'],
|
||||||
|
'mobile': !exists(json, 'mobile') ? undefined : json['mobile'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function DownloadsVersionInfoLatestToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'dnclient': value.dnclient,
|
||||||
|
'mobile': value.mobile,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=DownloadsVersionInfoLatest.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"DownloadsVersionInfoLatest.js","sourceRoot":"","sources":["DownloadsVersionInfoLatest.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB/C;;GAEG;AACH,MAAM,UAAU,oCAAoC,CAAC,KAAa;IAC9D,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,IAAS;IACxD,OAAO,uCAAuC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,uCAAuC,CAAC,IAAS,EAAE,mBAA4B;IAC3F,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QACpE,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KACjE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,KAAyC;IACtF,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,QAAQ,EAAE,KAAK,CAAC,MAAM;KACzB,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,67 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const EventTypeEnum = {
|
||||||
|
Created: 'CREATED',
|
||||||
|
Updated: 'UPDATED',
|
||||||
|
Deleted: 'DELETED',
|
||||||
|
DeletedTotp: 'DELETED_TOTP',
|
||||||
|
CreatedTotp: 'CREATED_TOTP',
|
||||||
|
SucceededAuth: 'SUCCEEDED_AUTH',
|
||||||
|
FailedAuth: 'FAILED_AUTH',
|
||||||
|
Enrolled: 'ENROLLED',
|
||||||
|
Renewed: 'RENEWED',
|
||||||
|
CreatedEnrollCode: 'CREATED_ENROLL_CODE',
|
||||||
|
SetNetworkCa: 'SET_NETWORK_CA',
|
||||||
|
BlockedHost: 'BLOCKED_HOST',
|
||||||
|
UnblockedHost: 'UNBLOCKED_HOST',
|
||||||
|
SetOverrides: 'SET_OVERRIDES'
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the Event interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfEvent(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function EventFromJSON(json) {
|
||||||
|
return EventFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function EventFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'type': !exists(json, 'type') ? undefined : json['type'],
|
||||||
|
'before': !exists(json, 'before') ? undefined : json['before'],
|
||||||
|
'after': !exists(json, 'after') ? undefined : json['after'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function EventToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'type': value.type,
|
||||||
|
'before': value.before,
|
||||||
|
'after': value.after,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=Event.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"Event.js","sourceRoot":"","sources":["Event.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA4B/C;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,aAAa,EAAE,gBAAgB;IAC/B,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,iBAAiB,EAAE,qBAAqB;IACxC,YAAY,EAAE,gBAAgB;IAC9B,WAAW,EAAE,cAAc;IAC3B,aAAa,EAAE,gBAAgB;IAC/B,YAAY,EAAE,eAAe;CACvB,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,KAAa;IACzC,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,IAAS;IACnC,OAAO,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,IAAS,EAAE,mBAA4B;IACtE,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC9D,OAAO,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;KAC9D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAoB;IAC5C,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,OAAO,EAAE,KAAK,CAAC,KAAK;KACvB,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,61 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { FirewallRulePortRangeFromJSON, FirewallRulePortRangeFromJSONTyped, FirewallRulePortRangeToJSON, } from './FirewallRulePortRange';
|
||||||
|
/**
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const FirewallRuleProtocolEnum = {
|
||||||
|
Any: 'ANY',
|
||||||
|
Tcp: 'TCP',
|
||||||
|
Udp: 'UDP',
|
||||||
|
Icmp: 'ICMP'
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the FirewallRule interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfFirewallRule(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
isInstance = isInstance && "protocol" in value;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function FirewallRuleFromJSON(json) {
|
||||||
|
return FirewallRuleFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function FirewallRuleFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'protocol': json['protocol'],
|
||||||
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
||||||
|
'allowedRoleID': !exists(json, 'allowedRoleID') ? undefined : json['allowedRoleID'],
|
||||||
|
'portRange': !exists(json, 'portRange') ? undefined : FirewallRulePortRangeFromJSON(json['portRange']),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function FirewallRuleToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'protocol': value.protocol,
|
||||||
|
'description': value.description,
|
||||||
|
'allowedRoleID': value.allowedRoleID,
|
||||||
|
'portRange': FirewallRulePortRangeToJSON(value.portRange),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=FirewallRule.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"FirewallRule.js","sourceRoot":"","sources":["FirewallRule.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,6BAA6B,EAC7B,kCAAkC,EAClC,2BAA2B,GAC9B,MAAM,yBAAyB,CAAC;AAmCjC;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACpC,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACN,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAa;IAChD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,UAAU,IAAI,KAAK,CAAC;IAE/C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;QAC5B,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;QAC7E,eAAe,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;QACnF,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,6BAA6B,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;KACzG,CAAC;AACN,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,KAA2B;IAC1D,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,eAAe,EAAE,KAAK,CAAC,aAAa;QACpC,WAAW,EAAE,2BAA2B,CAAC,KAAK,CAAC,SAAS,CAAC;KAC5D,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,48 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the FirewallRulePortRange interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfFirewallRulePortRange(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
isInstance = isInstance && "from" in value;
|
||||||
|
isInstance = isInstance && "to" in value;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function FirewallRulePortRangeFromJSON(json) {
|
||||||
|
return FirewallRulePortRangeFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function FirewallRulePortRangeFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'from': json['from'],
|
||||||
|
'to': json['to'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function FirewallRulePortRangeToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'from': value.from,
|
||||||
|
'to': value.to,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=FirewallRulePortRange.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"FirewallRulePortRange.js","sourceRoot":"","sources":["FirewallRulePortRange.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB/C;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAAC,KAAa;IACzD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,MAAM,IAAI,KAAK,CAAC;IAC3C,UAAU,GAAG,UAAU,IAAI,IAAI,IAAI,KAAK,CAAC;IAEzC,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;KACnB,CAAC;AACN,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,KAAoC;IAC5E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,IAAI,EAAE,KAAK,CAAC,EAAE;KACjB,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,69 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { HostMetadataFromJSON, HostMetadataFromJSONTyped, HostMetadataToJSON, } from './HostMetadata';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the Host interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHost(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostFromJSON(json) {
|
||||||
|
return HostFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||||
|
'organizationID': !exists(json, 'organizationID') ? undefined : json['organizationID'],
|
||||||
|
'networkID': !exists(json, 'networkID') ? undefined : json['networkID'],
|
||||||
|
'roleID': !exists(json, 'roleID') ? undefined : json['roleID'],
|
||||||
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||||
|
'ipAddress': !exists(json, 'ipAddress') ? undefined : json['ipAddress'],
|
||||||
|
'staticAddresses': !exists(json, 'staticAddresses') ? undefined : json['staticAddresses'],
|
||||||
|
'listenPort': !exists(json, 'listenPort') ? undefined : json['listenPort'],
|
||||||
|
'isLighthouse': !exists(json, 'isLighthouse') ? undefined : json['isLighthouse'],
|
||||||
|
'isRelay': !exists(json, 'isRelay') ? undefined : json['isRelay'],
|
||||||
|
'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
||||||
|
'isBlocked': !exists(json, 'isBlocked') ? undefined : json['isBlocked'],
|
||||||
|
'metadata': !exists(json, 'metadata') ? undefined : HostMetadataFromJSON(json['metadata']),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'id': value.id,
|
||||||
|
'organizationID': value.organizationID,
|
||||||
|
'networkID': value.networkID,
|
||||||
|
'roleID': value.roleID,
|
||||||
|
'name': value.name,
|
||||||
|
'ipAddress': value.ipAddress,
|
||||||
|
'staticAddresses': value.staticAddresses,
|
||||||
|
'listenPort': value.listenPort,
|
||||||
|
'isLighthouse': value.isLighthouse,
|
||||||
|
'isRelay': value.isRelay,
|
||||||
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
||||||
|
'isBlocked': value.isBlocked,
|
||||||
|
'metadata': HostMetadataToJSON(value.metadata),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=Host.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"Host.js","sourceRoot":"","sources":["Host.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,GACrB,MAAM,gBAAgB,CAAC;AAwFxB;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,KAAa;IACxC,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAS;IAClC,OAAO,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1C,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAS,EAAE,mBAA4B;IACrE,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAA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,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,UAAU,EAAE,kBAAkB,CAAC,KAAK,CAAC,QAAQ,CAAC;KACjD,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,47 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { HostAndEnrollCodeCreate200ResponseDataFromJSON, HostAndEnrollCodeCreate200ResponseDataFromJSONTyped, HostAndEnrollCodeCreate200ResponseDataToJSON, } from './HostAndEnrollCodeCreate200ResponseData';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostAndEnrollCodeCreate200Response interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostAndEnrollCodeCreate200Response(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostAndEnrollCodeCreate200ResponseFromJSON(json) {
|
||||||
|
return HostAndEnrollCodeCreate200ResponseFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostAndEnrollCodeCreate200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': !exists(json, 'data') ? undefined : HostAndEnrollCodeCreate200ResponseDataFromJSON(json['data']),
|
||||||
|
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostAndEnrollCodeCreate200ResponseToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': HostAndEnrollCodeCreate200ResponseDataToJSON(value.data),
|
||||||
|
'metadata': value.metadata,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostAndEnrollCodeCreate200Response.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"HostAndEnrollCodeCreate200Response.js","sourceRoot":"","sources":["HostAndEnrollCodeCreate200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,8CAA8C,EAC9C,mDAAmD,EACnD,4CAA4C,GAC/C,MAAM,0CAA0C,CAAC;AAsBlD;;GAEG;AACH,MAAM,UAAU,4CAA4C,CAAC,KAAa;IACtE,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,0CAA0C,CAAC,IAAS;IAChE,OAAO,+CAA+C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,+CAA+C,CAAC,IAAS,EAAE,mBAA4B;IACnG,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,8CAA8C,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxG,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACvE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,wCAAwC,CAAC,KAAiD;IACtG,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,4CAA4C,CAAC,KAAK,CAAC,IAAI,CAAC;QAChE,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,49 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { HostFromJSON, HostFromJSONTyped, HostToJSON, } from './Host';
|
||||||
|
import { HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON, HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped, HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON, } from './HostAndEnrollCodeCreate200ResponseDataEnrollmentCode';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostAndEnrollCodeCreate200ResponseData interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostAndEnrollCodeCreate200ResponseData(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
isInstance = isInstance && "host" in value;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostAndEnrollCodeCreate200ResponseDataFromJSON(json) {
|
||||||
|
return HostAndEnrollCodeCreate200ResponseDataFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostAndEnrollCodeCreate200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'host': HostFromJSON(json['host']),
|
||||||
|
'enrollmentCode': !exists(json, 'enrollmentCode') ? undefined : HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON(json['enrollmentCode']),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostAndEnrollCodeCreate200ResponseDataToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'host': HostToJSON(value.host),
|
||||||
|
'enrollmentCode': HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON(value.enrollmentCode),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostAndEnrollCodeCreate200ResponseData.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"HostAndEnrollCodeCreate200ResponseData.js","sourceRoot":"","sources":["HostAndEnrollCodeCreate200ResponseData.ts"],"names":[],"mappings":"AAAA,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CAAC,KAAK,CAAC,cAAc,CAAC;KACrG,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,46 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostAndEnrollCodeCreate200ResponseDataEnrollmentCode interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostAndEnrollCodeCreate200ResponseDataEnrollmentCode(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON(json) {
|
||||||
|
return HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'code': !exists(json, 'code') ? undefined : json['code'],
|
||||||
|
'lifetimeSeconds': !exists(json, 'lifetimeSeconds') ? undefined : json['lifetimeSeconds'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostAndEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'code': value.code,
|
||||||
|
'lifetimeSeconds': value.lifetimeSeconds,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.js","sourceRoot":"","sources":["HostAndEnrollCodeCreate200ResponseDataEnrollmentCode.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB/C;;GAEG;AACH,MAAM,UAAU,8DAA8D,CAAC,KAAa;IACxF,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,4DAA4D,CAAC,IAAS;IAClF,OAAO,iEAAiE,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1F,CAAC;AAED,MAAM,UAAU,iEAAiE,CAAC,IAAS,EAAE,mBAA4B;IACrH,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,iBAAiB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;KAC5F,CAAC;AACN,CAAC;AAED,MAAM,UAAU,0DAA0D,CAAC,KAAmE;IAC1I,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,iBAAiB,EAAE,KAAK,CAAC,eAAe;KAC3C,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,45 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostAndEnrollCodeCreate400Response interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostAndEnrollCodeCreate400Response(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
isInstance = isInstance && "errors" in value;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostAndEnrollCodeCreate400ResponseFromJSON(json) {
|
||||||
|
return HostAndEnrollCodeCreate400ResponseFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostAndEnrollCodeCreate400ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'errors': json['errors'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostAndEnrollCodeCreate400ResponseToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'errors': value.errors,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostAndEnrollCodeCreate400Response.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"HostAndEnrollCodeCreate400Response.js","sourceRoot":"","sources":["HostAndEnrollCodeCreate400Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAe/C;;GAEG;AACH,MAAM,UAAU,4CAA4C,CAAC,KAAa;IACtE,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,QAAQ,IAAI,KAAK,CAAC;IAE7C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,0CAA0C,CAAC,IAAS;IAChE,OAAO,+CAA+C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,+CAA+C,CAAC,IAAS,EAAE,mBAA4B;IACnG,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,MAAM,UAAU,wCAAwC,CAAC,KAAiD;IACtG,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,MAAM;KACzB,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,47 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { HostBlock200ResponseDataFromJSON, HostBlock200ResponseDataFromJSONTyped, HostBlock200ResponseDataToJSON, } from './HostBlock200ResponseData';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostBlock200Response interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostBlock200Response(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostBlock200ResponseFromJSON(json) {
|
||||||
|
return HostBlock200ResponseFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostBlock200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': !exists(json, 'data') ? undefined : HostBlock200ResponseDataFromJSON(json['data']),
|
||||||
|
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostBlock200ResponseToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': HostBlock200ResponseDataToJSON(value.data),
|
||||||
|
'metadata': value.metadata,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostBlock200Response.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"HostBlock200Response.js","sourceRoot":"","sources":["HostBlock200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,gCAAgC,EAChC,qCAAqC,EACrC,8BAA8B,GACjC,MAAM,4BAA4B,CAAC;AAsBpC;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAAC,KAAa;IACxD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,gCAAgC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1F,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACvE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,KAAmC;IAC1E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,8BAA8B,CAAC,KAAK,CAAC,IAAI,CAAC;QAClD,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,45 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { HostFromJSON, HostFromJSONTyped, HostToJSON, } from './Host';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostBlock200ResponseData interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostBlock200ResponseData(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostBlock200ResponseDataFromJSON(json) {
|
||||||
|
return HostBlock200ResponseDataFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostBlock200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'host': !exists(json, 'host') ? undefined : HostFromJSON(json['host']),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostBlock200ResponseDataToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'host': HostToJSON(value.host),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostBlock200ResponseData.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"HostBlock200ResponseData.js","sourceRoot":"","sources":["HostBlock200ResponseData.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,UAAU,GACb,MAAM,QAAQ,CAAC;AAgBhB;;GAEG;AACH,MAAM,UAAU,kCAAkC,CAAC,KAAa;IAC5D,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACtD,OAAO,qCAAqC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,qCAAqC,CAAC,IAAS,EAAE,mBAA4B;IACzF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KACzE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,KAAuC;IAClF,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;KACjC,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,47 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { HostFromJSON, HostFromJSONTyped, HostToJSON, } from './Host';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostCreate200Response interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostCreate200Response(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostCreate200ResponseFromJSON(json) {
|
||||||
|
return HostCreate200ResponseFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostCreate200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': !exists(json, 'data') ? undefined : HostFromJSON(json['data']),
|
||||||
|
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostCreate200ResponseToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': HostToJSON(value.data),
|
||||||
|
'metadata': value.metadata,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostCreate200Response.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"HostCreate200Response.js","sourceRoot":"","sources":["HostCreate200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,UAAU,GACb,MAAM,QAAQ,CAAC;AAsBhB;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAAC,KAAa;IACzD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtE,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACvE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,KAAoC;IAC5E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;QAC9B,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,44 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostCreate400Response interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostCreate400Response(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostCreate400ResponseFromJSON(json) {
|
||||||
|
return HostCreate400ResponseFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostCreate400ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'errors': !exists(json, 'errors') ? undefined : json['errors'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostCreate400ResponseToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'errors': value.errors,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostCreate400Response.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"HostCreate400Response.js","sourceRoot":"","sources":["HostCreate400Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAe/C;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAAC,KAAa;IACzD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KACjE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,KAAoC;IAC5E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,MAAM;KACzB,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,60 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostCreateRequest interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostCreateRequest(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
isInstance = isInstance && "name" in value;
|
||||||
|
isInstance = isInstance && "networkID" in value;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostCreateRequestFromJSON(json) {
|
||||||
|
return HostCreateRequestFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'name': json['name'],
|
||||||
|
'networkID': json['networkID'],
|
||||||
|
'roleID': !exists(json, 'roleID') ? undefined : json['roleID'],
|
||||||
|
'ipAddress': !exists(json, 'ipAddress') ? undefined : json['ipAddress'],
|
||||||
|
'staticAddresses': !exists(json, 'staticAddresses') ? undefined : json['staticAddresses'],
|
||||||
|
'listenPort': !exists(json, 'listenPort') ? undefined : json['listenPort'],
|
||||||
|
'isLighthouse': !exists(json, 'isLighthouse') ? undefined : json['isLighthouse'],
|
||||||
|
'isRelay': !exists(json, 'isRelay') ? undefined : json['isRelay'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostCreateRequestToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'name': value.name,
|
||||||
|
'networkID': value.networkID,
|
||||||
|
'roleID': value.roleID,
|
||||||
|
'ipAddress': value.ipAddress,
|
||||||
|
'staticAddresses': value.staticAddresses,
|
||||||
|
'listenPort': value.listenPort,
|
||||||
|
'isLighthouse': value.isLighthouse,
|
||||||
|
'isRelay': value.isRelay,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostCreateRequest.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"HostCreateRequest.js","sourceRoot":"","sources":["HostCreateRequest.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC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CAAC,cAAc,CAAC;QAChF,SAAS,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;KACpE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,KAAgC;IACpE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,iBAAiB,EAAE,KAAK,CAAC,eAAe;QACxC,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,cAAc,EAAE,KAAK,CAAC,YAAY;QAClC,SAAS,EAAE,KAAK,CAAC,OAAO;KAC3B,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,46 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostDelete200Response interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostDelete200Response(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostDelete200ResponseFromJSON(json) {
|
||||||
|
return HostDelete200ResponseFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostDelete200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': !exists(json, 'data') ? undefined : json['data'],
|
||||||
|
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostDelete200ResponseToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': value.data,
|
||||||
|
'metadata': value.metadata,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostDelete200Response.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"HostDelete200Response.js","sourceRoot":"","sources":["HostDelete200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB/C;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAAC,KAAa;IACzD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACvE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,KAAoC;IAC5E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,47 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { HostFromJSON, HostFromJSONTyped, HostToJSON, } from './Host';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostEdit200Response interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostEdit200Response(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostEdit200ResponseFromJSON(json) {
|
||||||
|
return HostEdit200ResponseFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostEdit200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': !exists(json, 'data') ? undefined : HostFromJSON(json['data']),
|
||||||
|
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostEdit200ResponseToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': HostToJSON(value.data),
|
||||||
|
'metadata': value.metadata,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostEdit200Response.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"HostEdit200Response.js","sourceRoot":"","sources":["HostEdit200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,UAAU,GACb,MAAM,QAAQ,CAAC;AAsBhB;;GAEG;AACH,MAAM,UAAU,6BAA6B,CAAC,KAAa;IACvD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtE,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACvE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,KAAkC;IACxE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;QAC9B,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,46 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostEditRequest interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostEditRequest(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostEditRequestFromJSON(json) {
|
||||||
|
return HostEditRequestFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostEditRequestFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'staticAddresses': !exists(json, 'staticAddresses') ? undefined : json['staticAddresses'],
|
||||||
|
'listenPort': !exists(json, 'listenPort') ? undefined : json['listenPort'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostEditRequestToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'staticAddresses': value.staticAddresses,
|
||||||
|
'listenPort': value.listenPort,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostEditRequest.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"HostEditRequest.js","sourceRoot":"","sources":["HostEditRequest.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB/C;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,KAAa;IACnD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,IAAS,EAAE,mBAA4B;IAChF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,iBAAiB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;QACzF,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;KAC7E,CAAC;AACN,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,KAA8B;IAChE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,iBAAiB,EAAE,KAAK,CAAC,eAAe;QACxC,YAAY,EAAE,KAAK,CAAC,UAAU;KACjC,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,47 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { HostEnrollCodeCreate200ResponseDataFromJSON, HostEnrollCodeCreate200ResponseDataFromJSONTyped, HostEnrollCodeCreate200ResponseDataToJSON, } from './HostEnrollCodeCreate200ResponseData';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostEnrollCodeCreate200Response interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostEnrollCodeCreate200Response(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostEnrollCodeCreate200ResponseFromJSON(json) {
|
||||||
|
return HostEnrollCodeCreate200ResponseFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostEnrollCodeCreate200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': !exists(json, 'data') ? undefined : HostEnrollCodeCreate200ResponseDataFromJSON(json['data']),
|
||||||
|
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostEnrollCodeCreate200ResponseToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': HostEnrollCodeCreate200ResponseDataToJSON(value.data),
|
||||||
|
'metadata': value.metadata,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostEnrollCodeCreate200Response.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"HostEnrollCodeCreate200Response.js","sourceRoot":"","sources":["HostEnrollCodeCreate200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,2CAA2C,EAC3C,gDAAgD,EAChD,yCAAyC,GAC5C,MAAM,uCAAuC,CAAC;AAsB/C;;GAEG;AACH,MAAM,UAAU,yCAAyC,CAAC,KAAa;IACnE,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,uCAAuC,CAAC,IAAS;IAC7D,OAAO,4CAA4C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrE,CAAC;AAED,MAAM,UAAU,4CAA4C,CAAC,IAAS,EAAE,mBAA4B;IAChG,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,2CAA2C,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACrG,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACvE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,qCAAqC,CAAC,KAA8C;IAChG,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,yCAAyC,CAAC,KAAK,CAAC,IAAI,CAAC;QAC7D,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,45 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON, HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped, HostEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON, } from './HostEnrollCodeCreate200ResponseDataEnrollmentCode';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostEnrollCodeCreate200ResponseData interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostEnrollCodeCreate200ResponseData(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostEnrollCodeCreate200ResponseDataFromJSON(json) {
|
||||||
|
return HostEnrollCodeCreate200ResponseDataFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostEnrollCodeCreate200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'enrollmentCode': !exists(json, 'enrollmentCode') ? undefined : HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON(json['enrollmentCode']),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostEnrollCodeCreate200ResponseDataToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'enrollmentCode': HostEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON(value.enrollmentCode),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostEnrollCodeCreate200ResponseData.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"HostEnrollCodeCreate200ResponseData.js","sourceRoot":"","sources":["HostEnrollCodeCreate200ResponseData.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,yDAAyD,EACzD,8DAA8D,EAC9D,uDAAuD,GAC1D,MAAM,qDAAqD,CAAC;AAgB7D;;GAEG;AACH,MAAM,UAAU,6CAA6C,CAAC,KAAa;IACvE,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,2CAA2C,CAAC,IAAS;IACjE,OAAO,gDAAgD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzE,CAAC;AAED,MAAM,UAAU,gDAAgD,CAAC,IAAS,EAAE,mBAA4B;IACpG,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,gBAAgB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,yDAAyD,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;KACpJ,CAAC;AACN,CAAC;AAED,MAAM,UAAU,yCAAyC,CAAC,KAAkD;IACxG,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,gBAAgB,EAAE,uDAAuD,CAAC,KAAK,CAAC,cAAc,CAAC;KAClG,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,46 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostEnrollCodeCreate200ResponseDataEnrollmentCode interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostEnrollCodeCreate200ResponseDataEnrollmentCode(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSON(json) {
|
||||||
|
return HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostEnrollCodeCreate200ResponseDataEnrollmentCodeFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'code': !exists(json, 'code') ? undefined : json['code'],
|
||||||
|
'lifetimeSeconds': !exists(json, 'lifetimeSeconds') ? undefined : json['lifetimeSeconds'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostEnrollCodeCreate200ResponseDataEnrollmentCodeToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'code': value.code,
|
||||||
|
'lifetimeSeconds': value.lifetimeSeconds,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostEnrollCodeCreate200ResponseDataEnrollmentCode.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"HostEnrollCodeCreate200ResponseDataEnrollmentCode.js","sourceRoot":"","sources":["HostEnrollCodeCreate200ResponseDataEnrollmentCode.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB/C;;GAEG;AACH,MAAM,UAAU,2DAA2D,CAAC,KAAa;IACrF,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,yDAAyD,CAAC,IAAS;IAC/E,OAAO,8DAA8D,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvF,CAAC;AAED,MAAM,UAAU,8DAA8D,CAAC,IAAS,EAAE,mBAA4B;IAClH,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACxD,iBAAiB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;KAC5F,CAAC;AACN,CAAC;AAED,MAAM,UAAU,uDAAuD,CAAC,KAAgE;IACpI,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,iBAAiB,EAAE,KAAK,CAAC,eAAe;KAC3C,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,47 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { HostFromJSON, HostFromJSONTyped, HostToJSON, } from './Host';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostGet200Response interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostGet200Response(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostGet200ResponseFromJSON(json) {
|
||||||
|
return HostGet200ResponseFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': !exists(json, 'data') ? undefined : HostFromJSON(json['data']),
|
||||||
|
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostGet200ResponseToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': HostToJSON(value.data),
|
||||||
|
'metadata': value.metadata,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostGet200Response.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"HostGet200Response.js","sourceRoot":"","sources":["HostGet200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,UAAU,GACb,MAAM,QAAQ,CAAC;AAsBhB;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAAC,KAAa;IACtD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtE,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACvE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,KAAiC;IACtE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;QAC9B,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,58 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export const HostMetadataPlatformEnum = {
|
||||||
|
Dnclient: 'dnclient',
|
||||||
|
Mobile: 'mobile',
|
||||||
|
Null: 'null'
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostMetadata interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostMetadata(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostMetadataFromJSON(json) {
|
||||||
|
return HostMetadataFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'lastSeenAt': !exists(json, 'lastSeenAt') ? undefined : json['lastSeenAt'],
|
||||||
|
'version': !exists(json, 'version') ? undefined : json['version'],
|
||||||
|
'platform': !exists(json, 'platform') ? undefined : json['platform'],
|
||||||
|
'updateAvailable': !exists(json, 'updateAvailable') ? undefined : json['updateAvailable'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostMetadataToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'lastSeenAt': value.lastSeenAt,
|
||||||
|
'version': value.version,
|
||||||
|
'platform': value.platform,
|
||||||
|
'updateAvailable': value.updateAvailable,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostMetadata.js.map
|
|
@ -0,0 +1 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AC,iBAAiB,CAAC;KAC5F,CAAC;AACN,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,KAA2B;IAC1D,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,SAAS,EAAE,KAAK,CAAC,OAAO;QACxB,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,iBAAiB,EAAE,KAAK,CAAC,eAAe;KAC3C,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,48 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
import { HostFromJSON, HostFromJSONTyped, HostToJSON, } from './Host';
|
||||||
|
import { PaginationMetadataFromJSON, PaginationMetadataFromJSONTyped, PaginationMetadataToJSON, } from './PaginationMetadata';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the HostsList200Response interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfHostsList200Response(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function HostsList200ResponseFromJSON(json) {
|
||||||
|
return HostsList200ResponseFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function HostsList200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': !exists(json, 'data') ? undefined : (json['data'].map(HostFromJSON)),
|
||||||
|
'metadata': !exists(json, 'metadata') ? undefined : PaginationMetadataFromJSON(json['metadata']),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function HostsList200ResponseToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'data': value.data === undefined ? undefined : (value.data.map(HostToJSON)),
|
||||||
|
'metadata': PaginationMetadataToJSON(value.metadata),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=HostsList200Response.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"HostsList200Response.js","sourceRoot":"","sources":["HostsList200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,UAAU,GACb,MAAM,QAAQ,CAAC;AAEhB,OAAO,EACH,0BAA0B,EAC1B,+BAA+B,EAC/B,wBAAwB,GAC3B,MAAM,sBAAsB,CAAC;AAsB9B;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAAC,KAAa;IACxD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAC5F,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,0BAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACnG,CAAC;AACN,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,KAAmC;IAC1E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,IAAmB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC3F,UAAU,EAAE,wBAAwB,CAAC,KAAK,CAAC,QAAQ,CAAC;KACvD,CAAC;AACN,CAAC"}
|
|
@ -0,0 +1,50 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Defined Networking API
|
||||||
|
* <br/> <br/> This API enables automated administration of Defined Networking hosts, roles, logs, and more. To authenticate, obtain an api key to use as a bearer token from your Defined Networking admin panel [API Keys page](https://admin.defined.net/settings/api-keys). API keys must be given the appropriate permission scopes for every method and endpoint, as specified throughout this documentation. Please [contact us](https://www.defined.net/contact?reason=support) for any questions or issues. In the event of a token leak, please take care to [rotate the key](/guides/rotating-api-keys). <div className=\'introduction-end\'></div>
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { exists, mapValues } from '../runtime';
|
||||||
|
/**
|
||||||
|
* Check if a given object implements the ModelError interface.
|
||||||
|
*/
|
||||||
|
export function instanceOfModelError(value) {
|
||||||
|
let isInstance = true;
|
||||||
|
isInstance = isInstance && "code" in value;
|
||||||
|
isInstance = isInstance && "message" in value;
|
||||||
|
return isInstance;
|
||||||
|
}
|
||||||
|
export function ModelErrorFromJSON(json) {
|
||||||
|
return ModelErrorFromJSONTyped(json, false);
|
||||||
|
}
|
||||||
|
export function ModelErrorFromJSONTyped(json, ignoreDiscriminator) {
|
||||||
|
if ((json === undefined) || (json === null)) {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'code': json['code'],
|
||||||
|
'message': json['message'],
|
||||||
|
'path': !exists(json, 'path') ? undefined : json['path'],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export function ModelErrorToJSON(value) {
|
||||||
|
if (value === undefined) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'code': value.code,
|
||||||
|
'message': value.message,
|
||||||
|
'path': value.path,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=ModelError.js.map
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"ModelError.js","sourceRoot":"","sources":["ModelError.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA2B/C;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAa;IAC9C,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,MAAM,IAAI,KAAK,CAAC;IAC3C,UAAU,GAAG,UAAU,IAAI,SAAS,IAAI,KAAK,CAAC;IAE9C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,IAAS,EAAE,mBAA4B;IAC3E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;KAC3D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAyB;IACtD,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,SAAS,EAAE,KAAK,CAAC,OAAO;QACxB,MAAM,EAAE,KAAK,CAAC,IAAI;KACrB,CAAC;AACN,CAAC"}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue