Skip to content

Commit 0ffb467

Browse files
feat: Automated regeneration of DLP client (googleapis#12994)
Auto-created at 2025-02-20 13:11:34 +0000 using the toys pull request generator.
1 parent 7a0a022 commit 0ffb467

20 files changed

+681
-5
lines changed

clients/dlp/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_dlp, "~> 0.53"}]
14+
[{:google_api_dlp, "~> 0.54"}]
1515
end
1616
```
1717

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 "20250119"
23+
@discovery_revision "20250216"
2424

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

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryConfig do
3030
* `name` (*type:* `String.t`, *default:* `nil`) - Unique resource name for the DiscoveryConfig, assigned by the service when the DiscoveryConfig is created, for example `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`.
3131
* `orgConfig` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2OrgConfig.t`, *default:* `nil`) - Only set when the parent is an org.
3232
* `otherCloudStartingLocation` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation.t`, *default:* `nil`) - Must be set only when scanning other clouds.
33+
* `processingLocation` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2ProcessingLocation.t`, *default:* `nil`) - Optional. Processing location configuration. Vertex AI dataset scanning will set processing_location.image_fallback_type to MultiRegionProcessing by default.
3334
* `status` (*type:* `String.t`, *default:* `nil`) - Required. A status for this configuration.
3435
* `targets` (*type:* `list(GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryTarget.t)`, *default:* `nil`) - Target to match against for determining what to scan and how frequently.
3536
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The last update timestamp of a DiscoveryConfig.
@@ -48,6 +49,8 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryConfig do
4849
:orgConfig => GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2OrgConfig.t() | nil,
4950
:otherCloudStartingLocation =>
5051
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation.t() | nil,
52+
:processingLocation =>
53+
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2ProcessingLocation.t() | nil,
5154
:status => String.t() | nil,
5255
:targets => list(GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryTarget.t()) | nil,
5356
:updateTime => DateTime.t() | nil
@@ -66,6 +69,7 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryConfig do
6669
as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation
6770
)
6871

