Skip to content

Commit 2db8ab4

Browse files
feat: Automated regeneration of Dataplex client (googleapis#13241)
Auto-created at 2025-03-27 13:20:08 +0000 using the toys pull request generator.
1 parent 07afff7 commit 2db8ab4

11 files changed

+280
-4
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do
106106
* `: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.
107107
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
108108
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
109+
* `: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.
109110
* `: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).
110111
* `:pageSize` (*type:* `integer()`) - The maximum number of results to return. If not set, the service selects a default.
111112
* `: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.
@@ -134,6 +135,7 @@ defmodule GoogleApi.Dataplex.V1.Api.Projects do
134135
:quotaUser => :query,
135136
:uploadType => :query,
136137
:upload_protocol => :query,
138+
:extraLocationTypes => :query,
137139
:filter => :query,
138140
:pageSize => :query,
139141
:pageToken => :query

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

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

23-
@discovery_revision "20250313"
23+
@discovery_revision "20250325"
2424

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

clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_asset_discovery_spec.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1AssetDiscoverySpec do
2626
* `excludePatterns` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.
2727
* `includePatterns` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names.
2828
* `jsonOptions` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1AssetDiscoverySpecJsonOptions.t`, *default:* `nil`) - Optional. Configuration for Json data.
29-
* `schedule` (*type:* `String.t`, *default:* `nil`) - Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 * * * *.
29+
* `schedule` (*type:* `String.t`, *default:* `nil`) - Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes.To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 * * * *.
3030
"""
3131

3232
use GoogleApi.Gax.ModelBase

clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_discovery_result.ex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,27 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResult d
2222
## Attributes
2323
2424
* `bigqueryPublishing` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResultBigQueryPublishing.t`, *default:* `nil`) - Output only. Configuration for metadata publishing.
25+
* `scanStatistics` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResultScanStatistics.t`, *default:* `nil`) - Output only. Statistics of the DataDiscoveryScan.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
3031
:bigqueryPublishing =>
3132
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResultBigQueryPublishing.t()
33+
| nil,
34+
:scanStatistics =>
35+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResultScanStatistics.t()
3236
| nil
3337
}
3438

3539
field(:bigqueryPublishing,
3640
as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResultBigQueryPublishing
3741
)
42+
43+
field(:scanStatistics,
44+
as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResultScanStatistics
45+
)
3846
end
3947

4048
defimpl Poison.Decoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResult do

clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_data_discovery_result_big_query_publishing.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResultBi
2222
## Attributes
2323
2424
* `dataset` (*type:* `String.t`, *default:* `nil`) - Output only. The BigQuery dataset the discovered tables are published to.
25+
* `location` (*type:* `String.t`, *default:* `nil`) - Output only. The location of the BigQuery publishing dataset.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
30-
:dataset => String.t() | nil
31+
:dataset => String.t() | nil,
32+
:location => String.t() | nil
3133
}
3234

3335
field(:dataset)
36+
field(:location)
3437
end
3538

3639
defimpl Poison.Decoder,
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResultScanStatistics do
19+
@moduledoc """
20+
Statistics of the DataDiscoveryScan.
21+
22+
## Attributes
23+
24+
* `dataProcessedBytes` (*type:* `String.t`, *default:* `nil`) - The data processed in bytes.
25+
* `filesExcluded` (*type:* `integer()`, *default:* `nil`) - The number of files excluded.
26+
* `filesetsCreated` (*type:* `integer()`, *default:* `nil`) - The number of filesets created.
27+
* `filesetsDeleted` (*type:* `integer()`, *default:* `nil`) - The number of filesets deleted.
28+
* `filesetsUpdated` (*type:* `integer()`, *default:* `nil`) - The number of filesets updated.
29+
* `scannedFileCount` (*type:* `integer()`, *default:* `nil`) - The number of files scanned.
30+
* `tablesCreated` (*type:* `integer()`, *default:* `nil`) - The number of tables created.
31+
* `tablesDeleted` (*type:* `integer()`, *default:* `nil`) - The number of tables deleted.
32+
* `tablesUpdated` (*type:* `integer()`, *default:* `nil`) - The number of tables updated.
33+
"""
34+
35+
use GoogleApi.Gax.ModelBase
36+
37+
@type t :: %__MODULE__{
38+
:dataProcessedBytes => String.t() | nil,
39+
:filesExcluded => integer() | nil,
40+
:filesetsCreated => integer() | nil,
41+
:filesetsDeleted => integer() | nil,
42+
:filesetsUpdated => integer() | nil,
43+
:scannedFileCount => integer() | nil,
44+
:tablesCreated => integer() | nil,
45+
:tablesDeleted => integer() | nil,
46+
:tablesUpdated => integer() | nil
47+
}
48+
49+
field(:dataProcessedBytes)
50+
field(:filesExcluded)
51+
field(:filesetsCreated)
52+
field(:filesetsDeleted)
53+
field(:filesetsUpdated)
54+
field(:scannedFileCount)
55+
field(:tablesCreated)
56+
field(:tablesDeleted)
57+
field(:tablesUpdated)
58+
end
59+
60+
defimpl Poison.Decoder,
61+
for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResultScanStatistics do
62+
def decode(value, options) do
63+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResultScanStatistics.decode(
64+
value,
65+
options
66+
)
67+
end
68+
end
69+
70+
defimpl Poison.Encoder,
71+
for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResultScanStatistics do
72+
def encode(value, options) do
73+
GoogleApi.Gax.ModelBase.encode(value, options)
74+
end
75+
end

clients/dataplex/lib/google_api/dataplex/v1/model/google_cloud_dataplex_v1_metadata_job.ex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJob do
2222
## Attributes
2323
2424
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the metadata job was created.
25+
* `exportResult` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobResult.t`, *default:* `nil`) - Output only. Export job result.
26+
* `exportSpec` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobSpec.t`, *default:* `nil`) - Export job specification.
2527
* `importResult` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobImportJobResult.t`, *default:* `nil`) - Output only. Import job result.
2628
* `importSpec` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobImportJobSpec.t`, *default:* `nil`) - Import job specification.
2729
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. User-defined labels.
@@ -36,6 +38,10 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJob do
3638

3739
@type t :: %__MODULE__{
3840
:createTime => DateTime.t() | nil,
41+
:exportResult =>
42+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobResult.t() | nil,
43+
:exportSpec =>
44+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobSpec.t() | nil,
3945
:importResult =>
4046
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobImportJobResult.t() | nil,
4147
:importSpec =>
@@ -50,6 +56,12 @@ defmodule GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJob do
5056

5157
field(:createTime, as: DateTime)
5258

59+
field(:exportResult,
60+
as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobResult
61+
)
62+
63+
field(:exportSpec, as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobSpec)
64+
5365
field(:importResult,
5466
as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobImportJobResult
5567
)
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobResult do
19+
@moduledoc """
20+
Export Job Results. The result is based on the snapshot at the time when the job is created.
21+
22+
## Attributes
23+
24+
* `errorMessage` (*type:* `String.t`, *default:* `nil`) - Output only. The error message if the export job failed.
25+
* `exportedEntries` (*type:* `String.t`, *default:* `nil`) - Output only. The number of entries that have been exported.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:errorMessage => String.t() | nil,
32+
:exportedEntries => String.t() | nil
33+
}
34+
35+
field(:errorMessage)
36+
field(:exportedEntries)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobResult do
41+
def decode(value, options) do
42+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobResult.decode(
43+
value,
44+
options
45+
)
46+
end
47+
end
48+
49+
defimpl Poison.Encoder,
50+
for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobResult do
51+
def encode(value, options) do
52+
GoogleApi.Gax.ModelBase.encode(value, options)
53+
end
54+
end
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobSpec do
19+
@moduledoc """
20+
Export job specification.
21+
22+
## Attributes
23+
24+
* `outputPath` (*type:* `String.t`, *default:* `nil`) - Required. The root path of the exported metadata. Must be in the format: "gs://" Or specify a customized prefix after the bucket: "gs://///.../". The length limit of the customized prefix is 128 characters. The bucket must be in the same VPC-SC perimeter with the job.
25+
* `scope` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobSpecExportJobScope.t`, *default:* `nil`) - Required. Selects the entries to be exported by this job.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:outputPath => String.t() | nil,
32+
:scope =>
33+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobSpecExportJobScope.t()
34+
| nil
35+
}
36+
37+
field(:outputPath)
38+
39+
field(:scope,
40+
as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobSpecExportJobScope
41+
)
42+
end
43+
44+
defimpl Poison.Decoder,
45+
for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobSpec do
46+
def decode(value, options) do
47+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobSpec.decode(
48+
value,
49+
options
50+
)
51+
end
52+
end
53+
54+
defimpl Poison.Encoder,
55+
for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobSpec do
56+
def encode(value, options) do
57+
GoogleApi.Gax.ModelBase.encode(value, options)
58+
end
59+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobSpecExportJobScope do
19+
@moduledoc """
20+
Scope of the export job.
21+
22+
## Attributes
23+
24+
* `aspectTypes` (*type:* `list(String.t)`, *default:* `nil`) - The aspect types that are in scope for the export job. Optional. If specified, only aspects of the specified types will be affected by the job. Must follow the format: "projects//locations//aspectTypes/"
25+
* `entryGroups` (*type:* `list(String.t)`, *default:* `nil`) - The entry groups that are in scope for the export job. Optional. If specified, only entries in the specified entry groups will be exported by the job. Must be in the VPC-SC perimeter of the job. The location of the entry groups must be the same as the job. Either projects or entry_groups can be specified when organization_level_export is set to false. Must follow the format: "projects//locations//entryGroups/"
26+
* `entryTypes` (*type:* `list(String.t)`, *default:* `nil`) - If specified, only entries of the specified types will be affected by the job. Must follow the format: "projects//locations//entryTypes/"
27+
* `organizationLevel` (*type:* `boolean()`, *default:* `nil`) - Indicating if it is an organization level export job. - When set to true, exports all entries from entry groups and projects sharing the same organization id of the Metadata Job. Only projects and entry groups in the VPC-SC perimeter will be exported. The projects and entry groups are ignored. - When set to false, one of the projects or entry groups must be specified. - Default to false.
28+
* `projects` (*type:* `list(String.t)`, *default:* `nil`) - The projects that are in the scope of the export job. Can either be project numbers or project IDs. If specified, only the entries from the specified projects will be exported. The projects must be in the same organization and in the VPC-SC perimeter. Either projects or entry_groups can be specified when organization_level_export is set to false. Must follow the format: "projects/"
29+
"""
30+
31+
use GoogleApi.Gax.ModelBase
32+
33+
@type t :: %__MODULE__{
34+
:aspectTypes => list(String.t()) | nil,
35+
:entryGroups => list(String.t()) | nil,
36+
:entryTypes => list(String.t()) | nil,
37+
:organizationLevel => boolean() | nil,
38+
:projects => list(String.t()) | nil
39+
}
40+
41+
field(:aspectTypes, type: :list)
42+
field(:entryGroups, type: :list)
43+
field(:entryTypes, type: :list)
44+
field(:organizationLevel)
45+
field(:projects, type: :list)
46+
end
47+
48+
defimpl Poison.Decoder,
49+
for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobSpecExportJobScope do
50+
def decode(value, options) do
51+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobSpecExportJobScope.decode(
52+
value,
53+
options
54+
)
55+
end
56+
end
57+
58+
defimpl Poison.Encoder,
59+
for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1MetadataJobExportJobSpecExportJobScope do
60+
def encode(value, options) do
61+
GoogleApi.Gax.ModelBase.encode(value, options)
62+
end
63+
end

0 commit comments

Comments
 (0)