google-cloud-bigtable 1.0.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +31 -0
  3. data/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +3 -0
  4. data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +6 -3
  5. data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +67 -0
  6. data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +33 -6
  7. data/lib/google/bigtable/admin/v2/common_pb.rb +6 -1
  8. data/lib/google/bigtable/admin/v2/instance_pb.rb +2 -1
  9. data/lib/google/bigtable/admin/v2/table_pb.rb +39 -1
  10. data/lib/google/cloud/bigtable/admin.rb +3 -3
  11. data/lib/google/cloud/bigtable/admin/v2.rb +4 -3
  12. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client.rb +61 -51
  13. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client_config.json +1 -1
  14. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client.rb +548 -59
  15. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client_config.json +31 -1
  16. data/lib/google/cloud/bigtable/admin/v2/credentials.rb +1 -1
  17. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_instance_admin.rb +47 -40
  18. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_table_admin.rb +282 -54
  19. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/instance.rb +16 -18
  20. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/table.rb +120 -27
  21. data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/iam_policy.rb +1 -1
  22. data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/options.rb +1 -1
  23. data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/policy.rb +1 -1
  24. data/lib/google/cloud/bigtable/admin/v2/doc/google/longrunning/operations.rb +2 -2
  25. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/any.rb +1 -1
  26. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/duration.rb +1 -1
  27. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/empty.rb +1 -1
  28. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/field_mask.rb +1 -1
  29. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/timestamp.rb +1 -1
  30. data/lib/google/cloud/bigtable/admin/v2/doc/google/rpc/status.rb +7 -55
  31. data/lib/google/cloud/bigtable/admin/v2/doc/google/type/expr.rb +1 -1
  32. data/lib/google/cloud/bigtable/instance.rb +4 -7
  33. data/lib/google/cloud/bigtable/policy.rb +1 -1
  34. data/lib/google/cloud/bigtable/service.rb +52 -0
  35. data/lib/google/cloud/bigtable/table.rb +112 -0
  36. data/lib/google/cloud/bigtable/v2.rb +2 -2
  37. data/lib/google/cloud/bigtable/v2/bigtable_client.rb +4 -10
  38. data/lib/google/cloud/bigtable/v2/bigtable_client_config.json +7 -7
  39. data/lib/google/cloud/bigtable/v2/credentials.rb +1 -1
  40. data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/bigtable.rb +1 -19
  41. data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/data.rb +1 -1
  42. data/lib/google/cloud/bigtable/v2/doc/google/protobuf/any.rb +1 -1
  43. data/lib/google/cloud/bigtable/v2/doc/google/protobuf/wrappers.rb +1 -1
  44. data/lib/google/cloud/bigtable/v2/doc/google/rpc/status.rb +7 -55
  45. data/lib/google/cloud/bigtable/version.rb +1 -1
  46. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f7c4970d829be1e1e1d13cdc3f18ae40b8ccc3010b6602313ec95919cd2e195
4
- data.tar.gz: f1b1fb7975d344121320ebdd3cea48632edc8ae9a9dbb640ba82e1d21e203ef4
3
+ metadata.gz: 0a1017ef14a932be04b10c48b91c119092d63cb819e3c64afd774123046ebd1c
4
+ data.tar.gz: 1e31e516af43d142ac8d3a06a58c9a79c8bd145d0dc242df571ea56c201b01d4
5
5
  SHA512:
6
- metadata.gz: ecd26595f4ac765b06665ece793e7acca61c889c9c41bec259cc46c8a3081d665a41a64ea9d81064f4841654b2a9536508ba4ff0e89608ebbed2f1572b354965
7
- data.tar.gz: 7a81505de36887eb86c35cf7d9451fd9c387f071261895412fc5a960328395e1c5e6285e0b84cad2fda4ac50aadf12d971d08dfac4654a395a321f6c3f0c7e67
6
+ metadata.gz: 9505756672b52a498ecaf695c639d1f4f01308878e6adbddbe7cf8c4ea36f0f0fc6d26fd8f2874112ba1eb462d4d3a8c83f8f1f456f13fc24bf91473739794c7
7
+ data.tar.gz: 467538a39acc69162f601920f0924e2707473adf27f0c5b9ee9d9fd3c2be79ac48ffc760c1e7288b586428df49d9f80a123b68f675d2b38f68838d7c82534853
@@ -1,5 +1,36 @@
1
1
  # Release History
2
2
 
