google-cloud-bigtable 1.3.0 → 2.0.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 (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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 109fb6841cdecd45ebfadc3c2bafd019010847bbe9592ad9f2d9d44e56000d06
4
- data.tar.gz: 41b10cd762bc1c11ef42754af3fb6dc3e9bc5d97bd75e84c74752228596bb245
3
+ metadata.gz: de71e1f2a03370a9bd442bca36beaf69923ad0dab0767961e993b0898f4c0f05
4
+ data.tar.gz: a7ea6cd88e7be07631df6d0cb028b4ced5c063ef037ec1275cd854e18162f1d7
5
5
  SHA512:
6
- metadata.gz: 63fda26d33b5b2185086377ecf4ca64d99d20e19013b97b7a34a11164baefbc2e09e444e4304a22a4ac5da49013bb09803e0d81b55bcd3ac8f94f712e320043d
7
- data.tar.gz: ec6d0a4356a0fb357264bd72654cfb21581c9787e5594e016e81d286345ef25ad6b8b8eb450dd26de061e5ca0ee32bf337fb43beb0847197d039b4007f74b5f0
6
+ metadata.gz: 02cd4a50305ea55e92d3abd02644da93900877ee91678ffc4831413862f8b22f371d11e29f10b3e3a369c1b062707b34225f19800fb779882998ee687aeeae2c
7
+ data.tar.gz: 180333779e76960db0e306c3cc80b9c17eeda1d289825f10bee6716cc253fc811a58952a62143bfbc6befd5de23e70e9ce2e42db2dbda737e5af40cf8ea8042d
@@ -76,7 +76,7 @@ The environment variables that google-cloud-bigtable checks for project ID are:
76
76
  1. `BIGTABLE_PROJECT`
77
77
  2. `GOOGLE_CLOUD_PROJECT`
78
78
 
79
- The environment variables that google-cloud-bigtable checks for credentials are configured on {Google::Cloud::Bigtable::V2::Credentials}:
79
+ The environment variables that google-cloud-bigtable checks for credentials are configured on {Google::Cloud::Bigtable::Credentials}:
80
80
 
81
81
  1. `BIGTABLE_CREDENTIALS` - Path to JSON file, or JSON contents
82
82
  2. `BIGTABLE_KEYFILE` - Path to JSON file, or JSON contents
@@ -1,5 +1,31 @@
1
1
  # Release History
2
2
 
3
+ ### 2.0.0 / 2020-08-06
4
+
5
+ This is a major update that removes the "low-level" client interface code, and
6
+ instead adds the new `google-cloud-bigtable-v2` and
7
+ `google-cloud-bigtable-admin-v2` gems as dependencies. The new dependencies
8
+ are rewritten low-level clients, produced by a next-generation client code
9
+ generator, with improved performance and stability.
10
+
11
+ This change should have no effect on the high-level interface that most users
12
+ will use. The one exception is that the (mostly undocumented) `client_config`
13
+ argument, for adjusting low-level parameters such as RPC retry settings on
14
+ client objects, has been removed. If you need to adjust these parameters, use
15
+ the configuration interface in `google-cloud-bigtable-v2` and
16
+ `google-cloud-bigtable-admin-v2`.
17
+
18
+ Substantial changes have been made in the low-level interfaces, however. If you
19
+ are using the low-level classes under the `Google::Cloud::Bigtable::V2` or
20
+ `Google::Cloud::Bigtable::Admin::V2` modules, please review the docs for the
21
+ new `google-cloud-bigtable-v2` and `google-cloud-bigtable-admin-v2` gems.
22
+ In particular:
23
+
24
+ * Some classes have been renamed, notably the client classes themselves.
25
+ * The client constructor takes a configuration block instead of configuration
26
+ keyword arguments.
27
+ * All RPC method arguments are now keyword arguments.
28
+
3
29
  ### 1.3.0 / 2020-07-21
4
30
 
5
31
  #### Features
@@ -55,11 +55,6 @@ module Google
55
55
  # should already be composed with a `GRPC::Core::CallCredentials` object.
56
56
  # `Proc` will be used as an updater_proc for the gRPC channel. The proc transforms the
57
57
  # metadata for requests, generally, to give OAuth credentials.
58
- # @param client_config [Hash]
59
- # A hash for call options for each method.
60
- # See Google::Gax#construct_settings for the structure of
61
- # this data. Falls back to the default config if not specified
62
- # or the specified config is missing data points.
63
58
  # @return [Google::Cloud::Bigtable::Project]
64
59
  #
65
60
  # @example
@@ -69,13 +64,12 @@ module Google
69
64
  #
70
65
  # bigtable = gcloud.bigtable
71
66
  #
72
- def bigtable scope: nil, timeout: nil, credentials: nil, client_config: nil
67
+ def bigtable scope: nil, timeout: nil, credentials: nil
73
68
  Google::Cloud.bigtable(
74
- project_id: @project,
75
- credentials: (credentials || @keyfile),
76
- scope: scope,
77
- timeout: (timeout || @timeout),
78
- client_config: client_config
69
+ project_id: @project,
70
+ credentials: (credentials || @keyfile),
71
+ scope: scope,
72
+ timeout: (timeout || @timeout)
79
73
  )
80
74
  end
81
75
 
@@ -110,11 +104,6 @@ module Google
110
104
  # updater_proc is supplied.
111
105
  # @param timeout [Integer]
112
106
  # The default timeout, in seconds, for calls made through this client.
113
- # @param client_config [Hash]
114
- # A hash for call options for each method.
115
- # See Google::Gax#construct_settings for the structure of
116
- # this data. Falls back to the default config if not specified
117
- # or the specified config is missing data points. Optional.
118
107
  # @return [Google::Cloud::Bigtable::Project]
119
108
  #
120
109
  # @example
@@ -122,14 +111,13 @@ module Google
122
111
  #
123
112
  # bigtable = Google::Cloud.bigtable
124
113
  #
125
- def self.bigtable project_id: nil, credentials: nil, scope: nil, timeout: nil, client_config: nil
114
+ def self.bigtable project_id: nil, credentials: nil, scope: nil, timeout: nil
126
115
  require "google/cloud/bigtable"
127
116
  Google::Cloud::Bigtable.new(
128
- project_id: project_id,
129
- credentials: credentials,
130
- scope: scope,
131
- timeout: timeout,
132
- client_config: client_config
117
+ project_id: project_id,
118
+ credentials: credentials,
119
+ scope: scope,
120
+ timeout: timeout
133
121
  )
134
122
  end
135
123
  end
@@ -149,6 +137,21 @@ Google::Cloud.configure.add_config! :bigtable do |config|
149
137
  default_emulator = Google::Cloud::Config.deferred do
150
138
  ENV["BIGTABLE_EMULATOR_HOST"]
151
139
  end
140
+ default_scopes = [
141
+ "https://www.googleapis.com/auth/bigtable.admin",
142
+ "https://www.googleapis.com/auth/bigtable.admin.cluster",
143
+ "https://www.googleapis.com/auth/bigtable.admin.instance",
144
+ "https://www.googleapis.com/auth/bigtable.admin.table",
145
+ "https://www.googleapis.com/auth/bigtable.data",
146
+ "https://www.googleapis.com/auth/bigtable.data.readonly",
147
+ "https://www.googleapis.com/auth/cloud-bigtable.admin",
148
+ "https://www.googleapis.com/auth/cloud-bigtable.admin.cluster",
149
+ "https://www.googleapis.com/auth/cloud-bigtable.admin.table",
150
+ "https://www.googleapis.com/auth/cloud-bigtable.data",
151
+ "https://www.googleapis.com/auth/cloud-bigtable.data.readonly",
152
+ "https://www.googleapis.com/auth/cloud-platform",
153
+ "https://www.googleapis.com/auth/cloud-platform.read-only"
154
+ ]
152
155
 
153
156
  config.add_field! :project_id, default_project, match: String, allow_nil: true
154
157
  config.add_alias! :project, :project_id
@@ -162,10 +165,9 @@ Google::Cloud.configure.add_config! :bigtable do |config|
162
165
  Proc
163
166
  ],
