Skip to content

Commit 0eee1b9

Browse files
feat: Automated regeneration of Datastream client (#12701)
Auto-created at 2024-12-13 13:14:21 +0000 using the toys pull request generator.
1 parent a75161e commit 0eee1b9

File tree

13 files changed

+64
-15
lines changed

13 files changed

+64
-15
lines changed

clients/datastream/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_datastream, "~> 0.8"}]
14+
[{:google_api_datastream, "~> 0.9"}]
1515
end
1616
```
1717

clients/datastream/lib/google_api/datastream/v1/api/projects.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ defmodule GoogleApi.Datastream.V1.Api.Projects do
607607
## Parameters
608608
609609
* `connection` (*type:* `GoogleApi.Datastream.V1.Connection.t`) - Connection to server
610-
* `name` (*type:* `String.t`) - Output only. The resource's name.
610+
* `name` (*type:* `String.t`) - Output only. Identifier. The resource's name.
611611
* `optional_params` (*type:* `keyword()`) - Optional parameters
612612
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
613613
* `:access_token` (*type:* `String.t`) - OAuth access token.
@@ -682,7 +682,7 @@ defmodule GoogleApi.Datastream.V1.Api.Projects do
682682
end
683683

684684
@doc """
685-
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`.
685+
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`.
686686
687687
## Parameters
688688
@@ -1873,7 +1873,7 @@ defmodule GoogleApi.Datastream.V1.Api.Projects do
18731873
## Parameters
18741874
18751875
* `connection` (*type:* `GoogleApi.Datastream.V1.Connection.t`) - Connection to server
1876-
* `name` (*type:* `String.t`) - Output only. The stream's name.
1876+
* `name` (*type:* `String.t`) - Output only. Identifier. The stream's name.
18771877
* `optional_params` (*type:* `keyword()`) - Optional parameters
18781878
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
18791879
* `:access_token` (*type:* `String.t`) - OAuth access token.

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

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

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

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

clients/datastream/lib/google_api/datastream/v1/model/connection_profile.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ defmodule GoogleApi.Datastream.V1.Model.ConnectionProfile do
2828
* `gcsProfile` (*type:* `GoogleApi.Datastream.V1.Model.GcsProfile.t`, *default:* `nil`) - Cloud Storage ConnectionProfile configuration.
2929
* `labels` (*type:* `map()`, *default:* `nil`) - Labels.
3030
* `mysqlProfile` (*type:* `GoogleApi.Datastream.V1.Model.MysqlProfile.t`, *default:* `nil`) - MySQL ConnectionProfile configuration.
31-
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource's name.
31+
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. The resource's name.
3232
* `oracleProfile` (*type:* `GoogleApi.Datastream.V1.Model.OracleProfile.t`, *default:* `nil`) - Oracle ConnectionProfile configuration.
3333
* `postgresqlProfile` (*type:* `GoogleApi.Datastream.V1.Model.PostgresqlProfile.t`, *default:* `nil`) - PostgreSQL Connection Profile configuration.
3434
* `privateConnectivity` (*type:* `GoogleApi.Datastream.V1.Model.PrivateConnectivity.t`, *default:* `nil`) - Private connectivity.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule GoogleApi.Datastream.V1.Model.OperationMetadata do
2424
* `apiVersion` (*type:* `String.t`, *default:* `nil`) - Output only. API version used to start the operation.
2525
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created.
2626
* `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running.
27-
* `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`.
27+
* `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`.
2828
* `statusMessage` (*type:* `String.t`, *default:* `nil`) - Output only. Human-readable status of the operation, if any.
2929
* `target` (*type:* `String.t`, *default:* `nil`) - Output only. Server-defined resource path for the target of the operation.
3030
* `validationResult` (*type:* `GoogleApi.Datastream.V1.Model.ValidationResult.t`, *default:* `nil`) - Output only. Results of executed validations if there are any.

clients/datastream/lib/google_api/datastream/v1/model/oracle_asm_config.ex

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

