@scaleway/sdk 1.34.0 → 2.0.0-alpha.1
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 +1 -1
- package/dist/api/account/v3/api.gen.js +1 -1
- package/dist/api/applesilicon/v1alpha1/api.gen.js +1 -1
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +26 -26
- package/dist/api/baremetal/v1/api.gen.js +6 -6
- package/dist/api/baremetal/v1/marshalling.gen.js +109 -120
- package/dist/api/billing/v2alpha1/api.gen.js +3 -3
- package/dist/api/billing/v2alpha1/marshalling.gen.js +9 -9
- package/dist/api/cockpit/v1beta1/api.gen.js +47 -71
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +43 -63
- package/dist/api/container/v1beta1/api.gen.js +11 -11
- package/dist/api/container/v1beta1/marshalling.gen.js +76 -102
- package/dist/api/document_db/v1beta1/api.gen.js +6 -6
- package/dist/api/document_db/v1beta1/marshalling.gen.js +169 -225
- package/dist/api/domain/v2beta1/api.gen.js +45 -38
- package/dist/api/domain/v2beta1/index.gen.js +2 -0
- package/dist/api/domain/v2beta1/marshalling.gen.js +361 -575
- package/dist/api/flexibleip/v1alpha1/api.gen.js +15 -7
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.js +2 -2
- package/dist/api/function/v1beta1/api.gen.js +11 -11
- package/dist/api/function/v1beta1/marshalling.gen.js +103 -129
- package/dist/api/iam/v1alpha1/api.gen.js +64 -32
- package/dist/api/iam/v1alpha1/marshalling.gen.js +68 -78
- package/dist/api/instance/v1/api.gen.js +1 -1
- package/dist/api/instance/v1/marshalling.gen.js +397 -602
- package/dist/api/iot/v1/api.gen.js +35 -27
- package/dist/api/iot/v1/marshalling.gen.js +111 -162
- package/dist/api/ipfs/v1alpha1/api.gen.js +2 -2
- package/dist/api/ipfs/v1alpha1/marshalling.gen.js +23 -27
- package/dist/api/k8s/v1/api.gen.js +3 -3
- package/dist/api/k8s/v1/marshalling.gen.js +109 -194
- package/dist/api/lb/v1/api.gen.js +583 -552
- package/dist/api/lb/v1/marshalling.gen.js +245 -361
- package/dist/api/marketplace/v1/marshalling.gen.js +11 -11
- package/dist/api/marketplace/v2/api.gen.js +6 -6
- package/dist/api/mnq/v1alpha1/api.gen.js +21 -14
- package/dist/api/mnq/v1alpha1/marshalling.gen.js +35 -40
- package/dist/api/rdb/v1/api.gen.js +7 -7
- package/dist/api/rdb/v1/marshalling.gen.js +184 -240
- package/dist/api/redis/v1/api.gen.js +1 -1
- package/dist/api/redis/v1/marshalling.gen.js +73 -97
- package/dist/api/registry/v1/api.gen.js +3 -3
- package/dist/api/registry/v1/marshalling.gen.js +5 -7
- package/dist/api/secret/v1alpha1/api.gen.js +2 -2
- package/dist/api/secret/v1alpha1/marshalling.gen.js +20 -30
- package/dist/api/tem/v1alpha1/api.gen.js +1 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.js +52 -61
- package/dist/api/test/v1/api.gen.js +8 -25
- package/dist/api/test/v1/marshalling.gen.js +5 -7
- package/dist/api/vpc/v1/api.gen.js +1 -1
- package/dist/api/vpc/v2/api.gen.js +2 -2
- package/dist/api/vpc/v2/marshalling.gen.js +3 -5
- package/dist/api/vpcgw/v1/api.gen.js +6 -6
- package/dist/api/vpcgw/v1/marshalling.gen.js +36 -49
- package/dist/api/webhosting/v1alpha1/api.gen.js +56 -4
- package/dist/api/webhosting/v1alpha1/index.gen.js +1 -1
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +69 -42
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +10 -1
- package/dist/index.cjs +3127 -3989
- package/dist/index.d.ts +9658 -12221
- package/package.json +2 -2
|
@@ -3,24 +3,24 @@ import { unmarshalArrayOfObject, unmarshalDate } from '../../../helpers/marshall
|
|
|
3
3
|
|
|
4
4
|
// This file was automatically generated. DO NOT EDIT.
|
|
5
5
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
|
-
const
|
|
6
|
+
const unmarshalOrganization = data => {
|
|
7
7
|
if (!isJSONObject(data)) {
|
|
8
|
-
throw new TypeError(`Unmarshalling the type '
|
|
8
|
+
throw new TypeError(`Unmarshalling the type 'Organization' failed as data isn't a dictionary.`);
|
|
9
9
|
}
|
|
10
10
|
return {
|
|
11
|
-
arch: data.arch,
|
|
12
|
-
compatibleCommercialTypes: data.compatible_commercial_types,
|
|
13
11
|
id: data.id,
|
|
14
|
-
|
|
12
|
+
name: data.name
|
|
15
13
|
};
|
|
16
14
|
};
|
|
17
|
-
const
|
|
15
|
+
const unmarshalLocalImage = data => {
|
|
18
16
|
if (!isJSONObject(data)) {
|
|
19
|
-
throw new TypeError(`Unmarshalling the type '
|
|
17
|
+
throw new TypeError(`Unmarshalling the type 'LocalImage' failed as data isn't a dictionary.`);
|
|
20
18
|
}
|
|
21
19
|
return {
|
|
20
|
+
arch: data.arch,
|
|
21
|
+
compatibleCommercialTypes: data.compatible_commercial_types,
|
|
22
22
|
id: data.id,
|
|
23
|
-
|
|
23
|
+
zone: data.zone
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
const unmarshalVersion = data => {
|
|
@@ -49,7 +49,7 @@ const unmarshalImage = data => {
|
|
|
49
49
|
logo: data.logo,
|
|
50
50
|
modificationDate: unmarshalDate(data.modification_date),
|
|
51
51
|
name: data.name,
|
|
52
|
-
organization:
|
|
52
|
+
organization: unmarshalOrganization(data.organization),
|
|
53
53
|
validUntil: unmarshalDate(data.valid_until),
|
|
54
54
|
versions: unmarshalArrayOfObject(data.versions, unmarshalVersion)
|
|
55
55
|
};
|
|
@@ -59,7 +59,7 @@ const unmarshalGetImageResponse = data => {
|
|
|
59
59
|
throw new TypeError(`Unmarshalling the type 'GetImageResponse' failed as data isn't a dictionary.`);
|
|
60
60
|
}
|
|
61
61
|
return {
|
|
62
|
-
image:
|
|
62
|
+
image: unmarshalImage(data.image)
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
const unmarshalGetVersionResponse = data => {
|
|
@@ -67,7 +67,7 @@ const unmarshalGetVersionResponse = data => {
|
|
|
67
67
|
throw new TypeError(`Unmarshalling the type 'GetVersionResponse' failed as data isn't a dictionary.`);
|
|
68
68
|
}
|
|
69
69
|
return {
|
|
70
|
-
version:
|
|
70
|
+
version: unmarshalVersion(data.version)
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
const unmarshalListImagesResponse = data => {
|
|
@@ -10,7 +10,7 @@ class API extends API$1 {
|
|
|
10
10
|
pageOfListImages = request => this.client.fetch({
|
|
11
11
|
method: 'GET',
|
|
12
12
|
path: `/marketplace/v2/images`,
|
|
13
|
-
urlParams: urlParams(['arch', request.arch], ['category', request.category], ['include_eol', request.includeEol], ['order_by', request.orderBy
|
|
13
|
+
urlParams: urlParams(['arch', request.arch], ['category', request.category], ['include_eol', request.includeEol], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
14
14
|
}, unmarshalListImagesResponse);
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -36,7 +36,7 @@ class API extends API$1 {
|
|
|
36
36
|
pageOfListVersions = request => this.client.fetch({
|
|
37
37
|
method: 'GET',
|
|
38
38
|
path: `/marketplace/v2/versions`,
|
|
39
|
-
urlParams: urlParams(['image_id', request.imageId], ['order_by', request.orderBy
|
|
39
|
+
urlParams: urlParams(['image_id', request.imageId], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
40
40
|
}, unmarshalListVersionsResponse);
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -69,15 +69,15 @@ class API extends API$1 {
|
|
|
69
69
|
return _this.client.fetch({
|
|
70
70
|
method: 'GET',
|
|
71
71
|
path: `/marketplace/v2/local-images`,
|
|
72
|
-
urlParams: urlParams(['order_by', request.orderBy
|
|
72
|
+
urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['type', request.type], ['zone', request.zone], ...Object.entries(resolveOneOf([{
|
|
73
73
|
param: 'image_id',
|
|
74
74
|
value: request.imageId
|
|
75
|
-
}, {
|
|
76
|
-
param: 'version_id',
|
|
77
|
-
value: request.versionId
|
|
78
75
|
}, {
|
|
79
76
|
param: 'image_label',
|
|
80
77
|
value: request.imageLabel
|
|
78
|
+
}, {
|
|
79
|
+
param: 'version_id',
|
|
80
|
+
value: request.versionId
|
|
81
81
|
}])))
|
|
82
82
|
}, unmarshalListLocalImagesResponse);
|
|
83
83
|
};
|
|
@@ -13,7 +13,6 @@ const jsonContentHeaders = {
|
|
|
13
13
|
* Messaging and Queuing API.
|
|
14
14
|
*
|
|
15
15
|
* This API allows you to manage Scaleway Messaging and Queueing brokers.
|
|
16
|
-
* Messaging and Queuing API.
|
|
17
16
|
*/
|
|
18
17
|
class API extends API$1 {
|
|
19
18
|
/** Lists the available regions of the API. */
|
|
@@ -27,7 +26,7 @@ class API extends API$1 {
|
|
|
27
26
|
return _this.client.fetch({
|
|
28
27
|
method: 'GET',
|
|
29
28
|
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/namespaces`,
|
|
30
|
-
urlParams: urlParams(['order_by', request.orderBy
|
|
29
|
+
urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
31
30
|
}, unmarshalListNamespacesResponse);
|
|
32
31
|
};
|
|
33
32
|
})();
|
|
@@ -58,12 +57,20 @@ class API extends API$1 {
|
|
|
58
57
|
* @param request - The request {@link CreateNamespaceRequest}
|
|
59
58
|
* @returns A Promise of Namespace
|
|
60
59
|
*/
|
|
61
|
-
createNamespace =
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
createNamespace = (() => {
|
|
61
|
+
var _this3 = this;
|
|
62
|
+
return function (request) {
|
|
63
|
+
if (request === void 0) {
|
|
64
|
+
request = {};
|
|
65
|
+
}
|
|
66
|
+
return _this3.client.fetch({
|
|
67
|
+
body: JSON.stringify(marshalCreateNamespaceRequest(request, _this3.client.settings)),
|
|
68
|
+
headers: jsonContentHeaders,
|
|
69
|
+
method: 'POST',
|
|
70
|
+
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? _this3.client.settings.defaultRegion)}/namespaces`
|
|
71
|
+
}, unmarshalNamespace);
|
|
72
|
+
};
|
|
73
|
+
})();
|
|
67
74
|
|
|
68
75
|
/**
|
|
69
76
|
* Update the name of a namespace. Update the name of a Messaging and Queuing
|
|
@@ -134,15 +141,15 @@ class API extends API$1 {
|
|
|
134
141
|
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/credentials/${validatePathParam('credentialId', request.credentialId)}`
|
|
135
142
|
});
|
|
136
143
|
pageOfListCredentials = (() => {
|
|
137
|
-
var
|
|
144
|
+
var _this4 = this;
|
|
138
145
|
return function (request) {
|
|
139
146
|
if (request === void 0) {
|
|
140
147
|
request = {};
|
|
141
148
|
}
|
|
142
|
-
return
|
|
149
|
+
return _this4.client.fetch({
|
|
143
150
|
method: 'GET',
|
|
144
|
-
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ??
|
|
145
|
-
urlParams: urlParams(['namespace_id', request.namespaceId], ['order_by', request.orderBy
|
|
151
|
+
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? _this4.client.settings.defaultRegion)}/credentials`,
|
|
152
|
+
urlParams: urlParams(['namespace_id', request.namespaceId], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? _this4.client.settings.defaultPageSize])
|
|
146
153
|
}, unmarshalListCredentialsResponse);
|
|
147
154
|
};
|
|
148
155
|
})();
|
|
@@ -156,12 +163,12 @@ class API extends API$1 {
|
|
|
156
163
|
* @returns A Promise of ListCredentialsResponse
|
|
157
164
|
*/
|
|
158
165
|
listCredentials = (() => {
|
|
159
|
-
var
|
|
166
|
+
var _this5 = this;
|
|
160
167
|
return function (request) {
|
|
161
168
|
if (request === void 0) {
|
|
162
169
|
request = {};
|
|
163
170
|
}
|
|
164
|
-
return enrichForPagination('credentials',
|
|
171
|
+
return enrichForPagination('credentials', _this5.pageOfListCredentials, request);
|
|
165
172
|
};
|
|
166
173
|
})();
|
|
167
174
|
|
|
@@ -4,23 +4,39 @@ import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshall
|
|
|
4
4
|
|
|
5
5
|
// This file was automatically generated. DO NOT EDIT.
|
|
6
6
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7
|
+
const unmarshalNamespace = data => {
|
|
8
|
+
if (!isJSONObject(data)) {
|
|
9
|
+
throw new TypeError(`Unmarshalling the type 'Namespace' failed as data isn't a dictionary.`);
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
createdAt: unmarshalDate(data.created_at),
|
|
13
|
+
endpoint: data.endpoint,
|
|
14
|
+
id: data.id,
|
|
15
|
+
name: data.name,
|
|
16
|
+
projectId: data.project_id,
|
|
17
|
+
protocol: data.protocol,
|
|
18
|
+
region: data.region,
|
|
19
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
20
|
+
};
|
|
21
|
+
};
|
|
7
22
|
const unmarshalPermissions = data => {
|
|
8
23
|
if (!isJSONObject(data)) {
|
|
9
24
|
throw new TypeError(`Unmarshalling the type 'Permissions' failed as data isn't a dictionary.`);
|
|
10
25
|
}
|
|
11
26
|
return {
|
|
12
|
-
canManage: data.can_manage,
|
|
13
|
-
canPublish: data.can_publish,
|
|
14
|
-
canReceive: data.can_receive
|
|
27
|
+
canManage: data.can_manage ? data.can_manage : undefined,
|
|
28
|
+
canPublish: data.can_publish ? data.can_publish : undefined,
|
|
29
|
+
canReceive: data.can_receive ? data.can_receive : undefined
|
|
15
30
|
};
|
|
16
31
|
};
|
|
17
|
-
const
|
|
32
|
+
const unmarshalCredentialSQSSNSCreds = data => {
|
|
18
33
|
if (!isJSONObject(data)) {
|
|
19
|
-
throw new TypeError(`Unmarshalling the type '
|
|
34
|
+
throw new TypeError(`Unmarshalling the type 'CredentialSQSSNSCreds' failed as data isn't a dictionary.`);
|
|
20
35
|
}
|
|
21
36
|
return {
|
|
22
37
|
accessKey: data.access_key,
|
|
23
|
-
permissions:
|
|
38
|
+
permissions: unmarshalPermissions(data.permissions),
|
|
39
|
+
secretKey: data.secret_key ? data.secret_key : undefined
|
|
24
40
|
};
|
|
25
41
|
};
|
|
26
42
|
const unmarshalCredentialNATSCredsFile = data => {
|
|
@@ -31,54 +47,38 @@ const unmarshalCredentialNATSCredsFile = data => {
|
|
|
31
47
|
content: data.content
|
|
32
48
|
};
|
|
33
49
|
};
|
|
34
|
-
const
|
|
35
|
-
if (!isJSONObject(data)) {
|
|
36
|
-
throw new TypeError(`Unmarshalling the type 'CredentialSQSSNSCreds' failed as data isn't a dictionary.`);
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
accessKey: data.access_key,
|
|
40
|
-
permissions: data.permissions ? unmarshalPermissions(data.permissions) : undefined,
|
|
41
|
-
secretKey: data.secret_key
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
const unmarshalCredentialSummary = data => {
|
|
50
|
+
const unmarshalCredential = data => {
|
|
45
51
|
if (!isJSONObject(data)) {
|
|
46
|
-
throw new TypeError(`Unmarshalling the type '
|
|
52
|
+
throw new TypeError(`Unmarshalling the type 'Credential' failed as data isn't a dictionary.`);
|
|
47
53
|
}
|
|
48
54
|
return {
|
|
49
55
|
id: data.id,
|
|
50
56
|
name: data.name,
|
|
51
57
|
namespaceId: data.namespace_id,
|
|
58
|
+
natsCredentials: data.nats_credentials ? unmarshalCredentialNATSCredsFile(data.nats_credentials) : undefined,
|
|
52
59
|
protocol: data.protocol,
|
|
53
|
-
sqsSnsCredentials: data.sqs_sns_credentials ?
|
|
60
|
+
sqsSnsCredentials: data.sqs_sns_credentials ? unmarshalCredentialSQSSNSCreds(data.sqs_sns_credentials) : undefined
|
|
54
61
|
};
|
|
55
62
|
};
|
|
56
|
-
const
|
|
63
|
+
const unmarshalCredentialSummarySQSSNSCreds = data => {
|
|
57
64
|
if (!isJSONObject(data)) {
|
|
58
|
-
throw new TypeError(`Unmarshalling the type '
|
|
65
|
+
throw new TypeError(`Unmarshalling the type 'CredentialSummarySQSSNSCreds' failed as data isn't a dictionary.`);
|
|
59
66
|
}
|
|
60
67
|
return {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
id: data.id,
|
|
64
|
-
name: data.name,
|
|
65
|
-
projectId: data.project_id,
|
|
66
|
-
protocol: data.protocol,
|
|
67
|
-
region: data.region,
|
|
68
|
-
updatedAt: unmarshalDate(data.updated_at)
|
|
68
|
+
accessKey: data.access_key,
|
|
69
|
+
permissions: unmarshalPermissions(data.permissions)
|
|
69
70
|
};
|
|
70
71
|
};
|
|
71
|
-
const
|
|
72
|
+
const unmarshalCredentialSummary = data => {
|
|
72
73
|
if (!isJSONObject(data)) {
|
|
73
|
-
throw new TypeError(`Unmarshalling the type '
|
|
74
|
+
throw new TypeError(`Unmarshalling the type 'CredentialSummary' failed as data isn't a dictionary.`);
|
|
74
75
|
}
|
|
75
76
|
return {
|
|
76
77
|
id: data.id,
|
|
77
78
|
name: data.name,
|
|
78
79
|
namespaceId: data.namespace_id,
|
|
79
|
-
natsCredentials: data.nats_credentials ? unmarshalCredentialNATSCredsFile(data.nats_credentials) : undefined,
|
|
80
80
|
protocol: data.protocol,
|
|
81
|
-
sqsSnsCredentials: data.sqs_sns_credentials ?
|
|
81
|
+
sqsSnsCredentials: data.sqs_sns_credentials ? unmarshalCredentialSummarySQSSNSCreds(data.sqs_sns_credentials) : undefined
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
84
|
const unmarshalListCredentialsResponse = data => {
|
|
@@ -99,15 +99,10 @@ const unmarshalListNamespacesResponse = data => {
|
|
|
99
99
|
totalCount: data.total_count
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
|
-
const marshalPermissions = (request, defaults) => ({
|
|
103
|
-
can_manage: request.canManage,
|
|
104
|
-
can_publish: request.canPublish,
|
|
105
|
-
can_receive: request.canReceive
|
|
106
|
-
});
|
|
107
102
|
const marshalCreateCredentialRequest = (request, defaults) => ({
|
|
108
103
|
name: request.name || randomName('mnq'),
|
|
109
104
|
namespace_id: request.namespaceId,
|
|
110
|
-
permissions: request.permissions
|
|
105
|
+
permissions: request.permissions
|
|
111
106
|
});
|
|
112
107
|
const marshalCreateNamespaceRequest = (request, defaults) => ({
|
|
113
108
|
name: request.name || randomName('mnq'),
|
|
@@ -116,7 +111,7 @@ const marshalCreateNamespaceRequest = (request, defaults) => ({
|
|
|
116
111
|
});
|
|
117
112
|
const marshalUpdateCredentialRequest = (request, defaults) => ({
|
|
118
113
|
name: request.name,
|
|
119
|
-
permissions: request.permissions
|
|
114
|
+
permissions: request.permissions
|
|
120
115
|
});
|
|
121
116
|
const marshalUpdateNamespaceRequest = (request, defaults) => ({
|
|
122
117
|
name: request.name,
|
|
@@ -69,7 +69,7 @@ class API extends API$1 {
|
|
|
69
69
|
return _this3.client.fetch({
|
|
70
70
|
method: 'GET',
|
|
71
71
|
path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? _this3.client.settings.defaultRegion)}/backups`,
|
|
72
|
-
urlParams: urlParams(['instance_id', request.instanceId], ['name', request.name], ['order_by', request.orderBy
|
|
72
|
+
urlParams: urlParams(['instance_id', request.instanceId], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
73
73
|
}, unmarshalListDatabaseBackupsResponse);
|
|
74
74
|
};
|
|
75
75
|
})();
|
|
@@ -210,7 +210,7 @@ class API extends API$1 {
|
|
|
210
210
|
return _this5.client.fetch({
|
|
211
211
|
method: 'GET',
|
|
212
212
|
path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? _this5.client.settings.defaultRegion)}/instances`,
|
|
213
|
-
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy
|
|
213
|
+
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this5.client.settings.defaultPageSize], ['project_id', request.projectId], ['tags', request.tags])
|
|
214
214
|
}, unmarshalListInstancesResponse);
|
|
215
215
|
};
|
|
216
216
|
})();
|
|
@@ -507,7 +507,7 @@ class API extends API$1 {
|
|
|
507
507
|
listInstanceLogs = request => this.client.fetch({
|
|
508
508
|
method: 'GET',
|
|
509
509
|
path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/logs`,
|
|
510
|
-
urlParams: urlParams(['order_by', request.orderBy
|
|
510
|
+
urlParams: urlParams(['order_by', request.orderBy])
|
|
511
511
|
}, unmarshalListInstanceLogsResponse);
|
|
512
512
|
|
|
513
513
|
/**
|
|
@@ -665,7 +665,7 @@ class API extends API$1 {
|
|
|
665
665
|
pageOfListUsers = request => this.client.fetch({
|
|
666
666
|
method: 'GET',
|
|
667
667
|
path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users`,
|
|
668
|
-
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy
|
|
668
|
+
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
669
669
|
}, unmarshalListUsersResponse);
|
|
670
670
|
|
|
671
671
|
/**
|
|
@@ -723,7 +723,7 @@ class API extends API$1 {
|
|
|
723
723
|
pageOfListDatabases = request => this.client.fetch({
|
|
724
724
|
method: 'GET',
|
|
725
725
|
path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/databases`,
|
|
726
|
-
urlParams: urlParams(['managed', request.managed], ['name', request.name], ['order_by', request.orderBy
|
|
726
|
+
urlParams: urlParams(['managed', request.managed], ['name', request.name], ['order_by', request.orderBy], ['owner', request.owner], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
727
727
|
}, unmarshalListDatabasesResponse);
|
|
728
728
|
|
|
729
729
|
/**
|
|
@@ -766,7 +766,7 @@ class API extends API$1 {
|
|
|
766
766
|
pageOfListPrivileges = request => this.client.fetch({
|
|
767
767
|
method: 'GET',
|
|
768
768
|
path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/privileges`,
|
|
769
|
-
urlParams: urlParams(['database_name', request.databaseName], ['order_by', request.orderBy
|
|
769
|
+
urlParams: urlParams(['database_name', request.databaseName], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['user_name', request.userName])
|
|
770
770
|
}, unmarshalListPrivilegesResponse);
|
|
771
771
|
|
|
772
772
|
/**
|
|
@@ -804,7 +804,7 @@ class API extends API$1 {
|
|
|
804
804
|
return _this7.client.fetch({
|
|
805
805
|
method: 'GET',
|
|
806
806
|
path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? _this7.client.settings.defaultRegion)}/snapshots`,
|
|
807
|
-
urlParams: urlParams(['instance_id', request.instanceId], ['name', request.name], ['order_by', request.orderBy
|
|
807
|
+
urlParams: urlParams(['instance_id', request.instanceId], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this7.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
808
808
|
}, unmarshalListSnapshotsResponse);
|
|
809
809
|
};
|
|
810
810
|
})();
|