Skip to content

Commit

Permalink
feat(all): auto-regenerate discovery clients (#2776)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored Sep 8, 2024
1 parent 11e2ff6 commit cc62887
Show file tree
Hide file tree
Showing 3 changed files with 595 additions and 6 deletions.
17 changes: 16 additions & 1 deletion cloudkms/v1/cloudkms-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,21 @@
"description": "Regional Endpoint",
"endpointUrl": "https://cloudkms.us-west4.rep.googleapis.com/",
"location": "us-west4"
},
{
"description": "Regional Endpoint",
"endpointUrl": "https://cloudkms.us-west8.rep.googleapis.com/",
"location": "us-west8"
},
{
"description": "Regional Endpoint",
"endpointUrl": "https://cloudkms.us-east5.rep.googleapis.com/",
"location": "us-east5"
},
{
"description": "Regional Endpoint",
"endpointUrl": "https://cloudkms.us-south1.rep.googleapis.com/",
"location": "us-south1"
}
],
"fullyEncodeReservedExpansion": true,
Expand Down Expand Up @@ -2112,7 +2127,7 @@
}
}
},
"revision": "20240808",
"revision": "20240903",
"rootUrl": "https://cloudkms.googleapis.com/",
"schemas": {
"AsymmetricDecryptRequest": {
Expand Down
164 changes: 160 additions & 4 deletions sqladmin/v1beta4/sqladmin-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,73 @@
},
"instances": {
"methods": {
"ListServerCertificates": {
"description": "Lists all versions of server certificates and certificate authorities (CAs) for the specified instance. There can be up to three sets of certs listed: the certificate that is currently in use, a future that has been added but not yet used to sign a certificate, and a certificate that has been rotated out.",
"flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/listServerCertificates",
"httpMethod": "GET",
"id": "sql.instances.ListServerCertificates",
"parameterOrder": [
"project",
"instance"
],
"parameters": {
"instance": {
"description": "Required. Cloud SQL instance ID. This does not include the project ID.",
"location": "path",
"required": true,
"type": "string"
},
"project": {
"description": "Required. Project ID of the project that contains the instance.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "sql/v1beta4/projects/{project}/instances/{instance}/listServerCertificates",
"response": {
"$ref": "InstancesListServerCertificatesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/sqlservice.admin"
]
},
"RotateServerCertificate": {
"description": "Rotates the server certificate version to one previously added with the addServerCertificate method. For instances not using Certificate Authority Service (CAS) server CA, please use RotateServerCa instead.",
"flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCertificate",
"httpMethod": "POST",
"id": "sql.instances.RotateServerCertificate",
"parameterOrder": [
"project",
"instance"
],
"parameters": {
"instance": {
"description": "Required. Cloud SQL instance ID. This does not include the project ID.",
"location": "path",
"required": true,
"type": "string"
},
"project": {
"description": "Required. Project ID of the project that contains the instance.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCertificate",
"request": {
"$ref": "InstancesRotateServerCertificateRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/sqlservice.admin"
]
},
"acquireSsrsLease": {
"description": "Acquire a lease for the setup of SQL Server Reporting Services (SSRS).",
"flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/acquireSsrsLease",
Expand Down Expand Up @@ -675,6 +742,38 @@
"https://www.googleapis.com/auth/sqlservice.admin"
]
},
"addServerCertificate": {
"description": "Add a new trusted server certificate version for the specified instance using Certificate Authority Service (CAS) server CA. Required to prepare for a certificate rotation. If a server certificate version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one certificate version waiting to be rotated in. For instances not using CAS server CA, please use AddServerCa instead.",
"flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/addServerCertificate",
"httpMethod": "POST",
"id": "sql.instances.addServerCertificate",
"parameterOrder": [
"project",
"instance"
],
"parameters": {
"instance": {
"description": "Required. Cloud SQL instance ID. This does not include the project ID.",
"location": "path",
"required": true,
"type": "string"
},
"project": {
"description": "Required. Project ID of the project that contains the instance.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "sql/v1beta4/projects/{project}/instances/{instance}/addServerCertificate",
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/sqlservice.admin"
]
},
"clone": {
"description": "Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart.",
"flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/clone",
Expand Down Expand Up @@ -2267,7 +2366,7 @@
}
}
},
"revision": "20240829",
"revision": "20240831",
"rootUrl": "https://sqladmin.googleapis.com/",
"schemas": {
"AclEntry": {
Expand Down Expand Up @@ -4455,6 +4554,35 @@
},
"type": "object"
},
"InstancesListServerCertificatesResponse": {
"description": "Instances ListServerCertificatess response.",
"id": "InstancesListServerCertificatesResponse",
"properties": {
"activeVersion": {
"description": "The `sha1_fingerprint` of the active certificate from `server_certs`.",
"type": "string"
},
"caCerts": {
"description": "List of server CA certificates for the instance.",
"items": {
"$ref": "SslCert"
},
"type": "array"
},
"kind": {
"description": "This is always `sql#instancesListServerCertificates`.",
"type": "string"
},
"serverCerts": {
"description": "List of server certificates for the instance, signed by the corresponding CA from the `ca_certs` list.",
"items": {
"$ref": "SslCert"
},
"type": "array"
}
},
"type": "object"
},
"InstancesReencryptRequest": {
"description": "Database Instance reencrypt request.",
"id": "InstancesReencryptRequest",
Expand Down Expand Up @@ -4488,6 +4616,17 @@
},
"type": "object"
},
"InstancesRotateServerCertificateRequest": {
"description": "Rotate Server Certificate request.",
"id": "InstancesRotateServerCertificateRequest",
"properties": {
"rotateServerCertificateContext": {
"$ref": "RotateServerCertificateContext",
"description": "Optional. Contains details about the rotate server CA operation."
}
},
"type": "object"
},
"InstancesTruncateLogRequest": {
"description": "Instance truncate log request.",
"id": "InstancesTruncateLogRequest",
Expand Down Expand Up @@ -5315,6 +5454,21 @@
},
"type": "object"
},
"RotateServerCertificateContext": {
"description": "Instance rotate server certificate context.",
"id": "RotateServerCertificateContext",
"properties": {
"kind": {
"description": "Optional. This is always `sql#rotateServerCertificateContext`.",
"type": "string"
},
"nextVersion": {
"description": "Optional. The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server certificate version.",
"type": "string"
}
},
"type": "object"
},
"Settings": {
"description": "Database instance settings.",
"id": "Settings",
Expand Down Expand Up @@ -5643,7 +5797,8 @@
"EXTENSIONS_NOT_ENABLED_IN_REPLICA",
"UNSUPPORTED_COLUMNS",
"USERS_NOT_CREATED_IN_REPLICA",
"UNSUPPORTED_SYSTEM_OBJECTS"
"UNSUPPORTED_SYSTEM_OBJECTS",
"UNSUPPORTED_TABLES_WITH_REPLICA_IDENTITY"
],
"enumDescriptions": [
"",
Expand All @@ -5666,7 +5821,7 @@
"The primary instance database parameter setup doesn't allow EM sync.",
"The gtid_mode is not supported, applicable for MySQL.",
"SQL Server Agent is not running.",
"The table definition is not support due to missing primary key or replica identity, applicable for postgres.",
"The table definition is not support due to missing primary key or replica identity, applicable for postgres. Note that this is a warning and won't block the migration.",
"The customer has a definer that will break EM setup.",
"SQL Server @@SERVERNAME does not match actual host name.",
"The primary instance has been setup and will fail the setup.",
Expand Down Expand Up @@ -5697,7 +5852,8 @@
"This error message indicates that the specified extensions are not enabled on destination instance. For example, before you can migrate data to the destination instance, you must enable the PGAudit extension on the instance.",
"The source database has generated columns that can't be migrated. Please change them to regular columns before migration.",
"The source database has users that aren't created in the replica. First, create all users, which are in the pg_user_mappings table of the source database, in the destination instance. Then, perform the migration.",
"The selected objects include system objects that aren't supported for migration."
"The selected objects include system objects that aren't supported for migration.",
"The source database has tables with the FULL or NOTHING replica identity. Before starting your migration, either remove the identity or change it to DEFAULT. Note that this is an error and will block the migration."
],
"type": "string"
}
Expand Down
Loading

0 comments on commit cc62887

Please sign in to comment.