Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
[CHANGE ME] Re-generated dlp to pick up changes in the API or client …
…library generator.
  • Loading branch information
yoshi-automation committed Nov 12, 2019
commit 82b5f98ce82da29fb9740b2473074887edeaf40a
2 changes: 1 addition & 1 deletion dlp/docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
div#python2-eol {
border-color: red;
border-width: medium;
}
}
1 change: 1 addition & 0 deletions dlp/docs/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "!layout.html" %}
{%- block content %}
{%- if theme_fixed_sidebar|lower == 'true' %}
Expand Down
2 changes: 1 addition & 1 deletion dlp/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
# html_static_path = []

# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
Expand Down
83 changes: 46 additions & 37 deletions dlp/google/cloud/dlp_v2/gapic/dlp_service_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ def reidentify_content(
>>> response = client.reidentify_content(parent)

Args:
parent (str): The parent resource name.
parent (str): Required. The parent resource name.
reidentify_config (Union[dict, ~google.cloud.dlp_v2.types.DeidentifyConfig]): Configuration for the re-identification of the content item. This field
shares the same proto message type that is used for de-identification,
however its usage here is for the reversal of the previous
Expand All @@ -629,6 +629,7 @@ def reidentify_content(
This requires that only reversible transformations be provided here. The
reversible transformations are:

- ``CryptoDeterministicConfig``
- ``CryptoReplaceFfxFpeConfig``

If a dict is provided, it must be of the same form as the protobuf
Expand Down Expand Up @@ -794,7 +795,7 @@ def create_inspect_template(
>>> response = client.create_inspect_template(parent)

Args:
parent (str): The parent resource name, for example projects/my-project-id or
parent (str): Required. The parent resource name, for example projects/my-project-id or
organizations/my-org-id.
inspect_template (Union[dict, ~google.cloud.dlp_v2.types.InspectTemplate]): The InspectTemplate to create.

Expand Down Expand Up @@ -877,8 +878,9 @@ def update_inspect_template(
>>> response = client.update_inspect_template(name)

Args:
name (str): Resource name of organization and inspectTemplate to be updated, for
example ``organizations/433245324/inspectTemplates/432452342`` or
name (str): Required. Resource name of organization and inspectTemplate to be
updated, for example
``organizations/433245324/inspectTemplates/432452342`` or
projects/project-id/inspectTemplates/432452342.
inspect_template (Union[dict, ~google.cloud.dlp_v2.types.InspectTemplate]): New InspectTemplate value.

Expand Down Expand Up @@ -957,9 +959,9 @@ def get_inspect_template(
>>> response = client.get_inspect_template()

Args:
name (str): Resource name of the organization and inspectTemplate to be read, for
example ``organizations/433245324/inspectTemplates/432452342`` or
projects/project-id/inspectTemplates/432452342.
name (str): Required. Resource name of the organization and inspectTemplate to be
read, for example ``organizations/433245324/inspectTemplates/432452342``
or projects/project-id/inspectTemplates/432452342.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
Expand Down Expand Up @@ -1043,7 +1045,7 @@ def list_inspect_templates(
... pass

Args:
parent (str): The parent resource name, for example projects/my-project-id or
parent (str): Required. The parent resource name, for example projects/my-project-id or
organizations/my-org-id.
page_size (int): The maximum number of resources contained in the
underlying API response. If page streaming is performed per-
Expand Down Expand Up @@ -1147,8 +1149,9 @@ def delete_inspect_template(
>>> client.delete_inspect_template(name)

Args:
name (str): Resource name of the organization and inspectTemplate to be deleted, for
example ``organizations/433245324/inspectTemplates/432452342`` or
name (str): Required. Resource name of the organization and inspectTemplate to be
deleted, for example
``organizations/433245324/inspectTemplates/432452342`` or
projects/project-id/inspectTemplates/432452342.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will
Expand Down Expand Up @@ -1220,7 +1223,7 @@ def create_deidentify_template(
>>> response = client.create_deidentify_template(parent)

Args:
parent (str): The parent resource name, for example projects/my-project-id or
parent (str): Required. The parent resource name, for example projects/my-project-id or
organizations/my-org-id.
deidentify_template (Union[dict, ~google.cloud.dlp_v2.types.DeidentifyTemplate]): The DeidentifyTemplate to create.

Expand Down Expand Up @@ -1308,8 +1311,9 @@ def update_deidentify_template(
>>> response = client.update_deidentify_template(name)

Args:
name (str): Resource name of organization and deidentify template to be updated, for
example ``organizations/433245324/deidentifyTemplates/432452342`` or
name (str): Required. Resource name of organization and deidentify template to be
updated, for example
``organizations/433245324/deidentifyTemplates/432452342`` or
projects/project-id/deidentifyTemplates/432452342.
deidentify_template (Union[dict, ~google.cloud.dlp_v2.types.DeidentifyTemplate]): New DeidentifyTemplate value.

Expand Down Expand Up @@ -1393,8 +1397,9 @@ def get_deidentify_template(
>>> response = client.get_deidentify_template(name)

Args:
name (str): Resource name of the organization and deidentify template to be read,
for example ``organizations/433245324/deidentifyTemplates/432452342`` or
name (str): Required. Resource name of the organization and deidentify template to
be read, for example
``organizations/433245324/deidentifyTemplates/432452342`` or
projects/project-id/deidentifyTemplates/432452342.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will
Expand Down Expand Up @@ -1480,7 +1485,7 @@ def list_deidentify_templates(
... pass

Args:
parent (str): The parent resource name, for example projects/my-project-id or
parent (str): Required. The parent resource name, for example projects/my-project-id or
organizations/my-org-id.
page_size (int): The maximum number of resources contained in the
underlying API response. If page streaming is performed per-
Expand Down Expand Up @@ -1585,8 +1590,9 @@ def delete_deidentify_template(
>>> client.delete_deidentify_template(name)

Args:
name (str): Resource name of the organization and deidentify template to be deleted,
for example ``organizations/433245324/deidentifyTemplates/432452342`` or
name (str): Required. Resource name of the organization and deidentify template to
be deleted, for example
``organizations/433245324/deidentifyTemplates/432452342`` or
projects/project-id/deidentifyTemplates/432452342.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will
Expand Down Expand Up @@ -1664,7 +1670,7 @@ def create_dlp_job(
>>> response = client.create_dlp_job(parent)

Args:
parent (str): The parent resource name, for example projects/my-project-id.
parent (str): Required. The parent resource name, for example projects/my-project-id.
inspect_job (Union[dict, ~google.cloud.dlp_v2.types.InspectJobConfig]):
If a dict is provided, it must be of the same form as the protobuf
message :class:`~google.cloud.dlp_v2.types.InspectJobConfig`
Expand Down Expand Up @@ -1769,7 +1775,7 @@ def list_dlp_jobs(
... pass

Args:
parent (str): The parent resource name, for example projects/my-project-id.
parent (str): Required. The parent resource name, for example projects/my-project-id.
filter_ (str): Optional. Allows filtering.

Supported syntax:
Expand Down Expand Up @@ -1912,7 +1918,7 @@ def get_dlp_job(
>>> response = client.get_dlp_job(name)

Args:
name (str): The name of the DlpJob resource.
name (str): Required. The name of the DlpJob resource.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
Expand Down Expand Up @@ -1985,7 +1991,7 @@ def delete_dlp_job(
>>> client.delete_dlp_job(name)

Args:
name (str): The name of the DlpJob resource to be deleted.
name (str): Required. The name of the DlpJob resource to be deleted.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
Expand Down Expand Up @@ -2055,7 +2061,7 @@ def cancel_dlp_job(
>>> client.cancel_dlp_job(name)

Args:
name (str): The name of the DlpJob resource to be cancelled.
name (str): Required. The name of the DlpJob resource to be cancelled.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
Expand Down Expand Up @@ -2137,7 +2143,8 @@ def list_job_triggers(
... pass

Args:
parent (str): The parent resource name, for example ``projects/my-project-id``.
parent (str): Required. The parent resource name, for example
``projects/my-project-id``.
page_size (int): The maximum number of resources contained in the
underlying API response. If page streaming is performed per-
resource, this parameter does not affect the return value. If page
Expand Down Expand Up @@ -2272,7 +2279,7 @@ def get_job_trigger(
>>> response = client.get_job_trigger(name)

Args:
name (str): Resource name of the project and the triggeredJob, for example
name (str): Required. Resource name of the project and the triggeredJob, for example
``projects/dlp-test-project/jobTriggers/53234423``.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will
Expand Down Expand Up @@ -2344,7 +2351,7 @@ def delete_job_trigger(
>>> client.delete_job_trigger(name)

Args:
name (str): Resource name of the project and the triggeredJob, for example
name (str): Required. Resource name of the project and the triggeredJob, for example
``projects/dlp-test-project/jobTriggers/53234423``.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will
Expand Down Expand Up @@ -2414,7 +2421,7 @@ def update_job_trigger(
>>> response = client.update_job_trigger(name)

Args:
name (str): Resource name of the project and the triggeredJob, for example
name (str): Required. Resource name of the project and the triggeredJob, for example
``projects/dlp-test-project/jobTriggers/53234423``.
job_trigger (Union[dict, ~google.cloud.dlp_v2.types.JobTrigger]): New JobTrigger value.

Expand Down Expand Up @@ -2498,7 +2505,7 @@ def create_job_trigger(
>>> response = client.create_job_trigger(parent)

Args:
parent (str): The parent resource name, for example projects/my-project-id.
parent (str): Required. The parent resource name, for example projects/my-project-id.
job_trigger (Union[dict, ~google.cloud.dlp_v2.types.JobTrigger]): The JobTrigger to create.

If a dict is provided, it must be of the same form as the protobuf
Expand Down Expand Up @@ -2581,7 +2588,7 @@ def create_stored_info_type(
>>> response = client.create_stored_info_type(parent)

Args:
parent (str): The parent resource name, for example projects/my-project-id or
parent (str): Required. The parent resource name, for example projects/my-project-id or
organizations/my-org-id.
config (Union[dict, ~google.cloud.dlp_v2.types.StoredInfoTypeConfig]): Configuration of the storedInfoType to create.

Expand Down Expand Up @@ -2666,8 +2673,9 @@ def update_stored_info_type(
>>> response = client.update_stored_info_type(name)

Args:
name (str): Resource name of organization and storedInfoType to be updated, for
example ``organizations/433245324/storedInfoTypes/432452342`` or
name (str): Required. Resource name of organization and storedInfoType to be
updated, for example
``organizations/433245324/storedInfoTypes/432452342`` or
projects/project-id/storedInfoTypes/432452342.
config (Union[dict, ~google.cloud.dlp_v2.types.StoredInfoTypeConfig]): Updated configuration for the storedInfoType. If not provided, a new
version of the storedInfoType will be created with the existing
Expand Down Expand Up @@ -2751,9 +2759,9 @@ def get_stored_info_type(
>>> response = client.get_stored_info_type(name)

Args:
name (str): Resource name of the organization and storedInfoType to be read, for
example ``organizations/433245324/storedInfoTypes/432452342`` or
projects/project-id/storedInfoTypes/432452342.
name (str): Required. Resource name of the organization and storedInfoType to be
read, for example ``organizations/433245324/storedInfoTypes/432452342``
or projects/project-id/storedInfoTypes/432452342.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will
be retried using a default configuration.
Expand Down Expand Up @@ -2838,7 +2846,7 @@ def list_stored_info_types(
... pass

Args:
parent (str): The parent resource name, for example projects/my-project-id or
parent (str): Required. The parent resource name, for example projects/my-project-id or
organizations/my-org-id.
page_size (int): The maximum number of resources contained in the
underlying API response. If page streaming is performed per-
Expand Down Expand Up @@ -2944,8 +2952,9 @@ def delete_stored_info_type(
>>> client.delete_stored_info_type(name)

Args:
name (str): Resource name of the organization and storedInfoType to be deleted, for
example ``organizations/433245324/storedInfoTypes/432452342`` or
name (str): Required. Resource name of the organization and storedInfoType to be
deleted, for example
``organizations/433245324/storedInfoTypes/432452342`` or
projects/project-id/storedInfoTypes/432452342.
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will
Expand Down
2 changes: 1 addition & 1 deletion dlp/google/cloud/dlp_v2/gapic/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ class TimePart(enum.IntEnum):
MONTH (int): [1-12]
DAY_OF_MONTH (int): [1-31]
DAY_OF_WEEK (int): [1-7]
WEEK_OF_YEAR (int): [1-52]
WEEK_OF_YEAR (int): [1-53]
HOUR_OF_DAY (int): [0-23]
"""

Expand Down
Loading