3
+ ### 1.2.1 / 2020-05-21
4
+
5
+ #### Bug Fixes
6
+
7
+ * Disable streaming RPC retries in lower-level client
8
+
9
+ ### 1.2.0 / 2020-03-11
10
+
11
+ #### Features
12
+
13
+ * Support separate project setting for quota/billing
14
+
15
+ ### 1.1.0 / 2020-02-10
16
+
17
+ #### Features
18
+
19
+ * Add Table-level IAM Policy support
20
+
21
+ ### 1.0.2 / 2020-01-23
22
+
23
+ #### Documentation
24
+
25
+ * Update copyright year
26
+ * Update Status documentation
27
+
28
+ ### 1.0.1 / 2020-01-15
29
+
30
+ #### Documentation
31
+
32
+ * Update lower-level API documentation
33
+
3
34
  ### 1.0.0 / 2019-12-03
4
35
 
5
36
  #### Documentation
@@ -5,6 +5,9 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
8
11
  require 'google/bigtable/admin/v2/instance_pb'
9
12
  require 'google/iam/v1/iam_policy_pb'
10
13
  require 'google/iam/v1/policy_pb'
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/bigtable/admin/v2/bigtable_instance_admin.proto for package 'google.bigtable.admin.v2'
3
3
  # Original file comments:
4
- # Copyright 2018 Google LLC.
4
+ # Copyright 2019 Google LLC.
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -43,9 +43,12 @@ module Google
43
43
  rpc :GetInstance, GetInstanceRequest, Instance
44
44
  # Lists information about instances in a project.
45
45
  rpc :ListInstances, ListInstancesRequest, ListInstancesResponse
46
- # Updates an instance within a project.
46
+ # Updates an instance within a project. This method updates only the display
47
+ # name and type for an Instance. To update other Instance properties, such as
48
+ # labels, use PartialUpdateInstance.
47
49
  rpc :UpdateInstance, Instance, Instance
48
- # Partially updates an instance within a project.
50
+ # Partially updates an instance within a project. This method can modify all
51
+ # fields of an Instance and is the preferred way to update an Instance.
49
52
  rpc :PartialUpdateInstance, PartialUpdateInstanceRequest, Google::Longrunning::Operation
50
53
  # Delete an instance from a project.
51
54
  rpc :DeleteInstance, DeleteInstanceRequest, Google::Protobuf::Empty
@@ -5,12 +5,17 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/bigtable/admin/v2/common_pb'
8
12
  require 'google/bigtable/admin/v2/table_pb'
9
13
  require 'google/iam/v1/iam_policy_pb'
10
14
  require 'google/iam/v1/policy_pb'
11
15
  require 'google/longrunning/operations_pb'
12
16
  require 'google/protobuf/duration_pb'
13
17
  require 'google/protobuf/empty_pb'
18
+ require 'google/protobuf/field_mask_pb'
14
19
  require 'google/protobuf/timestamp_pb'
15
20
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
21
  add_message "google.bigtable.admin.v2.CreateTableRequest" do
@@ -108,6 +113,58 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
108
113
  optional :request_time, :message, 2, "google.protobuf.Timestamp"
109
114
  optional :finish_time, :message, 3, "google.protobuf.Timestamp"
110
115
  end
116
+ add_message "google.bigtable.admin.v2.CreateBackupRequest" do
117
+ optional :parent, :string, 1
118
+ optional :backup_id, :string, 2
119
+ optional :backup, :message, 3, "google.bigtable.admin.v2.Backup"
120
+ end
121
+ add_message "google.bigtable.admin.v2.CreateBackupMetadata" do
122
+ optional :name, :string, 1
123
+ optional :source_table, :string, 2
124
+ optional :start_time, :message, 3, "google.protobuf.Timestamp"
125
+ optional :end_time, :message, 4, "google.protobuf.Timestamp"
126
+ end
127
+ add_message "google.bigtable.admin.v2.GetBackupRequest" do
128
+ optional :name, :string, 1
129
+ end
130
+ add_message "google.bigtable.admin.v2.UpdateBackupRequest" do
131
+ optional :backup, :message, 1, "google.bigtable.admin.v2.Backup"
132
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
133
+ end
134
+ add_message "google.bigtable.admin.v2.DeleteBackupRequest" do
135
+ optional :name, :string, 1
136
+ end
137
+ add_message "google.bigtable.admin.v2.ListBackupsRequest" do
138
+ optional :parent, :string, 1
139
+ optional :filter, :string, 2
140
+ optional :order_by, :string, 3
141
+ optional :page_size, :int32, 4
142
+ optional :page_token, :string, 5
143
+ end
144
+ add_message "google.bigtable.admin.v2.ListBackupsResponse" do
145
+ repeated :backups, :message, 1, "google.bigtable.admin.v2.Backup"
146
+ optional :next_page_token, :string, 2
147
+ end
148
+ add_message "google.bigtable.admin.v2.RestoreTableRequest" do
149
+ optional :parent, :string, 1
150
+ optional :table_id, :string, 2
151
+ oneof :source do
152
+ optional :backup, :string, 3
153
+ end
154
+ end
155
+ add_message "google.bigtable.admin.v2.RestoreTableMetadata" do
156
+ optional :name, :string, 1
157
+ optional :source_type, :enum, 2, "google.bigtable.admin.v2.RestoreSourceType"
158
+ optional :optimize_table_operation_name, :string, 4
159
+ optional :progress, :message, 5, "google.bigtable.admin.v2.OperationProgress"
160
+ oneof :source_info do
161
+ optional :backup_info, :message, 3, "google.bigtable.admin.v2.BackupInfo"
162
+ end
163
+ end
164
+ add_message "google.bigtable.admin.v2.OptimizeRestoredTableMetadata" do
165
+ optional :name, :string, 1
166
+ optional :progress, :message, 2, "google.bigtable.admin.v2.OperationProgress"
167
+ end
111
168
  end
