From eba8d4f0e129812a600e4e8e6c33f4ab88c95180 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 6 Dec 2022 07:07:42 +0000 Subject: [PATCH] feat(metastore): update the api #### metastore:v1alpha The following keys were added: - resources.projects.resources.locations.resources.services.methods.alterLocation (Total Keys: 12) - resources.projects.resources.locations.resources.services.methods.moveTableToDatabase (Total Keys: 12) - resources.projects.resources.locations.resources.services.methods.queryMetadata (Total Keys: 12) - schemas.AlterMetadataResourceLocationRequest (Total Keys: 4) - schemas.MoveTableToDatabaseRequest (Total Keys: 5) - schemas.QueryMetadataRequest (Total Keys: 3) - schemas.QueryMetadataResponse (Total Keys: 3) #### metastore:v1beta The following keys were added: - resources.projects.resources.locations.resources.services.methods.alterLocation (Total Keys: 12) - resources.projects.resources.locations.resources.services.methods.moveTableToDatabase (Total Keys: 12) - resources.projects.resources.locations.resources.services.methods.queryMetadata (Total Keys: 12) - schemas.AlterMetadataResourceLocationRequest (Total Keys: 4) - schemas.MoveTableToDatabaseRequest (Total Keys: 5) - schemas.QueryMetadataRequest (Total Keys: 3) - schemas.QueryMetadataResponse (Total Keys: 3) --- ...ore_v1.projects.locations.federations.html | 8 +- ...1.projects.locations.services.backups.html | 6 +- ...astore_v1.projects.locations.services.html | 8 +- ...1alpha.projects.locations.federations.html | 8 +- ...a.projects.locations.services.backups.html | 6 +- ...e_v1alpha.projects.locations.services.html | 148 +++++++++++++++++- ...v1beta.projects.locations.federations.html | 8 +- ...a.projects.locations.services.backups.html | 6 +- ...re_v1beta.projects.locations.services.html | 148 +++++++++++++++++- .../documents/metastore.v1.json | 5 +- .../documents/metastore.v1alpha.json | 147 ++++++++++++++++- .../documents/metastore.v1beta.json | 147 ++++++++++++++++- 12 files changed, 602 insertions(+), 43 deletions(-) diff --git a/docs/dyn/metastore_v1.projects.locations.federations.html b/docs/dyn/metastore_v1.projects.locations.federations.html index 40454d04ba9..9f9f94600ca 100644 --- a/docs/dyn/metastore_v1.projects.locations.federations.html +++ b/docs/dyn/metastore_v1.projects.locations.federations.html @@ -123,7 +123,7 @@

Method Details

