Skip to content

Commit b72688c

Browse files
feat: Automated regeneration of SQLAdmin client (#12694)
Auto-created at 2024-12-12 13:17:00 +0000 using the toys pull request generator.
1 parent f04db1d commit b72688c

20 files changed

+140
-18
lines changed

clients/sql_admin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_sql_admin, "~> 0.69"}]
14+
[{:google_api_sql_admin, "~> 0.70"}]
1515
end
1616
```
1717

clients/sql_admin/lib/google_api/sql_admin/v1/api/instances.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Instances do
12111211
* `:quotaUser` (*type:* `String.t`) - 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.
12121212
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
12131213
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1214-
* `:failover` (*type:* `boolean()`) - Set to true to invoke a replica failover to the designated DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary instance. Only applicable to MySQL.
1214+
* `:failover` (*type:* `boolean()`) - Set to true to invoke a replica failover to the DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary instance.
12151215
* `opts` (*type:* `keyword()`) - Call options
12161216
12171217
## Returns
@@ -1838,7 +1838,7 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Instances do
18381838
end
18391839

18401840
@doc """
1841-
Switches over from the primary instance to the designated DR replica instance.
1841+
Switches over from the primary instance to the DR replica instance.
18421842
18431843
## Parameters
18441844
@@ -1857,7 +1857,7 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Instances do
18571857
* `:quotaUser` (*type:* `String.t`) - 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.
18581858
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
18591859
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1860-
* `:dbTimeout` (*type:* `String.t`) - Optional. (MySQL only) Cloud SQL instance operations timeout, which is a sum of all database operations. Default value is 10 minutes and can be modified to a maximum value of 24 hours.
1860+
* `:dbTimeout` (*type:* `String.t`) - Optional. (MySQL and PostgreSQL only) Cloud SQL instance operations timeout, which is a sum of all database operations. Default value is 10 minutes and can be modified to a maximum value of 24 hours.
18611861
* `opts` (*type:* `keyword()`) - Call options
18621862
18631863
## Returns

clients/sql_admin/lib/google_api/sql_admin/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.SQLAdmin.V1 do
2020
API client metadata for GoogleApi.SQLAdmin.V1.
2121
"""
2222

23-
@discovery_revision "20241108"
23+
@discovery_revision "20241204"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/sql_admin/lib/google_api/sql_admin/v1/model/connect_settings.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ConnectSettings do
2222
## Attributes
2323
2424
* `backendType` (*type:* `String.t`, *default:* `nil`) - `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type.
25+
* `customSubjectAlternativeNames` (*type:* `list(String.t)`, *default:* `nil`) - Custom subject alternative names for the server certificate.
2526
* `databaseVersion` (*type:* `String.t`, *default:* `nil`) - The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default), or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11`, `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`. SQL Server instances: `SQLSERVER_2017_STANDARD` (default), `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`.
2627
* `dnsName` (*type:* `String.t`, *default:* `nil`) - The dns name of the instance.
2728
* `ipAddresses` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.IpMapping.t)`, *default:* `nil`) - The assigned IP addresses for the instance.
@@ -36,6 +37,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ConnectSettings do
3637

3738
@type t :: %__MODULE__{
3839
:backendType => String.t() | nil,
40+
:customSubjectAlternativeNames => list(String.t()) | nil,
3941
:databaseVersion => String.t() | nil,
4042
:dnsName => String.t() | nil,
4143
:ipAddresses => list(GoogleApi.SQLAdmin.V1.Model.IpMapping.t()) | nil,
@@ -47,6 +49,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.ConnectSettings do
4749
}
4850

4951
field(:backendType)
52+
field(:customSubjectAlternativeNames, type: :list)
5053
field(:databaseVersion)
5154
field(:dnsName)
5255
field(:ipAddresses, as: GoogleApi.SQLAdmin.V1.Model.IpMapping, type: :list)

