google-cloud-bigtable-admin-v2 0.1.2 → 0.5.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.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +188 -190
  3. data/README.md +66 -2
  4. data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +20 -21
  5. data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +27 -27
  6. data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +30 -30
  7. data/lib/google/bigtable/admin/v2/instance_pb.rb +5 -0
  8. data/lib/google/bigtable/admin/v2/table_pb.rb +16 -0
  9. data/lib/google/cloud/bigtable/admin/v2.rb +3 -0
  10. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb +70 -62
  11. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb +95 -10
  12. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb +21 -0
  13. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb +119 -95
  14. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb +95 -10
  15. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb +23 -0
  16. data/lib/google/cloud/bigtable/admin/v2/version.rb +1 -1
  17. data/proto_docs/google/api/field_behavior.rb +6 -0
  18. data/proto_docs/google/api/resource.rb +50 -14
  19. data/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb +1 -1
  20. data/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb +114 -123
  21. data/proto_docs/google/bigtable/admin/v2/instance.rb +21 -1
  22. data/proto_docs/google/bigtable/admin/v2/table.rb +58 -4
  23. data/proto_docs/google/longrunning/operations.rb +17 -3
  24. data/proto_docs/google/protobuf/any.rb +5 -2
  25. data/proto_docs/google/protobuf/timestamp.rb +10 -1
  26. metadata +10 -7
@@ -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.Cloud.Bigtable.Admin.V2'
3
3
  # Original file comments:
4
- # Copyright 2019 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
  require 'grpc'
21
20
  require 'google/bigtable/admin/v2/bigtable_instance_admin_pb'
@@ -38,48 +37,48 @@ module Google
38
37
  self.service_name = 'google.bigtable.admin.v2.BigtableInstanceAdmin'
39
38
 
40
39
  # Create an instance within a project.
41
- rpc :CreateInstance, Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, Google::Longrunning::Operation
40
+ rpc :CreateInstance, ::Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest, ::Google::Longrunning::Operation
42
41
  # Gets information about an instance.
43
- rpc :GetInstance, Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, Google::Cloud::Bigtable::Admin::V2::Instance
42
+ rpc :GetInstance, ::Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest, ::Google::Cloud::Bigtable::Admin::V2::Instance
44
43
  # Lists information about instances in a project.
45
- rpc :ListInstances, Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse
44
+ rpc :ListInstances, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse
46
45
  # Updates an instance within a project. This method updates only the display
47
46
  # name and type for an Instance. To update other Instance properties, such as
48
47
  # labels, use PartialUpdateInstance.
49
- rpc :UpdateInstance, Google::Cloud::Bigtable::Admin::V2::Instance, Google::Cloud::Bigtable::Admin::V2::Instance
48
+ rpc :UpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::Instance, ::Google::Cloud::Bigtable::Admin::V2::Instance
50
49
  # Partially updates an instance within a project. This method can modify all
51
50
  # fields of an Instance and is the preferred way to update an Instance.
52
- rpc :PartialUpdateInstance, Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, Google::Longrunning::Operation
51
+ rpc :PartialUpdateInstance, ::Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest, ::Google::Longrunning::Operation
53
52
  # Delete an instance from a project.
54
- rpc :DeleteInstance, Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, Google::Protobuf::Empty
53
+ rpc :DeleteInstance, ::Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest, ::Google::Protobuf::Empty
55
54
  # Creates a cluster within an instance.
56
- rpc :CreateCluster, Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, Google::Longrunning::Operation
55
+ rpc :CreateCluster, ::Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest, ::Google::Longrunning::Operation
57
56
  # Gets information about a cluster.
58
- rpc :GetCluster, Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, Google::Cloud::Bigtable::Admin::V2::Cluster
57
+ rpc :GetCluster, ::Google::Cloud::Bigtable::Admin::V2::GetClusterRequest, ::Google::Cloud::Bigtable::Admin::V2::Cluster
59
58
  # Lists information about clusters in an instance.
60
- rpc :ListClusters, Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, Google::Cloud::Bigtable::Admin::V2::ListClustersResponse
59
+ rpc :ListClusters, ::Google::Cloud::Bigtable::Admin::V2::ListClustersRequest, ::Google::Cloud::Bigtable::Admin::V2::ListClustersResponse
61
60
  # Updates a cluster within an instance.
62
- rpc :UpdateCluster, Google::Cloud::Bigtable::Admin::V2::Cluster, Google::Longrunning::Operation
61
+ rpc :UpdateCluster, ::Google::Cloud::Bigtable::Admin::V2::Cluster, ::Google::Longrunning::Operation
63
62
  # Deletes a cluster from an instance.
64
- rpc :DeleteCluster, Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, Google::Protobuf::Empty
63
+ rpc :DeleteCluster, ::Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest, ::Google::Protobuf::Empty
65
64
  # Creates an app profile within an instance.
