|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
// Copyright 2018 Google LLC. |
|
|
|
|
// Copyright 2019 Google LLC. |
|
|
|
|
// |
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
// you may not use this file except in compliance with the License. |
|
|
|
@ -18,6 +18,9 @@ syntax = "proto3"; |
|
|
|
|
package google.bigtable.admin.v2; |
|
|
|
|
|
|
|
|
|
import "google/api/annotations.proto"; |
|
|
|
|
import "google/api/client.proto"; |
|
|
|
|
import "google/api/field_behavior.proto"; |
|
|
|
|
import "google/api/resource.proto"; |
|
|
|
|
import "google/bigtable/admin/v2/instance.proto"; |
|
|
|
|
import "google/iam/v1/iam_policy.proto"; |
|
|
|
|
import "google/iam/v1/policy.proto"; |
|
|
|
@ -37,13 +40,27 @@ option php_namespace = "Google\\Cloud\\Bigtable\\Admin\\V2"; |
|
|
|
|
// Clusters. Provides access to the Instance and Cluster schemas only, not the |
|
|
|
|
// tables' metadata or data stored in those tables. |
|
|
|
|
service BigtableInstanceAdmin { |
|
|
|
|
option (google.api.default_host) = "bigtableadmin.googleapis.com"; |
|
|
|
|
option (google.api.oauth_scopes) = |
|
|
|
|
"https://www.googleapis.com/auth/bigtable.admin," |
|
|
|
|
"https://www.googleapis.com/auth/bigtable.admin.cluster," |
|
|
|
|
"https://www.googleapis.com/auth/bigtable.admin.instance," |
|
|
|
|
"https://www.googleapis.com/auth/cloud-bigtable.admin," |
|
|
|
|
"https://www.googleapis.com/auth/cloud-bigtable.admin.cluster," |
|
|
|
|
"https://www.googleapis.com/auth/cloud-platform," |
|
|
|
|
"https://www.googleapis.com/auth/cloud-platform.read-only"; |
|
|
|
|
|
|
|
|
|
// Create an instance within a project. |
|
|
|
|
rpc CreateInstance(CreateInstanceRequest) |
|
|
|
|
returns (google.longrunning.Operation) { |
|
|
|
|
rpc CreateInstance(CreateInstanceRequest) returns (google.longrunning.Operation) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
post: "/v2/{parent=projects/*}/instances" |
|
|
|
|
body: "*" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = "parent,instance_id,instance,clusters"; |
|
|
|
|
option (google.longrunning.operation_info) = { |
|
|
|
|
response_type: "Instance" |
|
|
|
|
metadata_type: "CreateInstanceMetadata" |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Gets information about an instance. |
|
|
|
@ -51,6 +68,7 @@ service BigtableInstanceAdmin { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v2/{name=projects/*/instances/*}" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = "name"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Lists information about instances in a project. |
|
|
|
@ -58,9 +76,12 @@ service BigtableInstanceAdmin { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v2/{parent=projects/*}/instances" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = "parent"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Updates an instance within a project. |
|
|
|
|
// Updates an instance within a project. This method updates only the display |
|
|
|
|
// name and type for an Instance. To update other Instance properties, such as |
|
|
|
|
// labels, use PartialUpdateInstance. |
|
|
|
|
rpc UpdateInstance(Instance) returns (Instance) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
put: "/v2/{name=projects/*/instances/*}" |
|
|
|
@ -68,13 +89,18 @@ service BigtableInstanceAdmin { |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Partially updates an instance within a project. |
|
|
|
|
rpc PartialUpdateInstance(PartialUpdateInstanceRequest) |
|
|
|
|
returns (google.longrunning.Operation) { |
|
|
|
|
// Partially updates an instance within a project. This method can modify all |
|
|
|
|
// fields of an Instance and is the preferred way to update an Instance. |
|
|
|
|
rpc PartialUpdateInstance(PartialUpdateInstanceRequest) returns (google.longrunning.Operation) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
patch: "/v2/{instance.name=projects/*/instances/*}" |
|
|
|
|
body: "instance" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = "instance,update_mask"; |
|
|
|
|
option (google.longrunning.operation_info) = { |
|
|
|
|
response_type: "Instance" |
|
|
|
|
metadata_type: "PartialUpdateInstanceMetadata" |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Delete an instance from a project. |
|
|
|
@ -82,15 +108,20 @@ service BigtableInstanceAdmin { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
delete: "/v2/{name=projects/*/instances/*}" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = "name"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Creates a cluster within an instance. |
|
|
|
|
rpc CreateCluster(CreateClusterRequest) |
|
|
|
|
returns (google.longrunning.Operation) { |
|
|
|
|
rpc CreateCluster(CreateClusterRequest) returns (google.longrunning.Operation) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
post: "/v2/{parent=projects/*/instances/*}/clusters" |
|
|
|
|
body: "cluster" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = "parent,cluster_id,cluster"; |
|
|
|
|
option (google.longrunning.operation_info) = { |
|
|
|
|
response_type: "Cluster" |
|
|
|
|
metadata_type: "CreateClusterMetadata" |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Gets information about a cluster. |
|
|
|
@ -98,6 +129,7 @@ service BigtableInstanceAdmin { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v2/{name=projects/*/instances/*/clusters/*}" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = "name"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Lists information about clusters in an instance. |
|
|
|
@ -105,6 +137,7 @@ service BigtableInstanceAdmin { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v2/{parent=projects/*/instances/*}/clusters" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = "parent"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Updates a cluster within an instance. |
|
|
|
@ -113,6 +146,10 @@ service BigtableInstanceAdmin { |
|
|
|
|
put: "/v2/{name=projects/*/instances/*/clusters/*}" |
|
|
|
|
body: "*" |
|
|
|
|
}; |
|
|
|
|
option (google.longrunning.operation_info) = { |
|
|
|
|
response_type: "Cluster" |
|
|
|
|
metadata_type: "UpdateClusterMetadata" |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Deletes a cluster from an instance. |
|
|
|
@ -120,6 +157,7 @@ service BigtableInstanceAdmin { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
delete: "/v2/{name=projects/*/instances/*/clusters/*}" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = "name"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Creates an app profile within an instance. |
|
|
|
@ -128,6 +166,7 @@ service BigtableInstanceAdmin { |
|
|
|
|
post: "/v2/{parent=projects/*/instances/*}/appProfiles" |
|
|
|
|
body: "app_profile" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = "parent,app_profile_id,app_profile"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Gets information about an app profile. |
|
|
|
@ -135,98 +174,118 @@ service BigtableInstanceAdmin { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v2/{name=projects/*/instances/*/appProfiles/*}" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = "name"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Lists information about app profiles in an instance. |
|
|
|
|
rpc ListAppProfiles(ListAppProfilesRequest) |
|
|
|
|
returns (ListAppProfilesResponse) { |
|
|
|
|
rpc ListAppProfiles(ListAppProfilesRequest) returns (ListAppProfilesResponse) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v2/{parent=projects/*/instances/*}/appProfiles" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = "parent"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Updates an app profile within an instance. |
|
|
|
|
rpc UpdateAppProfile(UpdateAppProfileRequest) |
|
|
|
|
returns (google.longrunning.Operation) { |
|
|
|
|
rpc UpdateAppProfile(UpdateAppProfileRequest) returns (google.longrunning.Operation) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
patch: "/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}" |
|
|
|
|
body: "app_profile" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = "app_profile,update_mask"; |
|
|
|
|
option (google.longrunning.operation_info) = { |
|
|
|
|
response_type: "AppProfile" |
|
|
|
|
metadata_type: "UpdateAppProfileMetadata" |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Deletes an app profile from an instance. |
|
|
|
|
rpc DeleteAppProfile(DeleteAppProfileRequest) |
|
|
|
|
returns (google.protobuf.Empty) { |
|
|
|
|
rpc DeleteAppProfile(DeleteAppProfileRequest) returns (google.protobuf.Empty) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
delete: "/v2/{name=projects/*/instances/*/appProfiles/*}" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = "name"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Gets the access control policy for an instance resource. Returns an empty |
|
|
|
|
// policy if an instance exists but does not have a policy set. |
|
|
|
|
rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) |
|
|
|
|
returns (google.iam.v1.Policy) { |
|
|
|
|
rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
post: "/v2/{resource=projects/*/instances/*}:getIamPolicy" |
|
|
|
|
body: "*" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = "resource"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Sets the access control policy on an instance resource. Replaces any |
|
|
|
|
// existing policy. |
|
|
|
|
rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) |
|
|
|
|
returns (google.iam.v1.Policy) { |
|
|
|
|
rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
post: "/v2/{resource=projects/*/instances/*}:setIamPolicy" |
|
|
|
|
body: "*" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = "resource,policy"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Returns permissions that the caller has on the specified instance resource. |
|
|
|
|
rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) |
|
|
|
|
returns (google.iam.v1.TestIamPermissionsResponse) { |
|
|
|
|
rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
post: "/v2/{resource=projects/*/instances/*}:testIamPermissions" |
|
|
|
|
body: "*" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = "resource,permissions"; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Request message for BigtableInstanceAdmin.CreateInstance. |
|
|
|
|
message CreateInstanceRequest { |
|
|
|
|
// The unique name of the project in which to create the new instance. |
|
|
|
|
// Values are of the form `projects/<project>`. |
|
|
|
|
string parent = 1; |
|
|
|
|
|
|
|
|
|
// The ID to be used when referring to the new instance within its project, |
|
|
|
|
// Required. The unique name of the project in which to create the new instance. |
|
|
|
|
// Values are of the form `projects/{project}`. |
|
|
|
|
string parent = 1 [ |
|
|
|
|
(google.api.field_behavior) = REQUIRED, |
|
|
|
|
(google.api.resource_reference) = { |
|
|
|
|
type: "cloudresourcemanager.googleapis.com/Project" |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
// Required. The ID to be used when referring to the new instance within its project, |
|
|
|
|
// e.g., just `myinstance` rather than |
|
|
|
|
// `projects/myproject/instances/myinstance`. |
|
|
|
|
string instance_id = 2; |
|
|
|
|
string instance_id = 2 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// The instance to create. |
|
|
|
|
// Required. The instance to create. |
|
|
|
|
// Fields marked `OutputOnly` must be left blank. |
|
|
|
|
Instance instance = 3; |
|
|
|
|
Instance instance = 3 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// The clusters to be created within the instance, mapped by desired |
|
|
|
|
// Required. The clusters to be created within the instance, mapped by desired |
|
|
|
|
// cluster ID, e.g., just `mycluster` rather than |
|
|
|
|
// `projects/myproject/instances/myinstance/clusters/mycluster`. |
|
|
|
|
// Fields marked `OutputOnly` must be left blank. |
|
|
|
|
// Currently, at most two clusters can be specified. |
|
|
|
|
map<string, Cluster> clusters = 4; |
|
|
|
|
// Currently, at most four clusters can be specified. |
|
|
|
|
map<string, Cluster> clusters = 4 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Request message for BigtableInstanceAdmin.GetInstance. |
|
|
|
|
message GetInstanceRequest { |
|
|
|
|
// The unique name of the requested instance. Values are of the form |
|
|
|
|
// `projects/<project>/instances/<instance>`. |
|
|
|
|
string name = 1; |
|
|
|
|
// Required. The unique name of the requested instance. Values are of the form |
|
|
|
|
// `projects/{project}/instances/{instance}`. |
|
|
|
|
string name = 1 [ |
|
|
|
|
(google.api.field_behavior) = REQUIRED, |
|
|
|
|
(google.api.resource_reference) = { |
|
|
|
|
type: "bigtable.googleapis.com/Instance" |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Request message for BigtableInstanceAdmin.ListInstances. |
|
|
|
|
message ListInstancesRequest { |
|
|
|
|
// The unique name of the project for which a list of instances is requested. |
|
|
|
|
// Values are of the form `projects/<project>`. |
|
|
|
|
string parent = 1; |
|
|
|
|
// Required. The unique name of the project for which a list of instances is requested. |
|
|
|
|
// Values are of the form `projects/{project}`. |
|
|
|
|
string parent = 1 [ |
|
|
|
|
(google.api.field_behavior) = REQUIRED, |
|
|
|
|
(google.api.resource_reference) = { |
|
|
|
|
type: "cloudresourcemanager.googleapis.com/Project" |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
// DEPRECATED: This field is unused and ignored. |
|
|
|
|
string page_token = 2; |
|
|
|
@ -251,52 +310,72 @@ message ListInstancesResponse { |
|
|
|
|
|
|
|
|
|
// Request message for BigtableInstanceAdmin.PartialUpdateInstance. |
|
|
|
|
message PartialUpdateInstanceRequest { |
|
|
|
|
// The Instance which will (partially) replace the current value. |
|
|
|
|
Instance instance = 1; |
|
|
|
|
// Required. The Instance which will (partially) replace the current value. |
|
|
|
|
Instance instance = 1 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// The subset of Instance fields which should be replaced. |
|
|
|
|
// Required. The subset of Instance fields which should be replaced. |
|
|
|
|
// Must be explicitly set. |
|
|
|
|
google.protobuf.FieldMask update_mask = 2; |
|
|
|
|
google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Request message for BigtableInstanceAdmin.DeleteInstance. |
|
|
|
|
message DeleteInstanceRequest { |
|
|
|
|
// The unique name of the instance to be deleted. |
|
|
|
|
// Values are of the form `projects/<project>/instances/<instance>`. |
|
|
|
|
string name = 1; |
|
|
|
|
// Required. The unique name of the instance to be deleted. |
|
|
|
|
// Values are of the form `projects/{project}/instances/{instance}`. |
|
|
|
|
string name = 1 [ |
|
|
|
|
(google.api.field_behavior) = REQUIRED, |
|
|
|
|
(google.api.resource_reference) = { |
|
|
|
|
type: "bigtable.googleapis.com/Instance" |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Request message for BigtableInstanceAdmin.CreateCluster. |
|
|
|
|
message CreateClusterRequest { |
|
|
|
|
// The unique name of the instance in which to create the new cluster. |
|
|
|
|
// Required. The unique name of the instance in which to create the new cluster. |
|
|
|
|
// Values are of the form |
|
|
|
|
// `projects/<project>/instances/<instance>`. |
|
|
|
|
string parent = 1; |
|
|
|
|
|
|
|
|
|
// The ID to be used when referring to the new cluster within its instance, |
|
|
|
|
// `projects/{project}/instances/{instance}`. |
|
|
|
|
string parent = 1 [ |
|
|
|
|
(google.api.field_behavior) = REQUIRED, |
|
|
|
|
(google.api.resource_reference) = { |
|
|
|
|
type: "bigtable.googleapis.com/Instance" |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
// Required. The ID to be used when referring to the new cluster within its instance, |
|
|
|
|
// e.g., just `mycluster` rather than |
|
|
|
|
// `projects/myproject/instances/myinstance/clusters/mycluster`. |
|
|
|
|
string cluster_id = 2; |
|
|
|
|
string cluster_id = 2 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// The cluster to be created. |
|
|
|
|
// Required. The cluster to be created. |
|
|
|
|
// Fields marked `OutputOnly` must be left blank. |
|
|
|
|
Cluster cluster = 3; |
|
|
|
|
Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Request message for BigtableInstanceAdmin.GetCluster. |
|
|
|
|
message GetClusterRequest { |
|
|
|
|
// The unique name of the requested cluster. Values are of the form |
|
|
|
|
// `projects/<project>/instances/<instance>/clusters/<cluster>`. |
|
|
|
|
string name = 1; |
|
|
|
|
// Required. The unique name of the requested cluster. Values are of the form |
|
|
|
|
// `projects/{project}/instances/{instance}/clusters/{cluster}`. |
|
|
|
|
string name = 1 [ |
|
|
|
|
(google.api.field_behavior) = REQUIRED, |
|
|
|
|
(google.api.resource_reference) = { |
|
|
|
|
type: "bigtable.googleapis.com/Cluster" |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Request message for BigtableInstanceAdmin.ListClusters. |
|
|
|
|
message ListClustersRequest { |
|
|
|
|
// The unique name of the instance for which a list of clusters is requested. |
|
|
|
|
// Values are of the form `projects/<project>/instances/<instance>`. |
|
|
|
|
// Use `<instance> = '-'` to list Clusters for all Instances in a project, |
|
|
|
|
// Required. The unique name of the instance for which a list of clusters is requested. |
|
|
|
|
// Values are of the form `projects/{project}/instances/{instance}`. |
|
|
|
|
// Use `{instance} = '-'` to list Clusters for all Instances in a project, |
|
|
|
|
// e.g., `projects/myproject/instances/-`. |
|
|
|
|
string parent = 1; |
|
|
|
|
string parent = 1 [ |
|
|
|
|
(google.api.field_behavior) = REQUIRED, |
|
|
|
|
(google.api.resource_reference) = { |
|
|
|
|
type: "bigtable.googleapis.com/Instance" |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
// DEPRECATED: This field is unused and ignored. |
|
|
|
|
string page_token = 2; |
|
|
|
@ -320,9 +399,14 @@ message ListClustersResponse { |
|
|
|
|
|
|
|
|
|
// Request message for BigtableInstanceAdmin.DeleteCluster. |
|
|
|
|
message DeleteClusterRequest { |
|
|
|
|
// The unique name of the cluster to be deleted. Values are of the form |
|
|
|
|
// `projects/<project>/instances/<instance>/clusters/<cluster>`. |
|
|
|
|
string name = 1; |
|
|
|
|
// Required. The unique name of the cluster to be deleted. Values are of the form |
|
|
|
|
// `projects/{project}/instances/{instance}/clusters/{cluster}`. |
|
|
|
|
string name = 1 [ |
|
|
|
|
(google.api.field_behavior) = REQUIRED, |
|
|
|
|
(google.api.resource_reference) = { |
|
|
|
|
type: "bigtable.googleapis.com/Cluster" |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// The metadata for the Operation returned by CreateInstance. |
|
|
|
@ -375,19 +459,24 @@ message UpdateClusterMetadata { |
|
|
|
|
|
|
|
|
|
// Request message for BigtableInstanceAdmin.CreateAppProfile. |
|
|
|
|
message CreateAppProfileRequest { |
|
|
|
|
// The unique name of the instance in which to create the new app profile. |
|
|
|
|
// Required. The unique name of the instance in which to create the new app profile. |
|
|
|
|
// Values are of the form |
|
|
|
|
// `projects/<project>/instances/<instance>`. |
|
|
|
|
string parent = 1; |
|
|
|
|
|
|
|
|
|
// The ID to be used when referring to the new app profile within its |
|
|
|
|
// `projects/{project}/instances/{instance}`. |
|
|
|
|
string parent = 1 [ |
|
|
|
|
(google.api.field_behavior) = REQUIRED, |
|
|
|
|
(google.api.resource_reference) = { |
|
|
|
|
type: "bigtable.googleapis.com/Instance" |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
// Required. The ID to be used when referring to the new app profile within its |
|
|
|
|
// instance, e.g., just `myprofile` rather than |
|
|
|
|
// `projects/myproject/instances/myinstance/appProfiles/myprofile`. |
|
|
|
|
string app_profile_id = 2; |
|
|
|
|
string app_profile_id = 2 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// The app profile to be created. |
|
|
|
|
// Required. The app profile to be created. |
|
|
|
|
// Fields marked `OutputOnly` will be ignored. |
|
|
|
|
AppProfile app_profile = 3; |
|
|
|
|
AppProfile app_profile = 3 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// If true, ignore safety checks when creating the app profile. |
|
|
|
|
bool ignore_warnings = 4; |
|
|
|
@ -395,22 +484,39 @@ message CreateAppProfileRequest { |
|
|
|
|
|
|
|
|
|
// Request message for BigtableInstanceAdmin.GetAppProfile. |
|
|
|
|
message GetAppProfileRequest { |
|
|
|
|
// The unique name of the requested app profile. Values are of the form |
|
|
|
|
// `projects/<project>/instances/<instance>/appProfiles/<app_profile>`. |
|
|
|
|
string name = 1; |
|
|
|
|
// Required. The unique name of the requested app profile. Values are of the form |
|
|
|
|
// `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. |
|
|
|
|
string name = 1 [ |
|
|
|
|
(google.api.field_behavior) = REQUIRED, |
|
|
|
|
(google.api.resource_reference) = { |
|
|
|
|
type: "bigtable.googleapis.com/AppProfile" |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Request message for BigtableInstanceAdmin.ListAppProfiles. |
|
|
|
|
message ListAppProfilesRequest { |
|
|
|
|
// The unique name of the instance for which a list of app profiles is |
|
|
|
|
// Required. The unique name of the instance for which a list of app profiles is |
|
|
|
|
// requested. Values are of the form |
|
|
|
|
// `projects/<project>/instances/<instance>`. |
|
|
|
|
// Use `<instance> = '-'` to list AppProfiles for all Instances in a project, |
|
|
|
|
// `projects/{project}/instances/{instance}`. |
|
|
|
|
// Use `{instance} = '-'` to list AppProfiles for all Instances in a project, |
|
|
|
|
// e.g., `projects/myproject/instances/-`. |
|
|
|
|
string parent = 1; |
|
|
|
|
string parent = 1 [ |
|
|
|
|
(google.api.field_behavior) = REQUIRED, |
|
|
|
|
(google.api.resource_reference) = { |
|
|
|
|
type: "bigtable.googleapis.com/Instance" |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
// Maximum number of results per page. |
|
|
|
|
// CURRENTLY UNIMPLEMENTED AND IGNORED. |
|
|
|
|
// |
|
|
|
|
// A page_size of zero lets the server choose the number of items to return. |
|
|
|
|
// A page_size which is strictly positive will return at most that many items. |
|
|
|
|
// A negative page_size will cause an error. |
|
|
|
|
// |
|
|
|
|
// Following the first request, subsequent paginated calls are not required |
|
|
|
|
// to pass a page_size. If a page_size is set in subsequent calls, it must |
|
|
|
|
// match the page_size given in the first request. |
|
|
|
|
int32 page_size = 3; |
|
|
|
|
|
|
|
|
|
// The value of `next_page_token` returned by a previous call. |
|
|
|
@ -436,12 +542,12 @@ message ListAppProfilesResponse { |
|
|
|
|
|
|
|
|
|
// Request message for BigtableInstanceAdmin.UpdateAppProfile. |
|
|
|
|
message UpdateAppProfileRequest { |
|
|
|
|
// The app profile which will (partially) replace the current value. |
|
|
|
|
AppProfile app_profile = 1; |
|
|
|
|
// Required. The app profile which will (partially) replace the current value. |
|
|
|
|
AppProfile app_profile = 1 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// The subset of app profile fields which should be replaced. |
|
|
|
|
// Required. The subset of app profile fields which should be replaced. |
|
|
|
|
// If unset, all fields will be replaced. |
|
|
|
|
google.protobuf.FieldMask update_mask = 2; |
|
|
|
|
google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// If true, ignore safety checks when updating the app profile. |
|
|
|
|
bool ignore_warnings = 3; |
|
|
|
@ -449,9 +555,14 @@ message UpdateAppProfileRequest { |
|
|
|
|
|
|
|
|
|
// Request message for BigtableInstanceAdmin.DeleteAppProfile. |
|
|
|
|
message DeleteAppProfileRequest { |
|
|
|
|
// The unique name of the app profile to be deleted. Values are of the form |
|
|
|
|
// `projects/<project>/instances/<instance>/appProfiles/<app_profile>`. |
|
|
|
|
string name = 1; |
|
|
|
|
// Required. The unique name of the app profile to be deleted. Values are of the form |
|
|
|
|
// `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. |
|
|
|
|
string name = 1 [ |
|
|
|
|
(google.api.field_behavior) = REQUIRED, |
|
|
|
|
(google.api.resource_reference) = { |
|
|
|
|
type: "bigtable.googleapis.com/AppProfile" |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
// If true, ignore safety checks when deleting the app profile. |
|
|
|
|
bool ignore_warnings = 2; |
|
|
|
|