164
167
  allow_nil: true
165
- config.add_field! :scope, nil, match: [String, Array]
168
+ config.add_field! :scope, default_scopes, match: [String, Array]
166
169
  config.add_field! :timeout, nil, match: Integer
167
- config.add_field! :client_config, nil, match: Hash
168
- config.add_field! :emulator_host, default_emulator,
169
- match: String, allow_nil: true
170
- config.add_field! :endpoint, nil, match: String
170
+ config.add_field! :emulator_host, default_emulator, match: String, allow_nil: true
171
+ config.add_field! :endpoint, "bigtable.googleapis.com", match: String
172
+ config.add_field! :endpoint_admin, "bigtableadmin.googleapis.com", match: String
171
173
  end
@@ -51,6 +51,8 @@ module Google
51
51
  # metadata for requests, generally, to give OAuth credentials.
52
52
  # @param [String] endpoint Override of the endpoint host name. Optional.
53
53
  # If the param is nil, uses the default endpoint.
54
+ # @param [String] endpoint_admin Override of the admin service endpoint host name. Optional.
55
+ # If the param is nil, uses the default admin endpoint.
54
56
  # @param [String] emulator_host Bigtable emulator host. Optional.
55
57
  # If the parameter is nil, uses the value of the `emulator_host` config.
