google-cloud-bigtable-admin-v2 0.14.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +3 -3
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +27 -129
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +31 -156
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +2 -0
- data/lib/google/bigtable/admin/v2/common_pb.rb +25 -11
- data/lib/google/bigtable/admin/v2/instance_pb.rb +25 -81
- data/lib/google/bigtable/admin/v2/table_pb.rb +28 -104
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb +34 -38
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb +14 -16
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb +1 -1
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb +148 -40
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb +14 -16
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb +1 -1
- data/lib/google/cloud/bigtable/admin/v2/version.rb +1 -1
- data/lib/google/cloud/bigtable/admin/v2.rb +2 -2
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb +41 -0
- data/proto_docs/google/bigtable/admin/v2/table.rb +26 -0
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +10 -8
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/bigtable/admin/v2/instance.proto
|
3
4
|
|
@@ -8,89 +9,32 @@ require 'google/api/resource_pb'
|
|
8
9
|
require 'google/bigtable/admin/v2/common_pb'
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
optional :cpu_utilization_percent, :int32, 2
|
34
|
-
optional :storage_utilization_gib_per_node, :int32, 3
|
35
|
-
end
|
36
|
-
add_message "google.bigtable.admin.v2.AutoscalingLimits" do
|
37
|
-
optional :min_serve_nodes, :int32, 1
|
38
|
-
optional :max_serve_nodes, :int32, 2
|
39
|
-
end
|
40
|
-
add_message "google.bigtable.admin.v2.Cluster" do
|
41
|
-
optional :name, :string, 1
|
42
|
-
optional :location, :string, 2
|
43
|
-
optional :state, :enum, 3, "google.bigtable.admin.v2.Cluster.State"
|
44
|
-
optional :serve_nodes, :int32, 4
|
45
|
-
optional :default_storage_type, :enum, 5, "google.bigtable.admin.v2.StorageType"
|
46
|
-
optional :encryption_config, :message, 6, "google.bigtable.admin.v2.Cluster.EncryptionConfig"
|
47
|
-
oneof :config do
|
48
|
-
optional :cluster_config, :message, 7, "google.bigtable.admin.v2.Cluster.ClusterConfig"
|
49
|
-
end
|
50
|
-
end
|
51
|
-
add_message "google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig" do
|
52
|
-
optional :autoscaling_limits, :message, 1, "google.bigtable.admin.v2.AutoscalingLimits"
|
53
|
-
optional :autoscaling_targets, :message, 2, "google.bigtable.admin.v2.AutoscalingTargets"
|
54
|
-
end
|
55
|
-
add_message "google.bigtable.admin.v2.Cluster.ClusterConfig" do
|
56
|
-
optional :cluster_autoscaling_config, :message, 1, "google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig"
|
57
|
-
end
|
58
|
-
add_message "google.bigtable.admin.v2.Cluster.EncryptionConfig" do
|
59
|
-
optional :kms_key_name, :string, 1
|
60
|
-
end
|
61
|
-
add_enum "google.bigtable.admin.v2.Cluster.State" do
|
62
|
-
value :STATE_NOT_KNOWN, 0
|
63
|
-
value :READY, 1
|
64
|
-
value :CREATING, 2
|
65
|
-
value :RESIZING, 3
|
66
|
-
value :DISABLED, 4
|
67
|
-
end
|
68
|
-
add_message "google.bigtable.admin.v2.AppProfile" do
|
69
|
-
optional :name, :string, 1
|
70
|
-
optional :etag, :string, 2
|
71
|
-
optional :description, :string, 3
|
72
|
-
oneof :routing_policy do
|
73
|
-
optional :multi_cluster_routing_use_any, :message, 5, "google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny"
|
74
|
-
optional :single_cluster_routing, :message, 6, "google.bigtable.admin.v2.AppProfile.SingleClusterRouting"
|
75
|
-
end
|
76
|
-
end
|
77
|
-
add_message "google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny" do
|
78
|
-
repeated :cluster_ids, :string, 1
|
79
|
-
end
|
80
|
-
add_message "google.bigtable.admin.v2.AppProfile.SingleClusterRouting" do
|
81
|
-
optional :cluster_id, :string, 1
|
82
|
-
optional :allow_transactional_writes, :bool, 2
|
83
|
-
end
|
84
|
-
add_message "google.bigtable.admin.v2.HotTablet" do
|
85
|
-
optional :name, :string, 1
|
86
|
-
optional :table_name, :string, 2
|
87
|
-
optional :start_time, :message, 3, "google.protobuf.Timestamp"
|
88
|
-
optional :end_time, :message, 4, "google.protobuf.Timestamp"
|
89
|
-
optional :start_key, :string, 5
|
90
|
-
optional :end_key, :string, 6
|
91
|
-
optional :node_cpu_usage_percent, :float, 7
|
12
|
+
|
13
|
+
descriptor_data = "\n\'google/bigtable/admin/v2/instance.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/bigtable/admin/v2/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc6\x04\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x05state\x18\x03 \x01(\x0e\x32(.google.bigtable.admin.v2.Instance.State\x12\x35\n\x04type\x18\x04 \x01(\x0e\x32\'.google.bigtable.admin.v2.Instance.Type\x12>\n\x06labels\x18\x05 \x03(\x0b\x32..google.bigtable.admin.v2.Instance.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\rsatisfies_pzs\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\"=\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x02:S\xea\x41P\n%bigtableadmin.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}B\x10\n\x0e_satisfies_pzs\"_\n\x12\x41utoscalingTargets\x12\x1f\n\x17\x63pu_utilization_percent\x18\x02 \x01(\x05\x12(\n storage_utilization_gib_per_node\x18\x03 \x01(\x05\"O\n\x11\x41utoscalingLimits\x12\x1c\n\x0fmin_serve_nodes\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1c\n\x0fmax_serve_nodes\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\xd1\x07\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\x08location\x18\x02 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!locations.googleapis.com/Location\x12;\n\x05state\x18\x03 \x01(\x0e\x32\'.google.bigtable.admin.v2.Cluster.StateB\x03\xe0\x41\x03\x12\x13\n\x0bserve_nodes\x18\x04 \x01(\x05\x12I\n\x0e\x63luster_config\x18\x07 \x01(\x0b\x32/.google.bigtable.admin.v2.Cluster.ClusterConfigH\x00\x12H\n\x14\x64\x65\x66\x61ult_storage_type\x18\x05 \x01(\x0e\x32%.google.bigtable.admin.v2.StorageTypeB\x03\xe0\x41\x05\x12R\n\x11\x65ncryption_config\x18\x06 \x01(\x0b\x32\x32.google.bigtable.admin.v2.Cluster.EncryptionConfigB\x03\xe0\x41\x05\x1a\xb8\x01\n\x18\x43lusterAutoscalingConfig\x12L\n\x12\x61utoscaling_limits\x18\x01 \x01(\x0b\x32+.google.bigtable.admin.v2.AutoscalingLimitsB\x03\xe0\x41\x02\x12N\n\x13\x61utoscaling_targets\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.AutoscalingTargetsB\x03\xe0\x41\x02\x1ao\n\rClusterConfig\x12^\n\x1a\x63luster_autoscaling_config\x18\x01 \x01(\x0b\x32:.google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig\x1aP\n\x10\x45ncryptionConfig\x12<\n\x0ckms_key_name\x18\x01 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"Q\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08RESIZING\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x04:e\xea\x41\x62\n$bigtableadmin.googleapis.com/Cluster\x12:projects/{project}/instances/{instance}/clusters/{cluster}B\x08\n\x06\x63onfig\"\x88\x04\n\nAppProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12g\n\x1dmulti_cluster_routing_use_any\x18\x05 \x01(\x0b\x32>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\x00\x12[\n\x16single_cluster_routing\x18\x06 \x01(\x0b\x32\x39.google.bigtable.admin.v2.AppProfile.SingleClusterRoutingH\x00\x1a\x30\n\x19MultiClusterRoutingUseAny\x12\x13\n\x0b\x63luster_ids\x18\x01 \x03(\t\x1aN\n\x14SingleClusterRouting\x12\x12\n\ncluster_id\x18\x01 \x01(\t\x12\"\n\x1a\x61llow_transactional_writes\x18\x02 \x01(\x08:o\xea\x41l\n\'bigtableadmin.googleapis.com/AppProfile\x12\x41projects/{project}/instances/{instance}/appProfiles/{app_profile}B\x10\n\x0erouting_policy\"\x88\x03\n\tHotTablet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12;\n\ntable_name\x18\x02 \x01(\tB\'\xfa\x41$\n\"bigtableadmin.googleapis.com/Table\x12\x33\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\tstart_key\x18\x05 \x01(\t\x12\x0f\n\x07\x65nd_key\x18\x06 \x01(\t\x12#\n\x16node_cpu_usage_percent\x18\x07 \x01(\x02\x42\x03\xe0\x41\x03:\x7f\xea\x41|\n&bigtableadmin.googleapis.com/HotTablet\x12Rprojects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}B\xd0\x02\n\x1c\x63om.google.bigtable.admin.v2B\rInstanceProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError => e
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
29
|
+
]
|
30
|
+
imports.each do |type_name, expected_filename|
|
31
|
+
import_file = pool.lookup(type_name).file_descriptor
|
32
|
+
if import_file.name != expected_filename
|
33
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
92
34
|
end
|
93
35
|
end
|
36
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
37
|
+
warn "This will become an error in the next major version."
|
94
38
|
end
|
95
39
|
|
96
40
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/bigtable/admin/v2/table.proto
|
3
4
|
|
@@ -9,112 +10,34 @@ require 'google/protobuf/duration_pb'
|
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
11
|
require 'google/rpc/status_pb'
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
value :READY, 4
|
37
|
-
value :READY_OPTIMIZING, 5
|
38
|
-
end
|
39
|
-
add_enum "google.bigtable.admin.v2.Table.TimestampGranularity" do
|
40
|
-
value :TIMESTAMP_GRANULARITY_UNSPECIFIED, 0
|
41
|
-
value :MILLIS, 1
|
42
|
-
end
|
43
|
-
add_enum "google.bigtable.admin.v2.Table.View" do
|
44
|
-
value :VIEW_UNSPECIFIED, 0
|
45
|
-
value :NAME_ONLY, 1
|
46
|
-
value :SCHEMA_VIEW, 2
|
47
|
-
value :REPLICATION_VIEW, 3
|
48
|
-
value :ENCRYPTION_VIEW, 5
|
49
|
-
value :FULL, 4
|
50
|
-
end
|
51
|
-
add_message "google.bigtable.admin.v2.ColumnFamily" do
|
52
|
-
optional :gc_rule, :message, 1, "google.bigtable.admin.v2.GcRule"
|
53
|
-
end
|
54
|
-
add_message "google.bigtable.admin.v2.GcRule" do
|
55
|
-
oneof :rule do
|
56
|
-
optional :max_num_versions, :int32, 1
|
57
|
-
optional :max_age, :message, 2, "google.protobuf.Duration"
|
58
|
-
optional :intersection, :message, 3, "google.bigtable.admin.v2.GcRule.Intersection"
|
59
|
-
optional :union, :message, 4, "google.bigtable.admin.v2.GcRule.Union"
|
60
|
-
end
|
61
|
-
end
|
62
|
-
add_message "google.bigtable.admin.v2.GcRule.Intersection" do
|
63
|
-
repeated :rules, :message, 1, "google.bigtable.admin.v2.GcRule"
|
64
|
-
end
|
65
|
-
add_message "google.bigtable.admin.v2.GcRule.Union" do
|
66
|
-
repeated :rules, :message, 1, "google.bigtable.admin.v2.GcRule"
|
67
|
-
end
|
68
|
-
add_message "google.bigtable.admin.v2.EncryptionInfo" do
|
69
|
-
optional :encryption_type, :enum, 3, "google.bigtable.admin.v2.EncryptionInfo.EncryptionType"
|
70
|
-
optional :encryption_status, :message, 4, "google.rpc.Status"
|
71
|
-
optional :kms_key_version, :string, 2
|
72
|
-
end
|
73
|
-
add_enum "google.bigtable.admin.v2.EncryptionInfo.EncryptionType" do
|
74
|
-
value :ENCRYPTION_TYPE_UNSPECIFIED, 0
|
75
|
-
value :GOOGLE_DEFAULT_ENCRYPTION, 1
|
76
|
-
value :CUSTOMER_MANAGED_ENCRYPTION, 2
|
77
|
-
end
|
78
|
-
add_message "google.bigtable.admin.v2.Snapshot" do
|
79
|
-
optional :name, :string, 1
|
80
|
-
optional :source_table, :message, 2, "google.bigtable.admin.v2.Table"
|
81
|
-
optional :data_size_bytes, :int64, 3
|
82
|
-
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
83
|
-
optional :delete_time, :message, 5, "google.protobuf.Timestamp"
|
84
|
-
optional :state, :enum, 6, "google.bigtable.admin.v2.Snapshot.State"
|
85
|
-
optional :description, :string, 7
|
86
|
-
end
|
87
|
-
add_enum "google.bigtable.admin.v2.Snapshot.State" do
|
88
|
-
value :STATE_NOT_KNOWN, 0
|
89
|
-
value :READY, 1
|
90
|
-
value :CREATING, 2
|
91
|
-
end
|
92
|
-
add_message "google.bigtable.admin.v2.Backup" do
|
93
|
-
optional :name, :string, 1
|
94
|
-
optional :source_table, :string, 2
|
95
|
-
optional :expire_time, :message, 3, "google.protobuf.Timestamp"
|
96
|
-
optional :start_time, :message, 4, "google.protobuf.Timestamp"
|
97
|
-
optional :end_time, :message, 5, "google.protobuf.Timestamp"
|
98
|
-
optional :size_bytes, :int64, 6
|
99
|
-
optional :state, :enum, 7, "google.bigtable.admin.v2.Backup.State"
|
100
|
-
optional :encryption_info, :message, 9, "google.bigtable.admin.v2.EncryptionInfo"
|
101
|
-
end
|
102
|
-
add_enum "google.bigtable.admin.v2.Backup.State" do
|
103
|
-
value :STATE_UNSPECIFIED, 0
|
104
|
-
value :CREATING, 1
|
105
|
-
value :READY, 2
|
106
|
-
end
|
107
|
-
add_message "google.bigtable.admin.v2.BackupInfo" do
|
108
|
-
optional :backup, :string, 1
|
109
|
-
optional :start_time, :message, 2, "google.protobuf.Timestamp"
|
110
|
-
optional :end_time, :message, 3, "google.protobuf.Timestamp"
|
111
|
-
optional :source_table, :string, 4
|
112
|
-
end
|
113
|
-
add_enum "google.bigtable.admin.v2.RestoreSourceType" do
|
114
|
-
value :RESTORE_SOURCE_TYPE_UNSPECIFIED, 0
|
115
|
-
value :BACKUP, 1
|
13
|
+
|
14
|
+
descriptor_data = "\n$google/bigtable/admin/v2/table.proto\x12\x18google.bigtable.admin.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x9b\x01\n\x0bRestoreInfo\x12@\n\x0bsource_type\x18\x01 \x01(\x0e\x32+.google.bigtable.admin.v2.RestoreSourceType\x12;\n\x0b\x62\x61\x63kup_info\x18\x02 \x01(\x0b\x32$.google.bigtable.admin.v2.BackupInfoH\x00\x42\r\n\x0bsource_info\"I\n\x12\x43hangeStreamConfig\x12\x33\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xda\t\n\x05Table\x12\x0c\n\x04name\x18\x01 \x01(\t\x12O\n\x0e\x63luster_states\x18\x02 \x03(\x0b\x32\x32.google.bigtable.admin.v2.Table.ClusterStatesEntryB\x03\xe0\x41\x03\x12L\n\x0f\x63olumn_families\x18\x03 \x03(\x0b\x32\x33.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12N\n\x0bgranularity\x18\x04 \x01(\x0e\x32\x34.google.bigtable.admin.v2.Table.TimestampGranularityB\x03\xe0\x41\x05\x12@\n\x0crestore_info\x18\x06 \x01(\x0b\x32%.google.bigtable.admin.v2.RestoreInfoB\x03\xe0\x41\x03\x12J\n\x14\x63hange_stream_config\x18\x08 \x01(\x0b\x32,.google.bigtable.admin.v2.ChangeStreamConfig\x12\x1b\n\x13\x64\x65letion_protection\x18\t \x01(\x08\x1a\xc6\x02\n\x0c\x43lusterState\x12]\n\x11replication_state\x18\x01 \x01(\x0e\x32=.google.bigtable.admin.v2.Table.ClusterState.ReplicationStateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\x02 \x03(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\"\x8e\x01\n\x10ReplicationState\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x17\n\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\x05READY\x10\x04\x12\x14\n\x10READY_OPTIMIZING\x10\x05\x1a\x62\n\x12\x43lusterStatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.bigtable.admin.v2.Table.ClusterState:\x02\x38\x01\x1a]\n\x13\x43olumnFamiliesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.bigtable.admin.v2.ColumnFamily:\x02\x38\x01\"I\n\x14TimestampGranularity\x12%\n!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\n\n\x06MILLIS\x10\x01\"q\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\r\n\tNAME_ONLY\x10\x01\x12\x0f\n\x0bSCHEMA_VIEW\x10\x02\x12\x14\n\x10REPLICATION_VIEW\x10\x03\x12\x13\n\x0f\x45NCRYPTION_VIEW\x10\x05\x12\x08\n\x04\x46ULL\x10\x04:_\xea\x41\\\n\"bigtableadmin.googleapis.com/Table\x12\x36projects/{project}/instances/{instance}/tables/{table}\"A\n\x0c\x43olumnFamily\x12\x31\n\x07gc_rule\x18\x01 \x01(\x0b\x32 .google.bigtable.admin.v2.GcRule\"\xd5\x02\n\x06GcRule\x12\x1a\n\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\n\x07max_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x45\n\x0cintersection\x18\x03 \x01(\x0b\x32-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x12\x37\n\x05union\x18\x04 \x01(\x0b\x32&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1a?\n\x0cIntersection\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRule\x1a\x38\n\x05Union\x12/\n\x05rules\x18\x01 \x03(\x0b\x32 .google.bigtable.admin.v2.GcRuleB\x06\n\x04rule\"\xd9\x02\n\x0e\x45ncryptionInfo\x12U\n\x0f\x65ncryption_type\x18\x03 \x01(\x0e\x32\x37.google.bigtable.admin.v2.EncryptionInfo.EncryptionTypeB\x03\xe0\x41\x03\x12\x32\n\x11\x65ncryption_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12I\n\x0fkms_key_version\x18\x02 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"q\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02\"\xcc\x03\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x35\n\x0csource_table\x18\x02 \x01(\x0b\x32\x1f.google.bigtable.admin.v2.Table\x12\x17\n\x0f\x64\x61ta_size_bytes\x18\x03 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x05state\x18\x06 \x01(\x0e\x32(.google.bigtable.admin.v2.Snapshot.State\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02:{\xea\x41x\n%bigtableadmin.googleapis.com/Snapshot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}\"\x9f\x04\n\x06\x42\x61\x63kup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1c\n\x0csource_table\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\x12\x34\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x33\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12:\n\x05state\x18\x07 \x01(\x0e\x32&.google.bigtable.admin.v2.Backup.StateB\x03\xe0\x41\x03\x12\x46\n\x0f\x65ncryption_info\x18\t \x01(\x0b\x32(.google.bigtable.admin.v2.EncryptionInfoB\x03\xe0\x41\x03\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02:u\xea\x41r\n#bigtableadmin.googleapis.com/Backup\x12Kprojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}\"\xa4\x01\n\nBackupInfo\x12\x13\n\x06\x62\x61\x63kup\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0csource_table\x18\x04 \x01(\tB\x03\xe0\x41\x03*D\n\x11RestoreSourceType\x12#\n\x1fRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42\x41\x43KUP\x10\x01\x42\xfc\x02\n\x1c\x63om.google.bigtable.admin.v2B\nTableProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError => e
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
30
|
+
["google.rpc.Status", "google/rpc/status.proto"],
|
31
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
32
|
+
]
|
33
|
+
imports.each do |type_name, expected_filename|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
35
|
+
if import_file.name != expected_filename
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
116
37
|
end
|
117
38
|
end
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
40
|
+
warn "This will become an error in the next major version."
|
118
41
|
end
|
119
42
|
|
120
43
|
module Google
|
@@ -123,6 +46,7 @@ module Google
|
|
123
46
|
module Admin
|
124
47
|
module V2
|
125
48
|
RestoreInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreInfo").msgclass
|
49
|
+
ChangeStreamConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ChangeStreamConfig").msgclass
|
126
50
|
Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table").msgclass
|
127
51
|
Table::ClusterState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState").msgclass
|
128
52
|
Table::ClusterState::ReplicationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState.ReplicationState").enummodule
|
@@ -300,14 +300,14 @@ module Google
|
|
300
300
|
# # Call the create_instance method.
|
301
301
|
# result = client.create_instance request
|
302
302
|
#
|
303
|
-
# # The returned object is of type Gapic::Operation. You can use
|
304
|
-
# #
|
305
|
-
# #
|
303
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
304
|
+
# # check the status of an operation, cancel it, or wait for results.
|
305
|
+
# # Here is how to wait for a response.
|
306
306
|
# result.wait_until_done! timeout: 60
|
307
307
|
# if result.response?
|
308
308
|
# p result.response
|
309
309
|
# else
|
310
|
-
# puts "
|
310
|
+
# puts "No response received."
|
311
311
|
# end
|
312
312
|
#
|
313
313
|
def create_instance request, options = nil
|
@@ -680,14 +680,14 @@ module Google
|
|
680
680
|
# # Call the partial_update_instance method.
|
681
681
|
# result = client.partial_update_instance request
|
682
682
|
#
|
683
|
-
# # The returned object is of type Gapic::Operation. You can use
|
684
|
-
# #
|
685
|
-
# #
|
683
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
684
|
+
# # check the status of an operation, cancel it, or wait for results.
|
685
|
+
# # Here is how to wait for a response.
|
686
686
|
# result.wait_until_done! timeout: 60
|
687
687
|
# if result.response?
|
688
688
|
# p result.response
|
689
689
|
# else
|
690
|
-
# puts "
|
690
|
+
# puts "No response received."
|
691
691
|
# end
|
692
692
|
#
|
693
693
|
def partial_update_instance request, options = nil
|
@@ -874,14 +874,14 @@ module Google
|
|
874
874
|
# # Call the create_cluster method.
|
875
875
|
# result = client.create_cluster request
|
876
876
|
#
|
877
|
-
# # The returned object is of type Gapic::Operation. You can use
|
878
|
-
# #
|
879
|
-
# #
|
877
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
878
|
+
# # check the status of an operation, cancel it, or wait for results.
|
879
|
+
# # Here is how to wait for a response.
|
880
880
|
# result.wait_until_done! timeout: 60
|
881
881
|
# if result.response?
|
882
882
|
# p result.response
|
883
883
|
# else
|
884
|
-
# puts "
|
884
|
+
# puts "No response received."
|
885
885
|
# end
|
886
886
|
#
|
887
887
|
def create_cluster request, options = nil
|
@@ -1163,14 +1163,14 @@ module Google
|
|
1163
1163
|
# # Call the update_cluster method.
|
1164
1164
|
# result = client.update_cluster request
|
1165
1165
|
#
|
1166
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1167
|
-
# #
|
1168
|
-
# #
|
1166
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1167
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1168
|
+
# # Here is how to wait for a response.
|
1169
1169
|
# result.wait_until_done! timeout: 60
|
1170
1170
|
# if result.response?
|
1171
1171
|
# p result.response
|
1172
1172
|
# else
|
1173
|
-
# puts "
|
1173
|
+
# puts "No response received."
|
1174
1174
|
# end
|
1175
1175
|
#
|
1176
1176
|
def update_cluster request, options = nil
|
@@ -1270,14 +1270,14 @@ module Google
|
|
1270
1270
|
# # Call the partial_update_cluster method.
|
1271
1271
|
# result = client.partial_update_cluster request
|
1272
1272
|
#
|
1273
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1274
|
-
# #
|
1275
|
-
# #
|
1273
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1274
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1275
|
+
# # Here is how to wait for a response.
|
1276
1276
|
# result.wait_until_done! timeout: 60
|
1277
1277
|
# if result.response?
|
1278
1278
|
# p result.response
|
1279
1279
|
# else
|
1280
|
-
# puts "
|
1280
|
+
# puts "No response received."
|
1281
1281
|
# end
|
1282
1282
|
#
|
1283
1283
|
def partial_update_cluster request, options = nil
|
@@ -1647,13 +1647,11 @@ module Google
|
|
1647
1647
|
# # Call the list_app_profiles method.
|
1648
1648
|
# result = client.list_app_profiles request
|
1649
1649
|
#
|
1650
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1651
|
-
# #
|
1652
|
-
#
|
1653
|
-
# # methods are also available for managing paging directly.
|
1654
|
-
# result.each do |response|
|
1650
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1651
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1652
|
+
# result.each do |item|
|
1655
1653
|
# # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile.
|
1656
|
-
# p
|
1654
|
+
# p item
|
1657
1655
|
# end
|
1658
1656
|
#
|
1659
1657
|
def list_app_profiles request, options = nil
|
@@ -1744,14 +1742,14 @@ module Google
|
|
1744
1742
|
# # Call the update_app_profile method.
|
1745
1743
|
# result = client.update_app_profile request
|
1746
1744
|
#
|
1747
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1748
|
-
# #
|
1749
|
-
# #
|
1745
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1746
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1747
|
+
# # Here is how to wait for a response.
|
1750
1748
|
# result.wait_until_done! timeout: 60
|
1751
1749
|
# if result.response?
|
1752
1750
|
# p result.response
|
1753
1751
|
# else
|
1754
|
-
# puts "
|
1752
|
+
# puts "No response received."
|
1755
1753
|
# end
|
1756
1754
|
#
|
1757
1755
|
def update_app_profile request, options = nil
|
@@ -2228,13 +2226,11 @@ module Google
|
|
2228
2226
|
# # Call the list_hot_tablets method.
|
2229
2227
|
# result = client.list_hot_tablets request
|
2230
2228
|
#
|
2231
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2232
|
-
# #
|
2233
|
-
#
|
2234
|
-
# # methods are also available for managing paging directly.
|
2235
|
-
# result.each do |response|
|
2229
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2230
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2231
|
+
# result.each do |item|
|
2236
2232
|
# # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::HotTablet.
|
2237
|
-
# p
|
2233
|
+
# p item
|
2238
2234
|
# end
|
2239
2235
|
#
|
2240
2236
|
def list_hot_tablets request, options = nil
|
@@ -2317,9 +2313,9 @@ module Google
|
|
2317
2313
|
# * (`String`) The path to a service account key file in JSON format
|
2318
2314
|
# * (`Hash`) A service account key as a Hash
|
2319
2315
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
2320
|
-
# (see the [googleauth docs](https://
|
2316
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
2321
2317
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
2322
|
-
# (see the [signet docs](https://
|
2318
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
2323
2319
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
2324
2320
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
2325
2321
|
# * (`nil`) indicating no credentials
|
@@ -159,13 +159,11 @@ module Google
|
|
159
159
|
# # Call the list_operations method.
|
160
160
|
# result = client.list_operations request
|
161
161
|
#
|
162
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
163
|
-
# #
|
164
|
-
#
|
165
|
-
# # methods are also available for managing paging directly.
|
166
|
-
# result.each do |response|
|
162
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
163
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
164
|
+
# result.each do |item|
|
167
165
|
# # Each element is of type ::Google::Longrunning::Operation.
|
168
|
-
# p
|
166
|
+
# p item
|
169
167
|
# end
|
170
168
|
#
|
171
169
|
def list_operations request, options = nil
|
@@ -254,14 +252,14 @@ module Google
|
|
254
252
|
# # Call the get_operation method.
|
255
253
|
# result = client.get_operation request
|
256
254
|
#
|
257
|
-
# # The returned object is of type Gapic::Operation. You can use
|
258
|
-
# #
|
259
|
-
# #
|
255
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
256
|
+
# # check the status of an operation, cancel it, or wait for results.
|
257
|
+
# # Here is how to wait for a response.
|
260
258
|
# result.wait_until_done! timeout: 60
|
261
259
|
# if result.response?
|
262
260
|
# p result.response
|
263
261
|
# else
|
264
|
-
# puts "
|
262
|
+
# puts "No response received."
|
265
263
|
# end
|
266
264
|
#
|
267
265
|
def get_operation request, options = nil
|
@@ -541,14 +539,14 @@ module Google
|
|
541
539
|
# # Call the wait_operation method.
|
542
540
|
# result = client.wait_operation request
|
543
541
|
#
|
544
|
-
# # The returned object is of type Gapic::Operation. You can use
|
545
|
-
# #
|
546
|
-
# #
|
542
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
543
|
+
# # check the status of an operation, cancel it, or wait for results.
|
544
|
+
# # Here is how to wait for a response.
|
547
545
|
# result.wait_until_done! timeout: 60
|
548
546
|
# if result.response?
|
549
547
|
# p result.response
|
550
548
|
# else
|
551
|
-
# puts "
|
549
|
+
# puts "No response received."
|
552
550
|
# end
|
553
551
|
#
|
554
552
|
def wait_operation request, options = nil
|
@@ -623,9 +621,9 @@ module Google
|
|
623
621
|
# * (`String`) The path to a service account key file in JSON format
|
624
622
|
# * (`Hash`) A service account key as a Hash
|
625
623
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
626
|
-
# (see the [googleauth docs](https://
|
624
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
627
625
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
628
|
-
# (see the [signet docs](https://
|
626
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
629
627
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
630
628
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
631
629
|
# * (`nil`) indicating no credentials
|
@@ -37,7 +37,7 @@ module Google
|
|
37
37
|
# Clusters. Provides access to the Instance and Cluster schemas only, not the
|
38
38
|
# tables' metadata or data stored in those tables.
|
39
39
|
#
|
40
|
-
#
|
40
|
+
# @example Load this service and instantiate a gRPC client
|
41
41
|
#
|
42
42
|
# require "google/cloud/bigtable/admin/v2/bigtable_instance_admin"
|
43
43
|
# client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|