@scaleway/sdk 2.50.0 → 2.51.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 (57) hide show
  1. package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +1 -0
  2. package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +1 -0
  3. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +8 -0
  4. package/dist/api/baremetal/v1/marshalling.gen.cjs +3 -1
  5. package/dist/api/baremetal/v1/marshalling.gen.js +3 -1
  6. package/dist/api/baremetal/v1/types.gen.d.ts +4 -3
  7. package/dist/api/edge_services/v1alpha1/api.gen.cjs +27 -2
  8. package/dist/api/edge_services/v1alpha1/api.gen.d.ts +10 -3
  9. package/dist/api/edge_services/v1alpha1/api.gen.js +28 -3
  10. package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
  11. package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +30 -0
  12. package/dist/api/edge_services/v1alpha1/marshalling.gen.d.ts +3 -1
  13. package/dist/api/edge_services/v1alpha1/marshalling.gen.js +30 -0
  14. package/dist/api/edge_services/v1alpha1/types.gen.d.ts +45 -9
  15. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +1 -0
  16. package/dist/api/iam/v1alpha1/marshalling.gen.js +1 -0
  17. package/dist/api/iam/v1alpha1/types.gen.d.ts +2 -0
  18. package/dist/api/index.gen.d.ts +2 -1
  19. package/dist/api/inference/v1beta1/validation-rules.gen.cjs +1 -1
  20. package/dist/api/inference/v1beta1/validation-rules.gen.js +1 -1
  21. package/dist/api/instance/v1/api.gen.cjs +0 -37
  22. package/dist/api/instance/v1/api.gen.d.ts +1 -21
  23. package/dist/api/instance/v1/api.gen.js +1 -38
  24. package/dist/api/instance/v1/index.gen.d.ts +1 -1
  25. package/dist/api/instance/v1/marshalling.gen.cjs +1 -28
  26. package/dist/api/instance/v1/marshalling.gen.d.ts +1 -3
  27. package/dist/api/instance/v1/marshalling.gen.js +1 -28
  28. package/dist/api/instance/v1/types.gen.d.ts +9 -53
  29. package/dist/api/instance/v1/types.private.gen.d.ts +1 -3
  30. package/dist/api/jobs/v1alpha1/validation-rules.gen.cjs +2 -2
  31. package/dist/api/jobs/v1alpha1/validation-rules.gen.js +2 -2
  32. package/dist/api/mongodb/index.gen.cjs +4 -0
  33. package/dist/api/mongodb/index.gen.d.ts +5 -0
  34. package/dist/api/mongodb/index.gen.js +4 -0
  35. package/dist/api/mongodb/v1alpha1/api.gen.cjs +385 -0
  36. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +195 -0
  37. package/dist/api/mongodb/v1alpha1/api.gen.js +385 -0
  38. package/dist/api/mongodb/v1alpha1/content.gen.cjs +16 -0
  39. package/dist/api/mongodb/v1alpha1/content.gen.d.ts +5 -0
  40. package/dist/api/mongodb/v1alpha1/content.gen.js +16 -0
  41. package/dist/api/mongodb/v1alpha1/index.gen.cjs +9 -0
  42. package/dist/api/mongodb/v1alpha1/index.gen.d.ts +4 -0
  43. package/dist/api/mongodb/v1alpha1/index.gen.js +9 -0
  44. package/dist/api/mongodb/v1alpha1/marshalling.gen.cjs +326 -0
  45. package/dist/api/mongodb/v1alpha1/marshalling.gen.d.ts +19 -0
  46. package/dist/api/mongodb/v1alpha1/marshalling.gen.js +326 -0
  47. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +461 -0
  48. package/dist/api/mongodb/v1alpha1/validation-rules.gen.cjs +147 -0
  49. package/dist/api/mongodb/v1alpha1/validation-rules.gen.d.ts +134 -0
  50. package/dist/api/mongodb/v1alpha1/validation-rules.gen.js +147 -0
  51. package/dist/api/webhosting/v1alpha1/types.gen.d.ts +1 -1
  52. package/dist/index.cjs +16 -14
  53. package/dist/index.js +16 -14
  54. package/dist/scw/constants.cjs +1 -1
  55. package/dist/scw/constants.d.ts +2 -2
  56. package/dist/scw/constants.js +1 -1
  57. package/package.json +2 -2