56
58
  # @param scope [Array<String>]
@@ -59,11 +61,6 @@ module Google
59
61
  # APIs](https://developers.google.com/identity/protocols/OAuth2).
60
62
  # The OAuth scopes for this service. This parameter is ignored if an
61
63
  # updater_proc is supplied.
62
- # @param client_config [Hash]
63
- # A hash for call options for each method.
64
- # See Google::Gax#construct_settings for the structure of
65
- # this data. Falls back to the default config if not specified
66
- # or the specified config is missing data points.
67
64
  # @param timeout [Integer]
68
65
  # The default timeout, in seconds, for calls made through this client. Optional.
69
66
  # @return [Google::Cloud::Bigtable::Project]
@@ -73,28 +70,28 @@ module Google
73
70
  #
74
71
  # client = Google::Cloud::Bigtable.new
75
72
  #
76
- def self.new project_id: nil, credentials: nil, emulator_host: nil, scope: nil, client_config: nil, endpoint: nil,
73
+ def self.new project_id: nil,
74
+ credentials: nil,
75
+ emulator_host: nil,
76
+ scope: nil,
77
+ endpoint: nil,
78
+ endpoint_admin: nil,
77
79
  timeout: nil
78
80
  project_id ||= default_project_id
79
81
  scope ||= configure.scope
80
82
  timeout ||= configure.timeout
81
- client_config ||= configure.client_config
82
83
  emulator_host ||= configure.emulator_host
83
84
  endpoint ||= configure.endpoint
85
+ endpoint_admin ||= configure.endpoint_admin
84
86
 
85
- if emulator_host
86
- return new_with_emulator project_id, emulator_host, timeout,
87
- client_config
88
- end
87
+ return new_with_emulator project_id, emulator_host, timeout if emulator_host
89
88
 
90
89
  credentials = resolve_credentials credentials, scope
91
90
  project_id = resolve_project_id project_id, credentials
92
91
  raise ArgumentError, "project_id is missing" if project_id.empty?
93
92
 
94
- service = Bigtable::Service.new(
95
- project_id, credentials,
96
- host: endpoint, timeout: timeout, client_config: client_config
97
- )
93
+ service = Bigtable::Service.new \
94
+ project_id, credentials, host: endpoint, host_admin: endpoint_admin, timeout: timeout
98
95
  Bigtable::Project.new service
99
96
  end
100
97
 
@@ -113,10 +110,10 @@ module Google
113
110
  # * `scope` - (String, Array<String>) The OAuth 2.0 scopes controlling
114
111
  # the set of resources and operations that the connection can access.
115
112
  # * `timeout` - (Integer) Default timeout to use in requests.