"backendMetastores": { # A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number. "a_key": { # Represents a backend metastore for the federation. "metastoreType": "A String", # The type of the backend metastore. - "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id} + "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id} }, }, "createTime": "A String", # Output only. The time when the metastore federation was created. @@ -224,7 +224,7 @@

Method Details

"backendMetastores": { # A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number. "a_key": { # Represents a backend metastore for the federation. "metastoreType": "A String", # The type of the backend metastore. - "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id} + "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id} }, }, "createTime": "A String", # Output only. The time when the metastore federation was created. @@ -313,7 +313,7 @@

Method Details

"backendMetastores": { # A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number. "a_key": { # Represents a backend metastore for the federation. "metastoreType": "A String", # The type of the backend metastore. - "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id} + "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id} }, }, "createTime": "A String", # Output only. The time when the metastore federation was created. @@ -363,7 +363,7 @@

Method Details

"backendMetastores": { # A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number. "a_key": { # Represents a backend metastore for the federation. "metastoreType": "A String", # The type of the backend metastore. - "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id} + "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id} }, }, "createTime": "A String", # Output only. The time when the metastore federation was created. diff --git a/docs/dyn/metastore_v1.projects.locations.services.backups.html b/docs/dyn/metastore_v1.projects.locations.services.backups.html index c0370fc4004..dbdf0996324 100644 --- a/docs/dyn/metastore_v1.projects.locations.services.backups.html +++ b/docs/dyn/metastore_v1.projects.locations.services.backups.html @@ -185,7 +185,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. @@ -347,7 +347,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. @@ -497,7 +497,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. diff --git a/docs/dyn/metastore_v1.projects.locations.services.html b/docs/dyn/metastore_v1.projects.locations.services.html index 9791aadf171..28555a7b6b2 100644 --- a/docs/dyn/metastore_v1.projects.locations.services.html +++ b/docs/dyn/metastore_v1.projects.locations.services.html @@ -199,7 +199,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. @@ -395,7 +395,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. @@ -536,7 +536,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. @@ -636,7 +636,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. diff --git a/docs/dyn/metastore_v1alpha.projects.locations.federations.html b/docs/dyn/metastore_v1alpha.projects.locations.federations.html index 5ff9bedeb0d..861d8c4932d 100644 --- a/docs/dyn/metastore_v1alpha.projects.locations.federations.html +++ b/docs/dyn/metastore_v1alpha.projects.locations.federations.html @@ -123,7 +123,7 @@

Method Details

"backendMetastores": { # A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number. "a_key": { # Represents a backend metastore for the federation. "metastoreType": "A String", # The type of the backend metastore. - "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id} + "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id} }, }, "createTime": "A String", # Output only. The time when the metastore federation was created. @@ -224,7 +224,7 @@

Method Details

"backendMetastores": { # A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number. "a_key": { # Represents a backend metastore for the federation. "metastoreType": "A String", # The type of the backend metastore. - "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id} + "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id} }, }, "createTime": "A String", # Output only. The time when the metastore federation was created. @@ -313,7 +313,7 @@

Method Details

"backendMetastores": { # A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number. "a_key": { # Represents a backend metastore for the federation. "metastoreType": "A String", # The type of the backend metastore. - "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id} + "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id} }, }, "createTime": "A String", # Output only. The time when the metastore federation was created. @@ -363,7 +363,7 @@

Method Details

"backendMetastores": { # A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number. "a_key": { # Represents a backend metastore for the federation. "metastoreType": "A String", # The type of the backend metastore. - "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id} + "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id} }, }, "createTime": "A String", # Output only. The time when the metastore federation was created. diff --git a/docs/dyn/metastore_v1alpha.projects.locations.services.backups.html b/docs/dyn/metastore_v1alpha.projects.locations.services.backups.html index 351a215a859..0ec82f36c72 100644 --- a/docs/dyn/metastore_v1alpha.projects.locations.services.backups.html +++ b/docs/dyn/metastore_v1alpha.projects.locations.services.backups.html @@ -217,7 +217,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. @@ -408,7 +408,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. @@ -587,7 +587,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. diff --git a/docs/dyn/metastore_v1alpha.projects.locations.services.html b/docs/dyn/metastore_v1alpha.projects.locations.services.html index 5d0d10b19e8..867e28e04a2 100644 --- a/docs/dyn/metastore_v1alpha.projects.locations.services.html +++ b/docs/dyn/metastore_v1alpha.projects.locations.services.html @@ -89,6 +89,9 @@

Instance Methods

Returns the metadataImports Resource.

+

+ alterLocation(service, body=None, x__xgafv=None)

+

Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.

close()

Close httplib2 connections.

@@ -113,9 +116,15 @@

Instance Methods

list_next()

Retrieves the next page of results.

+

+ moveTableToDatabase(service, body=None, x__xgafv=None)

+

Move a table to another database.

patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)

Updates the parameters of a single service.

+

+ queryMetadata(service, body=None, x__xgafv=None)

+

Query DPMS metadata.

removeIamPolicy(resource, body=None, x__xgafv=None)

Removes the attached IAM policies for a resource

@@ -129,6 +138,49 @@

Instance Methods

testIamPermissions(resource, body=None, x__xgafv=None)

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

Method Details

+
+ alterLocation(service, body=None, x__xgafv=None) +
Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.
+
+Args:
+  service: string, Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # Request message for DataprocMetastore.AlterMetadataResourceLocation.
+  "locationUri": "A String", # Required. The new location URI for the metadata resource.
+  "resourceName": "A String", # Required. The relative metadata resource name in the following format.databases/{database_id} or databases/{database_id}/tables/{table_id} or databases/{database_id}/tables/{table_id}/partitions/{partition_id}
+}
+
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # This resource represents a long-running operation that is the result of a network API call.
+  "done": True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
+  "error": { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
+    "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+    "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+      {
+        "a_key": "", # Properties of the object. Contains field @type with type URL.
+      },
+    ],
+    "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
+  },
+  "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+  "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
+  "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+}
+
+
close()
Close httplib2 connections.
@@ -236,7 +288,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. @@ -461,7 +513,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. @@ -631,7 +683,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. @@ -658,6 +710,50 @@

Method Details

+
+ moveTableToDatabase(service, body=None, x__xgafv=None) +
Move a table to another database.
+
+Args:
+  service: string, Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # Request message for DataprocMetastore.MoveTableToDatabase.
+  "dbName": "A String", # Required. The name of the database where the table resides.
+  "destinationDbName": "A String", # Required. The name of the database where the table should be moved.
+  "tableName": "A String", # Required. The name of the table to be moved.
+}
+
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # This resource represents a long-running operation that is the result of a network API call.
+  "done": True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
+  "error": { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
+    "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+    "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+      {
+        "a_key": "", # Properties of the object. Contains field @type with type URL.
+      },
+    ],
+    "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
+  },
+  "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+  "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
+  "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+}
+
+
patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)
Updates the parameters of a single service.
@@ -760,7 +856,7 @@ 

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. @@ -798,6 +894,48 @@

Method Details

}
+
+ queryMetadata(service, body=None, x__xgafv=None) +
Query DPMS metadata.
+
+Args:
+  service: string, Required. The relative resource name of the metastore service to query metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # Request message for DataprocMetastore.QueryMetadata.
+  "query": "A String", # Required. A read-only SQL query to execute against the metadata database. The query cannot change or mutate the data.
+}
+
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # This resource represents a long-running operation that is the result of a network API call.
+  "done": True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
+  "error": { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
+    "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+    "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+      {
+        "a_key": "", # Properties of the object. Contains field @type with type URL.
+      },
+    ],
+    "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
+  },
+  "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+  "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
+  "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+}
+
+
removeIamPolicy(resource, body=None, x__xgafv=None)
Removes the attached IAM policies for a resource
@@ -819,7 +957,7 @@ 

