Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat(metastore): update the api
#### metastore:v1

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.AlterMetadataResourceLocationResponse (Total Keys: 2)
- schemas.ErrorDetails (Total Keys: 4)
- schemas.MoveTableToDatabaseRequest (Total Keys: 5)
- schemas.MoveTableToDatabaseResponse (Total Keys: 2)
- schemas.QueryMetadataRequest (Total Keys: 3)
- schemas.QueryMetadataResponse (Total Keys: 3)

#### metastore:v1alpha

The following keys were added:
- schemas.ErrorDetails (Total Keys: 4)

#### metastore:v1beta

The following keys were added:
- schemas.ErrorDetails (Total Keys: 4)
  • Loading branch information
yoshi-automation committed May 24, 2023
1 parent eaaaf7a commit 4318920
Show file tree
Hide file tree
Showing 7 changed files with 344 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/dyn/metastore_v1.projects.locations.html
Expand Up @@ -121,7 +121,7 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # A resource that represents Google Cloud Platform location.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down Expand Up @@ -153,7 +153,7 @@ <h3>Method Details</h3>

{ # The response message for Locations.ListLocations.
&quot;locations&quot;: [ # A list of locations that matches the specified filter in the request.
{ # A resource that represents Google Cloud Platform location.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down
138 changes: 138 additions & 0 deletions docs/dyn/metastore_v1.projects.locations.services.html
Expand Up @@ -84,6 +84,9 @@ <h2>Instance Methods</h2>
</p>
<p class="firstline">Returns the metadataImports Resource.</p>

<p class="toc_element">
<code><a href="#alterLocation">alterLocation(service, body=None, x__xgafv=None)</a></code></p>
<p class="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>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
Expand All @@ -108,9 +111,15 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#moveTableToDatabase">moveTableToDatabase(service, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Move a table to another database.</p>
<p class="toc_element">
<code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates the parameters of a single service.</p>
<p class="toc_element">
<code><a href="#queryMetadata">queryMetadata(service, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Query DPMS metadata.</p>
<p class="toc_element">
<code><a href="#restore">restore(service, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Restores a service from a backup.</p>
Expand All @@ -121,6 +130,49 @@ <h2>Instance Methods</h2>
<code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
<p class="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>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="alterLocation">alterLocation(service, body=None, x__xgafv=None)</code>
<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.

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.
&quot;locationUri&quot;: &quot;A String&quot;, # Required. The new location URI for the metadata resource.
&quot;resourceName&quot;: &quot;A String&quot;, # 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.
&quot;done&quot;: 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.
&quot;error&quot;: { # 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.
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
{
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
],
&quot;message&quot;: &quot;A String&quot;, # 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.
},
&quot;metadata&quot;: { # 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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
&quot;name&quot;: &quot;A String&quot;, # 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}.
&quot;response&quot;: { # 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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
}</pre>
</div>

<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
Expand Down Expand Up @@ -623,6 +675,50 @@ <h3>Method Details</h3>
</pre>
</div>

<div class="method">
<code class="details" id="moveTableToDatabase">moveTableToDatabase(service, body=None, x__xgafv=None)</code>
<pre>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.
&quot;dbName&quot;: &quot;A String&quot;, # Required. The name of the database where the table resides.
&quot;destinationDbName&quot;: &quot;A String&quot;, # Required. The name of the database where the table should be moved.
&quot;tableName&quot;: &quot;A String&quot;, # 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.
&quot;done&quot;: 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.
&quot;error&quot;: { # 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.
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
{
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
],
&quot;message&quot;: &quot;A String&quot;, # 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.
},
&quot;metadata&quot;: { # 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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
&quot;name&quot;: &quot;A String&quot;, # 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}.
&quot;response&quot;: { # 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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
}</pre>
</div>

<div class="method">
<code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
<pre>Updates the parameters of a single service.
Expand Down Expand Up @@ -754,6 +850,48 @@ <h3>Method Details</h3>
}</pre>
</div>

<div class="method">
<code class="details" id="queryMetadata">queryMetadata(service, body=None, x__xgafv=None)</code>
<pre>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.
&quot;query&quot;: &quot;A String&quot;, # 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.
&quot;done&quot;: 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.
&quot;error&quot;: { # 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.
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
{
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
],
&quot;message&quot;: &quot;A String&quot;, # 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.
},
&quot;metadata&quot;: { # 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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
&quot;name&quot;: &quot;A String&quot;, # 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}.
&quot;response&quot;: { # 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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
}</pre>
</div>

<div class="method">
<code class="details" id="restore">restore(service, body=None, x__xgafv=None)</code>
<pre>Restores a service from a backup.
Expand Down
4 changes: 2 additions & 2 deletions docs/dyn/metastore_v1alpha.projects.locations.html
Expand Up @@ -121,7 +121,7 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # A resource that represents Google Cloud Platform location.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down Expand Up @@ -153,7 +153,7 @@ <h3>Method Details</h3>

{ # The response message for Locations.ListLocations.
&quot;locations&quot;: [ # A list of locations that matches the specified filter in the request.
{ # A resource that represents Google Cloud Platform location.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down
4 changes: 2 additions & 2 deletions docs/dyn/metastore_v1beta.projects.locations.html
Expand Up @@ -121,7 +121,7 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # A resource that represents Google Cloud Platform location.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down Expand Up @@ -153,7 +153,7 @@ <h3>Method Details</h3>

{ # The response message for Locations.ListLocations.
&quot;locations&quot;: [ # A list of locations that matches the specified filter in the request.
{ # A resource that represents Google Cloud Platform location.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down

0 comments on commit 4318920

Please sign in to comment.