116
- # * `client_config` - (Hash) A hash of values to override the default
117
- # behavior of the API client.
118
113
  # * `endpoint` - (String) Override of the endpoint host name, or `nil`
119
114
  # to use the default endpoint.
115
+ # * `endpoint_admin` - (String) Override of the admin service endpoint
116
+ # host name, or `nil` to use the default admin endpoint.
120
117
  #
121
118
  # @return [Google::Cloud::Config] The configuration object the
122
119
  # Google::Cloud::Bigtable library uses.
@@ -130,18 +127,13 @@ module Google
130
127
  # @private
131
128
  # New client given an emulator host.
132
129
  #
133
- def self.new_with_emulator project_id, emulator_host, timeout,
134
- client_config
130
+ def self.new_with_emulator project_id, emulator_host, timeout
135
131
  project_id = project_id.to_s # Always cast to a string
136
132
  raise ArgumentError, "project_id is missing" if project_id.empty?
137
133
 
138
- Bigtable::Project.new(
139
- Bigtable::Service.new(
140
- project_id, :this_channel_is_insecure,
141
- host: emulator_host, timeout: timeout,
142
- client_config: client_config
143
- )
144
- )
134
+ service = Bigtable::Service.new \
135
+ project_id, :this_channel_is_insecure, host: emulator_host, host_admin: emulator_host, timeout: timeout
136
+ Bigtable::Project.new service
145
137
  end
146
138
 
147
139
  # @private
@@ -193,7 +193,7 @@ module Google
193
193
  #
194
194
  def routing_policy= policy
195
195
  routing_policy_grpc = policy.to_grpc
196
- if routing_policy_grpc.is_a? Google::Bigtable::Admin::V2::AppProfile::SingleClusterRouting
196
+ if routing_policy_grpc.is_a? Google::Cloud::Bigtable::Admin::V2::AppProfile::SingleClusterRouting
197
197
  @grpc.single_cluster_routing = routing_policy_grpc
198
198
  @changed_fields["routing_policy"] = "single_cluster_routing"
199
199
  else
@@ -417,8 +417,8 @@ module Google
417
417
  # @private
418
418
  #
419
419
  # Creates a new Instance instance from a
420
- # Google::Bigtable::Admin::V2::Table.
421
- # @param grpc [Google::Bigtable::Admin::V2::Table]
420
+ # Google::Cloud::Bigtable::Admin::V2::Table.
421
+ # @param grpc [Google::Cloud::Bigtable::Admin::V2::Table]
422
422
  # @param service [Google::Cloud::Bigtable::Service]
423
423
  # @return [Google::Cloud::Bigtable::Table]
424
424
  def self.from_grpc grpc, service
@@ -135,8 +135,10 @@ module Google
135
135
  end
136
136
 
137
137
  # @private
138
- # New Snapshot::List from a Google::Gax::PagedEnumerable<Google::Bigtable::Admin::V2::AppProfile> object.
139
- # @param grpc [Google::Gax::PagedEnumerable<Google::Bigtable::Admin::V2::AppProfile> ]
138
+ # New Snapshot::List from a Gapic::PagedEnumerable<Google::Cloud::Bigtable::Admin::V2::AppProfile>
139
+ # object.
140
+ #
141
+ # @param grpc [Gapic::PagedEnumerable<Google::Cloud::Bigtable::Admin::V2::AppProfile> ]
140
142
  # @param service [Google::Cloud::Bigtable::Service]
141
143
  # @return [Array<Google::Cloud::Bigtable::AppProfile>]
142
144
  def self.from_grpc grpc, service
@@ -301,9 +301,9 @@ module Google
301
301
 
302
302
  # @private
303
303
  #
304
- # Creates a new Backup instance from a Google::Bigtable::Admin::V2::Backup.
304
+ # Creates a new Backup instance from a Google::Cloud::Bigtable::Admin::V2::Backup.
305
305
  #