clients/sql_admin/lib/google_api/sql_admin/v1/model/database_instance.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do
4848
* `serviceAccountEmailAddress` (*type:* `String.t`, *default:* `nil`) - The service account email address assigned to the instance.\\This property is read-only.
4949
* `project` (*type:* `String.t`, *default:* `nil`) - The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.
5050
* `secondaryGceZone` (*type:* `String.t`, *default:* `nil`) - The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone.
51+
* `tags` (*type:* `map()`, *default:* `nil`) - Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You must represent each item in the map as: `"" : ""`. For example, a single resource can have the following tags: ``` "123/environment": "production", "123/costCenter": "marketing", ``` For more information on tag creation and management, see https://cloud.google.com/resource-manager/docs/tags/tags-overview.
5152
* `onPremisesConfiguration` (*type:* `GoogleApi.SQLAdmin.V1.Model.OnPremisesConfiguration.t`, *default:* `nil`) - Configuration specific to on-premises instances.
5253
* `settings` (*type:* `GoogleApi.SQLAdmin.V1.Model.Settings.t`, *default:* `nil`) - The user settings.
5354
* `databaseInstalledVersion` (*type:* `String.t`, *default:* `nil`) - Output only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.
@@ -60,7 +61,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do
6061
* `failoverReplica` (*type:* `GoogleApi.SQLAdmin.V1.Model.DatabaseInstanceFailoverReplica.t`, *default:* `nil`) - The name and status of the failover replica.
6162
* `scheduledMaintenance` (*type:* `GoogleApi.SQLAdmin.V1.Model.SqlScheduledMaintenance.t`, *default:* `nil`) - The start time of any upcoming scheduled maintenance for this instance.
6263
* `outOfDiskReport` (*type:* `GoogleApi.SQLAdmin.V1.Model.SqlOutOfDiskReport.t`, *default:* `nil`) - This field represents the report generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
63-
* `replicationCluster` (*type:* `GoogleApi.SQLAdmin.V1.Model.ReplicationCluster.t`, *default:* `nil`) - Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Only applicable to MySQL.
64+
* `replicationCluster` (*type:* `GoogleApi.SQLAdmin.V1.Model.ReplicationCluster.t`, *default:* `nil`) - Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL.
6465
* `maxDiskSize` (*type:* `String.t`, *default:* `nil`) - The maximum disk size of the instance in bytes.
6566
* `etag` (*type:* `String.t`, *default:* `nil`) - This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.
6667
* `replicaConfiguration` (*type:* `GoogleApi.SQLAdmin.V1.Model.ReplicaConfiguration.t`, *default:* `nil`) - Configuration specific to failover replicas and read replicas.
@@ -100,6 +101,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do
100101
:serviceAccountEmailAddress => String.t() | nil,
101102
:project => String.t() | nil,
102103
:secondaryGceZone => String.t() | nil,
104+
:tags => map() | nil,
103105
:onPremisesConfiguration =>
104106
GoogleApi.SQLAdmin.V1.Model.OnPremisesConfiguration.t() | nil,
105107
:settings => GoogleApi.SQLAdmin.V1.Model.Settings.t() | nil,
@@ -156,6 +158,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.DatabaseInstance do
156158
field(:serviceAccountEmailAddress)
157159
field(:project)
158160
field(:secondaryGceZone)
161+
field(:tags, type: :map)
159162
field(:onPremisesConfiguration, as: GoogleApi.SQLAdmin.V1.Model.OnPremisesConfiguration)
160163
field(:settings, as: GoogleApi.SQLAdmin.V1.Model.Settings)
161164
field(:databaseInstalledVersion)

