/* Type definitions for non-npm package AlloyDB API v1beta 0.0 */ // Project: https://cloud.google.com/alloydb/ // Definitions by: Maxim Mazurok // Nick Amoscato // Declan Vong // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // IMPORTANT // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually. // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator // Generated from: https://alloydb.googleapis.com/$discovery/rest?version=v1beta // Revision: 20260605 /// declare namespace gapi.client { /** Load AlloyDB API v1beta */ function load( urlOrObject: 'https://alloydb.googleapis.com/$discovery/rest?version=v1beta', ): Promise; /** @deprecated Please load APIs with discovery documents. */ function load(name: 'alloydb', version: 'v1beta'): Promise; /** @deprecated Please load APIs with discovery documents. */ function load(name: 'alloydb', version: 'v1beta', callback: () => any): void; namespace alloydb { interface AuthorizedNetwork { /** CIDR range for one authorzied network of the instance. */ cidrRange?: string; } interface AutomatedBackupPolicy { /** The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed. The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour. */ backupWindow?: string; /** Whether automated automated backups are enabled. If not set, defaults to true. */ enabled?: boolean; /** Optional. The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will use the cluster's encryption config. */ encryptionConfig?: EncryptionConfig; /** Labels to apply to backups created using this configuration. */ labels?: {[P in string]: string}; /** The location where the backup will be stored. Currently, the only supported option is to store the backup in the same region as the cluster. If empty, defaults to the region of the cluster. */ location?: string; /** Quantity-based Backup retention policy to retain recent backups. */ quantityBasedRetention?: QuantityBasedRetention; /** Time-based Backup retention policy. */ timeBasedRetention?: TimeBasedRetention; /** Weekly schedule for the Backup. */ weeklySchedule?: WeeklySchedule; } interface AutoScalingConfig { /** Policy for the MIG autoscaler. */ policy?: Policy; /** Optional list of schedules for the MIG autoscaler. If not set, no schedules are created. */ schedules?: Schedule[]; } interface Backup { /** Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 */ annotations?: {[P in string]: string}; /** Output only. Set to true if the cluster corresponding to this backup is deleted. This field is only populated for when using the BACKUP_VIEW_CLUSTER_DELETED view. */ clusterDeleted?: boolean; /** Required. The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}). */ clusterName?: string; /** Output only. The system-generated UID of the cluster which was used to create this resource. */ clusterUid?: string; /** Output only. Timestamp when the resource finished being created. */ createCompletionTime?: string; /** Output only. Create time stamp */ createTime?: string; /** Output only. The database engine major version of the cluster this backup was created from. Any restored cluster created from this backup will have the same database version. */ databaseVersion?: | 'DATABASE_VERSION_UNSPECIFIED' | 'POSTGRES_13' | 'POSTGRES_14' | 'POSTGRES_15' | 'POSTGRES_16' | 'POSTGRES_17' | 'POSTGRES_18'; /** Output only. Delete time stamp */ deleteTime?: string; /** User-provided description of the backup. */ description?: string; /** User-settable and human-readable display name for the Backup. */ displayName?: string; /** Optional. The encryption config can be specified to encrypt the backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data. */ encryptionConfig?: EncryptionConfig; /** Output only. The encryption information for the backup. */ encryptionInfo?: EncryptionInfo; /** For Resource freshness validation (https://google.aip.dev/154) */ etag?: string; /** Output only. The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected. */ expiryQuantity?: QuantityBasedExpiry; /** Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's create_time. */ expiryTime?: string; /** Labels as key value pairs */ labels?: {[P in string]: string}; /** Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id} where the cluster and backup ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the backup resource name is the name of the parent resource: * projects/{project}/locations/{region} */ name?: string; /** Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance. */ reconciling?: boolean; /** Output only. Reserved for future use. */ satisfiesPzs?: boolean; /** Output only. The size of the backup in bytes. */ sizeBytes?: string; /** Output only. The current state of the backup. */ state?: 'STATE_UNSPECIFIED' | 'READY' | 'CREATING' | 'FAILED' | 'DELETING'; /** Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: ``` "123/environment": "production", "123/costCenter": "marketing" ``` */ tags?: {[P in string]: string}; /** The backup type, which suggests the trigger for the backup. */ type?: 'TYPE_UNSPECIFIED' | 'ON_DEMAND' | 'AUTOMATED' | 'CONTINUOUS'; /** Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted. */ uid?: string; /** Output only. Update time stamp Users should not infer any meaning from this field. Its value is generally unrelated to the timing of the backup creation operation. */ updateTime?: string; } interface BackupDrBackupSource { /** Required. The name of the backup resource with the format: * projects/{project}/locations/{location}/backupVaults/{backupvault_id}/dataSources/{datasource_id}/backups/{backup_id} */ backup?: string; } interface BackupDrEnabledWindow { /** Whether automated backup was previously enabled prior to enabling BackupDR protection for this cluster. */ automatedBackupPreviouslyEnabled?: boolean; /** The BackupPlanAssociation resource that was used to enable BackupDR protection for this cluster. */ backupPlanAssociation?: string; /** Whether continuous backup was previously enabled prior to enabling BackupDR protection for this cluster. */ continuousBackupPreviouslyEnabled?: boolean; /** The time when continuous backup was previously enabled prior to enabling BackupDR protection for this cluster. */ continuousBackupPreviouslyEnabledTime?: string; /** The retention set for the continuous backup that was previously enabled prior to enabling BackupDR protection for this cluster. */ continuousBackupPreviousRecoveryWindowDays?: number; /** The DataSource resource that represents the cluster in BackupDR. */ dataSource?: string; /** Time when the BackupDR protection for this cluster was disabled. This field will be empty if this BackupDR window is the `current_window`. */ disabledTime?: string; /** Time when the BackupDR protection for this cluster was enabled. */ enabledTime?: string; /** The retention period for logs generated by BackupDR for this cluster. */ logRetentionPeriod?: string; } interface BackupDrInfo { /** The current BackupDR configuration for this cluster. If BackupDR protection is not enabled for this cluster, this field will be empty. */ currentWindow?: BackupDrEnabledWindow; /** Windows during which BackupDR was enabled for this cluster, along with associated configuration for that window. These are used to determine points-in-time for which restores can be performed. The windows are ordered with the most recent window last. Windows are mutally exclusive. Windows which closed more than 1 year ago will be removed from this list. */ previousWindows?: BackupDrEnabledWindow[]; } interface BackupDrPitrSource { /** Required. The name of the backup resource with the format: * projects/{project}/locations/{location}/backupVaults/{backupvault_id}/dataSources/{datasource_id} */ dataSource?: string; /** Required. The point in time to restore to. */ pointInTime?: string; } interface BackupSource { /** Required. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id} */ backupName?: string; /** Output only. The system-generated UID of the backup which was used to create this resource. The UID is generated when the backup is created, and it is retained until the backup is deleted. */ backupUid?: string; } interface ClientConnectionConfig { /** Optional. Configuration to enforce connectors only (ex: AuthProxy) connections to the database. */ requireConnectors?: boolean; /** Optional. SSL configuration option for this instance. */ sslConfig?: SslConfig; } interface CloudControl2SharedOperationsReconciliationOperationMetadata { /** DEPRECATED. Use exclusive_action instead. */ deleteResource?: boolean; /** Excluisive action returned by the CLH. */ exclusiveAction?: 'UNKNOWN_REPAIR_ACTION' | 'DELETE' | 'RETRY'; } interface CloudSQLBackupRunSource { /** Required. The CloudSQL backup run ID. */ backupRunId?: string; /** Required. The CloudSQL instance ID. */ instanceId?: string; /** The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster's project. */ project?: string; } interface Cluster { /** Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 */ annotations?: {[P in string]: string}; /** The automated backup policy for this cluster. If no policy is provided then the default policy will be used. If backups are supported for the cluster, the default policy takes one backup a day, has a backup window of 1 hour, and retains backups for 14 days. For more information on the defaults, consult the documentation for the message type. */ automatedBackupPolicy?: AutomatedBackupPolicy; /** Output only. Cluster created from a BackupDR backup. */ backupdrBackupSource?: BackupDrBackupSource; /** Output only. Output only information about BackupDR protection for this cluster. */ backupdrInfo?: BackupDrInfo; /** Output only. Cluster created from backup. */ backupSource?: BackupSource; /** Output only. Cluster created from CloudSQL snapshot. */ cloudsqlBackupRunSource?: CloudSQLBackupRunSource; /** Output only. The type of the cluster. This is an output-only field and it's populated at the Cluster creation time or the Cluster promotion time. The cluster type is determined by which RPC was used to create the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster` */ clusterType?: 'CLUSTER_TYPE_UNSPECIFIED' | 'PRIMARY' | 'SECONDARY'; /** Optional. Continuous backup configuration for this cluster. */ continuousBackupConfig?: ContinuousBackupConfig; /** Output only. Continuous backup properties for this cluster. */ continuousBackupInfo?: ContinuousBackupInfo; /** Output only. Create time stamp */ createTime?: string; /** Optional. The database engine major version. This is an optional field and it is populated at the Cluster creation time. If a database version is not supplied at cluster creation time, then a default database version will be used. */ databaseVersion?: | 'DATABASE_VERSION_UNSPECIFIED' | 'POSTGRES_13' | 'POSTGRES_14' | 'POSTGRES_15' | 'POSTGRES_16' | 'POSTGRES_17' | 'POSTGRES_18'; /** Optional. Configuration for Dataplex integration. */ dataplexConfig?: DataplexConfig; /** Output only. Delete time stamp */ deleteTime?: string; /** User-settable and human-readable display name for the Cluster. */ displayName?: string; /** Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data. */ encryptionConfig?: EncryptionConfig; /** Output only. The encryption information for the cluster. */ encryptionInfo?: EncryptionInfo; /** For Resource freshness validation (https://google.aip.dev/154) */ etag?: string; /** Optional. Deprecated and unused. This field will be removed in the near future. */ geminiConfig?: GeminiClusterConfig; /** Input only. Initial user to setup during cluster creation. Required. If used in `RestoreCluster` this is ignored. */ initialUser?: UserPassword; /** Labels as key value pairs */ labels?: {[P in string]: string}; /** Output only. The maintenance schedule for the cluster, generated for a specific rollout if a maintenance window is set. */ maintenanceSchedule?: MaintenanceSchedule; /** Optional. The maintenance update policy determines when to allow or deny updates. */ maintenanceUpdatePolicy?: MaintenanceUpdatePolicy; /** Input only. Policy to use to automatically select the maintenance version to which to update the cluster's instances. */ maintenanceVersionSelectionPolicy?: | 'MAINTENANCE_VERSION_SELECTION_POLICY_UNSPECIFIED' | 'MAINTENANCE_VERSION_SELECTION_POLICY_LATEST' | 'MAINTENANCE_VERSION_SELECTION_POLICY_DEFAULT'; /** Output only. Cluster created via DMS migration. */ migrationSource?: MigrationSource; /** Output only. The name of the cluster resource with the format: * projects/{project}/locations/{region}/clusters/{cluster_id} where the cluster ID segment should satisfy the regex expression `[a-z0-9-]+`. For more details see https://google.aip.dev/122. The prefix of the cluster resource name is the name of the parent resource: * projects/{project}/locations/{region} */ name?: string; /** 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. */ network?: string; networkConfig?: NetworkConfig; /** Output only. Cross Region replication config specific to PRIMARY cluster. */ primaryConfig?: PrimaryConfig; /** Optional. The configuration for Private Service Connect (PSC) for the cluster. */ pscConfig?: PscConfig; /** Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of Cluster does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance. */ reconciling?: boolean; /** Output only. Reserved for future use. */ satisfiesPzs?: boolean; /** Cross Region replication config specific to SECONDARY cluster. */ secondaryConfig?: SecondaryConfig; /** Output only. AlloyDB per-cluster service account. This service account is created per-cluster per-project, and is different from the per-project service account. The per-cluster service account naming format is subject to change. */ serviceAccountEmail?: string; /** SSL configuration for this AlloyDB cluster. */ sslConfig?: SslConfig; /** Output only. The current serving state of the cluster. */ state?: | 'STATE_UNSPECIFIED' | 'READY' | 'STOPPED' | 'EMPTY' | 'CREATING' | 'DELETING' | 'FAILED' | 'BOOTSTRAPPING' | 'MAINTENANCE' | 'PROMOTING' | 'SWITCHOVER' | 'RECREATING'; /** Optional. Subscription type of the cluster. */ subscriptionType?: 'SUBSCRIPTION_TYPE_UNSPECIFIED' | 'STANDARD' | 'TRIAL'; /** Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: ``` "123/environment": "production", "123/costCenter": "marketing" ``` */ tags?: {[P in string]: string}; /** Output only. Metadata for free trial clusters */ trialMetadata?: TrialMetadata; /** Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted. */ uid?: string; /** Output only. Update time stamp */ updateTime?: string; } interface ClusterUpgradeDetails { /** Cluster type which can either be primary or secondary. */ clusterType?: 'CLUSTER_TYPE_UNSPECIFIED' | 'PRIMARY' | 'SECONDARY'; /** Database version of the cluster after the upgrade operation. This will be the target version if the upgrade was successful otherwise it remains the same as that before the upgrade operation. */ databaseVersion?: | 'DATABASE_VERSION_UNSPECIFIED' | 'POSTGRES_13' | 'POSTGRES_14' | 'POSTGRES_15' | 'POSTGRES_16' | 'POSTGRES_17' | 'POSTGRES_18'; /** Upgrade details of the instances directly associated with this cluster. */ instanceUpgradeDetails?: InstanceUpgradeDetails[]; /** Normalized name of the cluster */ name?: string; /** Array containing stage info associated with this cluster. */ stageInfo?: StageInfo[]; /** Upgrade status of the cluster. */ upgradeStatus?: | 'STATUS_UNSPECIFIED' | 'NOT_STARTED' | 'IN_PROGRESS' | 'SUCCESS' | 'FAILED' | 'PARTIAL_SUCCESS' | 'CANCEL_IN_PROGRESS' | 'CANCELLED'; } interface ConnectionInfo { /** Output only. The unique ID of the Instance. */ instanceUid?: string; /** Output only. The private network IP address for the Instance. This is the default IP for the instance and is always created (even if enable_public_ip is set). This is the connection endpoint for an end-user application. */ ipAddress?: string; /** The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*‍/instances/*‍/connectionInfo This field currently has no semantic meaning. */ name?: string; /** 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. */ pemCertificateChain?: string[]; /** Output only. Specifies the DNS name to use with PSC service automation for the Instance. */ pscAutoDnsName?: string; /** Output only. The DNS name to use with PSC for the Instance. */ pscDnsName?: string; /** Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application. */ publicIpAddress?: string; } interface ConnectionPoolConfig { /** Output only. The number of running AuthProxy poolers per instance. */ authproxyPoolerCount?: number; /** Optional. Whether to enable Managed Connection Pool (MCP). */ enabled?: boolean; /** Optional. Connection Pool flags, as a list of "key": "value" pairs. */ flags?: {[P in string]: string}; /** Output only. The number of running poolers per instance. */ poolerCount?: number; } interface ContinuousBackupConfig { /** Whether ContinuousBackup is enabled. */ enabled?: boolean; /** The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will use the cluster's encryption config. */ encryptionConfig?: EncryptionConfig; /** The number of days that are eligible to restore from using PITR. To support the entire recovery window, backups and logs are retained for one day more than the recovery window. If not set, defaults to 14 days. */ recoveryWindowDays?: number; } interface ContinuousBackupInfo { /** Output only. The earliest restorable time that can be restored to. If continuous backups and recovery was recently enabled, the earliest restorable time is the creation time of the earliest eligible backup within this cluster's continuous backup recovery window. After a cluster has had continuous backups enabled for the duration of its recovery window, the earliest restorable time becomes "now minus the recovery window". For example, assuming a point in time recovery is attempted at 04/16/2025 3:23:00PM with a 14d recovery window, the earliest restorable time would be 04/02/2025 3:23:00PM. This field is only visible if the CLUSTER_VIEW_CONTINUOUS_BACKUP cluster view is provided. */ earliestRestorableTime?: string; /** Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled. */ enabledTime?: string; /** Output only. The encryption information for the WALs and backups required for ContinuousBackup. */ encryptionInfo?: EncryptionInfo; /** Output only. Days of the week on which a continuous backup is taken. */ schedule?: | 'DAY_OF_WEEK_UNSPECIFIED' | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY'[]; } interface ContinuousBackupSource { /** Required. The source cluster from which to restore. This cluster must have continuous backup enabled for this operation to succeed. For the required format, see the comment on the Cluster.name field. */ cluster?: string; /** Required. The point in time to restore to. */ pointInTime?: string; } interface CpuUtilization { /** Target CPU utilization as a float between 0 and 1. */ utilizationTarget?: number; } interface CsvExportOptions { /** Optional. Specifies the character that should appear before a data character that needs to be escaped. The default is the same as quote character. The value of this argument has to be a character in Hex ASCII Code. */ escapeCharacter?: string; /** Optional. Specifies the character that separates columns within each row (line) of the file. The default is comma. The value of this argument has to be a character in Hex ASCII Code. */ fieldDelimiter?: string; /** Optional. Specifies the quoting character to be used when a data value is quoted. The default is double-quote. The value of this argument has to be a character in Hex ASCII Code. */ quoteCharacter?: string; /** Required. The SELECT query used to extract the data. */ selectQuery?: string; } interface CsvImportOptions { /** Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data. */ columns?: string[]; /** Optional. Specifies the character that should appear before a data character that needs to be escaped. The default is same as quote character. The value of this argument has to be a character in Hex ASCII Code. */ escapeCharacter?: string; /** Optional. Specifies the character that separates columns within each row (line) of the file. The default is comma. The value of this argument has to be a character in Hex ASCII Code. */ fieldDelimiter?: string; /** Optional. Specifies the quoting character to be used when a data value is quoted. The default is double-quote. The value of this argument has to be a character in Hex ASCII Code. */ quoteCharacter?: string; /** Required. The database table to import CSV file into. */ table?: string; } interface DataplexConfig { /** Dataplex is enabled by default for resources such as clusters and instances. This flag controls the integration of AlloyDB PG resources (like databases, schemas, and tables) with Dataplex." */ enabled?: boolean; } interface DenyMaintenancePeriod { /** Deny period end date. This can be: * A full date, with non-zero year, month and day values OR * A month and day value, with a zero year for recurring */ endDate?: GoogleTypeDate; /** Deny period start date. This can be: * A full date, with non-zero year, month and day values OR * A month and day value, with a zero year for recurring */ startDate?: GoogleTypeDate; /** Time in UTC when the deny period starts on start_date and ends on end_date. This can be: * Full time OR * All zeros for 00:00:00 UTC */ time?: GoogleTypeTimeOfDay; } interface DNSConfig { /** The fully qualified domain name (FQDN) of the DNS record, e.g., ".location.alloydb-psa.goog". */ dnsName?: string; /** The type of the DNS record, e.g., "A", "AAAA", "CNAME". */ dnsRecordType?: string; } interface Empty {} interface EncryptionConfig { /** The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME] */ kmsKeyName?: string; } interface EncryptionInfo { /** Output only. Type of encryption. */ encryptionType?: | 'TYPE_UNSPECIFIED' | 'GOOGLE_DEFAULT_ENCRYPTION' | 'CUSTOMER_MANAGED_ENCRYPTION'; /** Output only. Cloud KMS key versions that are being used to protect the database or the backup. */ kmsKeyVersions?: string[]; } interface Endpoint { /** Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 */ annotations?: {[P in string]: string}; /** Output only. Create time stamp */ createTime?: string; /** Output only. Delete time stamp */ deleteTime?: string; /** User-settable and human-readable display name for the Endpoint. */ displayName?: string; /** Output only. The DNS config for the endpoint. Each endpoint is associated with a specific DNS name and the DNS type. The DNS targets are the IP addresses of the target instances. The dns_type is the type of the DNS record, eg. Type "A" or Type "CNAME". This field is not configurable by the user, and it is updated when user specifies the target instances. */ dnsConfig?: DNSConfig; /** Output only. The effective target instances that the endpoint is associated with. This is a list of target instance names, e.g. projects/{project_number}/locations/{location}/clusters/{cluster_id}/instances/{instance_id} For write endpoint, there is only one effective target instance which has to be a primary instance. Effective target instances are only different from target instances after a switchover or cross-region failover operation. Otherwise, effective_target_instances are the same as target_instances. Note that after a cross-region failover operation, the effective_target_instances can be stale until the operation to update the endpoint is complete. */ effectiveTargetInstances?: string[]; /** The type of the endpoint, either write or read. */ endpointType?: 'ENDPOINT_TYPE_UNSPECIFIED' | 'WRITE_ENDPOINT' | 'READ_ENDPOINT'; /** For Resource freshness validation (https://google.aip.dev/154) */ etag?: string; /** Output only. Identifier. The name of the endpoint resource with the format: * projects/{project}/locations/{region}/endpoints/{endpoint_id} where the endpoint ID segment should satisfy the regex expression `[a-z0-9-]+`. For more details see https://google.aip.dev/122. The prefix of the endpoint resource name is the name of the parent resource: * projects/{project}/locations/{region} */ name?: string; /** Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of Endpoint does not match the user's intended state, and the service is actively updating the Endpoint to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance. */ reconciling?: boolean; /** Output only. The state of the endpoint. */ state?: 'STATE_UNSPECIFIED' | 'READY' | 'CREATING' | 'UPDATING' | 'DELETING'; /** The names of the target instances for the endpoint, should be of format projects/{project}/locations/{region}/clusters/{cluster}/instances/{instance}. For write endpoint, there is only one target instance which has to be a primary instance. For read endpoint, there can be multiple target instances which can be read or secondary instances. After a cross-region failover or switchover operation, the endpoint will be associated with a different target instance. This change will be reflected in the effective_target_instances field. */ targetInstances?: string[]; /** Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted. */ uid?: string; /** Output only. Update time stamp */ updateTime?: string; } interface ExportClusterRequest { /** Options for exporting data in CSV format. Required field to be set for CSV file type. */ csvExportOptions?: CsvExportOptions; /** Required. Name of the database where the export command will be executed. Note - Value provided should be the same as expected from `SELECT current_database();` and NOT as a resource reference. */ database?: string; /** Required. Option to export data to cloud storage. */ gcsDestination?: GcsDestination; /** Options for exporting data in SQL format. Required field to be set for SQL file type. */ sqlExportOptions?: SqlExportOptions; } interface FailoverInstanceRequest { /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; } interface GCAInstanceConfig { /** Output only. Represents the GCA entitlement state of the instance. */ gcaEntitlement?: 'GCA_ENTITLEMENT_TYPE_UNSPECIFIED' | 'GCA_STANDARD'; } interface GcsDestination { /** Required. The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. */ uri?: string; } interface GeminiClusterConfig { /** Output only. Deprecated and unused. This field will be removed in the near future. */ entitled?: boolean; } interface GeminiInstanceConfig { /** Output only. Deprecated and unused. This field will be removed in the near future. */ entitled?: boolean; } interface GoogleCloudLocationListLocationsResponse { /** A list of locations that matches the specified filter in the request. */ locations?: GoogleCloudLocationLocation[]; /** The standard List next-page token. */ nextPageToken?: string; } interface GoogleCloudLocationLocation { /** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */ displayName?: string; /** Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} */ labels?: {[P in string]: string}; /** The canonical id for this location. For example: `"us-east1"`. */ locationId?: string; /** Service-specific metadata. For example the available capacity at the given location. */ metadata?: {[P in string]: any}; /** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */ name?: string; } interface GoogleTypeDate { /** 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. */ day?: number; /** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */ month?: number; /** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */ year?: number; } interface GoogleTypeTimeOfDay { /** Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. */ hours?: number; /** Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59. */ minutes?: number; /** Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999. */ nanos?: number; /** Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds. */ seconds?: number; } interface ImportClusterRequest { /** Options for importing data in CSV format. */ csvImportOptions?: CsvImportOptions; /** Optional. Name of the database to which the import will be done. For import from SQL file, this is required only if the file does not specify a database. Note - Value provided should be the same as expected from `SELECT current_database();` and NOT as a resource reference. */ database?: string; /** Required. The path to the file in Google Cloud Storage where the source file for import will be stored. The URI is in the form `gs://bucketName/fileName`. */ gcsUri?: string; /** Options for importing data in SQL format. */ sqlImportOptions?: any; /** Optional. Database user to be used for importing the data. Note - Value provided should be the same as expected from `SELECT current_user;` and NOT as a resource reference. */ user?: string; } interface InjectFaultRequest { /** Required. The type of fault to be injected in an instance. */ faultType?: 'FAULT_TYPE_UNSPECIFIED' | 'STOP_VM'; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; } interface Instance { /** Optional. Specifies whether an instance needs to spin up. Once the instance is active, the activation policy can be updated to the `NEVER` to stop the instance. Likewise, the activation policy can be updated to `ALWAYS` to start the instance. There are restrictions around when an instance can/cannot be activated (for example, a read pool instance should be stopped before stopping primary etc.). Please refer to the API documentation for more details. */ activationPolicy?: 'ACTIVATION_POLICY_UNSPECIFIED' | 'ALWAYS' | 'NEVER'; /** Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 */ annotations?: {[P in string]: string}; /** Availability type of an Instance. If empty, defaults to REGIONAL for primary instances. For read pools, availability_type is always UNSPECIFIED. Instances in the read pools are evenly distributed across available zones within the region (i.e. read pools with more than one node will have a node in at least two zones). */ availabilityType?: 'AVAILABILITY_TYPE_UNSPECIFIED' | 'ZONAL' | 'REGIONAL'; /** Optional. Client connection specific configurations */ clientConnectionConfig?: ClientConnectionConfig; /** Optional. The configuration for Managed Connection Pool (MCP). */ connectionPoolConfig?: ConnectionPoolConfig; /** Output only. Create time stamp */ createTime?: string; /** Optional. Controls whether the Data API is enabled for this instance. When enabled, this allows authorized users to connect to the instance from the public internet using the `executeSql` API, even for private IP instances. If this is not specified, the data API is enabled by default for Google internal services like AlloyDB Studio. Disable it explicitly to disallow Google internal services as well. */ dataApiAccess?: | 'DEFAULT_DATA_API_ENABLED_FOR_GOOGLE_CLOUD_SERVICES' | 'DISABLED' | 'ENABLED'; /** Database flags. Set at the instance level. They are copied from the primary instance on secondary instance creation. Flags that have restrictions default to the value at primary instance on read instances during creation. Read instances can set new flags or override existing flags that are relevant for reads, for example, for enabling columnar cache on a read instance. Flags set on read instance might or might not be present on the primary instance. This is a list of "key": "value" pairs. "key": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. "value": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value. */ databaseFlags?: {[P in string]: string}; /** Output only. Delete time stamp */ deleteTime?: string; /** User-settable and human-readable display name for the Instance. */ displayName?: string; /** For Resource freshness validation (https://google.aip.dev/154) */ etag?: string; /** Output only. Configuration parameters related to Gemini Cloud Assist. */ gcaConfig?: GCAInstanceConfig; /** 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. */ gceZone?: string; /** Optional. Deprecated and unused. This field will be removed in the near future. */ geminiConfig?: GeminiInstanceConfig; /** Required. The type of the instance. Specified at creation time. */ instanceType?: 'INSTANCE_TYPE_UNSPECIFIED' | 'PRIMARY' | 'READ_POOL' | 'SECONDARY'; /** Output only. The IP address for the Instance. This is the connection endpoint for an end-user application. */ ipAddress?: string; /** Labels as key value pairs */ labels?: {[P in string]: string}; /** Configurations for the machines that host the underlying database engine. */ machineConfig?: MachineConfig; /** Output only. Maintenance version of the instance, for example: POSTGRES_15.2025_07_15.04_00. Output only. Update this field via the parent cluster's maintenance_version field(s). */ maintenanceVersionName?: string; /** Output only. The name of the instance resource with the format: * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} where the cluster and instance ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the instance resource name is the name of the parent resource: * projects/{project}/locations/{region}/clusters/{cluster_id} */ name?: string; /** Optional. Instance-level network configuration. */ networkConfig?: InstanceNetworkConfig; /** Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance. */ nodes?: Node[]; /** Configuration for observability. */ observabilityConfig?: ObservabilityInstanceConfig; /** Output only. All outbound public IP addresses configured for the instance. */ outboundPublicIpAddresses?: string[]; /** Optional. The configuration for Private Service Connect (PSC) for the instance. */ pscInstanceConfig?: PscInstanceConfig; /** Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application. */ publicIpAddress?: string; /** Configuration for query insights. */ queryInsightsConfig?: QueryInsightsInstanceConfig; /** Read pool instance configuration. This is required if the value of instanceType is READ_POOL. */ readPoolConfig?: ReadPoolConfig; /** Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of Instance does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance. */ reconciling?: boolean; /** Output only. Reserved for future use. */ satisfiesPzs?: boolean; /** Output only. The current serving state of the instance. */ state?: | 'STATE_UNSPECIFIED' | 'READY' | 'STOPPED' | 'CREATING' | 'DELETING' | 'MAINTENANCE' | 'FAILED' | 'BOOTSTRAPPING' | 'PROMOTING' | 'SWITCHOVER' | 'STOPPING' | 'STARTING'; /** Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted. */ uid?: string; /** Update policy that will be applied during instance update. This field is not persisted when you update the instance. To use a non-default update policy, you must specify explicitly specify the value in each update request. */ updatePolicy?: UpdatePolicy; /** Output only. Update time stamp */ updateTime?: string; /** Output only. This is set for the read-write VM of the PRIMARY instance only. */ writableNode?: Node; } interface InstanceNetworkConfig { /** Optional. Name of the allocated IP range for the private IP AlloyDB instance, for example: "google-managed-services-default". If set, the instance IPs will be created from this allocated range and will override the IP range used by the parent cluster. The range name must comply with [RFC 1035](https://datatracker.ietf.org/doc/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. */ allocatedIpRangeOverride?: string; /** Optional. A list of external network authorized to access this instance. */ authorizedExternalNetworks?: AuthorizedNetwork[]; /** Optional. Enabling an outbound public IP address to support a database server sending requests out into the internet. */ enableOutboundPublicIp?: boolean; /** Optional. Enabling public ip for the instance. */ enablePublicIp?: boolean; /** Output only. The resource link for the VPC network in which instance resources are created and from which they are accessible via Private IP. This will be the same value as the parent cluster's network. It is specified in the form: // `projects/{project_number}/global/networks/{network_id}`. */ network?: string; } interface InstanceUpgradeDetails { /** Instance type. */ instanceType?: 'INSTANCE_TYPE_UNSPECIFIED' | 'PRIMARY' | 'READ_POOL' | 'SECONDARY'; /** Normalized name of the instance. */ name?: string; /** Upgrade status of the instance. */ upgradeStatus?: | 'STATUS_UNSPECIFIED' | 'NOT_STARTED' | 'IN_PROGRESS' | 'SUCCESS' | 'FAILED' | 'PARTIAL_SUCCESS' | 'CANCEL_IN_PROGRESS' | 'CANCELLED'; } interface IntegerRestrictions { /** The maximum value that can be specified, if applicable. */ maxValue?: string; /** The minimum value that can be specified, if applicable. */ minValue?: string; } interface ListBackupsResponse { /** The list of Backup */ backups?: Backup[]; /** A token identifying a page of results the server should return. */ nextPageToken?: string; /** Locations that could not be reached. */ unreachable?: string[]; } interface ListClustersResponse { /** The list of Cluster */ clusters?: Cluster[]; /** A token identifying a page of results the server should return. */ nextPageToken?: string; /** Locations that could not be reached. */ unreachable?: string[]; } interface ListEndpointsResponse { /** The list of Endpoints */ endpoints?: Endpoint[]; /** A token identifying a page of results the server should return. */ nextPageToken?: string; /** Locations that could not be reached. */ unreachable?: string[]; } interface ListInstancesResponse { /** The list of Instance */ instances?: Instance[]; /** A token identifying a page of results the server should return. */ nextPageToken?: string; /** Locations that could not be reached. */ unreachable?: string[]; } interface ListOperationsResponse { /** The standard List next-page token. */ nextPageToken?: string; /** A list of operations that matches the specified filter in the request. */ operations?: Operation[]; /** Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations. */ unreachable?: string[]; } interface ListSupportedDatabaseFlagsResponse { /** A token identifying a page of results the server should return. */ nextPageToken?: string; /** The list of SupportedDatabaseFlags. */ supportedDatabaseFlags?: SupportedDatabaseFlag[]; } interface ListUsersResponse { /** A token identifying a page of results the server should return. */ nextPageToken?: string; /** Locations that could not be reached. */ unreachable?: string[]; /** The list of User */ users?: User[]; } interface MachineConfig { /** The number of CPU's in the VM instance. */ cpuCount?: number; /** Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8", "c4a-highmem-4-lssd". cpu_count must match the number of vCPUs in the machine type. */ machineType?: string; } interface MaintenanceSchedule { /** Output only. The scheduled start time for the maintenance. */ startTime?: string; } interface MaintenanceUpdatePolicy { /** Periods to deny maintenance. Currently limited to 1. */ denyMaintenancePeriods?: DenyMaintenancePeriod[]; /** Preferred windows to perform maintenance. Currently limited to 1. */ maintenanceWindows?: MaintenanceWindow[]; } interface MaintenanceWindow { /** Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc. */ day?: | 'DAY_OF_WEEK_UNSPECIFIED' | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY'; /** Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time. */ startTime?: GoogleTypeTimeOfDay; } interface MigrationSource { /** Output only. The host and port of the on-premises instance in host:port format */ hostPort?: string; /** Output only. Place holder for the external source identifier(e.g DMS job name) that created the cluster. */ referenceId?: string; /** Output only. Type of migration source. */ sourceType?: 'MIGRATION_SOURCE_TYPE_UNSPECIFIED' | 'DMS'; } interface NetworkConfig { /** Optional. Name of the allocated IP range for the private IP AlloyDB cluster, for example: "google-managed-services-default". If set, the instance IPs for this cluster will be created in the allocated range. The range name must comply with RFC 1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. Field name is intended to be consistent with Cloud SQL. */ allocatedIpRange?: string; /** 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. */ network?: string; } interface Node { /** Output only. The identifier of the VM e.g. "test-read-0601-407e52be-ms3l". */ id?: string; /** Output only. The private IP address of the VM e.g. "10.57.0.34". */ ip?: string; /** Output only. Indicates whether the node set up to be configured as a hot standby. */ isHotStandby?: boolean; /** Output only. Determined by state of the compute VM and postgres-service health. Compute VM state can have values listed in https://cloud.google.com/compute/docs/instances/instance-life-cycle and postgres-service health can have values: HEALTHY and UNHEALTHY. */ state?: string; /** Output only. The Compute Engine zone of the VM e.g. "us-central1-b". */ zoneId?: string; } interface ObservabilityInstanceConfig { /** Whether assistive experiences are enabled for this AlloyDB instance. */ assistiveExperiencesEnabled?: boolean; /** Observability feature status for an instance. This flag is turned "off" by default. */ enabled?: boolean; /** Query string length. The default value is 10k. */ maxQueryStringLength?: number; /** Preserve comments in query string for an instance. This flag is turned "off" by default. */ preserveComments?: boolean; /** Number of query execution plans captured by Insights per minute for all queries combined. The default value is 200. Any integer between 0 to 200 is considered valid. */ queryPlansPerMinute?: number; /** Record application tags for an instance. This flag is turned "off" by default. */ recordApplicationTags?: boolean; /** Track actively running queries on the instance. If not set, this flag is "off" by default. */ trackActiveQueries?: boolean; /** Indicates whether to track active query plans for an instance. If not set, the default value is "off". Can only be enabled if track_active_queries is enabled. */ trackActiveQueryPlan?: boolean; /** Track client address for an instance. If not set, default value is "off". */ trackClientAddress?: boolean; /** 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. */ trackWaitEvents?: boolean; /** 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 internal API. */ trackWaitEventTypes?: boolean; } interface Operation { /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */ done?: boolean; /** The error result of the operation in case of failure or cancellation. */ error?: Status; /** Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. */ metadata?: {[P in string]: any}; /** The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. */ name?: string; /** The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ response?: {[P in string]: any}; } interface OperationMetadata { /** Output only. API version used to start the operation. */ apiVersion?: string; /** Output only. The time the operation was created. */ createTime?: string; /** Output only. The time the operation finished running. */ endTime?: string; /** Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */ requestedCancellation?: boolean; /** Output only. Human-readable status of the operation, if any. */ statusMessage?: string; /** Output only. Server-defined resource path for the target of the operation. */ target?: string; /** Output only. UpgradeClusterStatus related metadata. */ upgradeClusterStatus?: UpgradeClusterStatus; /** Output only. Name of the verb executed by the operation. */ verb?: string; } interface Policy { /** The period of time in seconds after a new node is created before the autoscaler will incorporate its resource usage (e.g. CPU utilization) into the autoscaling recommendation algorithm. */ coolDownPeriodSec?: string; /** CPU utilization policy for the autoscaler. */ cpuUtilization?: CpuUtilization; /** If true, autoscaling is enabled for the instance. If not set, the default value is false. */ enabled?: boolean; /** Maximum number of nodes for the autoscaler. */ maxNodeCount?: string; } interface PrimaryConfig { /** Output only. Names of the clusters that are replicating from this cluster. */ secondaryClusterNames?: string[]; } interface PromoteClusterRequest { /** Optional. The current etag of the Cluster. If an etag is provided and does not match the current etag of the Cluster, deletion will be blocked and an ABORTED error will be returned. */ etag?: string; /** Optional. If set, the promote operation will attempt to recreate the original primary cluster as a secondary cluster when it comes back online. Otherwise, the promoted cluster will be a standalone cluster. Currently only supported when there is a single secondary cluster. */ failover?: boolean; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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). */ requestId?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; } interface PscAutoConnectionConfig { /** The consumer network for the PSC service automation, example: "projects/vpc-host-project/global/networks/default". The consumer network might be hosted a different project than the consumer project. */ consumerNetwork?: string; /** Output only. The status of the service connection policy. Possible values: "STATE_UNSPECIFIED" - Default state, when Connection Map is created initially. "VALID" - Set when policy and map configuration is valid, and their matching can lead to allowing creation of PSC Connections subject to other constraints like connections limit. "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for this network and Service Class "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for this network and Service Class "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance project is not in AllowedGoogleProducersResourceHierarchyLevels of the matching ServiceConnectionPolicy. */ consumerNetworkStatus?: string; /** The consumer project to which the PSC service automation endpoint will be created. */ consumerProject?: string; /** Output only. The IP address of the PSC service automation endpoint. */ ipAddress?: string; /** Output only. The status of the PSC service automation connection. Possible values: "STATE_UNSPECIFIED" - An invalid state as the default case. "ACTIVE" - The connection has been created successfully. "FAILED" - The connection is not functional since some resources on the connection fail to be created. "CREATING" - The connection is being created. "DELETING" - The connection is being deleted. "CREATE_REPAIRING" - The connection is being repaired to complete creation. "DELETE_REPAIRING" - The connection is being repaired to complete deletion. */ status?: string; } interface PscConfig { /** Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance. */ pscEnabled?: boolean; /** Output only. The project number that needs to be allowlisted on the network attachment to enable outbound connectivity. */ serviceOwnedProjectNumber?: string; } interface PscInstanceConfig { /** Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance. */ allowedConsumerProjects?: string[]; /** Optional. Configurations for setting up PSC service automation. */ pscAutoConnections?: PscAutoConnectionConfig[]; /** Output only. The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog */ pscDnsName?: string; /** Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. Currently we only support 0 or 1 PSC interface. */ pscInterfaceConfigs?: PscInterfaceConfig[]; /** 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/` */ serviceAttachmentLink?: string; } interface PscInterfaceConfig { /** The network attachment resource created in the consumer network to which the PSC interface will be linked. This is of the format: "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}". The network attachment must be in the same region as the instance. */ networkAttachmentResource?: string; } interface QuantityBasedExpiry { /** Output only. The backup's position among its backups with the same source cluster and type, by descending chronological order create time(i.e. newest first). */ retentionCount?: number; /** Output only. The length of the quantity-based queue, specified by the backup's retention policy. */ totalRetentionCount?: number; } interface QuantityBasedRetention { /** The number of backups to retain. */ count?: number; } interface QueryInsightsInstanceConfig { /** Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid. */ queryPlansPerMinute?: number; /** Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid. */ queryStringLength?: number; /** Record application tags for an instance. This flag is turned "on" by default. */ recordApplicationTags?: boolean; /** Record client address for an instance. Client address is PII information. This flag is turned "on" by default. */ recordClientAddress?: boolean; } interface ReadPoolConfig { /** Autoscaling configuration for the read pool instance. If not set, the read pool instance will not be autoscaled. */ autoScalingConfig?: AutoScalingConfig; /** Read capacity, i.e. number of nodes in a read pool instance. */ nodeCount?: number; } interface ReadPoolInstancesUpgradeStageStatus { /** Read pool instances upgrade statistics. */ upgradeStats?: Stats; } interface RestartInstanceRequest { /** Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to restart upon. Applicable only to read instances. */ nodeIds?: string[]; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; } interface RestoreClusterRequest { /** BackupDR backup source. */ backupdrBackupSource?: BackupDrBackupSource; /** BackupDR source used for point in time recovery. */ backupdrPitrSource?: BackupDrPitrSource; /** Backup source. */ backupSource?: BackupSource; /** Required. The resource being created */ cluster?: Cluster; /** Required. ID of the requesting object. */ clusterId?: string; /** ContinuousBackup source. Continuous backup needs to be enabled in the source cluster for this operation to succeed. */ continuousBackupSource?: ContinuousBackupSource; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; } interface RestoreFromCloudSQLRequest { /** Cluster created from CloudSQL backup run. */ cloudsqlBackupRunSource?: CloudSQLBackupRunSource; /** Required. The resource being created */ cluster?: Cluster; /** Required. ID of the requesting object. */ clusterId?: string; } interface Schedule { /** Cron expression for the triggering the schedule. See https://cloud.google.com/compute/docs/autoscaler/scaling-schedules#cron_expressions for the syntax. */ cronExpression?: string; /** Description of the schedule. */ description?: string; /** If true, the schedule is disabled. */ disabled?: boolean; /** Duration of the schedule. */ durationSec?: string; /** Minimum number of nodes in while the schedule is active. */ minNodeCount?: string; /** Name of the schedule. */ name?: string; /** The location-based IANA time zone for interpreting the schedule's start time. If no time zone is provided, UTC is used by default. */ timeZone?: string; } interface SecondaryConfig { /** The name of the primary cluster name with the format: * projects/{project}/locations/{region}/clusters/{cluster_id} */ primaryClusterName?: string; } interface SqlExportOptions { /** Optional. If true, output commands to DROP all the dumped database objects prior to outputting the commands for creating them. */ cleanTargetObjects?: boolean; /** Optional. If true, use DROP ... IF EXISTS commands to check for the object's existence before dropping it in clean_target_objects mode. */ ifExistTargetObjects?: boolean; /** Optional. If true, only export the schema. */ schemaOnly?: boolean; /** Optional. Tables to export from. */ tables?: string[]; } interface SqlImportOptions {} interface SslConfig { /** Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is supported currently, and is the default value. */ caSource?: 'CA_SOURCE_UNSPECIFIED' | 'CA_SOURCE_MANAGED'; /** Optional. SSL mode. Specifies client-server SSL/TLS connection behavior. */ sslMode?: | 'SSL_MODE_UNSPECIFIED' | 'SSL_MODE_ALLOW' | 'SSL_MODE_REQUIRE' | 'SSL_MODE_VERIFY_CA' | 'ALLOW_UNENCRYPTED_AND_ENCRYPTED' | 'ENCRYPTED_ONLY'; } interface StageInfo { /** logs_url is the URL for the logs associated with a stage if that stage has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK, PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE. */ logsUrl?: string; /** The stage. */ stage?: | 'STAGE_UNSPECIFIED' | 'ALLOYDB_PRECHECK' | 'PG_UPGRADE_CHECK' | 'PREPARE_FOR_UPGRADE' | 'PRIMARY_INSTANCE_UPGRADE' | 'READ_POOL_INSTANCES_UPGRADE' | 'ROLLBACK' | 'CLEANUP'; /** Status of the stage. */ status?: | 'STATUS_UNSPECIFIED' | 'NOT_STARTED' | 'IN_PROGRESS' | 'SUCCESS' | 'FAILED' | 'PARTIAL_SUCCESS' | 'CANCEL_IN_PROGRESS' | 'CANCELLED'; } interface StageStatus { /** Read pool instances upgrade metadata. */ readPoolInstancesUpgrade?: ReadPoolInstancesUpgradeStageStatus; /** Upgrade stage. */ stage?: | 'STAGE_UNSPECIFIED' | 'ALLOYDB_PRECHECK' | 'PG_UPGRADE_CHECK' | 'PREPARE_FOR_UPGRADE' | 'PRIMARY_INSTANCE_UPGRADE' | 'READ_POOL_INSTANCES_UPGRADE' | 'ROLLBACK' | 'CLEANUP'; /** State of this stage. */ state?: | 'STATUS_UNSPECIFIED' | 'NOT_STARTED' | 'IN_PROGRESS' | 'SUCCESS' | 'FAILED' | 'PARTIAL_SUCCESS' | 'CANCEL_IN_PROGRESS' | 'CANCELLED'; } interface Stats { /** Number of read pool instances which failed to upgrade. */ failed?: number; /** Number of read pool instances for which upgrade has not started. */ notStarted?: number; /** Number of read pool instances undergoing upgrade. */ ongoing?: number; /** Number of read pool instances successfully upgraded. */ success?: number; } interface Status { /** The status code, which should be an enum value of google.rpc.Code. */ code?: number; /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */ details?: {[P in string]: any}[]; /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */ message?: string; } interface StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration { /** Checks for existence of (multi-cluster) routing configuration that allows automatic failover to a different zone/region in case of an outage. Applicable to Bigtable resources. */ automaticFailoverRoutingConfigured?: boolean; /** Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available). */ availabilityType?: | 'AVAILABILITY_TYPE_UNSPECIFIED' | 'ZONAL' | 'REGIONAL' | 'MULTI_REGIONAL' | 'AVAILABILITY_TYPE_OTHER'; /** Checks for resources that are configured to have redundancy, and ongoing replication across regions */ crossRegionReplicaConfigured?: boolean; externalReplicaConfigured?: boolean; promotableReplicaConfigured?: boolean; } interface StorageDatabasecenterPartnerapiV1mainBackupConfiguration { /** Whether customer visible automated backups are enabled on the instance. */ automatedBackupEnabled?: boolean; /** Backup retention settings. */ backupRetentionSettings?: StorageDatabasecenterPartnerapiV1mainRetentionSettings; /** Whether point-in-time recovery is enabled. This is optional field, if the database service does not have this feature or metadata is not available in control plane, this can be omitted. */ pointInTimeRecoveryEnabled?: boolean; } interface StorageDatabasecenterPartnerapiV1mainBackupDRConfiguration { /** Indicates if the resource is managed by BackupDR. */ backupdrManaged?: boolean; } interface StorageDatabasecenterPartnerapiV1mainBackupDRMetadata { /** Backup configuration for this instance. */ backupConfiguration?: StorageDatabasecenterPartnerapiV1mainBackupConfiguration; /** BackupDR configuration for this instance. */ backupdrConfiguration?: StorageDatabasecenterPartnerapiV1mainBackupDRConfiguration; /** Latest backup run information for this instance. */ backupRun?: StorageDatabasecenterPartnerapiV1mainBackupRun; /** Required. Full resource name of this instance. */ fullResourceName?: string; /** Required. Last time backup configuration was refreshed. */ lastRefreshTime?: string; /** Required. Database resource id. */ resourceId?: StorageDatabasecenterPartnerapiV1mainDatabaseResourceId; } interface StorageDatabasecenterPartnerapiV1mainBackupRun { /** The time the backup operation completed. REQUIRED */ endTime?: string; /** Information about why the backup operation failed. This is only present if the run has the FAILED status. OPTIONAL */ error?: StorageDatabasecenterPartnerapiV1mainOperationError; /** The time the backup operation started. REQUIRED */ startTime?: string; /** The status of this run. REQUIRED */ status?: 'STATUS_UNSPECIFIED' | 'SUCCESSFUL' | 'FAILED'; } interface StorageDatabasecenterPartnerapiV1mainCompliance { /** Industry-wide compliance standards or benchmarks, such as CIS, PCI, and OWASP. */ standard?: string; /** Version of the standard or benchmark, for example, 1.1 */ version?: string; } interface StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData { /** Required. Full Resource name of the source resource. */ fullResourceName?: string; /** Required. Last time signal was refreshed */ lastRefreshTime?: string; /** Database resource id. */ resourceId?: StorageDatabasecenterPartnerapiV1mainDatabaseResourceId; /** Signal data for boolean signals. */ signalBoolValue?: boolean; /** Required. Signal type of the signal */ signalType?: | 'SIGNAL_TYPE_UNSPECIFIED' | 'SIGNAL_TYPE_OUTDATED_MINOR_VERSION' | 'SIGNAL_TYPE_DATABASE_AUDITING_DISABLED' | 'SIGNAL_TYPE_NO_ROOT_PASSWORD' | 'SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS' | 'SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS' | 'SIGNAL_TYPE_EXTENDED_SUPPORT' | 'SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY' | 'SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE' | 'SIGNAL_TYPE_LAST_BACKUP_OLD' | 'SIGNAL_TYPE_NOT_PROTECTED_BY_AUTOMATIC_FAILOVER'; } interface StorageDatabasecenterPartnerapiV1mainCustomMetadataData { /** Metadata for individual internal resources in an instance. e.g. spanner instance can have multiple databases with unique configuration. */ internalResourceMetadata?: StorageDatabasecenterPartnerapiV1mainInternalResourceMetadata[]; } interface StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed { /** BackupDR metadata is used to ingest metadata from BackupDR. */ backupdrMetadata?: StorageDatabasecenterPartnerapiV1mainBackupDRMetadata; /** Config based signal data is used to ingest signals that are generated based on the configuration of the database resource. */ configBasedSignalData?: StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData; /** Database resource signal data is used to ingest signals from database resource signal feeds. */ databaseResourceSignalData?: StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData; /** Required. Timestamp when feed is generated. */ feedTimestamp?: string; /** Required. Type feed to be ingested into condor */ feedType?: | 'FEEDTYPE_UNSPECIFIED' | 'RESOURCE_METADATA' | 'OBSERVABILITY_DATA' | 'SECURITY_FINDING_DATA' | 'RECOMMENDATION_SIGNAL_DATA' | 'CONFIG_BASED_SIGNAL_DATA' | 'BACKUPDR_METADATA' | 'DATABASE_RESOURCE_SIGNAL_DATA'; observabilityMetricData?: StorageDatabasecenterPartnerapiV1mainObservabilityMetricData; recommendationSignalData?: StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData; resourceHealthSignalData?: StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData; /** Primary key associated with the Resource. resource_id is available in individual feed level as well. */ resourceId?: StorageDatabasecenterPartnerapiV1mainDatabaseResourceId; resourceMetadata?: StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata; /** Optional. If true, the feed won't be ingested by DB Center. This indicates that the feed is intentionally skipped. For example, BackupDR feeds are only needed for resources integrated with DB Center (e.g., CloudSQL, AlloyDB). Feeds for non-integrated resources (e.g., Compute Engine, Persistent Disk) can be skipped. */ skipIngestion?: boolean; } interface StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData { /** Any other additional metadata */ additionalMetadata?: {[P in string]: any}; /** Industry standards associated with this signal; if this signal is an issue, that could be a violation of the associated industry standard(s). For example, AUTO_BACKUP_DISABLED signal is associated with CIS GCP 1.1, CIS GCP 1.2, CIS GCP 1.3, NIST 800-53 and ISO-27001 compliance standards. If a database resource does not have automated backup enable, it will violate these following industry standards. */ compliance?: StorageDatabasecenterPartnerapiV1mainCompliance[]; /** Description associated with signal */ description?: string; /** Required. The last time at which the event described by this signal took place */ eventTime?: string; /** The external-uri of the signal, using which more information about this signal can be obtained. In GCP, this will take user to SCC page to get more details about signals. */ externalUri?: string; /** This is used to identify the location of the resource. Example: "us-central1" */ location?: string; /** Required. The name of the signal, ex: PUBLIC_SQL_INSTANCE, SQL_LOG_ERROR_VERBOSITY etc. */ name?: string; /** Cloud provider name. Ex: GCP/AWS/Azure/OnPrem/SelfManaged */ provider?: | 'PROVIDER_UNSPECIFIED' | 'GCP' | 'AWS' | 'AZURE' | 'ONPREM' | 'SELFMANAGED' | 'PROVIDER_OTHER'; /** Closest parent container of this resource. In GCP, 'container' refers to a Cloud Resource Manager project. It must be resource name of a Cloud Resource Manager project with the format of "provider//", such as "projects/123". For GCP provided resources, number should be project number. */ resourceContainer?: string; /** Required. Database resource name associated with the signal. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel */ resourceName?: string; /** Required. The class of the signal, such as if it's a THREAT or VULNERABILITY. */ signalClass?: | 'CLASS_UNSPECIFIED' | 'THREAT' | 'VULNERABILITY' | 'MISCONFIGURATION' | 'OBSERVATION' | 'ERROR'; /** Required. Unique identifier for the signal. This is an unique id which would be mainatined by partner to identify a signal. */ signalId?: string; /** The severity of the signal, such as if it's a HIGH or LOW severity. */ signalSeverity?: 'SIGNAL_SEVERITY_UNSPECIFIED' | 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW'; /** Required. Type of signal, for example, `AVAILABLE_IN_MULTIPLE_ZONES`, `LOGGING_MOST_ERRORS`, etc. */ signalType?: | 'SIGNAL_TYPE_UNSPECIFIED' | 'SIGNAL_TYPE_NOT_PROTECTED_BY_AUTOMATIC_FAILOVER' | 'SIGNAL_TYPE_GROUP_NOT_REPLICATING_ACROSS_REGIONS' | 'SIGNAL_TYPE_NOT_AVAILABLE_IN_MULTIPLE_ZONES' | 'SIGNAL_TYPE_NOT_AVAILABLE_IN_MULTIPLE_REGIONS' | 'SIGNAL_TYPE_NO_PROMOTABLE_REPLICA' | 'SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY' | 'SIGNAL_TYPE_SHORT_BACKUP_RETENTION' | 'SIGNAL_TYPE_LAST_BACKUP_FAILED' | 'SIGNAL_TYPE_LAST_BACKUP_OLD' | 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0' | 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3' | 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2' | 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1' | 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0' | 'SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0' | 'SIGNAL_TYPE_VIOLATES_NIST_800_53' | 'SIGNAL_TYPE_VIOLATES_NIST_800_53_R5' | 'SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0' | 'SIGNAL_TYPE_VIOLATES_ISO_27001' | 'SIGNAL_TYPE_VIOLATES_ISO_27001_V2022' | 'SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1' | 'SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0' | 'SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4' | 'SIGNAL_TYPE_VIOLATES_HIPAA' | 'SIGNAL_TYPE_VIOLATES_SOC2_V2017' | 'SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING' | 'SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED' | 'SIGNAL_TYPE_VERBOSE_ERROR_LOGGING' | 'SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED' | 'SIGNAL_TYPE_LOGGING_MOST_ERRORS' | 'SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS' | 'SIGNAL_TYPE_MINIMAL_ERROR_LOGGING' | 'SIGNAL_TYPE_QUERY_STATISTICS_LOGGED' | 'SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME' | 'SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATISTICS' | 'SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATISTICS' | 'SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS' | 'SIGNAL_TYPE_LOGGING_QUERY_STATISTICS' | 'SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES' | 'SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED' | 'SIGNAL_TYPE_USER_OPTIONS_CONFIGURED' | 'SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS' | 'SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS' | 'SIGNAL_TYPE_NO_ROOT_PASSWORD' | 'SIGNAL_TYPE_WEAK_ROOT_PASSWORD' | 'SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED' | 'SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED' | 'SIGNAL_TYPE_EXPOSED_BY_OWNERSHIP_CHAINING' | 'SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS' | 'SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS' | 'SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED' | 'SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED' | 'SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO' | 'SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS' | 'SIGNAL_TYPE_DATABASE_NAMES_EXPOSED' | 'SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED' | 'SIGNAL_TYPE_PUBLIC_IP_ENABLED' | 'SIGNAL_TYPE_IDLE' | 'SIGNAL_TYPE_OVERPROVISIONED' | 'SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES' | 'SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES' | 'SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION' | 'SIGNAL_TYPE_UNDERPROVISIONED' | 'SIGNAL_TYPE_OUT_OF_DISK' | 'SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY' | 'SIGNAL_TYPE_DATABASE_AUDITING_DISABLED' | 'SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS' | 'SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP' | 'SIGNAL_TYPE_QUOTA_LIMIT' | 'SIGNAL_TYPE_NO_PASSWORD_POLICY' | 'SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT' | 'SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT' | 'SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT' | 'SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES' | 'SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES' | 'SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS' | 'SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET' | 'SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET' | 'SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM' | 'SIGNAL_TYPE_NO_USER_PASSWORD_POLICY' | 'SIGNAL_TYPE_HOT_NODE' | 'SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY' | 'SIGNAL_TYPE_RESOURCE_SUSPENDED' | 'SIGNAL_TYPE_EXPENSIVE_COMMANDS' | 'SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED' | 'SIGNAL_TYPE_NO_DELETION_PROTECTION' | 'SIGNAL_TYPE_INEFFICIENT_QUERY' | 'SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD' | 'SIGNAL_TYPE_MEMORY_LIMIT' | 'SIGNAL_TYPE_MAX_SERVER_MEMORY' | 'SIGNAL_TYPE_LARGE_ROWS' | 'SIGNAL_TYPE_HIGH_WRITE_PRESSURE' | 'SIGNAL_TYPE_HIGH_READ_PRESSURE' | 'SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED' | 'SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED' | 'SIGNAL_TYPE_OUTDATED_MINOR_VERSION' | 'SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED' | 'SIGNAL_TYPE_MANY_IDLE_CONNECTIONS' | 'SIGNAL_TYPE_REPLICATION_LAG' | 'SIGNAL_TYPE_OUTDATED_VERSION' | 'SIGNAL_TYPE_OUTDATED_CLIENT' | 'SIGNAL_TYPE_DATABOOST_DISABLED' | 'SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES' | 'SIGNAL_TYPE_EXTENDED_SUPPORT' | 'SIGNAL_TYPE_PERFORMANCE_KPI_CHANGE' | 'SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE'; state?: 'STATE_UNSPECIFIED' | 'ACTIVE' | 'RESOLVED' | 'MUTED'; } interface StorageDatabasecenterPartnerapiV1mainDatabaseResourceId { /** Required. Cloud provider name. Ex: GCP/AWS/Azure/OnPrem/SelfManaged */ provider?: | 'PROVIDER_UNSPECIFIED' | 'GCP' | 'AWS' | 'AZURE' | 'ONPREM' | 'SELFMANAGED' | 'PROVIDER_OTHER'; /** Optional. Needs to be used only when the provider is PROVIDER_OTHER. */ providerDescription?: string; /** Required. The type of resource this ID is identifying. Ex go/keep-sorted start alloydb.googleapis.com/Cluster, alloydb.googleapis.com/Instance, bigtableadmin.googleapis.com/Cluster, bigtableadmin.googleapis.com/Instance compute.googleapis.com/Instance firestore.googleapis.com/Database, redis.googleapis.com/Instance, redis.googleapis.com/Cluster, oracledatabase.googleapis.com/CloudExadataInfrastructure oracledatabase.googleapis.com/CloudVmCluster oracledatabase.googleapis.com/AutonomousDatabase spanner.googleapis.com/Instance, spanner.googleapis.com/Database, sqladmin.googleapis.com/Instance, go/keep-sorted end REQUIRED Please refer go/condor-common-datamodel */ resourceType?: string; /** Required. A service-local token that distinguishes this resource from other resources within the same service. */ uniqueId?: string; } interface StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata { /** Field to ingest additional metadata whichd does not support proto format. */ additionalMetadata?: {[P in string]: any}; /** Availability configuration for this instance */ availabilityConfiguration?: StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration; /** Backup configuration for this instance */ backupConfiguration?: StorageDatabasecenterPartnerapiV1mainBackupConfiguration; /** Optional. BackupDR Configuration for the resource. */ backupdrConfiguration?: StorageDatabasecenterPartnerapiV1mainBackupDRConfiguration; /** Latest backup run information for this instance */ backupRun?: StorageDatabasecenterPartnerapiV1mainBackupRun; /** The creation time of the resource, i.e. the time when resource is created and recorded in partner service. */ creationTime?: string; /** Current state of the instance. */ currentState?: | 'STATE_UNSPECIFIED' | 'HEALTHY' | 'UNHEALTHY' | 'SUSPENDED' | 'DELETED' | 'STATE_OTHER' | 'STOPPED'; /** Any custom metadata associated with the resource */ customMetadata?: StorageDatabasecenterPartnerapiV1mainCustomMetadataData; /** Optional. Edition represents whether the instance is ENTERPRISE or ENTERPRISE_PLUS. This information is core to Cloud SQL only and is used to identify the edition of the instance. */ edition?: | 'EDITION_UNSPECIFIED' | 'EDITION_ENTERPRISE' | 'EDITION_ENTERPRISE_PLUS' | 'EDITION_STANDARD'; /** Entitlements associated with the resource */ entitlements?: StorageDatabasecenterPartnerapiV1mainEntitlement[]; /** The state that the instance is expected to be in. For example, an instance state can transition to UNHEALTHY due to wrong patch update, while the expected state will remain at the HEALTHY. */ expectedState?: | 'STATE_UNSPECIFIED' | 'HEALTHY' | 'UNHEALTHY' | 'SUSPENDED' | 'DELETED' | 'STATE_OTHER' | 'STOPPED'; /** GCBDR configuration for the resource. */ gcbdrConfiguration?: StorageDatabasecenterPartnerapiV1mainGCBDRConfiguration; /** Required. Unique identifier for a Database resource */ id?: StorageDatabasecenterPartnerapiV1mainDatabaseResourceId; /** The type of the instance. Specified at creation time. */ instanceType?: | 'INSTANCE_TYPE_UNSPECIFIED' | 'SUB_RESOURCE_TYPE_UNSPECIFIED' | 'PRIMARY' | 'SECONDARY' | 'READ_REPLICA' | 'OTHER' | 'SUB_RESOURCE_TYPE_PRIMARY' | 'SUB_RESOURCE_TYPE_SECONDARY' | 'SUB_RESOURCE_TYPE_READ_REPLICA' | 'SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY' | 'SUB_RESOURCE_TYPE_READ_POOL' | 'SUB_RESOURCE_TYPE_RESERVATION' | 'SUB_RESOURCE_TYPE_DATASET' | 'SUB_RESOURCE_TYPE_OTHER'; /** Field to ingest additional metadata which support proto format. */ internalAdditionalMetadata?: {[P in string]: any}; /** Optional. Private and public IP address of the resource. */ ipAddress?: StorageDatabasecenterPartnerapiV1mainIpAddress; /** Optional. Whether deletion protection is enabled for this resource. */ isDeletionProtectionEnabled?: boolean; /** The resource location. REQUIRED */ location?: string; /** Machine configuration for this resource. */ machineConfiguration?: StorageDatabasecenterPartnerapiV1mainMachineConfiguration; /** Optional. Maintenance info for the resource. */ maintenanceInfo?: StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo; /** Optional. The modes of the database resource. */ modes?: | 'MODE_UNSPECIFIED' | 'MODE_NATIVE' | 'MODE_MONGODB_COMPATIBLE' | 'MODE_DATASTORE'[]; /** 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. */ primaryResourceId?: StorageDatabasecenterPartnerapiV1mainDatabaseResourceId; /** Primary resource location. REQUIRED if the immediate parent exists when first time resource is getting ingested, otherwise optional. */ primaryResourceLocation?: string; /** The product this resource represents. */ product?: StorageDatabasecenterProtoCommonProduct; /** Closest parent Cloud Resource Manager container of this resource. It must be resource name of a Cloud Resource Manager project with the format of "/", such as "projects/123". For GCP provided resources, number should be project number. */ resourceContainer?: string; /** Optional. List of resource flags for the database resource. */ resourceFlags?: StorageDatabasecenterPartnerapiV1mainResourceFlags[]; /** Required. Different from DatabaseResourceId.unique_id, a resource name can be reused over time. That is, after a resource named "ABC" is deleted, the name "ABC" can be used to to create a new resource within the same source. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel */ resourceName?: string; /** Optional. Suspension reason for the resource. */ suspensionReason?: | 'SUSPENSION_REASON_UNSPECIFIED' | 'WIPEOUT_HIDE_EVENT' | 'WIPEOUT_PURGE_EVENT' | 'BILLING_DISABLED' | 'ABUSER_DETECTED' | 'ENCRYPTION_KEY_INACCESSIBLE' | 'REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE'; /** Optional. Tags associated with this resources. */ tagsSet?: StorageDatabasecenterPartnerapiV1mainTags; /** The time at which the resource was updated and recorded at partner service. */ updationTime?: string; /** User-provided labels associated with the resource */ userLabelSet?: StorageDatabasecenterPartnerapiV1mainUserLabels; /** The resource zone. This is only applicable for zonal resources and will be empty for regional and multi-regional resources. */ zone?: string; } interface StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData { /** Optional. Any other additional metadata specific to recommendation */ additionalMetadata?: {[P in string]: any}; /** Required. last time recommendationw as refreshed */ lastRefreshTime?: string; /** Required. Recommendation state */ recommendationState?: | 'UNSPECIFIED' | 'ACTIVE' | 'CLAIMED' | 'SUCCEEDED' | 'FAILED' | 'DISMISSED'; /** Required. Name of recommendation. Examples: organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876 */ recommender?: string; /** Required. ID of recommender. Examples: "google.cloudsql.instance.PerformanceRecommender" */ recommenderId?: string; /** Required. Contains an identifier for a subtype of recommendations produced for the same recommender. Subtype is a function of content and impact, meaning a new subtype might be added when significant changes to `content` or `primary_impact.category` are introduced. See the Recommenders section to see a list of subtypes for a given Recommender. Examples: For recommender = "google.cloudsql.instance.PerformanceRecommender", recommender_subtype can be "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" */ recommenderSubtype?: string; /** Required. Database resource name associated with the signal. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel */ resourceName?: string; /** Required. Type of signal, for example, `SIGNAL_TYPE_IDLE`, `SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES`, etc. */ signalType?: | 'SIGNAL_TYPE_UNSPECIFIED' | 'SIGNAL_TYPE_NOT_PROTECTED_BY_AUTOMATIC_FAILOVER' | 'SIGNAL_TYPE_GROUP_NOT_REPLICATING_ACROSS_REGIONS' | 'SIGNAL_TYPE_NOT_AVAILABLE_IN_MULTIPLE_ZONES' | 'SIGNAL_TYPE_NOT_AVAILABLE_IN_MULTIPLE_REGIONS' | 'SIGNAL_TYPE_NO_PROMOTABLE_REPLICA' | 'SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY' | 'SIGNAL_TYPE_SHORT_BACKUP_RETENTION' | 'SIGNAL_TYPE_LAST_BACKUP_FAILED' | 'SIGNAL_TYPE_LAST_BACKUP_OLD' | 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0' | 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3' | 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2' | 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1' | 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0' | 'SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0' | 'SIGNAL_TYPE_VIOLATES_NIST_800_53' | 'SIGNAL_TYPE_VIOLATES_NIST_800_53_R5' | 'SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0' | 'SIGNAL_TYPE_VIOLATES_ISO_27001' | 'SIGNAL_TYPE_VIOLATES_ISO_27001_V2022' | 'SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1' | 'SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0' | 'SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4' | 'SIGNAL_TYPE_VIOLATES_HIPAA' | 'SIGNAL_TYPE_VIOLATES_SOC2_V2017' | 'SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING' | 'SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED' | 'SIGNAL_TYPE_VERBOSE_ERROR_LOGGING' | 'SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED' | 'SIGNAL_TYPE_LOGGING_MOST_ERRORS' | 'SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS' | 'SIGNAL_TYPE_MINIMAL_ERROR_LOGGING' | 'SIGNAL_TYPE_QUERY_STATISTICS_LOGGED' | 'SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME' | 'SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATISTICS' | 'SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATISTICS' | 'SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS' | 'SIGNAL_TYPE_LOGGING_QUERY_STATISTICS' | 'SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES' | 'SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED' | 'SIGNAL_TYPE_USER_OPTIONS_CONFIGURED' | 'SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS' | 'SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS' | 'SIGNAL_TYPE_NO_ROOT_PASSWORD' | 'SIGNAL_TYPE_WEAK_ROOT_PASSWORD' | 'SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED' | 'SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED' | 'SIGNAL_TYPE_EXPOSED_BY_OWNERSHIP_CHAINING' | 'SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS' | 'SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS' | 'SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED' | 'SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED' | 'SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO' | 'SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS' | 'SIGNAL_TYPE_DATABASE_NAMES_EXPOSED' | 'SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED' | 'SIGNAL_TYPE_PUBLIC_IP_ENABLED' | 'SIGNAL_TYPE_IDLE' | 'SIGNAL_TYPE_OVERPROVISIONED' | 'SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES' | 'SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES' | 'SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION' | 'SIGNAL_TYPE_UNDERPROVISIONED' | 'SIGNAL_TYPE_OUT_OF_DISK' | 'SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY' | 'SIGNAL_TYPE_DATABASE_AUDITING_DISABLED' | 'SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS' | 'SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP' | 'SIGNAL_TYPE_QUOTA_LIMIT' | 'SIGNAL_TYPE_NO_PASSWORD_POLICY' | 'SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT' | 'SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT' | 'SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT' | 'SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES' | 'SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES' | 'SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS' | 'SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET' | 'SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET' | 'SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM' | 'SIGNAL_TYPE_NO_USER_PASSWORD_POLICY' | 'SIGNAL_TYPE_HOT_NODE' | 'SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY' | 'SIGNAL_TYPE_RESOURCE_SUSPENDED' | 'SIGNAL_TYPE_EXPENSIVE_COMMANDS' | 'SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED' | 'SIGNAL_TYPE_NO_DELETION_PROTECTION' | 'SIGNAL_TYPE_INEFFICIENT_QUERY' | 'SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD' | 'SIGNAL_TYPE_MEMORY_LIMIT' | 'SIGNAL_TYPE_MAX_SERVER_MEMORY' | 'SIGNAL_TYPE_LARGE_ROWS' | 'SIGNAL_TYPE_HIGH_WRITE_PRESSURE' | 'SIGNAL_TYPE_HIGH_READ_PRESSURE' | 'SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED' | 'SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED' | 'SIGNAL_TYPE_OUTDATED_MINOR_VERSION' | 'SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED' | 'SIGNAL_TYPE_MANY_IDLE_CONNECTIONS' | 'SIGNAL_TYPE_REPLICATION_LAG' | 'SIGNAL_TYPE_OUTDATED_VERSION' | 'SIGNAL_TYPE_OUTDATED_CLIENT' | 'SIGNAL_TYPE_DATABOOST_DISABLED' | 'SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES' | 'SIGNAL_TYPE_EXTENDED_SUPPORT' | 'SIGNAL_TYPE_PERFORMANCE_KPI_CHANGE' | 'SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE'; } interface StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData { /** Deprecated: Use signal_metadata_list instead. */ backupRun?: StorageDatabasecenterPartnerapiV1mainBackupRun; /** Required. Full Resource name of the source resource. */ fullResourceName?: string; /** Required. Last time signal was refreshed */ lastRefreshTime?: string; /** Required. Resource location. */ location?: string; /** Database resource id. */ resourceId?: StorageDatabasecenterPartnerapiV1mainDatabaseResourceId; /** Deprecated: Use signal_metadata_list instead. */ signalBoolValue?: boolean; /** This will support array of OneOf signal metadata information for a given signal type. */ signalMetadataList?: StorageDatabasecenterPartnerapiV1mainSignalMetadata[]; /** Required. Output only. Signal state of the signal */ signalState?: 'SIGNAL_STATE_UNSPECIFIED' | 'ACTIVE' | 'INACTIVE' | 'DISMISSED'; /** Required. Signal type of the signal */ signalType?: | 'SIGNAL_TYPE_UNSPECIFIED' | 'SIGNAL_TYPE_OUTDATED_MINOR_VERSION' | 'SIGNAL_TYPE_DATABASE_AUDITING_DISABLED' | 'SIGNAL_TYPE_NO_ROOT_PASSWORD' | 'SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS' | 'SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS' | 'SIGNAL_TYPE_EXTENDED_SUPPORT' | 'SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY' | 'SIGNAL_TYPE_VERSION_NEARING_END_OF_LIFE' | 'SIGNAL_TYPE_LAST_BACKUP_OLD' | 'SIGNAL_TYPE_NOT_PROTECTED_BY_AUTOMATIC_FAILOVER'; } interface StorageDatabasecenterPartnerapiV1mainEntitlement { /** The current state of user's accessibility to a feature/benefit. */ entitlementState?: 'ENTITLEMENT_STATE_UNSPECIFIED' | 'ENTITLED' | 'REVOKED'; /** An enum that represents the type of this entitlement. */ type?: 'ENTITLEMENT_TYPE_UNSPECIFIED' | 'GEMINI' | 'NATIVE' | 'GCA_STANDARD'; } interface StorageDatabasecenterPartnerapiV1mainGCBDRConfiguration { /** Whether the resource is managed by GCBDR. */ gcbdrManaged?: boolean; } interface StorageDatabasecenterPartnerapiV1mainInternalResourceMetadata { /** Backup configuration for this database */ backupConfiguration?: StorageDatabasecenterPartnerapiV1mainBackupConfiguration; /** Information about the last backup attempt for this database */ backupRun?: StorageDatabasecenterPartnerapiV1mainBackupRun; /** Whether deletion protection is enabled for this internal resource. */ isDeletionProtectionEnabled?: boolean; product?: StorageDatabasecenterProtoCommonProduct; resourceId?: StorageDatabasecenterPartnerapiV1mainDatabaseResourceId; /** Required. internal resource name for spanner this will be database name e.g."spanner.googleapis.com/projects/123/abc/instances/inst1/databases/db1" */ resourceName?: string; } interface StorageDatabasecenterPartnerapiV1mainIpAddress { /** The private IP address assigned to the resource within a Virtual Private Cloud (VPC). This IP is only reachable from within the same VPC network. Stored in standard string format (e.g., "10.0.0.2"). */ privateIp?: string; /** The public IP address assigned to the resource. This IP is reachable from the internet. Stored in standard string format (e.g., "34.72.1.1"). */ publicIp?: string; } interface StorageDatabasecenterPartnerapiV1mainMachineConfiguration { /** Optional. Baseline slots for BigQuery Reservations. Baseline slots are in increments of 50. */ baselineSlots?: string; /** The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482) add proto validations again after bug fix. */ cpuCount?: number; /** Optional. Max slots for BigQuery Reservations. Max slots are in increments of 50. */ maxReservationSlots?: string; /** Memory size in bytes. TODO(b/342344482) add proto validations again after bug fix. */ memorySizeInBytes?: string; /** Optional. Number of shards (if applicable). */ shardCount?: number; /** Optional. The number of vCPUs. TODO(b/342344482) add proto validations again after bug fix. */ vcpuCount?: number; } interface StorageDatabasecenterPartnerapiV1mainObservabilityMetricData { /** Required. Type of aggregation performed on the metric. */ aggregationType?: 'AGGREGATION_TYPE_UNSPECIFIED' | 'PEAK' | 'P99' | 'P95' | 'CURRENT'; /** Required. Type of metric like CPU, Memory, etc. */ metricType?: | 'METRIC_TYPE_UNSPECIFIED' | 'CPU_UTILIZATION' | 'MEMORY_UTILIZATION' | 'NETWORK_CONNECTIONS' | 'STORAGE_UTILIZATION' | 'STORAGE_USED_BYTES' | 'NODE_COUNT' | 'MEMORY_USED_BYTES' | 'PROCESSING_UNIT_COUNT'; /** Required. The time the metric value was observed. */ observationTime?: string; /** Required. Database resource name associated with the signal. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel */ resourceName?: string; /** Required. Value of the metric type. */ value?: StorageDatabasecenterProtoCommonTypedValue; } interface StorageDatabasecenterPartnerapiV1mainOperationError { /** Identifies the specific error that occurred. REQUIRED */ code?: string; errorType?: | 'OPERATION_ERROR_TYPE_UNSPECIFIED' | 'KMS_KEY_ERROR' | 'DATABASE_ERROR' | 'STOCKOUT_ERROR' | 'CANCELLATION_ERROR' | 'SQLSERVER_ERROR' | 'INTERNAL_ERROR'; /** Additional information about the error encountered. REQUIRED */ message?: string; } interface StorageDatabasecenterPartnerapiV1mainResourceFlags { /** Optional. Key of the resource flag. */ key?: string; /** Optional. Value of the resource flag. */ value?: string; } interface StorageDatabasecenterPartnerapiV1mainResourceMaintenanceDenySchedule { /** Optional. Deny period end date. */ endDate?: GoogleTypeDate; /** Optional. The start date of the deny maintenance period. */ startDate?: GoogleTypeDate; /** Optional. Time in UTC when the deny period starts on start_date and ends on end_date. */ time?: GoogleTypeTimeOfDay; } interface StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo { /** Optional. The date when the current maintenance version was released. */ currentVersionReleaseDate?: GoogleTypeDate; /** Optional. List of Deny maintenance period for the database resource. */ denyMaintenanceSchedules?: StorageDatabasecenterPartnerapiV1mainResourceMaintenanceDenySchedule[]; /** Optional. Whether the instance is in stopped state. This information is temporarily being captured in maintenanceInfo, till STOPPED state is supported by DB Center. */ isInstanceStopped?: boolean; /** Optional. Maintenance window for the database resource. */ maintenanceSchedule?: StorageDatabasecenterPartnerapiV1mainResourceMaintenanceSchedule; /** Output only. Current state of maintenance on the database resource. */ maintenanceState?: | 'MAINTENANCE_STATE_UNSPECIFIED' | 'CREATING' | 'READY' | 'UPDATING' | 'REPAIRING' | 'DELETING' | 'ERROR'; /** Optional. Current Maintenance version of the database resource. Example: "MYSQL_8_0_41.R20250531.01_15" */ maintenanceVersion?: string; /** Optional. List of next available maintenance versions. */ nextAvailableMaintenanceVersions?: string[]; /** Optional. Upcoming maintenance for the database resource. This field is populated once SLM generates and publishes upcoming maintenance window. */ upcomingMaintenance?: StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance; } interface StorageDatabasecenterPartnerapiV1mainResourceMaintenanceSchedule { /** Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc. */ day?: | 'DAY_OF_WEEK_UNSPECIFIED' | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY'; /** Optional. Phase of the maintenance window. This is to capture order of maintenance. For example, for Cloud SQL resources, this can be used to capture if the maintenance window is in Week1, Week2, Week5, etc. Non production resources are usually part of early phase. For more details, refer to Cloud SQL resources - https://cloud.google.com/sql/docs/mysql/maintenance */ phase?: 'PHASE_UNSPECIFIED' | 'ANY' | 'WEEK1' | 'WEEK2' | 'WEEK5'; /** Optional. Preferred time to start the maintenance operation on the specified day. */ time?: GoogleTypeTimeOfDay; } interface StorageDatabasecenterPartnerapiV1mainRetentionSettings { /** Duration based retention period i.e. 172800 seconds (2 days) */ durationBasedRetention?: string; quantityBasedRetention?: number; /** The unit that 'retained_backups' represents. */ retentionUnit?: | 'RETENTION_UNIT_UNSPECIFIED' | 'COUNT' | 'TIME' | 'DURATION' | 'RETENTION_UNIT_OTHER'; timeBasedRetention?: string; /** Timestamp based retention period i.e. 2024-05-01T00:00:00Z */ timestampBasedRetentionTime?: string; } interface StorageDatabasecenterPartnerapiV1mainSignalMetadata { /** Signal data for backup runs. */ backupRun?: StorageDatabasecenterPartnerapiV1mainBackupRun; /** Signal data for boolean signals. */ signalBoolValue?: boolean; } interface StorageDatabasecenterPartnerapiV1mainTags { /** The Tag key/value mappings. */ tags?: {[P in string]: string}; } interface StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance { /** Optional. The end time of the upcoming maintenance. */ endTime?: string; /** Optional. The start time of the upcoming maintenance. */ startTime?: string; } interface StorageDatabasecenterPartnerapiV1mainUserLabels { labels?: {[P in string]: string}; } interface StorageDatabasecenterProtoCommonProduct { /** The specific engine that the underlying database is running. */ engine?: | 'ENGINE_UNSPECIFIED' | 'ENGINE_MYSQL' | 'MYSQL' | 'ENGINE_POSTGRES' | 'POSTGRES' | 'ENGINE_SQL_SERVER' | 'SQL_SERVER' | 'ENGINE_NATIVE' | 'NATIVE' | 'ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT' | 'ENGINE_CLOUD_SPANNER_WITH_GOOGLESQL_DIALECT' | 'ENGINE_MEMORYSTORE_FOR_REDIS' | 'ENGINE_MEMORYSTORE_FOR_REDIS_CLUSTER' | 'ENGINE_MEMORSTORE_FOR_VALKEY' | 'ENGINE_OTHER' | 'ENGINE_FIRESTORE_WITH_NATIVE_MODE' | 'ENGINE_FIRESTORE_WITH_DATASTORE_MODE' | 'ENGINE_FIRESTORE_WITH_MONGODB_COMPATIBILITY_MODE' | 'ENGINE_EXADATA_ORACLE' | 'ENGINE_ADB_SERVERLESS_ORACLE'; /** Minor version of the underlying database engine. Example values: For MySQL, it could be "8.0.32", "5.7.32" etc.. For Postgres, it could be "14.3", "15.3" etc.. */ minorVersion?: string; /** Type of specific database product. It could be CloudSQL, AlloyDB etc.. */ type?: | 'PRODUCT_TYPE_UNSPECIFIED' | 'PRODUCT_TYPE_CLOUD_SQL' | 'CLOUD_SQL' | 'PRODUCT_TYPE_ALLOYDB' | 'ALLOYDB' | 'PRODUCT_TYPE_SPANNER' | 'PRODUCT_TYPE_ON_PREM' | 'ON_PREM' | 'PRODUCT_TYPE_MEMORYSTORE' | 'PRODUCT_TYPE_BIGTABLE' | 'PRODUCT_TYPE_FIRESTORE' | 'PRODUCT_TYPE_COMPUTE_ENGINE' | 'PRODUCT_TYPE_ORACLE_ON_GCP' | 'PRODUCT_TYPE_BIGQUERY' | 'PRODUCT_TYPE_OTHER'; /** Version of the underlying database engine. Example values: For MySQL, it could be "8.0", "5.7" etc.. For Postgres, it could be "14", "15" etc.. */ version?: string; } interface StorageDatabasecenterProtoCommonTypedValue { /** For boolean value */ boolValue?: boolean; /** For double value */ doubleValue?: number; /** For integer value */ int64Value?: string; /** For string value */ stringValue?: string; } interface StringRestrictions { /** The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values. */ allowedValues?: string[]; } interface SupportedDatabaseFlag { /** Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified. */ acceptsMultipleValues?: boolean; /** The name of the database flag, e.g. "max_allowed_packets". The is a possibly key for the Instance.database_flags map field. */ flagName?: string; /** Restriction on INTEGER type value. */ integerRestrictions?: IntegerRestrictions; /** The name of the flag resource, following Google Cloud conventions, e.g.: * projects/{project}/locations/{location}/flags/{flag} This field currently has no semantic meaning. */ name?: string; /** The recommended value for an INTEGER flag. */ recommendedIntegerValue?: string; /** The recommended value for a STRING flag. */ recommendedStringValue?: string; /** Whether setting or updating this flag on an Instance requires a database restart. If a flag that requires database restart is set, the backend will automatically restart the database (making sure to satisfy any availability SLO's). */ requiresDbRestart?: boolean; /** The scope of the flag. */ scope?: 'SCOPE_UNSPECIFIED' | 'DATABASE' | 'CONNECTION_POOL'; /** Restriction on STRING type value. */ stringRestrictions?: StringRestrictions; /** Major database engine versions for which this flag is supported. */ supportedDbVersions?: | 'DATABASE_VERSION_UNSPECIFIED' | 'POSTGRES_13' | 'POSTGRES_14' | 'POSTGRES_15' | 'POSTGRES_16' | 'POSTGRES_17' | 'POSTGRES_18'[]; valueType?: 'VALUE_TYPE_UNSPECIFIED' | 'STRING' | 'INTEGER' | 'FLOAT' | 'NONE'; } interface SwitchoverClusterRequest { /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; } interface TimeBasedRetention { /** The retention period. */ retentionPeriod?: string; } interface TrialMetadata { /** End time of the trial cluster. */ endTime?: string; /** grace end time of the cluster. */ graceEndTime?: string; /** start time of the trial cluster. */ startTime?: string; /** Upgrade time of trial cluster to Standard cluster. */ upgradeTime?: string; } interface UpdatePolicy { /** Mode for updating the instance. */ mode?: 'MODE_UNSPECIFIED' | 'DEFAULT' | 'FORCE_APPLY'; } interface UpgradeClusterRequest { /** Optional. The current etag of the Cluster. If an etag is provided and does not match the current etag of the Cluster, upgrade will be blocked and an ABORTED error will be returned. */ etag?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; /** Required. The version the cluster is going to be upgraded to. */ version?: | 'DATABASE_VERSION_UNSPECIFIED' | 'POSTGRES_13' | 'POSTGRES_14' | 'POSTGRES_15' | 'POSTGRES_16' | 'POSTGRES_17' | 'POSTGRES_18'; } interface UpgradeClusterResponse { /** Array of upgrade details for the current cluster and all the secondary clusters associated with this cluster. */ clusterUpgradeDetails?: ClusterUpgradeDetails[]; /** A user friendly message summarising the upgrade operation details and the next steps for the user if there is any. */ message?: string; /** Status of upgrade operation. */ status?: | 'STATUS_UNSPECIFIED' | 'NOT_STARTED' | 'IN_PROGRESS' | 'SUCCESS' | 'FAILED' | 'PARTIAL_SUCCESS' | 'CANCEL_IN_PROGRESS' | 'CANCELLED'; } interface UpgradeClusterStatus { /** Whether the operation is cancellable. */ cancellable?: boolean; /** Source database major version. */ sourceVersion?: | 'DATABASE_VERSION_UNSPECIFIED' | 'POSTGRES_13' | 'POSTGRES_14' | 'POSTGRES_15' | 'POSTGRES_16' | 'POSTGRES_17' | 'POSTGRES_18'; /** Status of all upgrade stages. */ stages?: StageStatus[]; /** Cluster Major Version Upgrade state. */ state?: | 'STATUS_UNSPECIFIED' | 'NOT_STARTED' | 'IN_PROGRESS' | 'SUCCESS' | 'FAILED' | 'PARTIAL_SUCCESS' | 'CANCEL_IN_PROGRESS' | 'CANCELLED'; /** Target database major version. */ targetVersion?: | 'DATABASE_VERSION_UNSPECIFIED' | 'POSTGRES_13' | 'POSTGRES_14' | 'POSTGRES_15' | 'POSTGRES_16' | 'POSTGRES_17' | 'POSTGRES_18'; } interface User { /** Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions. */ databaseRoles?: string[]; /** Input only. If the user already exists and it has additional roles, keep them granted. */ keepExtraRoles?: boolean; /** Output only. Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}. */ name?: string; /** Input only. Password for the user. */ password?: string; /** Optional. Type of this user. */ userType?: 'USER_TYPE_UNSPECIFIED' | 'ALLOYDB_BUILT_IN' | 'ALLOYDB_IAM_USER'; } interface UserPassword { /** The initial password for the user. */ password?: string; /** The database username. */ user?: string; } interface WeeklySchedule { /** The days of the week to perform a backup. If this field is left empty, the default of every day of the week is used. */ daysOfWeek?: | 'DAY_OF_WEEK_UNSPECIFIED' | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY'[]; /** The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00). If no start times are provided, a single fixed start time is chosen arbitrarily. */ startTimes?: GoogleTypeTimeOfDay[]; } interface BackupsResource { /** Creates a new Backup in a given project and location. */ create(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** Required. ID of the requesting object. */ backupId?: string; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. Value for parent. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, the backend validates the request, but doesn't actually execute it. */ validateOnly?: boolean; /** Request body */ resource: Backup; }): Request; create( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** Required. ID of the requesting object. */ backupId?: string; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. Value for parent. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, the backend validates the request, but doesn't actually execute it. */ validateOnly?: boolean; }, body: Backup, ): Request; /** Deletes a single Backup. */ delete(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Optional. The current etag of the Backup. If an etag is provided and does not match the current etag of the Backup, deletion will be blocked and an ABORTED error will be returned. */ etag?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. Name of the resource. For the required format, see the comment on the Backup.name field. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, the backend validates the request, but doesn't actually execute it. */ validateOnly?: boolean; }): Request; /** Gets details of a single Backup. */ get(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. Name of the resource */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. The view of the backup to return. */ view?: | 'BACKUP_VIEW_UNSPECIFIED' | 'BACKUP_VIEW_BASIC' | 'BACKUP_VIEW_CLUSTER_DELETED'; }): Request; /** Lists Backups in a given project and location. */ list(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** Filtering results */ filter?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Hint for how to order the results */ orderBy?: string; /** Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */ pageSize?: number; /** A token identifying a page of results the server should return. */ pageToken?: string; /** Required. Parent value for ListBackupsRequest */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. The view of the backup to return. */ view?: | 'BACKUP_VIEW_UNSPECIFIED' | 'BACKUP_VIEW_BASIC' | 'BACKUP_VIEW_CLUSTER_DELETED'; }): Request; /** Updates the parameters of a single Backup. */ patch(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Optional. If set to true, update succeeds even if instance is not found. In that case, a new backup is created and `update_mask` is ignored. */ allowMissing?: boolean; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id} where the cluster and backup ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the backup resource name is the name of the parent resource: * projects/{project}/locations/{region} */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Optional. Field mask is used to specify the fields to be overwritten in the Backup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. */ updateMask?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, the backend validates the request, but doesn't actually execute it. */ validateOnly?: boolean; /** Request body */ resource: Backup; }): Request; patch( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Optional. If set to true, update succeeds even if instance is not found. In that case, a new backup is created and `update_mask` is ignored. */ allowMissing?: boolean; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id} where the cluster and backup ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the backup resource name is the name of the parent resource: * projects/{project}/locations/{region} */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Optional. Field mask is used to specify the fields to be overwritten in the Backup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. */ updateMask?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, the backend validates the request, but doesn't actually execute it. */ validateOnly?: boolean; }, body: Backup, ): Request; } interface InstancesResource { /** Creates a new Instance in a given project and location. */ create(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** Required. ID of the requesting object. */ instanceId?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. The name of the parent resource. For the required format, see the comment on the Instance.name field. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; /** Request body */ resource: Instance; }): Request; create( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** Required. ID of the requesting object. */ instanceId?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. The name of the parent resource. For the required format, see the comment on the Instance.name field. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; }, body: Instance, ): Request; /** Creates a new SECONDARY Instance in a given project and location. */ createsecondary(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** Required. ID of the requesting object. */ instanceId?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. The name of the parent resource. For the required format, see the comment on the Instance.name field. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; /** Request body */ resource: Instance; }): Request; createsecondary( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** Required. ID of the requesting object. */ instanceId?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. The name of the parent resource. For the required format, see the comment on the Instance.name field. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; }, body: Instance, ): Request; /** Deletes a single Instance. */ delete(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Optional. The current etag of the Instance. If an etag is provided and does not match the current etag of the Instance, deletion will be blocked and an ABORTED error will be returned. */ etag?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the Instance.name field. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; }): Request; /** Forces a Failover for a highly available instance. Failover promotes the HA standby instance as the new primary. Imperative only. */ failover(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the Instance.name field. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Request body */ resource: FailoverInstanceRequest; }): Request; failover( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the Instance.name field. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }, body: FailoverInstanceRequest, ): Request; /** Gets details of a single Instance. */ get(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the Instance.name field. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** The view of the instance to return. */ view?: | 'INSTANCE_VIEW_UNSPECIFIED' | 'INSTANCE_VIEW_BASIC' | 'INSTANCE_VIEW_FULL'; }): Request; /** Get instance metadata used for a connection. */ getConnectionInfo(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. The name of the parent resource. The required format is: projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance} */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }): Request; /** Injects fault in an instance. Imperative only. */ injectFault(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the Instance.name field. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Request body */ resource: InjectFaultRequest; }): Request; injectFault( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the Instance.name field. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }, body: InjectFaultRequest, ): Request; /** Lists Instances in a given project and location. */ list(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** Optional. Filtering results */ filter?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Optional. Hint for how to order the results */ orderBy?: string; /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */ pageSize?: number; /** A token identifying a page of results the server should return. */ pageToken?: string; /** Required. The name of the parent resource. For the required format, see the comment on the Instance.name field. Additionally, you can perform an aggregated list operation by specifying a value with one of the following formats: * projects/{project}/locations/-/clusters/- * projects/{project}/locations/{region}/clusters/- */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }): Request; /** Updates the parameters of a single Instance. */ patch(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Optional. If set to true, update succeeds even if instance is not found. In that case, a new instance is created and `update_mask` is ignored. */ allowMissing?: boolean; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Output only. The name of the instance resource with the format: * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} where the cluster and instance ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the instance resource name is the name of the parent resource: * projects/{project}/locations/{region}/clusters/{cluster_id} */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Optional. Field mask is used to specify the fields to be overwritten in the Instance resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. */ updateMask?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; /** Request body */ resource: Instance; }): Request; patch( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Optional. If set to true, update succeeds even if instance is not found. In that case, a new instance is created and `update_mask` is ignored. */ allowMissing?: boolean; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Output only. The name of the instance resource with the format: * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} where the cluster and instance ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the instance resource name is the name of the parent resource: * projects/{project}/locations/{region}/clusters/{cluster_id} */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Optional. Field mask is used to specify the fields to be overwritten in the Instance resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. */ updateMask?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; }, body: Instance, ): Request; /** Restart an Instance in a cluster. Imperative only. */ restart(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the Instance.name field. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Request body */ resource: RestartInstanceRequest; }): Request; restart( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the Instance.name field. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }, body: RestartInstanceRequest, ): Request; } interface UsersResource { /** Creates a new User in a given project, location, and cluster. */ create(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. Value for parent. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Required. ID of the requesting object. */ userId?: string; /** Optional. If set, the backend validates the request, but doesn't actually execute it. */ validateOnly?: boolean; /** Request body */ resource: User; }): Request; create( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. Value for parent. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Required. ID of the requesting object. */ userId?: string; /** Optional. If set, the backend validates the request, but doesn't actually execute it. */ validateOnly?: boolean; }, body: User, ): Request; /** Deletes a single User. */ delete(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the User.name field. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, the backend validates the request, but doesn't actually execute it. */ validateOnly?: boolean; }): Request<{}>; /** Gets details of a single User. */ get(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the User.name field. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }): Request; /** Lists Users in a given project and location. */ list(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** Optional. Filtering results */ filter?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Optional. Hint for how to order the results */ orderBy?: string; /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */ pageSize?: number; /** Optional. A token identifying a page of results the server should return. */ pageToken?: string; /** Required. Parent value for ListUsersRequest */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }): Request; /** Updates the parameters of a single User. */ patch(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Optional. Allow missing fields in the update mask. */ allowMissing?: boolean; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Output only. Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Optional. Field mask is used to specify the fields to be overwritten in the User resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. */ updateMask?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, the backend validates the request, but doesn't actually execute it. */ validateOnly?: boolean; /** Request body */ resource: User; }): Request; patch( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Optional. Allow missing fields in the update mask. */ allowMissing?: boolean; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Output only. Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Optional. Field mask is used to specify the fields to be overwritten in the User resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. */ updateMask?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, the backend validates the request, but doesn't actually execute it. */ validateOnly?: boolean; }, body: User, ): Request; } interface ClustersResource { /** Creates a new Cluster in a given project and location. */ create(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Required. ID of the requesting object. */ clusterId?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. The location of the new cluster. For the required format, see the comment on the Cluster.name field. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; /** Request body */ resource: Cluster; }): Request; create( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Required. ID of the requesting object. */ clusterId?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. The location of the new cluster. For the required format, see the comment on the Cluster.name field. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; }, body: Cluster, ): Request; /** Creates a cluster of type SECONDARY in the given location using the primary cluster as the source. */ createsecondary(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Required. ID of the requesting object (the secondary cluster). */ clusterId?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. The location of the new cluster. For the required format, see the comment on the Cluster.name field. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; /** Request body */ resource: Cluster; }): Request; createsecondary( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Required. ID of the requesting object (the secondary cluster). */ clusterId?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. The location of the new cluster. For the required format, see the comment on the Cluster.name field. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; }, body: Cluster, ): Request; /** Deletes a single Cluster. */ delete(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Optional. The current etag of the Cluster. If an etag is provided and does not match the current etag of the Cluster, deletion will be blocked and an ABORTED error will be returned. */ etag?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** Optional. Whether to cascade delete child instances for given cluster. */ force?: boolean; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the Cluster.name field. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; }): Request; /** Exports data from the cluster. Imperative only. */ export(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The resource name of the cluster. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Request body */ resource: ExportClusterRequest; }): Request; export( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The resource name of the cluster. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }, body: ExportClusterRequest, ): Request; /** Gets details of a single Cluster. */ get(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the Cluster.name field. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. The view of the cluster to return. Returns all default fields if not set. */ view?: | 'CLUSTER_VIEW_UNSPECIFIED' | 'CLUSTER_VIEW_BASIC' | 'CLUSTER_VIEW_CONTINUOUS_BACKUP'; }): Request; /** Imports data to the cluster. Imperative only. */ import(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The resource name of the cluster. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Request body */ resource: ImportClusterRequest; }): Request; import( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The resource name of the cluster. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }, body: ImportClusterRequest, ): Request; /** Lists Clusters in a given project and location. */ list(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** Optional. Filtering results */ filter?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Optional. Hint for how to order the results */ orderBy?: string; /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */ pageSize?: number; /** A token identifying a page of results the server should return. */ pageToken?: string; /** Required. The name of the parent resource. For the required format, see the comment on the Cluster.name field. Additionally, you can perform an aggregated list operation by specifying a value with the following format: * projects/{project}/locations/- */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }): Request; /** Updates the parameters of a single Cluster. */ patch(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Optional. If set to true, update succeeds even if cluster is not found. In that case, a new cluster is created and `update_mask` is ignored. */ allowMissing?: boolean; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Output only. The name of the cluster resource with the format: * projects/{project}/locations/{region}/clusters/{cluster_id} where the cluster ID segment should satisfy the regex expression `[a-z0-9-]+`. For more details see https://google.aip.dev/122. The prefix of the cluster resource name is the name of the parent resource: * projects/{project}/locations/{region} */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Optional. Field mask is used to specify the fields to be overwritten in the Cluster resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. */ updateMask?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; /** Request body */ resource: Cluster; }): Request; patch( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Optional. If set to true, update succeeds even if cluster is not found. In that case, a new cluster is created and `update_mask` is ignored. */ allowMissing?: boolean; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Output only. The name of the cluster resource with the format: * projects/{project}/locations/{region}/clusters/{cluster_id} where the cluster ID segment should satisfy the regex expression `[a-z0-9-]+`. For more details see https://google.aip.dev/122. The prefix of the cluster resource name is the name of the parent resource: * projects/{project}/locations/{region} */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Optional. Field mask is used to specify the fields to be overwritten in the Cluster resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. */ updateMask?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, performs request validation, for example, permission checks and any other type of validation, but does not actually execute the create request. */ validateOnly?: boolean; }, body: Cluster, ): Request; /** Promotes a SECONDARY cluster. This turns down replication from the PRIMARY cluster and promotes a secondary cluster into its own standalone cluster. Imperative only. */ promote(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the Cluster.name field */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Request body */ resource: PromoteClusterRequest; }): Request; promote( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the Cluster.name field */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }, body: PromoteClusterRequest, ): Request; /** Creates a new Cluster in a given project and location, with a volume restored from the provided source, either a backup ID or a point-in-time and a source cluster. */ restore(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. The name of the parent resource. For the required format, see the comment on the Cluster.name field. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Request body */ resource: RestoreClusterRequest; }): Request; restore( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. The name of the parent resource. For the required format, see the comment on the Cluster.name field. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }, body: RestoreClusterRequest, ): Request; /** Restores an AlloyDB cluster from a CloudSQL resource. */ restoreFromCloudSQL(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. The location of the new cluster. For the required format, see the comment on Cluster.name field. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Request body */ resource: RestoreFromCloudSQLRequest; }): Request; restoreFromCloudSQL( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. The location of the new cluster. For the required format, see the comment on Cluster.name field. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }, body: RestoreFromCloudSQLRequest, ): Request; /** Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this newly promoted cluster. */ switchover(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the Cluster.name field */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Request body */ resource: SwitchoverClusterRequest; }): Request; switchover( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the Cluster.name field */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }, body: SwitchoverClusterRequest, ): Request; /** Upgrades a single Cluster. Imperative only. */ upgrade(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The resource name of the cluster. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Request body */ resource: UpgradeClusterRequest; }): Request; upgrade( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The resource name of the cluster. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }, body: UpgradeClusterRequest, ): Request; instances: InstancesResource; users: UsersResource; } interface EndpointsResource { /** Creates a new Endpoint in a given project and location. */ create(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Required. ID of the requesting object. */ endpointId?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. The location of the new endpoint. For the required format, see the comment on the Endpoint.name field. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, the backend validates the request, but doesn't actually execute it. */ validateOnly?: boolean; /** Request body */ resource: Endpoint; }): Request; create( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Required. ID of the requesting object. */ endpointId?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Required. The location of the new endpoint. For the required format, see the comment on the Endpoint.name field. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, the backend validates the request, but doesn't actually execute it. */ validateOnly?: boolean; }, body: Endpoint, ): Request; /** Deletes a single Endpoint. */ delete(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Optional. The current etag of the Endpoint. If an etag is provided and does not match the current etag of the Endpoint, deletion will be blocked and an ABORTED error will be returned. */ etag?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the Endpoint.name field. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, the backend validates the request, but doesn't actually execute it. */ validateOnly?: boolean; }): Request; /** Gets details of a single Endpoint. */ get(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Required. The name of the resource. For the required format, see the comment on the Endpoint.name field. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }): Request; /** Lists Endpoints in a given project and location. */ list(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** Optional. Filtering results. This field is currently not supported, its value will be ignored if passed. */ filter?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Optional. Hint for how to order the results */ orderBy?: string; /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */ pageSize?: number; /** Optional. A page token, received from a previous `ListEndpoints` call. This should be provided to retrieve the subsequent page. This field is currently not supported, its value will be ignored if passed. */ pageToken?: string; /** Required. The name of the parent resource. For the required format, see the comment on the Endpoint.name field. Additionally, you can perform an aggregated list operation by specifying a value with the following format: * projects/{project}/locations/- */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }): Request; /** Updates the parameters of a single Endpoint. */ patch(request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Optional. If set to true, update succeeds even if endpoint is not found. In that case, a new endpoint is created and `update_mask` is ignored. */ allowMissing?: boolean; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Output only. Identifier. The name of the endpoint resource with the format: * projects/{project}/locations/{region}/endpoints/{endpoint_id} where the endpoint ID segment should satisfy the regex expression `[a-z0-9-]+`. For more details see https://google.aip.dev/122. The prefix of the endpoint resource name is the name of the parent resource: * projects/{project}/locations/{region} */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Optional. Field mask is used to specify the fields to be overwritten in the Endpoint resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. */ updateMask?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, the backend validates the request, but doesn't actually execute it. */ validateOnly?: boolean; /** Request body */ resource: Endpoint; }): Request; patch( request: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Optional. If set to true, update succeeds even if endpoint is not found. In that case, a new endpoint is created and `update_mask` is ignored. */ allowMissing?: boolean; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Output only. Identifier. The name of the endpoint resource with the format: * projects/{project}/locations/{region}/endpoints/{endpoint_id} where the endpoint ID segment should satisfy the regex expression `[a-z0-9-]+`. For more details see https://google.aip.dev/122. The prefix of the endpoint resource name is the name of the parent resource: * projects/{project}/locations/{region} */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since 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 the original operation with the same request ID was received, and if so, ignores 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). */ requestId?: string; /** Optional. Field mask is used to specify the fields to be overwritten in the Endpoint resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. */ updateMask?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** Optional. If set, the backend validates the request, but doesn't actually execute it. */ validateOnly?: boolean; }, body: Endpoint, ): Request; } interface OperationsResource { /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */ cancel(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** The name of the operation resource to be cancelled. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }): Request<{}>; /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */ delete(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** The name of the operation resource to be deleted. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }): Request<{}>; /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */ get(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** The name of the operation resource. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }): Request; /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */ list(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** The standard list filter. */ filter?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** The name of the operation's parent resource. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** The standard list page size. */ pageSize?: number; /** The standard list page token. */ pageToken?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. */ returnPartialSuccess?: boolean; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }): Request; } interface SupportedDatabaseFlagsResource { /** Lists SupportedDatabaseFlags for a given project and location. */ list(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. */ pageSize?: number; /** A token identifying a page of results the server should return. */ pageToken?: string; /** Required. The name of the parent resource. The required format is: * projects/{project}/locations/{location} Regardless of the parent specified here, as long it is contains a valid project and location, the service will return a static list of supported flags resources. Note that we do not yet support region-specific flags. */ parent: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Optional. The scope for which supported flags are requested. If not specified, default is DATABASE. */ scope?: 'SCOPE_UNSPECIFIED' | 'DATABASE' | 'CONNECTION_POOL'; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }): Request; } interface LocationsResource { /** Gets information about a location. */ get(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** Resource name for the location. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }): Request; /** Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. */ list(request?: { /** V1 error format. */ '$.xgafv'?: '1' | '2'; /** OAuth access token. */ access_token?: string; /** Data format for response. */ alt?: 'json' | 'media' | 'proto'; /** JSONP */ callback?: string; /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */ extraLocationTypes?: string | string[]; /** Selector specifying which fields to include in a partial response. */ fields?: string; /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). */ filter?: string; /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** The resource that owns the locations collection, if applicable. */ name: string; /** OAuth 2.0 token for the current user. */ oauth_token?: string; /** The maximum number of results to return. If not set, the service selects a default. */ pageSize?: number; /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */ pageToken?: string; /** Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; /** Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; }): Request; backups: BackupsResource; clusters: ClustersResource; endpoints: EndpointsResource; operations: OperationsResource; supportedDatabaseFlags: SupportedDatabaseFlagsResource; } interface ProjectsResource { locations: LocationsResource; } const projects: ProjectsResource; } }