306
- # @param grpc [Google::Bigtable::Admin::V2::Backup]
306
+ # @param grpc [Google::Cloud::Bigtable::Admin::V2::Backup]
307
307
  # @param service [Google::Cloud::Bigtable::Service]
308
308
  # @return [Google::Cloud::Bigtable::Backup]
309
309
  def self.from_grpc grpc, service
@@ -137,8 +137,8 @@ module Google
137
137
  end
138
138
 
139
139
  # @private
140
- # New Snapshot::List from a Google::Gax::PagedEnumerable<Google::Bigtable::Admin::V2::Backup> object.
141
- # @param grpc [Google::Gax::PagedEnumerable<Google::Bigtable::Admin::V2::Backup> ]
140
+ # New Snapshot::List from a Gapic::PagedEnumerable<Google::Cloud::Bigtable::Admin::V2::Backup> object.
141
+ # @param grpc [Gapic::PagedEnumerable<Google::Cloud::Bigtable::Admin::V2::Backup> ]
142
142
  # @param service [Google::Cloud::Bigtable::Service]
143
143
  # @return [Array<Google::Cloud::Bigtable::Backup>]
144
144
  def self.from_grpc grpc, service
@@ -49,7 +49,7 @@ module Google
49
49
  ##
50
50
  # Process chunk and build full row with cells
51
51
  #
52
- # @param chunk [Google::Bigtable::V2::ReadRowsResponse::CellChunk]
52
+ # @param chunk [Google::Cloud::Bigtable::V2::ReadRowsResponse::CellChunk]
53
53
  #
54
54
  def process chunk
55
55
  self.chunk = chunk
@@ -366,9 +366,9 @@ module Google
366
366
  # @private
367
367
  #
368
368
  # Creates a new Cluster instance from a
369
- # Google::Bigtable::Admin::V2::Cluster.
369
+ # Google::Cloud::Bigtable::Admin::V2::Cluster.
370
370
  #
371
- # @param grpc [Google::Bigtable::Admin::V2::Cluster]
371
+ # @param grpc [Google::Cloud::Bigtable::Admin::V2::Cluster]
372
372
  # @param service [Google::Cloud::Bigtable::Service]
373
373
  # @return [Google::Cloud::Bigtable::Cluster]
374
374
  def self.from_grpc grpc, service
@@ -142,7 +142,7 @@ module Google
142
142
 
143
143
  # @private
144
144
  #
145
- # New Cluster::List from a Google::Bigtable::Admin::V2::ListClustersResponse object.
145
+ # New Cluster::List from a Google::Cloud::Bigtable::Admin::V2::ListClustersResponse object.
146
146
  def self.from_grpc grpc, service, instance_id: nil
