google-cloud-bigtable 1.3.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/CHANGELOG.md +26 -0
  4. data/lib/google-cloud-bigtable.rb +29 -27
  5. data/lib/google/cloud/bigtable.rb +18 -26
  6. data/lib/google/cloud/bigtable/app_profile.rb +3 -3
  7. data/lib/google/cloud/bigtable/app_profile/list.rb +4 -2
  8. data/lib/google/cloud/bigtable/backup.rb +2 -2
  9. data/lib/google/cloud/bigtable/backup/list.rb +2 -2
  10. data/lib/google/cloud/bigtable/chunk_processor.rb +1 -1
  11. data/lib/google/cloud/bigtable/cluster.rb +2 -2
  12. data/lib/google/cloud/bigtable/cluster/list.rb +1 -1
  13. data/lib/google/cloud/bigtable/column_family.rb +2 -2
  14. data/lib/google/cloud/bigtable/column_family_map.rb +10 -10
  15. data/lib/google/cloud/bigtable/column_range.rb +2 -2
  16. data/lib/google/cloud/bigtable/credentials.rb +36 -2
  17. data/lib/google/cloud/bigtable/gc_rule.rb +7 -7
  18. data/lib/google/cloud/bigtable/instance.rb +6 -6
  19. data/lib/google/cloud/bigtable/instance/cluster_map.rb +1 -1
  20. data/lib/google/cloud/bigtable/instance/list.rb +1 -1
  21. data/lib/google/cloud/bigtable/longrunning_job.rb +2 -2
  22. data/lib/google/cloud/bigtable/mutation_entry.rb +10 -9
  23. data/lib/google/cloud/bigtable/mutation_operations.rb +2 -2
  24. data/lib/google/cloud/bigtable/project.rb +1 -1
  25. data/lib/google/cloud/bigtable/read_modify_write_rule.rb +2 -2
  26. data/lib/google/cloud/bigtable/read_operations.rb +2 -2
  27. data/lib/google/cloud/bigtable/routing_policy.rb +2 -2
  28. data/lib/google/cloud/bigtable/row_filter/chain_filter.rb +3 -3
  29. data/lib/google/cloud/bigtable/row_filter/condition_filter.rb +3 -3
  30. data/lib/google/cloud/bigtable/row_filter/interleave_filter.rb +3 -3
  31. data/lib/google/cloud/bigtable/row_filter/simple_filter.rb +3 -3
  32. data/lib/google/cloud/bigtable/row_range.rb +2 -2
  33. data/lib/google/cloud/bigtable/rows_mutator.rb +3 -3
  34. data/lib/google/cloud/bigtable/rows_reader.rb +10 -10
  35. data/lib/google/cloud/bigtable/sample_row_key.rb +2 -2
  36. data/lib/google/cloud/bigtable/service.rb +198 -281
  37. data/lib/google/cloud/bigtable/table.rb +5 -4
  38. data/lib/google/cloud/bigtable/table/cluster_state.rb +2 -2
  39. data/lib/google/cloud/bigtable/table/list.rb +1 -1
  40. data/lib/google/cloud/bigtable/value_range.rb +2 -2
  41. data/lib/google/cloud/bigtable/version.rb +1 -1
  42. metadata +11 -93
  43. data/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +0 -145
  44. data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +0 -90
  45. data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +0 -208
  46. data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +0 -154
  47. data/lib/google/bigtable/admin/v2/common_pb.rb +0 -30
  48. data/lib/google/bigtable/admin/v2/instance_pb.rb +0 -74
  49. data/lib/google/bigtable/admin/v2/table_pb.rb +0 -127
  50. data/lib/google/bigtable/v2/bigtable_pb.rb +0 -113
  51. data/lib/google/bigtable/v2/bigtable_services_pb.rb +0 -68
  52. data/lib/google/bigtable/v2/data_pb.rb +0 -156
  53. data/lib/google/cloud/bigtable/admin.rb +0 -202
  54. data/lib/google/cloud/bigtable/admin/credentials.rb +0 -27
  55. data/lib/google/cloud/bigtable/admin/v2.rb +0 -223
  56. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client.rb +0 -1451
  57. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client_config.json +0 -139
  58. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client.rb +0 -1734
  59. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client_config.json +0 -163
  60. data/lib/google/cloud/bigtable/admin/v2/credentials.rb +0 -51
  61. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_instance_admin.rb +0 -297
  62. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_table_admin.rb +0 -587
  63. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/instance.rb +0 -193
  64. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/table.rb +0 -303
  65. data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/iam_policy.rb +0 -64
  66. data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/options.rb +0 -33
  67. data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/policy.rb +0 -151
  68. data/lib/google/cloud/bigtable/admin/v2/doc/google/longrunning/operations.rb +0 -51
  69. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/any.rb +0 -131
  70. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/duration.rb +0 -91
  71. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/empty.rb +0 -29
  72. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/field_mask.rb +0 -222
  73. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/timestamp.rb +0 -113
  74. data/lib/google/cloud/bigtable/admin/v2/doc/google/rpc/status.rb +0 -39
  75. data/lib/google/cloud/bigtable/admin/v2/doc/google/type/expr.rb +0 -45
  76. data/lib/google/cloud/bigtable/v2.rb +0 -146
  77. data/lib/google/cloud/bigtable/v2/bigtable_client.rb +0 -591
  78. data/lib/google/cloud/bigtable/v2/bigtable_client_config.json +0 -83
  79. data/lib/google/cloud/bigtable/v2/credentials.rb +0 -46
  80. data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/bigtable.rb +0 -290
  81. data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/data.rb +0 -493
  82. data/lib/google/cloud/bigtable/v2/doc/google/protobuf/any.rb +0 -131
  83. data/lib/google/cloud/bigtable/v2/doc/google/protobuf/wrappers.rb +0 -34
  84. data/lib/google/cloud/bigtable/v2/doc/google/rpc/status.rb +0 -39