Method Details

An object of the form: { # Response message for DataprocMetastore.RemoveIamPolicy. - "success": True or False, # whether related policies are removed + "success": True or False, # True if the policy is successfully removed. }
diff --git a/docs/dyn/metastore_v1beta.projects.locations.federations.html b/docs/dyn/metastore_v1beta.projects.locations.federations.html index df08b3e3490..69b6f0eaa39 100644 --- a/docs/dyn/metastore_v1beta.projects.locations.federations.html +++ b/docs/dyn/metastore_v1beta.projects.locations.federations.html @@ -123,7 +123,7 @@

Method Details

"backendMetastores": { # A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number. "a_key": { # Represents a backend metastore for the federation. "metastoreType": "A String", # The type of the backend metastore. - "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id} + "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id} }, }, "createTime": "A String", # Output only. The time when the metastore federation was created. @@ -224,7 +224,7 @@

Method Details

"backendMetastores": { # A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number. "a_key": { # Represents a backend metastore for the federation. "metastoreType": "A String", # The type of the backend metastore. - "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id} + "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id} }, }, "createTime": "A String", # Output only. The time when the metastore federation was created. @@ -313,7 +313,7 @@

Method Details

"backendMetastores": { # A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number. "a_key": { # Represents a backend metastore for the federation. "metastoreType": "A String", # The type of the backend metastore. - "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id} + "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id} }, }, "createTime": "A String", # Output only. The time when the metastore federation was created. @@ -363,7 +363,7 @@

Method Details

"backendMetastores": { # A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a BackendMetastore with a higher number. "a_key": { # Represents a backend metastore for the federation. "metastoreType": "A String", # The type of the backend metastore. - "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id} + "name": "A String", # The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id} }, }, "createTime": "A String", # Output only. The time when the metastore federation was created. diff --git a/docs/dyn/metastore_v1beta.projects.locations.services.backups.html b/docs/dyn/metastore_v1beta.projects.locations.services.backups.html index edebbce0ea8..0facd7f55b1 100644 --- a/docs/dyn/metastore_v1beta.projects.locations.services.backups.html +++ b/docs/dyn/metastore_v1beta.projects.locations.services.backups.html @@ -217,7 +217,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. @@ -408,7 +408,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. @@ -587,7 +587,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. diff --git a/docs/dyn/metastore_v1beta.projects.locations.services.html b/docs/dyn/metastore_v1beta.projects.locations.services.html index ecc57c33a6c..ccf8d508d9a 100644 --- a/docs/dyn/metastore_v1beta.projects.locations.services.html +++ b/docs/dyn/metastore_v1beta.projects.locations.services.html @@ -89,6 +89,9 @@

Instance Methods

Returns the metadataImports Resource.

+

+ alterLocation(service, body=None, x__xgafv=None)

+

Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.

close()

Close httplib2 connections.

@@ -113,9 +116,15 @@

Instance Methods

list_next()

Retrieves the next page of results.

+

+ moveTableToDatabase(service, body=None, x__xgafv=None)

+

Move a table to another database.

patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)

Updates the parameters of a single service.

+

+ queryMetadata(service, body=None, x__xgafv=None)

+

Query DPMS metadata.

removeIamPolicy(resource, body=None, x__xgafv=None)

Removes the attached IAM policies for a resource

@@ -129,6 +138,49 @@

Instance Methods

testIamPermissions(resource, body=None, x__xgafv=None)

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

Method Details

+
+ alterLocation(service, body=None, x__xgafv=None) +
Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.
+
+Args:
+  service: string, Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # Request message for DataprocMetastore.AlterMetadataResourceLocation.
+  "locationUri": "A String", # Required. The new location URI for the metadata resource.
+  "resourceName": "A String", # Required. The relative metadata resource name in the following format.databases/{database_id} or databases/{database_id}/tables/{table_id} or databases/{database_id}/tables/{table_id}/partitions/{partition_id}
+}
+
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # This resource represents a long-running operation that is the result of a network API call.
+  "done": True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
+  "error": { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
+    "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+    "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+      {
+        "a_key": "", # Properties of the object. Contains field @type with type URL.
+      },
+    ],
+    "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
+  },
+  "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+  "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
+  "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+}
+
+
close()
Close httplib2 connections.
@@ -236,7 +288,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. @@ -461,7 +513,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. @@ -631,7 +683,7 @@

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. @@ -658,6 +710,50 @@

Method Details

+
+ moveTableToDatabase(service, body=None, x__xgafv=None) +
Move a table to another database.
+
+Args:
+  service: string, Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # Request message for DataprocMetastore.MoveTableToDatabase.
+  "dbName": "A String", # Required. The name of the database where the table resides.
+  "destinationDbName": "A String", # Required. The name of the database where the table should be moved.
+  "tableName": "A String", # Required. The name of the table to be moved.
+}
+
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # This resource represents a long-running operation that is the result of a network API call.
+  "done": True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
+  "error": { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
+    "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+    "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+      {
+        "a_key": "", # Properties of the object. Contains field @type with type URL.
+      },
+    ],
+    "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
+  },
+  "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+  "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
+  "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+}
+
+
patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)
Updates the parameters of a single service.
@@ -760,7 +856,7 @@ 

