Skip to content

Commit 05218dc

Browse files
feat: Automated regeneration of DataFusion client (#13052)
Auto-created at 2025-02-28 13:15:13 +0000 using the toys pull request generator.
1 parent 2bebe59 commit 05218dc

File tree

6 files changed

+110
-6
lines changed

6 files changed

+110
-6
lines changed

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

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

23-
@discovery_revision "20250122"
23+
@discovery_revision "20250224"
2424

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

clients/data_fusion/lib/google_api/data_fusion/v1/model/instance.ex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ defmodule GoogleApi.DataFusion.V1.Model.Instance do
3131
* `stateMessage` (*type:* `String.t`, *default:* `nil`) - Output only. Additional information about the current state of this Data Fusion instance if available.
3232
* `dataplexDataLineageIntegrationEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Option to enable the Dataplex Lineage Integration feature.
3333
* `maintenanceEvents` (*type:* `list(GoogleApi.DataFusion.V1.Model.MaintenanceEvent.t)`, *default:* `nil`) - Output only. The maintenance events for this instance.
34-
* `enableStackdriverLogging` (*type:* `boolean()`, *default:* `nil`) - Optional. Option to enable Stackdriver Logging.
34+
* `loggingConfig` (*type:* `GoogleApi.DataFusion.V1.Model.LoggingConfig.t`, *default:* `nil`) - Optional. The logging configuration for this instance. This field is supported only in CDF versions 6.11.0 and above.
35+
* `enableStackdriverLogging` (*type:* `boolean()`, *default:* `nil`) - Optional. Option to enable Dataproc Stackdriver Logging.
3536
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. A description of this instance.
3637
* `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. Display name for an instance.
3738
* `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use.
@@ -57,6 +58,7 @@ defmodule GoogleApi.DataFusion.V1.Model.Instance do
5758
* `disabledReason` (*type:* `list(String.t)`, *default:* `nil`) - Output only. If the instance state is DISABLED, the reason for disabling the instance.
5859
* `networkConfig` (*type:* `GoogleApi.DataFusion.V1.Model.NetworkConfig.t`, *default:* `nil`) - Optional. Network configuration options. These are required when a private Data Fusion instance is to be created.
5960
* `tenantProjectId` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the tenant project.
61+
* `satisfiesPzi` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use.
6062
"""
6163

6264
use GoogleApi.Gax.ModelBase
@@ -72,6 +74,7 @@ defmodule GoogleApi.DataFusion.V1.Model.Instance do
7274
:stateMessage => String.t() | nil,
7375
:dataplexDataLineageIntegrationEnabled => boolean() | nil,
7476
:maintenanceEvents => list(GoogleApi.DataFusion.V1.Model.MaintenanceEvent.t()) | nil,
77+
:loggingConfig => GoogleApi.DataFusion.V1.Model.LoggingConfig.t() | nil,
7578
:enableStackdriverLogging => boolean() | nil,
7679
:description => String.t() | nil,
7780
:displayName => String.t() | nil,
@@ -97,7 +100,8 @@ defmodule GoogleApi.DataFusion.V1.Model.Instance do
97100
:privateInstance => boolean() | nil,
98101
:disabledReason => list(String.t()) | nil,
99102
:networkConfig => GoogleApi.DataFusion.V1.Model.NetworkConfig.t() | nil,
100-
:tenantProjectId => String.t() | nil
103+
:tenantProjectId => String.t() | nil,
104+
:satisfiesPzi => boolean() | nil
101105
}
102106

103107
field(:enableZoneSeparation)
@@ -110,6 +114,7 @@ defmodule GoogleApi.DataFusion.V1.Model.Instance do
110114
field(:stateMessage)
111115
field(:dataplexDataLineageIntegrationEnabled)
112116
field(:maintenanceEvents, as: GoogleApi.DataFusion.V1.Model.MaintenanceEvent, type: :list)
117+
field(:loggingConfig, as: GoogleApi.DataFusion.V1.Model.LoggingConfig)
113118
field(:enableStackdriverLogging)
114119
field(:description)
115120
field(:displayName)
@@ -136,6 +141,7 @@ defmodule GoogleApi.DataFusion.V1.Model.Instance do
136141
field(:disabledReason, type: :list)
137142
field(:networkConfig, as: GoogleApi.DataFusion.V1.Model.NetworkConfig)
138143
field(:tenantProjectId)
144+
field(:satisfiesPzi)
139145
end
140146

141147
defimpl Poison.Decoder, for: GoogleApi.DataFusion.V1.Model.Instance 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.DataFusion.V1.Model.LoggingConfig do
19+
@moduledoc """
20+
Logging configuration for a Data Fusion instance.
21+
22+
## Attributes
23+
24+
* `instanceCloudLoggingDisabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Option to determine whether instance logs should be written to Cloud Logging. By default, instance logs are written to Cloud Logging.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:instanceCloudLoggingDisabled => boolean() | nil
31+
}
32+
33+
field(:instanceCloudLoggingDisabled)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.DataFusion.V1.Model.LoggingConfig do
37+
def decode(value, options) do
38+
GoogleApi.DataFusion.V1.Model.LoggingConfig.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.DataFusion.V1.Model.LoggingConfig do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/data_fusion/lib/google_api/data_fusion/v1beta1/metadata.ex

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

