Skip to content

Commit c7df326

Browse files
feat: Automated regeneration of Datastream client (googleapis#13234)
Auto-created at 2025-03-27 13:16:39 +0000 using the toys pull request generator.
1 parent 76dae02 commit c7df326

18 files changed

+511
-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
@@ -178,6 +178,7 @@ defmodule GoogleApi.Datastream.V1.Api.Projects do
178178
* `: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.
179179
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
180180
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
181+
* `:extraLocationTypes` (*type:* `list(String.t)`) - Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
181182
* `:filter` (*type:* `String.t`) - A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
182183
* `:pageSize` (*type:* `integer()`) - The maximum number of results to return. If not set, the service selects a default.
183184
* `:pageToken` (*type:* `String.t`) - A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
@@ -206,6 +207,7 @@ defmodule GoogleApi.Datastream.V1.Api.Projects do
206207
:quotaUser => :query,
207208
:uploadType => :query,
208209
:upload_protocol => :query,
210+
:extraLocationTypes => :query,
209211
:filter => :query,
210212
:pageSize => :query,
211213
:pageToken => :query

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

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

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.Datastream.V1.Model.BackfillAllStrategy do
2121
2222
## Attributes
2323
24+
* `mongodbExcludedObjects` (*type:* `GoogleApi.Datastream.V1.Model.MongodbCluster.t`, *default:* `nil`) - MongoDB data source objects to avoid backfilling
2425
* `mysqlExcludedObjects` (*type:* `GoogleApi.Datastream.V1.Model.MysqlRdbms.t`, *default:* `nil`) - MySQL data source objects to avoid backfilling.
2526
* `oracleExcludedObjects` (*type:* `GoogleApi.Datastream.V1.Model.OracleRdbms.t`, *default:* `nil`) - Oracle data source objects to avoid backfilling.
2627
* `postgresqlExcludedObjects` (*type:* `GoogleApi.Datastream.V1.Model.PostgresqlRdbms.t`, *default:* `nil`) - PostgreSQL data source objects to avoid backfilling.
@@ -31,13 +32,15 @@ defmodule GoogleApi.Datastream.V1.Model.BackfillAllStrategy do
3132
use GoogleApi.Gax.ModelBase
3233

3334
@type t :: %__MODULE__{
35+
:mongodbExcludedObjects => GoogleApi.Datastream.V1.Model.MongodbCluster.t() | nil,
3436
:mysqlExcludedObjects => GoogleApi.Datastream.V1.Model.MysqlRdbms.t() | nil,
3537
:oracleExcludedObjects => GoogleApi.Datastream.V1.Model.OracleRdbms.t() | nil,
3638
:postgresqlExcludedObjects => GoogleApi.Datastream.V1.Model.PostgresqlRdbms.t() | nil,
3739
:salesforceExcludedObjects => GoogleApi.Datastream.V1.Model.SalesforceOrg.t() | nil,
3840
:sqlServerExcludedObjects => GoogleApi.Datastream.V1.Model.SqlServerRdbms.t() | nil
3941
}
4042

43+
field(:mongodbExcludedObjects, as: GoogleApi.Datastream.V1.Model.MongodbCluster)
4144
field(:mysqlExcludedObjects, as: GoogleApi.Datastream.V1.Model.MysqlRdbms)
4245
field(:oracleExcludedObjects, as: GoogleApi.Datastream.V1.Model.OracleRdbms)
4346
field(:postgresqlExcludedObjects, as: GoogleApi.Datastream.V1.Model.PostgresqlRdbms)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ defmodule GoogleApi.Datastream.V1.Model.ConnectionProfile do
2727
* `forwardSshConnectivity` (*type:* `GoogleApi.Datastream.V1.Model.ForwardSshTunnelConnectivity.t`, *default:* `nil`) - Forward SSH tunnel connectivity.
2828
* `gcsProfile` (*type:* `GoogleApi.Datastream.V1.Model.GcsProfile.t`, *default:* `nil`) - Cloud Storage ConnectionProfile configuration.
2929
* `labels` (*type:* `map()`, *default:* `nil`) - Labels.
30+
* `mongodbProfile` (*type:* `GoogleApi.Datastream.V1.Model.MongodbProfile.t`, *default:* `nil`) - MongoDB Connection Profile configuration.
3031
* `mysqlProfile` (*type:* `GoogleApi.Datastream.V1.Model.MysqlProfile.t`, *default:* `nil`) - MySQL ConnectionProfile configuration.
3132
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. The resource's name.
3233
* `oracleProfile` (*type:* `GoogleApi.Datastream.V1.Model.OracleProfile.t`, *default:* `nil`) - Oracle ConnectionProfile configuration.
@@ -50,6 +51,7 @@ defmodule GoogleApi.Datastream.V1.Model.ConnectionProfile do
5051
GoogleApi.Datastream.V1.Model.ForwardSshTunnelConnectivity.t() | nil,
5152
:gcsProfile => GoogleApi.Datastream.V1.Model.GcsProfile.t() | nil,
5253
:labels => map() | nil,
54+
:mongodbProfile => GoogleApi.Datastream.V1.Model.MongodbProfile.t() | nil,
5355
:mysqlProfile => GoogleApi.Datastream.V1.Model.MysqlProfile.t() | nil,
5456
:name => String.t() | nil,
5557
:oracleProfile => GoogleApi.Datastream.V1.Model.OracleProfile.t() | nil,
@@ -70,6 +72,7 @@ defmodule GoogleApi.Datastream.V1.Model.ConnectionProfile do
7072
field(:forwardSshConnectivity, as: GoogleApi.Datastream.V1.Model.ForwardSshTunnelConnectivity)
7173
field(:gcsProfile, as: GoogleApi.Datastream.V1.Model.GcsProfile)
7274
field(:labels, type: :map)
75+
field(:mongodbProfile, as: GoogleApi.Datastream.V1.Model.MongodbProfile)
7376
field(:mysqlProfile, as: GoogleApi.Datastream.V1.Model.MysqlProfile)
7477
field(:name)
7578
field(:oracleProfile, as: GoogleApi.Datastream.V1.Model.OracleProfile)

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ defmodule GoogleApi.Datastream.V1.Model.DiscoverConnectionProfileRequest do
2525
* `connectionProfileName` (*type:* `String.t`, *default:* `nil`) - A reference to an existing connection profile.
2626
* `fullHierarchy` (*type:* `boolean()`, *default:* `nil`) - Whether to retrieve the full hierarchy of data objects (TRUE) or only the current level (FALSE).
2727
* `hierarchyDepth` (*type:* `integer()`, *default:* `nil`) - The number of hierarchy levels below the current level to be retrieved.
28+
* `mongodbCluster` (*type:* `GoogleApi.Datastream.V1.Model.MongodbCluster.t`, *default:* `nil`) - MongoDB cluster to enrich with child data objects and metadata.
2829
* `mysqlRdbms` (*type:* `GoogleApi.Datastream.V1.Model.MysqlRdbms.t`, *default:* `nil`) - MySQL RDBMS to enrich with child data objects and metadata.
2930
* `oracleRdbms` (*type:* `GoogleApi.Datastream.V1.Model.OracleRdbms.t`, *default:* `nil`) - Oracle RDBMS to enrich with child data objects and metadata.
3031
* `postgresqlRdbms` (*type:* `GoogleApi.Datastream.V1.Model.PostgresqlRdbms.t`, *default:* `nil`) - PostgreSQL RDBMS to enrich with child data objects and metadata.
32+
* `salesforceOrg` (*type:* `GoogleApi.Datastream.V1.Model.SalesforceOrg.t`, *default:* `nil`) - Salesforce organization to enrich with child data objects and metadata.
3133
* `sqlServerRdbms` (*type:* `GoogleApi.Datastream.V1.Model.SqlServerRdbms.t`, *default:* `nil`) - SQLServer RDBMS to enrich with child data objects and metadata.
3234
"""
3335

@@ -38,19 +40,23 @@ defmodule GoogleApi.Datastream.V1.Model.DiscoverConnectionProfileRequest do
3840
:connectionProfileName => String.t() | nil,
3941
:fullHierarchy => boolean() | nil,
4042
:hierarchyDepth => integer() | nil,
43+
:mongodbCluster => GoogleApi.Datastream.V1.Model.MongodbCluster.t() | nil,
4144
:mysqlRdbms => GoogleApi.Datastream.V1.Model.MysqlRdbms.t() | nil,
4245
:oracleRdbms => GoogleApi.Datastream.V1.Model.OracleRdbms.t() | nil,
4346
:postgresqlRdbms => GoogleApi.Datastream.V1.Model.PostgresqlRdbms.t() | nil,
47+
:salesforceOrg => GoogleApi.Datastream.V1.Model.SalesforceOrg.t() | nil,
4448
:sqlServerRdbms => GoogleApi.Datastream.V1.Model.SqlServerRdbms.t() | nil
4549
}
4650

4751
field(:connectionProfile, as: GoogleApi.Datastream.V1.Model.ConnectionProfile)
4852
field(:connectionProfileName)
4953
field(:fullHierarchy)
5054
field(:hierarchyDepth)
55+
field(:mongodbCluster, as: GoogleApi.Datastream.V1.Model.MongodbCluster)
5156
field(:mysqlRdbms, as: GoogleApi.Datastream.V1.Model.MysqlRdbms)
5257
field(:oracleRdbms, as: GoogleApi.Datastream.V1.Model.OracleRdbms)
5358
field(:postgresqlRdbms, as: GoogleApi.Datastream.V1.Model.PostgresqlRdbms)
59+
field(:salesforceOrg, as: GoogleApi.Datastream.V1.Model.SalesforceOrg)
5460
field(:sqlServerRdbms, as: GoogleApi.Datastream.V1.Model.SqlServerRdbms)
5561
end
5662

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,30 @@ defmodule GoogleApi.Datastream.V1.Model.DiscoverConnectionProfileResponse do
2121
2222
## Attributes
2323
24+
* `mongodbCluster` (*type:* `GoogleApi.Datastream.V1.Model.MongodbCluster.t`, *default:* `nil`) - Enriched MongoDB cluster.
2425
* `mysqlRdbms` (*type:* `GoogleApi.Datastream.V1.Model.MysqlRdbms.t`, *default:* `nil`) - Enriched MySQL RDBMS object.
2526
* `oracleRdbms` (*type:* `GoogleApi.Datastream.V1.Model.OracleRdbms.t`, *default:* `nil`) - Enriched Oracle RDBMS object.
2627
* `postgresqlRdbms` (*type:* `GoogleApi.Datastream.V1.Model.PostgresqlRdbms.t`, *default:* `nil`) - Enriched PostgreSQL RDBMS object.
28+
* `salesforceOrg` (*type:* `GoogleApi.Datastream.V1.Model.SalesforceOrg.t`, *default:* `nil`) - Enriched Salesforce organization.
2729
* `sqlServerRdbms` (*type:* `GoogleApi.Datastream.V1.Model.SqlServerRdbms.t`, *default:* `nil`) - Enriched SQLServer RDBMS object.
2830
"""
2931

3032
use GoogleApi.Gax.ModelBase
3133

3234
@type t :: %__MODULE__{
35+
:mongodbCluster => GoogleApi.Datastream.V1.Model.MongodbCluster.t() | nil,
3336
:mysqlRdbms => GoogleApi.Datastream.V1.Model.MysqlRdbms.t() | nil,
3437
:oracleRdbms => GoogleApi.Datastream.V1.Model.OracleRdbms.t() | nil,
3538
:postgresqlRdbms => GoogleApi.Datastream.V1.Model.PostgresqlRdbms.t() | nil,
39+
:salesforceOrg => GoogleApi.Datastream.V1.Model.SalesforceOrg.t() | nil,
3640
:sqlServerRdbms => GoogleApi.Datastream.V1.Model.SqlServerRdbms.t() | nil
3741
}
3842

43+
field(:mongodbCluster, as: GoogleApi.Datastream.V1.Model.MongodbCluster)
3944
field(:mysqlRdbms, as: GoogleApi.Datastream.V1.Model.MysqlRdbms)
4045
field(:oracleRdbms, as: GoogleApi.Datastream.V1.Model.OracleRdbms)
4146
field(:postgresqlRdbms, as: GoogleApi.Datastream.V1.Model.PostgresqlRdbms)
47+
field(:salesforceOrg, as: GoogleApi.Datastream.V1.Model.SalesforceOrg)
4248
field(:sqlServerRdbms, as: GoogleApi.Datastream.V1.Model.SqlServerRdbms)
4349
end
4450

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.HostAddress do
19+
@moduledoc """
20+
A HostAddress represents a transport end point, which is the combination of an IP address or hostname and a port number.
21+
22+
## Attributes
23+
24+
* `hostname` (*type:* `String.t`, *default:* `nil`) - Required. Hostname for the connection.
25+
* `port` (*type:* `integer()`, *default:* `nil`) - Optional. Port for the connection.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:hostname => String.t() | nil,
32+
:port => integer() | nil
33+
}
34+
35+
field(:hostname)
36+
field(:port)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.HostAddress do
40+
def decode(value, options) do
41+
GoogleApi.Datastream.V1.Model.HostAddress.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.HostAddress do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
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.MongodbCluster do
19+
@moduledoc """
20+
MongoDB Cluster structure.
21+
22+
## Attributes
23+
24+
* `databases` (*type:* `list(GoogleApi.Datastream.V1.Model.MongodbDatabase.t)`, *default:* `nil`) - MongoDB databases in the cluster.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:databases => list(GoogleApi.Datastream.V1.Model.MongodbDatabase.t()) | nil
31+
}
32+
33+
field(:databases, as: GoogleApi.Datastream.V1.Model.MongodbDatabase, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.MongodbCluster do
37+
def decode(value, options) do
38+
GoogleApi.Datastream.V1.Model.MongodbCluster.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.MongodbCluster do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.MongodbCollection do
19+
@moduledoc """
20+
MongoDB Collection.
21+
22+
## Attributes
23+
24+
* `collection` (*type:* `String.t`, *default:* `nil`) - Collection name.
25+
* `fields` (*type:* `list(GoogleApi.Datastream.V1.Model.MongodbField.t)`, *default:* `nil`) - Fields in the collection.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:collection => String.t() | nil,
32+
:fields => list(GoogleApi.Datastream.V1.Model.MongodbField.t()) | nil
33+
}
34+
35+
field(:collection)
36+
field(:fields, as: GoogleApi.Datastream.V1.Model.MongodbField, type: :list)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.MongodbCollection do
40+
def decode(value, options) do
41+
GoogleApi.Datastream.V1.Model.MongodbCollection.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.MongodbCollection do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.MongodbDatabase do
19+
@moduledoc """
20+
MongoDB Database.
21+
22+
## Attributes
23+
24+
* `collections` (*type:* `list(GoogleApi.Datastream.V1.Model.MongodbCollection.t)`, *default:* `nil`) - Collections in the database.
25+
* `database` (*type:* `String.t`, *default:* `nil`) - Database name.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:collections => list(GoogleApi.Datastream.V1.Model.MongodbCollection.t()) | nil,
32+
:database => String.t() | nil
33+
}
34+
35+
field(:collections, as: GoogleApi.Datastream.V1.Model.MongodbCollection, type: :list)
36+
field(:database)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.MongodbDatabase do
40+
def decode(value, options) do
41+
GoogleApi.Datastream.V1.Model.MongodbDatabase.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.MongodbDatabase do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

0 commit comments

Comments
 (0)