112
169
 
113
170
  module Google
@@ -135,6 +192,16 @@ module Google
135
192
  DeleteSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteSnapshotRequest").msgclass
136
193
  SnapshotTableMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.SnapshotTableMetadata").msgclass
137
194
  CreateTableFromSnapshotMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableFromSnapshotMetadata").msgclass
195
+ CreateBackupRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateBackupRequest").msgclass
196
+ CreateBackupMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateBackupMetadata").msgclass
197
+ GetBackupRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetBackupRequest").msgclass
198
+ UpdateBackupRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateBackupRequest").msgclass
199
+ DeleteBackupRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteBackupRequest").msgclass
200
+ ListBackupsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListBackupsRequest").msgclass
201
+ ListBackupsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListBackupsResponse").msgclass
202
+ RestoreTableRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreTableRequest").msgclass
203
+ RestoreTableMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreTableMetadata").msgclass
204
+ OptimizeRestoredTableMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.OptimizeRestoredTableMetadata").msgclass
138
205
  end
139
206
  end
140
207
  end
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/bigtable/admin/v2/bigtable_table_admin.proto for package 'google.bigtable.admin.v2'
3
3
  # Original file comments:
4
- # Copyright 2018 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -109,11 +108,39 @@ module Google
109
108
  # recommended for production use. It is not subject to any SLA or deprecation
110
109
  # policy.
111
110
  rpc :DeleteSnapshot, DeleteSnapshotRequest, Google::Protobuf::Empty
112
- # Gets the access control policy for a table resource. Returns an empty
113
- # policy if an table exists but does not have a policy set.
111
+ # Starts creating a new Cloud Bigtable Backup. The returned backup
112
+ # [long-running operation][google.longrunning.Operation] can be used to
113
+ # track creation of the backup. The
114
+ # [metadata][google.longrunning.Operation.metadata] field type is
115
+ # [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The
116
+ # [response][google.longrunning.Operation.response] field type is
117
+ # [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the
118
+ # returned operation will stop the creation and delete the backup.
119
+ rpc :CreateBackup, CreateBackupRequest, Google::Longrunning::Operation
120
+ # Gets metadata on a pending or completed Cloud Bigtable Backup.
121
+ rpc :GetBackup, GetBackupRequest, Backup
122
+ # Updates a pending or completed Cloud Bigtable Backup.
123
+ rpc :UpdateBackup, UpdateBackupRequest, Backup
124
+ # Deletes a pending or completed Cloud Bigtable backup.
125
+ rpc :DeleteBackup, DeleteBackupRequest, Google::Protobuf::Empty
126
+ # Lists Cloud Bigtable backups. Returns both completed and pending
127
+ # backups.
128
+ rpc :ListBackups, ListBackupsRequest, ListBackupsResponse
129
+ # Create a new table by restoring from a completed backup. The new table
130
+ # must be in the same instance as the instance containing the backup. The
131
+ # returned table [long-running operation][google.longrunning.Operation] can
132
+ # be used to track the progress of the operation, and to cancel it. The
133
+ # [metadata][google.longrunning.Operation.metadata] field type is
134
+ # [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The
135
+ # [response][google.longrunning.Operation.response] type is
136
+ # [Table][google.bigtable.admin.v2.Table], if successful.
137
+ rpc :RestoreTable, RestoreTableRequest, Google::Longrunning::Operation
138
+ # Gets the access control policy for a resource.
139
+ # Returns an empty policy if the resource exists but does not have a policy
140
+ # set.
114
141
  rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
