Skip to content
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
401 changes: 401 additions & 0 deletions dlp/google/cloud/dlp_v2/gapic/dlp_service_client.py

Large diffs are not rendered by default.

29 changes: 26 additions & 3 deletions dlp/google/cloud/dlp_v2/gapic/dlp_service_client_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"google.privacy.dlp.v2.DlpService": {
"retry_codes": {
"idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"],
"http_get": ["DEADLINE_EXCEEDED", "UNAVAILABLE"],
"non_idempotent": [],
"no_retry": []
"non_idempotent": []
},
"retry_params": {
"default": {
Expand Down Expand Up @@ -143,6 +141,31 @@
"timeout_millis": 300000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"CreateStoredInfoType": {
"timeout_millis": 300000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"UpdateStoredInfoType": {
"timeout_millis": 300000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"GetStoredInfoType": {
"timeout_millis": 300000,
"retry_codes_name": "idempotent",
"retry_params_name": "default"
},
"ListStoredInfoTypes": {
"timeout_millis": 300000,
"retry_codes_name": "idempotent",
"retry_params_name": "default"
},
"DeleteStoredInfoType": {
"timeout_millis": 300000,
"retry_codes_name": "idempotent",
"retry_params_name": "default"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -482,3 +482,79 @@ def create_job_trigger(self):
deserialized response object.
"""
return self._stubs['dlp_service_stub'].CreateJobTrigger

@property
def create_stored_info_type(self):
"""Return the gRPC stub for {$apiMethod.name}.

Creates a pre-built stored infoType to be used for inspection.
See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
learn more.

Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs['dlp_service_stub'].CreateStoredInfoType

@property
def update_stored_info_type(self):
"""Return the gRPC stub for {$apiMethod.name}.

Updates the stored infoType by creating a new version. The existing version
will continue to be used until the new version is ready.
See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
learn more.

Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs['dlp_service_stub'].UpdateStoredInfoType

@property
def get_stored_info_type(self):
"""Return the gRPC stub for {$apiMethod.name}.

Gets a stored infoType.
See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
learn more.

Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs['dlp_service_stub'].GetStoredInfoType

@property
def list_stored_info_types(self):
"""Return the gRPC stub for {$apiMethod.name}.

Lists stored infoTypes.
See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
learn more.

Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs['dlp_service_stub'].ListStoredInfoTypes

@property
def delete_stored_info_type(self):
"""Return the gRPC stub for {$apiMethod.name}.

Deletes a stored infoType.
See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
learn more.

Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs['dlp_service_stub'].DeleteStoredInfoType
135 changes: 77 additions & 58 deletions dlp/google/cloud/dlp_v2/proto/dlp_pb2.py

Large diffs are not rendered by default.

Loading