Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of DLP client #10956

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions clients/dlp/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# GoogleApi.DLP

Cloud Data Loss Prevention (DLP) API client library.
Sensitive Data Protection (DLP) client library.

Provides methods for detection, risk analysis, and de-identification of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.
Discover and protect your sensitive data. A fully managed service designed to help you discover, classify, and protect your valuable data assets with ease.

## Installation

Expand All @@ -17,7 +17,7 @@ end

## For more information

Product documentation is available at [https://cloud.google.com/dlp/docs/](https://cloud.google.com/dlp/docs/).
Product documentation is available at [https://cloud.google.com/sensitive-data-protection/docs/](https://cloud.google.com/sensitive-data-protection/docs/).

Library reference documentation is published on Hexdocs at
[https://hexdocs.pm/google_api_dlp](https://hexdocs.pm/google_api_dlp).
2 changes: 1 addition & 1 deletion clients/dlp/lib/google_api/dlp/v2/api/info_types.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ defmodule GoogleApi.DLP.V2.Api.InfoTypes do
@library_version Mix.Project.config() |> Keyword.get(:version, "")

@doc """
Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/dlp/docs/infotypes-reference to learn more.
Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.

## Parameters

Expand Down
2 changes: 1 addition & 1 deletion clients/dlp/lib/google_api/dlp/v2/api/locations.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ defmodule GoogleApi.DLP.V2.Api.Locations do
@library_version Mix.Project.config() |> Keyword.get(:version, "")

@doc """
Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/dlp/docs/infotypes-reference to learn more.
Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.

## Parameters

Expand Down
1,325 changes: 1,075 additions & 250 deletions clients/dlp/lib/google_api/dlp/v2/api/organizations.ex

Large diffs are not rendered by default.

1,589 changes: 1,207 additions & 382 deletions clients/dlp/lib/google_api/dlp/v2/api/projects.ex

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion clients/dlp/lib/google_api/dlp/v2/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.DLP.V2 do
API client metadata for GoogleApi.DLP.V2.
"""

@discovery_revision "20221115"
@discovery_revision "20240303"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2Action do
@moduledoc """
A task to execute on the completion of a job. See https://cloud.google.com/dlp/docs/concepts-actions to learn more.
A task to execute on the completion of a job. See https://cloud.google.com/sensitive-data-protection/docs/concepts-actions to learn more.

## Attributes

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2ActionDetails do
@moduledoc """
The results of an Action.

## Attributes

* `deidentifyDetails` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DeidentifyDataSourceDetails.t`, *default:* `nil`) - Outcome of a de-identification action.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:deidentifyDetails =>
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DeidentifyDataSourceDetails.t() | nil
}

field(:deidentifyDetails,
as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DeidentifyDataSourceDetails
)
end

defimpl Poison.Decoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2ActionDetails do
def decode(value, options) do
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2ActionDetails.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2ActionDetails do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2AllOtherBigQueryTables do
@moduledoc """
Catch-all for all other tables not specified by other filters. Should always be last, except for single-table configurations, which will only have a TableReference target.

## Attributes

"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{}
end

defimpl Poison.Decoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2AllOtherBigQueryTables do
def decode(value, options) do
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2AllOtherBigQueryTables.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2AllOtherBigQueryTables do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryDiscoveryTarget do
@moduledoc """
Target used to match against for discovery with BigQuery tables

## Attributes

* `cadence` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryGenerationCadence.t`, *default:* `nil`) - How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity.
* `conditions` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryBigQueryConditions.t`, *default:* `nil`) - In addition to matching the filter, these conditions must be true before a profile is generated.
* `disabled` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2Disabled.t`, *default:* `nil`) - Tables that match this filter will not have profiles created.
* `filter` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryBigQueryFilter.t`, *default:* `nil`) - Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:cadence =>
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryGenerationCadence.t() | nil,
:conditions =>
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryBigQueryConditions.t() | nil,
:disabled => GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2Disabled.t() | nil,
:filter => GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryBigQueryFilter.t() | nil
}

field(:cadence, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryGenerationCadence)
field(:conditions, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryBigQueryConditions)
field(:disabled, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2Disabled)
field(:filter, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2DiscoveryBigQueryFilter)
end

defimpl Poison.Decoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryDiscoveryTarget do
def decode(value, options) do
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryDiscoveryTarget.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryDiscoveryTarget do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryOptions do

## Attributes

* `excludedFields` (*type:* `list(GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2FieldId.t)`, *default:* `nil`) - References to fields excluded from scanning. This allows you to skip inspection of entire columns which you know have no findings.
* `excludedFields` (*type:* `list(GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2FieldId.t)`, *default:* `nil`) - References to fields excluded from scanning. This allows you to skip inspection of entire columns which you know have no findings. When inspecting a table, we recommend that you inspect all columns. Otherwise, findings might be affected because hints from excluded columns will not be used.
* `identifyingFields` (*type:* `list(GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2FieldId.t)`, *default:* `nil`) - Table fields that may uniquely identify a row within the table. When `actions.saveFindings.outputConfig.table` is specified, the values of columns specified here are available in the output table under `location.content_locations.record_location.record_key.id_values`. Nested fields such as `person.birthdate.year` are allowed.
* `includedFields` (*type:* `list(GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2FieldId.t)`, *default:* `nil`) - Limit scanning only to these fields.
* `includedFields` (*type:* `list(GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2FieldId.t)`, *default:* `nil`) - Limit scanning only to these fields. When inspecting a table, we recommend that you inspect all columns. Otherwise, findings might be affected because hints from excluded columns will not be used.
* `rowsLimit` (*type:* `String.t`, *default:* `nil`) - Max number of rows to scan. If the table has more rows than this value, the rest of the rows are omitted. If not set, or if set to 0, all rows will be scanned. Only one of rows_limit and rows_limit_percent can be specified. Cannot be used in conjunction with TimespanConfig.
* `rowsLimitPercent` (*type:* `integer()`, *default:* `nil`) - Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of rows_limit and rows_limit_percent can be specified. Cannot be used in conjunction with TimespanConfig.
* `sampleMethod` (*type:* `String.t`, *default:* `nil`) -
* `rowsLimitPercent` (*type:* `integer()`, *default:* `nil`) - Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of rows_limit and rows_limit_percent can be specified. Cannot be used in conjunction with TimespanConfig. Caution: A [known issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) is causing the `rowsLimitPercent` field to behave unexpectedly. We recommend using `rowsLimit` instead.
* `sampleMethod` (*type:* `String.t`, *default:* `nil`) - How to sample the data.
* `tableReference` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTable.t`, *default:* `nil`) - Complete BigQuery table reference.
"""

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryRegex do
@moduledoc """
A pattern to match against one or more tables, datasets, or projects that contain BigQuery tables. At least one pattern must be specified. Regular expressions use RE2 [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found under the google/re2 repository on GitHub.

## Attributes

* `datasetIdRegex` (*type:* `String.t`, *default:* `nil`) - If unset, this property matches all datasets.
* `projectIdRegex` (*type:* `String.t`, *default:* `nil`) - For organizations, if unset, will match all projects. Has no effect for data profile configurations created within a project.
* `tableIdRegex` (*type:* `String.t`, *default:* `nil`) - If unset, this property matches all tables.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:datasetIdRegex => String.t() | nil,
:projectIdRegex => String.t() | nil,
:tableIdRegex => String.t() | nil
}

field(:datasetIdRegex)
field(:projectIdRegex)
field(:tableIdRegex)
end

defimpl Poison.Decoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryRegex do
def decode(value, options) do
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryRegex.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryRegex do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryRegexes do
@moduledoc """
A collection of regular expressions to determine what tables to match against.

## Attributes

* `patterns` (*type:* `list(GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryRegex.t)`, *default:* `nil`) - A single BigQuery regular expression pattern to match against one or more tables, datasets, or projects that contain BigQuery tables.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:patterns => list(GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryRegex.t()) | nil
}

field(:patterns, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryRegex, type: :list)
end

defimpl Poison.Decoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryRegexes do
def decode(value, options) do
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryRegexes.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryRegexes do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTableCollection do
@moduledoc """
Specifies a collection of BigQuery tables. Used for Discovery.

## Attributes

* `includeRegexes` (*type:* `GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryRegexes.t`, *default:* `nil`) - A collection of regular expressions to match a BigQuery table against.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:includeRegexes => GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryRegexes.t() | nil
}

field(:includeRegexes, as: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryRegexes)
end

defimpl Poison.Decoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTableCollection do
def decode(value, options) do
GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTableCollection.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2BigQueryTableCollection do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Loading
Loading