Skip to content

Commit bf8e393

Browse files
feat: Automated regeneration of Dataplex client (googleapis#12423)
Auto-created at 2024-10-28 13:12:54 +0000 using the toys pull request generator.
1 parent 4318d72 commit bf8e393

12 files changed

+427
-3
lines changed

clients/dataplex/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_dataplex, "~> 0.17"}]
14+
[{:google_api_dataplex, "~> 0.18"}]
1515
end
1616
```
1717

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 "20241001"
23+
@discovery_revision "20241019"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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.GoogleCloudDataplexV1DataDiscoveryResult do
19+
@moduledoc """
20+
The output of a data discovery scan.
21+
22+
## Attributes
23+
24+
* `bigqueryPublishing` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResultBigQueryPublishing.t`, *default:* `nil`) - Output only. Configuration for metadata publishing.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:bigqueryPublishing =>
31+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResultBigQueryPublishing.t()
32+
| nil
33+
}
34+
35+
field(:bigqueryPublishing,
36+
as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResultBigQueryPublishing
37+
)
38+
end
39+
40+
defimpl Poison.Decoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResult do
41+
def decode(value, options) do
42+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResult.decode(value, options)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResult do
47+
def encode(value, options) do
48+
GoogleApi.Gax.ModelBase.encode(value, options)
49+
end
50+
end
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.GoogleCloudDataplexV1DataDiscoveryResultBigQueryPublishing do
19+
@moduledoc """
20+
Describes BigQuery publishing configurations.
21+
22+
## Attributes
23+
24+
* `dataset` (*type:* `String.t`, *default:* `nil`) - Output only. The BigQuery dataset to publish to. It takes the form projects/{project_id}/datasets/{dataset_id}. If not set, the service creates a default publishing dataset.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:dataset => String.t() | nil
31+
}
32+
33+
field(:dataset)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResultBigQueryPublishing do
38+
def decode(value, options) do
39+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResultBigQueryPublishing.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoveryResultBigQueryPublishing do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end
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.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpec do
19+
@moduledoc """
20+
Spec for a data discovery scan.
21+
22+
## Attributes
23+
24+
* `bigqueryPublishingConfig` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecBigQueryPublishingConfig.t`, *default:* `nil`) - Optional. Configuration for metadata publishing.
25+
* `storageConfig` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecStorageConfig.t`, *default:* `nil`) - Cloud Storage related configurations.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:bigqueryPublishingConfig =>
32+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecBigQueryPublishingConfig.t()
33+
| nil,
34+
:storageConfig =>
35+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecStorageConfig.t()
36+
| nil
37+
}
38+
39+
field(:bigqueryPublishingConfig,
40+
as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecBigQueryPublishingConfig
41+
)
42+
43+
field(:storageConfig,
44+
as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecStorageConfig
45+
)
46+
end
47+
48+
defimpl Poison.Decoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpec do
49+
def decode(value, options) do
50+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpec.decode(value, options)
51+
end
52+
end
53+
54+
defimpl Poison.Encoder, for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpec do
55+
def encode(value, options) do
56+
GoogleApi.Gax.ModelBase.encode(value, options)
57+
end
58+
end
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.GoogleCloudDataplexV1DataDiscoverySpecBigQueryPublishingConfig do
19+
@moduledoc """
20+
Describes BigQuery publishing configurations.
21+
22+
## Attributes
23+
24+
* `connection` (*type:* `String.t`, *default:* `nil`) - Optional. The BigQuery connection used to create BigLake tables. Must be in the form projects/{project_id}/locations/{location_id}/connections/{connection_id}
25+
* `tableType` (*type:* `String.t`, *default:* `nil`) - Optional. Determines whether to publish discovered tables as BigLake external tables or non-BigLake external tables.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:connection => String.t() | nil,
32+
:tableType => String.t() | nil
33+
}
34+
35+
field(:connection)
36+
field(:tableType)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecBigQueryPublishingConfig do
41+
def decode(value, options) do
42+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecBigQueryPublishingConfig.decode(
43+
value,
44+
options
45+
)
46+
end
47+
end
48+
49+
defimpl Poison.Encoder,
50+
for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecBigQueryPublishingConfig do
51+
def encode(value, options) do
52+
GoogleApi.Gax.ModelBase.encode(value, options)
53+
end
54+
end
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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.GoogleCloudDataplexV1DataDiscoverySpecStorageConfig do
19+
@moduledoc """
20+
Configurations related to Cloud Storage as the data source.
21+
22+
## Attributes
23+
24+
* `csvOptions` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecStorageConfigCsvOptions.t`, *default:* `nil`) - Optional. Configuration for CSV data.
25+
* `excludePatterns` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Defines the data to exclude during discovery. Provide a list of patterns that identify the data to exclude. For Cloud Storage bucket assets, these patterns are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these patterns are interpreted as patterns to match table names.
26+
* `includePatterns` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Defines the data to include during discovery when only a subset of the data should be considered. Provide a list of patterns that identify the data to include. For Cloud Storage bucket assets, these patterns are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these patterns are interpreted as patterns to match table names.
27+
* `jsonOptions` (*type:* `GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecStorageConfigJsonOptions.t`, *default:* `nil`) - Optional. Configuration for JSON data.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:csvOptions =>
34+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecStorageConfigCsvOptions.t()
35+
| nil,
36+
:excludePatterns => list(String.t()) | nil,
37+
:includePatterns => list(String.t()) | nil,
38+
:jsonOptions =>
39+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecStorageConfigJsonOptions.t()
40+
| nil
41+
}
42+
43+
field(:csvOptions,
44+
as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecStorageConfigCsvOptions
45+
)
46+
47+
field(:excludePatterns, type: :list)
48+
field(:includePatterns, type: :list)
49+
50+
field(:jsonOptions,
51+
as: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecStorageConfigJsonOptions
52+
)
53+
end
54+
55+
defimpl Poison.Decoder,
56+
for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecStorageConfig do
57+
def decode(value, options) do
58+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecStorageConfig.decode(
59+
value,
60+
options
61+
)
62+
end
63+
end
64+
65+
defimpl Poison.Encoder,
66+
for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecStorageConfig do
67+
def encode(value, options) do
68+
GoogleApi.Gax.ModelBase.encode(value, options)
69+
end
70+
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.GoogleCloudDataplexV1DataDiscoverySpecStorageConfigCsvOptions do
19+
@moduledoc """
20+
Describes CSV and similar semi-structured data formats.
21+
22+
## Attributes
23+
24+
* `delimiter` (*type:* `String.t`, *default:* `nil`) - Optional. The delimiter that is used to separate values. The default is , (comma).
25+
* `encoding` (*type:* `String.t`, *default:* `nil`) - Optional. The character encoding of the data. The default is UTF-8.
26+
* `headerRows` (*type:* `integer()`, *default:* `nil`) - Optional. The number of rows to interpret as header rows that should be skipped when reading data rows.
27+
* `quote` (*type:* `String.t`, *default:* `nil`) - Optional. The character used to quote column values. Accepts " (double quotation mark) or ' (single quotation mark). If unspecified, defaults to " (double quotation mark).
28+
* `typeInferenceDisabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether to disable the inference of data types for CSV data. If true, all columns are registered as strings.
29+
"""
30+
31+
use GoogleApi.Gax.ModelBase
32+
33+
@type t :: %__MODULE__{
34+
:delimiter => String.t() | nil,
35+
:encoding => String.t() | nil,
36+
:headerRows => integer() | nil,
37+
:quote => String.t() | nil,
38+
:typeInferenceDisabled => boolean() | nil
39+
}
40+
41+
field(:delimiter)
42+
field(:encoding)
43+
field(:headerRows)
44+
field(:quote)
45+
field(:typeInferenceDisabled)
46+
end
47+
48+
defimpl Poison.Decoder,
49+
for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecStorageConfigCsvOptions do
50+
def decode(value, options) do
51+
GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecStorageConfigCsvOptions.decode(
52+
value,
53+
options
54+
)
55+
end
56+
end
57+
58+
defimpl Poison.Encoder,
59+
for: GoogleApi.Dataplex.V1.Model.GoogleCloudDataplexV1DataDiscoverySpecStorageConfigCsvOptions do
60+
def encode(value, options) do
61+
GoogleApi.Gax.ModelBase.encode(value, options)
62+
end
63+
end

0 commit comments

Comments
 (0)