147
147
  clusters = List.new(Array(grpc.clusters).map do |cluster|
148
148
  Cluster.from_grpc cluster, service
@@ -56,9 +56,9 @@ module Google
56
56
 
57
57
  # @private
58
58
  #
59
- # Create a new ColumnFamily instance from a {Google::Bigtable::Admin::V2::ColumnFamily}.
59
+ # Create a new ColumnFamily instance from a {Google::Cloud::Bigtable::Admin::V2::ColumnFamily}.
60
60
  #
61
- # @param grpc [Google::Bigtable::Admin::V2::ColumnFamily]
61
+ # @param grpc [Google::Cloud::Bigtable::Admin::V2::ColumnFamily]
62
62
  # @param name [String] Column family name
63
63
  # @return [Google::Cloud::Bigtable::ColumnFamily]
64
64
  #
@@ -211,7 +211,7 @@ module Google
211
211
  warn "The positional gc_rule argument is deprecated. Use the named gc_rule argument instead."
212
212
  end
213
213
 
214
- column_family = Google::Bigtable::Admin::V2::ColumnFamily.new
214
+ column_family = Google::Cloud::Bigtable::Admin::V2::ColumnFamily.new
215
215
  column_family.gc_rule = gc_rule.to_grpc if gc_rule
216
216
  @column_families[name] = column_family
217
217
 
@@ -248,7 +248,7 @@ module Google
248
248
  def update name, gc_rule: nil
249
249
  raise ArgumentError, "column family #{name.inspect} does not exist" unless @column_families.has_key? name
250
250
 
251
- column_family = Google::Bigtable::Admin::V2::ColumnFamily.new
251
+ column_family = Google::Cloud::Bigtable::Admin::V2::ColumnFamily.new
252
252
  column_family.gc_rule = gc_rule.to_grpc if gc_rule
253
253
  @column_families[name] = column_family
254
254
 
@@ -299,7 +299,7 @@ module Google
299
299
  #
300
300
  # @param comparison_map [Google::Protobuf::Map] The map to compare the
301
301
  # current map against for building the modification entries.
302
- # @return [Array<Google::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification>]
302
+ # @return [Array<Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification>]
303
303
  #
304
304
  def modifications comparison_map = nil
305
305
  comparison_map ||= empty_map
@@ -352,7 +352,7 @@ module Google
352
352
  ##
353
353
  # Create an empty Google::Protobuf::Map suitable for column_families.
354
354
  def empty_map
355
- Google::Bigtable::Admin::V2::Table.new.column_families
355
+ Google::Cloud::Bigtable::Admin::V2::Table.new.column_families
356
356
  end
357
357
 
358
358
  ##
@@ -362,13 +362,13 @@ module Google
362
362
  #
363
363
  # @param comparison_map [Google::Protobuf::Map] The map to compare the
364
364
  # current map against for building the modification entries.
365
- # @return [Array<Google::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification>]
365
+ # @return [Array<Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification>]
366
366
  #
367
367
  def created_modifications comparison_map
368
368
  added_keys = @column_families.keys - comparison_map.keys
369
369
 
370
370
  added_keys.map do |name|
371
- Google::Bigtable::Admin::V2::ModifyColumnFamiliesRequest:: \
371
+ Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest:: \
372
372
  Modification.new(
373
373
  id: name,
374
374
  create: @column_families[name]
@@ -383,7 +383,7 @@ module Google
383
383
  #
384
384
  # @param comparison_map [Google::Protobuf::Map] The map to compare the
385
385
  # current map against for building the modification entries.
386
- # @return [Array<Google::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification>]
386
+ # @return [Array<Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification>]
387
387
  #
388
388
  def updated_modifications comparison_map
389
389
  possibly_updated_keys = @column_families.keys & comparison_map.keys
@@ -392,7 +392,7 @@ module Google
392
392
  end
393
393
 
394
394
  updated_keys.map do |name|
395
- Google::Bigtable::Admin::V2::ModifyColumnFamiliesRequest:: \
395
+ Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest:: \
396
396
  Modification.new(
397
397
  id: name,
398
398
  update: @column_families[name]
@@ -407,13 +407,13 @@ module Google
407
407
  #
408
408
  # @param comparison_map [Google::Protobuf::Map] The map to compare the
409
409
  # current map against for building the modification entries.
410
- # @return [Array<Google::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification>]
410
+ # @return [Array<Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest::Modification>]
411
411
  #
412
412
  def dropped_modifications comparison_map
413
413
  dropped_keys = comparison_map.keys - @column_families.keys
414
414
 
415
415
  dropped_keys.map do |name|
416
- Google::Bigtable::Admin::V2::ModifyColumnFamiliesRequest:: \
416
+ Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest:: \
417
417
  Modification.new(
418
418
  id: name,
419
419
  drop: true
@@ -56,7 +56,7 @@ module Google
56
56
  # @param family [String] Column family name.
57
57
  #
58
58
  def initialize family
59
- @grpc = Google::Bigtable::V2::ColumnRange.new family_name: family
59
+ @grpc = Google::Cloud::Bigtable::V2::ColumnRange.new family_name: family
60
60
  end
61
61
 
62
62
  ##
@@ -183,7 +183,7 @@ module Google
183
183
 
184
184
  # @private
185
185
  #
186
- # @return [Google::Bigtable::V2::ColumnRange]
186
+ # @return [Google::Cloud::Bigtable::V2::ColumnRange]
187
187
  #
188
188
  def to_grpc
189
189
  @grpc