115
- # Sets the access control policy on a table resource. Replaces any existing
116
- # policy.
142
+ # Sets the access control policy on a Table or Backup resource.
143
+ # Replaces any existing policy.
117
144
  rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
118
145
  # Returns permissions that the caller has on the specified table resource.
119
146
  rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
@@ -4,9 +4,13 @@
4
4
 
5
5
  require 'google/protobuf'
6
6
 
7
- require 'google/api/annotations_pb'
8
7
  require 'google/protobuf/timestamp_pb'
9
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_message "google.bigtable.admin.v2.OperationProgress" do
10
+ optional :progress_percent, :int32, 1
11
+ optional :start_time, :message, 2, "google.protobuf.Timestamp"
12
+ optional :end_time, :message, 3, "google.protobuf.Timestamp"
13
+ end
10
14
  add_enum "google.bigtable.admin.v2.StorageType" do
11
15
  value :STORAGE_TYPE_UNSPECIFIED, 0
12
16
  value :SSD, 1
@@ -18,6 +22,7 @@ module Google
18
22
  module Bigtable
19
23
  module Admin
20
24
  module V2
25
+ OperationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.OperationProgress").msgclass
21
26
  StorageType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.StorageType").enummodule
22
27
  end
23
28
  end
@@ -4,7 +4,8 @@
4
4
 
5
5
  require 'google/protobuf'
6
6
 
7
- require 'google/api/annotations_pb'
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
8
9
  require 'google/bigtable/admin/v2/common_pb'
9
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
11
  add_message "google.bigtable.admin.v2.Instance" do
@@ -4,15 +4,23 @@
4
4
 
5
5
  require 'google/protobuf'
6
6
 
7
- require 'google/api/annotations_pb'
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
8
9
  require 'google/protobuf/duration_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_message "google.bigtable.admin.v2.RestoreInfo" do
13
+ optional :source_type, :enum, 1, "google.bigtable.admin.v2.RestoreSourceType"
14
+ oneof :source_info do
15
+ optional :backup_info, :message, 2, "google.bigtable.admin.v2.BackupInfo"
16
+ end
17
+ end
11
18
  add_message "google.bigtable.admin.v2.Table" do
12
19
  optional :name, :string, 1
13
20
  map :cluster_states, :string, :message, 2, "google.bigtable.admin.v2.Table.ClusterState"
14
21
  map :column_families, :string, :message, 3, "google.bigtable.admin.v2.ColumnFamily"
15
22
  optional :granularity, :enum, 4, "google.bigtable.admin.v2.Table.TimestampGranularity"
23
+ optional :restore_info, :message, 6, "google.bigtable.admin.v2.RestoreInfo"
16
24
  end
17
25
  add_message "google.bigtable.admin.v2.Table.ClusterState" do
18
26
  optional :replication_state, :enum, 1, "google.bigtable.admin.v2.Table.ClusterState.ReplicationState"
@@ -23,6 +31,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
23
31
  value :PLANNED_MAINTENANCE, 2
24
32
  value :UNPLANNED_MAINTENANCE, 3
25
33
  value :READY, 4
34
+ value :READY_OPTIMIZING, 5
26
35
  end
27
36
  add_enum "google.bigtable.admin.v2.Table.TimestampGranularity" do
28
37
  value :TIMESTAMP_GRANULARITY_UNSPECIFIED, 0
@@ -66,12 +75,37 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
66
75
  value :READY, 1
67
76
  value :CREATING, 2
68
77
  end
78
+ add_message "google.bigtable.admin.v2.Backup" do
79
+ optional :name, :string, 1
80
+ optional :source_table, :string, 2
81
+ optional :expire_time, :message, 3, "google.protobuf.Timestamp"
82
+ optional :start_time, :message, 4, "google.protobuf.Timestamp"
83
+ optional :end_time, :message, 5, "google.protobuf.Timestamp"
84
+ optional :size_bytes, :int64, 6
85
+ optional :state, :enum, 7, "google.bigtable.admin.v2.Backup.State"
86
+ end
87
+ add_enum "google.bigtable.admin.v2.Backup.State" do
88
+ value :STATE_UNSPECIFIED, 0
89
+ value :CREATING, 1
90
+ value :READY, 2
91
+ end
92
+ add_message "google.bigtable.admin.v2.BackupInfo" do
93
+ optional :backup, :string, 1
94
+ optional :start_time, :message, 2, "google.protobuf.Timestamp"
95
+ optional :end_time, :message, 3, "google.protobuf.Timestamp"
96
+ optional :source_table, :string, 4
97
+ end
98
+ add_enum "google.bigtable.admin.v2.RestoreSourceType" do
99
+ value :RESTORE_SOURCE_TYPE_UNSPECIFIED, 0
100
+ value :BACKUP, 1
101
+ end
69
102
  end
