@scaleway/sdk 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3159,6 +3159,8 @@ interface Volume$4 {
3159
3159
  zone: Zone;
3160
3160
  /** Specifications of the volume. */
3161
3161
  specs?: VolumeSpecifications;
3162
+ /** Last time the volume was detached. */
3163
+ lastDetachedAt?: Date;
3162
3164
  }
3163
3165
  type CreateSnapshotRequest$4 = {
3164
3166
  /** Zone to target. If none is passed will use default zone from the config. */
@@ -3934,10 +3936,6 @@ interface ListTokensResponse$2 {
3934
3936
  /** List of all tokens created. */
3935
3937
  tokens: Token$2[];
3936
3938
  }
3937
- type ResetCockpitGrafanaRequest = {
3938
- /** ID of the Project the Cockpit belongs to. */
3939
- projectId?: string;
3940
- };
3941
3939
  /** Request to reset a Grafana user's password. */
3942
3940
  type ResetGrafanaUserPasswordRequest = {
3943
3941
  /** ID of the Grafana user. */
@@ -4003,13 +4001,6 @@ declare class API$q extends API$w {
4003
4001
  * @returns A Promise of Cockpit
4004
4002
  */
4005
4003
  deactivateCockpit: (request?: Readonly<DeactivateCockpitRequest>) => Promise<Cockpit>;
4006
- /**
4007
- * Reset your Cockpit's Grafana associated with the specified Project ID.
4008
- *
4009
- * @param request - The request {@link ResetCockpitGrafanaRequest}
4010
- * @returns A Promise of Cockpit
4011
- */
4012
- resetCockpitGrafana: (request?: Readonly<ResetCockpitGrafanaRequest>) => Promise<Cockpit>;
4013
4004
  /**
4014
4005
  * Create a datasource for the specified Project ID and the given type.
4015
4006
  *
@@ -4219,14 +4210,13 @@ type index_gen$p_ListPlansRequestOrderBy = ListPlansRequestOrderBy;
4219
4210
  type index_gen$p_ListPlansResponse = ListPlansResponse;
4220
4211
  type index_gen$p_Plan = Plan;
4221
4212
  type index_gen$p_PlanName = PlanName;
4222
- type index_gen$p_ResetCockpitGrafanaRequest = ResetCockpitGrafanaRequest;
4223
4213
  type index_gen$p_ResetGrafanaUserPasswordRequest = ResetGrafanaUserPasswordRequest;
4224
4214
  type index_gen$p_SelectPlanRequest = SelectPlanRequest;
4225
4215
  type index_gen$p_SelectPlanResponse = SelectPlanResponse;
4226
4216
  type index_gen$p_TokenScopes = TokenScopes;
4227
4217
  type index_gen$p_TriggerTestAlertRequest = TriggerTestAlertRequest;
4228
4218
  declare namespace index_gen$p {
4229
- export { API$q as API, type index_gen$p_ActivateCockpitRequest as ActivateCockpitRequest, index_gen$p_COCKPIT_TRANSIENT_STATUSES as COCKPIT_TRANSIENT_STATUSES, type index_gen$p_Cockpit as Cockpit, type index_gen$p_CockpitEndpoints as CockpitEndpoints, type index_gen$p_CockpitMetrics as CockpitMetrics, type index_gen$p_CockpitStatus as CockpitStatus, type index_gen$p_ContactPoint as ContactPoint, type index_gen$p_ContactPointEmail as ContactPointEmail, type index_gen$p_CreateContactPointRequest as CreateContactPointRequest, type index_gen$p_CreateDatasourceRequest as CreateDatasourceRequest, type index_gen$p_CreateGrafanaUserRequest as CreateGrafanaUserRequest, type CreateTokenRequest$2 as CreateTokenRequest, type index_gen$p_Datasource as Datasource, type index_gen$p_DatasourceType as DatasourceType, type index_gen$p_DeactivateCockpitRequest as DeactivateCockpitRequest, type index_gen$p_DeleteContactPointRequest as DeleteContactPointRequest, type index_gen$p_DeleteGrafanaUserRequest as DeleteGrafanaUserRequest, type DeleteTokenRequest$2 as DeleteTokenRequest, type index_gen$p_DisableManagedAlertsRequest as DisableManagedAlertsRequest, type index_gen$p_EnableManagedAlertsRequest as EnableManagedAlertsRequest, type index_gen$p_GetCockpitMetricsRequest as GetCockpitMetricsRequest, type index_gen$p_GetCockpitRequest as GetCockpitRequest, type index_gen$p_GetGrafanaProductDashboardRequest as GetGrafanaProductDashboardRequest, type GetTokenRequest$2 as GetTokenRequest, type index_gen$p_GrafanaProductDashboard as GrafanaProductDashboard, type index_gen$p_GrafanaUser as GrafanaUser, type index_gen$p_GrafanaUserRole as GrafanaUserRole, type index_gen$p_ListContactPointsRequest as ListContactPointsRequest, type index_gen$p_ListContactPointsResponse as ListContactPointsResponse, type index_gen$p_ListDatasourcesRequest as ListDatasourcesRequest, type index_gen$p_ListDatasourcesRequestOrderBy as ListDatasourcesRequestOrderBy, type index_gen$p_ListDatasourcesResponse as ListDatasourcesResponse, type index_gen$p_ListGrafanaProductDashboardsRequest as ListGrafanaProductDashboardsRequest, type index_gen$p_ListGrafanaProductDashboardsResponse as ListGrafanaProductDashboardsResponse, type index_gen$p_ListGrafanaUsersRequest as ListGrafanaUsersRequest, type index_gen$p_ListGrafanaUsersRequestOrderBy as ListGrafanaUsersRequestOrderBy, type index_gen$p_ListGrafanaUsersResponse as ListGrafanaUsersResponse, type index_gen$p_ListPlansRequest as ListPlansRequest, type index_gen$p_ListPlansRequestOrderBy as ListPlansRequestOrderBy, type index_gen$p_ListPlansResponse as ListPlansResponse, type ListTokensRequest$2 as ListTokensRequest, type ListTokensRequestOrderBy$2 as ListTokensRequestOrderBy, type ListTokensResponse$2 as ListTokensResponse, type index_gen$p_Plan as Plan, type index_gen$p_PlanName as PlanName, type index_gen$p_ResetCockpitGrafanaRequest as ResetCockpitGrafanaRequest, type index_gen$p_ResetGrafanaUserPasswordRequest as ResetGrafanaUserPasswordRequest, type index_gen$p_SelectPlanRequest as SelectPlanRequest, type index_gen$p_SelectPlanResponse as SelectPlanResponse, type Token$2 as Token, type index_gen$p_TokenScopes as TokenScopes, type index_gen$p_TriggerTestAlertRequest as TriggerTestAlertRequest };
4219
+ export { API$q as API, type index_gen$p_ActivateCockpitRequest as ActivateCockpitRequest, index_gen$p_COCKPIT_TRANSIENT_STATUSES as COCKPIT_TRANSIENT_STATUSES, type index_gen$p_Cockpit as Cockpit, type index_gen$p_CockpitEndpoints as CockpitEndpoints, type index_gen$p_CockpitMetrics as CockpitMetrics, type index_gen$p_CockpitStatus as CockpitStatus, type index_gen$p_ContactPoint as ContactPoint, type index_gen$p_ContactPointEmail as ContactPointEmail, type index_gen$p_CreateContactPointRequest as CreateContactPointRequest, type index_gen$p_CreateDatasourceRequest as CreateDatasourceRequest, type index_gen$p_CreateGrafanaUserRequest as CreateGrafanaUserRequest, type CreateTokenRequest$2 as CreateTokenRequest, type index_gen$p_Datasource as Datasource, type index_gen$p_DatasourceType as DatasourceType, type index_gen$p_DeactivateCockpitRequest as DeactivateCockpitRequest, type index_gen$p_DeleteContactPointRequest as DeleteContactPointRequest, type index_gen$p_DeleteGrafanaUserRequest as DeleteGrafanaUserRequest, type DeleteTokenRequest$2 as DeleteTokenRequest, type index_gen$p_DisableManagedAlertsRequest as DisableManagedAlertsRequest, type index_gen$p_EnableManagedAlertsRequest as EnableManagedAlertsRequest, type index_gen$p_GetCockpitMetricsRequest as GetCockpitMetricsRequest, type index_gen$p_GetCockpitRequest as GetCockpitRequest, type index_gen$p_GetGrafanaProductDashboardRequest as GetGrafanaProductDashboardRequest, type GetTokenRequest$2 as GetTokenRequest, type index_gen$p_GrafanaProductDashboard as GrafanaProductDashboard, type index_gen$p_GrafanaUser as GrafanaUser, type index_gen$p_GrafanaUserRole as GrafanaUserRole, type index_gen$p_ListContactPointsRequest as ListContactPointsRequest, type index_gen$p_ListContactPointsResponse as ListContactPointsResponse, type index_gen$p_ListDatasourcesRequest as ListDatasourcesRequest, type index_gen$p_ListDatasourcesRequestOrderBy as ListDatasourcesRequestOrderBy, type index_gen$p_ListDatasourcesResponse as ListDatasourcesResponse, type index_gen$p_ListGrafanaProductDashboardsRequest as ListGrafanaProductDashboardsRequest, type index_gen$p_ListGrafanaProductDashboardsResponse as ListGrafanaProductDashboardsResponse, type index_gen$p_ListGrafanaUsersRequest as ListGrafanaUsersRequest, type index_gen$p_ListGrafanaUsersRequestOrderBy as ListGrafanaUsersRequestOrderBy, type index_gen$p_ListGrafanaUsersResponse as ListGrafanaUsersResponse, type index_gen$p_ListPlansRequest as ListPlansRequest, type index_gen$p_ListPlansRequestOrderBy as ListPlansRequestOrderBy, type index_gen$p_ListPlansResponse as ListPlansResponse, type ListTokensRequest$2 as ListTokensRequest, type ListTokensRequestOrderBy$2 as ListTokensRequestOrderBy, type ListTokensResponse$2 as ListTokensResponse, type index_gen$p_Plan as Plan, type index_gen$p_PlanName as PlanName, type index_gen$p_ResetGrafanaUserPasswordRequest as ResetGrafanaUserPasswordRequest, type index_gen$p_SelectPlanRequest as SelectPlanRequest, type index_gen$p_SelectPlanResponse as SelectPlanResponse, type Token$2 as Token, type index_gen$p_TokenScopes as TokenScopes, type index_gen$p_TriggerTestAlertRequest as TriggerTestAlertRequest };
4230
4220
  }
4231
4221
 
4232
4222
  declare namespace index$r {
@@ -4260,13 +4250,16 @@ interface TriggerMnqNatsClientConfig$1 {
4260
4250
  mnqNamespaceId?: string;
4261
4251
  /** Name of the NATS subject the trigger listens to. */
4262
4252
  subject: string;
4263
- /** ID of the M&Q NATS account. */
4253
+ /** ID of the Messaging and Queuing NATS account. */
4264
4254
  mnqNatsAccountId: string;
4265
- /** ID of the M&Q project. */
4255
+ /** ID of the Messaging and Queuing project. */
4266
4256
  mnqProjectId: string;
4267
- /** Region of the M&Q project. */
4257
+ /** Currently, only the `fr-par` region is available. */
4268
4258
  mnqRegion: string;
4269
- /** ID of the M&Q credentials used to subscribe to the NATS subject. */
4259
+ /**
4260
+ * ID of the Messaging and Queuing credentials used to subscribe to the NATS
4261
+ * subject.
4262
+ */
4270
4263
  mnqCredentialId?: string;
4271
4264
  }
4272
4265
  interface TriggerMnqSqsClientConfig$1 {
@@ -4274,11 +4267,14 @@ interface TriggerMnqSqsClientConfig$1 {
4274
4267
  mnqNamespaceId?: string;
4275
4268
  /** Name of the SQS queue the trigger listens to. */
4276
4269
  queue: string;
4277
- /** ID of the M&Q project. */
4270
+ /** ID of the Messaging and Queuing project. */
4278
4271
  mnqProjectId: string;
4279
- /** Region in which the M&Q project is activated. */
4272
+ /** Currently, only the `fr-par` region is available. */
4280
4273
  mnqRegion: string;
4281
- /** ID of the M&Q credentials used to read from the SQS queue. */
4274
+ /**
4275
+ * ID of the Messaging and Queuing credentials used to read from the SQS
4276
+ * queue.
4277
+ */
4282
4278
  mnqCredentialId?: string;
4283
4279
  }
4284
4280
  interface TriggerSqsClientConfig$1 {
@@ -4296,11 +4292,11 @@ interface CreateTriggerRequestMnqNatsClientConfig$3 {
4296
4292
  mnqNamespaceId?: string;
4297
4293
  /** Name of the NATS subject the trigger should listen to. */
4298
4294
  subject: string;
4299
- /** ID of the M&Q NATS account. */
4295
+ /** ID of the Messaging and Queuing NATS account. */
4300
4296
  mnqNatsAccountId: string;
4301
- /** ID of the M&Q project. */
4297
+ /** ID of the Messaging and Queuing project. */
4302
4298
  mnqProjectId: string;
4303
- /** Region of the M&Q project. */
4299
+ /** Currently, only the `fr-par` region is available. */
4304
4300
  mnqRegion: string;
4305
4301
  }
4306
4302
  interface CreateTriggerRequestMnqSqsClientConfig$3 {
@@ -4310,7 +4306,7 @@ interface CreateTriggerRequestMnqSqsClientConfig$3 {
4310
4306
  queue: string;
4311
4307
  /** You must have activated SQS on this project. */
4312
4308
  mnqProjectId: string;
4313
- /** Region in which the M&Q project is activated. */
4309
+ /** Currently, only the `fr-par` region is available. */
4314
4310
  mnqRegion: string;
4315
4311
  }
4316
4312
  interface CreateTriggerRequestSqsClientConfig$1 {
@@ -4479,14 +4475,14 @@ interface Trigger$1 {
4479
4475
  /** Error message of the trigger. */
4480
4476
  errorMessage?: string;
4481
4477
  /**
4482
- * Configuration for a Scaleway M&Q SQS queue.
4478
+ * Configuration for a Scaleway Messaging and Queuing SQS queue.
4483
4479
  *
4484
4480
  * One-of ('config'): at most one of 'scwSqsConfig', 'scwNatsConfig',
4485
4481
  * 'sqsConfig' could be set.
4486
4482
  */
4487
4483
  scwSqsConfig?: TriggerMnqSqsClientConfig$1;
4488
4484
  /**
4489
- * Configuration for a Scaleway M&Q NATS subject.
4485
+ * Configuration for a Scaleway Messaging and Queuing NATS subject.
4490
4486
  *
4491
4487
  * One-of ('config'): at most one of 'scwSqsConfig', 'scwNatsConfig',
4492
4488
  * 'sqsConfig' could be set.
@@ -4631,14 +4627,14 @@ type CreateTriggerRequest$3 = {
4631
4627
  /** Description of the trigger. */
4632
4628
  description?: string;
4633
4629
  /**
4634
- * Configuration for a Scaleway M&Q SQS queue.
4630
+ * Configuration for a Scaleway Messaging and Queuing SQS queue.
4635
4631
  *
4636
4632
  * One-of ('config'): at most one of 'scwSqsConfig', 'scwNatsConfig',
4637
4633
  * 'sqsConfig' could be set.
4638
4634
  */
4639
4635
  scwSqsConfig?: CreateTriggerRequestMnqSqsClientConfig$3;
4640
4636
  /**
4641
- * Configuration for a Scaleway M&Q NATS subject.
4637
+ * Configuration for a Scaleway Messaging and Queuing NATS subject.
4642
4638
  *
4643
4639
  * One-of ('config'): at most one of 'scwSqsConfig', 'scwNatsConfig',
4644
4640
  * 'sqsConfig' could be set.
@@ -9326,13 +9322,16 @@ interface TriggerMnqNatsClientConfig {
9326
9322
  mnqNamespaceId?: string;
9327
9323
  /** Name of the NATS subject the trigger listens to. */
9328
9324
  subject: string;
9329
- /** ID of the M&Q NATS account. */
9325
+ /** ID of the Messaging and Queuing NATS account. */
9330
9326
  mnqNatsAccountId: string;
9331
- /** ID of the M&Q project. */
9327
+ /** ID of the Messaging and Queuing project. */
9332
9328
  mnqProjectId: string;
9333
- /** Region of the M&Q project. */
9329
+ /** Currently, only the `fr-par` region is available. */
9334
9330
  mnqRegion: string;
9335
- /** ID of the M&Q credentials used to subscribe to the NATS subject. */
9331
+ /**
9332
+ * ID of the Messaging and Queuing credentials used to subscribe to the NATS
9333
+ * subject.
9334
+ */
9336
9335
  mnqCredentialId?: string;
9337
9336
  }
9338
9337
  interface TriggerMnqSqsClientConfig {
@@ -9340,11 +9339,14 @@ interface TriggerMnqSqsClientConfig {
9340
9339
  mnqNamespaceId?: string;
9341
9340
  /** Name of the SQS queue the trigger listens to. */
9342
9341
  queue: string;
9343
- /** ID of the M&Q project. */
9342
+ /** ID of the Messaging and Queuing project. */
9344
9343
  mnqProjectId: string;
9345
- /** Region in which the M&Q project is activated. */
9344
+ /** Currently, only the `fr-par` region is available. */
9346
9345
  mnqRegion: string;
9347
- /** ID of the M&Q credentials used to read from the SQS queue. */
9346
+ /**
9347
+ * ID of the Messaging and Queuing credentials used to read from the SQS
9348
+ * queue.
9349
+ */
9348
9350
  mnqCredentialId?: string;
9349
9351
  }
9350
9352
  interface TriggerSqsClientConfig {
@@ -9362,11 +9364,11 @@ interface CreateTriggerRequestMnqNatsClientConfig$1 {
9362
9364
  mnqNamespaceId?: string;
9363
9365
  /** Name of the NATS subject the trigger should listen to. */
9364
9366
  subject: string;
9365
- /** ID of the M&Q NATS account. */
9367
+ /** ID of the Messaging and Queuing NATS account. */
9366
9368
  mnqNatsAccountId: string;
9367
- /** ID of the M&Q project. */
9369
+ /** ID of the Messaging and Queuing project. */
9368
9370
  mnqProjectId: string;
9369
- /** Region of the M&Q project. */
9371
+ /** Currently, only the `fr-par` region is available. */
9370
9372
  mnqRegion: string;
9371
9373
  }
9372
9374
  interface CreateTriggerRequestMnqSqsClientConfig$1 {
@@ -9376,7 +9378,7 @@ interface CreateTriggerRequestMnqSqsClientConfig$1 {
9376
9378
  queue: string;
9377
9379
  /** You must have activated SQS on this project. */
9378
9380
  mnqProjectId: string;
9379
- /** Region in which the M&Q project is activated. */
9381
+ /** Currently, only the `fr-par` region is available. */
9380
9382
  mnqRegion: string;
9381
9383
  }
9382
9384
  interface CreateTriggerRequestSqsClientConfig {
@@ -9556,14 +9558,14 @@ interface Trigger {
9556
9558
  /** Error message of the trigger. */
9557
9559
  errorMessage?: string;
9558
9560
  /**
9559
- * Configuration for a Scaleway M&Q SQS queue.
9561
+ * Configuration for a Scaleway Messaging and Queuing SQS queue.
9560
9562
  *
9561
9563
  * One-of ('config'): at most one of 'scwSqsConfig', 'scwNatsConfig',
9562
9564
  * 'sqsConfig' could be set.
9563
9565
  */
9564
9566
  scwSqsConfig?: TriggerMnqSqsClientConfig;
9565
9567
  /**
9566
- * Configuration for a Scaleway M&Q NATS subject.
9568
+ * Configuration for a Scaleway Messaging and Queuing NATS subject.
9567
9569
  *
9568
9570
  * One-of ('config'): at most one of 'scwSqsConfig', 'scwNatsConfig',
9569
9571
  * 'sqsConfig' could be set.
@@ -9697,14 +9699,14 @@ type CreateTriggerRequest$1 = {
9697
9699
  /** Description of the trigger. */
9698
9700
  description?: string;
9699
9701
  /**
9700
- * Configuration for a Scaleway M&Q SQS queue.
9702
+ * Configuration for a Scaleway Messaging and Queuing SQS queue.
9701
9703
  *
9702
9704
  * One-of ('config'): at most one of 'scwSqsConfig', 'scwNatsConfig',
9703
9705
  * 'sqsConfig' could be set.
9704
9706
  */
9705
9707
  scwSqsConfig?: CreateTriggerRequestMnqSqsClientConfig$1;
9706
9708
  /**
9707
- * Configuration for a Scaleway M&Q NATS subject.
9709
+ * Configuration for a Scaleway Messaging and Queuing NATS subject.
9708
9710
  *
9709
9711
  * One-of ('config'): at most one of 'scwSqsConfig', 'scwNatsConfig',
9710
9712
  * 'sqsConfig' could be set.
@@ -12192,6 +12194,7 @@ declare namespace index$l {
12192
12194
  }
12193
12195
 
12194
12196
  type Arch = 'x86_64' | 'arm' | 'arm64';
12197
+ type AttachServerVolumeRequestVolumeType = 'unknown_volume_type' | 'l_ssd' | 'b_ssd' | 'sbs_volume';
12195
12198
  type BootType = 'local' | 'bootscript' | 'rescue';
12196
12199
  type ImageState = 'available' | 'creating' | 'error';
12197
12200
  type IpState = 'unknown_state' | 'detached' | 'attached' | 'pending' | 'error';
@@ -12449,6 +12452,72 @@ interface VolumeTypeConstraints {
12449
12452
  min: number;
12450
12453
  max: number;
12451
12454
  }
12455
+ interface Server {
12456
+ /** Instance unique ID. */
12457
+ id: string;
12458
+ /** Instance name. */
12459
+ name: string;
12460
+ /** Instance Organization ID. */
12461
+ organization: string;
12462
+ /** Instance Project ID. */
12463
+ project: string;
12464
+ /** List of allowed actions on the Instance. */
12465
+ allowedActions: ServerAction[];
12466
+ /** Tags associated with the Instance. */
12467
+ tags: string[];
12468
+ /** Instance commercial type (eg. GP1-M). */
12469
+ commercialType: string;
12470
+ /** Instance creation date. */
12471
+ creationDate?: Date;
12472
+ /** True if a dynamic IPv4 is required. */
12473
+ dynamicIpRequired: boolean;
12474
+ /** True to configure the instance so it uses the new routed IP mode. */
12475
+ routedIpEnabled: boolean;
12476
+ /** True if IPv6 is enabled. */
12477
+ enableIpv6: boolean;
12478
+ /** Instance host name. */
12479
+ hostname: string;
12480
+ /** Information about the Instance image. */
12481
+ image?: Image$3;
12482
+ /** Defines whether the Instance protection option is activated. */
12483
+ protected: boolean;
12484
+ /** Private IP address of the Instance. */
12485
+ privateIp?: string;
12486
+ /** Information about the public IP. */
12487
+ publicIp?: ServerIp;
12488
+ /** Information about all the public IPs attached to the server. */
12489
+ publicIps: ServerIp[];
12490
+ /** The server's MAC address. */
12491
+ macAddress: string;
12492
+ /** Instance modification date. */
12493
+ modificationDate?: Date;
12494
+ /** Instance state. */
12495
+ state: ServerState;
12496
+ /** Instance location. */
12497
+ location?: ServerLocation;
12498
+ /** Instance IPv6 address. */
12499
+ ipv6?: ServerIpv6;
12500
+ /** @deprecated Instance bootscript. */
12501
+ bootscript?: Bootscript;
12502
+ /** Instance boot type. */
12503
+ bootType: BootType;
12504
+ /** Instance volumes. */
12505
+ volumes: Record<string, VolumeServer>;
12506
+ /** Instance security group. */
12507
+ securityGroup?: SecurityGroupSummary;
12508
+ /** Instance planned maintenance. */
12509
+ maintenances: ServerMaintenance[];
12510
+ /** Detailed information about the Instance state. */
12511
+ stateDetail: string;
12512
+ /** Instance architecture. */
12513
+ arch: Arch;
12514
+ /** Instance placement group. */
12515
+ placementGroup?: PlacementGroup;
12516
+ /** Instance private NICs. */
12517
+ privateNics: PrivateNIC[];
12518
+ /** Zone in which the Instance is located. */
12519
+ zone: Zone;
12520
+ }
12452
12521
  interface VolumeTemplate {
12453
12522
  /** UUID of the volume. */
12454
12523
  id: string;
@@ -12560,72 +12629,6 @@ interface VolumeServerTemplate {
12560
12629
  /** Project ID of the volume. */
12561
12630
  project?: string;
12562
12631
  }
12563
- interface Server {
12564
- /** Instance unique ID. */
12565
- id: string;
12566
- /** Instance name. */
12567
- name: string;
12568
- /** Instance Organization ID. */
12569
- organization: string;
12570
- /** Instance Project ID. */
12571
- project: string;
12572
- /** List of allowed actions on the Instance. */
12573
- allowedActions: ServerAction[];
12574
- /** Tags associated with the Instance. */
12575
- tags: string[];
12576
- /** Instance commercial type (eg. GP1-M). */
12577
- commercialType: string;
12578
- /** Instance creation date. */
12579
- creationDate?: Date;
12580
- /** True if a dynamic IPv4 is required. */
12581
- dynamicIpRequired: boolean;
12582
- /** True to configure the instance so it uses the new routed IP mode. */
12583
- routedIpEnabled: boolean;
12584
- /** True if IPv6 is enabled. */
12585
- enableIpv6: boolean;
12586
- /** Instance host name. */
12587
- hostname: string;
12588
- /** Information about the Instance image. */
12589
- image?: Image$3;
12590
- /** Defines whether the Instance protection option is activated. */
12591
- protected: boolean;
12592
- /** Private IP address of the Instance. */
12593
- privateIp?: string;
12594
- /** Information about the public IP. */
12595
- publicIp?: ServerIp;
12596
- /** Information about all the public IPs attached to the server. */
12597
- publicIps: ServerIp[];
12598
- /** The server's MAC address. */
12599
- macAddress: string;
12600
- /** Instance modification date. */
12601
- modificationDate?: Date;
12602
- /** Instance state. */
12603
- state: ServerState;
12604
- /** Instance location. */
12605
- location?: ServerLocation;
12606
- /** Instance IPv6 address. */
12607
- ipv6?: ServerIpv6;
12608
- /** @deprecated Instance bootscript. */
12609
- bootscript?: Bootscript;
12610
- /** Instance boot type. */
12611
- bootType: BootType;
12612
- /** Instance volumes. */
12613
- volumes: Record<string, VolumeServer>;
12614
- /** Instance security group. */
12615
- securityGroup?: SecurityGroupSummary;
12616
- /** Instance planned maintenance. */
12617
- maintenances: ServerMaintenance[];
12618
- /** Detailed information about the Instance state. */
12619
- stateDetail: string;
12620
- /** Instance architecture. */
12621
- arch: Arch;
12622
- /** Instance placement group. */
12623
- placementGroup?: PlacementGroup;
12624
- /** Instance private NICs. */
12625
- privateNics: PrivateNIC[];
12626
- /** Zone in which the Instance is located. */
12627
- zone: Zone;
12628
- }
12629
12632
  interface Snapshot$1 {
12630
12633
  /** Snapshot ID. */
12631
12634
  id: string;
@@ -12805,6 +12808,21 @@ type ApplyBlockMigrationRequest = {
12805
12808
  */
12806
12809
  validationKey: string;
12807
12810
  };
12811
+ type AttachServerVolumeRequest = {
12812
+ /** Zone to target. If none is passed will use default zone from the config. */
12813
+ zone?: Zone;
12814
+ /** UUID of the Instance. */
12815
+ serverId: string;
12816
+ /** UUID of the Volume to attach. */
12817
+ volumeId: string;
12818
+ /** Type of the volume to attach. */
12819
+ volumeType?: AttachServerVolumeRequestVolumeType;
12820
+ /** Force the Instance to boot on this volume. */
12821
+ boot?: boolean;
12822
+ };
12823
+ interface AttachServerVolumeResponse {
12824
+ server?: Server;
12825
+ }
12808
12826
  type CreateImageRequest = {
12809
12827
  /** Zone to target. If none is passed will use default zone from the config. */
12810
12828
  zone?: Zone;
@@ -13105,10 +13123,10 @@ type CreateVolumeRequest$1 = {
13105
13123
  */
13106
13124
  size?: number;
13107
13125
  /**
13108
- * ID of the volume on which this volume will be based.
13126
+ * @deprecated ID of the volume on which this volume will be based.
13109
13127
  *
13110
- * One-of ('from'): at most one of 'size', 'baseVolume', 'baseSnapshot' could
13111
- * be set.
13128
+ * One-of ('from'): at most one of 'size', 'baseVolume', 'baseSnapshot' could
13129
+ * be set.
13112
13130
  */
13113
13131
  baseVolume?: string;
13114
13132
  /**
@@ -13185,6 +13203,17 @@ type DeleteVolumeRequest$1 = {
13185
13203
  /** UUID of the volume you want to delete. */
13186
13204
  volumeId: string;
13187
13205
  };
13206
+ type DetachServerVolumeRequest = {
13207
+ /** Zone to target. If none is passed will use default zone from the config. */
13208
+ zone?: Zone;
13209
+ /** UUID of the Instance. */
13210
+ serverId: string;
13211
+ /** UUID of the Volume to detach. */
13212
+ volumeId: string;
13213
+ };
13214
+ interface DetachServerVolumeResponse {
13215
+ server?: Server;
13216
+ }
13188
13217
  type ExportSnapshotRequest = {
13189
13218
  /** Zone to target. If none is passed will use default zone from the config. */
13190
13219
  zone?: Zone;
@@ -14120,6 +14149,20 @@ declare class API$j extends API$w {
14120
14149
  * @param request - The request {@link DeleteServerUserDataRequest}
14121
14150
  */
14122
14151
  deleteServerUserData: (request: Readonly<DeleteServerUserDataRequest>) => Promise<void>;
14152
+ /**
14153
+ * Attach a volume to a server.
14154
+ *
14155
+ * @param request - The request {@link AttachServerVolumeRequest}
14156
+ * @returns A Promise of AttachServerVolumeResponse
14157
+ */
14158
+ attachServerVolume: (request: Readonly<AttachServerVolumeRequest>) => Promise<AttachServerVolumeResponse>;
14159
+ /**
14160
+ * Detach a volume from a server.
14161
+ *
14162
+ * @param request - The request {@link DetachServerVolumeRequest}
14163
+ * @returns A Promise of DetachServerVolumeResponse
14164
+ */
14165
+ detachServerVolume: (request: Readonly<DetachServerVolumeRequest>) => Promise<DetachServerVolumeResponse>;
14123
14166
  protected pageOfListImages: (request?: Readonly<ListImagesRequest$3>) => Promise<ListImagesResponse$3>;
14124
14167
  /**
14125
14168
  * List Instance images. List all existing Instance images.
@@ -14761,6 +14804,9 @@ declare const VOLUME_TRANSIENT_STATUSES: VolumeState[];
14761
14804
 
14762
14805
  type index$k_ApplyBlockMigrationRequest = ApplyBlockMigrationRequest;
14763
14806
  type index$k_Arch = Arch;
14807
+ type index$k_AttachServerVolumeRequest = AttachServerVolumeRequest;
14808
+ type index$k_AttachServerVolumeRequestVolumeType = AttachServerVolumeRequestVolumeType;
14809
+ type index$k_AttachServerVolumeResponse = AttachServerVolumeResponse;
14764
14810
  type index$k_AttachVolumeRequest = AttachVolumeRequest;
14765
14811
  type index$k_AttachVolumeResponse = AttachVolumeResponse;
14766
14812
  type index$k_BootType = BootType;
@@ -14788,6 +14834,8 @@ type index$k_DeleteSecurityGroupRequest = DeleteSecurityGroupRequest;
14788
14834
  type index$k_DeleteSecurityGroupRuleRequest = DeleteSecurityGroupRuleRequest;
14789
14835
  type index$k_DeleteServerRequest = DeleteServerRequest;
14790
14836
  type index$k_DeleteServerUserDataRequest = DeleteServerUserDataRequest;
14837
+ type index$k_DetachServerVolumeRequest = DetachServerVolumeRequest;
14838
+ type index$k_DetachServerVolumeResponse = DetachServerVolumeResponse;
14791
14839
  type index$k_DetachVolumeRequest = DetachVolumeRequest;
14792
14840
  type index$k_DetachVolumeResponse = DetachVolumeResponse;
14793
14841
  type index$k_ExportSnapshotRequest = ExportSnapshotRequest;
@@ -14927,7 +14975,7 @@ type index$k_VolumeTypeCapabilities = VolumeTypeCapabilities;
14927
14975
  type index$k_VolumeTypeConstraints = VolumeTypeConstraints;
14928
14976
  type index$k_VolumeVolumeType = VolumeVolumeType;
14929
14977
  declare namespace index$k {
14930
- export { InstanceV1UtilsAPI as API, type index$k_ApplyBlockMigrationRequest as ApplyBlockMigrationRequest, type index$k_Arch as Arch, type index$k_AttachVolumeRequest as AttachVolumeRequest, type index$k_AttachVolumeResponse as AttachVolumeResponse, type index$k_BootType as BootType, type index$k_Bootscript as Bootscript, type index$k_CreateImageRequest as CreateImageRequest, type index$k_CreateImageResponse as CreateImageResponse, type CreateIpRequest$1 as CreateIpRequest, type index$k_CreateIpResponse as CreateIpResponse, type index$k_CreatePlacementGroupRequest as CreatePlacementGroupRequest, type index$k_CreatePlacementGroupResponse as CreatePlacementGroupResponse, type index$k_CreatePrivateNICRequest as CreatePrivateNICRequest, type index$k_CreatePrivateNICResponse as CreatePrivateNICResponse, type index$k_CreateSecurityGroupRequest as CreateSecurityGroupRequest, type index$k_CreateSecurityGroupResponse as CreateSecurityGroupResponse, type index$k_CreateSecurityGroupRuleRequest as CreateSecurityGroupRuleRequest, type index$k_CreateSecurityGroupRuleResponse as CreateSecurityGroupRuleResponse, type index$k_CreateServerRequest as CreateServerRequest, type index$k_CreateServerResponse as CreateServerResponse, type CreateSnapshotRequest$1 as CreateSnapshotRequest, type index$k_CreateSnapshotResponse as CreateSnapshotResponse, type CreateVolumeRequest$1 as CreateVolumeRequest, type index$k_CreateVolumeResponse as CreateVolumeResponse, type index$k_Dashboard as Dashboard, type DeleteImageRequest$1 as DeleteImageRequest, type index$k_DeleteIpRequest as DeleteIpRequest, type index$k_DeletePlacementGroupRequest as DeletePlacementGroupRequest, type index$k_DeletePrivateNICRequest as DeletePrivateNICRequest, type index$k_DeleteSecurityGroupRequest as DeleteSecurityGroupRequest, type index$k_DeleteSecurityGroupRuleRequest as DeleteSecurityGroupRuleRequest, type index$k_DeleteServerRequest as DeleteServerRequest, type index$k_DeleteServerUserDataRequest as DeleteServerUserDataRequest, type DeleteSnapshotRequest$1 as DeleteSnapshotRequest, type DeleteVolumeRequest$1 as DeleteVolumeRequest, type index$k_DetachVolumeRequest as DetachVolumeRequest, type index$k_DetachVolumeResponse as DetachVolumeResponse, type index$k_ExportSnapshotRequest as ExportSnapshotRequest, type index$k_ExportSnapshotResponse as ExportSnapshotResponse, type index$k_GetBootscriptRequest as GetBootscriptRequest, type index$k_GetBootscriptResponse as GetBootscriptResponse, type index$k_GetDashboardRequest as GetDashboardRequest, type index$k_GetDashboardResponse as GetDashboardResponse, type GetImageRequest$3 as GetImageRequest, type GetImageResponse$1 as GetImageResponse, type GetIpRequest$1 as GetIpRequest, type index$k_GetIpResponse as GetIpResponse, type index$k_GetPlacementGroupRequest as GetPlacementGroupRequest, type index$k_GetPlacementGroupResponse as GetPlacementGroupResponse, type index$k_GetPlacementGroupServersRequest as GetPlacementGroupServersRequest, type index$k_GetPlacementGroupServersResponse as GetPlacementGroupServersResponse, type index$k_GetPrivateNICRequest as GetPrivateNICRequest, type index$k_GetPrivateNICResponse as GetPrivateNICResponse, type index$k_GetSecurityGroupRequest as GetSecurityGroupRequest, type index$k_GetSecurityGroupResponse as GetSecurityGroupResponse, type index$k_GetSecurityGroupRuleRequest as GetSecurityGroupRuleRequest, type index$k_GetSecurityGroupRuleResponse as GetSecurityGroupRuleResponse, type index$k_GetServerRequest as GetServerRequest, type index$k_GetServerResponse as GetServerResponse, type index$k_GetServerTypesAvailabilityRequest as GetServerTypesAvailabilityRequest, type index$k_GetServerTypesAvailabilityResponse as GetServerTypesAvailabilityResponse, type index$k_GetServerTypesAvailabilityResponseAvailability as GetServerTypesAvailabilityResponseAvailability, type index$k_GetServerUserDataRequest as GetServerUserDataRequest, type GetSnapshotRequest$1 as GetSnapshotRequest, type index$k_GetSnapshotResponse as GetSnapshotResponse, type GetVolumeRequest$1 as GetVolumeRequest, type index$k_GetVolumeResponse as GetVolumeResponse, IMAGE_TRANSIENT_STATUSES$1 as IMAGE_TRANSIENT_STATUSES, index$k_IP_TRANSIENT_STATUSES as IP_TRANSIENT_STATUSES, type Image$3 as Image, type index$k_ImageState as ImageState, type Ip$1 as Ip, type index$k_IpState as IpState, type index$k_IpType as IpType, type index$k_ListBootscriptsRequest as ListBootscriptsRequest, type index$k_ListBootscriptsResponse as ListBootscriptsResponse, type index$k_ListDefaultSecurityGroupRulesRequest as ListDefaultSecurityGroupRulesRequest, type ListImagesRequest$3 as ListImagesRequest, type ListImagesResponse$3 as ListImagesResponse, type index$k_ListIpsRequest as ListIpsRequest, type ListIpsResponse$1 as ListIpsResponse, type index$k_ListPlacementGroupsRequest as ListPlacementGroupsRequest, type index$k_ListPlacementGroupsResponse as ListPlacementGroupsResponse, type index$k_ListPrivateNICsRequest as ListPrivateNICsRequest, type index$k_ListPrivateNICsResponse as ListPrivateNICsResponse, type index$k_ListSecurityGroupRulesRequest as ListSecurityGroupRulesRequest, type index$k_ListSecurityGroupRulesResponse as ListSecurityGroupRulesResponse, type index$k_ListSecurityGroupsRequest as ListSecurityGroupsRequest, type index$k_ListSecurityGroupsResponse as ListSecurityGroupsResponse, type index$k_ListServerActionsRequest as ListServerActionsRequest, type index$k_ListServerActionsResponse as ListServerActionsResponse, type index$k_ListServerUserDataRequest as ListServerUserDataRequest, type index$k_ListServerUserDataResponse as ListServerUserDataResponse, type index$k_ListServersRequest as ListServersRequest, type index$k_ListServersRequestOrder as ListServersRequestOrder, type index$k_ListServersResponse as ListServersResponse, type index$k_ListServersTypesRequest as ListServersTypesRequest, type index$k_ListServersTypesResponse as ListServersTypesResponse, type ListSnapshotsRequest$1 as ListSnapshotsRequest, type ListSnapshotsResponse$1 as ListSnapshotsResponse, type ListVolumesRequest$1 as ListVolumesRequest, type ListVolumesResponse$1 as ListVolumesResponse, type index$k_ListVolumesTypesRequest as ListVolumesTypesRequest, type index$k_ListVolumesTypesResponse as ListVolumesTypesResponse, type index$k_MigrationPlan as MigrationPlan, index$k_PRIVATE_NIC_TRANSIENT_STATUSES as PRIVATE_NIC_TRANSIENT_STATUSES, type index$k_PlacementGroup as PlacementGroup, type index$k_PlacementGroupPolicyMode as PlacementGroupPolicyMode, type index$k_PlacementGroupPolicyType as PlacementGroupPolicyType, type index$k_PlacementGroupServer as PlacementGroupServer, type index$k_PlanBlockMigrationRequest as PlanBlockMigrationRequest, type index$k_PrivateNIC as PrivateNIC, type index$k_PrivateNICState as PrivateNICState, index$k_SECURITY_GROUP_TRANSIENT_STATUSES as SECURITY_GROUP_TRANSIENT_STATUSES, index$k_SERVER_IP_TRANSIENT_STATUSES as SERVER_IP_TRANSIENT_STATUSES, index$k_SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES$1 as SNAPSHOT_TRANSIENT_STATUSES, type index$k_SecurityGroup as SecurityGroup, type index$k_SecurityGroupPolicy as SecurityGroupPolicy, type index$k_SecurityGroupRule as SecurityGroupRule, type index$k_SecurityGroupRuleAction as SecurityGroupRuleAction, type index$k_SecurityGroupRuleDirection as SecurityGroupRuleDirection, type index$k_SecurityGroupRuleProtocol as SecurityGroupRuleProtocol, type index$k_SecurityGroupState as SecurityGroupState, type index$k_SecurityGroupSummary as SecurityGroupSummary, type index$k_SecurityGroupTemplate as SecurityGroupTemplate, type index$k_Server as Server, type index$k_ServerAction as ServerAction, type index$k_ServerActionRequest as ServerActionRequest, type index$k_ServerActionRequestVolumeBackupTemplate as ServerActionRequestVolumeBackupTemplate, type index$k_ServerActionResponse as ServerActionResponse, type index$k_ServerIp as ServerIp, type index$k_ServerIpIpFamily as ServerIpIpFamily, type index$k_ServerIpProvisioningMode as ServerIpProvisioningMode, type index$k_ServerIpState as ServerIpState, type index$k_ServerIpv6 as ServerIpv6, type index$k_ServerLocation as ServerLocation, type index$k_ServerMaintenance as ServerMaintenance, type index$k_ServerState as ServerState, type index$k_ServerSummary as ServerSummary, type index$k_ServerType as ServerType, type index$k_ServerTypeCapabilities as ServerTypeCapabilities, type index$k_ServerTypeNetwork as ServerTypeNetwork, type index$k_ServerTypeNetworkInterface as ServerTypeNetworkInterface, type index$k_ServerTypeVolumeConstraintSizes as ServerTypeVolumeConstraintSizes, type index$k_ServerTypeVolumeConstraintsByType as ServerTypeVolumeConstraintsByType, type index$k_ServerTypesAvailability as ServerTypesAvailability, type index$k_SetImageRequest as SetImageRequest, type index$k_SetPlacementGroupRequest as SetPlacementGroupRequest, type index$k_SetPlacementGroupResponse as SetPlacementGroupResponse, type index$k_SetPlacementGroupServersRequest as SetPlacementGroupServersRequest, type index$k_SetPlacementGroupServersResponse as SetPlacementGroupServersResponse, type index$k_SetSecurityGroupRulesRequest as SetSecurityGroupRulesRequest, type index$k_SetSecurityGroupRulesRequestRule as SetSecurityGroupRulesRequestRule, type index$k_SetSecurityGroupRulesResponse as SetSecurityGroupRulesResponse, type index$k_SetServerUserDataRequest as SetServerUserDataRequest, type Snapshot$1 as Snapshot, type index$k_SnapshotBaseVolume as SnapshotBaseVolume, type index$k_SnapshotState as SnapshotState, type index$k_SnapshotVolumeType as SnapshotVolumeType, index$k_TASK_TRANSIENT_STATUSES as TASK_TRANSIENT_STATUSES, type index$k_Task as Task, type index$k_TaskStatus as TaskStatus, type UpdateImageRequest$1 as UpdateImageRequest, type index$k_UpdateImageResponse as UpdateImageResponse, type UpdateIpRequest$1 as UpdateIpRequest, type index$k_UpdateIpResponse as UpdateIpResponse, type index$k_UpdatePlacementGroupRequest as UpdatePlacementGroupRequest, type index$k_UpdatePlacementGroupResponse as UpdatePlacementGroupResponse, type index$k_UpdatePlacementGroupServersRequest as UpdatePlacementGroupServersRequest, type index$k_UpdatePlacementGroupServersResponse as UpdatePlacementGroupServersResponse, type index$k_UpdatePrivateNICRequest as UpdatePrivateNICRequest, type index$k_UpdateSecurityGroupRequest as UpdateSecurityGroupRequest, type index$k_UpdateSecurityGroupResponse as UpdateSecurityGroupResponse, type index$k_UpdateSecurityGroupRuleRequest as UpdateSecurityGroupRuleRequest, type index$k_UpdateSecurityGroupRuleResponse as UpdateSecurityGroupRuleResponse, type index$k_UpdateServerRequest as UpdateServerRequest, type index$k_UpdateServerResponse as UpdateServerResponse, type UpdateSnapshotRequest$1 as UpdateSnapshotRequest, type index$k_UpdateSnapshotResponse as UpdateSnapshotResponse, type UpdateVolumeRequest$1 as UpdateVolumeRequest, type index$k_UpdateVolumeResponse as UpdateVolumeResponse, index$k_VOLUME_SERVER_TRANSIENT_STATUSES as VOLUME_SERVER_TRANSIENT_STATUSES, index$k_VOLUME_TRANSIENT_STATUSES as VOLUME_TRANSIENT_STATUSES, type Volume$2 as Volume, type index$k_VolumeServer as VolumeServer, type index$k_VolumeServerState as VolumeServerState, type index$k_VolumeServerTemplate as VolumeServerTemplate, type index$k_VolumeServerVolumeType as VolumeServerVolumeType, type index$k_VolumeState as VolumeState, type index$k_VolumeSummary as VolumeSummary, type index$k_VolumeTemplate as VolumeTemplate, type VolumeType$1 as VolumeType, type index$k_VolumeTypeCapabilities as VolumeTypeCapabilities, type index$k_VolumeTypeConstraints as VolumeTypeConstraints, type index$k_VolumeVolumeType as VolumeVolumeType };
14978
+ export { InstanceV1UtilsAPI as API, type index$k_ApplyBlockMigrationRequest as ApplyBlockMigrationRequest, type index$k_Arch as Arch, type index$k_AttachServerVolumeRequest as AttachServerVolumeRequest, type index$k_AttachServerVolumeRequestVolumeType as AttachServerVolumeRequestVolumeType, type index$k_AttachServerVolumeResponse as AttachServerVolumeResponse, type index$k_AttachVolumeRequest as AttachVolumeRequest, type index$k_AttachVolumeResponse as AttachVolumeResponse, type index$k_BootType as BootType, type index$k_Bootscript as Bootscript, type index$k_CreateImageRequest as CreateImageRequest, type index$k_CreateImageResponse as CreateImageResponse, type CreateIpRequest$1 as CreateIpRequest, type index$k_CreateIpResponse as CreateIpResponse, type index$k_CreatePlacementGroupRequest as CreatePlacementGroupRequest, type index$k_CreatePlacementGroupResponse as CreatePlacementGroupResponse, type index$k_CreatePrivateNICRequest as CreatePrivateNICRequest, type index$k_CreatePrivateNICResponse as CreatePrivateNICResponse, type index$k_CreateSecurityGroupRequest as CreateSecurityGroupRequest, type index$k_CreateSecurityGroupResponse as CreateSecurityGroupResponse, type index$k_CreateSecurityGroupRuleRequest as CreateSecurityGroupRuleRequest, type index$k_CreateSecurityGroupRuleResponse as CreateSecurityGroupRuleResponse, type index$k_CreateServerRequest as CreateServerRequest, type index$k_CreateServerResponse as CreateServerResponse, type CreateSnapshotRequest$1 as CreateSnapshotRequest, type index$k_CreateSnapshotResponse as CreateSnapshotResponse, type CreateVolumeRequest$1 as CreateVolumeRequest, type index$k_CreateVolumeResponse as CreateVolumeResponse, type index$k_Dashboard as Dashboard, type DeleteImageRequest$1 as DeleteImageRequest, type index$k_DeleteIpRequest as DeleteIpRequest, type index$k_DeletePlacementGroupRequest as DeletePlacementGroupRequest, type index$k_DeletePrivateNICRequest as DeletePrivateNICRequest, type index$k_DeleteSecurityGroupRequest as DeleteSecurityGroupRequest, type index$k_DeleteSecurityGroupRuleRequest as DeleteSecurityGroupRuleRequest, type index$k_DeleteServerRequest as DeleteServerRequest, type index$k_DeleteServerUserDataRequest as DeleteServerUserDataRequest, type DeleteSnapshotRequest$1 as DeleteSnapshotRequest, type DeleteVolumeRequest$1 as DeleteVolumeRequest, type index$k_DetachServerVolumeRequest as DetachServerVolumeRequest, type index$k_DetachServerVolumeResponse as DetachServerVolumeResponse, type index$k_DetachVolumeRequest as DetachVolumeRequest, type index$k_DetachVolumeResponse as DetachVolumeResponse, type index$k_ExportSnapshotRequest as ExportSnapshotRequest, type index$k_ExportSnapshotResponse as ExportSnapshotResponse, type index$k_GetBootscriptRequest as GetBootscriptRequest, type index$k_GetBootscriptResponse as GetBootscriptResponse, type index$k_GetDashboardRequest as GetDashboardRequest, type index$k_GetDashboardResponse as GetDashboardResponse, type GetImageRequest$3 as GetImageRequest, type GetImageResponse$1 as GetImageResponse, type GetIpRequest$1 as GetIpRequest, type index$k_GetIpResponse as GetIpResponse, type index$k_GetPlacementGroupRequest as GetPlacementGroupRequest, type index$k_GetPlacementGroupResponse as GetPlacementGroupResponse, type index$k_GetPlacementGroupServersRequest as GetPlacementGroupServersRequest, type index$k_GetPlacementGroupServersResponse as GetPlacementGroupServersResponse, type index$k_GetPrivateNICRequest as GetPrivateNICRequest, type index$k_GetPrivateNICResponse as GetPrivateNICResponse, type index$k_GetSecurityGroupRequest as GetSecurityGroupRequest, type index$k_GetSecurityGroupResponse as GetSecurityGroupResponse, type index$k_GetSecurityGroupRuleRequest as GetSecurityGroupRuleRequest, type index$k_GetSecurityGroupRuleResponse as GetSecurityGroupRuleResponse, type index$k_GetServerRequest as GetServerRequest, type index$k_GetServerResponse as GetServerResponse, type index$k_GetServerTypesAvailabilityRequest as GetServerTypesAvailabilityRequest, type index$k_GetServerTypesAvailabilityResponse as GetServerTypesAvailabilityResponse, type index$k_GetServerTypesAvailabilityResponseAvailability as GetServerTypesAvailabilityResponseAvailability, type index$k_GetServerUserDataRequest as GetServerUserDataRequest, type GetSnapshotRequest$1 as GetSnapshotRequest, type index$k_GetSnapshotResponse as GetSnapshotResponse, type GetVolumeRequest$1 as GetVolumeRequest, type index$k_GetVolumeResponse as GetVolumeResponse, IMAGE_TRANSIENT_STATUSES$1 as IMAGE_TRANSIENT_STATUSES, index$k_IP_TRANSIENT_STATUSES as IP_TRANSIENT_STATUSES, type Image$3 as Image, type index$k_ImageState as ImageState, type Ip$1 as Ip, type index$k_IpState as IpState, type index$k_IpType as IpType, type index$k_ListBootscriptsRequest as ListBootscriptsRequest, type index$k_ListBootscriptsResponse as ListBootscriptsResponse, type index$k_ListDefaultSecurityGroupRulesRequest as ListDefaultSecurityGroupRulesRequest, type ListImagesRequest$3 as ListImagesRequest, type ListImagesResponse$3 as ListImagesResponse, type index$k_ListIpsRequest as ListIpsRequest, type ListIpsResponse$1 as ListIpsResponse, type index$k_ListPlacementGroupsRequest as ListPlacementGroupsRequest, type index$k_ListPlacementGroupsResponse as ListPlacementGroupsResponse, type index$k_ListPrivateNICsRequest as ListPrivateNICsRequest, type index$k_ListPrivateNICsResponse as ListPrivateNICsResponse, type index$k_ListSecurityGroupRulesRequest as ListSecurityGroupRulesRequest, type index$k_ListSecurityGroupRulesResponse as ListSecurityGroupRulesResponse, type index$k_ListSecurityGroupsRequest as ListSecurityGroupsRequest, type index$k_ListSecurityGroupsResponse as ListSecurityGroupsResponse, type index$k_ListServerActionsRequest as ListServerActionsRequest, type index$k_ListServerActionsResponse as ListServerActionsResponse, type index$k_ListServerUserDataRequest as ListServerUserDataRequest, type index$k_ListServerUserDataResponse as ListServerUserDataResponse, type index$k_ListServersRequest as ListServersRequest, type index$k_ListServersRequestOrder as ListServersRequestOrder, type index$k_ListServersResponse as ListServersResponse, type index$k_ListServersTypesRequest as ListServersTypesRequest, type index$k_ListServersTypesResponse as ListServersTypesResponse, type ListSnapshotsRequest$1 as ListSnapshotsRequest, type ListSnapshotsResponse$1 as ListSnapshotsResponse, type ListVolumesRequest$1 as ListVolumesRequest, type ListVolumesResponse$1 as ListVolumesResponse, type index$k_ListVolumesTypesRequest as ListVolumesTypesRequest, type index$k_ListVolumesTypesResponse as ListVolumesTypesResponse, type index$k_MigrationPlan as MigrationPlan, index$k_PRIVATE_NIC_TRANSIENT_STATUSES as PRIVATE_NIC_TRANSIENT_STATUSES, type index$k_PlacementGroup as PlacementGroup, type index$k_PlacementGroupPolicyMode as PlacementGroupPolicyMode, type index$k_PlacementGroupPolicyType as PlacementGroupPolicyType, type index$k_PlacementGroupServer as PlacementGroupServer, type index$k_PlanBlockMigrationRequest as PlanBlockMigrationRequest, type index$k_PrivateNIC as PrivateNIC, type index$k_PrivateNICState as PrivateNICState, index$k_SECURITY_GROUP_TRANSIENT_STATUSES as SECURITY_GROUP_TRANSIENT_STATUSES, index$k_SERVER_IP_TRANSIENT_STATUSES as SERVER_IP_TRANSIENT_STATUSES, index$k_SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES$1 as SNAPSHOT_TRANSIENT_STATUSES, type index$k_SecurityGroup as SecurityGroup, type index$k_SecurityGroupPolicy as SecurityGroupPolicy, type index$k_SecurityGroupRule as SecurityGroupRule, type index$k_SecurityGroupRuleAction as SecurityGroupRuleAction, type index$k_SecurityGroupRuleDirection as SecurityGroupRuleDirection, type index$k_SecurityGroupRuleProtocol as SecurityGroupRuleProtocol, type index$k_SecurityGroupState as SecurityGroupState, type index$k_SecurityGroupSummary as SecurityGroupSummary, type index$k_SecurityGroupTemplate as SecurityGroupTemplate, type index$k_Server as Server, type index$k_ServerAction as ServerAction, type index$k_ServerActionRequest as ServerActionRequest, type index$k_ServerActionRequestVolumeBackupTemplate as ServerActionRequestVolumeBackupTemplate, type index$k_ServerActionResponse as ServerActionResponse, type index$k_ServerIp as ServerIp, type index$k_ServerIpIpFamily as ServerIpIpFamily, type index$k_ServerIpProvisioningMode as ServerIpProvisioningMode, type index$k_ServerIpState as ServerIpState, type index$k_ServerIpv6 as ServerIpv6, type index$k_ServerLocation as ServerLocation, type index$k_ServerMaintenance as ServerMaintenance, type index$k_ServerState as ServerState, type index$k_ServerSummary as ServerSummary, type index$k_ServerType as ServerType, type index$k_ServerTypeCapabilities as ServerTypeCapabilities, type index$k_ServerTypeNetwork as ServerTypeNetwork, type index$k_ServerTypeNetworkInterface as ServerTypeNetworkInterface, type index$k_ServerTypeVolumeConstraintSizes as ServerTypeVolumeConstraintSizes, type index$k_ServerTypeVolumeConstraintsByType as ServerTypeVolumeConstraintsByType, type index$k_ServerTypesAvailability as ServerTypesAvailability, type index$k_SetImageRequest as SetImageRequest, type index$k_SetPlacementGroupRequest as SetPlacementGroupRequest, type index$k_SetPlacementGroupResponse as SetPlacementGroupResponse, type index$k_SetPlacementGroupServersRequest as SetPlacementGroupServersRequest, type index$k_SetPlacementGroupServersResponse as SetPlacementGroupServersResponse, type index$k_SetSecurityGroupRulesRequest as SetSecurityGroupRulesRequest, type index$k_SetSecurityGroupRulesRequestRule as SetSecurityGroupRulesRequestRule, type index$k_SetSecurityGroupRulesResponse as SetSecurityGroupRulesResponse, type index$k_SetServerUserDataRequest as SetServerUserDataRequest, type Snapshot$1 as Snapshot, type index$k_SnapshotBaseVolume as SnapshotBaseVolume, type index$k_SnapshotState as SnapshotState, type index$k_SnapshotVolumeType as SnapshotVolumeType, index$k_TASK_TRANSIENT_STATUSES as TASK_TRANSIENT_STATUSES, type index$k_Task as Task, type index$k_TaskStatus as TaskStatus, type UpdateImageRequest$1 as UpdateImageRequest, type index$k_UpdateImageResponse as UpdateImageResponse, type UpdateIpRequest$1 as UpdateIpRequest, type index$k_UpdateIpResponse as UpdateIpResponse, type index$k_UpdatePlacementGroupRequest as UpdatePlacementGroupRequest, type index$k_UpdatePlacementGroupResponse as UpdatePlacementGroupResponse, type index$k_UpdatePlacementGroupServersRequest as UpdatePlacementGroupServersRequest, type index$k_UpdatePlacementGroupServersResponse as UpdatePlacementGroupServersResponse, type index$k_UpdatePrivateNICRequest as UpdatePrivateNICRequest, type index$k_UpdateSecurityGroupRequest as UpdateSecurityGroupRequest, type index$k_UpdateSecurityGroupResponse as UpdateSecurityGroupResponse, type index$k_UpdateSecurityGroupRuleRequest as UpdateSecurityGroupRuleRequest, type index$k_UpdateSecurityGroupRuleResponse as UpdateSecurityGroupRuleResponse, type index$k_UpdateServerRequest as UpdateServerRequest, type index$k_UpdateServerResponse as UpdateServerResponse, type UpdateSnapshotRequest$1 as UpdateSnapshotRequest, type index$k_UpdateSnapshotResponse as UpdateSnapshotResponse, type UpdateVolumeRequest$1 as UpdateVolumeRequest, type index$k_UpdateVolumeResponse as UpdateVolumeResponse, index$k_VOLUME_SERVER_TRANSIENT_STATUSES as VOLUME_SERVER_TRANSIENT_STATUSES, index$k_VOLUME_TRANSIENT_STATUSES as VOLUME_TRANSIENT_STATUSES, type Volume$2 as Volume, type index$k_VolumeServer as VolumeServer, type index$k_VolumeServerState as VolumeServerState, type index$k_VolumeServerTemplate as VolumeServerTemplate, type index$k_VolumeServerVolumeType as VolumeServerVolumeType, type index$k_VolumeState as VolumeState, type index$k_VolumeSummary as VolumeSummary, type index$k_VolumeTemplate as VolumeTemplate, type VolumeType$1 as VolumeType, type index$k_VolumeTypeCapabilities as VolumeTypeCapabilities, type index$k_VolumeTypeConstraints as VolumeTypeConstraints, type index$k_VolumeVolumeType as VolumeVolumeType };
14931
14979
  }
14932
14980
 
14933
14981
  declare namespace index$j {
@@ -26998,13 +27046,18 @@ type UpdateClusterRequest = {
26998
27046
  type UpdateEndpointRequest = {
26999
27047
  /** Zone to target. If none is passed will use default zone from the config. */
27000
27048
  zone?: Zone;
27049
+ /** UUID of the endpoint you want to get. */
27001
27050
  endpointId: string;
27002
27051
  /**
27052
+ * Private Network details.
27053
+ *
27003
27054
  * One-of ('endpointType'): at most one of 'privateNetwork', 'publicNetwork'
27004
27055
  * could be set.
27005
27056
  */
27006
27057
  privateNetwork?: EndpointSpecPrivateNetworkSpec;
27007
27058
  /**
27059
+ * Public network details.
27060
+ *
27008
27061
  * One-of ('endpointType'): at most one of 'privateNetwork', 'publicNetwork'
27009
27062
  * could be set.
27010
27063
  */
@@ -28539,6 +28592,13 @@ declare class API$6 extends API$w {
28539
28592
  * metadata of a secret's given version specified by the `region`,
28540
28593
  * `secret_name`, `revision` and `project_id` parameters.
28541
28594
  *
28595
+ * This method is deprecated.
28596
+ *
28597
+ * Scaleway recommends that you use the `ListSecrets` request with the `name`
28598
+ * filter to specify the secret version desired, then use the
28599
+ * `GetSecretVersion` request.
28600
+ *
28601
+ * @deprecated
28542
28602
  * @param request - The request {@link GetSecretVersionByNameRequest}
28543
28603
  * @returns A Promise of SecretVersion
28544
28604
  */
@@ -28570,6 +28630,13 @@ declare class API$6 extends API$w {
28570
28630
  * given secret's versions specified by the `secret_name`,`region` and
28571
28631
  * `project_id` parameters.
28572
28632
  *
28633
+ * This method is deprecated.
28634
+ *
28635
+ * Scaleway recommends that you use the `ListSecrets` request with the `name`
28636
+ * filter to specify the secret version desired, then use the
28637
+ * `ListSecretVersions` request.
28638
+ *
28639
+ * @deprecated
28573
28640
  * @param request - The request {@link ListSecretVersionsByNameRequest}
28574
28641
  * @returns A Promise of ListSecretVersionsResponse
28575
28642
  */
@@ -28607,6 +28674,13 @@ declare class API$6 extends API$w {
28607
28674
  * a secret's version specified by the `region`, `secret_name`, `revision` and
28608
28675
  * `project_id` parameters.
28609
28676
  *
28677
+ * This method is deprecated.
28678
+ *
28679
+ * Scaleway recommends that you use the `ListSecrets` request with the `name`
28680
+ * filter to specify the secret version desired, then use the
28681
+ * `AccessSecretVersion` request.
28682
+ *
28683
+ * @deprecated
28610
28684
  * @param request - The request {@link AccessSecretVersionByNameRequest}
28611
28685
  * @returns A Promise of AccessSecretVersionResponse
28612
28686
  */
@@ -1,4 +1,4 @@
1
- const version = 'v2.1.0';
1
+ const version = 'v2.2.0';
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
 
4
4
  export { userAgent, version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Scaleway SDK.",
6
6
  "keywords": [
@@ -35,5 +35,5 @@
35
35
  "bundledDependencies": [
36
36
  "@scaleway/random-name"
37
37
  ],
38
- "gitHead": "a4120dd20868d94af0fd5cf4ad8d016d18470a65"
38
+ "gitHead": "7fa822d2840f8e05865330969487eac192006c38"
39
39
  }