72+
field(:processingLocation, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2ProcessingLocation)
6973
field(:status)
7074
field(:targets, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryTarget, type: :list)
7175
field(:updateTime, as: DateTime)

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryTarget do
2626
* `cloudStorageTarget` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2CloudStorageDiscoveryTarget.t`, *default:* `nil`) - Cloud Storage target for Discovery. The first target to match a table will be the one applied.
2727
* `otherCloudTarget` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2OtherCloudDiscoveryTarget.t`, *default:* `nil`) - Other clouds target for discovery. The first target to match a resource will be the one applied.
2828
* `secretsTarget` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2SecretsDiscoveryTarget.t`, *default:* `nil`) - Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed.
29+
* `vertexDatasetTarget` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2VertexDatasetDiscoveryTarget.t`, *default:* `nil`) - Vertex AI dataset target for Discovery. The first target to match a dataset will be the one applied. Note that discovery for Vertex AI can incur Cloud Storage Class B operation charges for storage.objects.get operations and retrieval fees. For more information, see [Cloud Storage pricing](https://cloud.google.com/storage/pricing#price-tables). Note that discovery for Vertex AI dataset will not be able to scan images unless DiscoveryConfig.processing_location.image_fallback_location has multi_region_processing or global_processing configured.
2930
"""
3031

3132
use GoogleApi.Gax.ModelBase
@@ -40,7 +41,9 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryTarget do
4041
:otherCloudTarget =>
4142
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2OtherCloudDiscoveryTarget.t() | nil,
4243
:secretsTarget =>
43-
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2SecretsDiscoveryTarget.t() | nil
44+
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2SecretsDiscoveryTarget.t() | nil,
45+
:vertexDatasetTarget =>
46+
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2VertexDatasetDiscoveryTarget.t() | nil
4447
}
4548

4649
field(:bigQueryTarget, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryDiscoveryTarget)
@@ -52,6 +55,10 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryTarget do
5255

5356
field(:otherCloudTarget, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2OtherCloudDiscoveryTarget)
5457
field(:secretsTarget, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2SecretsDiscoveryTarget)
58+
59+
field(:vertexDatasetTarget,
60+
as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2VertexDatasetDiscoveryTarget
61+
)
5562
end
5663

5764
defimpl Poison.Decoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryTarget do
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.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryVertexDatasetConditions do
19+
@moduledoc """
20+
Requirements that must be true before a dataset is profiled for the first time.
21+
22+
## Attributes
23+
24+
* `createdAfter` (*type:* `DateTime.t`, *default:* `nil`) - Vertex AI dataset must have been created after this date. Used to avoid backfilling.
25+
* `minAge` (*type:* `String.t`, *default:* `nil`) - Minimum age a Vertex AI dataset must have. If set, the value must be 1 hour or greater.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:createdAfter => DateTime.t() | nil,
32+
:minAge => String.t() | nil
33+
}
34+
35+
field(:createdAfter, as: DateTime)
36+
field(:minAge)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryVertexDatasetConditions do
41+
def decode(value, options) do
42+
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryVertexDatasetConditions.decode(
43+
value,
44+
options
45+
)
46+
end
47+
end
48+
49+
defimpl Poison.Encoder,
50+
for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryVertexDatasetConditions do
51+
def encode(value, options) do
52+
GoogleApi.Gax.ModelBase.encode(value, options)
53+
end
54+
end
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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.GooglePrivacyDlpV2DiscoveryVertexDatasetFilter do
19+
@moduledoc """
20+
Determines what datasets will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID or dataset regex.
21+
22+
## Attributes
23+
24+
* `collection` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2VertexDatasetCollection.t`, *default:* `nil`) - A specific set of Vertex AI datasets for this filter to apply to.
25+
* `others` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2AllOtherResources.t`, *default:* `nil`) - Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically.
26+
* `vertexDatasetResourceReference` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2VertexDatasetResourceReference.t`, *default:* `nil`) - The dataset resource to scan. Targets including this can only include one target (the target with this dataset resource reference).
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:collection =>
33+
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2VertexDatasetCollection.t() | nil,
34+
:others => GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2AllOtherResources.t() | nil,
35+
:vertexDatasetResourceReference =>
36+
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2VertexDatasetResourceReference.t() | nil
37+
}
38+
39+
field(:collection, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2VertexDatasetCollection)
40+
field(:others, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2AllOtherResources)
41+
42+
field(:vertexDatasetResourceReference,
43+
as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2VertexDatasetResourceReference
44+
)
45+
end
46+
47+
defimpl Poison.Decoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryVertexDatasetFilter do
48+
def decode(value, options) do
49+
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryVertexDatasetFilter.decode(value, options)
50+
end
51+
end
52+
53+
defimpl Poison.Encoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryVertexDatasetFilter do
54+
def encode(value, options) do
55+
GoogleApi.Gax.ModelBase.encode(value, options)
56+
end
57+
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.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryVertexDatasetGenerationCadence do
19+
@moduledoc """
20+
How often existing datasets should have their profiles refreshed. New datasets are scanned as quickly as possible depending on system capacity.
21+
22+
## Attributes
23+
24+
* `inspectTemplateModifiedCadence` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence.t`, *default:* `nil`) - Governs when to update data profiles when the inspection rules defined by the `InspectTemplate` change. If not set, changing the template will not cause a data profile to be updated.
25+
* `refreshFrequency` (*type:* `String.t`, *default:* `nil`) - If you set this field, profiles are refreshed at this frequency regardless of whether the underlying datasets have changed. Defaults to never.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:inspectTemplateModifiedCadence =>
32+
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence.t()
33+
| nil,
34+
:refreshFrequency => String.t() | nil
35+
}
36+
37+
field(:inspectTemplateModifiedCadence,
38+
as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence
39+
)
40+
41+
field(:refreshFrequency)
42+
end
43+
44+
defimpl Poison.Decoder,
45+
for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryVertexDatasetGenerationCadence do
46+
def decode(value, options) do
47+
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryVertexDatasetGenerationCadence.decode(
48+
value,
49+
options
50+
)
51+
end
52+
end
53+
54+
defimpl Poison.Encoder,
55+
for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryVertexDatasetGenerationCadence do
56+
def encode(value, options) do
57+
GoogleApi.Gax.ModelBase.encode(value, options)
58+
end
59+
end

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2FileStoreDataProfile do
3030
* `fileStoreInfoTypeSummaries` (*type:* `list(GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2FileStoreInfoTypeSummary.t)`, *default:* `nil`) - InfoTypes detected in this file store.
3131
* `fileStoreIsEmpty` (*type:* `boolean()`, *default:* `nil`) - The file store does not have any files.
3232
* `fileStoreLocation` (*type:* `String.t`, *default:* `nil`) - The location of the file store. * Cloud Storage: https://cloud.google.com/storage/docs/locations#available-locations * Amazon S3: https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints
33-
* `fileStorePath` (*type:* `String.t`, *default:* `nil`) - The file store path. * Cloud Storage: `gs://{bucket}` * Amazon S3: `s3://{bucket}`
33+
* `fileStorePath` (*type:* `String.t`, *default:* `nil`) - The file store path. * Cloud Storage: `gs://{bucket}` * Amazon S3: `s3://{bucket}` * Vertex AI dataset: `projects/{project_number}/locations/{location}/datasets/{dataset_id}`
3434
* `fullResource` (*type:* `String.t`, *default:* `nil`) - The resource name of the resource profiled. https://cloud.google.com/apis/design/resource_names#full_resource_name Example format of an S3 bucket full resource name: `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}`
3535
* `lastModifiedTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the file store was last modified.
3636
* `locationType` (*type:* `String.t`, *default:* `nil`) - The location type of the file store (region, dual-region, multi-region, etc). If dual-region, expect data_storage_locations to be populated.
@@ -39,6 +39,7 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2FileStoreDataProfile do
3939
* `profileStatus` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2ProfileStatus.t`, *default:* `nil`) - Success or error status from the most recent profile generation attempt. May be empty if the profile is still being generated.
4040
* `projectDataProfile` (*type:* `String.t`, *default:* `nil`) - The resource name of the project data profile for this file store.
4141
* `projectId` (*type:* `String.t`, *default:* `nil`) - The Google Cloud project ID that owns the resource. For Amazon S3 buckets, this is the AWS Account Id.
42+
* `relatedResources` (*type:* `list(GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2RelatedResource.t)`, *default:* `nil`) - Resources related to this profile.
4243
* `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.
4344
* `resourceLabels` (*type:* `map()`, *default:* `nil`) - The labels applied to the resource at the time the profile was generated.
4445
* `resourceVisibility` (*type:* `String.t`, *default:* `nil`) - How broadly a resource has been shared.
@@ -70,6 +71,8 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2FileStoreDataProfile do
7071
:profileStatus => GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2ProfileStatus.t() | nil,
7172
:projectDataProfile => String.t() | nil,
7273
:projectId => String.t() | nil,
74+
:relatedResources =>
75+
list(GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2RelatedResource.t()) | nil,
7376
:resourceAttributes =>
7477
%{optional(String.t()) => GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2Value.t()} | nil,
7578
:resourceLabels => map() | nil,
@@ -106,6 +109,12 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2FileStoreDataProfile do
106109
field(:profileStatus, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2ProfileStatus)
107110
field(:projectDataProfile)
108111
field(:projectId)
112+
113+
field(:relatedResources,
114+
as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2RelatedResource,
115+
type: :list
116+
)
117+
109118
field(:resourceAttributes, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2Value, type: :map)
110119
field(:resourceLabels, type: :map)
111120
field(:resourceVisibility)
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.GooglePrivacyDlpV2GlobalProcessing do
19+
@moduledoc """
20+
Processing will happen in the global region.
21+
22+
## Attributes
23+
24+
"""
25+
26+
use GoogleApi.Gax.ModelBase
27+
28+
@type t :: %__MODULE__{}
29+
end
30+
31+
defimpl Poison.Decoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2GlobalProcessing do
32+
def decode(value, options) do
33+
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2GlobalProcessing.decode(value, options)
34+
end
35+
end
36+
37+
defimpl Poison.Encoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2GlobalProcessing do
38+
def encode(value, options) do
39+
GoogleApi.Gax.ModelBase.encode(value, options)
40+
end
41+
end

0 commit comments

Comments
 (0)