66
- rpc :CreateAppProfile, Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, Google::Cloud::Bigtable::Admin::V2::AppProfile
65
+ rpc :CreateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile
67
66
  # Gets information about an app profile.
68
- rpc :GetAppProfile, Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, Google::Cloud::Bigtable::Admin::V2::AppProfile
67
+ rpc :GetAppProfile, ::Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest, ::Google::Cloud::Bigtable::Admin::V2::AppProfile
69
68
  # Lists information about app profiles in an instance.
70
- rpc :ListAppProfiles, Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse
69
+ rpc :ListAppProfiles, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListAppProfilesResponse
71
70
  # Updates an app profile within an instance.
72
- rpc :UpdateAppProfile, Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, Google::Longrunning::Operation
71
+ rpc :UpdateAppProfile, ::Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest, ::Google::Longrunning::Operation
73
72
  # Deletes an app profile from an instance.
74
- rpc :DeleteAppProfile, Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, Google::Protobuf::Empty
73
+ rpc :DeleteAppProfile, ::Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest, ::Google::Protobuf::Empty
75
74
  # Gets the access control policy for an instance resource. Returns an empty
76
75
  # policy if an instance exists but does not have a policy set.
77
- rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
76
+ rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
78
77
  # Sets the access control policy on an instance resource. Replaces any
79
78
  # existing policy.
80
- rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
79
+ rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
81
80
  # Returns permissions that the caller has on the specified instance resource.
82
- rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
81
+ rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
83
82
  end
84
83
 
85
84
  Stub = Service.rpc_stub_class
@@ -18,6 +18,26 @@ require 'google/protobuf/field_mask_pb'
18
18
  require 'google/protobuf/timestamp_pb'
19
19
  Google::Protobuf::DescriptorPool.generated_pool.build do
20
20
  add_file("google/bigtable/admin/v2/bigtable_table_admin.proto", :syntax => :proto3) do
21
+ add_message "google.bigtable.admin.v2.RestoreTableRequest" do
22
+ optional :parent, :string, 1
23
+ optional :table_id, :string, 2
24
+ oneof :source do
25
+ optional :backup, :string, 3
26
+ end
27
+ end
28
+ add_message "google.bigtable.admin.v2.RestoreTableMetadata" do
29
+ optional :name, :string, 1
30
+ optional :source_type, :enum, 2, "google.bigtable.admin.v2.RestoreSourceType"
31
+ optional :optimize_table_operation_name, :string, 4
32
+ optional :progress, :message, 5, "google.bigtable.admin.v2.OperationProgress"
33
+ oneof :source_info do
34
+ optional :backup_info, :message, 3, "google.bigtable.admin.v2.BackupInfo"
35
+ end
36
+ end
37
+ add_message "google.bigtable.admin.v2.OptimizeRestoredTableMetadata" do
38
+ optional :name, :string, 1
39
+ optional :progress, :message, 2, "google.bigtable.admin.v2.OperationProgress"
40
+ end
21
41
  add_message "google.bigtable.admin.v2.CreateTableRequest" do
22
42
  optional :parent, :string, 1
23
43
  optional :table_id, :string, 2
@@ -124,13 +144,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
124
144
  optional :start_time, :message, 3, "google.protobuf.Timestamp"
125
145
  optional :end_time, :message, 4, "google.protobuf.Timestamp"
126
146
  end
127
- add_message "google.bigtable.admin.v2.GetBackupRequest" do
128
- optional :name, :string, 1
129
- end
130
147
  add_message "google.bigtable.admin.v2.UpdateBackupRequest" do
131
148
  optional :backup, :message, 1, "google.bigtable.admin.v2.Backup"
132
149
  optional :update_mask, :message, 2, "google.protobuf.FieldMask"
133
150
  end
151
+ add_message "google.bigtable.admin.v2.GetBackupRequest" do
152
+ optional :name, :string, 1
153
+ end
134
154
  add_message "google.bigtable.admin.v2.DeleteBackupRequest" do
135
155
  optional :name, :string, 1
136
156
  end
@@ -145,26 +165,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
145
165
  repeated :backups, :message, 1, "google.bigtable.admin.v2.Backup"
146
166
  optional :next_page_token, :string, 2
147
167
  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
168
168
  end
169
169
  end
170
170
 
@@ -173,6 +173,9 @@ module Google
173
173
  module Bigtable
174
174
  module Admin
175
175
  module V2
176
+ RestoreTableRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreTableRequest").msgclass
177
+ RestoreTableMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreTableMetadata").msgclass
178
+ OptimizeRestoredTableMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.OptimizeRestoredTableMetadata").msgclass
176
179
  CreateTableRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableRequest").msgclass
177
180
  CreateTableRequest::Split = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableRequest.Split").msgclass
178
181
  CreateTableFromSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableFromSnapshotRequest").msgclass