70
103
 
71
104
  module Google
72
105
  module Bigtable
73
106
  module Admin
74
107
  module V2
108
+ RestoreInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreInfo").msgclass
75
109
  Table = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table").msgclass
76
110
  Table::ClusterState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState").msgclass
77
111
  Table::ClusterState::ReplicationState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState.ReplicationState").enummodule
@@ -83,6 +117,10 @@ module Google
83
117
  GcRule::Union = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Union").msgclass
84
118
  Snapshot = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot").msgclass
85
119
  Snapshot::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot.State").enummodule
120
+ Backup = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup").msgclass
121
+ Backup::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.State").enummodule
122
+ BackupInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.BackupInfo").msgclass
123
+ RestoreSourceType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreSourceType").enummodule
86
124
  end
87
125
  end
88
126
  end
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -22,10 +22,10 @@ module Google
22
22
  # rubocop:disable LineLength
23
23
 
24
24
  ##
25
- # # Ruby Client for Cloud Bigtable Admin API ([GA](https://github.com/googleapis/google-cloud-ruby#versioning))
25
+ # # Ruby Client for Cloud Bigtable Admin API
26
26
  #
27
27
  # [Cloud Bigtable Admin API][Product Documentation]:
28
- #
28
+ # Administer your Cloud Bigtable tables and instances.
29
29
  # - [Product Documentation][]
30
30
  #
31
31
  # ## Quick Start
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
16
16
  require "google/cloud/bigtable/admin/v2/bigtable_instance_admin_client"
17
17
  require "google/cloud/bigtable/admin/v2/bigtable_table_admin_client"
18
18
  require "google/bigtable/admin/v2/bigtable_instance_admin_pb"
19
+ require "google/bigtable/admin/v2/table_pb"
19
20
  require "google/bigtable/admin/v2/bigtable_table_admin_pb"
20
21
 
21
22
  module Google
@@ -25,10 +26,10 @@ module Google
25
26
  # rubocop:disable LineLength
26
27
 
27
28
  ##
28
- # # Ruby Client for Cloud Bigtable Admin API ([GA](https://github.com/googleapis/google-cloud-ruby#versioning))
29
+ # # Ruby Client for Cloud Bigtable Admin API
29
30
  #
30
31
  # [Cloud Bigtable Admin API][Product Documentation]:
31
- #
32
+ # Administer your Cloud Bigtable tables and instances.
32
33
  # - [Product Documentation][]
33
34
  #
34
35
  # ## Quick Start
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -262,6 +262,9 @@ module Google
262
262
  google_api_client.freeze
263
263
 
264
264
  headers = { :"x-goog-api-client" => google_api_client }
265
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
266
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
267
+ end
265
268
  headers.merge!(metadata) unless metadata.nil?
