@flashstart/client 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -0
- package/dist/src/generated/client/client.gen.d.ts +2 -0
- package/dist/src/generated/client/client.gen.js +216 -0
- package/dist/src/generated/client/index.d.ts +10 -0
- package/dist/src/generated/client/index.js +6 -0
- package/dist/src/generated/client/types.gen.d.ts +120 -0
- package/dist/src/generated/client/types.gen.js +2 -0
- package/dist/src/generated/client/utils.gen.d.ts +37 -0
- package/dist/src/generated/client/utils.gen.js +228 -0
- package/dist/src/generated/client.gen.d.ts +12 -0
- package/dist/src/generated/client.gen.js +3 -0
- package/dist/src/generated/core/auth.gen.d.ts +25 -0
- package/dist/src/generated/core/auth.gen.js +14 -0
- package/dist/src/generated/core/bodySerializer.gen.d.ts +25 -0
- package/dist/src/generated/core/bodySerializer.gen.js +57 -0
- package/dist/src/generated/core/params.gen.d.ts +43 -0
- package/dist/src/generated/core/params.gen.js +109 -0
- package/dist/src/generated/core/pathSerializer.gen.d.ts +33 -0
- package/dist/src/generated/core/pathSerializer.gen.js +106 -0
- package/dist/src/generated/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/src/generated/core/queryKeySerializer.gen.js +92 -0
- package/dist/src/generated/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/src/generated/core/serverSentEvents.gen.js +132 -0
- package/dist/src/generated/core/types.gen.d.ts +83 -0
- package/dist/src/generated/core/types.gen.js +2 -0
- package/dist/src/generated/core/utils.gen.d.ts +19 -0
- package/dist/src/generated/core/utils.gen.js +87 -0
- package/dist/src/generated/index.d.ts +2 -0
- package/dist/src/generated/index.js +2 -0
- package/dist/src/generated/network/client/client.gen.d.ts +2 -0
- package/dist/src/generated/network/client/client.gen.js +216 -0
- package/dist/src/generated/network/client/index.d.ts +10 -0
- package/dist/src/generated/network/client/index.js +6 -0
- package/dist/src/generated/network/client/types.gen.d.ts +120 -0
- package/dist/src/generated/network/client/types.gen.js +2 -0
- package/dist/src/generated/network/client/utils.gen.d.ts +37 -0
- package/dist/src/generated/network/client/utils.gen.js +228 -0
- package/dist/src/generated/network/client.gen.d.ts +12 -0
- package/dist/src/generated/network/client.gen.js +3 -0
- package/dist/src/generated/network/core/auth.gen.d.ts +25 -0
- package/dist/src/generated/network/core/auth.gen.js +14 -0
- package/dist/src/generated/network/core/bodySerializer.gen.d.ts +25 -0
- package/dist/src/generated/network/core/bodySerializer.gen.js +57 -0
- package/dist/src/generated/network/core/params.gen.d.ts +43 -0
- package/dist/src/generated/network/core/params.gen.js +109 -0
- package/dist/src/generated/network/core/pathSerializer.gen.d.ts +33 -0
- package/dist/src/generated/network/core/pathSerializer.gen.js +106 -0
- package/dist/src/generated/network/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/src/generated/network/core/queryKeySerializer.gen.js +92 -0
- package/dist/src/generated/network/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/src/generated/network/core/serverSentEvents.gen.js +132 -0
- package/dist/src/generated/network/core/types.gen.d.ts +83 -0
- package/dist/src/generated/network/core/types.gen.js +2 -0
- package/dist/src/generated/network/core/utils.gen.d.ts +19 -0
- package/dist/src/generated/network/core/utils.gen.js +87 -0
- package/dist/src/generated/network/index.d.ts +2 -0
- package/dist/src/generated/network/index.js +2 -0
- package/dist/src/generated/network/sdk.gen.d.ts +135 -0
- package/dist/src/generated/network/sdk.gen.js +339 -0
- package/dist/src/generated/network/types.gen.d.ts +1188 -0
- package/dist/src/generated/network/types.gen.js +2 -0
- package/dist/src/generated/protection/client/client.gen.d.ts +2 -0
- package/dist/src/generated/protection/client/client.gen.js +216 -0
- package/dist/src/generated/protection/client/index.d.ts +10 -0
- package/dist/src/generated/protection/client/index.js +6 -0
- package/dist/src/generated/protection/client/types.gen.d.ts +120 -0
- package/dist/src/generated/protection/client/types.gen.js +2 -0
- package/dist/src/generated/protection/client/utils.gen.d.ts +37 -0
- package/dist/src/generated/protection/client/utils.gen.js +228 -0
- package/dist/src/generated/protection/client.gen.d.ts +12 -0
- package/dist/src/generated/protection/client.gen.js +3 -0
- package/dist/src/generated/protection/core/auth.gen.d.ts +25 -0
- package/dist/src/generated/protection/core/auth.gen.js +14 -0
- package/dist/src/generated/protection/core/bodySerializer.gen.d.ts +25 -0
- package/dist/src/generated/protection/core/bodySerializer.gen.js +57 -0
- package/dist/src/generated/protection/core/params.gen.d.ts +43 -0
- package/dist/src/generated/protection/core/params.gen.js +109 -0
- package/dist/src/generated/protection/core/pathSerializer.gen.d.ts +33 -0
- package/dist/src/generated/protection/core/pathSerializer.gen.js +106 -0
- package/dist/src/generated/protection/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/src/generated/protection/core/queryKeySerializer.gen.js +92 -0
- package/dist/src/generated/protection/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/src/generated/protection/core/serverSentEvents.gen.js +132 -0
- package/dist/src/generated/protection/core/types.gen.d.ts +83 -0
- package/dist/src/generated/protection/core/types.gen.js +2 -0
- package/dist/src/generated/protection/core/utils.gen.d.ts +19 -0
- package/dist/src/generated/protection/core/utils.gen.js +87 -0
- package/dist/src/generated/protection/index.d.ts +2 -0
- package/dist/src/generated/protection/index.js +2 -0
- package/dist/src/generated/protection/sdk.gen.d.ts +255 -0
- package/dist/src/generated/protection/sdk.gen.js +663 -0
- package/dist/src/generated/protection/types.gen.d.ts +2199 -0
- package/dist/src/generated/protection/types.gen.js +2 -0
- package/dist/src/generated/sdk.gen.d.ts +91 -0
- package/dist/src/generated/sdk.gen.js +206 -0
- package/dist/src/generated/types.gen.d.ts +909 -0
- package/dist/src/generated/types.gen.js +2 -0
- package/dist/src/index.d.ts +50 -0
- package/dist/src/index.js +85 -0
- package/package.json +34 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.js';
|
|
2
|
+
import type { AddNetworkPolicyData, AddNetworkPolicyErrors, AddNetworkPolicyResponses, CreateCidrStaticNetworkData, CreateCidrStaticNetworkErrors, CreateCidrStaticNetworkResponses, CreateEncryptedNetworkData, CreateEncryptedNetworkErrors, CreateEncryptedNetworkResponses, CreateExternalDynamicNetworkData, CreateExternalDynamicNetworkErrors, CreateExternalDynamicNetworkResponses, CreateInternalDynamicNetworkData, CreateInternalDynamicNetworkErrors, CreateInternalDynamicNetworkResponses, CreateRangeStaticNetworkData, CreateRangeStaticNetworkErrors, CreateRangeStaticNetworkResponses, CreateSingleStaticNetworkData, CreateSingleStaticNetworkErrors, CreateSingleStaticNetworkResponses, DeleteNetworkData, DeleteNetworkErrors, DeleteNetworkPolicyData, DeleteNetworkPolicyErrors, DeleteNetworkPolicyResponses, DeleteNetworkResponses, GetNetworkData, GetNetworkErrors, GetNetworkResponses, ListAvailableNetworkDnsData, ListAvailableNetworkDnsErrors, ListAvailableNetworkDnsResponses, ListNetworkDnsData, ListNetworkDnsErrors, ListNetworkDnsResponses, ListNetworksData, ListNetworksErrors, ListNetworksResponses, UpdateCidrStaticNetworkData, UpdateCidrStaticNetworkErrors, UpdateCidrStaticNetworkResponses, UpdateEncryptedNetworkData, UpdateEncryptedNetworkErrors, UpdateEncryptedNetworkResponses, UpdateExternalDynamicNetworkData, UpdateExternalDynamicNetworkErrors, UpdateExternalDynamicNetworkResponses, UpdateInternalDynamicNetworkData, UpdateInternalDynamicNetworkErrors, UpdateInternalDynamicNetworkResponses, UpdateRangeStaticNetworkData, UpdateRangeStaticNetworkErrors, UpdateRangeStaticNetworkResponses, UpdateSingleStaticNetworkData, UpdateSingleStaticNetworkErrors, UpdateSingleStaticNetworkResponses } from './types.gen.js';
|
|
3
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
4
|
+
/**
|
|
5
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
6
|
+
* individual options. This might be also useful if you want to implement a
|
|
7
|
+
* custom client.
|
|
8
|
+
*/
|
|
9
|
+
client?: Client;
|
|
10
|
+
/**
|
|
11
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
12
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
13
|
+
*/
|
|
14
|
+
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* List networks
|
|
18
|
+
*/
|
|
19
|
+
export declare const listNetworks: <ThrowOnError extends boolean = false>(options?: Options<ListNetworksData, ThrowOnError>) => RequestResult<ListNetworksResponses, ListNetworksErrors, ThrowOnError>;
|
|
20
|
+
/**
|
|
21
|
+
* List network DNS entries
|
|
22
|
+
*/
|
|
23
|
+
export declare const listNetworkDns: <ThrowOnError extends boolean = false>(options?: Options<ListNetworkDnsData, ThrowOnError>) => RequestResult<ListNetworkDnsResponses, ListNetworkDnsErrors, ThrowOnError>;
|
|
24
|
+
/**
|
|
25
|
+
* List available network DNS entries
|
|
26
|
+
*/
|
|
27
|
+
export declare const listAvailableNetworkDns: <ThrowOnError extends boolean = false>(options: Options<ListAvailableNetworkDnsData, ThrowOnError>) => RequestResult<ListAvailableNetworkDnsResponses, ListAvailableNetworkDnsErrors, ThrowOnError>;
|
|
28
|
+
/**
|
|
29
|
+
* Delete a network
|
|
30
|
+
*/
|
|
31
|
+
export declare const deleteNetwork: <ThrowOnError extends boolean = false>(options: Options<DeleteNetworkData, ThrowOnError>) => RequestResult<DeleteNetworkResponses, DeleteNetworkErrors, ThrowOnError>;
|
|
32
|
+
/**
|
|
33
|
+
* Get a network
|
|
34
|
+
*/
|
|
35
|
+
export declare const getNetwork: <ThrowOnError extends boolean = false>(options: Options<GetNetworkData, ThrowOnError>) => RequestResult<GetNetworkResponses, GetNetworkErrors, ThrowOnError>;
|
|
36
|
+
/**
|
|
37
|
+
* Add a network policy
|
|
38
|
+
*/
|
|
39
|
+
export declare const addNetworkPolicy: <ThrowOnError extends boolean = false>(options: Options<AddNetworkPolicyData, ThrowOnError>) => RequestResult<AddNetworkPolicyResponses, AddNetworkPolicyErrors, ThrowOnError>;
|
|
40
|
+
/**
|
|
41
|
+
* Delete a network policy
|
|
42
|
+
*/
|
|
43
|
+
export declare const deleteNetworkPolicy: <ThrowOnError extends boolean = false>(options: Options<DeleteNetworkPolicyData, ThrowOnError>) => RequestResult<DeleteNetworkPolicyResponses, DeleteNetworkPolicyErrors, ThrowOnError>;
|
|
44
|
+
/**
|
|
45
|
+
* Create a single static network
|
|
46
|
+
*/
|
|
47
|
+
export declare const createSingleStaticNetwork: <ThrowOnError extends boolean = false>(options: Options<CreateSingleStaticNetworkData, ThrowOnError>) => RequestResult<CreateSingleStaticNetworkResponses, CreateSingleStaticNetworkErrors, ThrowOnError>;
|
|
48
|
+
/**
|
|
49
|
+
* Create a CIDR static network
|
|
50
|
+
*/
|
|
51
|
+
export declare const createCidrStaticNetwork: <ThrowOnError extends boolean = false>(options: Options<CreateCidrStaticNetworkData, ThrowOnError>) => RequestResult<CreateCidrStaticNetworkResponses, CreateCidrStaticNetworkErrors, ThrowOnError>;
|
|
52
|
+
/**
|
|
53
|
+
* Create a range static network
|
|
54
|
+
*/
|
|
55
|
+
export declare const createRangeStaticNetwork: <ThrowOnError extends boolean = false>(options: Options<CreateRangeStaticNetworkData, ThrowOnError>) => RequestResult<CreateRangeStaticNetworkResponses, CreateRangeStaticNetworkErrors, ThrowOnError>;
|
|
56
|
+
/**
|
|
57
|
+
* Create an internal dynamic network
|
|
58
|
+
*/
|
|
59
|
+
export declare const createInternalDynamicNetwork: <ThrowOnError extends boolean = false>(options: Options<CreateInternalDynamicNetworkData, ThrowOnError>) => RequestResult<CreateInternalDynamicNetworkResponses, CreateInternalDynamicNetworkErrors, ThrowOnError>;
|
|
60
|
+
/**
|
|
61
|
+
* Create an external dynamic network
|
|
62
|
+
*/
|
|
63
|
+
export declare const createExternalDynamicNetwork: <ThrowOnError extends boolean = false>(options: Options<CreateExternalDynamicNetworkData, ThrowOnError>) => RequestResult<CreateExternalDynamicNetworkResponses, CreateExternalDynamicNetworkErrors, ThrowOnError>;
|
|
64
|
+
/**
|
|
65
|
+
* Create an encrypted network
|
|
66
|
+
*/
|
|
67
|
+
export declare const createEncryptedNetwork: <ThrowOnError extends boolean = false>(options: Options<CreateEncryptedNetworkData, ThrowOnError>) => RequestResult<CreateEncryptedNetworkResponses, CreateEncryptedNetworkErrors, ThrowOnError>;
|
|
68
|
+
/**
|
|
69
|
+
* Update a single static network
|
|
70
|
+
*/
|
|
71
|
+
export declare const updateSingleStaticNetwork: <ThrowOnError extends boolean = false>(options: Options<UpdateSingleStaticNetworkData, ThrowOnError>) => RequestResult<UpdateSingleStaticNetworkResponses, UpdateSingleStaticNetworkErrors, ThrowOnError>;
|
|
72
|
+
/**
|
|
73
|
+
* Update a CIDR static network
|
|
74
|
+
*/
|
|
75
|
+
export declare const updateCidrStaticNetwork: <ThrowOnError extends boolean = false>(options: Options<UpdateCidrStaticNetworkData, ThrowOnError>) => RequestResult<UpdateCidrStaticNetworkResponses, UpdateCidrStaticNetworkErrors, ThrowOnError>;
|
|
76
|
+
/**
|
|
77
|
+
* Update a range static network
|
|
78
|
+
*/
|
|
79
|
+
export declare const updateRangeStaticNetwork: <ThrowOnError extends boolean = false>(options: Options<UpdateRangeStaticNetworkData, ThrowOnError>) => RequestResult<UpdateRangeStaticNetworkResponses, UpdateRangeStaticNetworkErrors, ThrowOnError>;
|
|
80
|
+
/**
|
|
81
|
+
* Update an internal dynamic network
|
|
82
|
+
*/
|
|
83
|
+
export declare const updateInternalDynamicNetwork: <ThrowOnError extends boolean = false>(options: Options<UpdateInternalDynamicNetworkData, ThrowOnError>) => RequestResult<UpdateInternalDynamicNetworkResponses, UpdateInternalDynamicNetworkErrors, ThrowOnError>;
|
|
84
|
+
/**
|
|
85
|
+
* Update an external dynamic network
|
|
86
|
+
*/
|
|
87
|
+
export declare const updateExternalDynamicNetwork: <ThrowOnError extends boolean = false>(options: Options<UpdateExternalDynamicNetworkData, ThrowOnError>) => RequestResult<UpdateExternalDynamicNetworkResponses, UpdateExternalDynamicNetworkErrors, ThrowOnError>;
|
|
88
|
+
/**
|
|
89
|
+
* Update an encrypted network
|
|
90
|
+
*/
|
|
91
|
+
export declare const updateEncryptedNetwork: <ThrowOnError extends boolean = false>(options: Options<UpdateEncryptedNetworkData, ThrowOnError>) => RequestResult<UpdateEncryptedNetworkResponses, UpdateEncryptedNetworkErrors, ThrowOnError>;
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { client } from './client.gen.js';
|
|
3
|
+
/**
|
|
4
|
+
* List networks
|
|
5
|
+
*/
|
|
6
|
+
export const listNetworks = (options) => (options?.client ?? client).get({
|
|
7
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
8
|
+
url: '/v1/',
|
|
9
|
+
...options
|
|
10
|
+
});
|
|
11
|
+
/**
|
|
12
|
+
* List network DNS entries
|
|
13
|
+
*/
|
|
14
|
+
export const listNetworkDns = (options) => (options?.client ?? client).get({
|
|
15
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
16
|
+
url: '/v1/dns',
|
|
17
|
+
...options
|
|
18
|
+
});
|
|
19
|
+
/**
|
|
20
|
+
* List available network DNS entries
|
|
21
|
+
*/
|
|
22
|
+
export const listAvailableNetworkDns = (options) => (options.client ?? client).get({
|
|
23
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
24
|
+
url: '/v1/{networkId}/dns/available',
|
|
25
|
+
...options
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* Delete a network
|
|
29
|
+
*/
|
|
30
|
+
export const deleteNetwork = (options) => (options.client ?? client).delete({
|
|
31
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
32
|
+
url: '/v1/{networkId}',
|
|
33
|
+
...options
|
|
34
|
+
});
|
|
35
|
+
/**
|
|
36
|
+
* Get a network
|
|
37
|
+
*/
|
|
38
|
+
export const getNetwork = (options) => (options.client ?? client).get({
|
|
39
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
40
|
+
url: '/v1/{networkId}',
|
|
41
|
+
...options
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* Add a network policy
|
|
45
|
+
*/
|
|
46
|
+
export const addNetworkPolicy = (options) => (options.client ?? client).post({
|
|
47
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
48
|
+
url: '/v1/{networkId}/policies',
|
|
49
|
+
...options,
|
|
50
|
+
headers: {
|
|
51
|
+
'Content-Type': 'application/json',
|
|
52
|
+
...options.headers
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* Delete a network policy
|
|
57
|
+
*/
|
|
58
|
+
export const deleteNetworkPolicy = (options) => (options.client ?? client).delete({
|
|
59
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
60
|
+
url: '/v1/{networkId}/policies/{policyId}',
|
|
61
|
+
...options
|
|
62
|
+
});
|
|
63
|
+
/**
|
|
64
|
+
* Create a single static network
|
|
65
|
+
*/
|
|
66
|
+
export const createSingleStaticNetwork = (options) => (options.client ?? client).post({
|
|
67
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
68
|
+
url: '/v1/static/single',
|
|
69
|
+
...options,
|
|
70
|
+
headers: {
|
|
71
|
+
'Content-Type': 'application/json',
|
|
72
|
+
...options.headers
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
/**
|
|
76
|
+
* Create a CIDR static network
|
|
77
|
+
*/
|
|
78
|
+
export const createCidrStaticNetwork = (options) => (options.client ?? client).post({
|
|
79
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
80
|
+
url: '/v1/static/cidr',
|
|
81
|
+
...options,
|
|
82
|
+
headers: {
|
|
83
|
+
'Content-Type': 'application/json',
|
|
84
|
+
...options.headers
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
/**
|
|
88
|
+
* Create a range static network
|
|
89
|
+
*/
|
|
90
|
+
export const createRangeStaticNetwork = (options) => (options.client ?? client).post({
|
|
91
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
92
|
+
url: '/v1/static/range',
|
|
93
|
+
...options,
|
|
94
|
+
headers: {
|
|
95
|
+
'Content-Type': 'application/json',
|
|
96
|
+
...options.headers
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
/**
|
|
100
|
+
* Create an internal dynamic network
|
|
101
|
+
*/
|
|
102
|
+
export const createInternalDynamicNetwork = (options) => (options.client ?? client).post({
|
|
103
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
104
|
+
url: '/v1/dynamic/internal',
|
|
105
|
+
...options,
|
|
106
|
+
headers: {
|
|
107
|
+
'Content-Type': 'application/json',
|
|
108
|
+
...options.headers
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
/**
|
|
112
|
+
* Create an external dynamic network
|
|
113
|
+
*/
|
|
114
|
+
export const createExternalDynamicNetwork = (options) => (options.client ?? client).post({
|
|
115
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
116
|
+
url: '/v1/dynamic/external',
|
|
117
|
+
...options,
|
|
118
|
+
headers: {
|
|
119
|
+
'Content-Type': 'application/json',
|
|
120
|
+
...options.headers
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
/**
|
|
124
|
+
* Create an encrypted network
|
|
125
|
+
*/
|
|
126
|
+
export const createEncryptedNetwork = (options) => (options.client ?? client).post({
|
|
127
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
128
|
+
url: '/v1/encrypted',
|
|
129
|
+
...options,
|
|
130
|
+
headers: {
|
|
131
|
+
'Content-Type': 'application/json',
|
|
132
|
+
...options.headers
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
/**
|
|
136
|
+
* Update a single static network
|
|
137
|
+
*/
|
|
138
|
+
export const updateSingleStaticNetwork = (options) => (options.client ?? client).patch({
|
|
139
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
140
|
+
url: '/v1/static/single/{networkId}',
|
|
141
|
+
...options,
|
|
142
|
+
headers: {
|
|
143
|
+
'Content-Type': 'application/json',
|
|
144
|
+
...options.headers
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
/**
|
|
148
|
+
* Update a CIDR static network
|
|
149
|
+
*/
|
|
150
|
+
export const updateCidrStaticNetwork = (options) => (options.client ?? client).patch({
|
|
151
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
152
|
+
url: '/v1/static/cidr/{networkId}',
|
|
153
|
+
...options,
|
|
154
|
+
headers: {
|
|
155
|
+
'Content-Type': 'application/json',
|
|
156
|
+
...options.headers
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
/**
|
|
160
|
+
* Update a range static network
|
|
161
|
+
*/
|
|
162
|
+
export const updateRangeStaticNetwork = (options) => (options.client ?? client).patch({
|
|
163
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
164
|
+
url: '/v1/static/range/{networkId}',
|
|
165
|
+
...options,
|
|
166
|
+
headers: {
|
|
167
|
+
'Content-Type': 'application/json',
|
|
168
|
+
...options.headers
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
/**
|
|
172
|
+
* Update an internal dynamic network
|
|
173
|
+
*/
|
|
174
|
+
export const updateInternalDynamicNetwork = (options) => (options.client ?? client).patch({
|
|
175
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
176
|
+
url: '/v1/dynamic/internal/{networkId}',
|
|
177
|
+
...options,
|
|
178
|
+
headers: {
|
|
179
|
+
'Content-Type': 'application/json',
|
|
180
|
+
...options.headers
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
/**
|
|
184
|
+
* Update an external dynamic network
|
|
185
|
+
*/
|
|
186
|
+
export const updateExternalDynamicNetwork = (options) => (options.client ?? client).patch({
|
|
187
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
188
|
+
url: '/v1/dynamic/external/{networkId}',
|
|
189
|
+
...options,
|
|
190
|
+
headers: {
|
|
191
|
+
'Content-Type': 'application/json',
|
|
192
|
+
...options.headers
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
/**
|
|
196
|
+
* Update an encrypted network
|
|
197
|
+
*/
|
|
198
|
+
export const updateEncryptedNetwork = (options) => (options.client ?? client).patch({
|
|
199
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
200
|
+
url: '/v1/encrypted/{networkId}',
|
|
201
|
+
...options,
|
|
202
|
+
headers: {
|
|
203
|
+
'Content-Type': 'application/json',
|
|
204
|
+
...options.headers
|
|
205
|
+
}
|
|
206
|
+
});
|