@@ -196,14 +199,11 @@ module Google
196
199
  CreateTableFromSnapshotMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateTableFromSnapshotMetadata").msgclass
197
200
  CreateBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateBackupRequest").msgclass
198
201
  CreateBackupMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateBackupMetadata").msgclass
199
- GetBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetBackupRequest").msgclass
200
202
  UpdateBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateBackupRequest").msgclass
203
+ GetBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetBackupRequest").msgclass
201
204
  DeleteBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteBackupRequest").msgclass
202
205
  ListBackupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListBackupsRequest").msgclass
203
206
  ListBackupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListBackupsResponse").msgclass
204
- RestoreTableRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreTableRequest").msgclass
205
- RestoreTableMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreTableMetadata").msgclass
206
- OptimizeRestoredTableMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.OptimizeRestoredTableMetadata").msgclass
207
207
  end
208
208
  end
209
209
  end
@@ -41,7 +41,7 @@ module Google
41
41
  # Creates a new table in the specified instance.
42
42
  # The table can be created with a full set of initial column families,
43
43
  # specified in the request.
44
- rpc :CreateTable, Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, Google::Cloud::Bigtable::Admin::V2::Table
44
+ rpc :CreateTable, ::Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, ::Google::Cloud::Bigtable::Admin::V2::Table
45
45
  # Creates a new table from the specified snapshot. The target table must
46
46
  # not exist. The snapshot and the table must be in the same instance.
47
47
  #
@@ -50,31 +50,31 @@ module Google
50
50
  # feature might be changed in backward-incompatible ways and is not
51
51
  # recommended for production use. It is not subject to any SLA or deprecation
52
52
  # policy.
53
- rpc :CreateTableFromSnapshot, Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, Google::Longrunning::Operation
53
+ rpc :CreateTableFromSnapshot, ::Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, ::Google::Longrunning::Operation
54
54
  # Lists all tables served from a specified instance.
55
- rpc :ListTables, Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, Google::Cloud::Bigtable::Admin::V2::ListTablesResponse
55
+ rpc :ListTables, ::Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, ::Google::Cloud::Bigtable::Admin::V2::ListTablesResponse
56
56
  # Gets metadata information about the specified table.
57
- rpc :GetTable, Google::Cloud::Bigtable::Admin::V2::GetTableRequest, Google::Cloud::Bigtable::Admin::V2::Table
57
+ rpc :GetTable, ::Google::Cloud::Bigtable::Admin::V2::GetTableRequest, ::Google::Cloud::Bigtable::Admin::V2::Table
58
58
  # Permanently deletes a specified table and all of its data.
59
- rpc :DeleteTable, Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, Google::Protobuf::Empty
59
+ rpc :DeleteTable, ::Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, ::Google::Protobuf::Empty
60
60
  # Performs a series of column family modifications on the specified table.
61
61
  # Either all or none of the modifications will occur before this method
62
62
  # returns, but data requests received prior to that point may see a table
63
63
  # where only some modifications have taken effect.
64
- rpc :ModifyColumnFamilies, Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, Google::Cloud::Bigtable::Admin::V2::Table
64
+ rpc :ModifyColumnFamilies, ::Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, ::Google::Cloud::Bigtable::Admin::V2::Table
65
65
  # Permanently drop/delete a row range from a specified table. The request can
66
66
  # specify whether to delete all rows in a table, or only those that match a
67
67
  # particular prefix.
68
- rpc :DropRowRange, Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, Google::Protobuf::Empty
68
+ rpc :DropRowRange, ::Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, ::Google::Protobuf::Empty
69
69
  # Generates a consistency token for a Table, which can be used in
70
70
  # CheckConsistency to check whether mutations to the table that finished
71
71
  # before this call started have been replicated. The tokens will be available
72
72
  # for 90 days.
73
- rpc :GenerateConsistencyToken, Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse
73
+ rpc :GenerateConsistencyToken, ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, ::Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse
74
74
  # Checks replication consistency based on a consistency token, that is, if
75
75
  # replication has caught up based on the conditions specified in the token
76
76
  # and the check request.
77
- rpc :CheckConsistency, Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse
77
+ rpc :CheckConsistency, ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, ::Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse
78
78
  # Creates a new snapshot in the specified cluster from the specified
79
79
  # source table. The cluster and the table must be in the same instance.
80
80
  #
@@ -83,7 +83,7 @@ module Google
83
83
  # feature might be changed in backward-incompatible ways and is not
84
84
  # recommended for production use. It is not subject to any SLA or deprecation
85
85
  # policy.
86
- rpc :SnapshotTable, Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, Google::Longrunning::Operation
86
+ rpc :SnapshotTable, ::Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, ::Google::Longrunning::Operation
87
87
  # Gets metadata information about the specified snapshot.
88
88
  #
89
89
  # Note: This is a private alpha release of Cloud Bigtable snapshots. This
