@scaleway/sdk 1.16.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
 
@@ -10414,21 +10633,21 @@ interface VolumeServer {
10414
10633
  /** Volume server template. */
10415
10634
  interface VolumeServerTemplate {
10416
10635
  /** UUID of the volume. */
10417
- id: string;
10636
+ id?: string;
10418
10637
  /** Force the Instance to boot on this volume. */
10419
- boot: boolean;
10638
+ boot?: boolean;
10420
10639
  /** Name of the volume. */
10421
- name: string;
10640
+ name?: string;
10422
10641
  /** Disk size of the volume, must be a multiple of 512. */
10423
- size: number;
10642
+ size?: number;
10424
10643
  /** Type of the volume. */
10425
10644
  volumeType: VolumeVolumeType;
10426
10645
  /** ID of the snapshot on which this volume will be based. */
10427
- baseSnapshot: string;
10646
+ baseSnapshot?: string;
10428
10647
  /** Organization ID of the volume. */
10429
- organization: string;
10648
+ organization?: string;
10430
10649
  /** Project ID of the volume. */
10431
- project: string;
10650
+ project?: string;
10432
10651
  }
10433
10652
  interface VolumeSummary {
10434
10653
  id: string;
@@ -11149,6 +11368,8 @@ type CreatePrivateNICRequest = {
11149
11368
  privateNetworkId: string;
11150
11369
  /** Private NIC tags. */
11151
11370
  tags?: string[];
11371
+ /** Ip_ids defined from IPAM. */
11372
+ ipIds?: string[];
11152
11373
  };
11153
11374
  type GetPrivateNICRequest = {
11154
11375
  /** Zone to target. If none is passed will use default zone from the config. */
@@ -13972,6 +14193,7 @@ declare namespace index$g {
13972
14193
 
13973
14194
  type ListPinsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
13974
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';
13975
14197
  type PinStatus = 'unknown_status' | 'queued' | 'pinning' | 'failed' | 'pinned';
13976
14198
  interface ListPinsResponse {
13977
14199
  totalCount: number;
@@ -13999,11 +14221,11 @@ interface PinCIDMeta {
13999
14221
  id?: string;
14000
14222
  }
14001
14223
  interface PinInfo {
14002
- statusDetails?: string;
14003
14224
  id?: string;
14004
14225
  url?: string;
14005
14226
  size?: number;
14006
14227
  progress?: number;
14228
+ statusDetails: PinDetails;
14007
14229
  }
14008
14230
  interface PinOptions {
14009
14231
  requiredZones: string[];
@@ -14273,6 +14495,7 @@ declare const index_gen$d_PIN_TRANSIENT_STATUSES: typeof PIN_TRANSIENT_STATUSES;
14273
14495
  type index_gen$d_Pin = Pin;
14274
14496
  type index_gen$d_PinCID = PinCID;
14275
14497
  type index_gen$d_PinCIDMeta = PinCIDMeta;
14498
+ type index_gen$d_PinDetails = PinDetails;
14276
14499
  type index_gen$d_PinInfo = PinInfo;
14277
14500
  type index_gen$d_PinOptions = PinOptions;
14278
14501
  type index_gen$d_PinStatus = PinStatus;
@@ -14299,6 +14522,7 @@ declare namespace index_gen$d {
14299
14522
  index_gen$d_Pin as Pin,
14300
14523
  index_gen$d_PinCID as PinCID,
14301
14524
  index_gen$d_PinCIDMeta as PinCIDMeta,
14525
+ index_gen$d_PinDetails as PinDetails,
14302
14526
  index_gen$d_PinInfo as PinInfo,
14303
14527
  index_gen$d_PinOptions as PinOptions,
14304
14528
  index_gen$d_PinStatus as PinStatus,
@@ -15773,29 +15997,29 @@ declare const UpdateClusterRequestAutoscalerConfig: {
15773
15997
  };
15774
15998
  };
15775
15999
 
15776
- declare const validationRules_gen$1_CreateClusterRequestAutoscalerConfig: typeof CreateClusterRequestAutoscalerConfig;
15777
- declare const validationRules_gen$1_CreateClusterRequestOpenIDConnectConfig: typeof CreateClusterRequestOpenIDConnectConfig;
15778
- declare const validationRules_gen$1_CreateClusterRequestPoolConfig: typeof CreateClusterRequestPoolConfig;
15779
- declare const validationRules_gen$1_CreatePoolRequest: typeof CreatePoolRequest;
15780
- declare const validationRules_gen$1_ListClusterTypesRequest: typeof ListClusterTypesRequest;
15781
- declare const validationRules_gen$1_ListNodesRequest: typeof ListNodesRequest;
15782
- declare const validationRules_gen$1_ListPoolsRequest: typeof ListPoolsRequest;
15783
- declare const validationRules_gen$1_MaintenanceWindow: typeof MaintenanceWindow;
15784
- declare const validationRules_gen$1_UpdateClusterRequestAutoscalerConfig: typeof UpdateClusterRequestAutoscalerConfig;
15785
- 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 {
15786
16010
  export {
15787
16011
  CreateClusterRequest$1 as CreateClusterRequest,
15788
- validationRules_gen$1_CreateClusterRequestAutoscalerConfig as CreateClusterRequestAutoscalerConfig,
15789
- validationRules_gen$1_CreateClusterRequestOpenIDConnectConfig as CreateClusterRequestOpenIDConnectConfig,
15790
- validationRules_gen$1_CreateClusterRequestPoolConfig as CreateClusterRequestPoolConfig,
15791
- validationRules_gen$1_CreatePoolRequest as CreatePoolRequest,
15792
- 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,
15793
16017
  ListClustersRequest$1 as ListClustersRequest,
15794
- validationRules_gen$1_ListNodesRequest as ListNodesRequest,
15795
- validationRules_gen$1_ListPoolsRequest as ListPoolsRequest,
15796
- 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,
15797
16021
  UpdateClusterRequest$1 as UpdateClusterRequest,
15798
- validationRules_gen$1_UpdateClusterRequestAutoscalerConfig as UpdateClusterRequestAutoscalerConfig,
16022
+ validationRules_gen$2_UpdateClusterRequestAutoscalerConfig as UpdateClusterRequestAutoscalerConfig,
15799
16023
  };
15800
16024
  }
15801
16025
 
@@ -15918,7 +16142,7 @@ declare namespace index$e {
15918
16142
  index$e_UpdatePoolRequestUpgradePolicy as UpdatePoolRequestUpgradePolicy,
15919
16143
  index$e_UpgradeClusterRequest as UpgradeClusterRequest,
15920
16144
  index$e_UpgradePoolRequest as UpgradePoolRequest,
15921
- validationRules_gen$1 as ValidationRules,
16145
+ validationRules_gen$2 as ValidationRules,
15922
16146
  Version$2 as Version,
15923
16147
  };
15924
16148
  }
@@ -16006,7 +16230,7 @@ interface AclActionRedirect {
16006
16230
  * `git`) will replace the request's original scheme. This can be useful to
16007
16231
  * implement HTTP to HTTPS redirects. Valid placeholders that can be used in a
16008
16232
  * `location` redirect to preserve parts of the original request in the
16009
- * redirection URL are {{ host }}, {{ query }}, {{ path }} and {{ scheme }}.
16233
+ * redirection URL are {{host}}, {{query}}, {{path}} and {{scheme}}.
16010
16234
  */
16011
16235
  target: string;
16012
16236
  /**
@@ -16740,8 +16964,6 @@ type CreateLbRequest = {
16740
16964
  * value is `false` (do not assign).
16741
16965
  */
16742
16966
  assignFlexibleIp?: boolean;
16743
- /** List of IP IDs to attach to the Load Balancer. */
16744
- ipIds?: string[];
16745
16967
  /** List of tags for the Load Balancer. */
16746
16968
  tags?: string[];
16747
16969
  /**
@@ -16867,8 +17089,6 @@ type CreateIpRequest = {
16867
17089
  projectId?: string;
16868
17090
  /** Reverse DNS (domain name) for the IP address. */
16869
17091
  reverse?: string;
16870
- /** If true, creates a Flexible IP with an ipv6 address. */
16871
- isIpv6: boolean;
16872
17092
  };
16873
17093
  type GetIpRequest = {
16874
17094
  /**
@@ -17796,8 +18016,6 @@ type ZonedApiCreateLbRequest = {
17796
18016
  * value is `false` (do not assign).
17797
18017
  */
17798
18018
  assignFlexibleIp?: boolean;
17799
- /** List of IP IDs to attach to the Load Balancer. */
17800
- ipIds?: string[];
17801
18019
  /** List of tags for the Load Balancer. */
17802
18020
  tags?: string[];
17803
18021
  /**
@@ -17905,8 +18123,6 @@ type ZonedApiCreateIpRequest = {
17905
18123
  projectId?: string;
17906
18124
  /** Reverse DNS (domain name) for the IP address. */
17907
18125
  reverse?: string;
17908
- /** If true, creates a Flexible IP with an ipv6 address. */
17909
- isIpv6: boolean;
17910
18126
  };
17911
18127
  type ZonedApiGetIpRequest = {
17912
18128
  /** Zone to target. If none is passed will use default zone from the config. */
@@ -18736,7 +18952,7 @@ declare class API$d extends API$s {
18736
18952
  * @param request - The request {@link CreateIpRequest}
18737
18953
  * @returns A Promise of Ip
18738
18954
  */
18739
- createIp: (request: Readonly<CreateIpRequest>) => Promise<Ip>;
18955
+ createIp: (request?: Readonly<CreateIpRequest>) => Promise<Ip>;
18740
18956
  /**
18741
18957
  * Get an IP.
18742
18958
  *
@@ -18908,6 +19124,12 @@ declare class API$d extends API$s {
18908
19124
  */
18909
19125
  getLbStats: (request: Readonly<GetLbStatsRequest>) => Promise<LbStats>;
18910
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
+ */
18911
19133
  listBackendStats: (request: Readonly<ListBackendStatsRequest>) => Promise<ListBackendStatsResponse> & {
18912
19134
  all: () => Promise<BackendServerStats[]>;
18913
19135
  [Symbol.asyncIterator]: () => AsyncGenerator<BackendServerStats[], void, void>;
@@ -19182,7 +19404,7 @@ declare class ZonedAPI extends API$s {
19182
19404
  * @param request - The request {@link ZonedApiCreateIpRequest}
19183
19405
  * @returns A Promise of Ip
19184
19406
  */
19185
- createIp: (request: Readonly<ZonedApiCreateIpRequest>) => Promise<Ip>;
19407
+ createIp: (request?: Readonly<ZonedApiCreateIpRequest>) => Promise<Ip>;
19186
19408
  /**
19187
19409
  * Get an IP address. Retrieve the full details of a Load Balancer flexible IP
19188
19410
  * address.
@@ -20217,6 +20439,7 @@ declare namespace index_gen$c {
20217
20439
  type ListImagesRequestOrderBy$1 = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
20218
20440
  type ListLocalImagesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
20219
20441
  type ListVersionsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
20442
+ type LocalImageType = 'unknown_type' | 'instance_local' | 'instance_sbs';
20220
20443
  interface Category {
20221
20444
  id: string;
20222
20445
  name: string;
@@ -20277,6 +20500,8 @@ interface LocalImage {
20277
20500
  zone: Zone;
20278
20501
  /** Image label this image belongs to. */
20279
20502
  label: string;
20503
+ /** Type of this local image. */
20504
+ type: LocalImageType;
20280
20505
  }
20281
20506
  /** Version. */
20282
20507
  interface Version {
@@ -20341,6 +20566,7 @@ type ListLocalImagesRequest = {
20341
20566
  */
20342
20567
  imageLabel?: string;
20343
20568
  zone?: Zone;
20569
+ type?: LocalImageType;
20344
20570
  };
20345
20571
  type GetLocalImageRequest = {
20346
20572
  localImageId: string;
@@ -20455,6 +20681,7 @@ type index_gen$b_ListVersionsRequest = ListVersionsRequest;
20455
20681
  type index_gen$b_ListVersionsRequestOrderBy = ListVersionsRequestOrderBy;
20456
20682
  type index_gen$b_ListVersionsResponse = ListVersionsResponse;
20457
20683
  type index_gen$b_LocalImage = LocalImage;
20684
+ type index_gen$b_LocalImageType = LocalImageType;
20458
20685
  type index_gen$b_Version = Version;
20459
20686
  declare namespace index_gen$b {
20460
20687
  export {
@@ -20477,6 +20704,7 @@ declare namespace index_gen$b {
20477
20704
  index_gen$b_ListVersionsRequestOrderBy as ListVersionsRequestOrderBy,
20478
20705
  index_gen$b_ListVersionsResponse as ListVersionsResponse,
20479
20706
  index_gen$b_LocalImage as LocalImage,
20707
+ index_gen$b_LocalImageType as LocalImageType,
20480
20708
  index_gen$b_Version as Version,
20481
20709
  };
20482
20710
  }
@@ -20933,10 +21161,16 @@ interface AddInstanceSettingsResponse {
20933
21161
  /** Settings available on the Database Instance. */
20934
21162
  settings: InstanceSetting[];
20935
21163
  }
21164
+ /** Backup schedule. */
20936
21165
  interface BackupSchedule {
21166
+ /** Frequency of the backup schedule (in hours). */
20937
21167
  frequency: number;
21168
+ /** Default retention period of backups (in days). */
20938
21169
  retention: number;
21170
+ /** Defines whether the backup schedule feature is disabled. */
20939
21171
  disabled: boolean;
21172
+ /** Next run of the backup schedule (accurate to 10 minutes). */
21173
+ nextRunAt?: Date;
20940
21174
  }
20941
21175
  /** Database. */
20942
21176
  interface Database {
@@ -21743,7 +21977,7 @@ type CreateInstanceRequest = {
21743
21977
  */
21744
21978
  backupSameRegion: boolean;
21745
21979
  };
21746
- type UpdateInstanceRequest = {
21980
+ type UpdateInstanceRequest$1 = {
21747
21981
  /**
21748
21982
  * Region to target. If none is passed will use default region from the
21749
21983
  * config.
@@ -21765,6 +21999,8 @@ type UpdateInstanceRequest = {
21765
21999
  logsPolicy?: LogsPolicy;
21766
22000
  /** Store logical backups in the same region as the Database Instance. */
21767
22001
  backupSameRegion?: boolean;
22002
+ /** Defines the start time of the autobackup. */
22003
+ backupScheduleStartHour?: number;
21768
22004
  };
21769
22005
  type DeleteInstanceRequest = {
21770
22006
  /**
@@ -22433,7 +22669,7 @@ declare class API$9 extends API$s {
22433
22669
  * @param request - The request {@link UpdateInstanceRequest}
22434
22670
  * @returns A Promise of Instance
22435
22671
  */
22436
- updateInstance: (request: Readonly<UpdateInstanceRequest>) => Promise<Instance>;
22672
+ updateInstance: (request: Readonly<UpdateInstanceRequest$1>) => Promise<Instance>;
22437
22673
  /**
22438
22674
  * Delete a Database Instance. Delete a given Database Instance, specified by
22439
22675
  * the `region` and `instance_id` parameters. Deleting a Database Instance is
@@ -22886,6 +23122,19 @@ declare const READ_REPLICA_TRANSIENT_STATUSES: ReadReplicaStatus[];
22886
23122
  /** Lists transient statutes of the enum {@link SnapshotStatus}. */
22887
23123
  declare const SNAPSHOT_TRANSIENT_STATUSES: SnapshotStatus[];
22888
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
+
22889
23138
  type index_gen$9_ACLRuleAction = ACLRuleAction;
22890
23139
  type index_gen$9_ACLRuleDirection = ACLRuleDirection;
22891
23140
  type index_gen$9_ACLRuleProtocol = ACLRuleProtocol;
@@ -23006,7 +23255,6 @@ type index_gen$9_SetPrivilegeRequest = SetPrivilegeRequest;
23006
23255
  type index_gen$9_Snapshot = Snapshot;
23007
23256
  type index_gen$9_SnapshotStatus = SnapshotStatus;
23008
23257
  type index_gen$9_UpdateDatabaseBackupRequest = UpdateDatabaseBackupRequest;
23009
- type index_gen$9_UpdateInstanceRequest = UpdateInstanceRequest;
23010
23258
  type index_gen$9_UpdateSnapshotRequest = UpdateSnapshotRequest;
23011
23259
  type index_gen$9_UpdateUserRequest = UpdateUserRequest;
23012
23260
  type index_gen$9_UpgradableVersion = UpgradableVersion;
@@ -23146,12 +23394,13 @@ declare namespace index_gen$9 {
23146
23394
  index_gen$9_Snapshot as Snapshot,
23147
23395
  index_gen$9_SnapshotStatus as SnapshotStatus,
23148
23396
  index_gen$9_UpdateDatabaseBackupRequest as UpdateDatabaseBackupRequest,
23149
- index_gen$9_UpdateInstanceRequest as UpdateInstanceRequest,
23397
+ UpdateInstanceRequest$1 as UpdateInstanceRequest,
23150
23398
  index_gen$9_UpdateSnapshotRequest as UpdateSnapshotRequest,
23151
23399
  index_gen$9_UpdateUserRequest as UpdateUserRequest,
23152
23400
  index_gen$9_UpgradableVersion as UpgradableVersion,
23153
23401
  index_gen$9_UpgradeInstanceRequest as UpgradeInstanceRequest,
23154
23402
  index_gen$9_User as User,
23403
+ validationRules_gen$1 as ValidationRules,
23155
23404
  index_gen$9_Volume as Volume,
23156
23405
  index_gen$9_VolumeType as VolumeType,
23157
23406
  };
@@ -24555,6 +24804,7 @@ declare namespace index$6 {
24555
24804
  type ListSecretsRequestOrderBy = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
24556
24805
  type Product = 'unknown';
24557
24806
  type SecretStatus = 'ready' | 'locked';
24807
+ type SecretType = 'unknown_secret_type' | 'opaque' | 'network_edge_certificate';
24558
24808
  type SecretVersionStatus = 'unknown' | 'enabled' | 'disabled' | 'destroyed';
24559
24809
  /** Access secret version response. */
24560
24810
  interface AccessSecretVersionResponse {
@@ -24630,8 +24880,10 @@ interface Secret {
24630
24880
  versionCount: number;
24631
24881
  /** Updated description of the secret. */
24632
24882
  description?: string;
24633
- /** True for secrets that are managed by another product. */
24883
+ /** Returns `true` for secrets that are managed by another product. */
24634
24884
  isManaged: boolean;
24885
+ /** Type of the secret. See `Secret.Type` enum for description of values. */
24886
+ type: SecretType;
24635
24887
  /** Region of the secret. */
24636
24888
  region: Region;
24637
24889
  }
@@ -24674,6 +24926,11 @@ type CreateSecretRequest = {
24674
24926
  tags?: string[];
24675
24927
  /** Description of the secret. */
24676
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;
24677
24934
  };
24678
24935
  type GetSecretRequest = {
24679
24936
  /**
@@ -24750,12 +25007,9 @@ type AddSecretOwnerRequest = {
24750
25007
  region?: Region;
24751
25008
  /** ID of the secret. */
24752
25009
  secretId: string;
24753
- /**
24754
- * @deprecated (Deprecated: use product field) ID of the product to add (see
24755
- * product enum).
24756
- */
25010
+ /** @deprecated (Deprecated: use `product` field) Name of the product to add. */
24757
25011
  productName?: string;
24758
- /** ID of the product to add (see product enum). */
25012
+ /** ID of the product to add. See `Product` enum for description of values. */
24759
25013
  product?: Product;
24760
25014
  };
24761
25015
  type CreateSecretVersionRequest = {
@@ -25181,7 +25435,7 @@ declare class API$6 extends API$s {
25181
25435
  destroySecretVersion: (request: Readonly<DestroySecretVersionRequest>) => Promise<SecretVersion>;
25182
25436
  protected pageOfListTags: (request?: Readonly<ListTagsRequest>) => Promise<ListTagsResponse>;
25183
25437
  /**
25184
- * List tags. List all tags associated to secrets in one or several Projects.
25438
+ * List tags. List all tags associated with secrets within a given Project.
25185
25439
  *
25186
25440
  * @param request - The request {@link ListTagsRequest}
25187
25441
  * @returns A Promise of ListTagsResponse
@@ -25219,6 +25473,7 @@ type index_gen$6_PasswordGenerationParams = PasswordGenerationParams;
25219
25473
  type index_gen$6_Product = Product;
25220
25474
  type index_gen$6_Secret = Secret;
25221
25475
  type index_gen$6_SecretStatus = SecretStatus;
25476
+ type index_gen$6_SecretType = SecretType;
25222
25477
  type index_gen$6_SecretVersion = SecretVersion;
25223
25478
  type index_gen$6_SecretVersionStatus = SecretVersionStatus;
25224
25479
  type index_gen$6_UpdateSecretRequest = UpdateSecretRequest;
@@ -25253,6 +25508,7 @@ declare namespace index_gen$6 {
25253
25508
  index_gen$6_Product as Product,
25254
25509
  index_gen$6_Secret as Secret,
25255
25510
  index_gen$6_SecretStatus as SecretStatus,
25511
+ index_gen$6_SecretType as SecretType,
25256
25512
  index_gen$6_SecretVersion as SecretVersion,
25257
25513
  index_gen$6_SecretVersionStatus as SecretVersionStatus,
25258
25514
  index_gen$6_UpdateSecretRequest as UpdateSecretRequest,
@@ -26241,6 +26497,8 @@ interface PrivateNetwork {
26241
26497
  subnets: Subnet[];
26242
26498
  /** VPC the Private Network belongs to. */
26243
26499
  vpcId: string;
26500
+ /** Defines whether managed DHCP is enabled for this Private Network. */
26501
+ dhcpEnabled: boolean;
26244
26502
  }
26245
26503
  interface SetSubnetsResponse {
26246
26504
  subnets: string[];
@@ -26405,6 +26663,11 @@ type ListPrivateNetworksRequest = {
26405
26663
  * returned.
26406
26664
  */
26407
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;
26408
26671
  };
26409
26672
  type CreatePrivateNetworkRequest = {
26410
26673
  /**
@@ -26479,6 +26742,15 @@ type MigrateZonalPrivateNetworksRequest = {
26479
26742
  /** IDs of the Private Networks to migrate. */
26480
26743
  privateNetworkIds?: string[];
26481
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
+ };
26482
26754
  type SetSubnetsRequest = {
26483
26755
  /**
26484
26756
  * Region to target. If none is passed will use default region from the
@@ -26611,6 +26883,15 @@ declare class API$2 extends API$s {
26611
26883
  * @param request - The request {@link MigrateZonalPrivateNetworksRequest}
26612
26884
  */
26613
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>;
26614
26895
  /**
26615
26896
  * Set the subnets of a Private Network. Set subnets for an existing Private
26616
26897
  * Network. Note that the method is PUT and not PATCH. Any existing subnets
@@ -26646,6 +26927,7 @@ type index_gen$2_DeletePrivateNetworkRequest = DeletePrivateNetworkRequest;
26646
26927
  type index_gen$2_DeleteSubnetsRequest = DeleteSubnetsRequest;
26647
26928
  type index_gen$2_DeleteSubnetsResponse = DeleteSubnetsResponse;
26648
26929
  type index_gen$2_DeleteVPCRequest = DeleteVPCRequest;
26930
+ type index_gen$2_EnableDHCPRequest = EnableDHCPRequest;
26649
26931
  type index_gen$2_GetPrivateNetworkRequest = GetPrivateNetworkRequest;
26650
26932
  type index_gen$2_GetVPCRequest = GetVPCRequest;
26651
26933
  type index_gen$2_ListPrivateNetworksRequest = ListPrivateNetworksRequest;
@@ -26673,6 +26955,7 @@ declare namespace index_gen$2 {
26673
26955
  index_gen$2_DeleteSubnetsRequest as DeleteSubnetsRequest,
26674
26956
  index_gen$2_DeleteSubnetsResponse as DeleteSubnetsResponse,
26675
26957
  index_gen$2_DeleteVPCRequest as DeleteVPCRequest,
26958
+ index_gen$2_EnableDHCPRequest as EnableDHCPRequest,
26676
26959
  index_gen$2_GetPrivateNetworkRequest as GetPrivateNetworkRequest,
26677
26960
  index_gen$2_GetVPCRequest as GetVPCRequest,
26678
26961
  index_gen$2_ListPrivateNetworksRequest as ListPrivateNetworksRequest,