Skip to content

Commit 4cbb14e

Browse files
feat: Automated regeneration of Datastream client (googleapis#13194)
Auto-created at 2025-03-20 13:12:56 +0000 using the toys pull request generator.
1 parent c831fab commit 4cbb14e

File tree

4 files changed

+52
-1
lines changed

4 files changed

+52
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,7 @@ defmodule GoogleApi.Datastream.V1.Api.Projects do
991991
* `:force` (*type:* `boolean()`) - Optional. If set to true, will skip validations.
992992
* `:privateConnectionId` (*type:* `String.t`) - Required. The private connectivity identifier.
993993
* `:requestId` (*type:* `String.t`) - Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
994+
* `:validateOnly` (*type:* `boolean()`) - Optional. When supplied with PSC Interface config, will get/create the tenant project required for the customer to allow list and won't actually create the private connection.
994995
* `:body` (*type:* `GoogleApi.Datastream.V1.Model.PrivateConnection.t`) -
995996
* `opts` (*type:* `keyword()`) - Call options
996997
@@ -1030,6 +1031,7 @@ defmodule GoogleApi.Datastream.V1.Api.Projects do
10301031
:force => :query,
10311032
:privateConnectionId => :query,
10321033
:requestId => :query,
1034+
:validateOnly => :query,
10331035
:body => :body
10341036
}
10351037

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 "20250310"
23+
@discovery_revision "20250316"
2424

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

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.Datastream.V1.Model.PrivateConnection do
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.
2828
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. The resource's name.
29+
* `pscInterfaceConfig` (*type:* `GoogleApi.Datastream.V1.Model.PscInterfaceConfig.t`, *default:* `nil`) - PSC Interface Config.
2930
* `satisfiesPzi` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use.
3031
* `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use.
3132
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the Private Connection.
@@ -41,6 +42,7 @@ defmodule GoogleApi.Datastream.V1.Model.PrivateConnection do
4142
:error => GoogleApi.Datastream.V1.Model.Error.t() | nil,
4243
:labels => map() | nil,
4344
:name => String.t() | nil,
45+
:pscInterfaceConfig => GoogleApi.Datastream.V1.Model.PscInterfaceConfig.t() | nil,
4446
:satisfiesPzi => boolean() | nil,
4547
:satisfiesPzs => boolean() | nil,
4648
:state => String.t() | nil,
@@ -53,6 +55,7 @@ defmodule GoogleApi.Datastream.V1.Model.PrivateConnection do
5355
field(:error, as: GoogleApi.Datastream.V1.Model.Error)
5456
field(:labels, type: :map)
5557
field(:name)
58+
field(:pscInterfaceConfig, as: GoogleApi.Datastream.V1.Model.PscInterfaceConfig)
5659
field(:satisfiesPzi)
5760
field(:satisfiesPzs)
5861
field(:state)
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.PscInterfaceConfig do
19+
@moduledoc """
20+
The PSC Interface configuration is used to create PSC Interface between Datastream and the consumer's PSC.
21+
22+
## Attributes
23+
24+
* `networkAttachment` (*type:* `String.t`, *default:* `nil`) - Required. Fully qualified name of the Network Attachment that Datastream will connect to. Format: `projects/{{project}}/regions/{{region}}/networkAttachments/{{name}}`
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:networkAttachment => String.t() | nil
31+
}
32+
33+
field(:networkAttachment)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.PscInterfaceConfig do
37+
def decode(value, options) do
38+
GoogleApi.Datastream.V1.Model.PscInterfaceConfig.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.PscInterfaceConfig do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

0 commit comments

Comments
 (0)