123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401 |
- syntax = "proto3";
- package google.bigtable.admin.v2;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/protobuf/duration.proto";
- import "google/protobuf/timestamp.proto";
- import "google/rpc/status.proto";
- option csharp_namespace = "Google.Cloud.Bigtable.Admin.V2";
- option go_package = "google.golang.org/genproto/googleapis/bigtable/admin/v2;admin";
- option java_multiple_files = true;
- option java_outer_classname = "TableProto";
- option java_package = "com.google.bigtable.admin.v2";
- option php_namespace = "Google\\Cloud\\Bigtable\\Admin\\V2";
- option ruby_package = "Google::Cloud::Bigtable::Admin::V2";
- option (google.api.resource_definition) = {
- type: "cloudkms.googleapis.com/CryptoKeyVersion"
- pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}"
- };
- message RestoreInfo {
-
- RestoreSourceType source_type = 1;
-
- oneof source_info {
-
-
- BackupInfo backup_info = 2;
- }
- }
- message Table {
- option (google.api.resource) = {
- type: "bigtableadmin.googleapis.com/Table"
- pattern: "projects/{project}/instances/{instance}/tables/{table}"
- };
-
- message ClusterState {
-
- enum ReplicationState {
-
- STATE_NOT_KNOWN = 0;
-
-
-
- INITIALIZING = 1;
-
-
- PLANNED_MAINTENANCE = 2;
-
-
- UNPLANNED_MAINTENANCE = 3;
-
-
-
- READY = 4;
-
-
-
- READY_OPTIMIZING = 5;
- }
-
- ReplicationState replication_state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
-
- repeated EncryptionInfo encryption_info = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
-
-
- enum TimestampGranularity {
-
-
- TIMESTAMP_GRANULARITY_UNSPECIFIED = 0;
-
- MILLIS = 1;
- }
-
- enum View {
-
- VIEW_UNSPECIFIED = 0;
-
- NAME_ONLY = 1;
-
- SCHEMA_VIEW = 2;
-
-
- REPLICATION_VIEW = 3;
-
- ENCRYPTION_VIEW = 5;
-
- FULL = 4;
- }
-
-
-
- string name = 1;
-
-
-
-
-
- map<string, ClusterState> cluster_states = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- map<string, ColumnFamily> column_families = 3;
-
-
-
-
- TimestampGranularity granularity = 4 [(google.api.field_behavior) = IMMUTABLE];
-
-
- RestoreInfo restore_info = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
-
-
- bool deletion_protection = 9;
- }
- message ColumnFamily {
-
-
-
-
-
-
- GcRule gc_rule = 1;
- }
- message GcRule {
-
- message Intersection {
-
- repeated GcRule rules = 1;
- }
-
- message Union {
-
- repeated GcRule rules = 1;
- }
-
- oneof rule {
-
- int32 max_num_versions = 1;
-
-
-
- google.protobuf.Duration max_age = 2;
-
- Intersection intersection = 3;
-
- Union union = 4;
- }
- }
- message EncryptionInfo {
-
- enum EncryptionType {
-
- ENCRYPTION_TYPE_UNSPECIFIED = 0;
-
-
-
- GOOGLE_DEFAULT_ENCRYPTION = 1;
-
-
-
-
-
-
-
- CUSTOMER_MANAGED_ENCRYPTION = 2;
- }
-
- EncryptionType encryption_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- google.rpc.Status encryption_status = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- string kms_key_version = 2 [
- (google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.resource_reference) = {
- type: "cloudkms.googleapis.com/CryptoKeyVersion"
- }
- ];
- }
- message Snapshot {
- option (google.api.resource) = {
- type: "bigtableadmin.googleapis.com/Snapshot"
- pattern: "projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}"
- };
-
- enum State {
-
- STATE_NOT_KNOWN = 0;
-
- READY = 1;
-
-
-
- CREATING = 2;
- }
-
-
-
- string name = 1;
-
- Table source_table = 2;
-
-
-
-
- int64 data_size_bytes = 3;
-
- google.protobuf.Timestamp create_time = 4;
-
-
-
- google.protobuf.Timestamp delete_time = 5;
-
- State state = 6;
-
- string description = 7;
- }
- message Backup {
- option (google.api.resource) = {
- type: "bigtableadmin.googleapis.com/Backup"
- pattern: "projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}"
- };
-
- enum State {
-
- STATE_UNSPECIFIED = 0;
-
-
- CREATING = 1;
-
- READY = 2;
- }
-
-
-
-
-
-
-
-
-
-
- string name = 1;
-
-
-
- string source_table = 2 [
- (google.api.field_behavior) = IMMUTABLE,
- (google.api.field_behavior) = REQUIRED
- ];
-
-
-
-
-
- google.protobuf.Timestamp expire_time = 3 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
- google.protobuf.Timestamp start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- google.protobuf.Timestamp end_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- int64 size_bytes = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- EncryptionInfo encryption_info = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message BackupInfo {
-
- string backup = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- google.protobuf.Timestamp start_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- google.protobuf.Timestamp end_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string source_table = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- enum RestoreSourceType {
-
- RESTORE_SOURCE_TYPE_UNSPECIFIED = 0;
-
- BACKUP = 1;
- }
|