Skip to content

Commit

Permalink
feat(all): auto-regenerate discovery clients (#3018)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored Feb 15, 2025
1 parent 2aaef90 commit 769817f
Show file tree
Hide file tree
Showing 49 changed files with 3,028 additions and 255 deletions.
186 changes: 176 additions & 10 deletions alloydb/v1alpha/alloydb-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,34 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
"import": {
"description": "Imports data to the cluster. Imperative only.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:import",
"httpMethod": "POST",
"id": "alloydb.projects.locations.clusters.import",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The resource name of the cluster.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1alpha/{+name}:import",
"request": {
"$ref": "ImportClusterRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists Clusters in a given project and location.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/clusters",
Expand Down Expand Up @@ -1573,7 +1601,7 @@
}
}
},
"revision": "20250122",
"revision": "20250205",
"rootUrl": "https://alloydb.googleapis.com/",
"schemas": {
"AuthorizedNetwork": {
Expand Down Expand Up @@ -2383,6 +2411,36 @@
},
"type": "object"
},
"CsvImportOptions": {
"description": "Options for importing data in CSV format.",
"id": "CsvImportOptions",
"properties": {
"columns": {
"description": "Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.",
"items": {
"type": "string"
},
"type": "array"
},
"escapeCharacter": {
"description": "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.",
"type": "string"
},
"fieldDelimiter": {
"description": "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.",
"type": "string"
},
"quoteCharacter": {
"description": "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.",
"type": "string"
},
"table": {
"description": "Required. The database table to import CSV file into.",
"type": "string"
}
},
"type": "object"
},
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
"id": "Empty",
Expand Down Expand Up @@ -2582,6 +2640,33 @@
},
"type": "object"
},
"ImportClusterRequest": {
"description": "Import cluster request.",
"id": "ImportClusterRequest",
"properties": {
"csvImportOptions": {
"$ref": "CsvImportOptions",
"description": "Options for importing data in CSV format."
},
"database": {
"description": "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.",
"type": "string"
},
"gcsUri": {
"description": "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`.",
"type": "string"
},
"sqlImportOptions": {
"$ref": "SqlImportOptions",
"description": "Options for importing data in SQL format."
},
"user": {
"description": "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.",
"type": "string"
}
},
"type": "object"
},
"InjectFaultRequest": {
"description": "Message for triggering fault injection on an instance",
"id": "InjectFaultRequest",
Expand Down Expand Up @@ -3582,6 +3667,12 @@
},
"type": "object"
},
"SqlImportOptions": {
"description": "Options for importing data in SQL format.",
"id": "SqlImportOptions",
"properties": {},
"type": "object"
},
"SslConfig": {
"description": "SSL configuration.",
"id": "SslConfig",
Expand Down Expand Up @@ -4075,7 +4166,13 @@
"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_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"
],
"enumDeprecated": [
false,
Expand Down Expand Up @@ -4158,6 +4255,12 @@
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"enumDescriptions": [
Expand Down Expand Up @@ -4241,7 +4344,13 @@
"Detects if database instance data exported to a Cloud Storage bucket outside of the organization.",
"Detects if database instance data exported to a Cloud Storage bucket that is owned by the organization and is publicly accessible.",
"Detects if a database instance is using a weak password hash algorithm.",
"Detects if a database instance has no user password policy set."
"Detects if a database instance has no user password policy set.",
"Detects if a database instance/cluster has a hot node.",
"Detects if a database instance has no point in time recovery enabled.",
"Detects if a database instance/cluster is suspended.",
"Detects that expensive commands are being run on a database instance impacting overall performance.",
"Indicates that the instance does not have a maintenance policy configured.",
"Deletion Protection Disabled for the resource"
],
"type": "string"
},
Expand Down Expand Up @@ -4305,7 +4414,7 @@
"type": "object"
},
"StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata": {
"description": "Common model for database resource instance metadata. Next ID: 23",
"description": "Common model for database resource instance metadata. Next ID: 24",
"id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata",
"properties": {
"availabilityConfiguration": {
Expand Down Expand Up @@ -4406,6 +4515,7 @@
"SUB_RESOURCE_TYPE_PRIMARY",
"SUB_RESOURCE_TYPE_SECONDARY",
"SUB_RESOURCE_TYPE_READ_REPLICA",
"SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY",
"SUB_RESOURCE_TYPE_OTHER"
],
"enumDeprecated": [
Expand All @@ -4418,10 +4528,11 @@
false,
false,
false,
false,
false
],
"enumDescriptions": [
"",
"Unspecified.",
"For rest of the other categories.",
"A regular primary database instance.",
"A cluster or an instance acting as a secondary.",
Expand All @@ -4430,6 +4541,7 @@
"A regular primary database instance.",
"A cluster or an instance acting as a secondary.",
"An instance acting as a read-replica.",
"An instance acting as an external primary.",
"For rest of the other categories."
],
"type": "string"
Expand Down Expand Up @@ -4462,6 +4574,28 @@
"description": "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",
"type": "string"
},
"suspensionReason": {
"description": "Suspension reason for the resource.",
"enum": [
"SUSPENSION_REASON_UNSPECIFIED",
"WIPEOUT_HIDE_EVENT",
"WIPEOUT_PURGE_EVENT",
"BILLING_DISABLED",
"ABUSER_DETECTED",
"ENCRYPTION_KEY_INACCESSIBLE",
"REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE"
],
"enumDescriptions": [
"Suspension reason is unspecified.",
"Wipeout hide event.",
"Wipeout purge event.",
"Billing disabled for project",
"Abuse detected for resource",
"Encryption key inaccessible.",
"Replicated cluster encryption key inaccessible."
],
"type": "string"
},
"tagsSet": {
"$ref": "StorageDatabasecenterPartnerapiV1mainTags",
"description": "Optional. Tags associated with this resources."
Expand Down Expand Up @@ -4614,7 +4748,13 @@
"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_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"
],
"enumDeprecated": [
false,
Expand Down Expand Up @@ -4697,6 +4837,12 @@
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"enumDescriptions": [
Expand Down Expand Up @@ -4780,7 +4926,13 @@
"Detects if database instance data exported to a Cloud Storage bucket outside of the organization.",
"Detects if database instance data exported to a Cloud Storage bucket that is owned by the organization and is publicly accessible.",
"Detects if a database instance is using a weak password hash algorithm.",
"Detects if a database instance has no user password policy set."
"Detects if a database instance has no user password policy set.",
"Detects if a database instance/cluster has a hot node.",
"Detects if a database instance has no point in time recovery enabled.",
"Detects if a database instance/cluster is suspended.",
"Detects that expensive commands are being run on a database instance impacting overall performance.",
"Indicates that the instance does not have a maintenance policy configured.",
"Deletion Protection Disabled for the resource"
],
"type": "string"
}
Expand Down Expand Up @@ -4809,11 +4961,21 @@
"description": "An enum that represents the type of this entitlement.",
"enum": [
"ENTITLEMENT_TYPE_UNSPECIFIED",
"GEMINI"
"GEMINI",
"NATIVE",
"GCA_STANDARD"
],
"enumDeprecated": [
false,
true,
false,
false
],
"enumDescriptions": [
"",
"The root entitlement representing Gemini package ownership."
"The entitlement type is unspecified.",
"The root entitlement representing Gemini package ownership.This will no longer be supported in the future.",
"The entitlement representing Native Tier, This will be the default Entitlement going forward with GCA Enablement.",
"The entitlement representing GCA-Standard Tier."
],
"type": "string"
}
Expand All @@ -4832,6 +4994,10 @@
"$ref": "StorageDatabasecenterPartnerapiV1mainBackupRun",
"description": "Information about the last backup attempt for this database"
},
"isDeletionProtectionEnabled": {
"description": "Whether deletion protection is enabled for this internal resource.",
"type": "boolean"
},
"product": {
"$ref": "StorageDatabasecenterProtoCommonProduct"
},
Expand Down
Loading

0 comments on commit 769817f

Please sign in to comment.