@scaleway/sdk 2.58.0 → 2.60.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/dist/api/applesilicon/v1alpha1/api.gen.cjs +117 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +54 -1
- package/dist/api/applesilicon/v1alpha1/api.gen.js +120 -3
- package/dist/api/applesilicon/v1alpha1/content.gen.cjs +4 -0
- package/dist/api/applesilicon/v1alpha1/content.gen.d.ts +5 -1
- package/dist/api/applesilicon/v1alpha1/content.gen.js +4 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.cjs +3 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +2 -2
- package/dist/api/applesilicon/v1alpha1/index.gen.js +5 -2
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +60 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.d.ts +6 -1
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +60 -0
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +100 -0
- package/dist/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +12 -0
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +12 -0
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +9 -0
- package/dist/api/edge_services/v1alpha1/types.gen.d.ts +4 -4
- package/dist/api/iam/v1alpha1/api.gen.cjs +54 -0
- package/dist/api/iam/v1alpha1/api.gen.d.ts +26 -1
- package/dist/api/iam/v1alpha1/api.gen.js +55 -1
- package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +23 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +4 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.js +23 -0
- package/dist/api/iam/v1alpha1/types.gen.d.ts +29 -1
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +8 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +7 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +9 -1
- package/dist/api/index.gen.d.ts +2 -1
- package/dist/api/interlink/index.gen.cjs +4 -0
- package/dist/api/interlink/index.gen.d.ts +5 -0
- package/dist/api/interlink/index.gen.js +4 -0
- package/dist/api/interlink/v1beta1/api.gen.cjs +405 -0
- package/dist/api/interlink/v1beta1/api.gen.d.ts +208 -0
- package/dist/api/interlink/v1beta1/api.gen.js +405 -0
- package/dist/api/interlink/v1beta1/index.gen.cjs +6 -0
- package/dist/api/interlink/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/interlink/v1beta1/index.gen.js +6 -0
- package/dist/api/interlink/v1beta1/marshalling.gen.cjs +180 -0
- package/dist/api/interlink/v1beta1/marshalling.gen.d.ts +16 -0
- package/dist/api/interlink/v1beta1/marshalling.gen.js +180 -0
- package/dist/api/interlink/v1beta1/types.gen.d.ts +455 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +107 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +93 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.js +107 -0
- package/dist/api/ipam/v1/api.gen.cjs +1 -0
- package/dist/api/ipam/v1/api.gen.js +1 -0
- package/dist/api/ipam/v1/types.gen.d.ts +12 -10
- package/dist/api/k8s/v1/api.gen.cjs +22 -20
- package/dist/api/k8s/v1/api.gen.d.ts +22 -20
- package/dist/api/k8s/v1/api.gen.js +22 -20
- package/dist/api/k8s/v1/marshalling.gen.cjs +2 -5
- package/dist/api/k8s/v1/marshalling.gen.js +2 -5
- package/dist/api/k8s/v1/types.gen.d.ts +65 -49
- package/dist/api/lb/v1/types.gen.d.ts +6 -6
- package/dist/api/marketplace/v2/types.gen.d.ts +5 -2
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +13 -1
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +8 -1
- package/dist/api/mongodb/v1alpha1/api.gen.js +13 -1
- package/dist/api/mongodb/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +11 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.cjs +8 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.d.ts +7 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.js +8 -0
- package/dist/api/secret/v1beta1/marshalling.gen.cjs +1 -0
- package/dist/api/secret/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/secret/v1beta1/types.gen.d.ts +2 -0
- package/dist/api/vpcgw/index.gen.cjs +2 -0
- package/dist/api/vpcgw/index.gen.d.ts +1 -0
- package/dist/api/vpcgw/index.gen.js +3 -1
- package/dist/api/vpcgw/v2/api.gen.cjs +518 -0
- package/dist/api/vpcgw/v2/api.gen.d.ts +267 -0
- package/dist/api/vpcgw/v2/api.gen.js +518 -0
- package/dist/api/vpcgw/v2/content.gen.cjs +15 -0
- package/dist/api/vpcgw/v2/content.gen.d.ts +5 -0
- package/dist/api/vpcgw/v2/content.gen.js +15 -0
- package/dist/api/vpcgw/v2/index.gen.cjs +7 -0
- package/dist/api/vpcgw/v2/index.gen.d.ts +3 -0
- package/dist/api/vpcgw/v2/index.gen.js +7 -0
- package/dist/api/vpcgw/v2/marshalling.gen.cjs +259 -0
- package/dist/api/vpcgw/v2/marshalling.gen.d.ts +22 -0
- package/dist/api/vpcgw/v2/marshalling.gen.js +259 -0
- package/dist/api/vpcgw/v2/types.gen.d.ts +452 -0
- package/dist/api/webhosting/v1/api.gen.cjs +20 -0
- package/dist/api/webhosting/v1/api.gen.d.ts +8 -1
- package/dist/api/webhosting/v1/api.gen.js +21 -1
- package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
- package/dist/api/webhosting/v1/marshalling.gen.cjs +30 -2
- package/dist/api/webhosting/v1/marshalling.gen.d.ts +2 -1
- package/dist/api/webhosting/v1/marshalling.gen.js +31 -3
- package/dist/api/webhosting/v1/types.gen.d.ts +50 -2
- package/dist/index.cjs +26 -24
- package/dist/index.js +26 -24
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { Zone } from '../../../bridge';
|
|
2
2
|
export type ConnectivityDiagnosticActionType = 'reboot_server' | 'reinstall_server';
|
|
3
3
|
export type ConnectivityDiagnosticDiagnosticStatus = 'unknown_status' | 'processing' | 'error' | 'completed';
|
|
4
|
+
export type ListServerPrivateNetworksRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
|
|
4
5
|
export type ListServersRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
6
|
+
export type ServerPrivateNetworkServerStatus = 'unknown_status' | 'attaching' | 'attached' | 'error' | 'detaching' | 'locked';
|
|
7
|
+
export type ServerPrivateNetworkStatus = 'vpc_unknown_status' | 'vpc_enabled' | 'vpc_updating' | 'vpc_disabled';
|
|
5
8
|
export type ServerStatus = 'unknown_status' | 'starting' | 'ready' | 'error' | 'rebooting' | 'updating' | 'locking' | 'locked' | 'unlocking' | 'reinstalling' | 'busy';
|
|
6
9
|
export type ServerTypeStock = 'unknown_stock' | 'no_stock' | 'low_stock' | 'high_stock';
|
|
7
10
|
export interface OS {
|
|
@@ -51,6 +54,26 @@ export interface ConnectivityDiagnosticServerHealth {
|
|
|
51
54
|
isSshPortUp: boolean;
|
|
52
55
|
isVncPortUp: boolean;
|
|
53
56
|
}
|
|
57
|
+
export interface ServerPrivateNetwork {
|
|
58
|
+
/** ID of the Server-to-Private Network mapping. */
|
|
59
|
+
id: string;
|
|
60
|
+
/** Private Network Project ID. */
|
|
61
|
+
projectId: string;
|
|
62
|
+
/** Apple silicon server ID. */
|
|
63
|
+
serverId: string;
|
|
64
|
+
/** Private Network ID. */
|
|
65
|
+
privateNetworkId: string;
|
|
66
|
+
/** ID of the VLAN associated with the Private Network. */
|
|
67
|
+
vlan?: number;
|
|
68
|
+
/** Configuration status of the Private Network. */
|
|
69
|
+
status: ServerPrivateNetworkServerStatus;
|
|
70
|
+
/** Private Network creation date. */
|
|
71
|
+
createdAt?: Date;
|
|
72
|
+
/** Date the Private Network was last modified. */
|
|
73
|
+
updatedAt?: Date;
|
|
74
|
+
/** IPAM IP IDs of the server, if it has any. */
|
|
75
|
+
ipamIpIds: string[];
|
|
76
|
+
}
|
|
54
77
|
export interface ServerType {
|
|
55
78
|
/** CPU description. */
|
|
56
79
|
cpu?: ServerTypeCPU;
|
|
@@ -121,6 +144,11 @@ export interface Server {
|
|
|
121
144
|
* using the server status.
|
|
122
145
|
*/
|
|
123
146
|
delivered: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Activation status of optional Private Network feature support for this
|
|
149
|
+
* server.
|
|
150
|
+
*/
|
|
151
|
+
vpcStatus: ServerPrivateNetworkStatus;
|
|
124
152
|
}
|
|
125
153
|
export interface ConnectivityDiagnostic {
|
|
126
154
|
id: string;
|
|
@@ -145,6 +173,11 @@ export type CreateServerRequest = {
|
|
|
145
173
|
* induce an extended delivery time.
|
|
146
174
|
*/
|
|
147
175
|
osId?: string;
|
|
176
|
+
/**
|
|
177
|
+
* Activate the Private Network feature for this server. This feature is
|
|
178
|
+
* configured through the Apple Silicon - Private Networks API.
|
|
179
|
+
*/
|
|
180
|
+
enableVpc: boolean;
|
|
148
181
|
};
|
|
149
182
|
export type DeleteServerRequest = {
|
|
150
183
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
@@ -199,6 +232,10 @@ export interface ListOSResponse {
|
|
|
199
232
|
/** List of OS. */
|
|
200
233
|
os: OS[];
|
|
201
234
|
}
|
|
235
|
+
export interface ListServerPrivateNetworksResponse {
|
|
236
|
+
serverPrivateNetworks: ServerPrivateNetwork[];
|
|
237
|
+
totalCount: number;
|
|
238
|
+
}
|
|
202
239
|
export type ListServerTypesRequest = {
|
|
203
240
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
204
241
|
zone?: Zone;
|
|
@@ -230,6 +267,64 @@ export interface ListServersResponse {
|
|
|
230
267
|
/** Paginated returned servers. */
|
|
231
268
|
servers: Server[];
|
|
232
269
|
}
|
|
270
|
+
export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
|
|
271
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
272
|
+
zone?: Zone;
|
|
273
|
+
/** ID of the server. */
|
|
274
|
+
serverId: string;
|
|
275
|
+
/** ID of the Private Network. */
|
|
276
|
+
privateNetworkId: string;
|
|
277
|
+
/** IPAM IDs of IPs to attach to the server. */
|
|
278
|
+
ipamIpIds?: string[];
|
|
279
|
+
};
|
|
280
|
+
export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
|
|
281
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
282
|
+
zone?: Zone;
|
|
283
|
+
/** ID of the server. */
|
|
284
|
+
serverId: string;
|
|
285
|
+
/** ID of the Private Network. */
|
|
286
|
+
privateNetworkId: string;
|
|
287
|
+
};
|
|
288
|
+
export type PrivateNetworkApiGetServerPrivateNetworkRequest = {
|
|
289
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
290
|
+
zone?: Zone;
|
|
291
|
+
serverId: string;
|
|
292
|
+
privateNetworkId: string;
|
|
293
|
+
};
|
|
294
|
+
export type PrivateNetworkApiListServerPrivateNetworksRequest = {
|
|
295
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
296
|
+
zone?: Zone;
|
|
297
|
+
/** Sort order for the returned Private Networks. */
|
|
298
|
+
orderBy?: ListServerPrivateNetworksRequestOrderBy;
|
|
299
|
+
/** Page number for the returned Private Networks. */
|
|
300
|
+
page?: number;
|
|
301
|
+
/** Maximum number of Private Networks per page. */
|
|
302
|
+
pageSize?: number;
|
|
303
|
+
/** Filter Private Networks by server ID. */
|
|
304
|
+
serverId?: string;
|
|
305
|
+
/** Filter Private Networks by Private Network ID. */
|
|
306
|
+
privateNetworkId?: string;
|
|
307
|
+
/** Filter Private Networks by Organization ID. */
|
|
308
|
+
organizationId?: string;
|
|
309
|
+
/** Filter Private Networks by Project ID. */
|
|
310
|
+
projectId?: string;
|
|
311
|
+
/** Filter Private Networks by IPAM IP IDs. */
|
|
312
|
+
ipamIpIds?: string[];
|
|
313
|
+
};
|
|
314
|
+
export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
|
|
315
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
316
|
+
zone?: Zone;
|
|
317
|
+
/** ID of the server. */
|
|
318
|
+
serverId: string;
|
|
319
|
+
/**
|
|
320
|
+
* Object where the keys are the IDs of Private Networks and the values are
|
|
321
|
+
* arrays of IPAM IDs representing the IPs to assign to this Apple silicon
|
|
322
|
+
* server on the Private Network. If the array supplied for a Private Network
|
|
323
|
+
* is empty, the next available IP from the Private Network's CIDR block will
|
|
324
|
+
* automatically be used for attachment.
|
|
325
|
+
*/
|
|
326
|
+
perPrivateNetworkIpamIpIds: Record<string, string[]>;
|
|
327
|
+
};
|
|
233
328
|
export type RebootServerRequest = {
|
|
234
329
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
235
330
|
zone?: Zone;
|
|
@@ -247,6 +342,9 @@ export type ReinstallServerRequest = {
|
|
|
247
342
|
*/
|
|
248
343
|
osId?: string;
|
|
249
344
|
};
|
|
345
|
+
export interface SetServerPrivateNetworksResponse {
|
|
346
|
+
serverPrivateNetworks: ServerPrivateNetwork[];
|
|
347
|
+
}
|
|
250
348
|
export type StartConnectivityDiagnosticRequest = {
|
|
251
349
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
252
350
|
zone?: Zone;
|
|
@@ -264,4 +362,6 @@ export type UpdateServerRequest = {
|
|
|
264
362
|
name?: string;
|
|
265
363
|
/** Specify whether the server should be flagged for automatic deletion. */
|
|
266
364
|
scheduleDeletion?: boolean;
|
|
365
|
+
/** Activate or deactivate Private Network support for this server. */
|
|
366
|
+
enableVpc?: boolean;
|
|
267
367
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { API } from './api.gen';
|
|
2
|
-
export type { Event, EventPrincipal, KubernetesACLInfo, KubernetesClusterInfo, KubernetesNodeInfo, KubernetesPoolInfo, ListEventsRequest, ListEventsRequestOrderBy, ListEventsResponse, ListProductsRequest, ListProductsResponse, Product, Resource, ResourceType, SecretManagerSecretInfo, SecretManagerSecretVersionInfo, } from './types.gen';
|
|
2
|
+
export type { Event, EventPrincipal, KubernetesACLInfo, KubernetesClusterInfo, KubernetesNodeInfo, KubernetesPoolInfo, ListEventsRequest, ListEventsRequestOrderBy, ListEventsResponse, ListProductsRequest, ListProductsResponse, Product, ProductService, Resource, ResourceType, SecretManagerSecretInfo, SecretManagerSecretVersionInfo, } from './types.gen';
|
|
3
3
|
export * as ValidationRules from './validation-rules.gen';
|
|
@@ -127,6 +127,17 @@ const unmarshalListEventsResponse = (data) => {
|
|
|
127
127
|
nextPageToken: data.next_page_token
|
|
128
128
|
};
|
|
129
129
|
};
|
|
130
|
+
const unmarshalProductService = (data) => {
|
|
131
|
+
if (!json.isJSONObject(data)) {
|
|
132
|
+
throw new TypeError(
|
|
133
|
+
`Unmarshalling the type 'ProductService' failed as data isn't a dictionary.`
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
return {
|
|
137
|
+
methods: data.methods,
|
|
138
|
+
name: data.name
|
|
139
|
+
};
|
|
140
|
+
};
|
|
130
141
|
const unmarshalProduct = (data) => {
|
|
131
142
|
if (!json.isJSONObject(data)) {
|
|
132
143
|
throw new TypeError(
|
|
@@ -135,6 +146,7 @@ const unmarshalProduct = (data) => {
|
|
|
135
146
|
}
|
|
136
147
|
return {
|
|
137
148
|
name: data.name,
|
|
149
|
+
services: marshalling.unmarshalArrayOfObject(data.services, unmarshalProductService),
|
|
138
150
|
title: data.title
|
|
139
151
|
};
|
|
140
152
|
};
|
|
@@ -125,6 +125,17 @@ const unmarshalListEventsResponse = (data) => {
|
|
|
125
125
|
nextPageToken: data.next_page_token
|
|
126
126
|
};
|
|
127
127
|
};
|
|
128
|
+
const unmarshalProductService = (data) => {
|
|
129
|
+
if (!isJSONObject(data)) {
|
|
130
|
+
throw new TypeError(
|
|
131
|
+
`Unmarshalling the type 'ProductService' failed as data isn't a dictionary.`
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
return {
|
|
135
|
+
methods: data.methods,
|
|
136
|
+
name: data.name
|
|
137
|
+
};
|
|
138
|
+
};
|
|
128
139
|
const unmarshalProduct = (data) => {
|
|
129
140
|
if (!isJSONObject(data)) {
|
|
130
141
|
throw new TypeError(
|
|
@@ -133,6 +144,7 @@ const unmarshalProduct = (data) => {
|
|
|
133
144
|
}
|
|
134
145
|
return {
|
|
135
146
|
name: data.name,
|
|
147
|
+
services: unmarshalArrayOfObject(data.services, unmarshalProductService),
|
|
136
148
|
title: data.title
|
|
137
149
|
};
|
|
138
150
|
};
|
|
@@ -66,6 +66,10 @@ export interface Resource {
|
|
|
66
66
|
*/
|
|
67
67
|
kubeAclInfo?: KubernetesACLInfo;
|
|
68
68
|
}
|
|
69
|
+
export interface ProductService {
|
|
70
|
+
name: string;
|
|
71
|
+
methods: string[];
|
|
72
|
+
}
|
|
69
73
|
export interface Event {
|
|
70
74
|
/** ID of the event. */
|
|
71
75
|
id: string;
|
|
@@ -103,6 +107,11 @@ export interface Product {
|
|
|
103
107
|
title: string;
|
|
104
108
|
/** Product name. */
|
|
105
109
|
name: string;
|
|
110
|
+
/**
|
|
111
|
+
* Specifies the API versions of the products integrated with Audit Trail.
|
|
112
|
+
* Each version defines the methods logged by Audit Trail.
|
|
113
|
+
*/
|
|
114
|
+
services: ProductService[];
|
|
106
115
|
}
|
|
107
116
|
export type ListEventsRequest = {
|
|
108
117
|
/**
|
|
@@ -433,22 +433,22 @@ export interface GetBillingResponse {
|
|
|
433
433
|
pipelineNumber: number;
|
|
434
434
|
/**
|
|
435
435
|
* Cost to date (this month) of pipelines not included in the subscription
|
|
436
|
-
*
|
|
436
|
+
* plans.
|
|
437
437
|
*/
|
|
438
438
|
extraPipelinesCost?: Money;
|
|
439
439
|
/**
|
|
440
440
|
* Total amount of data egressed from the cache in gigabytes from the
|
|
441
|
-
* beginning of the month,
|
|
441
|
+
* beginning of the month, for the active subscription plan.
|
|
442
442
|
*/
|
|
443
443
|
currentPlanCacheUsage: number;
|
|
444
444
|
/**
|
|
445
445
|
* Total amount of extra data egressed from cache in gigabytes from the
|
|
446
|
-
* beginning of the month, not included in the
|
|
446
|
+
* beginning of the month, not included in the subscription plans.
|
|
447
447
|
*/
|
|
448
448
|
extraCacheUsage: number;
|
|
449
449
|
/**
|
|
450
450
|
* Cost to date (this month) of the data egressed from the cache that is not
|
|
451
|
-
* included in the
|
|
451
|
+
* included in the subscription plans.
|
|
452
452
|
*/
|
|
453
453
|
extraCacheCost?: Money;
|
|
454
454
|
/**
|
|
@@ -196,6 +196,24 @@ class API extends api.API {
|
|
|
196
196
|
},
|
|
197
197
|
marshalling_gen.unmarshalUser
|
|
198
198
|
);
|
|
199
|
+
/**
|
|
200
|
+
* Update an user's username. Private Beta feature.. Update an user's
|
|
201
|
+
* username. Private Beta feature.
|
|
202
|
+
*
|
|
203
|
+
* @param request - The request {@link UpdateUserUsernameRequest}
|
|
204
|
+
* @returns A Promise of User
|
|
205
|
+
*/
|
|
206
|
+
updateUserUsername = (request) => this.client.fetch(
|
|
207
|
+
{
|
|
208
|
+
body: JSON.stringify(
|
|
209
|
+
marshalling_gen.marshalUpdateUserUsernameRequest(request, this.client.settings)
|
|
210
|
+
),
|
|
211
|
+
headers: jsonContentHeaders,
|
|
212
|
+
method: "POST",
|
|
213
|
+
path: `/iam/v1alpha1/users/${marshalling.validatePathParam("userId", request.userId)}/update-username`
|
|
214
|
+
},
|
|
215
|
+
marshalling_gen.unmarshalUser
|
|
216
|
+
);
|
|
199
217
|
/**
|
|
200
218
|
* Update an user's password. Private Beta feature.. Update an user's
|
|
201
219
|
* password. Private Beta feature.
|
|
@@ -1012,5 +1030,41 @@ class API extends api.API {
|
|
|
1012
1030
|
},
|
|
1013
1031
|
marshalling_gen.unmarshalLog
|
|
1014
1032
|
);
|
|
1033
|
+
/**
|
|
1034
|
+
* Get security settings of an Organization. Retrieve information about the
|
|
1035
|
+
* security settings of an Organization, specified by the `organization_id`
|
|
1036
|
+
* parameter.
|
|
1037
|
+
*
|
|
1038
|
+
* @param request - The request {@link GetOrganizationSecuritySettingsRequest}
|
|
1039
|
+
* @returns A Promise of OrganizationSecuritySettings
|
|
1040
|
+
*/
|
|
1041
|
+
getOrganizationSecuritySettings = (request = {}) => this.client.fetch(
|
|
1042
|
+
{
|
|
1043
|
+
method: "GET",
|
|
1044
|
+
path: `/iam/v1alpha1/organizations/${marshalling.validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/security-settings`
|
|
1045
|
+
},
|
|
1046
|
+
marshalling_gen.unmarshalOrganizationSecuritySettings
|
|
1047
|
+
);
|
|
1048
|
+
/**
|
|
1049
|
+
* Update the security settings of an Organization.
|
|
1050
|
+
*
|
|
1051
|
+
* @param request - The request
|
|
1052
|
+
* {@link UpdateOrganizationSecuritySettingsRequest}
|
|
1053
|
+
* @returns A Promise of OrganizationSecuritySettings
|
|
1054
|
+
*/
|
|
1055
|
+
updateOrganizationSecuritySettings = (request = {}) => this.client.fetch(
|
|
1056
|
+
{
|
|
1057
|
+
body: JSON.stringify(
|
|
1058
|
+
marshalling_gen.marshalUpdateOrganizationSecuritySettingsRequest(
|
|
1059
|
+
request,
|
|
1060
|
+
this.client.settings
|
|
1061
|
+
)
|
|
1062
|
+
),
|
|
1063
|
+
headers: jsonContentHeaders,
|
|
1064
|
+
method: "PATCH",
|
|
1065
|
+
path: `/iam/v1alpha1/organizations/${marshalling.validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/security-settings`
|
|
1066
|
+
},
|
|
1067
|
+
marshalling_gen.unmarshalOrganizationSecuritySettings
|
|
1068
|
+
);
|
|
1015
1069
|
}
|
|
1016
1070
|
exports.API = API;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
|
-
import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsResponse, ListGracePeriodsRequest, ListGracePeriodsResponse, ListGroupsRequest, ListGroupsResponse, ListJWTsRequest, ListJWTsResponse, ListLogsRequest, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesResponse, ListQuotaRequest, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysResponse, ListUsersRequest, ListUsersResponse, LockUserRequest, Log, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, User } from './types.gen';
|
|
2
|
+
import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetOrganizationSecuritySettingsRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsResponse, ListGracePeriodsRequest, ListGracePeriodsResponse, ListGroupsRequest, ListGroupsResponse, ListJWTsRequest, ListJWTsResponse, ListLogsRequest, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesResponse, ListQuotaRequest, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysResponse, ListUsersRequest, ListUsersResponse, LockUserRequest, Log, OrganizationSecuritySettings, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, UpdateUserUsernameRequest, User } from './types.gen';
|
|
3
3
|
/**
|
|
4
4
|
* IAM API.
|
|
5
5
|
*
|
|
@@ -103,6 +103,14 @@ export declare class API extends ParentAPI {
|
|
|
103
103
|
* @returns A Promise of User
|
|
104
104
|
*/
|
|
105
105
|
createUser: (request?: Readonly<CreateUserRequest>) => Promise<User>;
|
|
106
|
+
/**
|
|
107
|
+
* Update an user's username. Private Beta feature.. Update an user's
|
|
108
|
+
* username. Private Beta feature.
|
|
109
|
+
*
|
|
110
|
+
* @param request - The request {@link UpdateUserUsernameRequest}
|
|
111
|
+
* @returns A Promise of User
|
|
112
|
+
*/
|
|
113
|
+
updateUserUsername: (request: Readonly<UpdateUserUsernameRequest>) => Promise<User>;
|
|
106
114
|
/**
|
|
107
115
|
* Update an user's password. Private Beta feature.. Update an user's
|
|
108
116
|
* password. Private Beta feature.
|
|
@@ -508,4 +516,21 @@ export declare class API extends ParentAPI {
|
|
|
508
516
|
* @returns A Promise of Log
|
|
509
517
|
*/
|
|
510
518
|
getLog: (request: Readonly<GetLogRequest>) => Promise<Log>;
|
|
519
|
+
/**
|
|
520
|
+
* Get security settings of an Organization. Retrieve information about the
|
|
521
|
+
* security settings of an Organization, specified by the `organization_id`
|
|
522
|
+
* parameter.
|
|
523
|
+
*
|
|
524
|
+
* @param request - The request {@link GetOrganizationSecuritySettingsRequest}
|
|
525
|
+
* @returns A Promise of OrganizationSecuritySettings
|
|
526
|
+
*/
|
|
527
|
+
getOrganizationSecuritySettings: (request?: Readonly<GetOrganizationSecuritySettingsRequest>) => Promise<OrganizationSecuritySettings>;
|
|
528
|
+
/**
|
|
529
|
+
* Update the security settings of an Organization.
|
|
530
|
+
*
|
|
531
|
+
* @param request - The request
|
|
532
|
+
* {@link UpdateOrganizationSecuritySettingsRequest}
|
|
533
|
+
* @returns A Promise of OrganizationSecuritySettings
|
|
534
|
+
*/
|
|
535
|
+
updateOrganizationSecuritySettings: (request?: Readonly<UpdateOrganizationSecuritySettingsRequest>) => Promise<OrganizationSecuritySettings>;
|
|
511
536
|
}
|
|
@@ -2,7 +2,7 @@ import { API as API$1 } from "../../../scw/api.js";
|
|
|
2
2
|
import { urlParams, validatePathParam, resolveOneOf } from "../../../helpers/marshalling.js";
|
|
3
3
|
import "../../../vendor/base64/index.js";
|
|
4
4
|
import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
|
|
5
|
-
import { unmarshalListSSHKeysResponse, marshalCreateSSHKeyRequest, unmarshalSSHKey, marshalUpdateSSHKeyRequest, unmarshalListUsersResponse, unmarshalUser, marshalUpdateUserRequest, marshalCreateUserRequest, marshalUpdateUserPasswordRequest, unmarshalListGracePeriodsResponse, unmarshalListApplicationsResponse, marshalCreateApplicationRequest, unmarshalApplication, marshalUpdateApplicationRequest, unmarshalListGroupsResponse, marshalCreateGroupRequest, unmarshalGroup, marshalUpdateGroupRequest, marshalSetGroupMembersRequest, marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalRemoveGroupMemberRequest, unmarshalListPoliciesResponse, marshalCreatePolicyRequest, unmarshalPolicy, marshalUpdatePolicyRequest, marshalSetRulesRequest, unmarshalSetRulesResponse, unmarshalListRulesResponse, unmarshalListPermissionSetsResponse, unmarshalListAPIKeysResponse, marshalCreateAPIKeyRequest, unmarshalAPIKey, marshalUpdateAPIKeyRequest, unmarshalListQuotaResponse, unmarshalQuotum, unmarshalListJWTsResponse, marshalCreateJWTRequest, unmarshalEncodedJWT, unmarshalJWT, unmarshalListLogsResponse, unmarshalLog } from "./marshalling.gen.js";
|
|
5
|
+
import { unmarshalListSSHKeysResponse, marshalCreateSSHKeyRequest, unmarshalSSHKey, marshalUpdateSSHKeyRequest, unmarshalListUsersResponse, unmarshalUser, marshalUpdateUserRequest, marshalCreateUserRequest, marshalUpdateUserUsernameRequest, marshalUpdateUserPasswordRequest, unmarshalListGracePeriodsResponse, unmarshalListApplicationsResponse, marshalCreateApplicationRequest, unmarshalApplication, marshalUpdateApplicationRequest, unmarshalListGroupsResponse, marshalCreateGroupRequest, unmarshalGroup, marshalUpdateGroupRequest, marshalSetGroupMembersRequest, marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalRemoveGroupMemberRequest, unmarshalListPoliciesResponse, marshalCreatePolicyRequest, unmarshalPolicy, marshalUpdatePolicyRequest, marshalSetRulesRequest, unmarshalSetRulesResponse, unmarshalListRulesResponse, unmarshalListPermissionSetsResponse, unmarshalListAPIKeysResponse, marshalCreateAPIKeyRequest, unmarshalAPIKey, marshalUpdateAPIKeyRequest, unmarshalListQuotaResponse, unmarshalQuotum, unmarshalListJWTsResponse, marshalCreateJWTRequest, unmarshalEncodedJWT, unmarshalJWT, unmarshalListLogsResponse, unmarshalLog, unmarshalOrganizationSecuritySettings, marshalUpdateOrganizationSecuritySettingsRequest } from "./marshalling.gen.js";
|
|
6
6
|
const jsonContentHeaders = {
|
|
7
7
|
"Content-Type": "application/json; charset=utf-8"
|
|
8
8
|
};
|
|
@@ -194,6 +194,24 @@ class API extends API$1 {
|
|
|
194
194
|
},
|
|
195
195
|
unmarshalUser
|
|
196
196
|
);
|
|
197
|
+
/**
|
|
198
|
+
* Update an user's username. Private Beta feature.. Update an user's
|
|
199
|
+
* username. Private Beta feature.
|
|
200
|
+
*
|
|
201
|
+
* @param request - The request {@link UpdateUserUsernameRequest}
|
|
202
|
+
* @returns A Promise of User
|
|
203
|
+
*/
|
|
204
|
+
updateUserUsername = (request) => this.client.fetch(
|
|
205
|
+
{
|
|
206
|
+
body: JSON.stringify(
|
|
207
|
+
marshalUpdateUserUsernameRequest(request, this.client.settings)
|
|
208
|
+
),
|
|
209
|
+
headers: jsonContentHeaders,
|
|
210
|
+
method: "POST",
|
|
211
|
+
path: `/iam/v1alpha1/users/${validatePathParam("userId", request.userId)}/update-username`
|
|
212
|
+
},
|
|
213
|
+
unmarshalUser
|
|
214
|
+
);
|
|
197
215
|
/**
|
|
198
216
|
* Update an user's password. Private Beta feature.. Update an user's
|
|
199
217
|
* password. Private Beta feature.
|
|
@@ -1010,6 +1028,42 @@ class API extends API$1 {
|
|
|
1010
1028
|
},
|
|
1011
1029
|
unmarshalLog
|
|
1012
1030
|
);
|
|
1031
|
+
/**
|
|
1032
|
+
* Get security settings of an Organization. Retrieve information about the
|
|
1033
|
+
* security settings of an Organization, specified by the `organization_id`
|
|
1034
|
+
* parameter.
|
|
1035
|
+
*
|
|
1036
|
+
* @param request - The request {@link GetOrganizationSecuritySettingsRequest}
|
|
1037
|
+
* @returns A Promise of OrganizationSecuritySettings
|
|
1038
|
+
*/
|
|
1039
|
+
getOrganizationSecuritySettings = (request = {}) => this.client.fetch(
|
|
1040
|
+
{
|
|
1041
|
+
method: "GET",
|
|
1042
|
+
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/security-settings`
|
|
1043
|
+
},
|
|
1044
|
+
unmarshalOrganizationSecuritySettings
|
|
1045
|
+
);
|
|
1046
|
+
/**
|
|
1047
|
+
* Update the security settings of an Organization.
|
|
1048
|
+
*
|
|
1049
|
+
* @param request - The request
|
|
1050
|
+
* {@link UpdateOrganizationSecuritySettingsRequest}
|
|
1051
|
+
* @returns A Promise of OrganizationSecuritySettings
|
|
1052
|
+
*/
|
|
1053
|
+
updateOrganizationSecuritySettings = (request = {}) => this.client.fetch(
|
|
1054
|
+
{
|
|
1055
|
+
body: JSON.stringify(
|
|
1056
|
+
marshalUpdateOrganizationSecuritySettingsRequest(
|
|
1057
|
+
request,
|
|
1058
|
+
this.client.settings
|
|
1059
|
+
)
|
|
1060
|
+
),
|
|
1061
|
+
headers: jsonContentHeaders,
|
|
1062
|
+
method: "PATCH",
|
|
1063
|
+
path: `/iam/v1alpha1/organizations/${validatePathParam("organizationId", request.organizationId ?? this.client.settings.defaultOrganizationId)}/security-settings`
|
|
1064
|
+
},
|
|
1065
|
+
unmarshalOrganizationSecuritySettings
|
|
1066
|
+
);
|
|
1013
1067
|
}
|
|
1014
1068
|
export {
|
|
1015
1069
|
API
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { API } from './api.gen';
|
|
2
|
-
export type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, BearerType, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, CreateUserRequestMember, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, GracePeriod, GracePeriodType, Group, JWT, ListAPIKeysRequest, ListAPIKeysRequestOrderBy, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, ListGracePeriodsRequest, ListGracePeriodsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListJWTsRequest, ListJWTsRequestOrderBy, ListJWTsResponse, ListLogsRequest, ListLogsRequestOrderBy, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsRequestOrderBy, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesRequestOrderBy, ListPoliciesResponse, ListQuotaRequest, ListQuotaRequestOrderBy, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysRequestOrderBy, ListSSHKeysResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, LockUserRequest, Log, LogAction, LogResourceType, PermissionSet, PermissionSetScopeType, Policy, Quotum, RemoveGroupMemberRequest, Rule, RuleSpecs, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, User, UserStatus, UserType, } from './types.gen';
|
|
2
|
+
export type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, BearerType, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, CreateUserRequestMember, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetOrganizationSecuritySettingsRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, GracePeriod, GracePeriodType, Group, JWT, ListAPIKeysRequest, ListAPIKeysRequestOrderBy, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, ListGracePeriodsRequest, ListGracePeriodsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListJWTsRequest, ListJWTsRequestOrderBy, ListJWTsResponse, ListLogsRequest, ListLogsRequestOrderBy, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsRequestOrderBy, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesRequestOrderBy, ListPoliciesResponse, ListQuotaRequest, ListQuotaRequestOrderBy, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysRequestOrderBy, ListSSHKeysResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, LockUserRequest, Log, LogAction, LogResourceType, OrganizationSecuritySettings, PermissionSet, PermissionSetScopeType, Policy, Quotum, RemoveGroupMemberRequest, Rule, RuleSpecs, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UnlockUserRequest, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, UpdateUserUsernameRequest, User, UserStatus, UserType, } from './types.gen';
|
|
3
3
|
export * as ValidationRules from './validation-rules.gen';
|
|
@@ -379,6 +379,18 @@ const unmarshalListUsersResponse = (data) => {
|
|
|
379
379
|
users: marshalling.unmarshalArrayOfObject(data.users, unmarshalUser)
|
|
380
380
|
};
|
|
381
381
|
};
|
|
382
|
+
const unmarshalOrganizationSecuritySettings = (data) => {
|
|
383
|
+
if (!json.isJSONObject(data)) {
|
|
384
|
+
throw new TypeError(
|
|
385
|
+
`Unmarshalling the type 'OrganizationSecuritySettings' failed as data isn't a dictionary.`
|
|
386
|
+
);
|
|
387
|
+
}
|
|
388
|
+
return {
|
|
389
|
+
enforcePasswordRenewal: data.enforce_password_renewal,
|
|
390
|
+
gracePeriodDuration: data.grace_period_duration,
|
|
391
|
+
loginAttemptsBeforeLocked: data.login_attempts_before_locked
|
|
392
|
+
};
|
|
393
|
+
};
|
|
382
394
|
const unmarshalSetRulesResponse = (data) => {
|
|
383
395
|
if (!json.isJSONObject(data)) {
|
|
384
396
|
throw new TypeError(
|
|
@@ -496,6 +508,11 @@ const marshalUpdateGroupRequest = (request, defaults) => ({
|
|
|
496
508
|
name: request.name,
|
|
497
509
|
tags: request.tags
|
|
498
510
|
});
|
|
511
|
+
const marshalUpdateOrganizationSecuritySettingsRequest = (request, defaults) => ({
|
|
512
|
+
enforce_password_renewal: request.enforcePasswordRenewal,
|
|
513
|
+
grace_period_duration: request.gracePeriodDuration,
|
|
514
|
+
login_attempts_before_locked: request.loginAttemptsBeforeLocked
|
|
515
|
+
});
|
|
499
516
|
const marshalUpdatePolicyRequest = (request, defaults) => ({
|
|
500
517
|
description: request.description,
|
|
501
518
|
name: request.name,
|
|
@@ -519,6 +536,9 @@ const marshalUpdateUserRequest = (request, defaults) => ({
|
|
|
519
536
|
email: request.email,
|
|
520
537
|
tags: request.tags
|
|
521
538
|
});
|
|
539
|
+
const marshalUpdateUserUsernameRequest = (request, defaults) => ({
|
|
540
|
+
username: request.username
|
|
541
|
+
});
|
|
522
542
|
exports.marshalAddGroupMemberRequest = marshalAddGroupMemberRequest;
|
|
523
543
|
exports.marshalAddGroupMembersRequest = marshalAddGroupMembersRequest;
|
|
524
544
|
exports.marshalCreateAPIKeyRequest = marshalCreateAPIKeyRequest;
|
|
@@ -534,10 +554,12 @@ exports.marshalSetRulesRequest = marshalSetRulesRequest;
|
|
|
534
554
|
exports.marshalUpdateAPIKeyRequest = marshalUpdateAPIKeyRequest;
|
|
535
555
|
exports.marshalUpdateApplicationRequest = marshalUpdateApplicationRequest;
|
|
536
556
|
exports.marshalUpdateGroupRequest = marshalUpdateGroupRequest;
|
|
557
|
+
exports.marshalUpdateOrganizationSecuritySettingsRequest = marshalUpdateOrganizationSecuritySettingsRequest;
|
|
537
558
|
exports.marshalUpdatePolicyRequest = marshalUpdatePolicyRequest;
|
|
538
559
|
exports.marshalUpdateSSHKeyRequest = marshalUpdateSSHKeyRequest;
|
|
539
560
|
exports.marshalUpdateUserPasswordRequest = marshalUpdateUserPasswordRequest;
|
|
540
561
|
exports.marshalUpdateUserRequest = marshalUpdateUserRequest;
|
|
562
|
+
exports.marshalUpdateUserUsernameRequest = marshalUpdateUserUsernameRequest;
|
|
541
563
|
exports.unmarshalAPIKey = unmarshalAPIKey;
|
|
542
564
|
exports.unmarshalApplication = unmarshalApplication;
|
|
543
565
|
exports.unmarshalEncodedJWT = unmarshalEncodedJWT;
|
|
@@ -556,6 +578,7 @@ exports.unmarshalListRulesResponse = unmarshalListRulesResponse;
|
|
|
556
578
|
exports.unmarshalListSSHKeysResponse = unmarshalListSSHKeysResponse;
|
|
557
579
|
exports.unmarshalListUsersResponse = unmarshalListUsersResponse;
|
|
558
580
|
exports.unmarshalLog = unmarshalLog;
|
|
581
|
+
exports.unmarshalOrganizationSecuritySettings = unmarshalOrganizationSecuritySettings;
|
|
559
582
|
exports.unmarshalPolicy = unmarshalPolicy;
|
|
560
583
|
exports.unmarshalQuotum = unmarshalQuotum;
|
|
561
584
|
exports.unmarshalSSHKey = unmarshalSSHKey;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultValues } from '../../../bridge';
|
|
2
|
-
import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, EncodedJWT, Group, JWT, ListAPIKeysResponse, ListApplicationsResponse, ListGracePeriodsResponse, ListGroupsResponse, ListJWTsResponse, ListLogsResponse, ListPermissionSetsResponse, ListPoliciesResponse, ListQuotaResponse, ListRulesResponse, ListSSHKeysResponse, ListUsersResponse, Log, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, User } from './types.gen';
|
|
2
|
+
import type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, EncodedJWT, Group, JWT, ListAPIKeysResponse, ListApplicationsResponse, ListGracePeriodsResponse, ListGroupsResponse, ListJWTsResponse, ListLogsResponse, ListPermissionSetsResponse, ListPoliciesResponse, ListQuotaResponse, ListRulesResponse, ListSSHKeysResponse, ListUsersResponse, Log, OrganizationSecuritySettings, Policy, Quotum, RemoveGroupMemberRequest, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdateOrganizationSecuritySettingsRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserPasswordRequest, UpdateUserRequest, UpdateUserUsernameRequest, User } from './types.gen';
|
|
3
3
|
export declare const unmarshalJWT: (data: unknown) => JWT;
|
|
4
4
|
export declare const unmarshalAPIKey: (data: unknown) => APIKey;
|
|
5
5
|
export declare const unmarshalApplication: (data: unknown) => Application;
|
|
@@ -22,6 +22,7 @@ export declare const unmarshalListQuotaResponse: (data: unknown) => ListQuotaRes
|
|
|
22
22
|
export declare const unmarshalListRulesResponse: (data: unknown) => ListRulesResponse;
|
|
23
23
|
export declare const unmarshalListSSHKeysResponse: (data: unknown) => ListSSHKeysResponse;
|
|
24
24
|
export declare const unmarshalListUsersResponse: (data: unknown) => ListUsersResponse;
|
|
25
|
+
export declare const unmarshalOrganizationSecuritySettings: (data: unknown) => OrganizationSecuritySettings;
|
|
25
26
|
export declare const unmarshalSetRulesResponse: (data: unknown) => SetRulesResponse;
|
|
26
27
|
export declare const marshalAddGroupMemberRequest: (request: AddGroupMemberRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
27
28
|
export declare const marshalAddGroupMembersRequest: (request: AddGroupMembersRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -38,7 +39,9 @@ export declare const marshalSetRulesRequest: (request: SetRulesRequest, defaults
|
|
|
38
39
|
export declare const marshalUpdateAPIKeyRequest: (request: UpdateAPIKeyRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
39
40
|
export declare const marshalUpdateApplicationRequest: (request: UpdateApplicationRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
40
41
|
export declare const marshalUpdateGroupRequest: (request: UpdateGroupRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
42
|
+
export declare const marshalUpdateOrganizationSecuritySettingsRequest: (request: UpdateOrganizationSecuritySettingsRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
41
43
|
export declare const marshalUpdatePolicyRequest: (request: UpdatePolicyRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
42
44
|
export declare const marshalUpdateSSHKeyRequest: (request: UpdateSSHKeyRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
43
45
|
export declare const marshalUpdateUserPasswordRequest: (request: UpdateUserPasswordRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
44
46
|
export declare const marshalUpdateUserRequest: (request: UpdateUserRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
47
|
+
export declare const marshalUpdateUserUsernameRequest: (request: UpdateUserUsernameRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -377,6 +377,18 @@ const unmarshalListUsersResponse = (data) => {
|
|
|
377
377
|
users: unmarshalArrayOfObject(data.users, unmarshalUser)
|
|
378
378
|
};
|
|
379
379
|
};
|
|
380
|
+
const unmarshalOrganizationSecuritySettings = (data) => {
|
|
381
|
+
if (!isJSONObject(data)) {
|
|
382
|
+
throw new TypeError(
|
|
383
|
+
`Unmarshalling the type 'OrganizationSecuritySettings' failed as data isn't a dictionary.`
|
|
384
|
+
);
|
|
385
|
+
}
|
|
386
|
+
return {
|
|
387
|
+
enforcePasswordRenewal: data.enforce_password_renewal,
|
|
388
|
+
gracePeriodDuration: data.grace_period_duration,
|
|
389
|
+
loginAttemptsBeforeLocked: data.login_attempts_before_locked
|
|
390
|
+
};
|
|
391
|
+
};
|
|
380
392
|
const unmarshalSetRulesResponse = (data) => {
|
|
381
393
|
if (!isJSONObject(data)) {
|
|
382
394
|
throw new TypeError(
|
|
@@ -494,6 +506,11 @@ const marshalUpdateGroupRequest = (request, defaults) => ({
|
|
|
494
506
|
name: request.name,
|
|
495
507
|
tags: request.tags
|
|
496
508
|
});
|
|
509
|
+
const marshalUpdateOrganizationSecuritySettingsRequest = (request, defaults) => ({
|
|
510
|
+
enforce_password_renewal: request.enforcePasswordRenewal,
|
|
511
|
+
grace_period_duration: request.gracePeriodDuration,
|
|
512
|
+
login_attempts_before_locked: request.loginAttemptsBeforeLocked
|
|
513
|
+
});
|
|
497
514
|
const marshalUpdatePolicyRequest = (request, defaults) => ({
|
|
498
515
|
description: request.description,
|
|
499
516
|
name: request.name,
|
|
@@ -517,6 +534,9 @@ const marshalUpdateUserRequest = (request, defaults) => ({
|
|
|
517
534
|
email: request.email,
|
|
518
535
|
tags: request.tags
|
|
519
536
|
});
|
|
537
|
+
const marshalUpdateUserUsernameRequest = (request, defaults) => ({
|
|
538
|
+
username: request.username
|
|
539
|
+
});
|
|
520
540
|
export {
|
|
521
541
|
marshalAddGroupMemberRequest,
|
|
522
542
|
marshalAddGroupMembersRequest,
|
|
@@ -533,10 +553,12 @@ export {
|
|
|
533
553
|
marshalUpdateAPIKeyRequest,
|
|
534
554
|
marshalUpdateApplicationRequest,
|
|
535
555
|
marshalUpdateGroupRequest,
|
|
556
|
+
marshalUpdateOrganizationSecuritySettingsRequest,
|
|
536
557
|
marshalUpdatePolicyRequest,
|
|
537
558
|
marshalUpdateSSHKeyRequest,
|
|
538
559
|
marshalUpdateUserPasswordRequest,
|
|
539
560
|
marshalUpdateUserRequest,
|
|
561
|
+
marshalUpdateUserUsernameRequest,
|
|
540
562
|
unmarshalAPIKey,
|
|
541
563
|
unmarshalApplication,
|
|
542
564
|
unmarshalEncodedJWT,
|
|
@@ -555,6 +577,7 @@ export {
|
|
|
555
577
|
unmarshalListSSHKeysResponse,
|
|
556
578
|
unmarshalListUsersResponse,
|
|
557
579
|
unmarshalLog,
|
|
580
|
+
unmarshalOrganizationSecuritySettings,
|
|
558
581
|
unmarshalPolicy,
|
|
559
582
|
unmarshalQuotum,
|
|
560
583
|
unmarshalSSHKey,
|