clients/sql_admin/lib/google_api/sql_admin/v1/model/ip_configuration.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ defmodule GoogleApi.SQLAdmin.V1.Model.IpConfiguration do
2323
2424
* `allocatedIpRange` (*type:* `String.t`, *default:* `nil`) - The name of the allocated ip range for the private ip Cloud SQL instance. For example: "google-managed-services-default". If set, the instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
2525
* `authorizedNetworks` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.AclEntry.t)`, *default:* `nil`) - The list of external networks that are allowed to connect to the instance using the IP. In 'CIDR' notation, also known as 'slash' notation (for example: `157.197.200.0/24`).
26+
* `customSubjectAlternativeNames` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
2627
* `enablePrivatePathForGoogleCloudServices` (*type:* `boolean()`, *default:* `nil`) - Controls connectivity to private IP instances from Google services, such as BigQuery.
2728
* `ipv4Enabled` (*type:* `boolean()`, *default:* `nil`) - Whether the instance is assigned a public IP address or not.
2829
* `privateNetwork` (*type:* `String.t`, *default:* `nil`) - The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.
2930
* `pscConfig` (*type:* `GoogleApi.SQLAdmin.V1.Model.PscConfig.t`, *default:* `nil`) - PSC settings for this instance.
3031
* `requireSsl` (*type:* `boolean()`, *default:* `nil`) - Use `ssl_mode` instead. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag.
3132
* `serverCaMode` (*type:* `String.t`, *default:* `nil`) - Specify what type of CA is used for the server certificate.
33+
* `serverCaPool` (*type:* `String.t`, *default:* `nil`) - Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects//locations//caPools/
3234
* `sslMode` (*type:* `String.t`, *default:* `nil`) - Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.
3335
"""
3436

@@ -37,23 +39,27 @@ defmodule GoogleApi.SQLAdmin.V1.Model.IpConfiguration do
3739
@type t :: %__MODULE__{
3840
:allocatedIpRange => String.t() | nil,
3941
:authorizedNetworks => list(GoogleApi.SQLAdmin.V1.Model.AclEntry.t()) | nil,
42+
:customSubjectAlternativeNames => list(String.t()) | nil,
4043
:enablePrivatePathForGoogleCloudServices => boolean() | nil,
4144
:ipv4Enabled => boolean() | nil,
4245
:privateNetwork => String.t() | nil,
4346
:pscConfig => GoogleApi.SQLAdmin.V1.Model.PscConfig.t() | nil,
4447
:requireSsl => boolean() | nil,
4548
:serverCaMode => String.t() | nil,
49+
:serverCaPool => String.t() | nil,
4650
:sslMode => String.t() | nil
4751
}
4852

4953
field(:allocatedIpRange)
5054
field(:authorizedNetworks, as: GoogleApi.SQLAdmin.V1.Model.AclEntry, type: :list)
55+
field(:customSubjectAlternativeNames, type: :list)
5156
field(:enablePrivatePathForGoogleCloudServices)
5257
field(:ipv4Enabled)
5358
field(:privateNetwork)
5459
field(:pscConfig, as: GoogleApi.SQLAdmin.V1.Model.PscConfig)
5560
field(:requireSsl)
5661
field(:serverCaMode)
62+
field(:serverCaPool)
5763
field(:sslMode)
5864
end
5965

clients/sql_admin/lib/google_api/sql_admin/v1/model/operation.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.Operation do
3535
* `selfLink` (*type:* `String.t`, *default:* `nil`) - The URI of this resource.
3636
* `startTime` (*type:* `DateTime.t`, *default:* `nil`) - The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
3737
* `status` (*type:* `String.t`, *default:* `nil`) - The status of an operation.
38+
* `subOperationType` (*type:* `GoogleApi.SQLAdmin.V1.Model.SqlSubOperationType.t`, *default:* `nil`) - Optional. The sub operation based on the operation type.
3839
* `targetId` (*type:* `String.t`, *default:* `nil`) - Name of the database instance related to this operation.
3940
* `targetLink` (*type:* `String.t`, *default:* `nil`) -
4041
* `targetProject` (*type:* `String.t`, *default:* `nil`) - The project ID of the target instance related to this operation.
@@ -59,6 +60,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.Operation do
5960
:selfLink => String.t() | nil,
6061
:startTime => DateTime.t() | nil,
6162
:status => String.t() | nil,
63+
:subOperationType => GoogleApi.SQLAdmin.V1.Model.SqlSubOperationType.t() | nil,
6264
:targetId => String.t() | nil,
6365
:targetLink => String.t() | nil,
6466
:targetProject => String.t() | nil,
@@ -79,6 +81,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.Operation do
7981
field(:selfLink)
8082
field(:startTime, as: DateTime)
8183
field(:status)
84+
field(:subOperationType, as: GoogleApi.SQLAdmin.V1.Model.SqlSubOperationType)
8285
field(:targetId)
8386
field(:targetLink)
8487
field(:targetProject)

clients/sql_admin/lib/google_api/sql_admin/v1/model/operation_metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ defmodule GoogleApi.SQLAdmin.V1.Model.OperationMetadata do
2222
## Attributes
2323
2424
* `apiVersion` (*type:* `String.t`, *default:* `nil`) - Output only. API version used to start the operation.
25-
* `cancelRequested` (*type:* `boolean()`, *default:* `nil`) - Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
25+
* `cancelRequested` (*type:* `boolean()`, *default:* `nil`) - Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
2626
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created.
2727
* `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running.
2828
* `statusDetail` (*type:* `String.t`, *default:* `nil`) - Output only. Human-readable status of the operation, if any.

clients/sql_admin/lib/google_api/sql_admin/v1/model/replication_cluster.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717

1818
defmodule GoogleApi.SQLAdmin.V1.Model.ReplicationCluster do
1919
@moduledoc """
20-
A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Only applicable to MySQL.
20+
A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL.
2121
2222
## Attributes
2323
2424
* `drReplica` (*type:* `boolean()`, *default:* `nil`) - Output only. Read-only field that indicates whether the replica is a DR replica. This field is not set if the instance is a primary instance.
2525
* `failoverDrReplicaName` (*type:* `String.t`, *default:* `nil`) - Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Set this field to a replica name to designate a DR replica for a primary instance. Remove the replica name to remove the DR replica designation.
26-
* `psaWriteEndpoint` (*type:* `String.t`, *default:* `nil`) - Output only. If set, it indicates this instance has a private service access (PSA) dns endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, the dns should be pointing to this instance. After Switchover or Replica failover, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance does not yet have a replica, or had a DR replica that was deleted.
26+
* `psaWriteEndpoint` (*type:* `String.t`, *default:* `nil`) - Output only. If set, this field indicates this instance has a private service access (PSA) DNS endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, then the DNS endpoint points to this instance. After a switchover or replica failover operation, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance doesn't have a DR replica yet or the DR replica is deleted.
2727
"""
2828

2929
use GoogleApi.Gax.ModelBase

0 commit comments

Comments
 (0)