@scaleway/sdk 1.15.0 → 1.17.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
@@ -2666,23 +2666,23 @@ declare const UpdateServerRequest$1: {
2666
2666
  };
2667
2667
  };
2668
2668
 
2669
- declare const validationRules_gen$4_CreateServerRequestInstall: typeof CreateServerRequestInstall;
2670
- declare const validationRules_gen$4_InstallServerRequest: typeof InstallServerRequest;
2671
- declare const validationRules_gen$4_ListOSRequest: typeof ListOSRequest;
2672
- declare const validationRules_gen$4_ListOptionsRequest: typeof ListOptionsRequest;
2673
- declare const validationRules_gen$4_ListServerEventsRequest: typeof ListServerEventsRequest;
2674
- declare const validationRules_gen$4_ListSettingsRequest: typeof ListSettingsRequest;
2675
- declare namespace validationRules_gen$4 {
2669
+ declare const validationRules_gen$5_CreateServerRequestInstall: typeof CreateServerRequestInstall;
2670
+ declare const validationRules_gen$5_InstallServerRequest: typeof InstallServerRequest;
2671
+ declare const validationRules_gen$5_ListOSRequest: typeof ListOSRequest;
2672
+ declare const validationRules_gen$5_ListOptionsRequest: typeof ListOptionsRequest;
2673
+ declare const validationRules_gen$5_ListServerEventsRequest: typeof ListServerEventsRequest;
2674
+ declare const validationRules_gen$5_ListSettingsRequest: typeof ListSettingsRequest;
2675
+ declare namespace validationRules_gen$5 {
2676
2676
  export {
2677
2677
  CreateServerRequest$1 as CreateServerRequest,
2678
- validationRules_gen$4_CreateServerRequestInstall as CreateServerRequestInstall,
2679
- validationRules_gen$4_InstallServerRequest as InstallServerRequest,
2680
- validationRules_gen$4_ListOSRequest as ListOSRequest,
2678
+ validationRules_gen$5_CreateServerRequestInstall as CreateServerRequestInstall,
2679
+ validationRules_gen$5_InstallServerRequest as InstallServerRequest,
2680
+ validationRules_gen$5_ListOSRequest as ListOSRequest,
2681
2681
  ListOffersRequest$1 as ListOffersRequest,
2682
- validationRules_gen$4_ListOptionsRequest as ListOptionsRequest,
2683
- validationRules_gen$4_ListServerEventsRequest as ListServerEventsRequest,
2682
+ validationRules_gen$5_ListOptionsRequest as ListOptionsRequest,
2683
+ validationRules_gen$5_ListServerEventsRequest as ListServerEventsRequest,
2684
2684
  ListServersRequest$1 as ListServersRequest,
2685
- validationRules_gen$4_ListSettingsRequest as ListSettingsRequest,
2685
+ validationRules_gen$5_ListSettingsRequest as ListSettingsRequest,
2686
2686
  UpdateServerRequest$1 as UpdateServerRequest,
2687
2687
  };
2688
2688
  }
@@ -2826,7 +2826,7 @@ declare namespace index$r {
2826
2826
  UpdateIPRequest$1 as UpdateIPRequest,
2827
2827
  UpdateServerRequest$2 as UpdateServerRequest,
2828
2828
  index$r_UpdateSettingRequest as UpdateSettingRequest,
2829
- validationRules_gen$4 as ValidationRules,
2829
+ validationRules_gen$5 as ValidationRules,
2830
2830
  };
2831
2831
  }
2832
2832
 
@@ -3535,10 +3535,13 @@ type ListDomainsRequestOrderBy$2 = 'created_at_asc' | 'created_at_desc' | 'hostn
3535
3535
  type ListLogsRequestOrderBy$1 = 'timestamp_desc' | 'timestamp_asc';
3536
3536
  type ListNamespacesRequestOrderBy$3 = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
3537
3537
  type ListTokensRequestOrderBy$1 = 'created_at_asc' | 'created_at_desc';
3538
+ type ListTriggersRequestOrderBy$1 = 'created_at_asc' | 'created_at_desc';
3538
3539
  type LogStream$1 = 'unknown' | 'stdout' | 'stderr';
3539
3540
  type NamespaceStatus$2 = 'unknown' | 'ready' | 'deleting' | 'error' | 'locked' | 'creating' | 'pending';
3540
3541
  type NullValue$2 = 'NULL_VALUE';
3541
3542
  type TokenStatus$1 = 'unknown' | 'ready' | 'deleting' | 'error' | 'creating';
3543
+ type TriggerInputType$1 = 'unknown_input_type' | 'sqs' | 'scw_sqs' | 'nats' | 'scw_nats';
3544
+ type TriggerStatus$1 = 'unknown_status' | 'ready' | 'deleting' | 'error' | 'creating' | 'pending';
3542
3545
  /** Container. */
