Skip to content

Commit 1e08a8a

Browse files
feat: Automated regeneration of DLP client (googleapis#13087)
Auto-created at 2025-03-05 13:12:17 +0000 using the toys pull request generator.
1 parent bf1b6f6 commit 1e08a8a

7 files changed

+185
-2
lines changed

clients/dlp/lib/google_api/dlp/v2/metadata.ex

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

23-
@discovery_revision "20250226"
23+
@discovery_revision "20250305"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFinding do
19+
@moduledoc """
20+
Details about a piece of potentially sensitive information that was detected when the data resource was profiled.
21+
22+
## Attributes
23+
24+
* `dataProfileResourceName` (*type:* `String.t`, *default:* `nil`) - Resource name of the data profile associated with the finding.
25+
* `findingId` (*type:* `String.t`, *default:* `nil`) - A unique identifier for the finding.
26+
* `infotype` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2InfoType.t`, *default:* `nil`) - The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found.
27+
* `location` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFindingLocation.t`, *default:* `nil`) - Where the content was found.
28+
* `quote` (*type:* `String.t`, *default:* `nil`) - The content that was found. Even if the content is not textual, it may be converted to a textual representation here. If the finding exceeds 4096 bytes in length, the quote may be omitted.
29+
* `quoteInfo` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2QuoteInfo.t`, *default:* `nil`) - Contains data parsed from quotes. Currently supported infoTypes: DATE, DATE_OF_BIRTH, and TIME.
30+
* `resourceVisibility` (*type:* `String.t`, *default:* `nil`) - How broadly a resource has been shared.
31+
* `timestamp` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp when the finding was detected.
32+
"""
33+
34+
use GoogleApi.Gax.ModelBase
35+
36+
@type t :: %__MODULE__{
37+
:dataProfileResourceName => String.t() | nil,
38+
:findingId => String.t() | nil,
39+
:infotype => GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2InfoType.t() | nil,
40+
:location =>
41+
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFindingLocation.t() | nil,
42+
:quote => String.t() | nil,
43+
:quoteInfo => GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2QuoteInfo.t() | nil,
44+
:resourceVisibility => String.t() | nil,
45+
:timestamp => DateTime.t() | nil
46+
}
47+
48+
field(:dataProfileResourceName)
49+
field(:findingId)
50+
field(:infotype, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2InfoType)
51+
field(:location, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFindingLocation)
52+
field(:quote)
53+
field(:quoteInfo, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2QuoteInfo)
54+
field(:resourceVisibility)
55+
field(:timestamp, as: DateTime)
56+
end
57+
58+
defimpl Poison.Decoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFinding do
59+
def decode(value, options) do
60+
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFinding.decode(value, options)
61+
end
62+
end
63+
64+
defimpl Poison.Encoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFinding do
65+
def encode(value, options) do
66+
GoogleApi.Gax.ModelBase.encode(value, options)
67+
end
68+
end
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFindingLocation do
19+
@moduledoc """
20+
Location of a data profile finding within a resource.
21+
22+
## Attributes
23+
24+
* `containerName` (*type:* `String.t`, *default:* `nil`) - Name of the container where the finding is located. The top-level name is the source file name or table name. Names of some common storage containers are formatted as follows: * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` * Cloud Storage files: `gs://{bucket}/{path}`
25+
* `dataProfileFindingRecordLocation` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFindingRecordLocation.t`, *default:* `nil`) - Location of a finding within a resource that produces a table data profile.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:containerName => String.t() | nil,
32+
:dataProfileFindingRecordLocation =>
33+
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFindingRecordLocation.t() | nil
34+
}
35+
36+
field(:containerName)
37+
38+
field(:dataProfileFindingRecordLocation,
39+
as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFindingRecordLocation
40+
)
41+
end
42+
43+
defimpl Poison.Decoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFindingLocation do
44+
def decode(value, options) do
45+
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFindingLocation.decode(value, options)
46+
end
47+
end
48+
49+
defimpl Poison.Encoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFindingLocation do
50+
def encode(value, options) do
51+
GoogleApi.Gax.ModelBase.encode(value, options)
52+
end
53+
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.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFindingRecordLocation do
19+
@moduledoc """
20+
Location of a finding within a resource that produces a table data profile.
21+
22+
## Attributes
23+
24+
* `field` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2FieldId.t`, *default:* `nil`) - Field ID of the column containing the finding.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:field => GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2FieldId.t() | nil
31+
}
32+
33+
field(:field, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2FieldId)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFindingRecordLocation do
38+
def decode(value, options) do
39+
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFindingRecordLocation.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DataProfileFindingRecordLocation do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end

clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_export.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2Export do
2222
## Attributes
2323
2424
* `profileTable` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTable.t`, *default:* `nil`) - Store all profiles to BigQuery. * The system will create a new dataset and table for you if none are are provided. The dataset will be named `sensitive_data_protection_discovery` and table will be named `discovery_profiles`. This table will be placed in the same project as the container project running the scan. After the first profile is generated and the dataset and table are created, the discovery scan configuration will be updated with the dataset and table names. * See [Analyze data profiles stored in BigQuery](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles). * See [Sample queries for your BigQuery table](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#sample_sql_queries). * Data is inserted using [streaming insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) and so data may be in the buffer for a period of time after the profile has finished. * The Pub/Sub notification is sent before the streaming buffer is guaranteed to be written, so data may not be instantly visible to queries by the time your topic receives the Pub/Sub notification. * The best practice is to use the same table for an entire organization so that you can take advantage of the [provided Looker reports](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#use_a_premade_report). If you use VPC Service Controls to define security perimeters, then you must use a separate table for each boundary.
25+
* `sampleFindingsTable` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTable.t`, *default:* `nil`) - Store sample data profile findings in an existing table or a new table in an existing dataset. Each regeneration will result in new rows in BigQuery. Data is inserted using [streaming insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) and so data may be in the buffer for a period of time after the profile has finished.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
30-
:profileTable => GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTable.t() | nil
31+
:profileTable => GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTable.t() | nil,
32+
:sampleFindingsTable => GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTable.t() | nil
3133
}
3234

3335
field(:profileTable, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTable)
36+
field(:sampleFindingsTable, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTable)
3437
end
3538

3639
defimpl Poison.Decoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2Export do

clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_file_store_data_profile.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2FileStoreDataProfile do
4343
* `resourceAttributes` (*type:* `%{optional(String.t) => GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2Value.t}`, *default:* `nil`) - Attributes of the resource being profiled. Currently used attributes: * customer_managed_encryption: boolean - true: the resource is encrypted with a customer-managed key. - false: the resource is encrypted with a provider-managed key.
4444
* `resourceLabels` (*type:* `map()`, *default:* `nil`) - The labels applied to the resource at the time the profile was generated.
4545
* `resourceVisibility` (*type:* `String.t`, *default:* `nil`) - How broadly a resource has been shared.
46+
* `sampleFindingsTable` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTable.t`, *default:* `nil`) - The BigQuery table to which the sample findings are written.
4647
* `sensitivityScore` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2SensitivityScore.t`, *default:* `nil`) - The sensitivity score of this resource.
4748
* `state` (*type:* `String.t`, *default:* `nil`) - State of a profile.
4849
"""
@@ -77,6 +78,8 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2FileStoreDataProfile do
7778
%{optional(String.t()) => GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2Value.t()} | nil,
7879
:resourceLabels => map() | nil,
7980
:resourceVisibility => String.t() | nil,
81+
:sampleFindingsTable =>
82+
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTable.t() | nil,
8083
:sensitivityScore =>
8184
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2SensitivityScore.t() | nil,
8285
:state => String.t() | nil
@@ -118,6 +121,7 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2FileStoreDataProfile do
118121
field(:resourceAttributes, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2Value, type: :map)
119122
field(:resourceLabels, type: :map)
120123
field(:resourceVisibility)
124+
field(:sampleFindingsTable, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTable)
121125
field(:sensitivityScore, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2SensitivityScore)
122126
field(:state)
123127
end

clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_table_data_profile.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2TableDataProfile do
4343
* `resourceLabels` (*type:* `map()`, *default:* `nil`) - The labels applied to the resource at the time the profile was generated.
4444
* `resourceVisibility` (*type:* `String.t`, *default:* `nil`) - How broadly a resource has been shared.
4545
* `rowCount` (*type:* `String.t`, *default:* `nil`) - Number of rows in the table when the profile was generated. This will not be populated for BigLake tables.
46+
* `sampleFindingsTable` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTable.t`, *default:* `nil`) - The BigQuery table to which the sample findings are written.
4647
* `scannedColumnCount` (*type:* `String.t`, *default:* `nil`) - The number of columns profiled in the table.
4748
* `sensitivityScore` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2SensitivityScore.t`, *default:* `nil`) - The sensitivity score of this table.
4849
* `state` (*type:* `String.t`, *default:* `nil`) - State of a profile.
@@ -79,6 +80,8 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2TableDataProfile do
7980
:resourceLabels => map() | nil,
8081
:resourceVisibility => String.t() | nil,
8182
:rowCount => String.t() | nil,
83+
:sampleFindingsTable =>
84+
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTable.t() | nil,
8285
:scannedColumnCount => String.t() | nil,
8386
:sensitivityScore =>
8487
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2SensitivityScore.t() | nil,
@@ -123,6 +126,7 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2TableDataProfile do
123126
field(:resourceLabels, type: :map)
124127
field(:resourceVisibility)
125128
field(:rowCount)
129+
field(:sampleFindingsTable, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTable)
126130
field(:scannedColumnCount)
127131
field(:sensitivityScore, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2SensitivityScore)
128132
field(:state)

0 commit comments

Comments
 (0)