@googleapis/alloydb 5.0.0 → 6.0.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/v1alpha.ts CHANGED
@@ -366,6 +366,10 @@ export namespace alloydb_v1alpha {
366
366
  * For Resource freshness validation (https://google.aip.dev/154)
367
367
  */
368
368
  etag?: string | null;
369
+ /**
370
+ * Optional. Configuration parameters related to the Gemini in Databases add-on. See go/prd-enable-duet-ai-databases for more details.
371
+ */
372
+ geminiConfig?: Schema$GeminiClusterConfig;
369
373
  /**
370
374
  * Input only. Initial user to setup during cluster creation. Required. If used in `RestoreCluster` this is ignored.
371
375
  */
@@ -374,6 +378,10 @@ export namespace alloydb_v1alpha {
374
378
  * Labels as key value pairs
375
379
  */
376
380
  labels?: {[key: string]: string} | null;
381
+ /**
382
+ * Optional. The maintenance update policy determines when to allow or deny updates.
383
+ */
384
+ maintenanceUpdatePolicy?: Schema$MaintenanceUpdatePolicy;
377
385
  /**
378
386
  * Output only. Cluster created via DMS migration.
379
387
  */
@@ -383,7 +391,7 @@ export namespace alloydb_v1alpha {
383
391
  */
384
392
  name?: string | null;
385
393
  /**
386
- * Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: "projects/{project\}/global/networks/{network_id\}". This is required to create a cluster. Deprecated, use network_config.network instead.
394
+ * Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: `projects/{project\}/global/networks/{network_id\}`. This is required to create a cluster. Deprecated, use network_config.network instead.
387
395
  */
388
396
  network?: string | null;
389
397
  networkConfig?: Schema$NetworkConfig;
@@ -508,6 +516,23 @@ export namespace alloydb_v1alpha {
508
516
  */
509
517
  pointInTime?: string | null;
510
518
  }
519
+ /**
520
+ * DenyMaintenancePeriod definition. Excepting emergencies, maintenance will not be scheduled to start within this deny period. The start_date must be less than the end_date.
521
+ */
522
+ export interface Schema$DenyMaintenancePeriod {
523
+ /**
524
+ * Deny period end date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year for recurring. Date matching this period will have to be before the end.
525
+ */
526
+ endDate?: Schema$GoogleTypeDate;
527
+ /**
528
+ * Deny period start date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year for recurring. Date matching this period will have to be the same or after the start.
529
+ */
530
+ startDate?: Schema$GoogleTypeDate;
531
+ /**
532
+ * Time in UTC when the deny period starts on start_date and ends on end_date. This can be: * Full time. * All zeros for 00:00:00 UTC
533
+ */
534
+ time?: Schema$GoogleTypeTimeOfDay;
535
+ }
511
536
  /**
512
537
  * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
513
538
  */
@@ -548,46 +573,22 @@ export namespace alloydb_v1alpha {
548
573
  validateOnly?: boolean | null;
549
574
  }
550
575
  /**
551
- * Message for requests to generate a client certificate signed by the Cluster CA.
576
+ * Cluster level configuration parameters related to the Gemini in Databases add-on. See go/prd-enable-duet-ai-databases for more details.
552
577
  */
553
- export interface Schema$GenerateClientCertificateRequest {
554
- /**
555
- * Optional. An optional hint to the endpoint to generate the client certificate with the requested duration. The duration can be from 1 hour to 24 hours. The endpoint may or may not honor the hint. If the hint is left unspecified or is not honored, then the endpoint will pick an appropriate default duration.
556
- */
557
- certDuration?: string | null;
558
- /**
559
- * Optional. A pem-encoded X.509 certificate signing request (CSR). It is recommended to use public_key instead.
560
- */
561
- pemCsr?: string | null;
578
+ export interface Schema$GeminiClusterConfig {
562
579
  /**
563
- * Optional. The public key from the client.
580
+ * Output only. Whether the Gemini in Databases add-on is enabled for the cluster. It will be true only if the add-on has been enabled for the billing account corresponding to the cluster. Its status is toggled from the Admin Control Center (ACC) and cannot be toggled using AlloyDB's APIs.
564
581
  */
565
- publicKey?: string | null;
566
- /**
567
- * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
568
- */
569
- requestId?: string | null;
570
- /**
571
- * Optional. An optional hint to the endpoint to generate a client ceritificate that can be used by AlloyDB connectors to exchange additional metadata with the server after TLS handshake.
572
- */
573
- useMetadataExchange?: boolean | null;
582
+ entitled?: boolean | null;
574
583
  }
575
584
  /**
576
- * Message returned by a GenerateClientCertificate operation.
585
+ * Instance level configuration parameters related to the Gemini in Databases add-on. See go/prd-enable-duet-ai-databases for more details.
577
586
  */
578
- export interface Schema$GenerateClientCertificateResponse {
579
- /**
580
- * Optional. The pem-encoded cluster ca X.509 certificate.
581
- */
582
- caCert?: string | null;
583
- /**
584
- * Output only. The pem-encoded, signed X.509 certificate.
585
- */
586
- pemCertificate?: string | null;
587
+ export interface Schema$GeminiInstanceConfig {
587
588
  /**
588
- * Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
589
+ * Output only. Whether the Gemini in Databases add-on is enabled for the instance. It will be true only if the add-on has been enabled for the billing account corresponding to the instance. Its status is toggled from the Admin Control Center (ACC) and cannot be toggled using AlloyDB's APIs.
589
590
  */
590
- pemCertificateChain?: string[] | null;
591
+ entitled?: boolean | null;
591
592
  }
592
593
  /**
593
594
  * The response message for Locations.ListLocations.
@@ -627,6 +628,23 @@ export namespace alloydb_v1alpha {
627
628
  */
628
629
  name?: string | null;
629
630
  }
631
+ /**
632
+ * Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
633
+ */
634
+ export interface Schema$GoogleTypeDate {
635
+ /**
636
+ * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
637
+ */
638
+ day?: number | null;
639
+ /**
640
+ * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
641
+ */
642
+ month?: number | null;
643
+ /**
644
+ * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
645
+ */
646
+ year?: number | null;
647
+ }
630
648
  /**
631
649
  * Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
632
650
  */
@@ -705,6 +723,10 @@ export namespace alloydb_v1alpha {
705
723
  * The Compute Engine zone that the instance should serve from, per https://cloud.google.com/compute/docs/regions-zones This can ONLY be specified for ZONAL instances. If present for a REGIONAL instance, an error will be thrown. If this is absent for a ZONAL instance, instance is created in a random zone with available capacity.
706
724
  */
707
725
  gceZone?: string | null;
726
+ /**
727
+ * Optional. Configuration parameters related to the Gemini in Databases add-on. See go/prd-enable-duet-ai-databases for more details.
728
+ */
729
+ geminiConfig?: Schema$GeminiInstanceConfig;
708
730
  /**
709
731
  * Required. The type of the instance. Specified at creation time.
710
732
  */
@@ -733,6 +755,10 @@ export namespace alloydb_v1alpha {
733
755
  * Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance.
734
756
  */
735
757
  nodes?: Schema$Node[];
758
+ /**
759
+ * Configuration for observability.
760
+ */
761
+ observabilityConfig?: Schema$ObservabilityInstanceConfig;
736
762
  /**
737
763
  * Optional. The configuration for Private Service Connect (PSC) for the instance.
738
764
  */
@@ -911,6 +937,32 @@ export namespace alloydb_v1alpha {
911
937
  */
912
938
  cpuCount?: number | null;
913
939
  }
940
+ /**
941
+ * MaintenanceUpdatePolicy defines the policy for system updates.
942
+ */
943
+ export interface Schema$MaintenanceUpdatePolicy {
944
+ /**
945
+ * Periods to deny maintenance. Currently limited to 1.
946
+ */
947
+ denyMaintenancePeriods?: Schema$DenyMaintenancePeriod[];
948
+ /**
949
+ * Preferred windows to perform maintenance. Currently limited to 1.
950
+ */
951
+ maintenanceWindows?: Schema$MaintenanceWindow[];
952
+ }
953
+ /**
954
+ * MaintenanceWindow specifies a preferred day and time for maintenance.
955
+ */
956
+ export interface Schema$MaintenanceWindow {
957
+ /**
958
+ * Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
959
+ */
960
+ day?: string | null;
961
+ /**
962
+ * Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.
963
+ */
964
+ startTime?: Schema$GoogleTypeTimeOfDay;
965
+ }
914
966
  /**
915
967
  * Subset of the source instance configuration that is available when reading the cluster resource.
916
968
  */
@@ -937,7 +989,7 @@ export namespace alloydb_v1alpha {
937
989
  */
938
990
  allocatedIpRange?: string | null;
939
991
  /**
940
- * Optional. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: "projects/{project_number\}/global/networks/{network_id\}". This is required to create a cluster.
992
+ * Optional. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: `projects/{project_number\}/global/networks/{network_id\}`. This is required to create a cluster.
941
993
  */
942
994
  network?: string | null;
943
995
  }
@@ -962,6 +1014,43 @@ export namespace alloydb_v1alpha {
962
1014
  */
963
1015
  zoneId?: string | null;
964
1016
  }
1017
+ /**
1018
+ * Observability Instance specific configuration.
1019
+ */
1020
+ export interface Schema$ObservabilityInstanceConfig {
1021
+ /**
1022
+ * Observability feature status for an instance. This is a read-only flag and modifiable only by producer API. This flag is turned "off" by default.
1023
+ */
1024
+ enabled?: boolean | null;
1025
+ /**
1026
+ * Query string length. The default value is 10k.
1027
+ */
1028
+ maxQueryStringLength?: number | null;
1029
+ /**
1030
+ * Preserve comments in query string for an instance. This flag is turned "off" by default.
1031
+ */
1032
+ preserveComments?: boolean | null;
1033
+ /**
1034
+ * Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 to 20 is considered valid.
1035
+ */
1036
+ queryPlansPerMinute?: number | null;
1037
+ /**
1038
+ * Record application tags for an instance. This flag is turned "off" by default.
1039
+ */
1040
+ recordApplicationTags?: boolean | null;
1041
+ /**
1042
+ * Track actively running queries on the instance. If not set, this flag is "off" by default.
1043
+ */
1044
+ trackActiveQueries?: boolean | null;
1045
+ /**
1046
+ * Track wait events during query execution for an instance. This flag is turned "on" by default but tracking is enabled only after observability enabled flag is also turned on.
1047
+ */
1048
+ trackWaitEvents?: boolean | null;
1049
+ /**
1050
+ * Output only. Track wait event types during query execution for an instance. This flag is turned "on" by default but tracking is enabled only after observability enabled flag is also turned on. This is read-only flag and only modifiable by producer API.
1051
+ */
1052
+ trackWaitEventTypes?: boolean | null;
1053
+ }
965
1054
  /**
966
1055
  * This resource represents a long-running operation that is the result of a network API call.
967
1056
  */
@@ -1071,6 +1160,10 @@ export namespace alloydb_v1alpha {
1071
1160
  * Optional. List of service attachments that this instance has created endpoints to connect with. Currently, only a single outgoing service attachment is supported per instance.
1072
1161
  */
1073
1162
  outgoingServiceAttachmentLinks?: string[] | null;
1163
+ /**
1164
+ * Output only. The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog
1165
+ */
1166
+ pscDnsName?: string | null;
1074
1167
  /**
1075
1168
  * Optional. Whether PSC connectivity is enabled for this instance. This is populated by referencing the value from the parent cluster.
1076
1169
  */
@@ -1080,7 +1173,7 @@ export namespace alloydb_v1alpha {
1080
1173
  */
1081
1174
  pscInterfaceConfigs?: Schema$PscInterfaceConfig[];
1082
1175
  /**
1083
- * Output only. The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of projects//regions//serviceAttachments/
1176
+ * Output only. The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of `projects//regions//serviceAttachments/`
1084
1177
  */
1085
1178
  serviceAttachmentLink?: string | null;
1086
1179
  }
@@ -1093,7 +1186,7 @@ export namespace alloydb_v1alpha {
1093
1186
  */
1094
1187
  consumerEndpointIps?: string[] | null;
1095
1188
  /**
1096
- * The NetworkAttachment resource created in the consumer VPC to which the PSC interface will be linked, in the form of: "projects/${CONSUMER_PROJECT\}/regions/${REGION\}/networkAttachments/${NETWORK_ATTACHMENT_NAME\}". NetworkAttachment has to be provided when the PSC interface is created.
1189
+ * The NetworkAttachment resource created in the consumer VPC to which the PSC interface will be linked, in the form of: `projects/${CONSUMER_PROJECT\}/regions/${REGION\}/networkAttachments/${NETWORK_ATTACHMENT_NAME\}`. NetworkAttachment has to be provided when the PSC interface is created.
1097
1190
  */
1098
1191
  networkAttachment?: string | null;
1099
1192
  }
@@ -1461,7 +1554,7 @@ export namespace alloydb_v1alpha {
1461
1554
  */
1462
1555
  location?: string | null;
1463
1556
  /**
1464
- * Identifier for this resource's immediate parent/primary resource if the current resource is a replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the immediate parent exists when first time resource is getting ingested
1557
+ * Identifier for this resource's immediate parent/primary resource if the current resource is a replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the immediate parent exists when first time resource is getting ingested, otherwise optional.
1465
1558
  */
1466
1559
  primaryResourceId?: Schema$StorageDatabasecenterPartnerapiV1mainDatabaseResourceId;
1467
1560
  /**
@@ -1484,13 +1577,17 @@ export namespace alloydb_v1alpha {
1484
1577
  * User-provided labels, represented as a dictionary where each label is a single key value pair.
1485
1578
  */
1486
1579
  userLabels?: {[key: string]: string} | null;
1580
+ /**
1581
+ * User-provided labels associated with the resource
1582
+ */
1583
+ userLabelSet?: Schema$StorageDatabasecenterPartnerapiV1mainUserLabels;
1487
1584
  }
1488
1585
  /**
1489
1586
  * Common model for database resource recommendation signal data.
1490
1587
  */
1491
1588
  export interface Schema$StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData {
1492
1589
  /**
1493
- * Required. Any other additional metadata specific to recommendation
1590
+ * Optional. Any other additional metadata specific to recommendation
1494
1591
  */
1495
1592
  additionalMetadata?: {[key: string]: any} | null;
1496
1593
  /**
@@ -1543,6 +1640,7 @@ export namespace alloydb_v1alpha {
1543
1640
  * Identifies the specific error that occurred. REQUIRED
1544
1641
  */
1545
1642
  code?: string | null;
1643
+ errorType?: string | null;
1546
1644
  /**
1547
1645
  * Additional information about the error encountered. REQUIRED
1548
1646
  */
@@ -1556,6 +1654,12 @@ export namespace alloydb_v1alpha {
1556
1654
  retentionUnit?: string | null;
1557
1655
  timeBasedRetention?: string | null;
1558
1656
  }
1657
+ /**
1658
+ * Message type for storing user labels. User labels are used to tag App Engine resources, allowing users to search for resources matching a set of labels and to aggregate usage data by labels.
1659
+ */
1660
+ export interface Schema$StorageDatabasecenterPartnerapiV1mainUserLabels {
1661
+ labels?: {[key: string]: string} | null;
1662
+ }
1559
1663
  /**
1560
1664
  * Product specification for Condor resources.
1561
1665
  */
@@ -2731,102 +2835,6 @@ export namespace alloydb_v1alpha {
2731
2835
  }
2732
2836
  }
2733
2837
 
2734
- /**
2735
- * Generate a client certificate signed by a Cluster CA. The sole purpose of this endpoint is to support AlloyDB connectors and the Auth Proxy client. The endpoint's behavior is subject to change without notice, so do not rely on its behavior remaining constant. Future changes will not break AlloyDB connectors or the Auth Proxy client.
2736
- *
2737
- * @param params - Parameters for request
2738
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2739
- * @param callback - Optional callback that handles the response.
2740
- * @returns A promise if used with async/await, or void if used with a callback.
2741
- */
2742
- generateClientCertificate(
2743
- params: Params$Resource$Projects$Locations$Clusters$Generateclientcertificate,
2744
- options: StreamMethodOptions
2745
- ): GaxiosPromise<Readable>;
2746
- generateClientCertificate(
2747
- params?: Params$Resource$Projects$Locations$Clusters$Generateclientcertificate,
2748
- options?: MethodOptions
2749
- ): GaxiosPromise<Schema$GenerateClientCertificateResponse>;
2750
- generateClientCertificate(
2751
- params: Params$Resource$Projects$Locations$Clusters$Generateclientcertificate,
2752
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
2753
- callback: BodyResponseCallback<Readable>
2754
- ): void;
2755
- generateClientCertificate(
2756
- params: Params$Resource$Projects$Locations$Clusters$Generateclientcertificate,
2757
- options:
2758
- | MethodOptions
2759
- | BodyResponseCallback<Schema$GenerateClientCertificateResponse>,
2760
- callback: BodyResponseCallback<Schema$GenerateClientCertificateResponse>
2761
- ): void;
2762
- generateClientCertificate(
2763
- params: Params$Resource$Projects$Locations$Clusters$Generateclientcertificate,
2764
- callback: BodyResponseCallback<Schema$GenerateClientCertificateResponse>
2765
- ): void;
2766
- generateClientCertificate(
2767
- callback: BodyResponseCallback<Schema$GenerateClientCertificateResponse>
2768
- ): void;
2769
- generateClientCertificate(
2770
- paramsOrCallback?:
2771
- | Params$Resource$Projects$Locations$Clusters$Generateclientcertificate
2772
- | BodyResponseCallback<Schema$GenerateClientCertificateResponse>
2773
- | BodyResponseCallback<Readable>,
2774
- optionsOrCallback?:
2775
- | MethodOptions
2776
- | StreamMethodOptions
2777
- | BodyResponseCallback<Schema$GenerateClientCertificateResponse>
2778
- | BodyResponseCallback<Readable>,
2779
- callback?:
2780
- | BodyResponseCallback<Schema$GenerateClientCertificateResponse>
2781
- | BodyResponseCallback<Readable>
2782
- ):
2783
- | void
2784
- | GaxiosPromise<Schema$GenerateClientCertificateResponse>
2785
- | GaxiosPromise<Readable> {
2786
- let params = (paramsOrCallback ||
2787
- {}) as Params$Resource$Projects$Locations$Clusters$Generateclientcertificate;
2788
- let options = (optionsOrCallback || {}) as MethodOptions;
2789
-
2790
- if (typeof paramsOrCallback === 'function') {
2791
- callback = paramsOrCallback;
2792
- params =
2793
- {} as Params$Resource$Projects$Locations$Clusters$Generateclientcertificate;
2794
- options = {};
2795
- }
2796
-
2797
- if (typeof optionsOrCallback === 'function') {
2798
- callback = optionsOrCallback;
2799
- options = {};
2800
- }
2801
-
2802
- const rootUrl = options.rootUrl || 'https://alloydb.googleapis.com/';
2803
- const parameters = {
2804
- options: Object.assign(
2805
- {
2806
- url: (
2807
- rootUrl + '/v1alpha/{+parent}:generateClientCertificate'
2808
- ).replace(/([^:]\/)\/+/g, '$1'),
2809
- method: 'POST',
2810
- },
2811
- options
2812
- ),
2813
- params,
2814
- requiredParams: ['parent'],
2815
- pathParams: ['parent'],
2816
- context: this.context,
2817
- };
2818
- if (callback) {
2819
- createAPIRequest<Schema$GenerateClientCertificateResponse>(
2820
- parameters,
2821
- callback as BodyResponseCallback<unknown>
2822
- );
2823
- } else {
2824
- return createAPIRequest<Schema$GenerateClientCertificateResponse>(
2825
- parameters
2826
- );
2827
- }
2828
- }
2829
-
2830
2838
  /**
2831
2839
  * Gets details of a single Cluster.
2832
2840
  *
@@ -3333,18 +3341,6 @@ export namespace alloydb_v1alpha {
3333
3341
  */
3334
3342
  validateOnly?: boolean;
3335
3343
  }
3336
- export interface Params$Resource$Projects$Locations$Clusters$Generateclientcertificate
3337
- extends StandardParameters {
3338
- /**
3339
- * Required. The name of the parent resource. The required format is: * projects/{project\}/locations/{location\}/clusters/{cluster\}
3340
- */
3341
- parent?: string;
3342
-
3343
- /**
3344
- * Request body metadata
3345
- */
3346
- requestBody?: Schema$GenerateClientCertificateRequest;
3347
- }
3348
3344
  export interface Params$Resource$Projects$Locations$Clusters$Get
3349
3345
  extends StandardParameters {
3350
3346
  /**