23-
@discovery_revision "20250122"
23+
@discovery_revision "20250224"
2424

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

clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/instance.ex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ defmodule GoogleApi.DataFusion.V1beta1.Model.Instance do
3131
* `stateMessage` (*type:* `String.t`, *default:* `nil`) - Output only. Additional information about the current state of this Data Fusion instance if available.
3232
* `dataplexDataLineageIntegrationEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Option to enable the Dataplex Lineage Integration feature.
3333
* `maintenanceEvents` (*type:* `list(GoogleApi.DataFusion.V1beta1.Model.MaintenanceEvent.t)`, *default:* `nil`) - Output only. The maintenance events for this instance.
34-
* `enableStackdriverLogging` (*type:* `boolean()`, *default:* `nil`) - Option to enable Stackdriver Logging.
34+
* `loggingConfig` (*type:* `GoogleApi.DataFusion.V1beta1.Model.LoggingConfig.t`, *default:* `nil`) - Optional. The logging configuration for this instance. This field is supported only in CDF versions 6.11.0 and above.
35+
* `enableStackdriverLogging` (*type:* `boolean()`, *default:* `nil`) - Option to enable Dataproc Stackdriver Logging.
3536
* `description` (*type:* `String.t`, *default:* `nil`) - A description of this instance.
3637
* `displayName` (*type:* `String.t`, *default:* `nil`) - Display name for an instance.
3738
* `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use.
@@ -57,6 +58,7 @@ defmodule GoogleApi.DataFusion.V1beta1.Model.Instance do
5758
* `disabledReason` (*type:* `list(String.t)`, *default:* `nil`) - Output only. If the instance state is DISABLED, the reason for disabling the instance.
5859
* `networkConfig` (*type:* `GoogleApi.DataFusion.V1beta1.Model.NetworkConfig.t`, *default:* `nil`) - Network configuration options. These are required when a private Data Fusion instance is to be created.
5960
* `tenantProjectId` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the tenant project.
61+
* `satisfiesPzi` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use.
6062
"""
6163

6264
use GoogleApi.Gax.ModelBase
@@ -73,6 +75,7 @@ defmodule GoogleApi.DataFusion.V1beta1.Model.Instance do
7375
:dataplexDataLineageIntegrationEnabled => boolean() | nil,
7476
:maintenanceEvents =>
7577
list(GoogleApi.DataFusion.V1beta1.Model.MaintenanceEvent.t()) | nil,
78+
:loggingConfig => GoogleApi.DataFusion.V1beta1.Model.LoggingConfig.t() | nil,
7679
:enableStackdriverLogging => boolean() | nil,
7780
:description => String.t() | nil,
7881
:displayName => String.t() | nil,
@@ -98,7 +101,8 @@ defmodule GoogleApi.DataFusion.V1beta1.Model.Instance do
98101
:privateInstance => boolean() | nil,
99102
:disabledReason => list(String.t()) | nil,
100103
:networkConfig => GoogleApi.DataFusion.V1beta1.Model.NetworkConfig.t() | nil,
101-
:tenantProjectId => String.t() | nil
104+
:tenantProjectId => String.t() | nil,
105+
:satisfiesPzi => boolean() | nil
102106
}
103107

104108
field(:enableZoneSeparation)
@@ -111,6 +115,7 @@ defmodule GoogleApi.DataFusion.V1beta1.Model.Instance do
111115
field(:stateMessage)
112116
field(:dataplexDataLineageIntegrationEnabled)
113117
field(:maintenanceEvents, as: GoogleApi.DataFusion.V1beta1.Model.MaintenanceEvent, type: :list)
118+
field(:loggingConfig, as: GoogleApi.DataFusion.V1beta1.Model.LoggingConfig)
114119
field(:enableStackdriverLogging)
115120
field(:description)
116121
field(:displayName)
@@ -137,6 +142,7 @@ defmodule GoogleApi.DataFusion.V1beta1.Model.Instance do
137142
field(:disabledReason, type: :list)
138143
field(:networkConfig, as: GoogleApi.DataFusion.V1beta1.Model.NetworkConfig)
139144
field(:tenantProjectId)
145+
field(:satisfiesPzi)
140146
end
141147

142148
defimpl Poison.Decoder, for: GoogleApi.DataFusion.V1beta1.Model.Instance 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.DataFusion.V1beta1.Model.LoggingConfig do
19+
@moduledoc """
20+
Logging configuration for a Data Fusion instance.
21+
22+
## Attributes
23+
24+
* `instanceCloudLoggingDisabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Option to determine whether instance logs should be written to Cloud Logging. By default, instance logs are written to Cloud Logging.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:instanceCloudLoggingDisabled => boolean() | nil
31+
}
32+
33+
field(:instanceCloudLoggingDisabled)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.DataFusion.V1beta1.Model.LoggingConfig do
37+
def decode(value, options) do
38+
GoogleApi.DataFusion.V1beta1.Model.LoggingConfig.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.DataFusion.V1beta1.Model.LoggingConfig do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

0 commit comments

Comments
 (0)