@scaleway/sdk 1.2.0 → 1.5.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.
Files changed (52) hide show
  1. package/dist/api/account/index.js +0 -2
  2. package/dist/api/account/v2/api.gen.js +16 -6
  3. package/dist/api/applesilicon/v1alpha1/api.gen.js +31 -13
  4. package/dist/api/baremetal/index.js +2 -2
  5. package/dist/api/baremetal/v1/api.gen.js +59 -45
  6. package/dist/api/billing/index.js +2 -0
  7. package/dist/api/billing/v2alpha1/api.gen.js +52 -0
  8. package/dist/api/billing/v2alpha1/index.gen.js +3 -0
  9. package/dist/api/billing/v2alpha1/marshalling.gen.js +52 -0
  10. package/dist/api/cockpit/v1beta1/api.gen.js +36 -23
  11. package/dist/api/cockpit/v1beta1/marshalling.gen.js +2 -1
  12. package/dist/api/container/v1beta1/api.gen.js +34 -27
  13. package/dist/api/domain/v2beta1/api.gen.js +89 -78
  14. package/dist/api/flexibleip/v1alpha1/api.gen.js +18 -11
  15. package/dist/api/function/v1beta1/api.gen.js +39 -30
  16. package/dist/api/function/v1beta1/marshalling.gen.js +3 -0
  17. package/dist/api/iam/v1alpha1/api.gen.js +147 -39
  18. package/dist/api/instance/index.js +2 -2
  19. package/dist/api/instance/v1/api.gen.js +72 -61
  20. package/dist/api/iot/v1/api.gen.js +37 -37
  21. package/dist/api/k8s/index.js +2 -2
  22. package/dist/api/k8s/v1/api.gen.js +65 -46
  23. package/dist/api/k8s/v1/marshalling.gen.js +6 -1
  24. package/dist/api/lb/index.js +2 -2
  25. package/dist/api/lb/v1/api.gen.js +231 -110
  26. package/dist/api/lb/v1/marshalling.gen.js +2 -2
  27. package/dist/api/marketplace/v1/api.gen.js +2 -2
  28. package/dist/api/marketplace/v2/api.gen.js +3 -3
  29. package/dist/api/mnq/v1alpha1/api.gen.js +11 -10
  30. package/dist/api/rdb/v1/api.gen.js +195 -63
  31. package/dist/api/rdb/v1/marshalling.gen.js +16 -2
  32. package/dist/api/redis/v1/api.gen.js +88 -25
  33. package/dist/api/registry/v1/api.gen.js +15 -13
  34. package/dist/api/secret/v1alpha1/api.gen.js +43 -18
  35. package/dist/api/tem/v1alpha1/api.gen.js +26 -14
  36. package/dist/api/tem/v1alpha1/marshalling.gen.js +2 -0
  37. package/dist/api/test/v1/api.gen.js +11 -10
  38. package/dist/api/vpc/v1/api.gen.js +5 -5
  39. package/dist/api/vpcgw/v1/api.gen.js +130 -41
  40. package/dist/api/vpcgw/v1/marshalling.gen.js +18 -15
  41. package/dist/api/webhosting/v1alpha1/api.gen.js +10 -9
  42. package/dist/api/webhosting/v1alpha1/marshalling.gen.js +3 -1
  43. package/dist/helpers/is-response.js +10 -0
  44. package/dist/index.cjs +1598 -928
  45. package/dist/index.d.ts +3970 -2960
  46. package/dist/index.js +44 -42
  47. package/dist/scw/constants.js +1 -1
  48. package/dist/scw/fetch/response-parser.js +2 -1
  49. package/package.json +2 -2
  50. package/dist/api/account/v2alpha1/api.gen.js +0 -85
  51. package/dist/api/account/v2alpha1/index.js +0 -1
  52. package/dist/api/account/v2alpha1/marshalling.gen.js +0 -57
@@ -491,15 +491,29 @@ const unmarshalSetInstanceSettingsResponse = data => {
491
491
  settings: unmarshalArrayOfObject(data.settings, unmarshalInstanceSetting)
492
492
  };
493
493
  };
494
+ const marshalEndpointSpecPrivateNetworkIpamConfig = (request, defaults) => ({});
495
+ const marshalReadReplicaEndpointSpecPrivateNetworkIpamConfig = (request, defaults) => ({});
494
496
  const marshalEndpointSpecLoadBalancer = (request, defaults) => ({});
