Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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