@@ -91,7 +91,7 @@ module Google
91
91
  # feature might be changed in backward-incompatible ways and is not
92
92
  # recommended for production use. It is not subject to any SLA or deprecation
93
93
  # policy.
94
- rpc :GetSnapshot, Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, Google::Cloud::Bigtable::Admin::V2::Snapshot
94
+ rpc :GetSnapshot, ::Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, ::Google::Cloud::Bigtable::Admin::V2::Snapshot
95
95
  # Lists all snapshots associated with the specified cluster.
96
96
  #
97
97
  # Note: This is a private alpha release of Cloud Bigtable snapshots. This
@@ -99,7 +99,7 @@ module Google
99
99
  # feature might be changed in backward-incompatible ways and is not
100
100
  # recommended for production use. It is not subject to any SLA or deprecation
101
101
  # policy.
102
- rpc :ListSnapshots, Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse
102
+ rpc :ListSnapshots, ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse
103
103
  # Permanently deletes the specified snapshot.
104
104
  #
105
105
  # Note: This is a private alpha release of Cloud Bigtable snapshots. This
@@ -107,43 +107,43 @@ module Google
107
107
  # feature might be changed in backward-incompatible ways and is not
108
108
  # recommended for production use. It is not subject to any SLA or deprecation
109
109
  # policy.
110
- rpc :DeleteSnapshot, Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, Google::Protobuf::Empty
111
- # Starts creating a new Cloud Bigtable Backup. The returned backup
110
+ rpc :DeleteSnapshot, ::Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, ::Google::Protobuf::Empty
111
+ # Starts creating a new Cloud Bigtable Backup. The returned backup
112
112
  # [long-running operation][google.longrunning.Operation] can be used to
113
113
  # track creation of the backup. The
114
114
  # [metadata][google.longrunning.Operation.metadata] field type is
115
115
  # [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The
116
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, Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, Google::Longrunning::Operation
117
+ # [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the returned operation will stop the
118
+ # creation and delete the backup.
119
+ rpc :CreateBackup, ::Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, ::Google::Longrunning::Operation
120
120
  # Gets metadata on a pending or completed Cloud Bigtable Backup.
121
- rpc :GetBackup, Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, Google::Cloud::Bigtable::Admin::V2::Backup
121
+ rpc :GetBackup, ::Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, ::Google::Cloud::Bigtable::Admin::V2::Backup
122
122
  # Updates a pending or completed Cloud Bigtable Backup.
123
- rpc :UpdateBackup, Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, Google::Cloud::Bigtable::Admin::V2::Backup
123
+ rpc :UpdateBackup, ::Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, ::Google::Cloud::Bigtable::Admin::V2::Backup
124
124
  # Deletes a pending or completed Cloud Bigtable backup.
125
- rpc :DeleteBackup, Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, Google::Protobuf::Empty
125
+ rpc :DeleteBackup, ::Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, ::Google::Protobuf::Empty
126
126
  # Lists Cloud Bigtable backups. Returns both completed and pending
127
127
  # backups.
128
- rpc :ListBackups, Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse
128
+ rpc :ListBackups, ::Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, ::Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse
129
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
130
+ # must be in the same instance as the instance containing the backup. The
131
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
132
+ # be used to track the progress of the operation, and to cancel it. The
133
133
  # [metadata][google.longrunning.Operation.metadata] field type is
134
- # [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The
134
+ # [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The
135
135
  # [response][google.longrunning.Operation.response] type is
136
136
  # [Table][google.bigtable.admin.v2.Table], if successful.
137
- rpc :RestoreTable, Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, Google::Longrunning::Operation
138
- # Gets the access control policy for a resource.
137
+ rpc :RestoreTable, ::Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, ::Google::Longrunning::Operation
138
+ # Gets the access control policy for a Table or Backup resource.
139
139
  # Returns an empty policy if the resource exists but does not have a policy
140
140
  # set.
141
- rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
141
+ rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
142
142
  # Sets the access control policy on a Table or Backup resource.
143
143
  # Replaces any existing policy.
144
- rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
145
- # Returns permissions that the caller has on the specified table resource.
146
- rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
144
+ rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
145
+ # Returns permissions that the caller has on the specified Table or Backup resource.
146
+ rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
147
147
  end
148
148
 
149
149
  Stub = Service.rpc_stub_class
@@ -31,6 +31,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
31
31
  optional :state, :enum, 3, "google.bigtable.admin.v2.Cluster.State"
32
32
  optional :serve_nodes, :int32, 4
33
33
  optional :default_storage_type, :enum, 5, "google.bigtable.admin.v2.StorageType"
34
+ optional :encryption_config, :message, 6, "google.bigtable.admin.v2.Cluster.EncryptionConfig"
35
+ end
36
+ add_message "google.bigtable.admin.v2.Cluster.EncryptionConfig" do
37
+ optional :kms_key_name, :string, 1
34
38
  end