495
497
  const marshalEndpointSpecPrivateNetwork = (request, defaults) => ({
496
498
  private_network_id: request.privateNetworkId,
497
- service_ip: request.serviceIp
499
+ ...resolveOneOf([{
500
+ param: 'service_ip',
501
+ value: request.serviceIp
502
+ }, {
503
+ param: 'ipam_config',
504
+ value: request.ipamConfig ? marshalEndpointSpecPrivateNetworkIpamConfig(request.ipamConfig) : undefined
505
+ }])
498
506
  });
499
507
  const marshalReadReplicaEndpointSpecDirectAccess = (request, defaults) => ({});
500
508
  const marshalReadReplicaEndpointSpecPrivateNetwork = (request, defaults) => ({
501
509
  private_network_id: request.privateNetworkId,
502
- service_ip: request.serviceIp
510
+ ...resolveOneOf([{
511
+ param: 'service_ip',
512
+ value: request.serviceIp
513
+ }, {
514
+ param: 'ipam_config',
515
+ value: request.ipamConfig ? marshalReadReplicaEndpointSpecPrivateNetworkIpamConfig(request.ipamConfig) : undefined
516
+ }])
503
517
  });
504
518
  const marshalACLRuleRequest = (request, defaults) => ({
505
519
  description: request.description,
@@ -17,7 +17,10 @@ class API extends API$1 {
17
17
  super(...arguments);
18
18
  _this = this;
19
19
  /**
20
- * Create a cluster
20
+ * Create a Redis™ Database Instance. Create a new Redis™ Database Instance
21
+ * (Redis™ cluster). You must set the `zone`, `project_id`, `version`,
22
+ * `node_type`, `user_name` and `password` parameters. Optionally you can
23
+ * define `acl_rules`, `endpoints`, `tls_enabled` and `cluster_settings`.
21
24
  *
22
25
  * @param request - The request {@link CreateClusterRequest}
23
26
  * @returns A Promise of Cluster
@@ -29,7 +32,9 @@ class API extends API$1 {
29
32
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters`
30
33
  }, unmarshalCluster);
31
34
  /**
32
- * Update a cluster
35
+ * Update a Redis™ Database Instance. Update the parameters of a Redis™
36
+ * Database Instance (Redis™ cluster), including `name`, `tags`, `user_name`
37
+ * and `password`.
33
38
  *
34
39
  * @param request - The request {@link UpdateClusterRequest}
35
40
  * @returns A Promise of Cluster
@@ -41,7 +46,11 @@ class API extends API$1 {
41
46
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}`
42
47
  }, unmarshalCluster);
43
48
  /**
44
- * Get a cluster
49
+ * Get a Redis™ Database Instance. Retrieve information about a Redis™
50
+ * Database Instance (Redis™ cluster). Specify the `cluster_id` and `region`
51
+ * in your request to get information such as `id`, `status`, `version`,
52
+ * `tls_enabled`, `cluster_settings`, `upgradable_versions` and `endpoints`
53
+ * about your cluster in the response.
45
54
  *
46
55
  * @param request - The request {@link GetClusterRequest}
47
56
  * @returns A Promise of Cluster
@@ -69,7 +78,12 @@ class API extends API$1 {
69
78
  }, unmarshalListClustersResponse);
70
79
  };
71
80
  /**
72
- * List clusters
81
+ * List Redis™ Database Instances. List all Redis™ Database Instances (Redis™
82
+ * cluster) in the specified zone. By default, the Database Instances returned
83
+ * in the list are ordered by creation date in ascending order, though this
84
+ * can be modified via the order_by field. You can define additional
85
+ * parameters for your query, such as `tags`, `name`, `organization_id` and
86
+ * `version`.
73
87
  *
74
88
  * @param request - The request {@link ListClustersRequest}
75
89
  * @returns A Promise of ListClustersResponse
@@ -81,10 +95,13 @@ class API extends API$1 {
81
95
  return enrichForPagination('clusters', _this.pageOfListClusters, request);
82
96
  };
83
97
  /**
84
- * Upgrade your Database for Redis® cluster to a new version or scale it
85
- * vertically / horizontally. Please note: scaling horizontally your Database
86
- * for Redis® cluster won't renew its TLS certificate. In order to refresh the
87
- * SSL certificate, you have to use the dedicated api route.
98
+ * Scale up a Redis Database Instance. Upgrade your standalone Redis™
99
+ * Database Instance node, either by upgrading to a bigger node type (vertical
100
+ * scaling) or by adding more nodes to your Database Instance to increase your
101
+ * number of endpoints and distribute cache (horizontal scaling). Note that
102
+ * scaling horizontally your Redis™ Database Instance will not renew its TLS
103
+ * certificate. In order to refresh the TLS certificate, you must use the
104
+ * Renew TLS certificate endpoint.
88
105
  *
89
106
  * @param request - The request {@link MigrateClusterRequest}
90
107
  * @returns A Promise of Cluster
@@ -96,7 +113,10 @@ class API extends API$1 {
96
113
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}/migrate`
97
114
  }, unmarshalCluster);
98
115
  /**
99
- * Delete a cluster
116
+ * Delete a Redis™ Database Instance. Delete a Redis™ Database Instance
117
+ * (Redis™ cluster), specified by the `region` and `cluster_id` parameters.
118
+ * Deleting a Database Instance is permanent, and cannot be undone. Note that
119
+ * upon deletion all your data will be lost.
100
120
  *
101
121
  * @param request - The request {@link DeleteClusterRequest}
102
122
  * @returns A Promise of Cluster
@@ -106,7 +126,9 @@ class API extends API$1 {
106
126
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}`
107
127
  }, unmarshalCluster);
108
128
  /**
109
- * Get metrics of a cluster
129
+ * Get metrics of a Redis™ Database Instance. Retrieve the metrics of a Redis™
130
+ * Database Instance (Redis™ cluster). You can define the period from which to
131
+ * retrieve metrics by specifying the `start_date` and `end_date`.
110
132
  *
111
133
  * @param request - The request {@link GetClusterMetricsRequest}
112
134
  * @returns A Promise of ClusterMetricsResponse
@@ -122,7 +144,9 @@ class API extends API$1 {
122
144
  urlParams: urlParams(['include_disabled_types', request.includeDisabledTypes], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
123
145
  }, unmarshalListNodeTypesResponse);
124
146
  /**
125
- * List available node types
147
+ * List available node types. List all available node types. By default, the
148
+ * node types returned in the list are ordered by creation date in ascending
149
+ * order, though this can be modified via the `order_by` field.
126
150
  *
127
151
  * @param request - The request {@link ListNodeTypesRequest}
128
152
  * @returns A Promise of ListNodeTypesResponse
@@ -134,14 +158,18 @@ class API extends API$1 {
134
158
  urlParams: urlParams(['include_beta', request.includeBeta], ['include_deprecated', request.includeDeprecated], ['include_disabled', request.includeDisabled], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['version', request.version])
135
159
  }, unmarshalListClusterVersionsResponse);
136
160
  /**
137
- * List available Redis™ versions
161
+ * List available Redis™ versions. List the Redis™ database engine versions
162
+ * available. You can define additional parameters for your query, such as
163
+ * `include_disabled`, `include_beta`, `include_deprecated` and `version`.
138
164
  *
139
165
  * @param request - The request {@link ListClusterVersionsRequest}
140
166
  * @returns A Promise of ListClusterVersionsResponse
141
167
  */
142
168
  this.listClusterVersions = request => enrichForPagination('versions', this.pageOfListClusterVersions, request);
143
169
  /**
144
- * Get the TLS certificate of a cluster
170
+ * Get the TLS certificate of a cluster. Retrieve information about the TLS
171
+ * certificate of a Redis™ Database Instance (Redis™ cluster). Details like
172
+ * name and content are returned in the response.
145
173
  *
146
174
  * @param request - The request {@link GetClusterCertificateRequest}
147
175
  * @returns A Promise of Blob
@@ -153,7 +181,11 @@ class API extends API$1 {
153
181
  responseType: 'blob'
154
182
  });
155
183
  /**
156
- * Renew the TLS certificate of a cluster
184
+ * Renew the TLS certificate of a cluster. Renew a TLS certificate for a
185
+ * Redis™ Database Instance (Redis™ cluster). Renewing a certificate means
186
+ * that you will not be able to connect to your Database Instance using the
187
+ * previous certificate. You will also need to download and update the new
188
+ * certificate for all database clients.
157
189
  *
158
190
  * @param request - The request {@link RenewClusterCertificateRequest}
159
191
  * @returns A Promise of Cluster
@@ -165,7 +197,9 @@ class API extends API$1 {
165
197
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}/renew-certificate`
166
198
  }, unmarshalCluster);
167
199
  /**
168
- * Add cluster settings
200
+ * Add advanced settings. Add an advanced setting to a Redis™ Database
201
+ * Instance (Redis™ cluster). You must set the `name` and the `value` of each
202
+ * setting.
169
203
  *
170
204
  * @param request - The request {@link AddClusterSettingsRequest}
171
205
  * @returns A Promise of ClusterSettingsResponse
@@ -177,7 +211,9 @@ class API extends API$1 {
177
211
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}/settings`
178
212
  }, unmarshalClusterSettingsResponse);
179
213
  /**
180
- * Delete a cluster setting
214
+ * Delete advanced setting. Delete an advanced setting in a Redis™ Database
215
+ * Instance (Redis™ cluster). You must specify the names of the settings you
216
+ * want to delete in the request body.
181
217
  *
182
218
  * @param request - The request {@link DeleteClusterSettingRequest}
183
219
  * @returns A Promise of Cluster
@@ -187,7 +223,9 @@ class API extends API$1 {
187
223
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}/settings/${validatePathParam('settingName', request.settingName)}`
188
224
  }, unmarshalCluster);
189
225
  /**
190
- * Set cluster settings
226
+ * Set advanced settings. Update an advanced setting for a Redis™ Database
227
+ * Instance (Redis™ cluster). Settings added upon database engine
228
+ * initalization can only be defined once, and cannot, therefore, be updated.
191
229
  *
192
230
  * @param request - The request {@link SetClusterSettingsRequest}
193
231
  * @returns A Promise of ClusterSettingsResponse
@@ -199,7 +237,8 @@ class API extends API$1 {
199
237
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}/settings`
200
238
  }, unmarshalClusterSettingsResponse);
201
239
  /**
202
- * Set ACL rules for a given cluster
240
+ * Set ACL rules for a cluster. Replace all the ACL rules of a Redis™ Database
241
+ * Instance (Redis™ cluster).
203
242
  *
204
243
  * @param request - The request {@link SetAclRulesRequest}
205
244
  * @returns A Promise of SetAclRulesResponse
@@ -211,7 +250,8 @@ class API extends API$1 {
211
250
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}/acls`
212
251
  }, unmarshalSetAclRulesResponse);
213
252
  /**
214
- * Add ACL rules for a given cluster
253
+ * Add ACL rules for a cluster. Add an additional ACL rule to a Redis™
254
+ * Database Instance (Redis™ cluster).
215
255
  *
216
256
  * @param request - The request {@link AddAclRulesRequest}
217
257
  * @returns A Promise of AddAclRulesResponse
@@ -223,7 +263,9 @@ class API extends API$1 {
223
263
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}/acls`
224
264
  }, unmarshalAddAclRulesResponse);
225
265
  /**
226
- * Delete an ACL rule for a given cluster
266
+ * Delete an ACL rule for a cluster. Delete an ACL rule of a Redis™ Database
267
+ * Instance (Redis™ cluster). You must specify the `acl_id` of the rule you
268
+ * want to delete in your request.
227
269
  *
228
270
  * @param request - The request {@link DeleteAclRuleRequest}
229
271
  * @returns A Promise of Cluster
@@ -233,7 +275,9 @@ class API extends API$1 {
233
275
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam('aclId', request.aclId)}`
234
276
  }, unmarshalCluster);
235
277
  /**
236
- * Get an ACL rule
278
+ * Get an ACL rule. Retrieve information about an ACL rule of a Redis™
279
+ * Database Instance (Redis™ cluster). You must specify the `acl_id` of the
280
+ * rule in your request.
237
281
  *
238
282
  * @param request - The request {@link GetAclRuleRequest}
239
283
  * @returns A Promise of ACLRule
@@ -243,7 +287,9 @@ class API extends API$1 {
243
287
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam('aclId', request.aclId)}`
244
288
  }, unmarshalACLRule);
245
289
  /**
246
- * Set endpoints for a given cluster
290
+ * Set endpoints for a cluster. Update an endpoint for a Redis™ Database
291
+ * Instance (Redis™ cluster). You must specify the `cluster_id` and the
292
+ * `endpoints` parameters in your request.
247
293
  *
248
294
  * @param request - The request {@link SetEndpointsRequest}
249
295
  * @returns A Promise of SetEndpointsResponse
@@ -255,7 +301,9 @@ class API extends API$1 {
255
301
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}/endpoints`
256
302
  }, unmarshalSetEndpointsResponse);
257
303
  /**
258
- * Add endpoints for a given cluster
304
+ * Add endpoints for a cluster. Add a new endpoint for a Redis™ Database
305
+ * Instance (Redis™ cluster). You can add `private_network` or
306
+ * `public_network` specifications to the body of the request.
259
307
  *
260
308
  * @param request - The request {@link AddEndpointsRequest}
261
309
  * @returns A Promise of AddEndpointsResponse
@@ -267,7 +315,10 @@ class API extends API$1 {
267
315
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/clusters/${validatePathParam('clusterId', request.clusterId)}/endpoints`
268
316
  }, unmarshalAddEndpointsResponse);
269
317
  /**
270
- * Delete an endpoint for a given cluster
318
+ * Delete an endpoint for a cluster. Delete the endpoint of a Redis™ Database
319
+ * Instance (Redis™ cluster). You must specify the `region` and `endpoint_id`
320
+ * parameters of the endpoint you want to delete. Note that might need to
321
+ * update any environment configurations that point to the deleted endpoint.
271
322
  *
272
323
  * @param request - The request {@link DeleteEndpointRequest}
273
324
  * @returns A Promise of Cluster
@@ -277,7 +328,10 @@ class API extends API$1 {
277
328
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/endpoints/${validatePathParam('endpointId', request.endpointId)}`
278
329
  }, unmarshalCluster);
279
330
  /**
280
- * Get an endpoint
331
+ * Get an endpoint. Retrieve information about a Redis™ Database Instance
332
+ * (Redis™ cluster) endpoint. Full details about the endpoint, like `ips`,
333
+ * `port`, `private_network` and `public_network` specifications are returned
334
+ * in the response.
281
335
  *
282
336
  * @param request - The request {@link GetEndpointRequest}
283
337
  * @returns A Promise of Endpoint
@@ -286,6 +340,15 @@ class API extends API$1 {
286
340
  method: 'GET',
287
341
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/endpoints/${validatePathParam('endpointId', request.endpointId)}`
288
342
  }, unmarshalEndpoint);
343
+ /**
344
+ * Update an endpoint. Update information about a Redis™ Database Instance
345
+ * (Redis™ cluster) endpoint. Full details about the endpoint, like `ips`,
346
+ * `port`, `private_network` and `public_network` specifications are returned
347
+ * in the response.
348
+ *
349
+ * @param request - The request {@link UpdateEndpointRequest}
350
+ * @returns A Promise of Endpoint
351
+ */
289
352
  this.updateEndpoint = request => this.client.fetch({
290
353
  body: JSON.stringify(marshalUpdateEndpointRequest(request, this.client.settings)),
291
354
  headers: jsonContentHeaders,
@@ -13,7 +13,7 @@ const jsonContentHeaders = {
13
13
  /**
14
14
  * Registry API.
15
15
  *
16
- * Container registry API.
16
+ * Container registry API. Registry API.
17
17
  */
18
18
  class API extends API$1 {
19
19
  constructor() {
@@ -31,7 +31,7 @@ class API extends API$1 {
31
31
  }, unmarshalListNamespacesResponse);
32
32
  };
33
33
  /**
34
- * List all your namespaces
34
+ * List all your namespaces.
35
35
  *
36
36
  * @param request - The request {@link ListNamespacesRequest}
37
37
  * @returns A Promise of ListNamespacesResponse
@@ -43,7 +43,7 @@ class API extends API$1 {
43
43
  return enrichForPagination('namespaces', _this.pageOfListNamespaces, request);
44
44
  };
45
45
  /**
46
- * Get the namespace associated with the given id.
46
+ * Get a namespace. Get the namespace associated with the given id.
47
47
  *
48
48
  * @param request - The request {@link GetNamespaceRequest}
49
49
  * @returns A Promise of Namespace
@@ -61,7 +61,7 @@ class API extends API$1 {
61
61
  */
62
62
  this.waitForNamespace = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!NAMESPACE_TRANSIENT_STATUSES.includes(res.status))), this.getNamespace, request, options);
63
63
  /**
64
- * Create a new namespace
64
+ * Create a new namespace.
65
65
  *
66
66
  * @param request - The request {@link CreateNamespaceRequest}
67
67
  * @returns A Promise of Namespace
@@ -73,7 +73,8 @@ class API extends API$1 {
73
73
  path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
74
74
  }, unmarshalNamespace);
75
75
  /**
76
- * Update the namespace associated with the given id.
76
+ * Update an existing namespace. Update the namespace associated with the
77
+ * given id.
77
78
  *
78
79
  * @param request - The request {@link UpdateNamespaceRequest}
79
80
  * @returns A Promise of Namespace
@@ -85,7 +86,8 @@ class API extends API$1 {
85
86
  path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
86
87
  }, unmarshalNamespace);
87
88
  /**
88
- * Delete the namespace associated with the given id.
89
+ * Delete an existing namespace. Delete the namespace associated with the
90
+ * given id.
89
91
  *
90
92
  * @param request - The request {@link DeleteNamespaceRequest}
91
93
  * @returns A Promise of Namespace
@@ -105,7 +107,7 @@ class API extends API$1 {
105
107
  }, unmarshalListImagesResponse);
106
108
  };
107
109
  /**
108
- * List all your images
110
+ * List all your images.
109
111
  *
110
112
  * @param request - The request {@link ListImagesRequest}
111
113
  * @returns A Promise of ListImagesResponse
@@ -117,7 +119,7 @@ class API extends API$1 {
117
119
  return enrichForPagination('images', _this.pageOfListImages, request);
118
120
  };
119
121
  /**
120
- * Get the image associated with the given id.
122
+ * Get a image. Get the image associated with the given id.
121
123
  *
122
124
  * @param request - The request {@link GetImageRequest}
123
125
  * @returns A Promise of Image
@@ -135,7 +137,7 @@ class API extends API$1 {
135
137
  */
136
138
  this.waitForImage = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!IMAGE_TRANSIENT_STATUSES.includes(res.status))), this.getImage, request, options);
