Skip to content

Commit

Permalink
feat: Automated regeneration of Datastream client (#12701)
Browse files Browse the repository at this point in the history
Auto-created at 2024-12-13 13:14:21 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Dec 13, 2024
1 parent a75161e commit 0eee1b9
Show file tree
Hide file tree
Showing 13 changed files with 64 additions and 15 deletions.
2 changes: 1 addition & 1 deletion clients/datastream/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@

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
* `asmService` (*type:* `String.t`, *default:* `nil`) - Required. ASM service name for the Oracle ASM connection.
* `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.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
2 changes: 1 addition & 1 deletion clients/datastream/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.Datastream.Mixfile do
use Mix.Project

@version "0.8.0"
@version "0.9.0"

def project() do
[
Expand Down

0 comments on commit 0eee1b9

Please sign in to comment.