Skip to content

Commit

Permalink
Generate DLP v2 (#5246)
Browse files Browse the repository at this point in the history
* generated dlp v2
  • Loading branch information
crwilcox authored Apr 27, 2018
1 parent e726c78 commit c883e51
Show file tree
Hide file tree
Showing 5 changed files with 494 additions and 292 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ def create_inspect_template(
timeout=google.api_core.gapic_v1.method.DEFAULT,
metadata=None):
"""
Creates an inspect template for re-using frequently used configuration
Creates an InspectTemplate for re-using frequently used configuration
for inspecting content, images, and storage.
Example:
Expand Down Expand Up @@ -761,7 +761,7 @@ def update_inspect_template(
timeout=google.api_core.gapic_v1.method.DEFAULT,
metadata=None):
"""
Updates the inspect template.
Updates the InspectTemplate.
Example:
>>> from google.cloud import dlp_v2
Expand Down Expand Up @@ -818,7 +818,7 @@ def get_inspect_template(self,
timeout=google.api_core.gapic_v1.method.DEFAULT,
metadata=None):
"""
Gets an inspect template.
Gets an InspectTemplate.
Example:
>>> from google.cloud import dlp_v2
Expand Down Expand Up @@ -864,7 +864,7 @@ def list_inspect_templates(self,
timeout=google.api_core.gapic_v1.method.DEFAULT,
metadata=None):
"""
Lists inspect templates.
Lists InspectTemplates.
Example:
>>> from google.cloud import dlp_v2
Expand Down Expand Up @@ -943,7 +943,7 @@ def delete_inspect_template(
timeout=google.api_core.gapic_v1.method.DEFAULT,
metadata=None):
"""
Deletes an inspect template.
Deletes an InspectTemplate.
Example:
>>> from google.cloud import dlp_v2
Expand Down Expand Up @@ -990,8 +990,8 @@ def create_deidentify_template(
timeout=google.api_core.gapic_v1.method.DEFAULT,
metadata=None):
"""
Creates a de-identify template for re-using frequently used configuration
for Deidentifying content, images, and storage.
Creates a DeidentifyTemplate for re-using frequently used configuration
for de-identifying content, images, and storage.
Example:
>>> from google.cloud import dlp_v2
Expand Down Expand Up @@ -1051,7 +1051,7 @@ def update_deidentify_template(
timeout=google.api_core.gapic_v1.method.DEFAULT,
metadata=None):
"""
Updates the de-identify template.
Updates the DeidentifyTemplate.
Example:
>>> from google.cloud import dlp_v2
Expand Down Expand Up @@ -1109,7 +1109,7 @@ def get_deidentify_template(
timeout=google.api_core.gapic_v1.method.DEFAULT,
metadata=None):
"""
Gets a de-identify template.
Gets a DeidentifyTemplate.
Example:
>>> from google.cloud import dlp_v2
Expand Down Expand Up @@ -1158,7 +1158,7 @@ def list_deidentify_templates(
timeout=google.api_core.gapic_v1.method.DEFAULT,
metadata=None):
"""
Lists de-identify templates.
Lists DeidentifyTemplates.
Example:
>>> from google.cloud import dlp_v2
Expand Down Expand Up @@ -1237,7 +1237,7 @@ def delete_deidentify_template(
timeout=google.api_core.gapic_v1.method.DEFAULT,
metadata=None):
"""
Deletes a de-identify template.
Deletes a DeidentifyTemplate.
Example:
>>> from google.cloud import dlp_v2
Expand Down Expand Up @@ -1284,8 +1284,8 @@ def create_dlp_job(self,
timeout=google.api_core.gapic_v1.method.DEFAULT,
metadata=None):
"""
Creates a new job to inspect storage or calculate risk metrics [How-to
guide](/dlp/docs/compute-risk-analysis).
Creates a new job to inspect storage or calculate risk metrics.
`How-to guide <https://cloud.google.com/dlp/docs/compute-risk-analysis>`__.
Example:
>>> from google.cloud import dlp_v2
Expand Down
12 changes: 6 additions & 6 deletions packages/google-cloud-dlp/google/cloud/dlp_v2/gapic/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ class FileType(object):
Attributes:
FILE_TYPE_UNSPECIFIED (int): Includes all files.
BINARY_FILE (int): Includes all file extensions not covered by other types.
BINARY_FILE (int): Includes all file extensions not covered by text file types.
TEXT_FILE (int): Included file extensions:
c, cc, cpp, cxx, c++, cs, css, dart, eml, go, h, hh, hpp, hxx, h++, hs,
html, htm, shtml, shtm, xhtml, lhs, ini, java, js, json, ocaml, md, mkd,
markdown, m, ml, mli, pl, pm, php, phtml, pht, py, pyw, rb, rbw, rs, rc,
scala, sh, sql, tex, txt, asc, text, brf, vcard, vcs, wml, xml, xsl, xsd,
yml, yaml.
asc, brf, c, cc, cpp, csv, cxx, c++, cs, css, dart, eml, go, h, hh, hpp,
hxx, h++, hs, html, htm, shtml, shtm, xhtml, lhs, ini, java, js, json,
ocaml, md, mkd, markdown, m, ml, mli, pl, pm, php, phtml, pht, py, pyw,
rb, rbw, rs, rc, scala, sh, sql, tex, txt, text, tsv, vcard, vcs, wml,
xml, xsl, xsd, yml, yaml.
"""
FILE_TYPE_UNSPECIFIED = 0
BINARY_FILE = 1
Expand Down
491 changes: 283 additions & 208 deletions packages/google-cloud-dlp/google/cloud/dlp_v2/proto/dlp_pb2.py

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions packages/google-cloud-dlp/google/cloud/dlp_v2/proto/dlp_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,72 +201,72 @@ def ListInfoTypes(self, request, context):
raise NotImplementedError('Method not implemented!')

def CreateInspectTemplate(self, request, context):
"""Creates an inspect template for re-using frequently used configuration
"""Creates an InspectTemplate for re-using frequently used configuration
for inspecting content, images, and storage.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def UpdateInspectTemplate(self, request, context):
"""Updates the inspect template.
"""Updates the InspectTemplate.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def GetInspectTemplate(self, request, context):
"""Gets an inspect template.
"""Gets an InspectTemplate.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def ListInspectTemplates(self, request, context):
"""Lists inspect templates.
"""Lists InspectTemplates.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def DeleteInspectTemplate(self, request, context):
"""Deletes an inspect template.
"""Deletes an InspectTemplate.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def CreateDeidentifyTemplate(self, request, context):
"""Creates a de-identify template for re-using frequently used configuration
for Deidentifying content, images, and storage.
"""Creates a DeidentifyTemplate for re-using frequently used configuration
for de-identifying content, images, and storage.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def UpdateDeidentifyTemplate(self, request, context):
"""Updates the de-identify template.
"""Updates the DeidentifyTemplate.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def GetDeidentifyTemplate(self, request, context):
"""Gets a de-identify template.
"""Gets a DeidentifyTemplate.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def ListDeidentifyTemplates(self, request, context):
"""Lists de-identify templates.
"""Lists DeidentifyTemplates.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def DeleteDeidentifyTemplate(self, request, context):
"""Deletes a de-identify template.
"""Deletes a DeidentifyTemplate.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
Expand Down Expand Up @@ -309,8 +309,8 @@ def DeleteJobTrigger(self, request, context):
raise NotImplementedError('Method not implemented!')

def CreateDlpJob(self, request, context):
"""Creates a new job to inspect storage or calculate risk metrics [How-to
guide](/dlp/docs/compute-risk-analysis).
"""Creates a new job to inspect storage or calculate risk metrics.
[How-to guide](/dlp/docs/compute-risk-analysis).
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
Expand Down
Loading

0 comments on commit c883e51

Please sign in to comment.