@scaleway/sdk 2.6.0 → 2.7.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/account/v2/api.gen.js +26 -74
- package/dist/api/account/v3/api.gen.js +20 -60
- package/dist/api/applesilicon/v1alpha1/api.gen.js +16 -56
- package/dist/api/baremetal/v1/api.gen.js +36 -132
- package/dist/api/billing/v2alpha1/api.gen.js +17 -57
- package/dist/api/block/v1alpha1/api.gen.js +19 -67
- package/dist/api/block/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/cockpit/v1beta1/api.gen.js +95 -279
- package/dist/api/container/v1beta1/api.gen.js +51 -123
- package/dist/api/document_db/v1beta1/api.gen.js +18 -66
- package/dist/api/document_db/v1beta1/marshalling.gen.js +20 -1
- package/dist/api/domain/v2beta1/api.gen.js +36 -124
- package/dist/api/flexibleip/v1alpha1/api.gen.js +6 -22
- package/dist/api/function/v1beta1/api.gen.js +55 -135
- package/dist/api/iam/v1alpha1/api.gen.js +66 -226
- package/dist/api/instance/v1/api.gen.js +102 -310
- package/dist/api/instance/v1/marshalling.gen.js +32 -56
- package/dist/api/iot/v1/api.gen.js +24 -88
- package/dist/api/ipam/v1/api.gen.js +12 -28
- package/dist/api/ipfs/v1alpha1/api.gen.js +12 -44
- package/dist/api/jobs/v1alpha1/api.gen.js +12 -44
- package/dist/api/jobs/v1alpha1/marshalling.gen.js +2 -0
- package/dist/api/k8s/v1/api.gen.js +16 -56
- package/dist/api/lb/v1/api.gen.js +72 -248
- package/dist/api/marketplace/v1/api.gen.js +7 -31
- package/dist/api/marketplace/v1/marshalling.gen.js +1 -18
- package/dist/api/marketplace/v2/api.gen.js +21 -53
- package/dist/api/mnq/v1beta1/api.gen.js +76 -212
- package/dist/api/rdb/v1/api.gen.js +24 -88
- package/dist/api/rdb/v1/marshalling.gen.js +11 -1
- package/dist/api/redis/v1/api.gen.js +6 -22
- package/dist/api/registry/v1/api.gen.js +12 -44
- package/dist/api/secret/v1alpha1/api.gen.js +18 -66
- package/dist/api/serverless_sqldb/index.js +2 -0
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +162 -0
- package/dist/api/serverless_sqldb/v1alpha1/content.gen.js +7 -0
- package/dist/api/serverless_sqldb/v1alpha1/index.gen.js +7 -0
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.js +77 -0
- package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.js +60 -0
- package/dist/api/tem/v1alpha1/api.gen.js +17 -57
- package/dist/api/test/v1/api.gen.js +6 -22
- package/dist/api/vpc/v1/api.gen.js +12 -36
- package/dist/api/vpc/v2/api.gen.js +30 -86
- package/dist/api/vpcgw/v1/api.gen.js +46 -158
- package/dist/api/webhosting/v1alpha1/api.gen.js +12 -44
- package/dist/helpers/marshalling.js +8 -23
- package/dist/index.cjs +927 -603
- package/dist/index.d.ts +2047 -1646
- package/dist/index.js +12 -10
- package/dist/internal/async/interval-retrier.js +8 -16
- package/dist/internal/interceptors/helpers.js +3 -4
- package/dist/internal/logger/console-logger.js +1 -7
- package/dist/internal/logger/index.js +1 -9
- package/dist/scw/auth.js +1 -2
- package/dist/scw/client.js +2 -10
- package/dist/scw/constants.js +1 -1
- package/dist/scw/errors/non-standard/invalid-request-mapper.js +5 -8
- package/dist/scw/errors/scw-error.js +2 -8
- package/dist/scw/errors/standard/permissions-denied-error.js +4 -7
- package/dist/scw/fetch/build-fetcher.js +1 -4
- package/dist/scw/fetch/http-dumper.js +1 -4
- package/dist/scw/fetch/http-interceptors.js +18 -31
- package/dist/scw/fetch/resource-paginator.js +3 -17
- package/package.json +2 -2
|
@@ -11,19 +11,11 @@ const jsonContentHeaders = {
|
|
|
11
11
|
|
|
12
12
|
/** IAM API. */
|
|
13
13
|
class API extends API$1 {
|
|
14
|
-
pageOfListSSHKeys = (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
return _this.client.fetch({
|
|
21
|
-
method: 'GET',
|
|
22
|
-
path: `/iam/v1alpha1/ssh-keys`,
|
|
23
|
-
urlParams: urlParams(['disabled', request.disabled], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
24
|
-
}, unmarshalListSSHKeysResponse);
|
|
25
|
-
};
|
|
26
|
-
})();
|
|
14
|
+
pageOfListSSHKeys = (request = {}) => this.client.fetch({
|
|
15
|
+
method: 'GET',
|
|
16
|
+
path: `/iam/v1alpha1/ssh-keys`,
|
|
17
|
+
urlParams: urlParams(['disabled', request.disabled], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
18
|
+
}, unmarshalListSSHKeysResponse);
|
|
27
19
|
|
|
28
20
|
/**
|
|
29
21
|
* List SSH keys. List SSH keys. By default, the SSH keys listed are ordered
|
|
@@ -34,15 +26,7 @@ class API extends API$1 {
|
|
|
34
26
|
* @param request - The request {@link ListSSHKeysRequest}
|
|
35
27
|
* @returns A Promise of ListSSHKeysResponse
|
|
36
28
|
*/
|
|
37
|
-
listSSHKeys = (
|
|
38
|
-
var _this2 = this;
|
|
39
|
-
return function (request) {
|
|
40
|
-
if (request === void 0) {
|
|
41
|
-
request = {};
|
|
42
|
-
}
|
|
43
|
-
return enrichForPagination('sshKeys', _this2.pageOfListSSHKeys, request);
|
|
44
|
-
};
|
|
45
|
-
})();
|
|
29
|
+
listSSHKeys = (request = {}) => enrichForPagination('sshKeys', this.pageOfListSSHKeys, request);
|
|
46
30
|
|
|
47
31
|
/**
|
|
48
32
|
* Create an SSH key. Add a new SSH key to a Scaleway Project. You must
|
|
@@ -96,19 +80,11 @@ class API extends API$1 {
|
|
|
96
80
|
method: 'DELETE',
|
|
97
81
|
path: `/iam/v1alpha1/ssh-keys/${validatePathParam('sshKeyId', request.sshKeyId)}`
|
|
98
82
|
});
|
|
99
|
-
pageOfListUsers = (
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
return _this3.client.fetch({
|
|
106
|
-
method: 'GET',
|
|
107
|
-
path: `/iam/v1alpha1/users`,
|
|
108
|
-
urlParams: urlParams(['mfa', request.mfa], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? _this3.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize], ['tag', request.tag], ['user_ids', request.userIds])
|
|
109
|
-
}, unmarshalListUsersResponse);
|
|
110
|
-
};
|
|
111
|
-
})();
|
|
83
|
+
pageOfListUsers = (request = {}) => this.client.fetch({
|
|
84
|
+
method: 'GET',
|
|
85
|
+
path: `/iam/v1alpha1/users`,
|
|
86
|
+
urlParams: urlParams(['mfa', request.mfa], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['tag', request.tag], ['user_ids', request.userIds])
|
|
87
|
+
}, unmarshalListUsersResponse);
|
|
112
88
|
|
|
113
89
|
/**
|
|
114
90
|
* List users of an Organization. List the users of an Organization. By
|
|
@@ -120,15 +96,7 @@ class API extends API$1 {
|
|
|
120
96
|
* @param request - The request {@link ListUsersRequest}
|
|
121
97
|
* @returns A Promise of ListUsersResponse
|
|
122
98
|
*/
|
|
123
|
-
listUsers = (
|
|
124
|
-
var _this4 = this;
|
|
125
|
-
return function (request) {
|
|
126
|
-
if (request === void 0) {
|
|
127
|
-
request = {};
|
|
128
|
-
}
|
|
129
|
-
return enrichForPagination('users', _this4.pageOfListUsers, request);
|
|
130
|
-
};
|
|
131
|
-
})();
|
|
99
|
+
listUsers = (request = {}) => enrichForPagination('users', this.pageOfListUsers, request);
|
|
132
100
|
|
|
133
101
|
/**
|
|
134
102
|
* Get a given user. Retrieve information about a user, specified by the
|
|
@@ -170,19 +138,11 @@ class API extends API$1 {
|
|
|
170
138
|
method: 'POST',
|
|
171
139
|
path: `/iam/v1alpha1/users`
|
|
172
140
|
}, unmarshalUser);
|
|
173
|
-
pageOfListApplications = (
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}
|
|
179
|
-
return _this5.client.fetch({
|
|
180
|
-
method: 'GET',
|
|
181
|
-
path: `/iam/v1alpha1/applications`,
|
|
182
|
-
urlParams: urlParams(['application_ids', request.applicationIds], ['editable', request.editable], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? _this5.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this5.client.settings.defaultPageSize], ['tag', request.tag])
|
|
183
|
-
}, unmarshalListApplicationsResponse);
|
|
184
|
-
};
|
|
185
|
-
})();
|
|
141
|
+
pageOfListApplications = (request = {}) => this.client.fetch({
|
|
142
|
+
method: 'GET',
|
|
143
|
+
path: `/iam/v1alpha1/applications`,
|
|
144
|
+
urlParams: urlParams(['application_ids', request.applicationIds], ['editable', request.editable], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['tag', request.tag])
|
|
145
|
+
}, unmarshalListApplicationsResponse);
|
|
186
146
|
|
|
187
147
|
/**
|
|
188
148
|
* List applications of an Organization. List the applications of an
|
|
@@ -195,15 +155,7 @@ class API extends API$1 {
|
|
|
195
155
|
* @param request - The request {@link ListApplicationsRequest}
|
|
196
156
|
* @returns A Promise of ListApplicationsResponse
|
|
197
157
|
*/
|
|
198
|
-
listApplications = (
|
|
199
|
-
var _this6 = this;
|
|
200
|
-
return function (request) {
|
|
201
|
-
if (request === void 0) {
|
|
202
|
-
request = {};
|
|
203
|
-
}
|
|
204
|
-
return enrichForPagination('applications', _this6.pageOfListApplications, request);
|
|
205
|
-
};
|
|
206
|
-
})();
|
|
158
|
+
listApplications = (request = {}) => enrichForPagination('applications', this.pageOfListApplications, request);
|
|
207
159
|
|
|
208
160
|
/**
|
|
209
161
|
* Create a new application. Create a new application. You must define the
|
|
@@ -259,19 +211,11 @@ class API extends API$1 {
|
|
|
259
211
|
method: 'DELETE',
|
|
260
212
|
path: `/iam/v1alpha1/applications/${validatePathParam('applicationId', request.applicationId)}`
|
|
261
213
|
});
|
|
262
|
-
pageOfListGroups = (
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
}
|
|
268
|
-
return _this7.client.fetch({
|
|
269
|
-
method: 'GET',
|
|
270
|
-
path: `/iam/v1alpha1/groups`,
|
|
271
|
-
urlParams: urlParams(['application_ids', request.applicationIds], ['group_ids', request.groupIds], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? _this7.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this7.client.settings.defaultPageSize], ['tag', request.tag], ['user_ids', request.userIds])
|
|
272
|
-
}, unmarshalListGroupsResponse);
|
|
273
|
-
};
|
|
274
|
-
})();
|
|
214
|
+
pageOfListGroups = (request = {}) => this.client.fetch({
|
|
215
|
+
method: 'GET',
|
|
216
|
+
path: `/iam/v1alpha1/groups`,
|
|
217
|
+
urlParams: urlParams(['application_ids', request.applicationIds], ['group_ids', request.groupIds], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['tag', request.tag], ['user_ids', request.userIds])
|
|
218
|
+
}, unmarshalListGroupsResponse);
|
|
275
219
|
|
|
276
220
|
/**
|
|
277
221
|
* List groups. List groups. By default, the groups listed are ordered by
|
|
@@ -283,15 +227,7 @@ class API extends API$1 {
|
|
|
283
227
|
* @param request - The request {@link ListGroupsRequest}
|
|
284
228
|
* @returns A Promise of ListGroupsResponse
|
|
285
229
|
*/
|
|
286
|
-
listGroups = (
|
|
287
|
-
var _this8 = this;
|
|
288
|
-
return function (request) {
|
|
289
|
-
if (request === void 0) {
|
|
290
|
-
request = {};
|
|
291
|
-
}
|
|
292
|
-
return enrichForPagination('groups', _this8.pageOfListGroups, request);
|
|
293
|
-
};
|
|
294
|
-
})();
|
|
230
|
+
listGroups = (request = {}) => enrichForPagination('groups', this.pageOfListGroups, request);
|
|
295
231
|
|
|
296
232
|
/**
|
|
297
233
|
* Create a group. Create a new group. You must define the `name` and
|
|
@@ -412,19 +348,11 @@ class API extends API$1 {
|
|
|
412
348
|
method: 'DELETE',
|
|
413
349
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}`
|
|
414
350
|
});
|
|
415
|
-
pageOfListPolicies = (
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
}
|
|
421
|
-
return _this9.client.fetch({
|
|
422
|
-
method: 'GET',
|
|
423
|
-
path: `/iam/v1alpha1/policies`,
|
|
424
|
-
urlParams: urlParams(['application_ids', request.applicationIds], ['editable', request.editable], ['group_ids', request.groupIds], ['no_principal', request.noPrincipal], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? _this9.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this9.client.settings.defaultPageSize], ['policy_name', request.policyName], ['tag', request.tag], ['user_ids', request.userIds])
|
|
425
|
-
}, unmarshalListPoliciesResponse);
|
|
426
|
-
};
|
|
427
|
-
})();
|
|
351
|
+
pageOfListPolicies = (request = {}) => this.client.fetch({
|
|
352
|
+
method: 'GET',
|
|
353
|
+
path: `/iam/v1alpha1/policies`,
|
|
354
|
+
urlParams: urlParams(['application_ids', request.applicationIds], ['editable', request.editable], ['group_ids', request.groupIds], ['no_principal', request.noPrincipal], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['policy_name', request.policyName], ['tag', request.tag], ['user_ids', request.userIds])
|
|
355
|
+
}, unmarshalListPoliciesResponse);
|
|
428
356
|
|
|
429
357
|
/**
|
|
430
358
|
* List policies of an Organization. List the policies of an Organization. By
|
|
@@ -437,15 +365,7 @@ class API extends API$1 {
|
|
|
437
365
|
* @param request - The request {@link ListPoliciesRequest}
|
|
438
366
|
* @returns A Promise of ListPoliciesResponse
|
|
439
367
|
*/
|
|
440
|
-
listPolicies = (
|
|
441
|
-
var _this10 = this;
|
|
442
|
-
return function (request) {
|
|
443
|
-
if (request === void 0) {
|
|
444
|
-
request = {};
|
|
445
|
-
}
|
|
446
|
-
return enrichForPagination('policies', _this10.pageOfListPolicies, request);
|
|
447
|
-
};
|
|
448
|
-
})();
|
|
368
|
+
listPolicies = (request = {}) => enrichForPagination('policies', this.pageOfListPolicies, request);
|
|
449
369
|
|
|
450
370
|
/**
|
|
451
371
|
* Create a new policy. Create a new application. You must define the `name`
|
|
@@ -552,19 +472,11 @@ class API extends API$1 {
|
|
|
552
472
|
* @returns A Promise of ListRulesResponse
|
|
553
473
|
*/
|
|
554
474
|
listRules = request => enrichForPagination('rules', this.pageOfListRules, request);
|
|
555
|
-
pageOfListPermissionSets = (
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
}
|
|
561
|
-
return _this11.client.fetch({
|
|
562
|
-
method: 'GET',
|
|
563
|
-
path: `/iam/v1alpha1/permission-sets`,
|
|
564
|
-
urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId ?? _this11.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this11.client.settings.defaultPageSize])
|
|
565
|
-
}, unmarshalListPermissionSetsResponse);
|
|
566
|
-
};
|
|
567
|
-
})();
|
|
475
|
+
pageOfListPermissionSets = (request = {}) => this.client.fetch({
|
|
476
|
+
method: 'GET',
|
|
477
|
+
path: `/iam/v1alpha1/permission-sets`,
|
|
478
|
+
urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
479
|
+
}, unmarshalListPermissionSetsResponse);
|
|
568
480
|
|
|
569
481
|
/**
|
|
570
482
|
* List permission sets. List permission sets available for given
|
|
@@ -574,34 +486,18 @@ class API extends API$1 {
|
|
|
574
486
|
* @param request - The request {@link ListPermissionSetsRequest}
|
|
575
487
|
* @returns A Promise of ListPermissionSetsResponse
|
|
576
488
|
*/
|
|
577
|
-
listPermissionSets = (
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
if (request === void 0) {
|
|
590
|
-
request = {};
|
|
591
|
-
}
|
|
592
|
-
return _this13.client.fetch({
|
|
593
|
-
method: 'GET',
|
|
594
|
-
path: `/iam/v1alpha1/api-keys`,
|
|
595
|
-
urlParams: urlParams(['access_key', request.accessKey], ['bearer_id', request.bearerId], ['bearer_type', request.bearerType], ['description', request.description], ['editable', request.editable], ['expired', request.expired], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? _this13.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this13.client.settings.defaultPageSize], ...Object.entries(resolveOneOf([{
|
|
596
|
-
param: 'application_id',
|
|
597
|
-
value: request.applicationId
|
|
598
|
-
}, {
|
|
599
|
-
param: 'user_id',
|
|
600
|
-
value: request.userId
|
|
601
|
-
}])))
|
|
602
|
-
}, unmarshalListAPIKeysResponse);
|
|
603
|
-
};
|
|
604
|
-
})();
|
|
489
|
+
listPermissionSets = (request = {}) => enrichForPagination('permissionSets', this.pageOfListPermissionSets, request);
|
|
490
|
+
pageOfListAPIKeys = (request = {}) => this.client.fetch({
|
|
491
|
+
method: 'GET',
|
|
492
|
+
path: `/iam/v1alpha1/api-keys`,
|
|
493
|
+
urlParams: urlParams(['access_key', request.accessKey], ['bearer_id', request.bearerId], ['bearer_type', request.bearerType], ['description', request.description], ['editable', request.editable], ['expired', request.expired], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ...Object.entries(resolveOneOf([{
|
|
494
|
+
param: 'application_id',
|
|
495
|
+
value: request.applicationId
|
|
496
|
+
}, {
|
|
497
|
+
param: 'user_id',
|
|
498
|
+
value: request.userId
|
|
499
|
+
}])))
|
|
500
|
+
}, unmarshalListAPIKeysResponse);
|
|
605
501
|
|
|
606
502
|
/**
|
|
607
503
|
* List API keys. List API keys. By default, the API keys listed are ordered
|
|
@@ -612,15 +508,7 @@ class API extends API$1 {
|
|
|
612
508
|
* @param request - The request {@link ListAPIKeysRequest}
|
|
613
509
|
* @returns A Promise of ListAPIKeysResponse
|
|
614
510
|
*/
|
|
615
|
-
listAPIKeys = (
|
|
616
|
-
var _this14 = this;
|
|
617
|
-
return function (request) {
|
|
618
|
-
if (request === void 0) {
|
|
619
|
-
request = {};
|
|
620
|
-
}
|
|
621
|
-
return enrichForPagination('apiKeys', _this14.pageOfListAPIKeys, request);
|
|
622
|
-
};
|
|
623
|
-
})();
|
|
511
|
+
listAPIKeys = (request = {}) => enrichForPagination('apiKeys', this.pageOfListAPIKeys, request);
|
|
624
512
|
|
|
625
513
|
/**
|
|
626
514
|
* Create an API key. Create an API key. You must specify the `application_id`
|
|
@@ -681,19 +569,11 @@ class API extends API$1 {
|
|
|
681
569
|
method: 'DELETE',
|
|
682
570
|
path: `/iam/v1alpha1/api-keys/${validatePathParam('accessKey', request.accessKey)}`
|
|
683
571
|
});
|
|
684
|
-
pageOfListQuota = (
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
}
|
|
690
|
-
return _this15.client.fetch({
|
|
691
|
-
method: 'GET',
|
|
692
|
-
path: `/iam/v1alpha1/quota`,
|
|
693
|
-
urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId ?? _this15.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this15.client.settings.defaultPageSize])
|
|
694
|
-
}, unmarshalListQuotaResponse);
|
|
695
|
-
};
|
|
696
|
-
})();
|
|
572
|
+
pageOfListQuota = (request = {}) => this.client.fetch({
|
|
573
|
+
method: 'GET',
|
|
574
|
+
path: `/iam/v1alpha1/quota`,
|
|
575
|
+
urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
576
|
+
}, unmarshalListQuotaResponse);
|
|
697
577
|
|
|
698
578
|
/**
|
|
699
579
|
* List all quotas in the Organization. List all product and features quota
|
|
@@ -705,15 +585,7 @@ class API extends API$1 {
|
|
|
705
585
|
* @param request - The request {@link ListQuotaRequest}
|
|
706
586
|
* @returns A Promise of ListQuotaResponse
|
|
707
587
|
*/
|
|
708
|
-
listQuota = (
|
|
709
|
-
var _this16 = this;
|
|
710
|
-
return function (request) {
|
|
711
|
-
if (request === void 0) {
|
|
712
|
-
request = {};
|
|
713
|
-
}
|
|
714
|
-
return enrichForPagination('quota', _this16.pageOfListQuota, request);
|
|
715
|
-
};
|
|
716
|
-
})();
|
|
588
|
+
listQuota = (request = {}) => enrichForPagination('quota', this.pageOfListQuota, request);
|
|
717
589
|
|
|
718
590
|
/**
|
|
719
591
|
* Get a quota in the Organization. Retrieve information about a resource
|
|
@@ -728,19 +600,11 @@ class API extends API$1 {
|
|
|
728
600
|
path: `/iam/v1alpha1/quota/${validatePathParam('quotumName', request.quotumName)}`,
|
|
729
601
|
urlParams: urlParams(['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId])
|
|
730
602
|
}, unmarshalQuotum);
|
|
731
|
-
pageOfListJWTs = (
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
}
|
|
737
|
-
return _this17.client.fetch({
|
|
738
|
-
method: 'GET',
|
|
739
|
-
path: `/iam/v1alpha1/jwts`,
|
|
740
|
-
urlParams: urlParams(['audience_id', request.audienceId], ['expired', request.expired], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? _this17.client.settings.defaultPageSize])
|
|
741
|
-
}, unmarshalListJWTsResponse);
|
|
742
|
-
};
|
|
743
|
-
})();
|
|
603
|
+
pageOfListJWTs = (request = {}) => this.client.fetch({
|
|
604
|
+
method: 'GET',
|
|
605
|
+
path: `/iam/v1alpha1/jwts`,
|
|
606
|
+
urlParams: urlParams(['audience_id', request.audienceId], ['expired', request.expired], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
607
|
+
}, unmarshalListJWTsResponse);
|
|
744
608
|
|
|
745
609
|
/**
|
|
746
610
|
* List JWTs.
|
|
@@ -748,15 +612,7 @@ class API extends API$1 {
|
|
|
748
612
|
* @param request - The request {@link ListJWTsRequest}
|
|
749
613
|
* @returns A Promise of ListJWTsResponse
|
|
750
614
|
*/
|
|
751
|
-
listJWTs = (
|
|
752
|
-
var _this18 = this;
|
|
753
|
-
return function (request) {
|
|
754
|
-
if (request === void 0) {
|
|
755
|
-
request = {};
|
|
756
|
-
}
|
|
757
|
-
return enrichForPagination('jwts', _this18.pageOfListJWTs, request);
|
|
758
|
-
};
|
|
759
|
-
})();
|
|
615
|
+
listJWTs = (request = {}) => enrichForPagination('jwts', this.pageOfListJWTs, request);
|
|
760
616
|
|
|
761
617
|
/**
|
|
762
618
|
* Get a JWT.
|
|
@@ -778,19 +634,11 @@ class API extends API$1 {
|
|
|
778
634
|
method: 'DELETE',
|
|
779
635
|
path: `/iam/v1alpha1/jwts/${validatePathParam('jti', request.jti)}`
|
|
780
636
|
});
|
|
781
|
-
pageOfListLogs = (
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
}
|
|
787
|
-
return _this19.client.fetch({
|
|
788
|
-
method: 'GET',
|
|
789
|
-
path: `/iam/v1alpha1/logs`,
|
|
790
|
-
urlParams: urlParams(['action', request.action], ['created_after', request.createdAfter], ['created_before', request.createdBefore], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? _this19.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this19.client.settings.defaultPageSize], ['resource_type', request.resourceType], ['search', request.search])
|
|
791
|
-
}, unmarshalListLogsResponse);
|
|
792
|
-
};
|
|
793
|
-
})();
|
|
637
|
+
pageOfListLogs = (request = {}) => this.client.fetch({
|
|
638
|
+
method: 'GET',
|
|
639
|
+
path: `/iam/v1alpha1/logs`,
|
|
640
|
+
urlParams: urlParams(['action', request.action], ['created_after', request.createdAfter], ['created_before', request.createdBefore], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['resource_type', request.resourceType], ['search', request.search])
|
|
641
|
+
}, unmarshalListLogsResponse);
|
|
794
642
|
|
|
795
643
|
/**
|
|
796
644
|
* List logs. List logs available for given Organization. You must define the
|
|
@@ -799,15 +647,7 @@ class API extends API$1 {
|
|
|
799
647
|
* @param request - The request {@link ListLogsRequest}
|
|
800
648
|
* @returns A Promise of ListLogsResponse
|
|
801
649
|
*/
|
|
802
|
-
listLogs = (
|
|
803
|
-
var _this20 = this;
|
|
804
|
-
return function (request) {
|
|
805
|
-
if (request === void 0) {
|
|
806
|
-
request = {};
|
|
807
|
-
}
|
|
808
|
-
return enrichForPagination('logs', _this20.pageOfListLogs, request);
|
|
809
|
-
};
|
|
810
|
-
})();
|
|
650
|
+
listLogs = (request = {}) => enrichForPagination('logs', this.pageOfListLogs, request);
|
|
811
651
|
|
|
812
652
|
/**
|
|
813
653
|
* Get a log. Retrieve information about a log, specified by the `log_id`
|