From 0eee1b97fbefb2070c9c5983f478c046916fffde Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Fri, 13 Dec 2024 05:16:24 -0800 Subject: [PATCH] feat: Automated regeneration of Datastream client (#12701) Auto-created at 2024-12-13 13:14:21 +0000 using the toys pull request generator. --- clients/datastream/README.md | 2 +- .../google_api/datastream/v1/api/projects.ex | 6 +-- .../lib/google_api/datastream/v1/metadata.ex | 2 +- .../datastream/v1/model/connection_profile.ex | 2 +- .../datastream/v1/model/operation_metadata.ex | 2 +- .../datastream/v1/model/oracle_asm_config.ex | 4 +- .../datastream/v1/model/private_connection.ex | 2 +- .../google_api/datastream/v1/model/route.ex | 2 +- .../v1/model/specific_start_position.ex | 5 +- .../v1/model/sql_server_lsn_position.ex | 46 +++++++++++++++++++ .../google_api/datastream/v1/model/stream.ex | 2 +- .../datastream/v1/model/stream_object.ex | 2 +- clients/datastream/mix.exs | 2 +- 13 files changed, 64 insertions(+), 15 deletions(-) create mode 100644 clients/datastream/lib/google_api/datastream/v1/model/sql_server_lsn_position.ex diff --git a/clients/datastream/README.md b/clients/datastream/README.md index 21804ecf70..235d469eb3 100644 --- a/clients/datastream/README.md +++ b/clients/datastream/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_datastream, "~> 0.8"}] + [{:google_api_datastream, "~> 0.9"}] end ``` diff --git a/clients/datastream/lib/google_api/datastream/v1/api/projects.ex b/clients/datastream/lib/google_api/datastream/v1/api/projects.ex index b2aa62ca86..869d2ed271 100644 --- a/clients/datastream/lib/google_api/datastream/v1/api/projects.ex +++ b/clients/datastream/lib/google_api/datastream/v1/api/projects.ex @@ -607,7 +607,7 @@ defmodule GoogleApi.Datastream.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.Datastream.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - Output only. The resource's name. + * `name` (*type:* `String.t`) - Output only. Identifier. The resource's name. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -682,7 +682,7 @@ defmodule GoogleApi.Datastream.V1.Api.Projects do end @doc """ - 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`. + 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`. ## Parameters @@ -1873,7 +1873,7 @@ defmodule GoogleApi.Datastream.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.Datastream.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - Output only. The stream's name. + * `name` (*type:* `String.t`) - Output only. Identifier. The stream's name. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. diff --git a/clients/datastream/lib/google_api/datastream/v1/metadata.ex b/clients/datastream/lib/google_api/datastream/v1/metadata.ex index 412428cc28..20fcb3ca7f 100644 --- a/clients/datastream/lib/google_api/datastream/v1/metadata.ex +++ b/clients/datastream/lib/google_api/datastream/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Datastream.V1 do API client metadata for GoogleApi.Datastream.V1. """ - @discovery_revision "20241028" + @discovery_revision "20241204" def discovery_revision(), do: @discovery_revision end diff --git a/clients/datastream/lib/google_api/datastream/v1/model/connection_profile.ex b/clients/datastream/lib/google_api/datastream/v1/model/connection_profile.ex index ad9b85d260..7ce8afe82f 100644 --- a/clients/datastream/lib/google_api/datastream/v1/model/connection_profile.ex +++ b/clients/datastream/lib/google_api/datastream/v1/model/connection_profile.ex @@ -28,7 +28,7 @@ defmodule GoogleApi.Datastream.V1.Model.ConnectionProfile do * `gcsProfile` (*type:* `GoogleApi.Datastream.V1.Model.GcsProfile.t`, *default:* `nil`) - Cloud Storage ConnectionProfile configuration. * `labels` (*type:* `map()`, *default:* `nil`) - Labels. * `mysqlProfile` (*type:* `GoogleApi.Datastream.V1.Model.MysqlProfile.t`, *default:* `nil`) - MySQL ConnectionProfile configuration. - * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource's name. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. The resource's name. * `oracleProfile` (*type:* `GoogleApi.Datastream.V1.Model.OracleProfile.t`, *default:* `nil`) - Oracle ConnectionProfile configuration. * `postgresqlProfile` (*type:* `GoogleApi.Datastream.V1.Model.PostgresqlProfile.t`, *default:* `nil`) - PostgreSQL Connection Profile configuration. * `privateConnectivity` (*type:* `GoogleApi.Datastream.V1.Model.PrivateConnectivity.t`, *default:* `nil`) - Private connectivity. diff --git a/clients/datastream/lib/google_api/datastream/v1/model/operation_metadata.ex b/clients/datastream/lib/google_api/datastream/v1/model/operation_metadata.ex index cfe186c187..49f90eaa0a 100644 --- a/clients/datastream/lib/google_api/datastream/v1/model/operation_metadata.ex +++ b/clients/datastream/lib/google_api/datastream/v1/model/operation_metadata.ex @@ -24,7 +24,7 @@ defmodule GoogleApi.Datastream.V1.Model.OperationMetadata do * `apiVersion` (*type:* `String.t`, *default:* `nil`) - Output only. API version used to start the operation. * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created. * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running. - * `requestedCancellation` (*type:* `boolean()`, *default:* `nil`) - Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * `requestedCancellation` (*type:* `boolean()`, *default:* `nil`) - 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`. * `statusMessage` (*type:* `String.t`, *default:* `nil`) - Output only. Human-readable status of the operation, if any. * `target` (*type:* `String.t`, *default:* `nil`) - Output only. Server-defined resource path for the target of the operation. * `validationResult` (*type:* `GoogleApi.Datastream.V1.Model.ValidationResult.t`, *default:* `nil`) - Output only. Results of executed validations if there are any. diff --git a/clients/datastream/lib/google_api/datastream/v1/model/oracle_asm_config.ex b/clients/datastream/lib/google_api/datastream/v1/model/oracle_asm_config.ex index a1133ae11e..3e7b438d17 100644 --- a/clients/datastream/lib/google_api/datastream/v1/model/oracle_asm_config.ex +++ b/clients/datastream/lib/google_api/datastream/v1/model/oracle_asm_config.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Datastream.V1.Model.OracleAsmConfig do @moduledoc """ - Configuration for Oracle Automatic Storage Management (ASM) connection. + Configuration for Oracle Automatic Storage Management (ASM) connection. . ## Attributes @@ -25,7 +25,7 @@ defmodule GoogleApi.Datastream.V1.Model.OracleAsmConfig do * `connectionAttributes` (*type:* `map()`, *default:* `nil`) - Optional. Connection string attributes * `hostname` (*type:* `String.t`, *default:* `nil`) - Required. Hostname for the Oracle ASM connection. * `oracleSslConfig` (*type:* `GoogleApi.Datastream.V1.Model.OracleSslConfig.t`, *default:* `nil`) - Optional. SSL configuration for the Oracle connection. - * `password` (*type:* `String.t`, *default:* `nil`) - Required. Password for the Oracle ASM connection. + * `password` (*type:* `String.t`, *default:* `nil`) - Optional. Password for the Oracle ASM connection. * `port` (*type:* `integer()`, *default:* `nil`) - Required. Port for the Oracle ASM connection. * `username` (*type:* `String.t`, *default:* `nil`) - Required. Username for the Oracle ASM connection. """ diff --git a/clients/datastream/lib/google_api/datastream/v1/model/private_connection.ex b/clients/datastream/lib/google_api/datastream/v1/model/private_connection.ex index f7602c5864..034ad8b237 100644 --- a/clients/datastream/lib/google_api/datastream/v1/model/private_connection.ex +++ b/clients/datastream/lib/google_api/datastream/v1/model/private_connection.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.Datastream.V1.Model.PrivateConnection do * `displayName` (*type:* `String.t`, *default:* `nil`) - Required. Display name. * `error` (*type:* `GoogleApi.Datastream.V1.Model.Error.t`, *default:* `nil`) - Output only. In case of error, the details of the error in a user-friendly format. * `labels` (*type:* `map()`, *default:* `nil`) - Labels. - * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource's name. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. The resource's name. * `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the Private Connection. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The update time of the resource. * `vpcPeeringConfig` (*type:* `GoogleApi.Datastream.V1.Model.VpcPeeringConfig.t`, *default:* `nil`) - VPC Peering Config. diff --git a/clients/datastream/lib/google_api/datastream/v1/model/route.ex b/clients/datastream/lib/google_api/datastream/v1/model/route.ex index d709abd481..ce38c2ef58 100644 --- a/clients/datastream/lib/google_api/datastream/v1/model/route.ex +++ b/clients/datastream/lib/google_api/datastream/v1/model/route.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.Datastream.V1.Model.Route do * `destinationPort` (*type:* `integer()`, *default:* `nil`) - Destination port for connection * `displayName` (*type:* `String.t`, *default:* `nil`) - Required. Display name. * `labels` (*type:* `map()`, *default:* `nil`) - Labels. - * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource's name. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. The resource's name. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The update time of the resource. """ diff --git a/clients/datastream/lib/google_api/datastream/v1/model/specific_start_position.ex b/clients/datastream/lib/google_api/datastream/v1/model/specific_start_position.ex index f3e3a7d9da..fa6808587c 100644 --- a/clients/datastream/lib/google_api/datastream/v1/model/specific_start_position.ex +++ b/clients/datastream/lib/google_api/datastream/v1/model/specific_start_position.ex @@ -23,17 +23,20 @@ defmodule GoogleApi.Datastream.V1.Model.SpecificStartPosition do * `mysqlLogPosition` (*type:* `GoogleApi.Datastream.V1.Model.MysqlLogPosition.t`, *default:* `nil`) - MySQL specific log position to start replicating from. * `oracleScnPosition` (*type:* `GoogleApi.Datastream.V1.Model.OracleScnPosition.t`, *default:* `nil`) - Oracle SCN to start replicating from. + * `sqlServerLsnPosition` (*type:* `GoogleApi.Datastream.V1.Model.SqlServerLsnPosition.t`, *default:* `nil`) - SqlServer LSN to start replicating from. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :mysqlLogPosition => GoogleApi.Datastream.V1.Model.MysqlLogPosition.t() | nil, - :oracleScnPosition => GoogleApi.Datastream.V1.Model.OracleScnPosition.t() | nil + :oracleScnPosition => GoogleApi.Datastream.V1.Model.OracleScnPosition.t() | nil, + :sqlServerLsnPosition => GoogleApi.Datastream.V1.Model.SqlServerLsnPosition.t() | nil } field(:mysqlLogPosition, as: GoogleApi.Datastream.V1.Model.MysqlLogPosition) field(:oracleScnPosition, as: GoogleApi.Datastream.V1.Model.OracleScnPosition) + field(:sqlServerLsnPosition, as: GoogleApi.Datastream.V1.Model.SqlServerLsnPosition) end defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.SpecificStartPosition do diff --git a/clients/datastream/lib/google_api/datastream/v1/model/sql_server_lsn_position.ex b/clients/datastream/lib/google_api/datastream/v1/model/sql_server_lsn_position.ex new file mode 100644 index 0000000000..29e7567c77 --- /dev/null +++ b/clients/datastream/lib/google_api/datastream/v1/model/sql_server_lsn_position.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Datastream.V1.Model.SqlServerLsnPosition do + @moduledoc """ + SQL Server LSN position + + ## Attributes + + * `lsn` (*type:* `String.t`, *default:* `nil`) - Required. Log sequence number (LSN) from where Logs will be read + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :lsn => String.t() | nil + } + + field(:lsn) +end + +defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.SqlServerLsnPosition do + def decode(value, options) do + GoogleApi.Datastream.V1.Model.SqlServerLsnPosition.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.SqlServerLsnPosition do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/datastream/lib/google_api/datastream/v1/model/stream.ex b/clients/datastream/lib/google_api/datastream/v1/model/stream.ex index d39a95fd7a..4c068c8813 100644 --- a/clients/datastream/lib/google_api/datastream/v1/model/stream.ex +++ b/clients/datastream/lib/google_api/datastream/v1/model/stream.ex @@ -30,7 +30,7 @@ defmodule GoogleApi.Datastream.V1.Model.Stream do * `errors` (*type:* `list(GoogleApi.Datastream.V1.Model.Error.t)`, *default:* `nil`) - Output only. Errors on the Stream. * `labels` (*type:* `map()`, *default:* `nil`) - Labels. * `lastRecoveryTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. If the stream was recovered, the time of the last recovery. Note: This field is currently experimental. - * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The stream's name. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. The stream's name. * `sourceConfig` (*type:* `GoogleApi.Datastream.V1.Model.SourceConfig.t`, *default:* `nil`) - Required. Source connection profile configuration. * `state` (*type:* `String.t`, *default:* `nil`) - The state of the stream. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The last update time of the stream. diff --git a/clients/datastream/lib/google_api/datastream/v1/model/stream_object.ex b/clients/datastream/lib/google_api/datastream/v1/model/stream_object.ex index 1ad60019de..325348517f 100644 --- a/clients/datastream/lib/google_api/datastream/v1/model/stream_object.ex +++ b/clients/datastream/lib/google_api/datastream/v1/model/stream_object.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.Datastream.V1.Model.StreamObject do * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The creation time of the object. * `displayName` (*type:* `String.t`, *default:* `nil`) - Required. Display name. * `errors` (*type:* `list(GoogleApi.Datastream.V1.Model.Error.t)`, *default:* `nil`) - Output only. Active errors on the object. - * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The object resource's name. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. The object resource's name. * `sourceObject` (*type:* `GoogleApi.Datastream.V1.Model.SourceObjectIdentifier.t`, *default:* `nil`) - The object identifier in the data source. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The last update time of the object. """ diff --git a/clients/datastream/mix.exs b/clients/datastream/mix.exs index 31b3134efc..57288c62d2 100644 --- a/clients/datastream/mix.exs +++ b/clients/datastream/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Datastream.Mixfile do use Mix.Project - @version "0.8.0" + @version "0.9.0" def project() do [