@@ -431,7 +431,7 @@ module Google
431
431
 
432
432
  yield column_families if block_given?
433
433
 
434
- table = Google::Bigtable::Admin::V2::Table.new({
434
+ table = Google::Cloud::Bigtable::Admin::V2::Table.new({
435
435
  column_families: column_families.to_grpc_hash,
436
436
  granularity: granularity
437
437
  }.delete_if { |_, v| v.nil? })
@@ -587,6 +587,7 @@ module Google
587
587
  #
588
588
  # @param row_key_prefix [String] Row key prefix (for example, "user").
589
589
  # @param delete_all_data [Boolean]
590
+ # @param timeout [Integer] Call timeout in seconds.
590
591
  # @return [Boolean]
591
592
  #
592
593
  # @example
@@ -615,9 +616,9 @@ module Google
615
616
  end
616
617
 
617
618
  # @private
618
- # Creates a new Table instance from a Google::Bigtable::Admin::V2::Table.
619
+ # Creates a new Table instance from a Google::Cloud::Bigtable::Admin::V2::Table.
619
620
  #
620
- # @param grpc [Google::Bigtable::Admin::V2::Table]
621
+ # @param grpc [Google::Cloud::Bigtable::Admin::V2::Table]
621
622
  # @param service [Google::Cloud::Bigtable::Service]
622
623
  # @param view [Symbol] View type.
623
624
  # @return [Google::Cloud::Bigtable::Table]
@@ -636,7 +637,7 @@ module Google
636
637
  # @return [Google::Cloud::Bigtable::Table]
637
638
  #
638
639
  def self.from_path path, service
639
- grpc = Google::Bigtable::Admin::V2::Table.new name: path
640
+ grpc = Google::Cloud::Bigtable::Admin::V2::Table.new name: path
640
641
  new grpc, service, view: :NAME_ONLY
641
642
  end
642
643
 
@@ -110,8 +110,8 @@ module Google
110
110
  end
111
111
 
112
112
  # @private
113
- # New Table::ClusterState from a Google::Bigtable::Admin::V2::Table::ClusterState object.
114
- # @param grpc [Google::Bigtable::Admin::V2::Table::ClusterState]
113
+ # New Table::ClusterState from a Google::Cloud::Bigtable::Admin::V2::Table::ClusterState object.
114
+ # @param grpc [Google::Cloud::Bigtable::Admin::V2::Table::ClusterState]
115
115
  # @param cluster_name [String]
116
116
  # @return [Google::Cloud::Bigtable::Table::ClusterState]
117
117
  #
@@ -127,7 +127,7 @@ module Google
127
127
  end
128
128
 
129
129
  # @private
130
- # New Table::List from a Google::Gax::PagedEnumerable<Google::Bigtable::Admin::V2::Table> object.
130
+ # New Table::List from a Gapic::PagedEnumerable<Google::Cloud::Bigtable::Admin::V2::Table> object.
131
131
  #
132
132
  def self.from_grpc grpc, service
133
133
  tables = List.new(Array(grpc.response.tables).map do |table|
@@ -59,7 +59,7 @@ module Google
59
59
  # @private
60
60
  # Creates a value range instance.
61
61
  def initialize
62
- @grpc = Google::Bigtable::V2::ValueRange.new
62
+ @grpc = Google::Cloud::Bigtable::V2::ValueRange.new
63
63
  end
64
64
 
65
65
  ##
@@ -170,7 +170,7 @@ module Google
170
170
 
171
171
  # @private
172
172
  #
173
- # @return [Google::Bigtable::V2::ValueRange]
173
+ # @return [Google::Cloud::Bigtable::V2::ValueRange]
174
174
  #
175
175
  def to_grpc
176
176
  @grpc
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Bigtable
19
- VERSION = "1.3.0".freeze
19
+ VERSION = "2.0.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,97 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigtable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-21 00:00:00.000000000 Z
11
+ date: 2020-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: google-cloud-core
14
+ name: google-cloud-bigtable-admin-v2
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.1'
19
+ version: '0.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.1'
26
+ version: '0.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: google-gax
28
+ name: google-cloud-bigtable-v2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.8'
33
+ version: '0.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.8'
41
- - !ruby/object:Gem::Dependency
42
- name: googleapis-common-protos
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: 1.3.9
48
- - - "<"
49
- - !ruby/object:Gem::Version
50
- version: '2.0'
51
- type: :runtime
52
- prerelease: false
53
- version_requirements: !ruby/object:Gem::Requirement
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: 1.3.9
58
- - - "<"
59
- - !ruby/object:Gem::Version
60
- version: '2.0'
40
+ version: '0.0'
61
41
  - !ruby/object:Gem::Dependency
62
- name: googleapis-common-protos-types
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- version: 1.0.4
68
- - - "<"
69
- - !ruby/object:Gem::Version
70
- version: '2.0'
71
- type: :runtime
72
- prerelease: false
73
- version_requirements: !ruby/object:Gem::Requirement
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- version: 1.0.4
78
- - - "<"
79
- - !ruby/object:Gem::Version
80
- version: '2.0'
81
- - !ruby/object:Gem::Dependency
82
- name: grpc-google-iam-v1
42
+ name: google-cloud-core
83
43
  requirement: !ruby/object:Gem::Requirement
84
44
  requirements:
85
45
  - - "~>"
86
46
  - !ruby/object:Gem::Version
87
- version: 0.6.9
47
+ version: '1.5'
88
48
  type: :runtime
89
49
  prerelease: false
90
50
  version_requirements: !ruby/object:Gem::Requirement
91
51
  requirements:
92
52
  - - "~>"
93
53
  - !ruby/object:Gem::Version
94
- version: 0.6.9
54
+ version: '1.5'
95
55
  - !ruby/object:Gem::Dependency
96
56
  name: google-style
97
57
  requirement: !ruby/object:Gem::Requirement
@@ -221,40 +181,7 @@ files:
221
181
  - OVERVIEW.md
222
182
  - TROUBLESHOOTING.md
223
183
  - lib/google-cloud-bigtable.rb
224
- - lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb
225
- - lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb
226
- - lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb
227
- - lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb
228
- - lib/google/bigtable/admin/v2/common_pb.rb
229
- - lib/google/bigtable/admin/v2/instance_pb.rb
230
- - lib/google/bigtable/admin/v2/table_pb.rb
231
- - lib/google/bigtable/v2/bigtable_pb.rb
232
- - lib/google/bigtable/v2/bigtable_services_pb.rb
233
- - lib/google/bigtable/v2/data_pb.rb
234
184
  - lib/google/cloud/bigtable.rb
235
- - lib/google/cloud/bigtable/admin.rb
236
- - lib/google/cloud/bigtable/admin/credentials.rb
237
- - lib/google/cloud/bigtable/admin/v2.rb
238
- - lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client.rb
239
- - lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client_config.json
240
- - lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client.rb
241
- - lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client_config.json
242
- - lib/google/cloud/bigtable/admin/v2/credentials.rb
243
- - lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_instance_admin.rb
244
- - lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_table_admin.rb
245
- - lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/instance.rb
246
- - lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/table.rb
247
- - lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/iam_policy.rb
248
- - lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/options.rb
249
- - lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/policy.rb
250
- - lib/google/cloud/bigtable/admin/v2/doc/google/longrunning/operations.rb
251
- - lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/any.rb
252
- - lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/duration.rb
253
- - lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/empty.rb
254
- - lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/field_mask.rb
255
- - lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/timestamp.rb
256
- - lib/google/cloud/bigtable/admin/v2/doc/google/rpc/status.rb
257
- - lib/google/cloud/bigtable/admin/v2/doc/google/type/expr.rb
258
185
  - lib/google/cloud/bigtable/app_profile.rb
259
186
  - lib/google/cloud/bigtable/app_profile/job.rb
260
187
  - lib/google/cloud/bigtable/app_profile/list.rb
@@ -300,15 +227,6 @@ files:
300
227
  - lib/google/cloud/bigtable/table/cluster_state.rb
301
228
  - lib/google/cloud/bigtable/table/list.rb
302
229
  - lib/google/cloud/bigtable/table/restore_job.rb
303
- - lib/google/cloud/bigtable/v2.rb
304
- - lib/google/cloud/bigtable/v2/bigtable_client.rb
305
- - lib/google/cloud/bigtable/v2/bigtable_client_config.json
306
- - lib/google/cloud/bigtable/v2/credentials.rb
307
- - lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/bigtable.rb
308
- - lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/data.rb
309
- - lib/google/cloud/bigtable/v2/doc/google/protobuf/any.rb
310
- - lib/google/cloud/bigtable/v2/doc/google/protobuf/wrappers.rb
311
- - lib/google/cloud/bigtable/v2/doc/google/rpc/status.rb
312
230
  - lib/google/cloud/bigtable/value_range.rb
313
231
  - lib/google/cloud/bigtable/version.rb
314
232
  homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-bigtable
@@ -1,145 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/bigtable/admin/v2/bigtable_instance_admin.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
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/instance_pb'
12
- require 'google/iam/v1/iam_policy_pb'
13
- require 'google/iam/v1/policy_pb'
14
- require 'google/longrunning/operations_pb'
15
- require 'google/protobuf/empty_pb'
16
- require 'google/protobuf/field_mask_pb'
17
- require 'google/protobuf/timestamp_pb'
18
- Google::Protobuf::DescriptorPool.generated_pool.build do
19
- add_message "google.bigtable.admin.v2.CreateInstanceRequest" do
20
- optional :parent, :string, 1
21
- optional :instance_id, :string, 2
22
- optional :instance, :message, 3, "google.bigtable.admin.v2.Instance"
23
- map :clusters, :string, :message, 4, "google.bigtable.admin.v2.Cluster"
24
- end
25
- add_message "google.bigtable.admin.v2.GetInstanceRequest" do
26
- optional :name, :string, 1
27
- end
28
- add_message "google.bigtable.admin.v2.ListInstancesRequest" do
29
- optional :parent, :string, 1
30
- optional :page_token, :string, 2
31
- end
32
- add_message "google.bigtable.admin.v2.ListInstancesResponse" do
33
- repeated :instances, :message, 1, "google.bigtable.admin.v2.Instance"
34
- repeated :failed_locations, :string, 2
35
- optional :next_page_token, :string, 3
36
- end
37
- add_message "google.bigtable.admin.v2.PartialUpdateInstanceRequest" do
38
- optional :instance, :message, 1, "google.bigtable.admin.v2.Instance"
39
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
40
- end
41
- add_message "google.bigtable.admin.v2.DeleteInstanceRequest" do
42
- optional :name, :string, 1
43
- end
44
- add_message "google.bigtable.admin.v2.CreateClusterRequest" do
45
- optional :parent, :string, 1
46
- optional :cluster_id, :string, 2
47
- optional :cluster, :message, 3, "google.bigtable.admin.v2.Cluster"
48
- end
49
- add_message "google.bigtable.admin.v2.GetClusterRequest" do
50
- optional :name, :string, 1
51
- end
52
- add_message "google.bigtable.admin.v2.ListClustersRequest" do
53
- optional :parent, :string, 1
54
- optional :page_token, :string, 2
55
- end
56
- add_message "google.bigtable.admin.v2.ListClustersResponse" do
57
- repeated :clusters, :message, 1, "google.bigtable.admin.v2.Cluster"
58
- repeated :failed_locations, :string, 2
59
- optional :next_page_token, :string, 3
60
- end
61
- add_message "google.bigtable.admin.v2.DeleteClusterRequest" do
62
- optional :name, :string, 1
63
- end
64
- add_message "google.bigtable.admin.v2.CreateInstanceMetadata" do
65
- optional :original_request, :message, 1, "google.bigtable.admin.v2.CreateInstanceRequest"
66
- optional :request_time, :message, 2, "google.protobuf.Timestamp"
67
- optional :finish_time, :message, 3, "google.protobuf.Timestamp"
68
- end
69
- add_message "google.bigtable.admin.v2.UpdateInstanceMetadata" do
70
- optional :original_request, :message, 1, "google.bigtable.admin.v2.PartialUpdateInstanceRequest"
71
- optional :request_time, :message, 2, "google.protobuf.Timestamp"
72
- optional :finish_time, :message, 3, "google.protobuf.Timestamp"
73
- end
74
- add_message "google.bigtable.admin.v2.CreateClusterMetadata" do
75
- optional :original_request, :message, 1, "google.bigtable.admin.v2.CreateClusterRequest"
76
- optional :request_time, :message, 2, "google.protobuf.Timestamp"
77
- optional :finish_time, :message, 3, "google.protobuf.Timestamp"
78
- end
79
- add_message "google.bigtable.admin.v2.UpdateClusterMetadata" do
80
- optional :original_request, :message, 1, "google.bigtable.admin.v2.Cluster"
81
- optional :request_time, :message, 2, "google.protobuf.Timestamp"
82
- optional :finish_time, :message, 3, "google.protobuf.Timestamp"
83
- end
84
- add_message "google.bigtable.admin.v2.CreateAppProfileRequest" do
85
- optional :parent, :string, 1
86
- optional :app_profile_id, :string, 2
87
- optional :app_profile, :message, 3, "google.bigtable.admin.v2.AppProfile"
88
- optional :ignore_warnings, :bool, 4
89
- end
90
- add_message "google.bigtable.admin.v2.GetAppProfileRequest" do
91
- optional :name, :string, 1
92
- end
93
- add_message "google.bigtable.admin.v2.ListAppProfilesRequest" do
94
- optional :parent, :string, 1
95
- optional :page_size, :int32, 3
96
- optional :page_token, :string, 2
97
- end
98
- add_message "google.bigtable.admin.v2.ListAppProfilesResponse" do
99
- repeated :app_profiles, :message, 1, "google.bigtable.admin.v2.AppProfile"
100
- optional :next_page_token, :string, 2
101
- repeated :failed_locations, :string, 3
102
- end
103
- add_message "google.bigtable.admin.v2.UpdateAppProfileRequest" do
104
- optional :app_profile, :message, 1, "google.bigtable.admin.v2.AppProfile"
105
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
106
- optional :ignore_warnings, :bool, 3
107
- end
108
- add_message "google.bigtable.admin.v2.DeleteAppProfileRequest" do
109
- optional :name, :string, 1
110
- optional :ignore_warnings, :bool, 2
111
- end
112
- add_message "google.bigtable.admin.v2.UpdateAppProfileMetadata" do
113
- end
114
- end
115
-
116
- module Google
117
- module Bigtable
118
- module Admin
119
- end
120
- end
121
- end
122
- module Google::Bigtable::Admin::V2
123
- CreateInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceRequest").msgclass
124
- GetInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetInstanceRequest").msgclass
125
- ListInstancesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesRequest").msgclass
126
- ListInstancesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesResponse").msgclass
127
- PartialUpdateInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateInstanceRequest").msgclass
128
- DeleteInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteInstanceRequest").msgclass
129
- CreateClusterRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterRequest").msgclass
130
- GetClusterRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetClusterRequest").msgclass
131
- ListClustersRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersRequest").msgclass
132
- ListClustersResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersResponse").msgclass
133
- DeleteClusterRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteClusterRequest").msgclass
134
- CreateInstanceMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceMetadata").msgclass
135
- UpdateInstanceMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateInstanceMetadata").msgclass
136
- CreateClusterMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata").msgclass
137
- UpdateClusterMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateClusterMetadata").msgclass
138
- CreateAppProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateAppProfileRequest").msgclass
139
- GetAppProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetAppProfileRequest").msgclass
140
- ListAppProfilesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesRequest").msgclass
141
- ListAppProfilesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesResponse").msgclass
142
- UpdateAppProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileRequest").msgclass
143
- DeleteAppProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteAppProfileRequest").msgclass
144
- UpdateAppProfileMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileMetadata").msgclass
145
- end
@@ -1,90 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/bigtable/admin/v2/bigtable_instance_admin.proto for package 'Google::Cloud::Bigtable::Admin::V2'
3
- # Original file comments:
4
- # Copyright 2019 Google LLC.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
- #
19
-
20
-
21
- require 'grpc'
22
- require 'google/bigtable/admin/v2/bigtable_instance_admin_pb'
23
-
24
- module Google
25
- module Bigtable
26
- module Admin
27
- end
28
- end
29
- end
30
- module Google::Bigtable::Admin::V2
31
- module BigtableInstanceAdmin
32
- # Service for creating, configuring, and deleting Cloud Bigtable Instances and
33
- # Clusters. Provides access to the Instance and Cluster schemas only, not the
34
- # tables' metadata or data stored in those tables.
35
- class Service
36
-
37
- include GRPC::GenericService
38
-
39
- self.marshal_class_method = :encode
40
- self.unmarshal_class_method = :decode
41
- self.service_name = 'google.bigtable.admin.v2.BigtableInstanceAdmin'
42
-
43
- # Create an instance within a project.
44
- rpc :CreateInstance, CreateInstanceRequest, Google::Longrunning::Operation
45
- # Gets information about an instance.
46
- rpc :GetInstance, GetInstanceRequest, Instance
47
- # Lists information about instances in a project.
48
- rpc :ListInstances, ListInstancesRequest, ListInstancesResponse
49
- # Updates an instance within a project. This method updates only the display
50
- # name and type for an Instance. To update other Instance properties, such as
51
- # labels, use PartialUpdateInstance.
52
- rpc :UpdateInstance, Instance, Instance
53
- # Partially updates an instance within a project. This method can modify all
54
- # fields of an Instance and is the preferred way to update an Instance.
55
- rpc :PartialUpdateInstance, PartialUpdateInstanceRequest, Google::Longrunning::Operation
56
- # Delete an instance from a project.
57
- rpc :DeleteInstance, DeleteInstanceRequest, Google::Protobuf::Empty
58
- # Creates a cluster within an instance.
59
- rpc :CreateCluster, CreateClusterRequest, Google::Longrunning::Operation
60
- # Gets information about a cluster.
61
- rpc :GetCluster, GetClusterRequest, Cluster
62
- # Lists information about clusters in an instance.
63
- rpc :ListClusters, ListClustersRequest, ListClustersResponse
64
- # Updates a cluster within an instance.
65
- rpc :UpdateCluster, Cluster, Google::Longrunning::Operation
66
- # Deletes a cluster from an instance.
67
- rpc :DeleteCluster, DeleteClusterRequest, Google::Protobuf::Empty
68
- # Creates an app profile within an instance.
69
- rpc :CreateAppProfile, CreateAppProfileRequest, AppProfile
70
- # Gets information about an app profile.
71
- rpc :GetAppProfile, GetAppProfileRequest, AppProfile
72
- # Lists information about app profiles in an instance.
73
- rpc :ListAppProfiles, ListAppProfilesRequest, ListAppProfilesResponse
74
- # Updates an app profile within an instance.
75
- rpc :UpdateAppProfile, UpdateAppProfileRequest, Google::Longrunning::Operation
76
- # Deletes an app profile from an instance.
77
- rpc :DeleteAppProfile, DeleteAppProfileRequest, Google::Protobuf::Empty
78
- # Gets the access control policy for an instance resource. Returns an empty
79
- # policy if an instance exists but does not have a policy set.
80
- rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
81
- # Sets the access control policy on an instance resource. Replaces any
82
- # existing policy.
83
- rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
84
- # Returns permissions that the caller has on the specified instance resource.
85
- rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
86
- end
87
-
88
- Stub = Service.rpc_stub_class
89
- end
90
- end