@@ -104,6 +104,7 @@ const unmarshalServer = (data) => {
104
104
  createdAt: marshalling.unmarshalDate(data.created_at),
105
105
  deletableAt: marshalling.unmarshalDate(data.deletable_at),
106
106
  deletionScheduled: data.deletion_scheduled,
107
+ delivered: data.delivered,
107
108
  id: data.id,
108
109
  ip: data.ip,
109
110
  name: data.name,
@@ -102,6 +102,7 @@ const unmarshalServer = (data) => {
102
102
  createdAt: unmarshalDate(data.created_at),
103
103
  deletableAt: unmarshalDate(data.deletable_at),
104
104
  deletionScheduled: data.deletion_scheduled,
105
+ delivered: data.delivered,
105
106
  id: data.id,
106
107
  ip: data.ip,
107
108
  name: data.name,
@@ -101,6 +101,14 @@ export interface Server {
101
101
  deletionScheduled: boolean;
102
102
  /** Zone of the server. */
103
103
  zone: Zone;
104
+ /**
105
+ * Set to true once the server has completed its provisioning steps and is
106
+ * ready to use. Some OS configurations might require a reinstallation of the
107
+ * server before delivery depending on the available stock. A reinstallation
108
+ * after the initial delivery will not change this flag and can be tracked
109
+ * using the server status.
110
+ */
111
+ delivered: boolean;
104
112
  }
105
113
  export type CreateServerRequest = {
106
114
  /** Zone to target. If none is passed will use default zone from the config. */
@@ -166,7 +166,9 @@ const unmarshalPrivateNetworkOption = (data) => {
166
166
  `Unmarshalling the type 'PrivateNetworkOption' failed as data isn't a dictionary.`
167
167
  );
168
168
  }
169
- return {};
169
+ return {
170
+ bandwidthInBps: data.bandwidth_in_bps
171
+ };
170
172
  };
171
173
  const unmarshalPublicBandwidthOption = (data) => {
172
174
  if (!json.isJSONObject(data)) {
@@ -164,7 +164,9 @@ const unmarshalPrivateNetworkOption = (data) => {
164
164
  `Unmarshalling the type 'PrivateNetworkOption' failed as data isn't a dictionary.`
165
165
  );
166
166
  }
167
- return {};
167
+ return {
168
+ bandwidthInBps: data.bandwidth_in_bps
169
+ };
168
170
  };
169
171
  const unmarshalPublicBandwidthOption = (data) => {
170
172
  if (!isJSONObject(data)) {
@@ -53,6 +53,7 @@ export interface LicenseOption {
53
53
  osId: string;
54
54
  }
55
55
  export interface PrivateNetworkOption {
56
+ bandwidthInBps: number;
56
57
  }
57
58
  export interface PublicBandwidthOption {
58
59
  bandwidthInBps: number;
@@ -131,7 +132,7 @@ export interface OfferOptionOffer {
131
132
  */
132
133
  publicBandwidth?: PublicBandwidthOption;
133
134
  /**
134
- * Private_network option.
135
+ * Private_network option, contains the bandwidth_in_bps.
135
136
  *
136
137
  * One-of ('option'): at most one of 'license', 'publicBandwidth',
137
138
  * 'privateNetwork', 'remoteAccess', 'certification' could be set.
@@ -228,7 +229,7 @@ export interface ServerOption {
228
229
  */
229
230
  publicBandwidth?: PublicBandwidthOption;
230
231
  /**
231
- * Private_network option.
232
+ * Private_network option, contains the bandwidth_in_bps.
232
233
  *
233
234
  * One-of ('option'): at most one of 'license', 'publicBandwidth',
234
235
  * 'privateNetwork', 'remoteAccess', 'certification' could be set.
@@ -380,7 +381,7 @@ export interface Option {
380
381
  */
381
382
  publicBandwidth?: PublicBandwidthOption;
382
383
  /**
383
- * Private_network option.
384
+ * Private_network option, contains the bandwidth_in_bps.
384
385
  *
385
386
  * One-of ('option'): at most one of 'license', 'publicBandwidth',
386
387
  * 'privateNetwork', 'remoteAccess', 'certification' could be set.
@@ -87,6 +87,29 @@ class API extends api.API {
87
87
  request,
88
88
  options
89
89
  );
90
+ pageOfListPipelinesWithStages = (request = {}) => this.client.fetch(
91
+ {
92
+ method: "GET",
93
+ path: `/edge-services/v1alpha1/pipelines-stages`,
94
+ urlParams: marshalling.urlParams(
95
+ ["name", request.name],
96
+ ["order_by", request.orderBy],
97
+ ["organization_id", request.organizationId],
98
+ ["page", request.page],
99
+ [
100
+ "page_size",
101
+ request.pageSize ?? this.client.settings.defaultPageSize
102
+ ],
103
+ ["project_id", request.projectId]
104
+ )
105
+ },
106
+ marshalling_gen.unmarshalListPipelinesWithStagesResponse
107
+ );
108
+ listPipelinesWithStages = (request = {}) => resourcePaginator.enrichForPagination(
109
+ "pipelines",
110
+ this.pageOfListPipelinesWithStages,
111
+ request
112
+ );
90
113
  /**
91
114
  * Update pipeline. Update the parameters of an existing pipeline, specified
92
115
  * by its `pipeline_id`. Parameters which can be updated include the `name`,
@@ -625,8 +648,10 @@ class API extends api.API {
625
648
  path: `/edge-services/v1alpha1/current-plan/${marshalling.validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
626
649
  });
627
650
  /**
628
- * Gives information on current edge-services subscription plan and used
629
- * resources with associated price.
651
+ * Gives information on the currently selected Edge Services subscription
652
+ * plan, resource usage and associated billing information for this calendar
653
+ * month (including whether consumption falls within or exceeds the currently
654
+ * selected subscription plan.).
630
655
  *
631
656
  * @param request - The request {@link GetBillingRequest}
632
657
  * @returns A Promise of GetBillingResponse
@@ -1,6 +1,6 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
2
  import type { WaitForOptions } from '../../../bridge';
3
- import type { BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateTLSStageRequest, DNSStage, DeleteBackendStageRequest, DeleteCacheStageRequest, DeleteCurrentPlanRequest, DeleteDNSStageRequest, DeletePipelineRequest, DeleteTLSStageRequest, GetBackendStageRequest, GetBillingRequest, GetBillingResponse, GetCacheStageRequest, GetCurrentPlanRequest, GetDNSStageRequest, GetPipelineRequest, GetPurgeRequestRequest, GetTLSStageRequest, ListBackendStagesRequest, ListBackendStagesResponse, ListCacheStagesRequest, ListCacheStagesResponse, ListDNSStagesRequest, ListDNSStagesResponse, ListPipelinesRequest, ListPipelinesResponse, ListPlansResponse, ListPurgeRequestsRequest, ListPurgeRequestsResponse, ListTLSStagesRequest, ListTLSStagesResponse, Pipeline, Plan, PurgeRequest, SelectPlanRequest, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateTLSStageRequest } from './types.gen';
3
+ import type { BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateTLSStageRequest, DNSStage, DeleteBackendStageRequest, DeleteCacheStageRequest, DeleteCurrentPlanRequest, DeleteDNSStageRequest, DeletePipelineRequest, DeleteTLSStageRequest, GetBackendStageRequest, GetBillingRequest, GetBillingResponse, GetCacheStageRequest, GetCurrentPlanRequest, GetDNSStageRequest, GetPipelineRequest, GetPurgeRequestRequest, GetTLSStageRequest, ListBackendStagesRequest, ListBackendStagesResponse, ListCacheStagesRequest, ListCacheStagesResponse, ListDNSStagesRequest, ListDNSStagesResponse, ListPipelinesRequest, ListPipelinesResponse, ListPipelinesWithStagesRequest, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsRequest, ListPurgeRequestsResponse, ListTLSStagesRequest, ListTLSStagesResponse, Pipeline, Plan, PurgeRequest, SelectPlanRequest, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateTLSStageRequest } from './types.gen';
4
4
  /** Edge Services API. */
5
5
  export declare class API extends ParentAPI {
6
6
  protected pageOfListPipelines: (request?: Readonly<ListPipelinesRequest>) => Promise<ListPipelinesResponse>;
@@ -43,6 +43,11 @@ export declare class API extends ParentAPI {
43
43
  * @returns A Promise of Pipeline
44
44
  */
45
45
  waitForPipeline: (request: Readonly<GetPipelineRequest>, options?: Readonly<WaitForOptions<Pipeline>>) => Promise<Pipeline>;
46
+ protected pageOfListPipelinesWithStages: (request?: Readonly<ListPipelinesWithStagesRequest>) => Promise<ListPipelinesWithStagesResponse>;
47
+ listPipelinesWithStages: (request?: Readonly<ListPipelinesWithStagesRequest>) => Promise<ListPipelinesWithStagesResponse> & {
48
+ all: () => Promise<import("./types.gen").PipelineStages[]>;
49
+ [Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").PipelineStages[], void, void>;
50
+ };
46
51
  /**
47
52
  * Update pipeline. Update the parameters of an existing pipeline, specified
48
53
  * by its `pipeline_id`. Parameters which can be updated include the `name`,
@@ -302,8 +307,10 @@ export declare class API extends ParentAPI {
302
307
  getCurrentPlan: (request?: Readonly<GetCurrentPlanRequest>) => Promise<Plan>;
303
308
  deleteCurrentPlan: (request?: Readonly<DeleteCurrentPlanRequest>) => Promise<void>;
304
309
  /**
305
- * Gives information on current edge-services subscription plan and used
306
- * resources with associated price.
310
+ * Gives information on the currently selected Edge Services subscription
311
+ * plan, resource usage and associated billing information for this calendar
312
+ * month (including whether consumption falls within or exceeds the currently
313
+ * selected subscription plan.).
307
314
  *
308
315
  * @param request - The request {@link GetBillingRequest}
309
316
  * @returns A Promise of GetBillingResponse
@@ -4,7 +4,7 @@ import { urlParams, validatePathParam } from "../../../helpers/marshalling.js";
4
4
  import "../../../vendor/base64/index.js";
5
5
  import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
6
6
  import { PIPELINE_TRANSIENT_STATUSES, PURGE_REQUEST_TRANSIENT_STATUSES } from "./content.gen.js";
7
- import { unmarshalListPipelinesResponse, marshalCreatePipelineRequest, unmarshalPipeline, marshalUpdatePipelineRequest, unmarshalListDNSStagesResponse, marshalCreateDNSStageRequest, unmarshalDNSStage, marshalUpdateDNSStageRequest, unmarshalListTLSStagesResponse, marshalCreateTLSStageRequest, unmarshalTLSStage, marshalUpdateTLSStageRequest, unmarshalListCacheStagesResponse, marshalCreateCacheStageRequest, unmarshalCacheStage, marshalUpdateCacheStageRequest, unmarshalListBackendStagesResponse, marshalCreateBackendStageRequest, unmarshalBackendStage, marshalUpdateBackendStageRequest, marshalCheckDomainRequest, unmarshalCheckDomainResponse, marshalCheckPEMChainRequest, unmarshalCheckPEMChainResponse, unmarshalListPurgeRequestsResponse, marshalCreatePurgeRequestRequest, unmarshalPurgeRequest, marshalCheckLbOriginRequest, unmarshalCheckLbOriginResponse, unmarshalListPlansResponse, marshalSelectPlanRequest, unmarshalPlan, unmarshalGetBillingResponse } from "./marshalling.gen.js";
7
+ import { unmarshalListPipelinesResponse, marshalCreatePipelineRequest, unmarshalPipeline, unmarshalListPipelinesWithStagesResponse, marshalUpdatePipelineRequest, unmarshalListDNSStagesResponse, marshalCreateDNSStageRequest, unmarshalDNSStage, marshalUpdateDNSStageRequest, unmarshalListTLSStagesResponse, marshalCreateTLSStageRequest, unmarshalTLSStage, marshalUpdateTLSStageRequest, unmarshalListCacheStagesResponse, marshalCreateCacheStageRequest, unmarshalCacheStage, marshalUpdateCacheStageRequest, unmarshalListBackendStagesResponse, marshalCreateBackendStageRequest, unmarshalBackendStage, marshalUpdateBackendStageRequest, marshalCheckDomainRequest, unmarshalCheckDomainResponse, marshalCheckPEMChainRequest, unmarshalCheckPEMChainResponse, unmarshalListPurgeRequestsResponse, marshalCreatePurgeRequestRequest, unmarshalPurgeRequest, marshalCheckLbOriginRequest, unmarshalCheckLbOriginResponse, unmarshalListPlansResponse, marshalSelectPlanRequest, unmarshalPlan, unmarshalGetBillingResponse } from "./marshalling.gen.js";
8
8
  const jsonContentHeaders = {
9
9
  "Content-Type": "application/json; charset=utf-8"
10
10
  };
@@ -85,6 +85,29 @@ class API extends API$1 {
85
85
  request,
86
86
  options
87
87
  );
88
+ pageOfListPipelinesWithStages = (request = {}) => this.client.fetch(
89
+ {
90
+ method: "GET",
91
+ path: `/edge-services/v1alpha1/pipelines-stages`,
92
+ urlParams: urlParams(
93
+ ["name", request.name],
94
+ ["order_by", request.orderBy],
95
+ ["organization_id", request.organizationId],
96
+ ["page", request.page],
97
+ [
98
+ "page_size",
99
+ request.pageSize ?? this.client.settings.defaultPageSize
100
+ ],
101
+ ["project_id", request.projectId]
102
+ )
103
+ },
104
+ unmarshalListPipelinesWithStagesResponse
105
+ );
106
+ listPipelinesWithStages = (request = {}) => enrichForPagination(
107
+ "pipelines",
108
+ this.pageOfListPipelinesWithStages,
109
+ request
110
+ );
88
111
  /**
89
112
  * Update pipeline. Update the parameters of an existing pipeline, specified
90
113
  * by its `pipeline_id`. Parameters which can be updated include the `name`,
@@ -623,8 +646,10 @@ class API extends API$1 {
623
646
  path: `/edge-services/v1alpha1/current-plan/${validatePathParam("projectId", request.projectId ?? this.client.settings.defaultProjectId)}`
624
647
  });
625
648
  /**
626
- * Gives information on current edge-services subscription plan and used
627
- * resources with associated price.
649
+ * Gives information on the currently selected Edge Services subscription
650
+ * plan, resource usage and associated billing information for this calendar
651
+ * month (including whether consumption falls within or exceeds the currently
652
+ * selected subscription plan.).
628
653
  *
629
654
  * @param request - The request {@link GetBillingRequest}
630
655
  * @returns A Promise of GetBillingResponse
@@ -1,3 +1,3 @@
1
1
  export { API } from './api.gen';
2
2
  export * from './content.gen';
3
- export type { BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainRequestSecretChain, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateTLSStageRequest, DNSStage, DNSStageType, DeleteBackendStageRequest, DeleteCacheStageRequest, DeleteCurrentPlanRequest, DeleteDNSStageRequest, DeletePipelineRequest, DeleteTLSStageRequest, GetBackendStageRequest, GetBillingRequest, GetBillingResponse, GetCacheStageRequest, GetCurrentPlanRequest, GetDNSStageRequest, GetPipelineRequest, GetPurgeRequestRequest, GetTLSStageRequest, LbOriginError, ListBackendStagesRequest, ListBackendStagesRequestOrderBy, ListBackendStagesResponse, ListCacheStagesRequest, ListCacheStagesRequestOrderBy, ListCacheStagesResponse, ListDNSStagesRequest, ListDNSStagesRequestOrderBy, ListDNSStagesResponse, ListPipelinesRequest, ListPipelinesRequestOrderBy, ListPipelinesResponse, ListPlansResponse, ListPurgeRequestsRequest, ListPurgeRequestsRequestOrderBy, ListPurgeRequestsResponse, ListTLSStagesRequest, ListTLSStagesRequestOrderBy, ListTLSStagesResponse, Pipeline, PipelineError, PipelineErrorCode, PipelineErrorSeverity, PipelineErrorStage, PipelineErrorType, PipelineStatus, Plan, PlanDetails, PlanName, PurgeRequest, PurgeRequestStatus, ScalewayLb, ScalewayLbBackendConfig, ScalewayS3BackendConfig, SelectPlanRequest, TLSSecret, TLSSecretsConfig, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateTLSStageRequest, } from './types.gen';
3
+ export type { BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainRequestSecretChain, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateTLSStageRequest, DNSStage, DNSStageType, DeleteBackendStageRequest, DeleteCacheStageRequest, DeleteCurrentPlanRequest, DeleteDNSStageRequest, DeletePipelineRequest, DeleteTLSStageRequest, GetBackendStageRequest, GetBillingRequest, GetBillingResponse, GetCacheStageRequest, GetCurrentPlanRequest, GetDNSStageRequest, GetPipelineRequest, GetPurgeRequestRequest, GetTLSStageRequest, LbOriginError, ListBackendStagesRequest, ListBackendStagesRequestOrderBy, ListBackendStagesResponse, ListCacheStagesRequest, ListCacheStagesRequestOrderBy, ListCacheStagesResponse, ListDNSStagesRequest, ListDNSStagesRequestOrderBy, ListDNSStagesResponse, ListPipelinesRequest, ListPipelinesRequestOrderBy, ListPipelinesResponse, ListPipelinesWithStagesRequest, ListPipelinesWithStagesRequestOrderBy, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsRequest, ListPurgeRequestsRequestOrderBy, ListPurgeRequestsResponse, ListTLSStagesRequest, ListTLSStagesRequestOrderBy, ListTLSStagesResponse, Pipeline, PipelineError, PipelineErrorCode, PipelineErrorSeverity, PipelineErrorStage, PipelineErrorType, PipelineStages, PipelineStatus, Plan, PlanDetails, PlanName, PurgeRequest, PurgeRequestStatus, ScalewayLb, ScalewayLbBackendConfig, ScalewayS3BackendConfig, SelectPlanRequest, TLSSecret, TLSSecretsConfig, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateTLSStageRequest, } from './types.gen';
@@ -152,6 +152,23 @@ const unmarshalTLSStage = (data) => {
152
152
  updatedAt: marshalling.unmarshalDate(data.updated_at)
153
153
  };
154
154
  };
155
+ const unmarshalPipelineStages = (data) => {
156
+ if (!json.isJSONObject(data)) {
157
+ throw new TypeError(
158
+ `Unmarshalling the type 'PipelineStages' failed as data isn't a dictionary.`
159
+ );
160
+ }
161
+ return {
162
+ backendStages: marshalling.unmarshalArrayOfObject(
163
+ data.backend_stages,
164
+ unmarshalBackendStage
165
+ ),
166
+ cacheStages: marshalling.unmarshalArrayOfObject(data.cache_stages, unmarshalCacheStage),
167
+ dnsStages: marshalling.unmarshalArrayOfObject(data.dns_stages, unmarshalDNSStage),
168
+ pipeline: data.pipeline ? unmarshalPipeline(data.pipeline) : void 0,
169
+ tlsStages: marshalling.unmarshalArrayOfObject(data.tls_stages, unmarshalTLSStage)
170
+ };
171
+ };
155
172
  const unmarshalPurgeRequest = (data) => {
156
173
  if (!json.isJSONObject(data)) {
157
174
  throw new TypeError(
@@ -272,6 +289,17 @@ const unmarshalListPipelinesResponse = (data) => {
272
289
  totalCount: data.total_count
273
290
  };
274
291
  };
292
+ const unmarshalListPipelinesWithStagesResponse = (data) => {
293
+ if (!json.isJSONObject(data)) {
294
+ throw new TypeError(
295
+ `Unmarshalling the type 'ListPipelinesWithStagesResponse' failed as data isn't a dictionary.`
296
+ );
297
+ }
298
+ return {
299
+ pipelines: marshalling.unmarshalArrayOfObject(data.pipelines, unmarshalPipelineStages),
300
+ totalCount: data.total_count
301
+ };
302
+ };
275
303
  const unmarshalListPlansResponse = (data) => {
276
304
  if (!json.isJSONObject(data)) {
277
305
  throw new TypeError(
@@ -483,10 +511,12 @@ exports.unmarshalListBackendStagesResponse = unmarshalListBackendStagesResponse;
483
511
  exports.unmarshalListCacheStagesResponse = unmarshalListCacheStagesResponse;
484
512
  exports.unmarshalListDNSStagesResponse = unmarshalListDNSStagesResponse;
485
513
  exports.unmarshalListPipelinesResponse = unmarshalListPipelinesResponse;
514
+ exports.unmarshalListPipelinesWithStagesResponse = unmarshalListPipelinesWithStagesResponse;
486
515
  exports.unmarshalListPlansResponse = unmarshalListPlansResponse;
487
516
  exports.unmarshalListPurgeRequestsResponse = unmarshalListPurgeRequestsResponse;
488
517
  exports.unmarshalListTLSStagesResponse = unmarshalListTLSStagesResponse;
489
518
  exports.unmarshalPipeline = unmarshalPipeline;
519
+ exports.unmarshalPipelineStages = unmarshalPipelineStages;
490
520
  exports.unmarshalPlan = unmarshalPlan;
491
521
  exports.unmarshalPurgeRequest = unmarshalPurgeRequest;
492
522
  exports.unmarshalTLSStage = unmarshalTLSStage;
@@ -1,10 +1,11 @@
1
1
  import type { DefaultValues } from '../../../bridge';
2
- import type { BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateTLSStageRequest, DNSStage, GetBillingResponse, ListBackendStagesResponse, ListCacheStagesResponse, ListDNSStagesResponse, ListPipelinesResponse, ListPlansResponse, ListPurgeRequestsResponse, ListTLSStagesResponse, Pipeline, Plan, PurgeRequest, SelectPlanRequest, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateTLSStageRequest } from './types.gen';
2
+ import type { BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateTLSStageRequest, DNSStage, GetBillingResponse, ListBackendStagesResponse, ListCacheStagesResponse, ListDNSStagesResponse, ListPipelinesResponse, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsResponse, ListTLSStagesResponse, Pipeline, PipelineStages, Plan, PurgeRequest, SelectPlanRequest, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateTLSStageRequest } from './types.gen';
3
3
  export declare const unmarshalBackendStage: (data: unknown) => BackendStage;
4
4
  export declare const unmarshalCacheStage: (data: unknown) => CacheStage;
5
5
  export declare const unmarshalDNSStage: (data: unknown) => DNSStage;
6
6
  export declare const unmarshalPipeline: (data: unknown) => Pipeline;
7
7
  export declare const unmarshalTLSStage: (data: unknown) => TLSStage;
8
+ export declare const unmarshalPipelineStages: (data: unknown) => PipelineStages;
8
9
  export declare const unmarshalPurgeRequest: (data: unknown) => PurgeRequest;
9
10
  export declare const unmarshalCheckDomainResponse: (data: unknown) => CheckDomainResponse;
10
11
  export declare const unmarshalCheckLbOriginResponse: (data: unknown) => CheckLbOriginResponse;
@@ -14,6 +15,7 @@ export declare const unmarshalListBackendStagesResponse: (data: unknown) => List
14
15
  export declare const unmarshalListCacheStagesResponse: (data: unknown) => ListCacheStagesResponse;
15
16
  export declare const unmarshalListDNSStagesResponse: (data: unknown) => ListDNSStagesResponse;
16
17
  export declare const unmarshalListPipelinesResponse: (data: unknown) => ListPipelinesResponse;
18
+ export declare const unmarshalListPipelinesWithStagesResponse: (data: unknown) => ListPipelinesWithStagesResponse;
17
19
  export declare const unmarshalListPlansResponse: (data: unknown) => ListPlansResponse;
18
20
  export declare const unmarshalListPurgeRequestsResponse: (data: unknown) => ListPurgeRequestsResponse;
19
21
  export declare const unmarshalListTLSStagesResponse: (data: unknown) => ListTLSStagesResponse;
@@ -150,6 +150,23 @@ const unmarshalTLSStage = (data) => {
150
150
  updatedAt: unmarshalDate(data.updated_at)
151
151
  };
152
152
  };
153
+ const unmarshalPipelineStages = (data) => {
154
+ if (!isJSONObject(data)) {
155
+ throw new TypeError(
156
+ `Unmarshalling the type 'PipelineStages' failed as data isn't a dictionary.`
157
+ );
158
+ }
159
+ return {
160
+ backendStages: unmarshalArrayOfObject(
161
+ data.backend_stages,
162
+ unmarshalBackendStage
163
+ ),
164
+ cacheStages: unmarshalArrayOfObject(data.cache_stages, unmarshalCacheStage),
165
+ dnsStages: unmarshalArrayOfObject(data.dns_stages, unmarshalDNSStage),
166
+ pipeline: data.pipeline ? unmarshalPipeline(data.pipeline) : void 0,
167
+ tlsStages: unmarshalArrayOfObject(data.tls_stages, unmarshalTLSStage)
168
+ };
169
+ };
153
170
  const unmarshalPurgeRequest = (data) => {
154
171
  if (!isJSONObject(data)) {
155
172
  throw new TypeError(
@@ -270,6 +287,17 @@ const unmarshalListPipelinesResponse = (data) => {
270
287
  totalCount: data.total_count
271
288
  };
272
289
  };
290
+ const unmarshalListPipelinesWithStagesResponse = (data) => {
291
+ if (!isJSONObject(data)) {
292
+ throw new TypeError(
293
+ `Unmarshalling the type 'ListPipelinesWithStagesResponse' failed as data isn't a dictionary.`
294
+ );
295
+ }
296
+ return {
297
+ pipelines: unmarshalArrayOfObject(data.pipelines, unmarshalPipelineStages),
298
+ totalCount: data.total_count
299
+ };
300
+ };
273
301
  const unmarshalListPlansResponse = (data) => {
274
302
  if (!isJSONObject(data)) {
275
303
  throw new TypeError(
@@ -482,10 +510,12 @@ export {
482
510
  unmarshalListCacheStagesResponse,
483
511
  unmarshalListDNSStagesResponse,
484
512
  unmarshalListPipelinesResponse,
513
+ unmarshalListPipelinesWithStagesResponse,
485
514
  unmarshalListPlansResponse,
486
515
  unmarshalListPurgeRequestsResponse,
487
516
  unmarshalListTLSStagesResponse,
488
517
  unmarshalPipeline,
518
+ unmarshalPipelineStages,
489
519
  unmarshalPlan,
490
520
  unmarshalPurgeRequest,
491
521
  unmarshalTLSStage
@@ -5,6 +5,7 @@ export type ListBackendStagesRequestOrderBy = 'created_at_asc' | 'created_at_des
5
5
  export type ListCacheStagesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
6
6
  export type ListDNSStagesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
7
7
  export type ListPipelinesRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
8
+ export type ListPipelinesWithStagesRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
8
9
  export type ListPurgeRequestsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
9
10
  export type ListTLSStagesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
10
11
  export type PipelineErrorCode = 'unknown_code' | 'dns_invalid_format' | 'dns_invalid_tld' | 'dns_forbidden_root_domain' | 'dns_forbidden_scw_cloud' | 'dns_domain_dont_exist' | 'dns_cname_dont_exist' | 'dns_cname_resolve' | 'dns_fqdn_already_exists' | 'dns_fqdn_already_in_use' | 'tls_cert_deleted' | 'tls_cert_disabled' | 'tls_cert_expired' | 'tls_cert_invalid_format' | 'tls_cert_missing' | 'tls_chain_order' | 'tls_key_invalid_format' | 'tls_key_missing' | 'tls_key_too_many' | 'tls_managed_domain_rate_limit' | 'tls_managed_internal' | 'tls_pair_mismatch' | 'tls_root_inconsistent' | 'tls_root_incorrect' | 'tls_root_missing' | 'tls_san_mismatch' | 'tls_self_signed';
@@ -205,9 +206,16 @@ export interface PlanDetails {
205
206
  planName: PlanName;
206
207
  /** Amount of egress data from cache included in subscription plan. */
207
208
  packageGb: number;
208
- /** Number of pipeline included in subscription plan. */
209
+ /** Number of pipelines included in subscription plan. */
209
210
  pipelineLimit: number;
210
211
  }
212
+ export interface PipelineStages {
213
+ pipeline?: Pipeline;
214
+ dnsStages: DNSStage[];
215
+ tlsStages: TLSStage[];
216
+ cacheStages: CacheStage[];
217
+ backendStages: BackendStage[];
218
+ }
211
219
  export interface PurgeRequest {
212
220
  /** ID of the purge request. */
213
221
  id: string;
@@ -408,23 +416,39 @@ export type GetBillingRequest = {
408
416
  projectId?: string;
409
417
  };
410
418
  export interface GetBillingResponse {
411
- /** Information on the current edge-service subscription plan. */
419
+ /**
420
+ * Information on the currently-selected, active Edge Services subscription
421
+ * plan.
422
+ */
412
423
  currentPlan?: PlanDetails;
413
424
  /** Price of the current subscription plan. */
414
425
  planCost?: Money;
415
- /** Total number of pipeline currently configured. */
426
+ /** Total number of pipelines currently configured. */
416
427
  pipelineNumber: number;
417
- /** Cost to date of the pipelines not included in the plans. */
428
+ /**
429
+ * Cost to date (this month) of pipelines not included in the subscription
430
+ * plan.
431
+ */
418
432
  extraPipelinesCost?: Money;
419
- /** Total amount of data egressed from cache in current subscription plan. */
433
+ /**
434
+ * Total amount of data egressed from the cache (this month), included in the
435
+ * active subscription plan.
436
+ */
420
437
  currentPlanCacheUsage: number;
421
- /** Total amount of data egressed from cache not included in the plans. */
438
+ /**
439
+ * Total amount of data egressed from cache (this month), not included in the
440
+ * active subscription plan.
441
+ */
422
442
  extraCacheUsage: number;
423
- /** Cost to date of the data egressed from cache not included in the plans. */
443
+ /**
444
+ * Cost to date (this month) of the data egressed from the cache that is not
445
+ * included in the active subscription plan.
446
+ */
424
447
  extraCacheCost?: Money;
425
448
  /**
426
- * Total cost to date of edge-service product for the month including current
427
- * plan, previous plans, extra pipelines and extra egress cache data.
449
+ * Total cost to date (this month) of all Edge Services resources including
450
+ * active subscription plan, previously active plans, extra pipelines and
451
+ * extra egress cache data.
428
452
  */
429
453
  totalCost?: Money;
430
454
  }
@@ -577,6 +601,18 @@ export interface ListPipelinesResponse {
577
601
  /** Count of all pipelines matching the requested criteria. */
578
602
  totalCount: number;
579
603
  }
604
+ export type ListPipelinesWithStagesRequest = {
605
+ orderBy?: ListPipelinesWithStagesRequestOrderBy;
606
+ page?: number;
607
+ pageSize?: number;
608
+ name?: string;
609
+ organizationId?: string;
610
+ projectId?: string;
611
+ };
612
+ export interface ListPipelinesWithStagesResponse {
613
+ pipelines: PipelineStages[];
614
+ totalCount: number;
615
+ }
580
616
  export interface ListPlansResponse {
581
617
  totalCount: number;
582
618
  plans: PlanDetails[];
@@ -33,6 +33,7 @@ const unmarshalAPIKey = (data) => {
33
33
  createdAt: marshalling.unmarshalDate(data.created_at),
34
34
  creationIp: data.creation_ip,
35
35
  defaultProjectId: data.default_project_id,
36
+ deletable: data.deletable,
36
37
  description: data.description,
37
38
  editable: data.editable,
38
39
  expiresAt: marshalling.unmarshalDate(data.expires_at),
@@ -31,6 +31,7 @@ const unmarshalAPIKey = (data) => {
31
31
  createdAt: unmarshalDate(data.created_at),
32
32
  creationIp: data.creation_ip,
33
33
  defaultProjectId: data.default_project_id,
34
+ deletable: data.deletable,
34
35
  description: data.description,
35
36
  editable: data.editable,
36
37
  expiresAt: unmarshalDate(data.expires_at),
@@ -91,6 +91,8 @@ export interface APIKey {
91
91
  defaultProjectId: string;
92
92
  /** Defines whether or not the API key is editable. */
93
93
  editable: boolean;
94
+ /** Defines whether or not the API key is deletable. */
95
+ deletable: boolean;
94
96
  /** Defines whether or not the API key is managed. */
95
97
  managed: boolean;
96
98
  /** IP address of the device that created the API key. */
@@ -28,6 +28,7 @@ import * as Lb from './lb/index.gen';
28
28
  import * as LlmInference from './llm_inference/index.gen';
29
29
  import * as Marketplace from './marketplace/index.gen';
30
30
  import * as Mnq from './mnq/index.gen';
31
+ import * as Mongodb from './mongodb/index.gen';
31
32
  import * as Qaas from './qaas/index.gen';
32
33
  import * as Rdb from './rdb/index.gen';
33
34
  import * as Redis from './redis/index.gen';
@@ -40,4 +41,4 @@ import * as Test from './test/index.gen';
40
41
  import * as Vpc from './vpc/index.gen';
41
42
  import * as Vpcgw from './vpcgw/index.gen';
42
43
  import * as Webhosting from './webhosting/index.gen';
43
- export { Account, Applesilicon, Baremetal, Billing, Block, Cockpit, Container, Dedibox, DocumentDb, Domain, EdgeServices, Flexibleip, Function, Iam, Inference, Instance, Iot, Ipam, Ipfs, Jobs, K8s, KeyManager, Lb, LlmInference, Marketplace, Mnq, Qaas, Rdb, Redis, Registry, Secret, ServerlessSqldb, Std, Tem, Test, Vpc, Vpcgw, Webhosting, };
44
+ export { Account, Applesilicon, Baremetal, Billing, Block, Cockpit, Container, Dedibox, DocumentDb, Domain, EdgeServices, Flexibleip, Function, Iam, Inference, Instance, Iot, Ipam, Ipfs, Jobs, K8s, KeyManager, Lb, LlmInference, Marketplace, Mnq, Mongodb, Qaas, Rdb, Redis, Registry, Secret, ServerlessSqldb, Std, Tem, Test, Vpc, Vpcgw, Webhosting, };
@@ -12,7 +12,7 @@ const CreateDeploymentRequest = {
12
12
  modelName: {
13
13
  maxLength: 255,
14
14
  minLength: 0,
15
- pattern: /^[\w-_]+\/[\w-_.]+(:[\w]+)?$/
15
+ pattern: /^[A-Za-z0-9_-]+\/[A-Za-z0-9_.-]+(:\w+)?$/
16
16
  },
17
17
  name: {
18
18
  maxLength: 255,
@@ -10,7 +10,7 @@ const CreateDeploymentRequest = {
10
10
  modelName: {
11
11
  maxLength: 255,
12
12
  minLength: 0,
13
- pattern: /^[\w-_]+\/[\w-_.]+(:[\w]+)?$/
13
+ pattern: /^[A-Za-z0-9_-]+\/[A-Za-z0-9_.-]+(:\w+)?$/
14
14
  },
15
15
  name: {
16
16
  maxLength: 255,
@@ -1086,43 +1086,6 @@ class API extends api.API {
1086
1086
  method: "DELETE",
1087
1087
  path: `/instance/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/private_nics/${marshalling.validatePathParam("privateNicId", request.privateNicId)}`
1088
1088
  });
1089
- pageOfListBootscripts = (request = {}) => this.client.fetch(
1090
- {
1091
- method: "GET",
1092
- path: `/instance/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/bootscripts`,
1093
- urlParams: marshalling.urlParams(
1094
- ["arch", request.arch],
1095
- ["default", request.default],
1096
- ["page", request.page],
1097
- ["per_page", request.perPage ?? this.client.settings.defaultPageSize],
1098
- ["public", request.public],
1099
- ["title", request.title]
1100
- )
1101
- },
1102
- marshalling_gen.unmarshalListBootscriptsResponse
1103
- );
1104
- /**
1105
- * List bootscripts.
1106
- *
1107
- * @deprecated
1108
- * @param request - The request {@link ListBootscriptsRequest}
1109
- * @returns A Promise of ListBootscriptsResponse
1110
- */
1111
- listBootscripts = (request = {}) => resourcePaginator.enrichForPagination("bootscripts", this.pageOfListBootscripts, request);
1112
- /**
1113
- * Get bootscripts. Get details of a bootscript with the specified ID.
1114
- *
1115
- * @deprecated
1116
- * @param request - The request {@link GetBootscriptRequest}
1117
- * @returns A Promise of GetBootscriptResponse
1118
- */
1119
- getBootscript = (request) => this.client.fetch(
1120
- {
1121
- method: "GET",
1122
- path: `/instance/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/bootscripts/${marshalling.validatePathParam("bootscriptId", request.bootscriptId)}`
1123
- },
1124
- marshalling_gen.unmarshalGetBootscriptResponse
1125
- );
1126
1089
  getDashboard = (request = {}) => this.client.fetch(
1127
1090
  {
1128
1091
  method: "GET",
@@ -1,6 +1,6 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
2
  import type { Zone } from '../../../bridge';
3
- import type { ApplyBlockMigrationRequest, AttachServerVolumeRequest, AttachServerVolumeResponse, CreateImageRequest, CreateImageResponse, CreateIpRequest, CreateIpResponse, CreatePlacementGroupRequest, CreatePlacementGroupResponse, CreatePrivateNICRequest, CreatePrivateNICResponse, CreateSecurityGroupRequest, CreateSecurityGroupResponse, CreateSecurityGroupRuleRequest, CreateSecurityGroupRuleResponse, CreateServerRequest, CreateServerResponse, CreateSnapshotRequest, CreateSnapshotResponse, CreateVolumeRequest, CreateVolumeResponse, DeleteImageRequest, DeleteIpRequest, DeletePlacementGroupRequest, DeletePrivateNICRequest, DeleteSecurityGroupRequest, DeleteSecurityGroupRuleRequest, DeleteServerRequest, DeleteServerUserDataRequest, DeleteSnapshotRequest, DeleteVolumeRequest, DetachServerVolumeRequest, DetachServerVolumeResponse, ExportSnapshotRequest, ExportSnapshotResponse, GetBootscriptRequest, GetBootscriptResponse, GetDashboardRequest, GetDashboardResponse, GetImageRequest, GetImageResponse, GetIpRequest, GetIpResponse, GetPlacementGroupRequest, GetPlacementGroupResponse, GetPlacementGroupServersRequest, GetPlacementGroupServersResponse, GetPrivateNICRequest, GetPrivateNICResponse, GetSecurityGroupRequest, GetSecurityGroupResponse, GetSecurityGroupRuleRequest, GetSecurityGroupRuleResponse, GetServerRequest, GetServerResponse, GetServerTypesAvailabilityRequest, GetServerTypesAvailabilityResponse, GetSnapshotRequest, GetSnapshotResponse, GetVolumeRequest, GetVolumeResponse, ListBootscriptsRequest, ListBootscriptsResponse, ListDefaultSecurityGroupRulesRequest, ListImagesRequest, ListImagesResponse, ListIpsRequest, ListIpsResponse, ListPlacementGroupsRequest, ListPlacementGroupsResponse, ListPrivateNICsRequest, ListPrivateNICsResponse, ListSecurityGroupRulesRequest, ListSecurityGroupRulesResponse, ListSecurityGroupsRequest, ListSecurityGroupsResponse, ListServerActionsRequest, ListServerActionsResponse, ListServerUserDataRequest, ListServerUserDataResponse, ListServersRequest, ListServersResponse, ListServersTypesRequest, ListServersTypesResponse, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumesRequest, ListVolumesResponse, ListVolumesTypesRequest, ListVolumesTypesResponse, MigrationPlan, PlanBlockMigrationRequest, PrivateNIC, ServerActionRequest, ServerActionResponse, SetImageRequest, SetPlacementGroupRequest, SetPlacementGroupResponse, SetPlacementGroupServersRequest, SetPlacementGroupServersResponse, SetSecurityGroupRulesRequest, SetSecurityGroupRulesResponse, UpdateImageRequest, UpdateImageResponse, UpdateIpRequest, UpdateIpResponse, UpdatePlacementGroupRequest, UpdatePlacementGroupResponse, UpdatePlacementGroupServersRequest, UpdatePlacementGroupServersResponse, UpdatePrivateNICRequest, UpdateSecurityGroupRequest, UpdateSecurityGroupResponse, UpdateSecurityGroupRuleRequest, UpdateSecurityGroupRuleResponse, UpdateServerRequest, UpdateServerResponse, UpdateSnapshotRequest, UpdateSnapshotResponse, UpdateVolumeRequest, UpdateVolumeResponse } from './types.gen';
3
+ import type { ApplyBlockMigrationRequest, AttachServerVolumeRequest, AttachServerVolumeResponse, CreateImageRequest, CreateImageResponse, CreateIpRequest, CreateIpResponse, CreatePlacementGroupRequest, CreatePlacementGroupResponse, CreatePrivateNICRequest, CreatePrivateNICResponse, CreateSecurityGroupRequest, CreateSecurityGroupResponse, CreateSecurityGroupRuleRequest, CreateSecurityGroupRuleResponse, CreateServerRequest, CreateServerResponse, CreateSnapshotRequest, CreateSnapshotResponse, CreateVolumeRequest, CreateVolumeResponse, DeleteImageRequest, DeleteIpRequest, DeletePlacementGroupRequest, DeletePrivateNICRequest, DeleteSecurityGroupRequest, DeleteSecurityGroupRuleRequest, DeleteServerRequest, DeleteServerUserDataRequest, DeleteSnapshotRequest, DeleteVolumeRequest, DetachServerVolumeRequest, DetachServerVolumeResponse, ExportSnapshotRequest, ExportSnapshotResponse, GetDashboardRequest, GetDashboardResponse, GetImageRequest, GetImageResponse, GetIpRequest, GetIpResponse, GetPlacementGroupRequest, GetPlacementGroupResponse, GetPlacementGroupServersRequest, GetPlacementGroupServersResponse, GetPrivateNICRequest, GetPrivateNICResponse, GetSecurityGroupRequest, GetSecurityGroupResponse, GetSecurityGroupRuleRequest, GetSecurityGroupRuleResponse, GetServerRequest, GetServerResponse, GetServerTypesAvailabilityRequest, GetServerTypesAvailabilityResponse, GetSnapshotRequest, GetSnapshotResponse, GetVolumeRequest, GetVolumeResponse, ListDefaultSecurityGroupRulesRequest, ListImagesRequest, ListImagesResponse, ListIpsRequest, ListIpsResponse, ListPlacementGroupsRequest, ListPlacementGroupsResponse, ListPrivateNICsRequest, ListPrivateNICsResponse, ListSecurityGroupRulesRequest, ListSecurityGroupRulesResponse, ListSecurityGroupsRequest, ListSecurityGroupsResponse, ListServerActionsRequest, ListServerActionsResponse, ListServerUserDataRequest, ListServerUserDataResponse, ListServersRequest, ListServersResponse, ListServersTypesRequest, ListServersTypesResponse, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumesRequest, ListVolumesResponse, ListVolumesTypesRequest, ListVolumesTypesResponse, MigrationPlan, PlanBlockMigrationRequest, PrivateNIC, ServerActionRequest, ServerActionResponse, SetImageRequest, SetPlacementGroupRequest, SetPlacementGroupResponse, SetPlacementGroupServersRequest, SetPlacementGroupServersResponse, SetSecurityGroupRulesRequest, SetSecurityGroupRulesResponse, UpdateImageRequest, UpdateImageResponse, UpdateIpRequest, UpdateIpResponse, UpdatePlacementGroupRequest, UpdatePlacementGroupResponse, UpdatePlacementGroupServersRequest, UpdatePlacementGroupServersResponse, UpdatePrivateNICRequest, UpdateSecurityGroupRequest, UpdateSecurityGroupResponse, UpdateSecurityGroupRuleRequest, UpdateSecurityGroupRuleResponse, UpdateServerRequest, UpdateServerResponse, UpdateSnapshotRequest, UpdateSnapshotResponse, UpdateVolumeRequest, UpdateVolumeResponse } from './types.gen';
4
4
  import type { SetImageResponse, SetSecurityGroupRequest, SetSecurityGroupResponse, SetSecurityGroupRuleRequest, SetSecurityGroupRuleResponse, SetServerRequest, SetServerResponse, SetSnapshotRequest, SetSnapshotResponse } from './types.private.gen';
5
5
  /**
6
6
  * Instance API.
@@ -484,26 +484,6 @@ export declare class API extends ParentAPI {
484
484
  * @param request - The request {@link DeletePrivateNICRequest}
485
485
  */
486
486
  deletePrivateNIC: (request: Readonly<DeletePrivateNICRequest>) => Promise<void>;
487
- protected pageOfListBootscripts: (request?: Readonly<ListBootscriptsRequest>) => Promise<ListBootscriptsResponse>;
488
- /**
489
- * List bootscripts.
490
- *
491
- * @deprecated
492
- * @param request - The request {@link ListBootscriptsRequest}
493
- * @returns A Promise of ListBootscriptsResponse
494
- */
495
- listBootscripts: (request?: Readonly<ListBootscriptsRequest>) => Promise<ListBootscriptsResponse> & {
496
- all: () => Promise<import("./types.gen").Bootscript[]>;
497
- [Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").Bootscript[], void, void>;
498
- };
499
- /**
500
- * Get bootscripts. Get details of a bootscript with the specified ID.
501
- *
502
- * @deprecated
503
- * @param request - The request {@link GetBootscriptRequest}
504
- * @returns A Promise of GetBootscriptResponse
505
- */
506
- getBootscript: (request: Readonly<GetBootscriptRequest>) => Promise<GetBootscriptResponse>;
507
487
  getDashboard: (request?: Readonly<GetDashboardRequest>) => Promise<GetDashboardResponse>;
508
488
  /**
509
489
  * Get a volume or snapshot's migration plan. Given a volume or snapshot,