137
139
  /**
138
- * Update the image associated with the given id.
140
+ * Update an existing image. Update the image associated with the given id.
139
141
  *
140
142
  * @param request - The request {@link UpdateImageRequest}
141
143
  * @returns A Promise of Image
@@ -147,7 +149,7 @@ class API extends API$1 {
147
149
  path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/images/${validatePathParam('imageId', request.imageId)}`
148
150
  }, unmarshalImage);
149
151
  /**
150
- * Delete the image associated with the given id.
152
+ * Delete an image. Delete the image associated with the given id.
151
153
  *
152
154
  * @param request - The request {@link DeleteImageRequest}
153
155
  * @returns A Promise of Image
@@ -162,14 +164,14 @@ class API extends API$1 {
162
164
  urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
163
165
  }, unmarshalListTagsResponse);
164
166
  /**
165
- * List all your tags
167
+ * List all your tags.
166
168
  *
167
169
  * @param request - The request {@link ListTagsRequest}
168
170
  * @returns A Promise of ListTagsResponse
169
171
  */
170
172
  this.listTags = request => enrichForPagination('tags', this.pageOfListTags, request);
171
173
  /**
172
- * Get the tag associated with the given id.
174
+ * Get a tag. Get the tag associated with the given id.
173
175
  *
174
176
  * @param request - The request {@link GetTagRequest}
175
177
  * @returns A Promise of Tag
@@ -187,7 +189,7 @@ class API extends API$1 {
187
189
  */