Method Details

"state": "A String", # Output only. The current state of the metastore service. "stateMessage": "A String", # Output only. Additional information about the current state of the metastore service, if available. "telemetryConfig": { # Telemetry Configuration for the Dataproc Metastore service. # The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. - "logFormat": "A String", + "logFormat": "A String", # The output format of the Dataproc Metastore service's logs. }, "tier": "A String", # The tier of the service. "uid": "A String", # Output only. The globally unique resource identifier of the metastore service. @@ -798,6 +894,48 @@

Method Details

}
+
+ queryMetadata(service, body=None, x__xgafv=None) +
Query DPMS metadata.
+
+Args:
+  service: string, Required. The relative resource name of the metastore service to query metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # Request message for DataprocMetastore.QueryMetadata.
+  "query": "A String", # Required. A read-only SQL query to execute against the metadata database. The query cannot change or mutate the data.
+}
+
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # This resource represents a long-running operation that is the result of a network API call.
+  "done": True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
+  "error": { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
+    "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+    "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+      {
+        "a_key": "", # Properties of the object. Contains field @type with type URL.
+      },
+    ],
+    "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
+  },
+  "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+  "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
+  "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+}
+
+
removeIamPolicy(resource, body=None, x__xgafv=None)
Removes the attached IAM policies for a resource
@@ -819,7 +957,7 @@ 

