Returns the tables Resource.
Close httplib2 connections.
create(parent, body=None, databaseId=None, x__xgafv=None)
Creates a new database.
Deletes an existing database specified by the database ID.
Gets the database specified by the resource name.
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
List all databases in a specified catalog.
Retrieves the next page of results.
patch(name, body=None, updateMask=None, x__xgafv=None)
Updates an existing database specified by the database ID.
close()
Close httplib2 connections.
create(parent, body=None, databaseId=None, x__xgafv=None)
Creates a new database. Args: parent: string, Required. The parent resource where this database will be created. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id} (required) body: object, The request body. The object takes the form of: { # Database is the container of tables. "createTime": "A String", # Output only. The creation time of the database. "deleteTime": "A String", # Output only. The deletion time of the database. Only set after the database is deleted. "expireTime": "A String", # Output only. The time when this database is considered expired. Only set after the database is deleted. "hiveOptions": { # Options of a Hive database. # Options of a Hive database. "locationUri": "A String", # Cloud Storage folder URI where the database data is stored, starting with "gs://". "parameters": { # Stores user supplied Hive database parameters. "a_key": "A String", }, }, "name": "A String", # Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id} "type": "A String", # The database type. "updateTime": "A String", # Output only. The last modification time of the database. } databaseId: string, Required. The ID to use for the database, which will become the final component of the database's resource name. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Database is the container of tables. "createTime": "A String", # Output only. The creation time of the database. "deleteTime": "A String", # Output only. The deletion time of the database. Only set after the database is deleted. "expireTime": "A String", # Output only. The time when this database is considered expired. Only set after the database is deleted. "hiveOptions": { # Options of a Hive database. # Options of a Hive database. "locationUri": "A String", # Cloud Storage folder URI where the database data is stored, starting with "gs://". "parameters": { # Stores user supplied Hive database parameters. "a_key": "A String", }, }, "name": "A String", # Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id} "type": "A String", # The database type. "updateTime": "A String", # Output only. The last modification time of the database. }
delete(name, x__xgafv=None)
Deletes an existing database specified by the database ID. Args: name: string, Required. The name of the database to delete. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id} (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Database is the container of tables. "createTime": "A String", # Output only. The creation time of the database. "deleteTime": "A String", # Output only. The deletion time of the database. Only set after the database is deleted. "expireTime": "A String", # Output only. The time when this database is considered expired. Only set after the database is deleted. "hiveOptions": { # Options of a Hive database. # Options of a Hive database. "locationUri": "A String", # Cloud Storage folder URI where the database data is stored, starting with "gs://". "parameters": { # Stores user supplied Hive database parameters. "a_key": "A String", }, }, "name": "A String", # Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id} "type": "A String", # The database type. "updateTime": "A String", # Output only. The last modification time of the database. }
get(name, x__xgafv=None)
Gets the database specified by the resource name. Args: name: string, Required. The name of the database to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id} (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Database is the container of tables. "createTime": "A String", # Output only. The creation time of the database. "deleteTime": "A String", # Output only. The deletion time of the database. Only set after the database is deleted. "expireTime": "A String", # Output only. The time when this database is considered expired. Only set after the database is deleted. "hiveOptions": { # Options of a Hive database. # Options of a Hive database. "locationUri": "A String", # Cloud Storage folder URI where the database data is stored, starting with "gs://". "parameters": { # Stores user supplied Hive database parameters. "a_key": "A String", }, }, "name": "A String", # Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id} "type": "A String", # The database type. "updateTime": "A String", # Output only. The last modification time of the database. }
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
List all databases in a specified catalog. Args: parent: string, Required. The parent, which owns this collection of databases. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id} (required) pageSize: integer, The maximum number of databases to return. The service may return fewer than this value. If unspecified, at most 50 databases will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. pageToken: string, A page token, received from a previous `ListDatabases` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDatabases` must match the call that provided the page token. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response message for the ListDatabases method. "databases": [ # The databases from the specified catalog. { # Database is the container of tables. "createTime": "A String", # Output only. The creation time of the database. "deleteTime": "A String", # Output only. The deletion time of the database. Only set after the database is deleted. "expireTime": "A String", # Output only. The time when this database is considered expired. Only set after the database is deleted. "hiveOptions": { # Options of a Hive database. # Options of a Hive database. "locationUri": "A String", # Cloud Storage folder URI where the database data is stored, starting with "gs://". "parameters": { # Stores user supplied Hive database parameters. "a_key": "A String", }, }, "name": "A String", # Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id} "type": "A String", # The database type. "updateTime": "A String", # Output only. The last modification time of the database. }, ], "nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. }
list_next()
Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call 'execute()' on to request the next page. Returns None if there are no more items in the collection.
patch(name, body=None, updateMask=None, x__xgafv=None)
Updates an existing database specified by the database ID. Args: name: string, Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id} (required) body: object, The request body. The object takes the form of: { # Database is the container of tables. "createTime": "A String", # Output only. The creation time of the database. "deleteTime": "A String", # Output only. The deletion time of the database. Only set after the database is deleted. "expireTime": "A String", # Output only. The time when this database is considered expired. Only set after the database is deleted. "hiveOptions": { # Options of a Hive database. # Options of a Hive database. "locationUri": "A String", # Cloud Storage folder URI where the database data is stored, starting with "gs://". "parameters": { # Stores user supplied Hive database parameters. "a_key": "A String", }, }, "name": "A String", # Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id} "type": "A String", # The database type. "updateTime": "A String", # Output only. The last modification time of the database. } updateMask: string, The list of fields to update. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Database is the container of tables. "createTime": "A String", # Output only. The creation time of the database. "deleteTime": "A String", # Output only. The deletion time of the database. Only set after the database is deleted. "expireTime": "A String", # Output only. The time when this database is considered expired. Only set after the database is deleted. "hiveOptions": { # Options of a Hive database. # Options of a Hive database. "locationUri": "A String", # Cloud Storage folder URI where the database data is stored, starting with "gs://". "parameters": { # Stores user supplied Hive database parameters. "a_key": "A String", }, }, "name": "A String", # Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id} "type": "A String", # The database type. "updateTime": "A String", # Output only. The last modification time of the database. }