188
190
  this.waitForTag = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!TAG_TRANSIENT_STATUSES.includes(res.status))), this.getTag, request, options);
189
191
  /**
190
- * Delete the tag associated with the given id.
192
+ * Delete a tag. Delete the tag associated with the given id.
191
193
  *
192
194
  * @param request - The request {@link DeleteTagRequest}
193
195
  * @returns A Promise of Tag
@@ -9,9 +9,10 @@ const jsonContentHeaders = {
9
9
  };
10
10
 
11
11
  /**
12
- * Secret API (beta).
12
+ * Secret Manager API documentation.
13
13
  *
14
14
  * This API allows you to conveniently store, access and share sensitive data.
15
+ * Secret Manager API documentation.
15
16
  */
16
17
  class API extends API$1 {
17
18
  constructor() {
@@ -19,7 +20,7 @@ class API extends API$1 {
19
20
  super(...arguments);
20
21
  _this = this;
21
22
  /**
22
- * Create a Secret containing no versions
23
+ * Create a secret. You must sepcify the `region` to create a secret.
23
24
  *
24
25
  * @param request - The request {@link CreateSecretRequest}
25
26
  * @returns A Promise of Secret
@@ -31,7 +32,8 @@ class API extends API$1 {
31
32
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets`
32
33
  }, unmarshalSecret);
33
34
  /**
34
- * Get metadata of a Secret
35
+ * Get metadata using the secret's name. Retrieve the metadata of a secret
36
+ * specified by the `region` and the `secret_name` parameters.
35
37
  *
36
38
  * @param request - The request {@link GetSecretRequest}
37
39
  * @returns A Promise of Secret
@@ -41,7 +43,8 @@ class API extends API$1 {
41
43
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}`
42
44
  }, unmarshalSecret);
43
45
  /**
44
- * Get metadata of a Secret
46
+ * Get metadata using the secret's ID. Retrieve the metadata of a secret
47
+ * specified by the `region` and the `secret_id` parameters.
45
48
  *
46
49
  * @param request - The request {@link GetSecretByNameRequest}
47
50
  * @returns A Promise of Secret
@@ -51,7 +54,9 @@ class API extends API$1 {
51
54
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets-by-name/${validatePathParam('secretName', request.secretName)}`
52
55
  }, unmarshalSecret);
53
56
  /**
54
- * Update metadata of a Secret
57
+ * Update metadata of a secret. Edit a secret's metadata such as name, tag(s)
58
+ * and description. The secret to update is specified by the `secret_id` and
59
+ * `region` parameters.
55
60
  *
56
61
  * @param request - The request {@link UpdateSecretRequest}
57
62
  * @returns A Promise of Secret
@@ -73,7 +78,9 @@ class API extends API$1 {
73
78
  }, unmarshalListSecretsResponse);
74
79
  };
75
80
  /**
76
- * List Secrets
81
+ * List secrets. Retrieve the list of secrets created within an Organization
82
+ * and/or Project. You must specify either the `organization_id` or the
83
+ * `project_id` and the `region`.
77
84
  *
78
85
  * @param request - The request {@link ListSecretsRequest}
79
86
  * @returns A Promise of ListSecretsResponse
@@ -85,7 +92,8 @@ class API extends API$1 {
85
92
  return enrichForPagination('secrets', _this.pageOfListSecrets, request);
86
93
  };
87
94
  /**
88
- * Delete a secret
95
+ * Delete a secret. Delete a given secret specified by the `region` and
96
+ * `secret_id` parameters.
89
97
  *
90
98
  * @param request - The request {@link DeleteSecretRequest}
91
99
  */
@@ -94,7 +102,8 @@ class API extends API$1 {
94
102
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}`
95
103
  });
96
104
  /**
97
- * Create a SecretVersion
105
+ * Create a version. Create a version of a given secret specified by the
106
+ * `region` and `secret_id` parameters.
98
107
  *
99
108
  * @param request - The request {@link CreateSecretVersionRequest}
100
109
  * @returns A Promise of SecretVersion
@@ -106,7 +115,9 @@ class API extends API$1 {
106
115
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions`
107
116
  }, unmarshalSecretVersion);
108
117
  /**
109
- * Get metadata of a SecretVersion
118
+ * Get metadata of a secret's version using the secret's ID. Retrieve the
119
+ * metadata of a secret's given version specified by the `region`, `secret_id`
120
+ * and `revision` parameters.
110
121
  *
111
122
  * @param request - The request {@link GetSecretVersionRequest}
112
123
  * @returns A Promise of SecretVersion
@@ -116,7 +127,9 @@ class API extends API$1 {
116
127
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions/${validatePathParam('revision', request.revision)}`
117
128
  }, unmarshalSecretVersion);
118
129
  /**
119
- * Get metadata of a SecretVersion
130
+ * Get metadata of a secret's version using the secret's name. Retrieve the
131
+ * metadata of a secret's given version specified by the `region`,
132
+ * `secret_name` and `revision` parameters.
120
133
  *
121
134
  * @param request - The request {@link GetSecretVersionByNameRequest}
122
135
  * @returns A Promise of SecretVersion
@@ -126,7 +139,8 @@ class API extends API$1 {
126
139
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets-by-name/${validatePathParam('secretName', request.secretName)}/versions/${validatePathParam('revision', request.revision)}`
127
140
  }, unmarshalSecretVersion);
128
141
  /**
129
- * Update metadata of a SecretVersion
142
+ * Update metadata of a version. Edit the metadata of a secret's given
143
+ * version, specified by the `region`, `secret_id` and `revision` parameters.
130
144
  *
131
145
  * @param request - The request {@link UpdateSecretVersionRequest}
132
146
  * @returns A Promise of SecretVersion
@@ -143,7 +157,9 @@ class API extends API$1 {
143
157
  urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['status', request.status])
144
158
  }, unmarshalListSecretVersionsResponse);
145
159
  /**
146
- * List versions of a secret, not returning any sensitive data
160
+ * List versions of a secret using the secret's ID. Retrieve the list of a
161
+ * given secret's versions specified by the `secret_id` and `region`
162
+ * parameters.
147
163
  *
148
164
  * @param request - The request {@link ListSecretVersionsRequest}
149
165
  * @returns A Promise of ListSecretVersionsResponse
@@ -155,14 +171,17 @@ class API extends API$1 {
155
171
  urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['status', request.status])
156
172
  }, unmarshalListSecretVersionsResponse);
157
173
  /**
158
- * List versions of a secret, not returning any sensitive data
174
+ * List versions of a secret using the secret's name. Retrieve the list of a
175
+ * given secret's versions specified by the `secret_name` and `region`
176
+ * parameters.
159
177
  *
160
178
  * @param request - The request {@link ListSecretVersionsByNameRequest}
161
179
  * @returns A Promise of ListSecretVersionsResponse
162
180
  */
163
181
  this.listSecretVersionsByName = request => enrichForPagination('versions', this.pageOfListSecretVersionsByName, request);
164
182
  /**
165
- * Destroy a SecretVersion, permanently destroying the sensitive data
183
+ * Delete a version. Delete a secret's version and the sensitive data
184
+ * contained in it. Deleting a version is permanent and cannot be undone.
166
185
  *
167
186
  * @param request - The request {@link DestroySecretVersionRequest}
168
187
  * @returns A Promise of SecretVersion
@@ -174,7 +193,8 @@ class API extends API$1 {
174
193
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions/${validatePathParam('revision', request.revision)}/destroy`
175
194
  }, unmarshalSecretVersion);
176
195
  /**
177
- * Enable a SecretVersion
196
+ * Enable a version. Make a specific version accessible. You must specify the
197
+ * `region`, `secret_id` and `revision` parameters.
178
198
  *
179
199
  * @param request - The request {@link EnableSecretVersionRequest}
180
200
  * @returns A Promise of SecretVersion
@@ -186,7 +206,8 @@ class API extends API$1 {
186
206
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions/${validatePathParam('revision', request.revision)}/enable`
187
207
  }, unmarshalSecretVersion);
188
208
  /**
189
- * Disable a SecretVersion
209
+ * Disable a version. Make a specific version inaccessible. You must specify
210
+ * the `region`, `secret_id` and `revision` parameters.
190
211
  *
191
212
  * @param request - The request {@link DisableSecretVersionRequest}
192
213
  * @returns A Promise of SecretVersion
@@ -198,7 +219,9 @@ class API extends API$1 {
198
219
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions/${validatePathParam('revision', request.revision)}/disable`
199
220
  }, unmarshalSecretVersion);
200
221
  /**
201
- * Access a SecretVersion, returning the sensitive data
222
+ * Access a secret's version using the secret's ID. Access sensitive data in a
223
+ * secret's version specified by the `region`, `secret_id` and `revision`
224
+ * parameters.
202
225
  *
203
226
  * @param request - The request {@link AccessSecretVersionRequest}
204
227
  * @returns A Promise of AccessSecretVersionResponse
@@ -208,7 +231,9 @@ class API extends API$1 {
208
231
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions/${validatePathParam('revision', request.revision)}/access`
209
232
  }, unmarshalAccessSecretVersionResponse);
210
233
  /**
211
- * Access a SecretVersion, returning the sensitive data
234
+ * Access a secret's version using the secret's name. Access sensitive data in
235
+ * a secret's version specified by the `region`, `secret_name` and `revision`
236
+ * parameters.
212
237
  *
213
238
  * @param request - The request {@link AccessSecretVersionByNameRequest}
214
239
  * @returns A Promise of AccessSecretVersionResponse