Skip to content

Commit

Permalink
[CHANGE ME] Re-generated datacatalog to pick up changes in the API or…
Browse files Browse the repository at this point in the history
… client library generator.
  • Loading branch information
yoshi-automation committed Jun 8, 2019
1 parent b80d431 commit 7cb6ceb
Show file tree
Hide file tree
Showing 20 changed files with 7,524 additions and 206 deletions.
1,605 changes: 1,599 additions & 6 deletions datacatalog/google/cloud/datacatalog_v1beta1/gapic/data_catalog_client.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,101 @@
}
},
"methods": {
"SearchCatalog": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"UpdateEntry": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"GetEntry": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"LookupEntry": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
}
},
"CreateTagTemplate": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"GetTagTemplate": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"UpdateTagTemplate": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"DeleteTagTemplate": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"CreateTagTemplateField": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"UpdateTagTemplateField": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"RenameTagTemplateField": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"DeleteTagTemplateField": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"CreateTag": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"UpdateTag": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"DeleteTag": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"ListTags": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"SetIamPolicy": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"GetIamPolicy": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"TestIamPermissions": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
},
}
}
Expand Down
39 changes: 37 additions & 2 deletions datacatalog/google/cloud/datacatalog_v1beta1/gapic/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

class EntryType(enum.IntEnum):
"""
Entry resources in Cloud Data Catalog can be of different types e.g. BigQuery
Entry resources in Data Catalog can be of different types e.g. BigQuery
Table entry is of type 'TABLE'. This enum describes all the possible types
Cloud Data Catalog contains.
Data Catalog contains.
Attributes:
ENTRY_TYPE_UNSPECIFIED (int): Default unknown type
Expand All @@ -36,6 +36,23 @@ class EntryType(enum.IntEnum):
DATA_STREAM = 3


class SearchResultType(enum.IntEnum):
"""
The different types of resources that can be returned in search.
Attributes:
SEARCH_RESULT_TYPE_UNSPECIFIED (int): Default unknown type.
ENTRY (int): An ``Entry``.
TAG_TEMPLATE (int): A ``TagTemplate``.
ENTRY_GROUP (int): An ``EntryGroup``.
"""

SEARCH_RESULT_TYPE_UNSPECIFIED = 0
ENTRY = 1
TAG_TEMPLATE = 2
ENTRY_GROUP = 3


class TableSourceType(enum.IntEnum):
"""
Table source type.
Expand All @@ -49,3 +66,21 @@ class TableSourceType(enum.IntEnum):
TABLE_SOURCE_TYPE_UNSPECIFIED = 0
BIGQUERY_VIEW = 2
BIGQUERY_TABLE = 5


class FieldType(object):
class PrimitiveType(enum.IntEnum):
"""
Attributes:
PRIMITIVE_TYPE_UNSPECIFIED (int): This is the default invalid value for a type.
DOUBLE (int): A double precision number.
STRING (int): An UTF-8 string.
BOOL (int): A boolean value.
TIMESTAMP (int): A timestamp.
"""

PRIMITIVE_TYPE_UNSPECIFIED = 0
DOUBLE = 1
STRING = 2
BOOL = 3
TIMESTAMP = 4
Loading

0 comments on commit 7cb6ceb

Please sign in to comment.