You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="firstline">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.</p>
<pclass="firstline">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.</p>
<pre>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.
136
+
137
+
Args:
138
+
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)
139
+
body: object, The request body.
140
+
The object takes the form of:
141
+
142
+
{ # Request message for DataprocMetastore.AlterMetadataResourceLocation.
143
+
"locationUri": "A String", # Required. The new location URI for the metadata resource.
144
+
"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}
145
+
}
146
+
147
+
x__xgafv: string, V1 error format.
148
+
Allowed values
149
+
1 - v1 error format
150
+
2 - v2 error format
151
+
152
+
Returns:
153
+
An object of the form:
154
+
155
+
{ # This resource represents a long-running operation that is the result of a network API call.
156
+
"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.
157
+
"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.
158
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
159
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
160
+
{
161
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
162
+
},
163
+
],
164
+
"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.
165
+
},
166
+
"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.
167
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
168
+
},
169
+
"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}.
170
+
"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.
171
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
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)
684
+
body: object, The request body.
685
+
The object takes the form of:
686
+
687
+
{ # Request message for DataprocMetastore.MoveTableToDatabase.
688
+
"dbName": "A String", # Required. The name of the database where the table resides.
689
+
"destinationDbName": "A String", # Required. The name of the database where the table should be moved.
690
+
"tableName": "A String", # Required. The name of the table to be moved.
691
+
}
692
+
693
+
x__xgafv: string, V1 error format.
694
+
Allowed values
695
+
1 - v1 error format
696
+
2 - v2 error format
697
+
698
+
Returns:
699
+
An object of the form:
700
+
701
+
{ # This resource represents a long-running operation that is the result of a network API call.
702
+
"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.
703
+
"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.
704
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
705
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
706
+
{
707
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
708
+
},
709
+
],
710
+
"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.
711
+
},
712
+
"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.
713
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
714
+
},
715
+
"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}.
716
+
"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.
717
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
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)
859
+
body: object, The request body.
860
+
The object takes the form of:
861
+
862
+
{ # Request message for DataprocMetastore.QueryMetadata.
863
+
"query": "A String", # Required. A read-only SQL query to execute against the metadata database. The query cannot change or mutate the data.
864
+
}
865
+
866
+
x__xgafv: string, V1 error format.
867
+
Allowed values
868
+
1 - v1 error format
869
+
2 - v2 error format
870
+
871
+
Returns:
872
+
An object of the form:
873
+
874
+
{ # This resource represents a long-running operation that is the result of a network API call.
875
+
"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.
876
+
"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.
877
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
878
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
879
+
{
880
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
881
+
},
882
+
],
883
+
"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.
884
+
},
885
+
"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.
886
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
887
+
},
888
+
"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}.
889
+
"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.
890
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
0 commit comments