Skip to content

Commit 5ab7022

Browse files
feat: Automated regeneration of Datastream client (googleapis#12999)
Auto-created at 2025-02-20 13:14:30 +0000 using the toys pull request generator.
1 parent a5414f2 commit 5ab7022

15 files changed

+484
-1
lines changed

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 "20250202"
23+
@discovery_revision "20250213"
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
@@ -24,6 +24,7 @@ defmodule GoogleApi.Datastream.V1.Model.BackfillAllStrategy do
2424
* `mysqlExcludedObjects` (*type:* `GoogleApi.Datastream.V1.Model.MysqlRdbms.t`, *default:* `nil`) - MySQL data source objects to avoid backfilling.
2525
* `oracleExcludedObjects` (*type:* `GoogleApi.Datastream.V1.Model.OracleRdbms.t`, *default:* `nil`) - Oracle data source objects to avoid backfilling.
2626
* `postgresqlExcludedObjects` (*type:* `GoogleApi.Datastream.V1.Model.PostgresqlRdbms.t`, *default:* `nil`) - PostgreSQL data source objects to avoid backfilling.
27+
* `salesforceExcludedObjects` (*type:* `GoogleApi.Datastream.V1.Model.SalesforceOrg.t`, *default:* `nil`) - Salesforce data source objects to avoid backfilling
2728
* `sqlServerExcludedObjects` (*type:* `GoogleApi.Datastream.V1.Model.SqlServerRdbms.t`, *default:* `nil`) - SQLServer data source objects to avoid backfilling
2829
"""
2930

@@ -33,12 +34,14 @@ defmodule GoogleApi.Datastream.V1.Model.BackfillAllStrategy do
3334
:mysqlExcludedObjects => GoogleApi.Datastream.V1.Model.MysqlRdbms.t() | nil,
3435
:oracleExcludedObjects => GoogleApi.Datastream.V1.Model.OracleRdbms.t() | nil,
3536
:postgresqlExcludedObjects => GoogleApi.Datastream.V1.Model.PostgresqlRdbms.t() | nil,
37+
:salesforceExcludedObjects => GoogleApi.Datastream.V1.Model.SalesforceOrg.t() | nil,
3638
:sqlServerExcludedObjects => GoogleApi.Datastream.V1.Model.SqlServerRdbms.t() | nil
3739
}
3840

3941
field(:mysqlExcludedObjects, as: GoogleApi.Datastream.V1.Model.MysqlRdbms)
4042
field(:oracleExcludedObjects, as: GoogleApi.Datastream.V1.Model.OracleRdbms)
4143
field(:postgresqlExcludedObjects, as: GoogleApi.Datastream.V1.Model.PostgresqlRdbms)
44+
field(:salesforceExcludedObjects, as: GoogleApi.Datastream.V1.Model.SalesforceOrg)
4245
field(:sqlServerExcludedObjects, as: GoogleApi.Datastream.V1.Model.SqlServerRdbms)
4346
end
4447

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.Datastream.V1.Model.BigQueryDestinationConfig do
2222
## Attributes
2323
2424
* `appendOnly` (*type:* `GoogleApi.Datastream.V1.Model.AppendOnly.t`, *default:* `nil`) - Append only mode
25+
* `blmtConfig` (*type:* `GoogleApi.Datastream.V1.Model.BlmtConfig.t`, *default:* `nil`) - Optional. Big Lake Managed Tables (BLMT) configuration.
2526
* `dataFreshness` (*type:* `String.t`, *default:* `nil`) - The guaranteed data freshness (in seconds) when querying tables created by the stream. Editing this field will only affect new tables created in the future, but existing tables will not be impacted. Lower values mean that queries will return fresher data, but may result in higher cost.
2627
* `merge` (*type:* `GoogleApi.Datastream.V1.Model.Merge.t`, *default:* `nil`) - The standard mode
2728
* `singleTargetDataset` (*type:* `GoogleApi.Datastream.V1.Model.SingleTargetDataset.t`, *default:* `nil`) - Single destination dataset.
@@ -32,6 +33,7 @@ defmodule GoogleApi.Datastream.V1.Model.BigQueryDestinationConfig do
3233

3334
@type t :: %__MODULE__{
3435
:appendOnly => GoogleApi.Datastream.V1.Model.AppendOnly.t() | nil,
36+
:blmtConfig => GoogleApi.Datastream.V1.Model.BlmtConfig.t() | nil,
3537
:dataFreshness => String.t() | nil,
3638
:merge => GoogleApi.Datastream.V1.Model.Merge.t() | nil,
3739
:singleTargetDataset => GoogleApi.Datastream.V1.Model.SingleTargetDataset.t() | nil,
@@ -40,6 +42,7 @@ defmodule GoogleApi.Datastream.V1.Model.BigQueryDestinationConfig do
4042
}
4143

4244
field(:appendOnly, as: GoogleApi.Datastream.V1.Model.AppendOnly)
45+
field(:blmtConfig, as: GoogleApi.Datastream.V1.Model.BlmtConfig)
4346
field(:dataFreshness)
4447
field(:merge, as: GoogleApi.Datastream.V1.Model.Merge)
4548
field(:singleTargetDataset, as: GoogleApi.Datastream.V1.Model.SingleTargetDataset)
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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.BlmtConfig do
19+
@moduledoc """
20+
The configuration for BLMT.
21+
22+
## Attributes
23+
24+
* `bucket` (*type:* `String.t`, *default:* `nil`) - Required. The Cloud Storage bucket name.
25+
* `connectionName` (*type:* `String.t`, *default:* `nil`) - Required. The bigquery connection. Format: `{project}.{location}.{name}`
26+
* `fileFormat` (*type:* `String.t`, *default:* `nil`) - Required. The file format.
27+
* `rootPath` (*type:* `String.t`, *default:* `nil`) - The root path inside the Cloud Storage bucket.
28+
* `tableFormat` (*type:* `String.t`, *default:* `nil`) - Required. The table format.
29+
"""
30+
31+
use GoogleApi.Gax.ModelBase
32+
33+
@type t :: %__MODULE__{
34+
:bucket => String.t() | nil,
35+
:connectionName => String.t() | nil,
36+
:fileFormat => String.t() | nil,
37+
:rootPath => String.t() | nil,
38+
:tableFormat => String.t() | nil
39+
}
40+
41+
field(:bucket)
42+
field(:connectionName)
43+
field(:fileFormat)
44+
field(:rootPath)
45+
field(:tableFormat)
46+
end
47+
48+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.BlmtConfig do
49+
def decode(value, options) do
50+
GoogleApi.Datastream.V1.Model.BlmtConfig.decode(value, options)
51+
end
52+
end
53+
54+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.BlmtConfig do
55+
def encode(value, options) do
56+
GoogleApi.Gax.ModelBase.encode(value, options)
57+
end
58+
end

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
@@ -32,6 +32,7 @@ defmodule GoogleApi.Datastream.V1.Model.ConnectionProfile do
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.
35+
* `salesforceProfile` (*type:* `GoogleApi.Datastream.V1.Model.SalesforceProfile.t`, *default:* `nil`) - Salesforce Connection Profile configuration.
3536
* `satisfiesPzi` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use.
3637
* `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use.
3738
* `sqlServerProfile` (*type:* `GoogleApi.Datastream.V1.Model.SqlServerProfile.t`, *default:* `nil`) - SQLServer Connection Profile configuration.
@@ -54,6 +55,7 @@ defmodule GoogleApi.Datastream.V1.Model.ConnectionProfile do
5455
:oracleProfile => GoogleApi.Datastream.V1.Model.OracleProfile.t() | nil,
5556
:postgresqlProfile => GoogleApi.Datastream.V1.Model.PostgresqlProfile.t() | nil,
5657
:privateConnectivity => GoogleApi.Datastream.V1.Model.PrivateConnectivity.t() | nil,
58+
:salesforceProfile => GoogleApi.Datastream.V1.Model.SalesforceProfile.t() | nil,
5759
:satisfiesPzi => boolean() | nil,
5860
:satisfiesPzs => boolean() | nil,
5961
:sqlServerProfile => GoogleApi.Datastream.V1.Model.SqlServerProfile.t() | nil,
@@ -73,6 +75,7 @@ defmodule GoogleApi.Datastream.V1.Model.ConnectionProfile do
7375
field(:oracleProfile, as: GoogleApi.Datastream.V1.Model.OracleProfile)
7476
field(:postgresqlProfile, as: GoogleApi.Datastream.V1.Model.PostgresqlProfile)
7577
field(:privateConnectivity, as: GoogleApi.Datastream.V1.Model.PrivateConnectivity)
78+
field(:salesforceProfile, as: GoogleApi.Datastream.V1.Model.SalesforceProfile)
7679
field(:satisfiesPzi)
7780
field(:satisfiesPzs)
7881
field(:sqlServerProfile, as: GoogleApi.Datastream.V1.Model.SqlServerProfile)
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.Oauth2ClientCredentials do
19+
@moduledoc """
20+
OAuth2 Client Credentials.
21+
22+
## Attributes
23+
24+
* `clientId` (*type:* `String.t`, *default:* `nil`) - Required. Client ID for Salesforce OAuth2 Client Credentials.
25+
* `clientSecret` (*type:* `String.t`, *default:* `nil`) - Optional. Client secret for Salesforce OAuth2 Client Credentials. Mutually exclusive with the `secret_manager_stored_client_secret` field.
26+
* `secretManagerStoredClientSecret` (*type:* `String.t`, *default:* `nil`) - Optional. A reference to a Secret Manager resource name storing the Salesforce OAuth2 client_secret. Mutually exclusive with the `client_secret` field.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:clientId => String.t() | nil,
33+
:clientSecret => String.t() | nil,
34+
:secretManagerStoredClientSecret => String.t() | nil
35+
}
36+
37+
field(:clientId)
38+
field(:clientSecret)
39+
field(:secretManagerStoredClientSecret)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.Oauth2ClientCredentials do
43+
def decode(value, options) do
44+
GoogleApi.Datastream.V1.Model.Oauth2ClientCredentials.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.Oauth2ClientCredentials do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.SalesforceField do
19+
@moduledoc """
20+
Salesforce field.
21+
22+
## Attributes
23+
24+
* `dataType` (*type:* `String.t`, *default:* `nil`) - The data type.
25+
* `name` (*type:* `String.t`, *default:* `nil`) - Field name.
26+
* `nillable` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the field can accept nil values.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:dataType => String.t() | nil,
33+
:name => String.t() | nil,
34+
:nillable => boolean() | nil
35+
}
36+
37+
field(:dataType)
38+
field(:name)
39+
field(:nillable)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.SalesforceField do
43+
def decode(value, options) do
44+
GoogleApi.Datastream.V1.Model.SalesforceField.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.SalesforceField do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
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.SalesforceObject do
19+
@moduledoc """
20+
Salesforce object.
21+
22+
## Attributes
23+
24+
* `fields` (*type:* `list(GoogleApi.Datastream.V1.Model.SalesforceField.t)`, *default:* `nil`) - Salesforce fields. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.
25+
* `objectName` (*type:* `String.t`, *default:* `nil`) - Object name.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:fields => list(GoogleApi.Datastream.V1.Model.SalesforceField.t()) | nil,
32+
:objectName => String.t() | nil
33+
}
34+
35+
field(:fields, as: GoogleApi.Datastream.V1.Model.SalesforceField, type: :list)
36+
field(:objectName)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.SalesforceObject do
40+
def decode(value, options) do
41+
GoogleApi.Datastream.V1.Model.SalesforceObject.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.SalesforceObject 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.SalesforceObjectIdentifier do
19+
@moduledoc """
20+
Salesforce data source object identifier.
21+
22+
## Attributes
23+
24+
* `objectName` (*type:* `String.t`, *default:* `nil`) - Required. The object name.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:objectName => String.t() | nil
31+
}
32+
33+
field(:objectName)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.SalesforceObjectIdentifier do
37+
def decode(value, options) do
38+
GoogleApi.Datastream.V1.Model.SalesforceObjectIdentifier.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.SalesforceObjectIdentifier do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
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.SalesforceOrg do
19+
@moduledoc """
20+
Salesforce organization structure.
21+
22+
## Attributes
23+
24+
* `objects` (*type:* `list(GoogleApi.Datastream.V1.Model.SalesforceObject.t)`, *default:* `nil`) - Salesforce objects in the database server.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:objects => list(GoogleApi.Datastream.V1.Model.SalesforceObject.t()) | nil
31+
}
32+
33+
field(:objects, as: GoogleApi.Datastream.V1.Model.SalesforceObject, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Datastream.V1.Model.SalesforceOrg do
37+
def decode(value, options) do
38+
GoogleApi.Datastream.V1.Model.SalesforceOrg.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Datastream.V1.Model.SalesforceOrg do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

0 commit comments

Comments
 (0)