1818
defmodule GoogleApi.Datastream.V1.Model.OracleAsmConfig do
1919
@moduledoc """
20-
Configuration for Oracle Automatic Storage Management (ASM) connection.
20+
Configuration for Oracle Automatic Storage Management (ASM) connection. .
2121
2222
## Attributes
2323
2424
* `asmService` (*type:* `String.t`, *default:* `nil`) - Required. ASM service name for the Oracle ASM connection.
2525
* `connectionAttributes` (*type:* `map()`, *default:* `nil`) - Optional. Connection string attributes
2626
* `hostname` (*type:* `String.t`, *default:* `nil`) - Required. Hostname for the Oracle ASM connection.
2727
* `oracleSslConfig` (*type:* `GoogleApi.Datastream.V1.Model.OracleSslConfig.t`, *default:* `nil`) - Optional. SSL configuration for the Oracle connection.
28-
* `password` (*type:* `String.t`, *default:* `nil`) - Required. Password for the Oracle ASM connection.
28+
* `password` (*type:* `String.t`, *default:* `nil`) - Optional. Password for the Oracle ASM connection.
2929
* `port` (*type:* `integer()`, *default:* `nil`) - Required. Port for the Oracle ASM connection.
3030
* `username` (*type:* `String.t`, *default:* `nil`) - Required. Username for the Oracle ASM connection.
3131
"""

clients/datastream/lib/google_api/datastream/v1/model/private_connection.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defmodule GoogleApi.Datastream.V1.Model.PrivateConnection do
2525
* `displayName` (*type:* `String.t`, *default:* `nil`) - Required. Display name.
2626
* `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.
2727
* `labels` (*type:* `map()`, *default:* `nil`) - Labels.
28-
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource's name.
28+
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. The resource's name.
2929
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the Private Connection.
3030
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The update time of the resource.
3131
* `vpcPeeringConfig` (*type:* `GoogleApi.Datastream.V1.Model.VpcPeeringConfig.t`, *default:* `nil`) - VPC Peering Config.

clients/datastream/lib/google_api/datastream/v1/model/route.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ defmodule GoogleApi.Datastream.V1.Model.Route do
2626
* `destinationPort` (*type:* `integer()`, *default:* `nil`) - Destination port for connection
2727
* `displayName` (*type:* `String.t`, *default:* `nil`) - Required. Display name.
2828
* `labels` (*type:* `map()`, *default:* `nil`) - Labels.
29-
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource's name.
29+
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. The resource's name.
3030
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The update time of the resource.
3131
"""
3232

clients/datastream/lib/google_api/datastream/v1/model/specific_start_position.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,20 @@ defmodule GoogleApi.Datastream.V1.Model.SpecificStartPosition do
2323
2424
* `mysqlLogPosition` (*type:* `GoogleApi.Datastream.V1.Model.MysqlLogPosition.t`, *default:* `nil`) - MySQL specific log position to start replicating from.
2525
* `oracleScnPosition` (*type:* `GoogleApi.Datastream.V1.Model.OracleScnPosition.t`, *default:* `nil`) - Oracle SCN to start replicating from.
26+
* `sqlServerLsnPosition` (*type:* `GoogleApi.Datastream.V1.Model.SqlServerLsnPosition.t`, *default:* `nil`) - SqlServer LSN to start replicating from.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
3132
:mysqlLogPosition => GoogleApi.Datastream.V1.Model.MysqlLogPosition.t() | nil,
32-
:oracleScnPosition => GoogleApi.Datastream.V1.Model.OracleScnPosition.t() | nil
33+
:oracleScnPosition => GoogleApi.Datastream.V1.Model.OracleScnPosition.t() | nil,
34+
:sqlServerLsnPosition => GoogleApi.Datastream.V1.Model.SqlServerLsnPosition.t() | nil
3335
}
3436

3537
field(:mysqlLogPosition, as: GoogleApi.Datastream.V1.Model.MysqlLogPosition)
3638
field(:oracleScnPosition, as: GoogleApi.Datastream.V1.Model.OracleScnPosition)
39+
field(:sqlServerLsnPosition, as: GoogleApi.Datastream.V1.Model.SqlServerLsnPosition)
3740
end
3841

3942
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.SpecificStartPosition do
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Datastream.V1.Model.SqlServerLsnPosition do
19+
@moduledoc """
20+
SQL Server LSN position
21+
22+
## Attributes
23+
24+
* `lsn` (*type:* `String.t`, *default:* `nil`) - Required. Log sequence number (LSN) from where Logs will be read
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:lsn => String.t() | nil
31+
}
32+
33+
field(:lsn)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.SqlServerLsnPosition do
37+
def decode(value, options) do
38+
GoogleApi.Datastream.V1.Model.SqlServerLsnPosition.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.SqlServerLsnPosition do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

0 commit comments

Comments
 (0)