Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit eb88024

Browse files
docs: Add documentation for enums (#119)
* docs: Add documentation for enums fix: Add context manager return types chore: Update gapic-generator-python to v1.8.1 PiperOrigin-RevId: 503210727 Source-Link: googleapis/googleapis@a391fd1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0080f830dec37c3384157082bce279e37079ea58 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDA4MGY4MzBkZWMzN2MzMzg0MTU3MDgyYmNlMjc5ZTM3MDc5ZWE1OCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 9e6ccca commit eb88024

File tree

13 files changed

+565
-44
lines changed

13 files changed

+565
-44
lines changed

google/cloud/dataplex_v1/services/content_service/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ def sample_list_content():
14161416
# Done; return the response.
14171417
return response
14181418

1419-
def __enter__(self):
1419+
def __enter__(self) -> "ContentServiceClient":
14201420
return self
14211421

14221422
def __exit__(self, type, value, traceback):

google/cloud/dataplex_v1/services/data_scan_service/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ def sample_list_data_scan_jobs():
14801480
# Done; return the response.
14811481
return response
14821482

1483-
def __enter__(self):
1483+
def __enter__(self) -> "DataScanServiceClient":
14841484
return self
14851485

14861486
def __exit__(self, type, value, traceback):

google/cloud/dataplex_v1/services/dataplex_service/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4494,7 +4494,7 @@ def sample_list_sessions():
44944494
# Done; return the response.
44954495
return response
44964496

4497-
def __enter__(self):
4497+
def __enter__(self) -> "DataplexServiceClient":
44984498
return self
44994499

45004500
def __exit__(self, type, value, traceback):

google/cloud/dataplex_v1/services/metadata_service/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ def sample_list_partitions():
14501450
# Done; return the response.
14511451
return response
14521452

1453-
def __enter__(self):
1453+
def __enter__(self) -> "MetadataServiceClient":
14541454
return self
14551455

14561456
def __exit__(self, type, value, traceback):

google/cloud/dataplex_v1/types/analyze.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,14 @@ class SqlScript(proto.Message):
356356
"""
357357

358358
class QueryEngine(proto.Enum):
359-
r"""Query Engine Type of the SQL Script."""
359+
r"""Query Engine Type of the SQL Script.
360+
361+
Values:
362+
QUERY_ENGINE_UNSPECIFIED (0):
363+
Value was unspecified.
364+
SPARK (2):
365+
Spark SQL Query.
366+
"""
360367
QUERY_ENGINE_UNSPECIFIED = 0
361368
SPARK = 2
362369

@@ -375,7 +382,14 @@ class Notebook(proto.Message):
375382
"""
376383

377384
class KernelType(proto.Enum):
378-
r"""Kernel Type of the Jupyter notebook."""
385+
r"""Kernel Type of the Jupyter notebook.
386+
387+
Values:
388+
KERNEL_TYPE_UNSPECIFIED (0):
389+
Kernel Type unspecified.
390+
PYTHON3 (1):
391+
Python 3 Kernel.
392+
"""
379393
KERNEL_TYPE_UNSPECIFIED = 0
380394
PYTHON3 = 1
381395

google/cloud/dataplex_v1/types/content.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,15 @@ class GetContentRequest(proto.Message):
197197
class ContentView(proto.Enum):
198198
r"""Specifies whether the request should return the full or the
199199
partial representation.
200+
201+
Values:
202+
CONTENT_VIEW_UNSPECIFIED (0):
203+
Content view not specified. Defaults to
204+
BASIC. The API will default to the BASIC view.
205+
BASIC (1):
206+
Will not return the ``data_text`` field.
207+
FULL (2):
208+
Returns the complete proto.
200209
"""
201210
CONTENT_VIEW_UNSPECIFIED = 0
202211
BASIC = 1

google/cloud/dataplex_v1/types/data_quality.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,18 @@ class StatisticRangeExpectation(proto.Message):
340340
"""
341341

342342
class ColumnStatistic(proto.Enum):
343-
r""""""
343+
r"""
344+
345+
Values:
346+
STATISTIC_UNDEFINED (0):
347+
Unspecified statistic type
348+
MEAN (1):
349+
Evaluate the column mean
350+
MIN (2):
351+
Evaluate the column min
352+
MAX (3):
353+
Evaluate the column max
354+
"""
344355
STATISTIC_UNDEFINED = 0
345356
MEAN = 1
346357
MIN = 2

google/cloud/dataplex_v1/types/datascans.py

Lines changed: 52 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,16 @@
4848

4949

5050
class DataScanType(proto.Enum):
51-
r"""The type of DataScan."""
51+
r"""The type of DataScan.
52+
53+
Values:
54+
DATA_SCAN_TYPE_UNSPECIFIED (0):
55+
The DataScan Type is unspecified.
56+
DATA_QUALITY (1):
57+
Data Quality Scan.
58+
DATA_PROFILE (2):
59+
Data Profile Scan.
60+
"""
5261
DATA_SCAN_TYPE_UNSPECIFIED = 0
5362
DATA_QUALITY = 1
5463
DATA_PROFILE = 2
@@ -145,7 +154,17 @@ class GetDataScanRequest(proto.Message):
145154
"""
146155

147156
class DataScanView(proto.Enum):
148-
r"""DataScan views for getting a partial dataScan."""
157+
r"""DataScan views for getting a partial dataScan.
158+
159+
Values:
160+
DATA_SCAN_VIEW_UNSPECIFIED (0):
161+
The API will default to the ``BASIC`` view.
162+
BASIC (1):
163+
Basic view that does not include spec and
164+
result.
165+
FULL (10):
166+
Include everything.
167+
"""
149168
DATA_SCAN_VIEW_UNSPECIFIED = 0
150169
BASIC = 1
151170
FULL = 10
@@ -292,7 +311,17 @@ class GetDataScanJobRequest(proto.Message):
292311
"""
293312

294313
class DataScanJobView(proto.Enum):
295-
r"""DataScanJob views for getting a partial dataScanJob."""
314+
r"""DataScanJob views for getting a partial dataScanJob.
315+
316+
Values:
317+
DATA_SCAN_JOB_VIEW_UNSPECIFIED (0):
318+
The API will default to the ``BASIC`` view.
319+
BASIC (1):
320+
Basic view that does not include spec and
321+
result.
322+
FULL (10):
323+
Include everything.
324+
"""
296325
DATA_SCAN_JOB_VIEW_UNSPECIFIED = 0
297326
BASIC = 1
298327
FULL = 10
@@ -642,7 +671,26 @@ class DataScanJob(proto.Message):
642671
"""
643672

644673
class State(proto.Enum):
645-
r"""Execution state for the DataScanJob."""
674+
r"""Execution state for the DataScanJob.
675+
676+
Values:
677+
STATE_UNSPECIFIED (0):
678+
The DataScanJob state is unspecified.
679+
RUNNING (1):
680+
The DataScanJob is running.
681+
CANCELING (2):
682+
The DataScanJob is canceling.
683+
CANCELLED (3):
684+
The DataScanJob cancellation was successful.
685+
SUCCEEDED (4):
686+
The DataScanJob completed successfully.
687+
FAILED (5):
688+
The DataScanJob is no longer running due to
689+
an error.
690+
PENDING (7):
691+
The DataScanJob has been created but not
692+
started to run yet.
693+
"""
646694
STATE_UNSPECIFIED = 0
647695
RUNNING = 1
648696
CANCELING = 2

0 commit comments

Comments
 (0)