266
269
  client_config_file = Pathname.new(__dir__).join(
267
270
  "bigtable_instance_admin_client_config.json"
@@ -453,23 +456,23 @@ module Google
453
456
  # Create an instance within a project.
454
457
  #
455
458
  # @param parent [String]
456
- # The unique name of the project in which to create the new instance.
457
- # Values are of the form `projects/<project>`.
459
+ # Required. The unique name of the project in which to create the new instance.
460
+ # Values are of the form `projects/{project}`.
458
461
  # @param instance_id [String]
459
- # The ID to be used when referring to the new instance within its project,
462
+ # Required. The ID to be used when referring to the new instance within its project,
460
463
  # e.g., just `myinstance` rather than
461
464
  # `projects/myproject/instances/myinstance`.
462
465
  # @param instance [Google::Bigtable::Admin::V2::Instance | Hash]
463
- # The instance to create.
466
+ # Required. The instance to create.
464
467
  # Fields marked `OutputOnly` must be left blank.
465
468
  # A hash of the same form as `Google::Bigtable::Admin::V2::Instance`
466
469
  # can also be provided.
467
470
  # @param clusters [Hash{String => Google::Bigtable::Admin::V2::Cluster | Hash}]
468
- # The clusters to be created within the instance, mapped by desired
471
+ # Required. The clusters to be created within the instance, mapped by desired
469
472
  # cluster ID, e.g., just `mycluster` rather than
470
473
  # `projects/myproject/instances/myinstance/clusters/mycluster`.
471
474
  # Fields marked `OutputOnly` must be left blank.
472
- # Currently, at most two clusters can be specified.
475
+ # Currently, at most four clusters can be specified.
473
476
  # A hash of the same form as `Google::Bigtable::Admin::V2::Cluster`
474
477
  # can also be provided.
475
478
  # @param options [Google::Gax::CallOptions]
@@ -546,8 +549,8 @@ module Google
546
549
  # Gets information about an instance.
547
550
  #
548
551
  # @param name [String]
549
- # The unique name of the requested instance. Values are of the form
550
- # `projects/<project>/instances/<instance>`.
552
+ # Required. The unique name of the requested instance. Values are of the form
553
+ # `projects/{project}/instances/{instance}`.
551
554
  # @param options [Google::Gax::CallOptions]
552
555
  # Overrides the default settings for this call, e.g, timeout,
553
556
  # retries, etc.
@@ -577,8 +580,8 @@ module Google
577
580
  # Lists information about instances in a project.
578
581
  #
579
582
  # @param parent [String]
580
- # The unique name of the project for which a list of instances is requested.
581
- # Values are of the form `projects/<project>`.
583
+ # Required. The unique name of the project for which a list of instances is requested.
584
+ # Values are of the form `projects/{project}`.
582
585
  # @param page_token [String]
583
586
  # DEPRECATED: This field is unused and ignored.
584
587
  # @param options [Google::Gax::CallOptions]
@@ -609,14 +612,15 @@ module Google
609
612
  @list_instances.call(req, options, &block)
610
613
  end
611
614
 
612
- # Updates an instance within a project.
615
+ # Updates an instance within a project. This method updates only the display
616
+ # name and type for an Instance. To update other Instance properties, such as
617
+ # labels, use PartialUpdateInstance.
613
618
  #
614
619
  # @param name [String]
615
- # (`OutputOnly`)
616
620
  # The unique name of the instance. Values are of the form
617
- # `projects/<project>/instances/[a-z][a-z0-9\\-]+[a-z0-9]`.
621
+ # `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`.
618
622
  # @param display_name [String]
619
- # The descriptive name for this instance as it appears in UIs.
623
+ # Required. The descriptive name for this instance as it appears in UIs.
620
624
  # Can be changed at any time, but should be kept globally unique
621
625
  # to avoid confusion.
622
626
  # @param type [Google::Bigtable::Admin::V2::Instance::Type]
@@ -679,14 +683,15 @@ module Google
679
683
  @update_instance.call(req, options, &block)
680
684
  end
681
685
 
682
- # Partially updates an instance within a project.
686
+ # Partially updates an instance within a project. This method can modify all
687
+ # fields of an Instance and is the preferred way to update an Instance.
683
688
  #
684
689
  # @param instance [Google::Bigtable::Admin::V2::Instance | Hash]
685
- # The Instance which will (partially) replace the current value.
690
+ # Required. The Instance which will (partially) replace the current value.
686
691
  # A hash of the same form as `Google::Bigtable::Admin::V2::Instance`
687
692
  # can also be provided.
688
693
  # @param update_mask [Google::Protobuf::FieldMask | Hash]
689
- # The subset of Instance fields which should be replaced.
694
+ # Required. The subset of Instance fields which should be replaced.
690
695
  # Must be explicitly set.
691
696
  # A hash of the same form as `Google::Protobuf::FieldMask`
692
697
  # can also be provided.
@@ -756,8 +761,8 @@ module Google
756
761
  # Delete an instance from a project.
757
762
  #
758
763
  # @param name [String]
759
- # The unique name of the instance to be deleted.
760
- # Values are of the form `projects/<project>/instances/<instance>`.
764
+ # Required. The unique name of the instance to be deleted.
765
+ # Values are of the form `projects/{project}/instances/{instance}`.
761
766
  # @param options [Google::Gax::CallOptions]
762
767
  # Overrides the default settings for this call, e.g, timeout,
763
768
  # retries, etc.
@@ -787,15 +792,15 @@ module Google
787
792
  # Creates a cluster within an instance.
788
793
  #
789
794
  # @param parent [String]
790
- # The unique name of the instance in which to create the new cluster.
795
+ # Required. The unique name of the instance in which to create the new cluster.
791
796
  # Values are of the form
792
- # `projects/<project>/instances/<instance>`.
797
+ # `projects/{project}/instances/{instance}`.
793
798
  # @param cluster_id [String]
794
- # The ID to be used when referring to the new cluster within its instance,
799
+ # Required. The ID to be used when referring to the new cluster within its instance,
795
800
  # e.g., just `mycluster` rather than
796
801
  # `projects/myproject/instances/myinstance/clusters/mycluster`.
797
802
  # @param cluster [Google::Bigtable::Admin::V2::Cluster | Hash]
798
- # The cluster to be created.
803
+ # Required. The cluster to be created.
799
804
  # Fields marked `OutputOnly` must be left blank.
800
805
  # A hash of the same form as `Google::Bigtable::Admin::V2::Cluster`
801
806
  # can also be provided.
@@ -868,8 +873,8 @@ module Google
868
873
  # Gets information about a cluster.
869
874
  #
870
875
  # @param name [String]
871
- # The unique name of the requested cluster. Values are of the form
872
- # `projects/<project>/instances/<instance>/clusters/<cluster>`.
876
+ # Required. The unique name of the requested cluster. Values are of the form
877
+ # `projects/{project}/instances/{instance}/clusters/{cluster}`.
873
878
  # @param options [Google::Gax::CallOptions]
874
879
  # Overrides the default settings for this call, e.g, timeout,
875
880
  # retries, etc.
@@ -899,9 +904,9 @@ module Google
899
904
  # Lists information about clusters in an instance.
900
905
  #
901
906
  # @param parent [String]
902
- # The unique name of the instance for which a list of clusters is requested.
903
- # Values are of the form `projects/<project>/instances/<instance>`.
904
- # Use `<instance> = '-'` to list Clusters for all Instances in a project,
907
+ # Required. The unique name of the instance for which a list of clusters is requested.
908
+ # Values are of the form `projects/{project}/instances/{instance}`.
909
+ # Use `{instance} = '-'` to list Clusters for all Instances in a project,
905
910
  # e.g., `projects/myproject/instances/-`.
906
911
  # @param page_token [String]
907
912
  # DEPRECATED: This field is unused and ignored.
@@ -936,20 +941,18 @@ module Google
936
941
  # Updates a cluster within an instance.
937
942
  #
938
943
  # @param name [String]
939
- # (`OutputOnly`)
940
944
  # The unique name of the cluster. Values are of the form
941
- # `projects/<project>/instances/<instance>/clusters/[a-z][-a-z0-9]*`.
945
+ # `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`.
942
946
  # @param serve_nodes [Integer]
943
- # The number of nodes allocated to this cluster. More nodes enable higher
944
- # throughput and more consistent performance.
947
+ # Required. The number of nodes allocated to this cluster. More nodes enable
948
+ # higher throughput and more consistent performance.
945
949
  # @param location [String]
946
950
  # (`CreationOnly`)
947
951
  # The location where this cluster's nodes and storage reside. For best
948
952
  # performance, clients should be located as close as possible to this
949
953
  # cluster. Currently only zones are supported, so values should be of the
950
- # form `projects/<project>/locations/<zone>`.
954
+ # form `projects/{project}/locations/{zone}`.
951
955
  # @param state [Google::Bigtable::Admin::V2::Cluster::State]
952
- # (`OutputOnly`)
953
956
  # The current state of the cluster.
954
957
  # @param default_storage_type [Google::Bigtable::Admin::V2::StorageType]
955
958
  # (`CreationOnly`)
@@ -1025,8 +1028,8 @@ module Google
1025
1028
  # Deletes a cluster from an instance.
1026
1029
  #
1027
1030
  # @param name [String]
1028
- # The unique name of the cluster to be deleted. Values are of the form
1029
- # `projects/<project>/instances/<instance>/clusters/<cluster>`.
1031
+ # Required. The unique name of the cluster to be deleted. Values are of the form
1032
+ # `projects/{project}/instances/{instance}/clusters/{cluster}`.
1030
1033
  # @param options [Google::Gax::CallOptions]
1031
1034
  # Overrides the default settings for this call, e.g, timeout,
1032
1035
  # retries, etc.
@@ -1056,15 +1059,15 @@ module Google
1056
1059
  # Creates an app profile within an instance.
1057
1060
  #
1058
1061
  # @param parent [String]
1059
- # The unique name of the instance in which to create the new app profile.
1062
+ # Required. The unique name of the instance in which to create the new app profile.
1060
1063
  # Values are of the form
1061
- # `projects/<project>/instances/<instance>`.
1064
+ # `projects/{project}/instances/{instance}`.
1062
1065
  # @param app_profile_id [String]
1063
- # The ID to be used when referring to the new app profile within its
1066
+ # Required. The ID to be used when referring to the new app profile within its
1064
1067
  # instance, e.g., just `myprofile` rather than
1065
1068
  # `projects/myproject/instances/myinstance/appProfiles/myprofile`.
1066
1069
  # @param app_profile [Google::Bigtable::Admin::V2::AppProfile | Hash]
1067
- # The app profile to be created.
1070
+ # Required. The app profile to be created.
1068
1071
  # Fields marked `OutputOnly` will be ignored.
1069
1072
  # A hash of the same form as `Google::Bigtable::Admin::V2::AppProfile`
1070
1073
  # can also be provided.
@@ -1111,8 +1114,8 @@ module Google
1111
1114
  # Gets information about an app profile.
1112
1115
  #
1113
1116
  # @param name [String]
1114
- # The unique name of the requested app profile. Values are of the form
1115
- # `projects/<project>/instances/<instance>/appProfiles/<app_profile>`.
1117
+ # Required. The unique name of the requested app profile. Values are of the form
1118
+ # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`.
1116
1119
  # @param options [Google::Gax::CallOptions]
1117
1120
  # Overrides the default settings for this call, e.g, timeout,
1118
1121
  # retries, etc.
@@ -1142,14 +1145,21 @@ module Google
1142
1145
  # Lists information about app profiles in an instance.
1143
1146
  #
1144
1147
  # @param parent [String]
1145
- # The unique name of the instance for which a list of app profiles is
1148
+ # Required. The unique name of the instance for which a list of app profiles is
1146
1149
  # requested. Values are of the form
1147
- # `projects/<project>/instances/<instance>`.
1148
- # Use `<instance> = '-'` to list AppProfiles for all Instances in a project,
1150
+ # `projects/{project}/instances/{instance}`.
1151
+ # Use `{instance} = '-'` to list AppProfiles for all Instances in a project,
1149
1152
  # e.g., `projects/myproject/instances/-`.
1150
1153
  # @param page_size [Integer]
1151
1154
  # Maximum number of results per page.
1152
- # CURRENTLY UNIMPLEMENTED AND IGNORED.
1155
+ #
1156
+ # A page_size of zero lets the server choose the number of items to return.
1157
+ # A page_size which is strictly positive will return at most that many items.
1158
+ # A negative page_size will cause an error.
1159
+ #
1160
+ # Following the first request, subsequent paginated calls are not required
1161
+ # to pass a page_size. If a page_size is set in subsequent calls, it must
1162
+ # match the page_size given in the first request.
1153
1163
  # @param options [Google::Gax::CallOptions]
1154
1164
  # Overrides the default settings for this call, e.g, timeout,
1155
1165
  # retries, etc.
@@ -1197,11 +1207,11 @@ module Google
1197
1207
  # Updates an app profile within an instance.
1198
1208
  #
1199
1209
  # @param app_profile [Google::Bigtable::Admin::V2::AppProfile | Hash]
1200
- # The app profile which will (partially) replace the current value.
1210
+ # Required. The app profile which will (partially) replace the current value.
1201
1211
  # A hash of the same form as `Google::Bigtable::Admin::V2::AppProfile`
1202
1212
  # can also be provided.
1203
1213
  # @param update_mask [Google::Protobuf::FieldMask | Hash]
1204
- # The subset of app profile fields which should be replaced.
1214
+ # Required. The subset of app profile fields which should be replaced.
1205
1215
  # If unset, all fields will be replaced.
1206
1216
  # A hash of the same form as `Google::Protobuf::FieldMask`
1207
1217
  # can also be provided.
@@ -1275,8 +1285,8 @@ module Google
1275
1285
  # Deletes an app profile from an instance.
1276
1286
  #
1277
1287
  # @param name [String]
1278
- # The unique name of the app profile to be deleted. Values are of the form
1279
- # `projects/<project>/instances/<instance>/appProfiles/<app_profile>`.
1288
+ # Required. The unique name of the app profile to be deleted. Values are of the form
1289
+ # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`.
1280
1290
  # @param ignore_warnings [true, false]
1281
1291
  # If true, ignore safety checks when deleting the app profile.
1282
1292
  # @param options [Google::Gax::CallOptions]