35
39
  add_enum "google.bigtable.admin.v2.Cluster.State" do
36
40
  value :STATE_NOT_KNOWN, 0
@@ -66,6 +70,7 @@ module Google
66
70
  Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule
67
71
  Instance::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Type").enummodule
68
72
  Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster").msgclass
73
+ Cluster::EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.EncryptionConfig").msgclass
69
74
  Cluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.State").enummodule
70
75
  AppProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile").msgclass
71
76
  AppProfile::MultiClusterRoutingUseAny = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny").msgclass
@@ -7,6 +7,7 @@ require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
8
  require 'google/protobuf/duration_pb'
9
9
  require 'google/protobuf/timestamp_pb'
10
+ require 'google/rpc/status_pb'
10
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
12
  add_file("google/bigtable/admin/v2/table.proto", :syntax => :proto3) do
12
13
  add_message "google.bigtable.admin.v2.RestoreInfo" do
@@ -24,6 +25,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
24
25
  end
25
26
  add_message "google.bigtable.admin.v2.Table.ClusterState" do
26
27
  optional :replication_state, :enum, 1, "google.bigtable.admin.v2.Table.ClusterState.ReplicationState"
28
+ repeated :encryption_info, :message, 2, "google.bigtable.admin.v2.EncryptionInfo"
27
29
  end
28
30
  add_enum "google.bigtable.admin.v2.Table.ClusterState.ReplicationState" do
29
31
  value :STATE_NOT_KNOWN, 0
@@ -42,6 +44,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
42
44
  value :NAME_ONLY, 1
43
45
  value :SCHEMA_VIEW, 2
44
46
  value :REPLICATION_VIEW, 3
47
+ value :ENCRYPTION_VIEW, 5
45
48
  value :FULL, 4
46
49
  end
47
50
  add_message "google.bigtable.admin.v2.ColumnFamily" do
@@ -61,6 +64,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
61
64
  add_message "google.bigtable.admin.v2.GcRule.Union" do
62
65
  repeated :rules, :message, 1, "google.bigtable.admin.v2.GcRule"
63
66
  end
67
+ add_message "google.bigtable.admin.v2.EncryptionInfo" do
68
+ optional :encryption_type, :enum, 3, "google.bigtable.admin.v2.EncryptionInfo.EncryptionType"
69
+ optional :encryption_status, :message, 4, "google.rpc.Status"
70
+ optional :kms_key_version, :string, 2
71
+ end
72
+ add_enum "google.bigtable.admin.v2.EncryptionInfo.EncryptionType" do
73
+ value :ENCRYPTION_TYPE_UNSPECIFIED, 0
74
+ value :GOOGLE_DEFAULT_ENCRYPTION, 1
75
+ value :CUSTOMER_MANAGED_ENCRYPTION, 2
76
+ end
64
77
  add_message "google.bigtable.admin.v2.Snapshot" do
65
78
  optional :name, :string, 1
66
79
  optional :source_table, :message, 2, "google.bigtable.admin.v2.Table"
@@ -83,6 +96,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
83
96
  optional :end_time, :message, 5, "google.protobuf.Timestamp"
84
97
  optional :size_bytes, :int64, 6
85
98
  optional :state, :enum, 7, "google.bigtable.admin.v2.Backup.State"
99
+ optional :encryption_info, :message, 9, "google.bigtable.admin.v2.EncryptionInfo"
86
100
  end
87
101
  add_enum "google.bigtable.admin.v2.Backup.State" do
88
102
  value :STATE_UNSPECIFIED, 0
@@ -117,6 +131,8 @@ module Google
117
131
  GcRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule").msgclass
118
132
  GcRule::Intersection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Intersection").msgclass
119
133
  GcRule::Union = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Union").msgclass
134
+ EncryptionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo").msgclass
135
+ EncryptionInfo::EncryptionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.EncryptionInfo.EncryptionType").enummodule
120
136
  Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot").msgclass
121
137
  Snapshot::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot.State").enummodule
122
138
  Backup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup").msgclass
@@ -36,3 +36,6 @@ module Google
36
36
  end
37
37
  end
38
38
  end
39
+
40
+ helper_path = ::File.join __dir__, "v2", "_helpers.rb"
41
+ require "google/cloud/bigtable/admin/v2/_helpers" if ::File.file? helper_path
@@ -63,7 +63,7 @@ module Google
63
63
  parent_config = while namespace.any?
64
64
  parent_name = namespace.join "::"
65
65
  parent_const = const_get parent_name
66
- break parent_const.configure if parent_const&.respond_to? :configure
66
+ break parent_const.configure if parent_const.respond_to? :configure
67
67
  namespace.pop
68
68
  end
69
69
  default_config = Client::Configuration.new parent_config
@@ -73,33 +73,33 @@ module Google
73
73
  default_config.rpcs.get_instance.timeout = 60.0
