|
|
|
@ -44,10 +44,12 @@ option java_package = "com.google.cloud.metastore.v1alpha"; |
|
|
|
|
// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. |
|
|
|
|
service DataprocMetastoreFederation { |
|
|
|
|
option (google.api.default_host) = "metastore.googleapis.com"; |
|
|
|
|
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; |
|
|
|
|
option (google.api.oauth_scopes) = |
|
|
|
|
"https://www.googleapis.com/auth/cloud-platform"; |
|
|
|
|
|
|
|
|
|
// Lists federations in a project and location. |
|
|
|
|
rpc ListFederations(ListFederationsRequest) returns (ListFederationsResponse) { |
|
|
|
|
rpc ListFederations(ListFederationsRequest) |
|
|
|
|
returns (ListFederationsResponse) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v1alpha/{parent=projects/*/locations/*}/federations" |
|
|
|
|
}; |
|
|
|
@ -63,7 +65,8 @@ service DataprocMetastoreFederation { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Creates a metastore federation in a project and location. |
|
|
|
|
rpc CreateFederation(CreateFederationRequest) returns (google.longrunning.Operation) { |
|
|
|
|
rpc CreateFederation(CreateFederationRequest) |
|
|
|
|
returns (google.longrunning.Operation) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
post: "/v1alpha/{parent=projects/*/locations/*}/federations" |
|
|
|
|
body: "federation" |
|
|
|
@ -76,7 +79,8 @@ service DataprocMetastoreFederation { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Updates the fields of a federation. |
|
|
|
|
rpc UpdateFederation(UpdateFederationRequest) returns (google.longrunning.Operation) { |
|
|
|
|
rpc UpdateFederation(UpdateFederationRequest) |
|
|
|
|
returns (google.longrunning.Operation) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
patch: "/v1alpha/{federation.name=projects/*/locations/*/federations/*}" |
|
|
|
|
body: "federation" |
|
|
|
@ -89,7 +93,8 @@ service DataprocMetastoreFederation { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Deletes a single federation. |
|
|
|
|
rpc DeleteFederation(DeleteFederationRequest) returns (google.longrunning.Operation) { |
|
|
|
|
rpc DeleteFederation(DeleteFederationRequest) |
|
|
|
|
returns (google.longrunning.Operation) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
delete: "/v1alpha/{name=projects/*/locations/*/federations/*}" |
|
|
|
|
}; |
|
|
|
@ -137,16 +142,18 @@ message Federation { |
|
|
|
|
string name = 1 [(google.api.field_behavior) = IMMUTABLE]; |
|
|
|
|
|
|
|
|
|
// Output only. The time when the metastore federation was created. |
|
|
|
|
google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
|
google.protobuf.Timestamp create_time = 2 |
|
|
|
|
[(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
|
|
|
|
|
|
// Output only. The time when the metastore federation was last updated. |
|
|
|
|
google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
|
google.protobuf.Timestamp update_time = 3 |
|
|
|
|
[(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
|
|
|
|
|
|
// User-defined labels for the metastore federation. |
|
|
|
|
map<string, string> labels = 4; |
|
|
|
|
|
|
|
|
|
// Immutable. The Apache Hive metastore version of the federation. All backend metastore |
|
|
|
|
// versions must be compatible with the federation version. |
|
|
|
|
// Immutable. The Apache Hive metastore version of the federation. All backend |
|
|
|
|
// metastore versions must be compatible with the federation version. |
|
|
|
|
string version = 5 [(google.api.field_behavior) = IMMUTABLE]; |
|
|
|
|
|
|
|
|
|
// A map from `BackendMetastore` rank to `BackendMetastore`s from which the |
|
|
|
@ -163,11 +170,12 @@ message Federation { |
|
|
|
|
// Output only. The current state of the federation. |
|
|
|
|
State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
|
|
|
|
|
|
// Output only. Additional information about the current state of the metastore federation, |
|
|
|
|
// if available. |
|
|
|
|
// Output only. Additional information about the current state of the |
|
|
|
|
// metastore federation, if available. |
|
|
|
|
string state_message = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
|
|
|
|
|
|
// Output only. The globally unique resource identifier of the metastore federation. |
|
|
|
|
// Output only. The globally unique resource identifier of the metastore |
|
|
|
|
// federation. |
|
|
|
|
string uid = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -203,8 +211,8 @@ message BackendMetastore { |
|
|
|
|
|
|
|
|
|
// Request message for ListFederations. |
|
|
|
|
message ListFederationsRequest { |
|
|
|
|
// Required. The relative resource name of the location of metastore federations |
|
|
|
|
// to list, in the following form: |
|
|
|
|
// Required. The relative resource name of the location of metastore |
|
|
|
|
// federations to list, in the following form: |
|
|
|
|
// `projects/{project_number}/locations/{location_id}`. |
|
|
|
|
string parent = 1 [ |
|
|
|
|
(google.api.field_behavior) = REQUIRED, |
|
|
|
@ -213,9 +221,10 @@ message ListFederationsRequest { |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
// Optional. The maximum number of federations to return. The response may contain less |
|
|
|
|
// than the maximum number. If unspecified, no more than 500 services are |
|
|
|
|
// returned. The maximum value is 1000; values above 1000 are changed to 1000. |
|
|
|
|
// Optional. The maximum number of federations to return. The response may |
|
|
|
|
// contain less than the maximum number. If unspecified, no more than 500 |
|
|
|
|
// services are returned. The maximum value is 1000; values above 1000 are |
|
|
|
|
// changed to 1000. |
|
|
|
|
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; |
|
|
|
|
|
|
|
|
|
// Optional. A page token, received from a previous ListFederationServices |
|
|
|
@ -252,8 +261,8 @@ message ListFederationsResponse { |
|
|
|
|
|
|
|
|
|
// Request message for GetFederation. |
|
|
|
|
message GetFederationRequest { |
|
|
|
|
// Required. The relative resource name of the metastore federation to retrieve, |
|
|
|
|
// in the following form: |
|
|
|
|
// Required. The relative resource name of the metastore federation to |
|
|
|
|
// retrieve, in the following form: |
|
|
|
|
// |
|
|
|
|
// `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. |
|
|
|
|
string name = 1 [ |
|
|
|
@ -266,8 +275,8 @@ message GetFederationRequest { |
|
|
|
|
|
|
|
|
|
// Request message for CreateFederation. |
|
|
|
|
message CreateFederationRequest { |
|
|
|
|
// Required. The relative resource name of the location in which to create a federation |
|
|
|
|
// service, in the following form: |
|
|
|
|
// Required. The relative resource name of the location in which to create a |
|
|
|
|
// federation service, in the following form: |
|
|
|
|
// |
|
|
|
|
// `projects/{project_number}/locations/{location_id}`. |
|
|
|
|
string parent = 1 [ |
|
|
|
@ -290,10 +299,10 @@ message CreateFederationRequest { |
|
|
|
|
// provided in the request's `federation_id` field. |
|
|
|
|
Federation federation = 3 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// Optional. A request ID. Specify a unique request ID to allow the server to ignore the |
|
|
|
|
// request if it has completed. The server will ignore subsequent requests |
|
|
|
|
// that provide a duplicate request ID for at least 60 minutes after the first |
|
|
|
|
// request. |
|
|
|
|
// Optional. A request ID. Specify a unique request ID to allow the server to |
|
|
|
|
// ignore the request if it has completed. The server will ignore subsequent |
|
|
|
|
// requests that provide a duplicate request ID for at least 60 minutes after |
|
|
|
|
// the first request. |
|
|
|
|
// |
|
|
|
|
// For example, if an initial request times out, followed by another request |
|
|
|
|
// with the same request ID, the server ignores the second request to prevent |
|
|
|
@ -311,7 +320,8 @@ message UpdateFederationRequest { |
|
|
|
|
// metastore federation resource by the update. |
|
|
|
|
// Fields specified in the `update_mask` are relative to the resource (not |
|
|
|
|
// to the full request). A field is overwritten if it is in the mask. |
|
|
|
|
google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
google.protobuf.FieldMask update_mask = 1 |
|
|
|
|
[(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// Required. The metastore federation to update. The server only merges fields |
|
|
|
|
// in the service if they are specified in `update_mask`. |
|
|
|
@ -320,10 +330,10 @@ message UpdateFederationRequest { |
|
|
|
|
// metastore service to be updated. |
|
|
|
|
Federation federation = 2 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// Optional. A request ID. Specify a unique request ID to allow the server to ignore the |
|
|
|
|
// request if it has completed. The server will ignore subsequent requests |
|
|
|
|
// that provide a duplicate request ID for at least 60 minutes after the first |
|
|
|
|
// request. |
|
|
|
|
// Optional. A request ID. Specify a unique request ID to allow the server to |
|
|
|
|
// ignore the request if it has completed. The server will ignore subsequent |
|
|
|
|
// requests that provide a duplicate request ID for at least 60 minutes after |
|
|
|
|
// the first request. |
|
|
|
|
// |
|
|
|
|
// For example, if an initial request times out, followed by another request |
|
|
|
|
// with the same request ID, the server ignores the second request to prevent |
|
|
|
@ -348,10 +358,10 @@ message DeleteFederationRequest { |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
// Optional. A request ID. Specify a unique request ID to allow the server to ignore the |
|
|
|
|
// request if it has completed. The server will ignore subsequent requests |
|
|
|
|
// that provide a duplicate request ID for at least 60 minutes after the first |
|
|
|
|
// request. |
|
|
|
|
// Optional. A request ID. Specify a unique request ID to allow the server to |
|
|
|
|
// ignore the request if it has completed. The server will ignore subsequent |
|
|
|
|
// requests that provide a duplicate request ID for at least 60 minutes after |
|
|
|
|
// the first request. |
|
|
|
|
// |
|
|
|
|
// For example, if an initial request times out, followed by another request |
|
|
|
|
// with the same request ID, the server ignores the second request to prevent |
|
|
|
|