Method Details

An object of the form: { # Response message for DataprocMetastore.RemoveIamPolicy. - "success": True or False, # whether related policies are removed + "success": True or False, # True if the policy is successfully removed. }
diff --git a/googleapiclient/discovery_cache/documents/metastore.v1.json b/googleapiclient/discovery_cache/documents/metastore.v1.json index 4136c81691a..cba4a3c0c58 100644 --- a/googleapiclient/discovery_cache/documents/metastore.v1.json +++ b/googleapiclient/discovery_cache/documents/metastore.v1.json @@ -1259,7 +1259,7 @@ } } }, - "revision": "20221110", + "revision": "20221130", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AuditConfig": { @@ -1327,7 +1327,7 @@ "type": "string" }, "name": { - "description": "The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id}", + "description": "The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id}", "type": "string" } }, @@ -2464,6 +2464,7 @@ "id": "TelemetryConfig", "properties": { "logFormat": { + "description": "The output format of the Dataproc Metastore service's logs.", "enum": [ "LOG_FORMAT_UNSPECIFIED", "LEGACY", diff --git a/googleapiclient/discovery_cache/documents/metastore.v1alpha.json b/googleapiclient/discovery_cache/documents/metastore.v1alpha.json index 65ec003de8a..fd033f94d4b 100644 --- a/googleapiclient/discovery_cache/documents/metastore.v1alpha.json +++ b/googleapiclient/discovery_cache/documents/metastore.v1alpha.json @@ -543,6 +543,34 @@ }, "services": { "methods": { + "alterLocation": { + "description": "Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:alterLocation", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.alterLocation", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+service}:alterLocation", + "request": { + "$ref": "AlterMetadataResourceLocationRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { "description": "Creates a metastore service in a project and location.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/services", @@ -741,6 +769,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "moveTableToDatabase": { + "description": "Move a table to another database.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:moveTableToDatabase", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.moveTableToDatabase", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+service}:moveTableToDatabase", + "request": { + "$ref": "MoveTableToDatabaseRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "patch": { "description": "Updates the parameters of a single service.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}", @@ -780,6 +836,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "queryMetadata": { + "description": "Query DPMS metadata.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:queryMetadata", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.queryMetadata", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to query metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+service}:queryMetadata", + "request": { + "$ref": "QueryMetadataRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "removeIamPolicy": { "description": "Removes the attached IAM policies for a resource", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/{servicesId1}:removeIamPolicy", @@ -1467,9 +1551,24 @@ } } }, - "revision": "20221110", + "revision": "20221130", "rootUrl": "https://metastore.googleapis.com/", "schemas": { + "AlterMetadataResourceLocationRequest": { + "description": "Request message for DataprocMetastore.AlterMetadataResourceLocation.", + "id": "AlterMetadataResourceLocationRequest", + "properties": { + "locationUri": { + "description": "Required. The new location URI for the metadata resource.", + "type": "string" + }, + "resourceName": { + "description": "Required. The relative metadata resource name in the following format.databases/{database_id} or databases/{database_id}/tables/{table_id} or databases/{database_id}/tables/{table_id}/partitions/{partition_id}", + "type": "string" + } + }, + "type": "object" + }, "AuditConfig": { "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.If there are AuditConfigs for both allServices and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.", "id": "AuditConfig", @@ -1560,7 +1659,7 @@ "type": "string" }, "name": { - "description": "The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id}", + "description": "The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id}", "type": "string" } }, @@ -2337,6 +2436,25 @@ }, "type": "object" }, + "MoveTableToDatabaseRequest": { + "description": "Request message for DataprocMetastore.MoveTableToDatabase.", + "id": "MoveTableToDatabaseRequest", + "properties": { + "dbName": { + "description": "Required. The name of the database where the table resides.", + "type": "string" + }, + "destinationDbName": { + "description": "Required. The name of the database where the table should be moved.", + "type": "string" + }, + "tableName": { + "description": "Required. The name of the table to be moved.", + "type": "string" + } + }, + "type": "object" + }, "NetworkConfig": { "description": "Network configuration for the Dataproc Metastore service.", "id": "NetworkConfig", @@ -2461,6 +2579,28 @@ }, "type": "object" }, + "QueryMetadataRequest": { + "description": "Request message for DataprocMetastore.QueryMetadata.", + "id": "QueryMetadataRequest", + "properties": { + "query": { + "description": "Required. A read-only SQL query to execute against the metadata database. The query cannot change or mutate the data.", + "type": "string" + } + }, + "type": "object" + }, + "QueryMetadataResponse": { + "description": "Response message for DataprocMetastore.QueryMetadata.", + "id": "QueryMetadataResponse", + "properties": { + "resultManifestUri": { + "description": "The manifest URI is link to a JSON instance in Cloud Storage. This instance manifests immediately along with QueryMetadataResponse. The content of the URI is not retriable until the long-running operation query against the metadata finishes.", + "type": "string" + } + }, + "type": "object" + }, "RemoveIamPolicyRequest": { "description": "Request message for DataprocMetastore.RemoveIamPolicy.", "id": "RemoveIamPolicyRequest", @@ -2472,7 +2612,7 @@ "id": "RemoveIamPolicyResponse", "properties": { "success": { - "description": "whether related policies are removed", + "description": "True if the policy is successfully removed.", "type": "boolean" } }, @@ -2784,6 +2924,7 @@ "id": "TelemetryConfig", "properties": { "logFormat": { + "description": "The output format of the Dataproc Metastore service's logs.", "enum": [ "LOG_FORMAT_UNSPECIFIED", "LEGACY", diff --git a/googleapiclient/discovery_cache/documents/metastore.v1beta.json b/googleapiclient/discovery_cache/documents/metastore.v1beta.json index d03d719c0b3..01815dadca0 100644 --- a/googleapiclient/discovery_cache/documents/metastore.v1beta.json +++ b/googleapiclient/discovery_cache/documents/metastore.v1beta.json @@ -543,6 +543,34 @@ }, "services": { "methods": { + "alterLocation": { + "description": "Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:alterLocation", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.alterLocation", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+service}:alterLocation", + "request": { + "$ref": "AlterMetadataResourceLocationRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { "description": "Creates a metastore service in a project and location.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services", @@ -741,6 +769,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "moveTableToDatabase": { + "description": "Move a table to another database.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:moveTableToDatabase", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.moveTableToDatabase", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+service}:moveTableToDatabase", + "request": { + "$ref": "MoveTableToDatabaseRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "patch": { "description": "Updates the parameters of a single service.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}", @@ -780,6 +836,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "queryMetadata": { + "description": "Query DPMS metadata.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:queryMetadata", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.queryMetadata", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to query metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+service}:queryMetadata", + "request": { + "$ref": "QueryMetadataRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "removeIamPolicy": { "description": "Removes the attached IAM policies for a resource", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/{servicesId1}:removeIamPolicy", @@ -1467,9 +1551,24 @@ } } }, - "revision": "20221110", + "revision": "20221130", "rootUrl": "https://metastore.googleapis.com/", "schemas": { + "AlterMetadataResourceLocationRequest": { + "description": "Request message for DataprocMetastore.AlterMetadataResourceLocation.", + "id": "AlterMetadataResourceLocationRequest", + "properties": { + "locationUri": { + "description": "Required. The new location URI for the metadata resource.", + "type": "string" + }, + "resourceName": { + "description": "Required. The relative metadata resource name in the following format.databases/{database_id} or databases/{database_id}/tables/{table_id} or databases/{database_id}/tables/{table_id}/partitions/{partition_id}", + "type": "string" + } + }, + "type": "object" + }, "AuditConfig": { "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.If there are AuditConfigs for both allServices and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.", "id": "AuditConfig", @@ -1560,7 +1659,7 @@ "type": "string" }, "name": { - "description": "The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex: projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery: projects/{project_id} Dataproc Metastore: projects/{project_id}/locations/{location}/services/{service_id}", + "description": "The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id}", "type": "string" } }, @@ -2337,6 +2436,25 @@ }, "type": "object" }, + "MoveTableToDatabaseRequest": { + "description": "Request message for DataprocMetastore.MoveTableToDatabase.", + "id": "MoveTableToDatabaseRequest", + "properties": { + "dbName": { + "description": "Required. The name of the database where the table resides.", + "type": "string" + }, + "destinationDbName": { + "description": "Required. The name of the database where the table should be moved.", + "type": "string" + }, + "tableName": { + "description": "Required. The name of the table to be moved.", + "type": "string" + } + }, + "type": "object" + }, "NetworkConfig": { "description": "Network configuration for the Dataproc Metastore service.", "id": "NetworkConfig", @@ -2461,6 +2579,28 @@ }, "type": "object" }, + "QueryMetadataRequest": { + "description": "Request message for DataprocMetastore.QueryMetadata.", + "id": "QueryMetadataRequest", + "properties": { + "query": { + "description": "Required. A read-only SQL query to execute against the metadata database. The query cannot change or mutate the data.", + "type": "string" + } + }, + "type": "object" + }, + "QueryMetadataResponse": { + "description": "Response message for DataprocMetastore.QueryMetadata.", + "id": "QueryMetadataResponse", + "properties": { + "resultManifestUri": { + "description": "The manifest URI is link to a JSON instance in Cloud Storage. This instance manifests immediately along with QueryMetadataResponse. The content of the URI is not retriable until the long-running operation query against the metadata finishes.", + "type": "string" + } + }, + "type": "object" + }, "RemoveIamPolicyRequest": { "description": "Request message for DataprocMetastore.RemoveIamPolicy.", "id": "RemoveIamPolicyRequest", @@ -2472,7 +2612,7 @@ "id": "RemoveIamPolicyResponse", "properties": { "success": { - "description": "whether related policies are removed", + "description": "True if the policy is successfully removed.", "type": "boolean" } }, @@ -2784,6 +2924,7 @@ "id": "TelemetryConfig", "properties": { "logFormat": { + "description": "The output format of the Dataproc Metastore service's logs.", "enum": [ "LOG_FORMAT_UNSPECIFIED", "LEGACY",