74
74
  default_config.rpcs.get_instance.retry_policy = {
75
75
  initial_delay: 1.0,
76
- max_delay: 60.0,
77
- multiplier: 2,
78
- retry_codes: [14, 4]
76
+ max_delay: 60.0,
77
+ multiplier: 2,
78
+ retry_codes: [14, 4]
79
79
  }
80
80
 
81
81
  default_config.rpcs.list_instances.timeout = 60.0
82
82
  default_config.rpcs.list_instances.retry_policy = {
83
83
  initial_delay: 1.0,
84
- max_delay: 60.0,
85
- multiplier: 2,
86
- retry_codes: [14, 4]
84
+ max_delay: 60.0,
85
+ multiplier: 2,
86
+ retry_codes: [14, 4]
87
87
  }
88
88
 
89
89
  default_config.rpcs.update_instance.timeout = 60.0
90
90
  default_config.rpcs.update_instance.retry_policy = {
91
91
  initial_delay: 1.0,
92
- max_delay: 60.0,
93
- multiplier: 2,
94
- retry_codes: [14, 4]
92
+ max_delay: 60.0,
93
+ multiplier: 2,
94
+ retry_codes: [14, 4]
95
95
  }
96
96
 
97
97
  default_config.rpcs.partial_update_instance.timeout = 60.0
98
98
  default_config.rpcs.partial_update_instance.retry_policy = {
99
99
  initial_delay: 1.0,
100
- max_delay: 60.0,
101
- multiplier: 2,
102
- retry_codes: [14, 4]
100
+ max_delay: 60.0,
101
+ multiplier: 2,
102
+ retry_codes: [14, 4]
103
103
  }
104
104
 
105
105
  default_config.rpcs.delete_instance.timeout = 60.0
@@ -109,25 +109,25 @@ module Google
109
109
  default_config.rpcs.get_cluster.timeout = 60.0
110
110
  default_config.rpcs.get_cluster.retry_policy = {
111
111
  initial_delay: 1.0,
112
- max_delay: 60.0,
113
- multiplier: 2,
114
- retry_codes: [14, 4]
112
+ max_delay: 60.0,
113
+ multiplier: 2,
114
+ retry_codes: [14, 4]
115
115
  }
116
116
 
117
117
  default_config.rpcs.list_clusters.timeout = 60.0
118
118
  default_config.rpcs.list_clusters.retry_policy = {
119
119
  initial_delay: 1.0,
120
- max_delay: 60.0,
121
- multiplier: 2,
122
- retry_codes: [14, 4]
120
+ max_delay: 60.0,
121
+ multiplier: 2,
122
+ retry_codes: [14, 4]
123
123
  }
124
124
 
125
125
  default_config.rpcs.update_cluster.timeout = 60.0
126
126
  default_config.rpcs.update_cluster.retry_policy = {
127
127
  initial_delay: 1.0,
128
- max_delay: 60.0,
129
- multiplier: 2,
130
- retry_codes: [14, 4]
128
+ max_delay: 60.0,
129
+ multiplier: 2,
130
+ retry_codes: [14, 4]
131
131
  }
132
132
 
133
133
  default_config.rpcs.delete_cluster.timeout = 60.0
@@ -137,25 +137,25 @@ module Google
137
137
  default_config.rpcs.get_app_profile.timeout = 60.0
138
138
  default_config.rpcs.get_app_profile.retry_policy = {
139
139
  initial_delay: 1.0,
140
- max_delay: 60.0,
141
- multiplier: 2,
142
- retry_codes: [14, 4]
140
+ max_delay: 60.0,
141
+ multiplier: 2,
142
+ retry_codes: [14, 4]
143
143
  }
144
144
 
145
145
  default_config.rpcs.list_app_profiles.timeout = 60.0
146
146
  default_config.rpcs.list_app_profiles.retry_policy = {
147
147
  initial_delay: 1.0,
148
- max_delay: 60.0,
149
- multiplier: 2,
150
- retry_codes: [14, 4]
148
+ max_delay: 60.0,
149
+ multiplier: 2,
150
+ retry_codes: [14, 4]
151
151
  }
152
152
 
153
153
  default_config.rpcs.update_app_profile.timeout = 60.0
154
154
  default_config.rpcs.update_app_profile.retry_policy = {
155
155
  initial_delay: 1.0,
156
- max_delay: 60.0,
157
- multiplier: 2,
158
- retry_codes: [14, 4]
156
+ max_delay: 60.0,
157
+ multiplier: 2,
158
+ retry_codes: [14, 4]
159
159
  }
160
160
 
161
161
  default_config.rpcs.delete_app_profile.timeout = 60.0
@@ -163,9 +163,9 @@ module Google
163
163
  default_config.rpcs.get_iam_policy.timeout = 60.0