3543
3546
  interface Container {
3544
3547
  /** UUID of the container. */
@@ -3593,6 +3596,24 @@ interface Container {
3593
3596
  /** Region in which the container will be deployed. */
3594
3597
  region: Region;
3595
3598
  }
3599
+ interface CreateTriggerRequestMnqNatsClientConfig$1 {
3600
+ mnqNamespaceId: string;
3601
+ subject: string;
3602
+ mnqProjectId: string;
3603
+ mnqRegion: string;
3604
+ }
3605
+ interface CreateTriggerRequestMnqSqsClientConfig$1 {
3606
+ mnqNamespaceId: string;
3607
+ queue: string;
3608
+ mnqProjectId: string;
3609
+ mnqRegion: string;
3610
+ }
3611
+ interface CreateTriggerRequestSqsClientConfig$1 {
3612
+ endpoint: string;
3613
+ queueUrl: string;
3614
+ accessKey: string;
3615
+ secretKey: string;
3616
+ }
3596
3617
  /** Cron. */
3597
3618
  interface Cron$1 {
3598
3619
  /** UUID of the cron. */
@@ -3660,6 +3681,10 @@ interface ListTokensResponse$1 {
3660
3681
  tokens: Token$1[];
3661
3682
  totalCount: number;
3662
3683
  }
3684
+ interface ListTriggersResponse$1 {
3685
+ triggers: Trigger$1[];
3686
+ totalCount: number;
3687
+ }
3663
3688
  /** Log. */
3664
3689
  interface Log$1 {
3665
3690
  message: string;
@@ -3734,6 +3759,54 @@ interface Token$1 {
3734
3759
  /** Expiry date of the token. */
3735
3760
  expiresAt?: Date;
3736
3761
  }
3762
+ interface Trigger$1 {
3763
+ id: string;
3764
+ name: string;
3765
+ description: string;
3766
+ inputType: TriggerInputType$1;
3767
+ status: TriggerStatus$1;
3768
+ errorMessage?: string;
3769
+ containerId: string;
3770
+ /**
3771
+ * One-of ('config'): at most one of 'scwSqsConfig', 'sqsConfig',
3772
+ * 'scwNatsConfig' could be set.
3773
+ */
3774
+ scwSqsConfig?: TriggerMnqSqsClientConfig$1;
3775
+ /**
3776
+ * One-of ('config'): at most one of 'scwSqsConfig', 'sqsConfig',
3777
+ * 'scwNatsConfig' could be set.
3778
+ */
3779
+ sqsConfig?: TriggerSqsClientConfig$1;
3780
+ /**
3781
+ * One-of ('config'): at most one of 'scwSqsConfig', 'sqsConfig',
3782
+ * 'scwNatsConfig' could be set.
3783
+ */
3784
+ scwNatsConfig?: TriggerMnqNatsClientConfig$1;
3785
+ }
3786
+ interface TriggerMnqNatsClientConfig$1 {
3787
+ mnqNamespaceId: string;
3788
+ subject: string;
3789
+ mnqProjectId: string;
3790
+ mnqRegion: string;
3791
+ mnqCredentialId?: string;
3792
+ }
3793
+ interface TriggerMnqSqsClientConfig$1 {
3794
+ mnqNamespaceId: string;
3795
+ queue: string;
3796
+ mnqProjectId: string;
3797
+ mnqRegion: string;
3798
+ mnqCredentialId?: string;
3799
+ }
3800
+ interface TriggerSqsClientConfig$1 {
3801
+ endpoint: string;
3802
+ queueUrl: string;
3803
+ accessKey: string;
3804
+ secretKey: string;
3805
+ }
3806
+ interface UpdateTriggerRequestSqsClientConfig$1 {
3807
+ accessKey?: string;
3808
+ secretKey?: string;
3809
+ }
3737
3810
  type ListNamespacesRequest$3 = {
3738
3811
  /**
3739
3812
  * Region to target. If none is passed will use default region from the
@@ -4138,6 +4211,84 @@ type DeleteTokenRequest$1 = {
4138
4211
  /** UUID of the token to delete. */
4139
4212
  tokenId: string;
4140
4213
  };
4214
+ type CreateTriggerRequest$1 = {
4215
+ /**
4216
+ * Region to target. If none is passed will use default region from the
4217
+ * config.
4218
+ */
4219
+ region?: Region;
4220
+ name: string;
4221
+ description?: string;
4222
+ containerId: string;
4223
+ /**
4224
+ * One-of ('config'): at most one of 'scwSqsConfig', 'sqsConfig',
4225
+ * 'scwNatsConfig' could be set.
4226
+ */
4227
+ scwSqsConfig?: CreateTriggerRequestMnqSqsClientConfig$1;
4228
+ /**
4229
+ * One-of ('config'): at most one of 'scwSqsConfig', 'sqsConfig',
4230
+ * 'scwNatsConfig' could be set.
4231
+ */
4232
+ sqsConfig?: CreateTriggerRequestSqsClientConfig$1;
4233
+ /**
4234
+ * One-of ('config'): at most one of 'scwSqsConfig', 'sqsConfig',
4235
+ * 'scwNatsConfig' could be set.
4236
+ */
4237
+ scwNatsConfig?: CreateTriggerRequestMnqNatsClientConfig$1;
4238
+ };
4239
+ type GetTriggerRequest$1 = {
4240
+ /**
4241
+ * Region to target. If none is passed will use default region from the
4242
+ * config.
4243
+ */
4244
+ region?: Region;
4245
+ triggerId: string;
4246
+ };
4247
+ type ListTriggersRequest$1 = {
4248
+ /**
4249
+ * Region to target. If none is passed will use default region from the
4250
+ * config.
4251
+ */
4252
+ region?: Region;
4253
+ page?: number;
4254
+ pageSize?: number;
4255
+ orderBy?: ListTriggersRequestOrderBy$1;
4256
+ /**
4257
+ * One-of ('scope'): at most one of 'containerId', 'namespaceId', 'projectId'
4258
+ * could be set.
4259
+ */
4260
+ containerId?: string;
4261
+ /**
4262
+ * One-of ('scope'): at most one of 'containerId', 'namespaceId', 'projectId'
4263
+ * could be set.
4264
+ */
4265
+ namespaceId?: string;
4266
+ /**
4267
+ * One-of ('scope'): at most one of 'containerId', 'namespaceId', 'projectId'
4268
+ * could be set.
4269
+ */
4270
+ projectId?: string;
4271
+ };
4272
+ type UpdateTriggerRequest$1 = {
4273
+ /**
4274
+ * Region to target. If none is passed will use default region from the
4275
+ * config.
4276
+ */
4277
+ region?: Region;
4278
+ triggerId: string;
4279
+ name?: string;
4280
+ description?: string;
4281
+ /** One-of ('config'): at most one of 'sqsConfig' could be set. */
4282
+ sqsConfig?: UpdateTriggerRequestSqsClientConfig$1;
4283
+ };
4284
+ type DeleteTriggerRequest$1 = {
4285
+ /**
4286
+ * Region to target. If none is passed will use default region from the
4287
+ * config.
4288
+ */
4289
+ region?: Region;
4290
+ triggerId: string;
4291
+ };
4141
4292
 
4142
4293
  /** Serverless Containers API. */
4143
4294
  declare class API$m extends API$s {
@@ -4397,6 +4548,54 @@ declare class API$m extends API$s {
4397
4548
  * @returns A Promise of Token
4398
4549
  */
4399
4550
  deleteToken: (request: Readonly<DeleteTokenRequest$1>) => Promise<Token$1>;
4551
+ /**
4552
+ * Create a trigger. Create a new trigger for a specified container.
4553
+ *
4554
+ * @param request - The request {@link CreateTriggerRequest}
4555
+ * @returns A Promise of Trigger
4556
+ */
4557
+ createTrigger: (request: Readonly<CreateTriggerRequest$1>) => Promise<Trigger$1>;
4558
+ /**
4559
+ * Get a trigger. Get a trigger with a specified ID.
4560
+ *
4561
+ * @param request - The request {@link GetTriggerRequest}
4562
+ * @returns A Promise of Trigger
4563
+ */
4564
+ getTrigger: (request: Readonly<GetTriggerRequest$1>) => Promise<Trigger$1>;
4565
+ /**
4566
+ * Waits for {@link Trigger} to be in a final state.
4567
+ *
4568
+ * @param request - The request {@link GetTriggerRequest}
4569
+ * @param options - The waiting options
4570
+ * @returns A Promise of Trigger
4571
+ */
4572
+ waitForTrigger: (request: Readonly<GetTriggerRequest$1>, options?: Readonly<WaitForOptions<Trigger$1>>) => Promise<Trigger$1>;
4573
+ protected pageOfListTriggers: (request?: Readonly<ListTriggersRequest$1>) => Promise<ListTriggersResponse$1>;
4574
+ /**
4575
+ * List all triggers. List all triggers belonging to a specified Organization
4576
+ * or Project.
4577
+ *
4578
+ * @param request - The request {@link ListTriggersRequest}
4579
+ * @returns A Promise of ListTriggersResponse
4580
+ */
4581
+ listTriggers: (request?: Readonly<ListTriggersRequest$1>) => Promise<ListTriggersResponse$1> & {
4582
+ all: () => Promise<Trigger$1[]>;
4583
+ [Symbol.asyncIterator]: () => AsyncGenerator<Trigger$1[], void, void>;
4584
+ };
4585
+ /**
4586
+ * Update a trigger. Update a trigger with a specified ID.
4587
+ *
4588
+ * @param request - The request {@link UpdateTriggerRequest}
4589
+ * @returns A Promise of Trigger
4590
+ */
4591
+ updateTrigger: (request: Readonly<UpdateTriggerRequest$1>) => Promise<Trigger$1>;
4592
+ /**
4593
+ * Delete a trigger. Delete a trigger with a specified ID.
4594
+ *
4595
+ * @param request - The request {@link DeleteTriggerRequest}
4596
+ * @returns A Promise of Trigger
4597
+ */
4598
+ deleteTrigger: (request: Readonly<DeleteTriggerRequest$1>) => Promise<Trigger$1>;
4400
4599
  }
4401
4600
 
4402
4601
  /** Lists transient statutes of the enum {@link ContainerStatus}. */
@@ -4409,6 +4608,8 @@ declare const DOMAIN_TRANSIENT_STATUSES$3: DomainStatus$3[];
4409
4608
  declare const NAMESPACE_TRANSIENT_STATUSES$2: NamespaceStatus$2[];
4410
4609
  /** Lists transient statutes of the enum {@link TokenStatus}. */
4411
4610
  declare const TOKEN_TRANSIENT_STATUSES$1: TokenStatus$1[];
4611
+ /** Lists transient statutes of the enum {@link TriggerStatus}. */
4612
+ declare const TRIGGER_TRANSIENT_STATUSES$1: TriggerStatus$1[];
4412
4613
 
4413
4614
  declare const index_gen$j_CONTAINER_TRANSIENT_STATUSES: typeof CONTAINER_TRANSIENT_STATUSES;
4414
4615
  type index_gen$j_Container = Container;
@@ -4439,6 +4640,10 @@ declare namespace index_gen$j {
4439
4640
  CreateDomainRequest$2 as CreateDomainRequest,
4440
4641
  CreateNamespaceRequest$3 as CreateNamespaceRequest,
4441
4642
  CreateTokenRequest$1 as CreateTokenRequest,
4643
+ CreateTriggerRequest$1 as CreateTriggerRequest,
4644
+ CreateTriggerRequestMnqNatsClientConfig$1 as CreateTriggerRequestMnqNatsClientConfig,
4645
+ CreateTriggerRequestMnqSqsClientConfig$1 as CreateTriggerRequestMnqSqsClientConfig,
4646
+ CreateTriggerRequestSqsClientConfig$1 as CreateTriggerRequestSqsClientConfig,
4442
4647
  Cron$1 as Cron,
4443
4648
  CronStatus$1 as CronStatus,
4444
4649
  DOMAIN_TRANSIENT_STATUSES$3 as DOMAIN_TRANSIENT_STATUSES,
@@ -4447,6 +4652,7 @@ declare namespace index_gen$j {
4447
4652
  DeleteDomainRequest$1 as DeleteDomainRequest,
4448
4653
  DeleteNamespaceRequest$3 as DeleteNamespaceRequest,
4449
4654
  DeleteTokenRequest$1 as DeleteTokenRequest,
4655
+ DeleteTriggerRequest$1 as DeleteTriggerRequest,
4450
4656
  index_gen$j_DeployContainerRequest as DeployContainerRequest,
4451
4657
  Domain$3 as Domain,
4452
4658
  DomainStatus$3 as DomainStatus,
@@ -4455,6 +4661,7 @@ declare namespace index_gen$j {
4455
4661
  GetDomainRequest$2 as GetDomainRequest,
4456
4662
  GetNamespaceRequest$3 as GetNamespaceRequest,
4457
4663
  GetTokenRequest$1 as GetTokenRequest,
4664
+ GetTriggerRequest$1 as GetTriggerRequest,
4458
4665
  IssueJWTRequest$1 as IssueJWTRequest,
4459
4666
  index_gen$j_ListContainersRequest as ListContainersRequest,
4460
4667
  index_gen$j_ListContainersRequestOrderBy as ListContainersRequestOrderBy,
@@ -4474,6 +4681,9 @@ declare namespace index_gen$j {
4474
4681
  ListTokensRequest$1 as ListTokensRequest,
4475
4682
  ListTokensRequestOrderBy$1 as ListTokensRequestOrderBy,
4476
4683
  ListTokensResponse$1 as ListTokensResponse,
4684
+ ListTriggersRequest$1 as ListTriggersRequest,
4685
+ ListTriggersRequestOrderBy$1 as ListTriggersRequestOrderBy,
4686
+ ListTriggersResponse$1 as ListTriggersResponse,
4477
4687
  Log$1 as Log,
4478
4688
  LogStream$1 as LogStream,
4479
4689
  NAMESPACE_TRANSIENT_STATUSES$2 as NAMESPACE_TRANSIENT_STATUSES,
@@ -4483,11 +4693,20 @@ declare namespace index_gen$j {
4483
4693
  Secret$2 as Secret,
4484
4694
  SecretHashedValue$1 as SecretHashedValue,
4485
4695
  TOKEN_TRANSIENT_STATUSES$1 as TOKEN_TRANSIENT_STATUSES,
4696
+ TRIGGER_TRANSIENT_STATUSES$1 as TRIGGER_TRANSIENT_STATUSES,
4486
4697
  Token$1 as Token,
4487
4698
  TokenStatus$1 as TokenStatus,
4699
+ Trigger$1 as Trigger,
4700
+ TriggerInputType$1 as TriggerInputType,
4701
+ TriggerMnqNatsClientConfig$1 as TriggerMnqNatsClientConfig,
4702
+ TriggerMnqSqsClientConfig$1 as TriggerMnqSqsClientConfig,
4703
+ TriggerSqsClientConfig$1 as TriggerSqsClientConfig,
4704
+ TriggerStatus$1 as TriggerStatus,
4488
4705
  index_gen$j_UpdateContainerRequest as UpdateContainerRequest,
4489
4706
  UpdateCronRequest$1 as UpdateCronRequest,
4490
4707
  UpdateNamespaceRequest$3 as UpdateNamespaceRequest,
4708
+ UpdateTriggerRequest$1 as UpdateTriggerRequest,
4709
+ UpdateTriggerRequestSqsClientConfig$1 as UpdateTriggerRequestSqsClientConfig,
4491
4710
  };
4492
4711
  }
4493
4712
 
@@ -6718,10 +6937,10 @@ declare const ListFlexibleIPsRequest: {
6718
6937
  };
6719
6938
  };
6720
6939
 
6721
- declare const validationRules_gen$3_ListFlexibleIPsRequest: typeof ListFlexibleIPsRequest;
6722
- declare namespace validationRules_gen$3 {
6940
+ declare const validationRules_gen$4_ListFlexibleIPsRequest: typeof ListFlexibleIPsRequest;
6941
+ declare namespace validationRules_gen$4 {
6723
6942
  export {
6724
- validationRules_gen$3_ListFlexibleIPsRequest as ListFlexibleIPsRequest,
6943
+ validationRules_gen$4_ListFlexibleIPsRequest as ListFlexibleIPsRequest,
6725
6944
  };
6726
6945
  }
6727
6946
 
@@ -6771,7 +6990,7 @@ declare namespace index_gen$h {
6771
6990
  index_gen$h_MAC_ADDRESS_TRANSIENT_STATUSES as MAC_ADDRESS_TRANSIENT_STATUSES,
6772
6991
  index_gen$h_MoveMACAddrRequest as MoveMACAddrRequest,
6773
6992
  index_gen$h_UpdateFlexibleIPRequest as UpdateFlexibleIPRequest,
6774
- validationRules_gen$3 as ValidationRules,
6993
+ validationRules_gen$4 as ValidationRules,
6775
6994
  };
6776
6995
  }
6777
6996
 
@@ -9490,49 +9709,49 @@ declare const UpdateSSHKeyRequest: {
9490
9709
  };
9491
9710
  };
9492
9711
 
9493
- declare const validationRules_gen$2_CreateAPIKeyRequest: typeof CreateAPIKeyRequest;
9494
- declare const validationRules_gen$2_CreateApplicationRequest: typeof CreateApplicationRequest;
9495
- declare const validationRules_gen$2_CreateGroupRequest: typeof CreateGroupRequest;
9496
- declare const validationRules_gen$2_CreatePolicyRequest: typeof CreatePolicyRequest;
9497
- declare const validationRules_gen$2_CreateSSHKeyRequest: typeof CreateSSHKeyRequest;
9498
- declare const validationRules_gen$2_GetQuotumRequest: typeof GetQuotumRequest;
9499
- declare const validationRules_gen$2_ListAPIKeysRequest: typeof ListAPIKeysRequest;
9500
- declare const validationRules_gen$2_ListApplicationsRequest: typeof ListApplicationsRequest;
9501
- declare const validationRules_gen$2_ListGroupsRequest: typeof ListGroupsRequest;
9502
- declare const validationRules_gen$2_ListJWTsRequest: typeof ListJWTsRequest;
9503
- declare const validationRules_gen$2_ListPermissionSetsRequest: typeof ListPermissionSetsRequest;
9504
- declare const validationRules_gen$2_ListPoliciesRequest: typeof ListPoliciesRequest;
9505
- declare const validationRules_gen$2_ListQuotaRequest: typeof ListQuotaRequest;
9506
- declare const validationRules_gen$2_ListRulesRequest: typeof ListRulesRequest;
9507
- declare const validationRules_gen$2_ListSSHKeysRequest: typeof ListSSHKeysRequest;
9508
- declare const validationRules_gen$2_UpdateAPIKeyRequest: typeof UpdateAPIKeyRequest;
9509
- declare const validationRules_gen$2_UpdateApplicationRequest: typeof UpdateApplicationRequest;
9510
- declare const validationRules_gen$2_UpdateGroupRequest: typeof UpdateGroupRequest;
9511
- declare const validationRules_gen$2_UpdatePolicyRequest: typeof UpdatePolicyRequest;
9512
- declare const validationRules_gen$2_UpdateSSHKeyRequest: typeof UpdateSSHKeyRequest;
9513
- declare namespace validationRules_gen$2 {
9712
+ declare const validationRules_gen$3_CreateAPIKeyRequest: typeof CreateAPIKeyRequest;
9713
+ declare const validationRules_gen$3_CreateApplicationRequest: typeof CreateApplicationRequest;
9714
+ declare const validationRules_gen$3_CreateGroupRequest: typeof CreateGroupRequest;
9715
+ declare const validationRules_gen$3_CreatePolicyRequest: typeof CreatePolicyRequest;
9716
+ declare const validationRules_gen$3_CreateSSHKeyRequest: typeof CreateSSHKeyRequest;
9717
+ declare const validationRules_gen$3_GetQuotumRequest: typeof GetQuotumRequest;
9718
+ declare const validationRules_gen$3_ListAPIKeysRequest: typeof ListAPIKeysRequest;
9719
+ declare const validationRules_gen$3_ListApplicationsRequest: typeof ListApplicationsRequest;
9720
+ declare const validationRules_gen$3_ListGroupsRequest: typeof ListGroupsRequest;
9721
+ declare const validationRules_gen$3_ListJWTsRequest: typeof ListJWTsRequest;
9722
+ declare const validationRules_gen$3_ListPermissionSetsRequest: typeof ListPermissionSetsRequest;
9723
+ declare const validationRules_gen$3_ListPoliciesRequest: typeof ListPoliciesRequest;
9724
+ declare const validationRules_gen$3_ListQuotaRequest: typeof ListQuotaRequest;
9725
+ declare const validationRules_gen$3_ListRulesRequest: typeof ListRulesRequest;
9726
+ declare const validationRules_gen$3_ListSSHKeysRequest: typeof ListSSHKeysRequest;
9727
+ declare const validationRules_gen$3_UpdateAPIKeyRequest: typeof UpdateAPIKeyRequest;
9728
+ declare const validationRules_gen$3_UpdateApplicationRequest: typeof UpdateApplicationRequest;
9729
+ declare const validationRules_gen$3_UpdateGroupRequest: typeof UpdateGroupRequest;
9730
+ declare const validationRules_gen$3_UpdatePolicyRequest: typeof UpdatePolicyRequest;
9731
+ declare const validationRules_gen$3_UpdateSSHKeyRequest: typeof UpdateSSHKeyRequest;
9732
+ declare namespace validationRules_gen$3 {
9514
9733
  export {
9515
- validationRules_gen$2_CreateAPIKeyRequest as CreateAPIKeyRequest,
9516
- validationRules_gen$2_CreateApplicationRequest as CreateApplicationRequest,
9517
- validationRules_gen$2_CreateGroupRequest as CreateGroupRequest,
9518
- validationRules_gen$2_CreatePolicyRequest as CreatePolicyRequest,
9519
- validationRules_gen$2_CreateSSHKeyRequest as CreateSSHKeyRequest,
9520
- validationRules_gen$2_GetQuotumRequest as GetQuotumRequest,
9521
- validationRules_gen$2_ListAPIKeysRequest as ListAPIKeysRequest,
9522
- validationRules_gen$2_ListApplicationsRequest as ListApplicationsRequest,
9523
- validationRules_gen$2_ListGroupsRequest as ListGroupsRequest,
9524
- validationRules_gen$2_ListJWTsRequest as ListJWTsRequest,
9525
- validationRules_gen$2_ListPermissionSetsRequest as ListPermissionSetsRequest,
9526
- validationRules_gen$2_ListPoliciesRequest as ListPoliciesRequest,
9527
- validationRules_gen$2_ListQuotaRequest as ListQuotaRequest,
9528
- validationRules_gen$2_ListRulesRequest as ListRulesRequest,
9529
- validationRules_gen$2_ListSSHKeysRequest as ListSSHKeysRequest,
9734
+ validationRules_gen$3_CreateAPIKeyRequest as CreateAPIKeyRequest,
9735
+ validationRules_gen$3_CreateApplicationRequest as CreateApplicationRequest,
9736
+ validationRules_gen$3_CreateGroupRequest as CreateGroupRequest,
9737
+ validationRules_gen$3_CreatePolicyRequest as CreatePolicyRequest,
9738
+ validationRules_gen$3_CreateSSHKeyRequest as CreateSSHKeyRequest,
9739
+ validationRules_gen$3_GetQuotumRequest as GetQuotumRequest,
9740
+ validationRules_gen$3_ListAPIKeysRequest as ListAPIKeysRequest,
9741
+ validationRules_gen$3_ListApplicationsRequest as ListApplicationsRequest,
9742
+ validationRules_gen$3_ListGroupsRequest as ListGroupsRequest,
9743
+ validationRules_gen$3_ListJWTsRequest as ListJWTsRequest,
9744
+ validationRules_gen$3_ListPermissionSetsRequest as ListPermissionSetsRequest,
9745
+ validationRules_gen$3_ListPoliciesRequest as ListPoliciesRequest,
9746
+ validationRules_gen$3_ListQuotaRequest as ListQuotaRequest,
9747
+ validationRules_gen$3_ListRulesRequest as ListRulesRequest,
9748
+ validationRules_gen$3_ListSSHKeysRequest as ListSSHKeysRequest,
9530
9749
  ListUsersRequest$1 as ListUsersRequest,
9531
- validationRules_gen$2_UpdateAPIKeyRequest as UpdateAPIKeyRequest,
9532
- validationRules_gen$2_UpdateApplicationRequest as UpdateApplicationRequest,
9533
- validationRules_gen$2_UpdateGroupRequest as UpdateGroupRequest,
9534
- validationRules_gen$2_UpdatePolicyRequest as UpdatePolicyRequest,
9535
- validationRules_gen$2_UpdateSSHKeyRequest as UpdateSSHKeyRequest,
9750
+ validationRules_gen$3_UpdateAPIKeyRequest as UpdateAPIKeyRequest,
9751
+ validationRules_gen$3_UpdateApplicationRequest as UpdateApplicationRequest,
9752
+ validationRules_gen$3_UpdateGroupRequest as UpdateGroupRequest,
9753
+ validationRules_gen$3_UpdatePolicyRequest as UpdatePolicyRequest,
9754
+ validationRules_gen$3_UpdateSSHKeyRequest as UpdateSSHKeyRequest,
9536
9755
  };
9537
9756
  }
9538
9757
 
@@ -9666,7 +9885,7 @@ declare namespace index_gen$f {
9666
9885
  User$1 as User,
9667
9886
  index_gen$f_UserStatus as UserStatus,
9668
9887
  index_gen$f_UserType as UserType,
9669
- validationRules_gen$2 as ValidationRules,
9888
+ validationRules_gen$3 as ValidationRules,
9670
9889
  };
9671
9890
  }
9672
9891
 
@@ -9679,6 +9898,8 @@ declare namespace index$j {
9679
9898
  type Arch = 'x86_64' | 'arm';
9680
9899
  type BootType = 'local' | 'bootscript' | 'rescue';
9681
9900
  type ImageState = 'available' | 'creating' | 'error';
9901
+ type IpState = 'unknown_state' | 'detached' | 'attached' | 'pending' | 'error';
9902
+ type IpType = 'unknown_iptype' | 'nat' | 'routed_ipv4' | 'routed_ipv6';
9682
9903
  type ListServersRequestOrder = 'creation_date_desc' | 'creation_date_asc' | 'modification_date_desc' | 'modification_date_asc';
9683
9904
  type PlacementGroupPolicyMode = 'optional' | 'enforced';
9684
9905
  type PlacementGroupPolicyType = 'max_availability' | 'low_latency';
@@ -9689,6 +9910,8 @@ type SecurityGroupRuleDirection = 'inbound' | 'outbound';
9689
9910
  type SecurityGroupRuleProtocol = 'TCP' | 'UDP' | 'ICMP' | 'ANY';
9690
9911
  type SecurityGroupState = 'available' | 'syncing' | 'syncing_error';
9691
9912
  type ServerAction = 'poweron' | 'backup' | 'stop_in_place' | 'poweroff' | 'terminate' | 'reboot';
9913
+ type ServerIpIpFamily = 'inet' | 'inet6';
9914
+ type ServerIpProvisioningMode = 'manual' | 'dhcp' | 'slaac';
9692
9915
  type ServerState = 'running' | 'stopped' | 'stopped in place' | 'starting' | 'stopping' | 'locked';
9693
9916
  type ServerTypesAvailability = 'available' | 'scarce' | 'shortage';
9694
9917
  type SnapshotState = 'available' | 'snapshotting' | 'error' | 'invalid_data' | 'importing' | 'exporting';
@@ -9852,6 +10075,9 @@ interface Ip$1 {
9852
10075
  organization: string;
9853
10076
  tags: string[];
9854
10077
  project: string;
10078
+ type: IpType;
10079
+ state: IpState;
10080
+ prefix: string;
9855
10081
  zone: Zone;
9856
10082
  }
9857
10083
  /** List bootscripts response. */
@@ -10073,8 +10299,10 @@ interface Server {
10073
10299
  commercialType: string;
10074
10300
  /** Instance creation date. */
10075
10301
  creationDate?: Date;
10076
- /** True if a dynamic IP is required. */
10302
+ /** True if a dynamic IPv4 is required. */
10077
10303
  dynamicIpRequired: boolean;
10304
+ /** True to configure the instance so it uses the new routed IP mode. */
10305
+ routedIpEnabled: boolean;
10078
10306
  /** True if IPv6 is enabled. */
10079
10307
  enableIpv6: boolean;
10080
10308
  /** Instance host name. */
@@ -10087,6 +10315,10 @@ interface Server {
10087
10315
  privateIp?: string;
10088
10316
  /** Information about the public IP. */
10089
10317
  publicIp?: ServerIp;
10318
+ /** Information about all the public IPs attached to the server. */
10319
+ publicIps: ServerIp[];
10320
+ /** The server's MAC address. */
10321
+ macAddress: string;
10090
10322
  /** Instance modification date. */
10091
10323
  modificationDate?: Date;
10092
10324
  /** Instance state. */
@@ -10132,10 +10364,18 @@ interface ServerActionResponse {
10132
10364
  interface ServerIp {
10133
10365
  /** Unique ID of the IP address. */
10134
10366
  id: string;
10135
- /** Instance public IPv4 IP-Address. */
10367
+ /** Instance's public IP-Address. */
10136
10368
  address: string;
10369
+ /** Gateway's IP address. */
10370
+ gateway: string;
10371
+ /** CIDR netmask. */
10372
+ netmask: string;
10373
+ /** IP address family (inet or inet6). */
10374
+ family: ServerIpIpFamily;
10137
10375
  /** True if the IP address is dynamic. */
10138
10376
  dynamic: boolean;
10377
+ /** Information about this address provisioning mode. */
10378
+ provisioningMode: ServerIpProvisioningMode;
10139
10379
  }
10140
10380
  /** Server. ipv6. */
10141
10381
  interface ServerIpv6 {
@@ -10393,21 +10633,21 @@ interface VolumeServer {
10393
10633
  /** Volume server template. */
10394
10634
  interface VolumeServerTemplate {
10395
10635
  /** UUID of the volume. */
10396
- id: string;
10636
+ id?: string;
10397
10637
  /** Force the Instance to boot on this volume. */
10398
- boot: boolean;
10638
+ boot?: boolean;
10399
10639
  /** Name of the volume. */
10400
- name: string;
10640
+ name?: string;
10401
10641
  /** Disk size of the volume, must be a multiple of 512. */
10402
- size: number;
10642
+ size?: number;
10403
10643
  /** Type of the volume. */
10404
10644
  volumeType: VolumeVolumeType;
10405
10645
  /** ID of the snapshot on which this volume will be based. */
10406
- baseSnapshot: string;
10646
+ baseSnapshot?: string;
10407
10647
  /** Organization ID of the volume. */
10408
- organization: string;
10648
+ organization?: string;
10409
10649
  /** Project ID of the volume. */
10410
- project: string;
10650
+ project?: string;
10411
10651
  }
10412
10652
  interface VolumeSummary {
10413
10653
  id: string;
@@ -11076,6 +11316,8 @@ type CreateIpRequest$1 = {
11076
11316
  tags?: string[];
11077
11317
  /** UUID of the Instance you want to attach the IP to. */
11078
11318
  server?: string;
11319
+ /** IP type to reserve (either 'nat', 'routed_ipv4' or 'routed_ipv6'). */
11320
+ type?: IpType;
11079
11321
  };
11080
11322
  type GetIpRequest$1 = {
11081
11323
  /** Zone to target. If none is passed will use default zone from the config. */
@@ -11090,6 +11332,8 @@ type UpdateIpRequest$1 = {
11090
11332
  ip: string;
11091
11333
  /** Reverse domain name. */
11092
11334
  reverse?: string | null;
11335
+ /** Convert a 'nat' IP to a 'routed_ipv4'. */
11336
+ type?: IpType;
11093
11337
  /** An array of keywords you want to tag this IP with. */
11094
11338
  tags?: string[];
11095
11339
  server?: string | null;
@@ -11124,6 +11368,8 @@ type CreatePrivateNICRequest = {
11124
11368
  privateNetworkId: string;
11125
11369
  /** Private NIC tags. */
11126
11370
  tags?: string[];
11371
+ /** Ip_ids defined from IPAM. */
11372
+ ipIds?: string[];
11127
11373
  };
11128
11374
  type GetPrivateNICRequest = {
11129
11375
  /** Zone to target. If none is passed will use default zone from the config. */
@@ -11198,8 +11444,10 @@ type CreateServerRequest = {
11198
11444
  zone?: Zone;
11199
11445
  /** Instance name. */
11200
11446
  name?: string;
11201
- /** Define if a dynamic IP is required for the Instance. */
11447
+ /** Define if a dynamic IPv4 is required for the Instance. */
11202
11448
  dynamicIpRequired?: boolean;
11449
+ /** If true, configure the Instance so it uses the new routed IP mode. */
11450
+ routedIpEnabled?: boolean;
11203
11451
  /** Define the Instance commercial type (i.e. GP1-S). */
11204
11452
  commercialType: string;
11205
11453
  /** Instance image ID or label. */
@@ -11208,8 +11456,10 @@ type CreateServerRequest = {
11208
11456
  volumes?: Record<string, VolumeServerTemplate>;
11209
11457
  /** True if IPv6 is enabled on the server. */
11210
11458
  enableIpv6: boolean;
11211
- /** ID of the reserved IP to attach to the server. */
11459
+ /** ID of the reserved IP to attach to the Instance. */
11212
11460
  publicIp?: string;
11461
+ /** A list of reserved IP IDs to attach to the Instance. */
11462
+ publicIps?: string[];
11213
11463
  /** Boot type to use. */
11214
11464
  bootType?: BootType;
11215
11465
  /** @deprecated Bootscript ID to use when `boot_type` is set to `bootscript`. */
@@ -11254,8 +11504,13 @@ type SetServerRequest = {
11254
11504
  commercialType: string;
11255
11505
  /** Instance creation date. */
11256
11506
  creationDate?: Date;
11257
- /** True if a dynamic IP is required. */
11507
+ /** True if a dynamic IPv4 is required. */
11258
11508
  dynamicIpRequired: boolean;
11509
+ /**
11510
+ * True to configure the instance so it uses the new routed IP mode (once this
11511
+ * is set to True you cannot set it back to False).
11512
+ */
11513
+ routedIpEnabled?: boolean;
11259
11514
  /** True if IPv6 is enabled. */
11260
11515
  enableIpv6: boolean;
11261
11516
  /** Instance host name. */
@@ -11268,6 +11523,8 @@ type SetServerRequest = {
11268
11523
  privateIp?: string;
11269
11524
  /** Information about the public IP. */
11270
11525
  publicIp?: ServerIp;
11526
+ /** Information about all the public IPs attached to the server. */
11527
+ publicIps?: ServerIp[];
11271
11528
  /** Instance modification date. */
11272
11529
  modificationDate?: Date;
11273
11530
  /** Instance state. */
@@ -11312,6 +11569,12 @@ type UpdateServerRequest = {
11312
11569
  /** @deprecated */
11313
11570
  bootscript?: string;
11314
11571
  dynamicIpRequired?: boolean;
11572
+ /**
11573
+ * True to configure the instance so it uses the new routed IP mode (once this
11574
+ * is set to True you cannot set it back to False).
11575
+ */
11576
+ routedIpEnabled?: boolean;
11577
+ publicIps?: ServerIp[];
11315
11578
  enableIpv6?: boolean;
11316
11579
  protected?: boolean;
11317
11580
  securityGroup?: SecurityGroupTemplate;
@@ -11477,6 +11740,7 @@ declare class API$h extends API$s {
11477
11740
  * keep the slot on the hypervisor. `reboot`: Stop the instance and restart
11478
11741
  * it. `backup`: Create an image with all the volumes of an Instance.
11479
11742
  * `terminate`: Delete the Instance along with all attached volumes.
11743
+ * `enable_routed_ip`: Migrate the Instance to the new network stack.
11480
11744
  *
11481
11745
  * Keep in mind that terminating an Instance will result in the deletion of
11482
11746
  * all attached volumes, including local and block storage. If you want to
@@ -12100,6 +12364,8 @@ declare class InstanceV1UtilsAPI extends API$h {
12100
12364
 
12101
12365
  /** Lists transient statutes of the enum {@link ImageState}. */
12102
12366
  declare const IMAGE_TRANSIENT_STATUSES$1: ImageState[];
12367
+ /** Lists transient statutes of the enum {@link IpState}. */
12368
+ declare const IP_TRANSIENT_STATUSES: IpState[];
12103
12369
  /** Lists transient statutes of the enum {@link PrivateNICState}. */
12104
12370
  declare const PRIVATE_NIC_TRANSIENT_STATUSES: PrivateNICState[];
12105
12371
  /** Lists transient statutes of the enum {@link SecurityGroupState}. */
@@ -12170,7 +12436,10 @@ type index$i_GetServerTypesAvailabilityResponseAvailability = GetServerTypesAvai
12170
12436
  type index$i_GetServerUserDataRequest = GetServerUserDataRequest;
12171
12437
  type index$i_GetSnapshotResponse = GetSnapshotResponse;
12172
12438
  type index$i_GetVolumeResponse = GetVolumeResponse;
12439
+ declare const index$i_IP_TRANSIENT_STATUSES: typeof IP_TRANSIENT_STATUSES;
12173
12440
  type index$i_ImageState = ImageState;
12441
+ type index$i_IpState = IpState;
12442
+ type index$i_IpType = IpType;
12174
12443
  type index$i_ListBootscriptsRequest = ListBootscriptsRequest;
12175
12444
  type index$i_ListBootscriptsResponse = ListBootscriptsResponse;
12176
12445
  type index$i_ListDefaultSecurityGroupRulesRequest = ListDefaultSecurityGroupRulesRequest;
@@ -12218,6 +12487,8 @@ type index$i_ServerActionRequest = ServerActionRequest;
12218
12487
  type index$i_ServerActionRequestVolumeBackupTemplate = ServerActionRequestVolumeBackupTemplate;
12219
12488
  type index$i_ServerActionResponse = ServerActionResponse;
12220
12489
  type index$i_ServerIp = ServerIp;
12490
+ type index$i_ServerIpIpFamily = ServerIpIpFamily;
12491
+ type index$i_ServerIpProvisioningMode = ServerIpProvisioningMode;
12221
12492
  type index$i_ServerIpv6 = ServerIpv6;
12222
12493
  type index$i_ServerLocation = ServerLocation;
12223
12494
  type index$i_ServerMaintenance = ServerMaintenance;
@@ -12341,9 +12612,12 @@ declare namespace index$i {
12341
12612
  GetVolumeRequest$1 as GetVolumeRequest,
12342
12613
  index$i_GetVolumeResponse as GetVolumeResponse,
12343
12614
  IMAGE_TRANSIENT_STATUSES$1 as IMAGE_TRANSIENT_STATUSES,
12615
+ index$i_IP_TRANSIENT_STATUSES as IP_TRANSIENT_STATUSES,
12344
12616
  Image$3 as Image,
12345
12617
  index$i_ImageState as ImageState,
12346
12618
  Ip$1 as Ip,
12619
+ index$i_IpState as IpState,
12620
+ index$i_IpType as IpType,
12347
12621
  index$i_ListBootscriptsRequest as ListBootscriptsRequest,
12348
12622
  index$i_ListBootscriptsResponse as ListBootscriptsResponse,
12349
12623
  index$i_ListDefaultSecurityGroupRulesRequest as ListDefaultSecurityGroupRulesRequest,
@@ -12399,6 +12673,8 @@ declare namespace index$i {
12399
12673
  index$i_ServerActionRequestVolumeBackupTemplate as ServerActionRequestVolumeBackupTemplate,
12400
12674
  index$i_ServerActionResponse as ServerActionResponse,
12401
12675
  index$i_ServerIp as ServerIp,
12676
+ index$i_ServerIpIpFamily as ServerIpIpFamily,
12677
+ index$i_ServerIpProvisioningMode as ServerIpProvisioningMode,
12402
12678
  index$i_ServerIpv6 as ServerIpv6,
12403
12679
  index$i_ServerLocation as ServerLocation,
12404
12680
  index$i_ServerMaintenance as ServerMaintenance,
@@ -13917,6 +14193,7 @@ declare namespace index$g {
13917
14193
 
13918
14194
  type ListPinsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
13919
14195
  type ListVolumesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
14196
+ type PinDetails = 'unknown_details' | 'pinning_looking_for_provider' | 'pinning_in_progress' | 'pinning_blocks_fetched' | 'pinning_fetching_url_data' | 'pinned_ok' | 'unpinned_ok' | 'unpinning_in_progress' | 'failed_contains_banned_cid' | 'failed_pinning' | 'failed_pinning_no_provider' | 'failed_pinning_bad_cid_format' | 'failed_pinning_timeout' | 'failed_pinning_too_big_content' | 'failed_pinning_unreachable_url' | 'failed_pinning_bad_url_format' | 'failed_pinning_no_url_content_length' | 'failed_pinning_bad_url_status_code' | 'failed_unpinning' | 'checking_coherence' | 'rescheduled';
13920
14197
  type PinStatus = 'unknown_status' | 'queued' | 'pinning' | 'failed' | 'pinned';
13921
14198
  interface ListPinsResponse {
13922
14199
  totalCount: number;
@@ -13944,11 +14221,11 @@ interface PinCIDMeta {
13944
14221
  id?: string;
13945
14222
  }
13946
14223
  interface PinInfo {
13947
- statusDetails?: string;
13948
14224
  id?: string;
13949
14225
  url?: string;
13950
14226
  size?: number;
13951
14227
  progress?: number;
14228
+ statusDetails: PinDetails;
13952
14229
  }
13953
14230
  interface PinOptions {
13954
14231
  requiredZones: string[];
@@ -14218,6 +14495,7 @@ declare const index_gen$d_PIN_TRANSIENT_STATUSES: typeof PIN_TRANSIENT_STATUSES;
14218
14495
  type index_gen$d_Pin = Pin;
14219
14496
  type index_gen$d_PinCID = PinCID;
14220
14497
  type index_gen$d_PinCIDMeta = PinCIDMeta;
14498
+ type index_gen$d_PinDetails = PinDetails;
14221
14499
  type index_gen$d_PinInfo = PinInfo;
14222
14500
  type index_gen$d_PinOptions = PinOptions;
14223
14501
  type index_gen$d_PinStatus = PinStatus;
@@ -14244,6 +14522,7 @@ declare namespace index_gen$d {
14244
14522
  index_gen$d_Pin as Pin,
14245
14523
  index_gen$d_PinCID as PinCID,
14246
14524
  index_gen$d_PinCIDMeta as PinCIDMeta,
14525
+ index_gen$d_PinDetails as PinDetails,
14247
14526
  index_gen$d_PinInfo as PinInfo,
14248
14527
  index_gen$d_PinOptions as PinOptions,
14249
14528
  index_gen$d_PinStatus as PinStatus,
@@ -15718,29 +15997,29 @@ declare const UpdateClusterRequestAutoscalerConfig: {
15718
15997
  };
15719
15998
  };
15720
15999
 
15721
- declare const validationRules_gen$1_CreateClusterRequestAutoscalerConfig: typeof CreateClusterRequestAutoscalerConfig;
15722
- declare const validationRules_gen$1_CreateClusterRequestOpenIDConnectConfig: typeof CreateClusterRequestOpenIDConnectConfig;
15723
- declare const validationRules_gen$1_CreateClusterRequestPoolConfig: typeof CreateClusterRequestPoolConfig;
15724
- declare const validationRules_gen$1_CreatePoolRequest: typeof CreatePoolRequest;
15725
- declare const validationRules_gen$1_ListClusterTypesRequest: typeof ListClusterTypesRequest;
15726
- declare const validationRules_gen$1_ListNodesRequest: typeof ListNodesRequest;
15727
- declare const validationRules_gen$1_ListPoolsRequest: typeof ListPoolsRequest;
15728
- declare const validationRules_gen$1_MaintenanceWindow: typeof MaintenanceWindow;
15729
- declare const validationRules_gen$1_UpdateClusterRequestAutoscalerConfig: typeof UpdateClusterRequestAutoscalerConfig;
15730
- declare namespace validationRules_gen$1 {
16000
+ declare const validationRules_gen$2_CreateClusterRequestAutoscalerConfig: typeof CreateClusterRequestAutoscalerConfig;
16001
+ declare const validationRules_gen$2_CreateClusterRequestOpenIDConnectConfig: typeof CreateClusterRequestOpenIDConnectConfig;
16002
+ declare const validationRules_gen$2_CreateClusterRequestPoolConfig: typeof CreateClusterRequestPoolConfig;
16003
+ declare const validationRules_gen$2_CreatePoolRequest: typeof CreatePoolRequest;
16004
+ declare const validationRules_gen$2_ListClusterTypesRequest: typeof ListClusterTypesRequest;
16005
+ declare const validationRules_gen$2_ListNodesRequest: typeof ListNodesRequest;
16006
+ declare const validationRules_gen$2_ListPoolsRequest: typeof ListPoolsRequest;
16007
+ declare const validationRules_gen$2_MaintenanceWindow: typeof MaintenanceWindow;
16008
+ declare const validationRules_gen$2_UpdateClusterRequestAutoscalerConfig: typeof UpdateClusterRequestAutoscalerConfig;
16009
+ declare namespace validationRules_gen$2 {
15731
16010
  export {
15732
16011
  CreateClusterRequest$1 as CreateClusterRequest,
15733
- validationRules_gen$1_CreateClusterRequestAutoscalerConfig as CreateClusterRequestAutoscalerConfig,
15734
- validationRules_gen$1_CreateClusterRequestOpenIDConnectConfig as CreateClusterRequestOpenIDConnectConfig,
15735
- validationRules_gen$1_CreateClusterRequestPoolConfig as CreateClusterRequestPoolConfig,
15736
- validationRules_gen$1_CreatePoolRequest as CreatePoolRequest,
15737
- validationRules_gen$1_ListClusterTypesRequest as ListClusterTypesRequest,
16012
+ validationRules_gen$2_CreateClusterRequestAutoscalerConfig as CreateClusterRequestAutoscalerConfig,
16013
+ validationRules_gen$2_CreateClusterRequestOpenIDConnectConfig as CreateClusterRequestOpenIDConnectConfig,
16014
+ validationRules_gen$2_CreateClusterRequestPoolConfig as CreateClusterRequestPoolConfig,
16015
+ validationRules_gen$2_CreatePoolRequest as CreatePoolRequest,
16016
+ validationRules_gen$2_ListClusterTypesRequest as ListClusterTypesRequest,
15738
16017
  ListClustersRequest$1 as ListClustersRequest,
15739
- validationRules_gen$1_ListNodesRequest as ListNodesRequest,
15740
- validationRules_gen$1_ListPoolsRequest as ListPoolsRequest,
15741
- validationRules_gen$1_MaintenanceWindow as MaintenanceWindow,
16018
+ validationRules_gen$2_ListNodesRequest as ListNodesRequest,
16019
+ validationRules_gen$2_ListPoolsRequest as ListPoolsRequest,
16020
+ validationRules_gen$2_MaintenanceWindow as MaintenanceWindow,
15742
16021
  UpdateClusterRequest$1 as UpdateClusterRequest,
15743
- validationRules_gen$1_UpdateClusterRequestAutoscalerConfig as UpdateClusterRequestAutoscalerConfig,
16022
+ validationRules_gen$2_UpdateClusterRequestAutoscalerConfig as UpdateClusterRequestAutoscalerConfig,
15744
16023
  };
15745
16024
  }
15746
16025
 
@@ -15863,7 +16142,7 @@ declare namespace index$e {
15863
16142
  index$e_UpdatePoolRequestUpgradePolicy as UpdatePoolRequestUpgradePolicy,
15864
16143
  index$e_UpgradeClusterRequest as UpgradeClusterRequest,
15865
16144
  index$e_UpgradePoolRequest as UpgradePoolRequest,
15866
- validationRules_gen$1 as ValidationRules,
16145
+ validationRules_gen$2 as ValidationRules,
15867
16146
  Version$2 as Version,
15868
16147
  };
15869
16148
  }
@@ -15951,7 +16230,7 @@ interface AclActionRedirect {
15951
16230
  * `git`) will replace the request's original scheme. This can be useful to
15952
16231
  * implement HTTP to HTTPS redirects. Valid placeholders that can be used in a
15953
16232
  * `location` redirect to preserve parts of the original request in the
15954
- * redirection URL are {{ host }}, {{ query }}, {{ path }} and {{ scheme }}.
16233
+ * redirection URL are {{host}}, {{query}}, {{path}} and {{scheme}}.
15955
16234
  */
15956
16235
  target: string;
15957
16236
  /**
@@ -16685,8 +16964,6 @@ type CreateLbRequest = {
16685
16964
  * value is `false` (do not assign).
16686
16965
  */
16687
16966
  assignFlexibleIp?: boolean;
16688
- /** List of IP IDs to attach to the Load Balancer. */
16689
- ipIds?: string[];
16690
16967
  /** List of tags for the Load Balancer. */
16691
16968
  tags?: string[];
16692
16969
  /**
@@ -16812,8 +17089,6 @@ type CreateIpRequest = {
16812
17089
  projectId?: string;
16813
17090
  /** Reverse DNS (domain name) for the IP address. */
16814
17091
  reverse?: string;
16815
- /** If true, creates a Flexible IP with an ipv6 address. */
16816
- isIpv6: boolean;
16817
17092
  };
16818
17093
  type GetIpRequest = {
16819
17094
  /**
@@ -17741,8 +18016,6 @@ type ZonedApiCreateLbRequest = {
17741
18016
  * value is `false` (do not assign).
17742
18017
  */
17743
18018
  assignFlexibleIp?: boolean;
17744
- /** List of IP IDs to attach to the Load Balancer. */
17745
- ipIds?: string[];
17746
18019
  /** List of tags for the Load Balancer. */
17747
18020
  tags?: string[];
17748
18021
  /**
@@ -17850,8 +18123,6 @@ type ZonedApiCreateIpRequest = {
17850
18123
  projectId?: string;
17851
18124
  /** Reverse DNS (domain name) for the IP address. */
17852
18125
  reverse?: string;
17853
- /** If true, creates a Flexible IP with an ipv6 address. */
17854
- isIpv6: boolean;
17855
18126
  };
17856
18127
  type ZonedApiGetIpRequest = {
17857
18128
  /** Zone to target. If none is passed will use default zone from the config. */
@@ -18681,7 +18952,7 @@ declare class API$d extends API$s {
18681
18952
  * @param request - The request {@link CreateIpRequest}
18682
18953
  * @returns A Promise of Ip
18683
18954
  */
18684
- createIp: (request: Readonly<CreateIpRequest>) => Promise<Ip>;
18955
+ createIp: (request?: Readonly<CreateIpRequest>) => Promise<Ip>;
18685
18956
  /**
18686
18957
  * Get an IP.
18687
18958
  *
@@ -18853,6 +19124,12 @@ declare class API$d extends API$s {
18853
19124
  */
18854
19125
  getLbStats: (request: Readonly<GetLbStatsRequest>) => Promise<LbStats>;
18855
19126
  protected pageOfListBackendStats: (request: Readonly<ListBackendStatsRequest>) => Promise<ListBackendStatsResponse>;
19127
+ /**
19128
+ * List backend server statistics.
19129
+ *
19130
+ * @param request - The request {@link ListBackendStatsRequest}
19131
+ * @returns A Promise of ListBackendStatsResponse
19132
+ */
18856
19133
  listBackendStats: (request: Readonly<ListBackendStatsRequest>) => Promise<ListBackendStatsResponse> & {
18857
19134
  all: () => Promise<BackendServerStats[]>;
18858
19135
  [Symbol.asyncIterator]: () => AsyncGenerator<BackendServerStats[], void, void>;
@@ -19127,7 +19404,7 @@ declare class ZonedAPI extends API$s {
19127
19404
  * @param request - The request {@link ZonedApiCreateIpRequest}
19128
19405
  * @returns A Promise of Ip
19129
19406
  */
19130
- createIp: (request: Readonly<ZonedApiCreateIpRequest>) => Promise<Ip>;
19407
+ createIp: (request?: Readonly<ZonedApiCreateIpRequest>) => Promise<Ip>;
19131
19408
  /**
19132
19409
  * Get an IP address. Retrieve the full details of a Load Balancer flexible IP
19133
19410
  * address.
@@ -20162,6 +20439,7 @@ declare namespace index_gen$c {
20162
20439
  type ListImagesRequestOrderBy$1 = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
20163
20440
  type ListLocalImagesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
20164
20441
  type ListVersionsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
20442
+ type LocalImageType = 'unknown_type' | 'instance_local' | 'instance_sbs';
20165
20443
  interface Category {
20166
20444
  id: string;
20167
20445
  name: string;
@@ -20222,6 +20500,8 @@ interface LocalImage {
20222
20500
  zone: Zone;
20223
20501
  /** Image label this image belongs to. */
20224
20502
  label: string;
20503
+ /** Type of this local image. */
20504
+ type: LocalImageType;
20225
20505
  }
20226
20506
  /** Version. */
20227
20507
  interface Version {
@@ -20286,6 +20566,7 @@ type ListLocalImagesRequest = {
20286
20566
  */
20287
20567
  imageLabel?: string;
20288
20568
  zone?: Zone;
20569
+ type?: LocalImageType;
20289
20570
  };
20290
20571
  type GetLocalImageRequest = {
20291
20572
  localImageId: string;
@@ -20400,6 +20681,7 @@ type index_gen$b_ListVersionsRequest = ListVersionsRequest;
20400
20681
  type index_gen$b_ListVersionsRequestOrderBy = ListVersionsRequestOrderBy;
20401
20682
  type index_gen$b_ListVersionsResponse = ListVersionsResponse;
20402
20683
  type index_gen$b_LocalImage = LocalImage;
20684
+ type index_gen$b_LocalImageType = LocalImageType;
20403
20685
  type index_gen$b_Version = Version;
20404
20686
  declare namespace index_gen$b {
20405
20687
  export {
@@ -20422,6 +20704,7 @@ declare namespace index_gen$b {
20422
20704
  index_gen$b_ListVersionsRequestOrderBy as ListVersionsRequestOrderBy,
20423
20705
  index_gen$b_ListVersionsResponse as ListVersionsResponse,
20424
20706
  index_gen$b_LocalImage as LocalImage,
20707
+ index_gen$b_LocalImageType as LocalImageType,
20425
20708
  index_gen$b_Version as Version,
20426
20709
  };
20427
20710
  }
@@ -20878,10 +21161,16 @@ interface AddInstanceSettingsResponse {
20878
21161
  /** Settings available on the Database Instance. */
20879
21162
  settings: InstanceSetting[];
20880
21163
  }
21164
+ /** Backup schedule. */
20881
21165
  interface BackupSchedule {
21166
+ /** Frequency of the backup schedule (in hours). */
20882
21167
  frequency: number;
21168
+ /** Default retention period of backups (in days). */
20883
21169
  retention: number;
21170
+ /** Defines whether the backup schedule feature is disabled. */
20884
21171
  disabled: boolean;
21172
+ /** Next run of the backup schedule (accurate to 10 minutes). */
21173
+ nextRunAt?: Date;
20885
21174
  }
20886
21175
  /** Database. */
20887
21176
  interface Database {
@@ -21688,7 +21977,7 @@ type CreateInstanceRequest = {
21688
21977
  */
21689
21978
  backupSameRegion: boolean;
21690
21979
  };
21691
- type UpdateInstanceRequest = {
21980
+ type UpdateInstanceRequest$1 = {
21692
21981
  /**
21693
21982
  * Region to target. If none is passed will use default region from the
21694
21983
  * config.
@@ -21710,6 +21999,8 @@ type UpdateInstanceRequest = {
21710
21999
  logsPolicy?: LogsPolicy;
21711
22000
  /** Store logical backups in the same region as the Database Instance. */
21712
22001
  backupSameRegion?: boolean;
22002
+ /** Defines the start time of the autobackup. */
22003
+ backupScheduleStartHour?: number;
21713
22004
  };
21714
22005
  type DeleteInstanceRequest = {
21715
22006
  /**
@@ -22378,7 +22669,7 @@ declare class API$9 extends API$s {
22378
22669
  * @param request - The request {@link UpdateInstanceRequest}
22379
22670
  * @returns A Promise of Instance
22380
22671
  */
22381
- updateInstance: (request: Readonly<UpdateInstanceRequest>) => Promise<Instance>;
22672
+ updateInstance: (request: Readonly<UpdateInstanceRequest$1>) => Promise<Instance>;
22382
22673
  /**
22383
22674
  * Delete a Database Instance. Delete a given Database Instance, specified by
22384
22675
  * the `region` and `instance_id` parameters. Deleting a Database Instance is
@@ -22831,6 +23122,19 @@ declare const READ_REPLICA_TRANSIENT_STATUSES: ReadReplicaStatus[];
22831
23122
  /** Lists transient statutes of the enum {@link SnapshotStatus}. */
22832
23123
  declare const SNAPSHOT_TRANSIENT_STATUSES: SnapshotStatus[];
22833
23124
 
23125
+ declare const UpdateInstanceRequest: {
23126
+ backupScheduleStartHour: {
23127
+ lessThanOrEqual: number;
23128
+ };
23129
+ };
23130
+
23131
+ declare const validationRules_gen$1_UpdateInstanceRequest: typeof UpdateInstanceRequest;
23132
+ declare namespace validationRules_gen$1 {
23133
+ export {
23134
+ validationRules_gen$1_UpdateInstanceRequest as UpdateInstanceRequest,
23135
+ };
23136
+ }
23137
+
22834
23138
  type index_gen$9_ACLRuleAction = ACLRuleAction;
22835
23139
  type index_gen$9_ACLRuleDirection = ACLRuleDirection;
22836
23140
  type index_gen$9_ACLRuleProtocol = ACLRuleProtocol;
@@ -22951,7 +23255,6 @@ type index_gen$9_SetPrivilegeRequest = SetPrivilegeRequest;
22951
23255
  type index_gen$9_Snapshot = Snapshot;
22952
23256
  type index_gen$9_SnapshotStatus = SnapshotStatus;
22953
23257
  type index_gen$9_UpdateDatabaseBackupRequest = UpdateDatabaseBackupRequest;
22954
- type index_gen$9_UpdateInstanceRequest = UpdateInstanceRequest;
22955
23258
  type index_gen$9_UpdateSnapshotRequest = UpdateSnapshotRequest;
22956
23259
  type index_gen$9_UpdateUserRequest = UpdateUserRequest;
22957
23260
  type index_gen$9_UpgradableVersion = UpgradableVersion;
@@ -23091,12 +23394,13 @@ declare namespace index_gen$9 {
23091
23394
  index_gen$9_Snapshot as Snapshot,
23092
23395
  index_gen$9_SnapshotStatus as SnapshotStatus,
23093
23396
  index_gen$9_UpdateDatabaseBackupRequest as UpdateDatabaseBackupRequest,
23094
- index_gen$9_UpdateInstanceRequest as UpdateInstanceRequest,
23397
+ UpdateInstanceRequest$1 as UpdateInstanceRequest,
23095
23398
  index_gen$9_UpdateSnapshotRequest as UpdateSnapshotRequest,
23096
23399
  index_gen$9_UpdateUserRequest as UpdateUserRequest,
23097
23400
  index_gen$9_UpgradableVersion as UpgradableVersion,
23098
23401
  index_gen$9_UpgradeInstanceRequest as UpgradeInstanceRequest,
23099
23402
  index_gen$9_User as User,
23403
+ validationRules_gen$1 as ValidationRules,
23100
23404
  index_gen$9_Volume as Volume,
23101
23405
  index_gen$9_VolumeType as VolumeType,
23102
23406
  };
@@ -23112,6 +23416,7 @@ type AvailableClusterSettingPropertyType = 'UNKNOWN' | 'BOOLEAN' | 'INT' | 'STRI
23112
23416
  type ClusterStatus = 'unknown' | 'ready' | 'provisioning' | 'configuring' | 'deleting' | 'error' | 'autohealing' | 'locked' | 'suspended' | 'initializing';
23113
23417
  type ListClustersRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
23114
23418
  type NodeTypeStock = 'unknown' | 'low_stock' | 'out_of_stock' | 'available';
23419
+ type PrivateNetworkProvisioningMode = 'static' | 'ipam';
23115
23420
  /** Acl rule. */
23116
23421
  interface ACLRule {
23117
23422
  /** ID of the rule. */
@@ -23336,6 +23641,8 @@ interface PrivateNetwork$2 {
23336
23641
  serviceIps: string[];
23337
23642
  /** Zone of the Private Network. */
23338
23643
  zone: Zone;
23644
+ /** How your endpoint ips are provisioned. */
23645
+ provisioningMode: PrivateNetworkProvisioningMode;
23339
23646
  }
23340
23647
  interface PublicNetwork {
23341
23648
  }
@@ -23886,6 +24193,7 @@ type index_gen$8_ListNodeTypesResponse = ListNodeTypesResponse;
23886
24193
  type index_gen$8_MigrateClusterRequest = MigrateClusterRequest;
23887
24194
  type index_gen$8_NodeType = NodeType;
23888
24195
  type index_gen$8_NodeTypeStock = NodeTypeStock;
24196
+ type index_gen$8_PrivateNetworkProvisioningMode = PrivateNetworkProvisioningMode;
23889
24197
  type index_gen$8_PublicNetwork = PublicNetwork;
23890
24198
  type index_gen$8_RenewClusterCertificateRequest = RenewClusterCertificateRequest;
23891
24199
  type index_gen$8_SetAclRulesRequest = SetAclRulesRequest;
@@ -23940,6 +24248,7 @@ declare namespace index_gen$8 {
23940
24248
  index_gen$8_NodeType as NodeType,
23941
24249
  index_gen$8_NodeTypeStock as NodeTypeStock,
23942
24250
  PrivateNetwork$2 as PrivateNetwork,
24251
+ index_gen$8_PrivateNetworkProvisioningMode as PrivateNetworkProvisioningMode,
23943
24252
  index_gen$8_PublicNetwork as PublicNetwork,
23944
24253
  index_gen$8_RenewClusterCertificateRequest as RenewClusterCertificateRequest,
23945
24254
  index_gen$8_SetAclRulesRequest as SetAclRulesRequest,
@@ -24012,7 +24321,7 @@ interface ListNamespacesResponse {
24012
24321
  totalCount: number;
24013
24322
  }
24014
24323
  /** List tags response. */
24015
- interface ListTagsResponse {
24324
+ interface ListTagsResponse$1 {
24016
24325
  /** Paginated list of tags that match the selected filters. */
24017
24326
  tags: Tag[];
24018
24327
  /** Total number of tags that match the selected filters. */
@@ -24217,7 +24526,7 @@ type DeleteImageRequest = {
24217
24526
  /** UUID of the image. */
24218
24527
  imageId: string;
24219
24528
  };
24220
- type ListTagsRequest = {
24529
+ type ListTagsRequest$1 = {
24221
24530
  /**
24222
24531
  * Region to target. If none is passed will use default region from the
24223
24532
  * config.
@@ -24378,7 +24687,7 @@ declare class API$7 extends API$s {
24378
24687
  * @returns A Promise of Image
24379
24688
  */
24380
24689
  deleteImage: (request: Readonly<DeleteImageRequest>) => Promise<Image>;
24381
- protected pageOfListTags: (request: Readonly<ListTagsRequest>) => Promise<ListTagsResponse>;
24690
+ protected pageOfListTags: (request: Readonly<ListTagsRequest$1>) => Promise<ListTagsResponse$1>;
24382
24691
  /**
24383
24692
  * List tags. List all tags for a given image, specified by region. By
24384
24693
  * default, the tags listed are ordered by creation date in ascending order.
@@ -24388,7 +24697,7 @@ declare class API$7 extends API$s {
24388
24697
  * @param request - The request {@link ListTagsRequest}
24389
24698
  * @returns A Promise of ListTagsResponse
24390
24699
  */
24391
- listTags: (request: Readonly<ListTagsRequest>) => Promise<ListTagsResponse> & {
24700
+ listTags: (request: Readonly<ListTagsRequest$1>) => Promise<ListTagsResponse$1> & {
24392
24701
  all: () => Promise<Tag[]>;
24393
24702
  [Symbol.asyncIterator]: () => AsyncGenerator<Tag[], void, void>;
24394
24703
  };
@@ -24443,9 +24752,7 @@ type index_gen$7_ListImagesResponse = ListImagesResponse;
24443
24752
  type index_gen$7_ListNamespacesRequest = ListNamespacesRequest;
24444
24753
  type index_gen$7_ListNamespacesRequestOrderBy = ListNamespacesRequestOrderBy;
24445
24754
  type index_gen$7_ListNamespacesResponse = ListNamespacesResponse;
24446
- type index_gen$7_ListTagsRequest = ListTagsRequest;
24447
24755
  type index_gen$7_ListTagsRequestOrderBy = ListTagsRequestOrderBy;
24448
- type index_gen$7_ListTagsResponse = ListTagsResponse;
24449
24756
  declare const index_gen$7_NAMESPACE_TRANSIENT_STATUSES: typeof NAMESPACE_TRANSIENT_STATUSES;
24450
24757
  type index_gen$7_Namespace = Namespace;
24451
24758
  type index_gen$7_NamespaceStatus = NamespaceStatus;
@@ -24474,9 +24781,9 @@ declare namespace index_gen$7 {
24474
24781
  index_gen$7_ListNamespacesRequest as ListNamespacesRequest,
24475
24782
  index_gen$7_ListNamespacesRequestOrderBy as ListNamespacesRequestOrderBy,
24476
24783
  index_gen$7_ListNamespacesResponse as ListNamespacesResponse,
24477
- index_gen$7_ListTagsRequest as ListTagsRequest,
24784
+ ListTagsRequest$1 as ListTagsRequest,
24478
24785
  index_gen$7_ListTagsRequestOrderBy as ListTagsRequestOrderBy,
24479
- index_gen$7_ListTagsResponse as ListTagsResponse,
24786
+ ListTagsResponse$1 as ListTagsResponse,
24480
24787
  index_gen$7_NAMESPACE_TRANSIENT_STATUSES as NAMESPACE_TRANSIENT_STATUSES,
24481
24788
  index_gen$7_Namespace as Namespace,
24482
24789
  index_gen$7_NamespaceStatus as NamespaceStatus,
@@ -24497,6 +24804,7 @@ declare namespace index$6 {
24497
24804
  type ListSecretsRequestOrderBy = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
24498
24805
  type Product = 'unknown';
24499
24806
  type SecretStatus = 'ready' | 'locked';
24807
+ type SecretType = 'unknown_secret_type' | 'opaque' | 'network_edge_certificate';
24500
24808
  type SecretVersionStatus = 'unknown' | 'enabled' | 'disabled' | 'destroyed';
24501
24809
  /** Access secret version response. */
24502
24810
  interface AccessSecretVersionResponse {
@@ -24529,6 +24837,13 @@ interface ListSecretsResponse {
24529
24837
  /** Count of all secrets matching the requested criteria. */
24530
24838
  totalCount: number;
24531
24839
  }
24840
+ /** List tags response. */
24841
+ interface ListTagsResponse {
24842
+ /** List of tags. */
24843
+ tags: string[];
24844
+ /** Count of all tags matching the requested criteria. */
24845
+ totalCount: number;
24846
+ }
24532
24847
  /** Password generation params. */
24533
24848
  interface PasswordGenerationParams {
24534
24849
  /** Length of the password to generate (between 1 and 1024). */
@@ -24565,8 +24880,10 @@ interface Secret {
24565
24880
  versionCount: number;
24566
24881
  /** Updated description of the secret. */
24567
24882
  description?: string;
24568
- /** True for secrets that are managed by another product. */
24883
+ /** Returns `true` for secrets that are managed by another product. */
24569
24884
  isManaged: boolean;
24885
+ /** Type of the secret. See `Secret.Type` enum for description of values. */
24886
+ type: SecretType;
24570
24887
  /** Region of the secret. */
24571
24888
  region: Region;
24572
24889
  }
@@ -24609,6 +24926,11 @@ type CreateSecretRequest = {
24609
24926
  tags?: string[];
24610
24927
  /** Description of the secret. */
24611
24928
  description?: string;
24929
+ /**
24930
+ * Type of the secret. (Optional.) See `Secret.Type` enum for description of
24931
+ * values. If not specified, the type is `Opaque`.
24932
+ */
24933
+ type?: SecretType;
24612
24934
  };
24613
24935
  type GetSecretRequest = {
24614
24936
  /**
@@ -24685,12 +25007,9 @@ type AddSecretOwnerRequest = {
24685
25007
  region?: Region;
24686
25008
  /** ID of the secret. */
24687
25009
  secretId: string;
24688
- /**
24689
- * @deprecated (Deprecated: use product field) ID of the product to add (see
24690
- * product enum).
24691
- */
25010
+ /** @deprecated (Deprecated: use `product` field) Name of the product to add. */
24692
25011
  productName?: string;
24693
- /** ID of the product to add (see product enum). */
25012
+ /** ID of the product to add. See `Product` enum for description of values. */
24694
25013
  product?: Product;
24695
25014
  };
24696
25015
  type CreateSecretVersionRequest = {
@@ -24921,6 +25240,20 @@ type DestroySecretVersionRequest = {
24921
25240
  */
24922
25241
  revision: string;
24923
25242
  };
25243
+ type ListTagsRequest = {
25244
+ /**
25245
+ * Region to target. If none is passed will use default region from the
25246
+ * config.
25247
+ */
25248
+ region?: Region;
25249
+ /**
25250
+ * ID of the Project to target. (Optional.) If not specified, Secret Manager
25251
+ * will look for tags in all Projects.
25252
+ */
25253
+ projectId?: string;
25254
+ page?: number;
25255
+ pageSize?: number;
25256
+ };
24924
25257
 
24925
25258
  /**
24926
25259
  * Secret Manager API.
@@ -24939,16 +25272,16 @@ declare class API$6 extends API$s {
24939
25272
  */
24940
25273
  createSecret: (request: Readonly<CreateSecretRequest>) => Promise<Secret>;
24941
25274
  /**
24942
- * Get metadata using the secret's name. Retrieve the metadata of a secret
24943
- * specified by the `region` and the `secret_name` parameters.
25275
+ * Get metadata using the secret's ID. Retrieve the metadata of a secret
25276
+ * specified by the `region` and `secret_id` parameters.
24944
25277
  *
24945
25278
  * @param request - The request {@link GetSecretRequest}
24946
25279
  * @returns A Promise of Secret
24947
25280
  */
24948
25281
  getSecret: (request: Readonly<GetSecretRequest>) => Promise<Secret>;
24949
25282
  /**
24950
- * Get metadata using the secret's ID. Retrieve the metadata of a secret
24951
- * specified by the `region`, `secret_id` and `project_id` parameters.
25283
+ * Get metadata using the secret's name. Retrieve the metadata of a secret
25284
+ * specified by the `region` and `secret_name` parameters.
24952
25285
  *
24953
25286
  * @param request - The request {@link GetSecretByNameRequest}
24954
25287
  * @returns A Promise of Secret
@@ -25100,6 +25433,17 @@ declare class API$6 extends API$s {
25100
25433
  * @returns A Promise of SecretVersion
25101
25434
  */
25102
25435
  destroySecretVersion: (request: Readonly<DestroySecretVersionRequest>) => Promise<SecretVersion>;
25436
+ protected pageOfListTags: (request?: Readonly<ListTagsRequest>) => Promise<ListTagsResponse>;
25437
+ /**
25438
+ * List tags. List all tags associated with secrets within a given Project.
25439
+ *
25440
+ * @param request - The request {@link ListTagsRequest}
25441
+ * @returns A Promise of ListTagsResponse
25442
+ */
25443
+ listTags: (request?: Readonly<ListTagsRequest>) => Promise<ListTagsResponse> & {
25444
+ all: () => Promise<string[]>;
25445
+ [Symbol.asyncIterator]: () => AsyncGenerator<string[], void, void>;
25446
+ };
25103
25447
  }
25104
25448
 
25105
25449
  type index_gen$6_AccessSecretVersionByNameRequest = AccessSecretVersionByNameRequest;
@@ -25123,10 +25467,13 @@ type index_gen$6_ListSecretVersionsResponse = ListSecretVersionsResponse;
25123
25467
  type index_gen$6_ListSecretsRequest = ListSecretsRequest;
25124
25468
  type index_gen$6_ListSecretsRequestOrderBy = ListSecretsRequestOrderBy;
25125
25469
  type index_gen$6_ListSecretsResponse = ListSecretsResponse;
25470
+ type index_gen$6_ListTagsRequest = ListTagsRequest;
25471
+ type index_gen$6_ListTagsResponse = ListTagsResponse;
25126
25472
  type index_gen$6_PasswordGenerationParams = PasswordGenerationParams;
25127
25473
  type index_gen$6_Product = Product;
25128
25474
  type index_gen$6_Secret = Secret;
25129
25475
  type index_gen$6_SecretStatus = SecretStatus;
25476
+ type index_gen$6_SecretType = SecretType;
25130
25477
  type index_gen$6_SecretVersion = SecretVersion;
25131
25478
  type index_gen$6_SecretVersionStatus = SecretVersionStatus;
25132
25479
  type index_gen$6_UpdateSecretRequest = UpdateSecretRequest;
@@ -25155,10 +25502,13 @@ declare namespace index_gen$6 {
25155
25502
  index_gen$6_ListSecretsRequest as ListSecretsRequest,
25156
25503
  index_gen$6_ListSecretsRequestOrderBy as ListSecretsRequestOrderBy,
25157
25504
  index_gen$6_ListSecretsResponse as ListSecretsResponse,
25505
+ index_gen$6_ListTagsRequest as ListTagsRequest,
25506
+ index_gen$6_ListTagsResponse as ListTagsResponse,
25158
25507
  index_gen$6_PasswordGenerationParams as PasswordGenerationParams,
25159
25508
  index_gen$6_Product as Product,
25160
25509
  index_gen$6_Secret as Secret,
25161
25510
  index_gen$6_SecretStatus as SecretStatus,
25511
+ index_gen$6_SecretType as SecretType,
25162
25512
  index_gen$6_SecretVersion as SecretVersion,
25163
25513
  index_gen$6_SecretVersionStatus as SecretVersionStatus,
25164
25514
  index_gen$6_UpdateSecretRequest as UpdateSecretRequest,
@@ -26147,6 +26497,8 @@ interface PrivateNetwork {
26147
26497
  subnets: Subnet[];
26148
26498
  /** VPC the Private Network belongs to. */
26149
26499
  vpcId: string;
26500
+ /** Defines whether managed DHCP is enabled for this Private Network. */
26501
+ dhcpEnabled: boolean;
26150
26502
  }
26151
26503
  interface SetSubnetsResponse {
26152
26504
  subnets: string[];
@@ -26311,6 +26663,11 @@ type ListPrivateNetworksRequest = {
26311
26663
  * returned.
26312
26664
  */
26313
26665
  vpcId?: string;
26666
+ /**
26667
+ * DHCP status to filter for. When true, only Private Networks with managed
26668
+ * DHCP enabled will be returned.
26669
+ */
26670
+ dhcpEnabled?: boolean;
26314
26671
  };
26315
26672
  type CreatePrivateNetworkRequest = {
26316
26673
  /**
@@ -26385,6 +26742,15 @@ type MigrateZonalPrivateNetworksRequest = {
26385
26742
  /** IDs of the Private Networks to migrate. */
26386
26743
  privateNetworkIds?: string[];
26387
26744
  };
26745
+ type EnableDHCPRequest = {
26746
+ /**
26747
+ * Region to target. If none is passed will use default region from the
26748
+ * config.
26749
+ */
26750
+ region?: Region;
26751
+ /** Private Network ID. */
26752
+ privateNetworkId: string;
26753
+ };
26388
26754
  type SetSubnetsRequest = {
26389
26755
  /**
26390
26756
  * Region to target. If none is passed will use default region from the
@@ -26517,6 +26883,15 @@ declare class API$2 extends API$s {
26517
26883
  * @param request - The request {@link MigrateZonalPrivateNetworksRequest}
26518
26884
  */
26519
26885
  migrateZonalPrivateNetworks: (request?: Readonly<MigrateZonalPrivateNetworksRequest>) => Promise<void>;
26886
+ /**
26887
+ * Enable DHCP on a Private Network. Enable DHCP managed on an existing
26888
+ * Private Network. Note that you will not be able to deactivate it
26889
+ * afterwards.
26890
+ *
26891
+ * @param request - The request {@link EnableDHCPRequest}
26892
+ * @returns A Promise of PrivateNetwork
26893
+ */
26894
+ enableDHCP: (request: Readonly<EnableDHCPRequest>) => Promise<PrivateNetwork>;
26520
26895
  /**
26521
26896
  * Set the subnets of a Private Network. Set subnets for an existing Private
26522
26897
  * Network. Note that the method is PUT and not PATCH. Any existing subnets
@@ -26552,6 +26927,7 @@ type index_gen$2_DeletePrivateNetworkRequest = DeletePrivateNetworkRequest;
26552
26927
  type index_gen$2_DeleteSubnetsRequest = DeleteSubnetsRequest;
26553
26928
  type index_gen$2_DeleteSubnetsResponse = DeleteSubnetsResponse;
26554
26929
  type index_gen$2_DeleteVPCRequest = DeleteVPCRequest;
26930
+ type index_gen$2_EnableDHCPRequest = EnableDHCPRequest;
26555
26931
  type index_gen$2_GetPrivateNetworkRequest = GetPrivateNetworkRequest;
26556
26932
  type index_gen$2_GetVPCRequest = GetVPCRequest;
26557
26933
  type index_gen$2_ListPrivateNetworksRequest = ListPrivateNetworksRequest;
@@ -26579,6 +26955,7 @@ declare namespace index_gen$2 {
26579
26955
  index_gen$2_DeleteSubnetsRequest as DeleteSubnetsRequest,
26580
26956
  index_gen$2_DeleteSubnetsResponse as DeleteSubnetsResponse,
26581
26957
  index_gen$2_DeleteVPCRequest as DeleteVPCRequest,
26958
+ index_gen$2_EnableDHCPRequest as EnableDHCPRequest,
26582
26959
  index_gen$2_GetPrivateNetworkRequest as GetPrivateNetworkRequest,
26583
26960
  index_gen$2_GetVPCRequest as GetVPCRequest,
26584
26961
  index_gen$2_ListPrivateNetworksRequest as ListPrivateNetworksRequest,
@@ -27997,7 +28374,7 @@ type DnsRecordStatus = 'unknown_status' | 'valid' | 'invalid';
27997
28374
  type DnsRecordType = 'unknown_type' | 'a' | 'cname' | 'mx' | 'txt' | 'ns' | 'aaaa';
27998
28375
  type DnsRecordsStatus = 'unknown' | 'valid' | 'invalid';
27999
28376
  type HostingDnsStatus = 'unknown_dns_status' | 'valid' | 'invalid';
28000
- type HostingStatus = 'unknown_status' | 'delivering' | 'ready' | 'deleting' | 'error' | 'locked';
28377
+ type HostingStatus = 'unknown_status' | 'delivering' | 'ready' | 'deleting' | 'error' | 'locked' | 'migrating';
28001
28378
  type ListHostingsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
28002
28379
  type ListOffersRequestOrderBy = 'price_asc';
28003
28380
  type NameserverStatus = 'unknown_status' | 'valid' | 'invalid';