164
164
  default_config.rpcs.get_iam_policy.retry_policy = {
165
165
  initial_delay: 1.0,
166
- max_delay: 60.0,
167
- multiplier: 2,
168
- retry_codes: [14, 4]
166
+ max_delay: 60.0,
167
+ multiplier: 2,
168
+ retry_codes: [14, 4]
169
169
  }
170
170
 
171
171
  default_config.rpcs.set_iam_policy.timeout = 60.0
@@ -173,9 +173,9 @@ module Google
173
173
  default_config.rpcs.test_iam_permissions.timeout = 60.0
174
174
  default_config.rpcs.test_iam_permissions.retry_policy = {
175
175
  initial_delay: 1.0,
176
- max_delay: 60.0,
177
- multiplier: 2,
178
- retry_codes: [14, 4]
176
+ max_delay: 60.0,
177
+ multiplier: 2,
178
+ retry_codes: [14, 4]
179
179
  }
180
180
 
181
181
  default_config
@@ -239,7 +239,13 @@ module Google
239
239
 
240
240
  # Create credentials
241
241
  credentials = @config.credentials
242
- credentials ||= Credentials.default scope: @config.scope
242
+ # Use self-signed JWT if the scope and endpoint are unchanged from default,
243
+ # but only if the default endpoint does not have a region prefix.
244
+ enable_self_signed_jwt = @config.scope == Client.configure.scope &&
245
+ @config.endpoint == Client.configure.endpoint &&
246
+ !@config.endpoint.split(".").first.include?("-")
247
+ credentials ||= Credentials.default scope: @config.scope,
248
+ enable_self_signed_jwt: enable_self_signed_jwt
243
249
  if credentials.is_a?(String) || credentials.is_a?(Hash)
244
250
  credentials = Credentials.new credentials, scope: @config.scope
245
251
  end
@@ -938,7 +944,7 @@ module Google
938
944
  # @param options [::Gapic::CallOptions, ::Hash]
939
945
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
940
946
  #
941
- # @overload update_cluster(location: nil, serve_nodes: nil, default_storage_type: nil)
947
+ # @overload update_cluster(location: nil, serve_nodes: nil, default_storage_type: nil, encryption_config: nil)
942
948
  # Pass arguments to `update_cluster` via keyword arguments. Note that at
943
949
  # least one keyword argument is required. To specify no parameters, or to keep all
944
950
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -956,6 +962,8 @@ module Google
956
962
  # (`CreationOnly`)
957
963
  # The type of storage used by this cluster to serve its
958
964
  # parent instance's tables, unless explicitly overridden.
965
+ # @param encryption_config [::Google::Cloud::Bigtable::Admin::V2::Cluster::EncryptionConfig, ::Hash]
966
+ # Immutable. The encryption configuration for CMEK-protected clusters.
959
967
  #
960
968
  # @yield [response, operation] Access the result along with the RPC operation
961
969
  # @yieldparam response [::Gapic::Operation]
@@ -1391,7 +1399,7 @@ module Google
1391
1399
  # Required. The unique name of the app profile to be deleted. Values are of the form
1392
1400
  # `projects/{project}/instances/{instance}/appProfiles/{app_profile}`.
1393
1401
  # @param ignore_warnings [::Boolean]
1394
- # If true, ignore safety checks when deleting the app profile.
1402
+ # Required. If true, ignore safety checks when deleting the app profile.
1395
1403
  #
1396
1404
  # @yield [response, operation] Access the result along with the RPC operation
1397
1405
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -1746,7 +1754,7 @@ module Google
1746
1754
  config_attr :scope, nil, ::String, ::Array, nil
1747
1755
  config_attr :lib_name, nil, ::String, nil
1748
1756
  config_attr :lib_version, nil, ::String, nil
1749
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1757
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
1750
1758
  config_attr :interceptors, nil, ::Array, nil
1751
1759
  config_attr :timeout, nil, ::Numeric, nil
1752
1760
  config_attr :metadata, nil, ::Hash, nil
@@ -1767,7 +1775,7 @@ module Google
1767
1775
  def rpcs
1768
1776
  @rpcs ||= begin
1769
1777
  parent_rpcs = nil
1770
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
1778
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1771
1779
  Rpcs.new parent_rpcs
1772
1780
  end
1773
1781
  end
@@ -1779,7 +1787,7 @@ module Google
1779
1787
  # Each configuration object is of type `Gapic::Config::Method` and includes
1780
1788
  # the following configuration fields:
1781
1789
  #
1782
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
1790
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1783
1791
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
1784
1792
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1785
1793
  # include the following keys:
@@ -1888,43 +1896,43 @@ module Google
1888
1896
 
1889
1897
  # @private
1890
1898
  def initialize parent_rpcs = nil
1891
- create_instance_config = parent_rpcs&.create_instance if parent_rpcs&.respond_to? :create_instance
1899
+ create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
1892
1900
  @create_instance = ::Gapic::Config::Method.new create_instance_config
1893
- get_instance_config = parent_rpcs&.get_instance if parent_rpcs&.respond_to? :get_instance
1901
+ get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
1894
1902
  @get_instance = ::Gapic::Config::Method.new get_instance_config
1895
- list_instances_config = parent_rpcs&.list_instances if parent_rpcs&.respond_to? :list_instances
1903
+ list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
1896
1904
  @list_instances = ::Gapic::Config::Method.new list_instances_config
1897
- update_instance_config = parent_rpcs&.update_instance if parent_rpcs&.respond_to? :update_instance
1905
+ update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance
1898
1906
  @update_instance = ::Gapic::Config::Method.new update_instance_config
1899
- partial_update_instance_config = parent_rpcs&.partial_update_instance if parent_rpcs&.respond_to? :partial_update_instance
1907
+ partial_update_instance_config = parent_rpcs.partial_update_instance if parent_rpcs.respond_to? :partial_update_instance
1900
1908
  @partial_update_instance = ::Gapic::Config::Method.new partial_update_instance_config
1901
- delete_instance_config = parent_rpcs&.delete_instance if parent_rpcs&.respond_to? :delete_instance
1909
+ delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
1902
1910
  @delete_instance = ::Gapic::Config::Method.new delete_instance_config
1903
- create_cluster_config = parent_rpcs&.create_cluster if parent_rpcs&.respond_to? :create_cluster
1911
+ create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
1904
1912
  @create_cluster = ::Gapic::Config::Method.new create_cluster_config
1905
- get_cluster_config = parent_rpcs&.get_cluster if parent_rpcs&.respond_to? :get_cluster
1913
+ get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
1906
1914
  @get_cluster = ::Gapic::Config::Method.new get_cluster_config
1907
- list_clusters_config = parent_rpcs&.list_clusters if parent_rpcs&.respond_to? :list_clusters
1915
+ list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
1908
1916
  @list_clusters = ::Gapic::Config::Method.new list_clusters_config
1909
- update_cluster_config = parent_rpcs&.update_cluster if parent_rpcs&.respond_to? :update_cluster
1917
+ update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
1910
1918
  @update_cluster = ::Gapic::Config::Method.new update_cluster_config
1911
- delete_cluster_config = parent_rpcs&.delete_cluster if parent_rpcs&.respond_to? :delete_cluster
1919
+ delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
1912
1920
  @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
1913
- create_app_profile_config = parent_rpcs&.create_app_profile if parent_rpcs&.respond_to? :create_app_profile
1921
+ create_app_profile_config = parent_rpcs.create_app_profile if parent_rpcs.respond_to? :create_app_profile
1914
1922
  @create_app_profile = ::Gapic::Config::Method.new create_app_profile_config
1915
- get_app_profile_config = parent_rpcs&.get_app_profile if parent_rpcs&.respond_to? :get_app_profile
1923
+ get_app_profile_config = parent_rpcs.get_app_profile if parent_rpcs.respond_to? :get_app_profile
1916
1924
  @get_app_profile = ::Gapic::Config::Method.new get_app_profile_config
1917
- list_app_profiles_config = parent_rpcs&.list_app_profiles if parent_rpcs&.respond_to? :list_app_profiles
1925
+ list_app_profiles_config = parent_rpcs.list_app_profiles if parent_rpcs.respond_to? :list_app_profiles
1918
1926
  @list_app_profiles = ::Gapic::Config::Method.new list_app_profiles_config
1919
- update_app_profile_config = parent_rpcs&.update_app_profile if parent_rpcs&.respond_to? :update_app_profile
1927
+ update_app_profile_config = parent_rpcs.update_app_profile if parent_rpcs.respond_to? :update_app_profile
1920
1928
  @update_app_profile = ::Gapic::Config::Method.new update_app_profile_config
1921
- delete_app_profile_config = parent_rpcs&.delete_app_profile if parent_rpcs&.respond_to? :delete_app_profile
1929
+ delete_app_profile_config = parent_rpcs.delete_app_profile if parent_rpcs.respond_to? :delete_app_profile
1922
1930
  @delete_app_profile = ::Gapic::Config::Method.new delete_app_profile_config
1923
- get_iam_policy_config = parent_rpcs&.get_iam_policy if parent_rpcs&.respond_to? :get_iam_policy
1931
+ get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
1924
1932
  @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
1925
- set_iam_policy_config = parent_rpcs&.set_iam_policy if parent_rpcs&.respond_to? :set_iam_policy
1933
+ set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
1926
1934
  @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
1927
- test_iam_permissions_config = parent_rpcs&.test_iam_permissions if parent_rpcs&.respond_to? :test_iam_permissions
1935
+ test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
1928
1936
  @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
1929
1937
 
1930
1938
  yield self if block_given?