google-cloud-bigtable 0.1.3 → 0.2.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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/CHANGELOG.md +8 -0
  4. data/EMULATOR.md +30 -0
  5. data/OVERVIEW.md +2 -1
  6. data/lib/google-cloud-bigtable.rb +28 -22
  7. data/lib/google/cloud/bigtable.rb +25 -13
  8. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client_config.json +14 -14
  9. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client_config.json +5 -5
  10. data/lib/google/cloud/bigtable/app_profile.rb +14 -14
  11. data/lib/google/cloud/bigtable/app_profile/list.rb +9 -9
  12. data/lib/google/cloud/bigtable/chunk_processor.rb +6 -6
  13. data/lib/google/cloud/bigtable/cluster.rb +5 -5
  14. data/lib/google/cloud/bigtable/cluster/job.rb +1 -1
  15. data/lib/google/cloud/bigtable/cluster/list.rb +6 -6
  16. data/lib/google/cloud/bigtable/column_family.rb +12 -12
  17. data/lib/google/cloud/bigtable/column_range.rb +8 -8
  18. data/lib/google/cloud/bigtable/gc_rule.rb +2 -2
  19. data/lib/google/cloud/bigtable/instance.rb +34 -36
  20. data/lib/google/cloud/bigtable/instance/cluster_map.rb +5 -5
  21. data/lib/google/cloud/bigtable/instance/list.rb +9 -9
  22. data/lib/google/cloud/bigtable/longrunning_job.rb +1 -1
  23. data/lib/google/cloud/bigtable/mutation_entry.rb +18 -18
  24. data/lib/google/cloud/bigtable/mutation_operations.rb +25 -23
  25. data/lib/google/cloud/bigtable/policy.rb +13 -13
  26. data/lib/google/cloud/bigtable/project.rb +27 -27
  27. data/lib/google/cloud/bigtable/read_modify_write_rule.rb +6 -6
  28. data/lib/google/cloud/bigtable/read_operations.rb +13 -13
  29. data/lib/google/cloud/bigtable/row.rb +7 -7
  30. data/lib/google/cloud/bigtable/row_filter.rb +58 -58
  31. data/lib/google/cloud/bigtable/row_filter/chain_filter.rb +40 -41
  32. data/lib/google/cloud/bigtable/row_filter/condition_filter.rb +6 -6
  33. data/lib/google/cloud/bigtable/row_filter/interleave_filter.rb +46 -47
  34. data/lib/google/cloud/bigtable/row_filter/simple_filter.rb +14 -15
  35. data/lib/google/cloud/bigtable/row_range.rb +16 -16
  36. data/lib/google/cloud/bigtable/rows_mutator.rb +5 -5
  37. data/lib/google/cloud/bigtable/rows_reader.rb +8 -9
  38. data/lib/google/cloud/bigtable/service.rb +153 -141
  39. data/lib/google/cloud/bigtable/table.rb +23 -23
  40. data/lib/google/cloud/bigtable/table/cluster_state.rb +2 -2
  41. data/lib/google/cloud/bigtable/table/column_family_map.rb +5 -5
  42. data/lib/google/cloud/bigtable/table/list.rb +8 -8
  43. data/lib/google/cloud/bigtable/value_range.rb +7 -7
  44. data/lib/google/cloud/bigtable/version.rb +1 -1
  45. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fec9bf567174a851d94a1b7106810e58803607f39e368d76bb54eb6583e7b40
4
- data.tar.gz: b86b5f22e24f921a46f2b8335062d129c8ec46be254063ec63e923e7cb5c1fa5
3
+ metadata.gz: 665533520e4313e0ea1f2f4f282813b1fa98bc559c514ba6915aa0b8a0a4d716
4
+ data.tar.gz: 914b02d9cf075399b9ef9b7939aa87571a652316433177368868e51c2377cdee
5
5
  SHA512:
6
- metadata.gz: a86ed842c65b0b550becf97f35ee23d725693302cec3357fe739103e5cfca937def10a0e6601d6475eb7293a4a4b56e66495029c83a3cbd328d9c8e71c46ed72
7
- data.tar.gz: e5560028f08f23a644d8b1132628f1b568c3fb08ee81df3effd22b0c280339c27fb84979e894ce6c5a1d1c24f37c5d428b0e682615665a7460571af8151d8093
6
+ metadata.gz: 0b41055d5f6e073904d490e5a6ac68cdcd74120b355d85861fdfdb836ece6167d53294e7e7c98cd70bda1a25c5b1d70f628fd2a1a33a02339c48a99e4a134e21
7
+ data.tar.gz: 9dce87041635829275f25691849b46c634ee937ba71b1379f4c1bc7712f97ad6477762a3c9847d03b2d688ed12fb47f29b1fb90c0d3e5bd5fe4e628d112c73f5
data/.yardopts CHANGED
@@ -10,6 +10,7 @@
10
10
  -
11
11
  OVERVIEW.md
12
12
  AUTHENTICATION.md
13
+ EMULATOR.md
13
14
  LOGGING.md
14
15
  CONTRIBUTING.md
15
16
  TROUBLESHOOTING.md
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release History
2
2
 
3
+ ### 0.2.0 / 2018-11-15
4
+
5
+ * Update network configuration.
6
+ * Allow the emulator host to be provided in the BIGTABLE_EMULATOR_HOST
7
+ environment variable, or the emulator_host argument.
8
+ * Add EMULATOR guide to show how to configure and use the emulator.
9
+ * Update documentation.
10
+
3
11
  ### 0.1.3 / 2018-09-20
4
12
 
5
13
  * Update connectivity configuration.
data/EMULATOR.md ADDED
@@ -0,0 +1,30 @@
1
+ # Cloud Bigtable Emulator
2
+
3
+ To develop and test your application locally, you can use the [Cloud Bigtable
4
+ Emulator](https://cloud.google.com/bigtable/docs/emulator), which provides
5
+ [local emulation](https://cloud.google.com/sdk/gcloud/reference/beta/emulators/)
6
+ of the production Cloud Bigtable environment. You can start the Cloud Bigtable
7
+ emulator using the `gcloud` command-line tool.
8
+
9
+ To configure your ruby code to use the emulator, set the
10
+ `BIGTABLE_EMULATOR_HOST` environment variable to the host and port where the
11
+ emulator is running. The value can be set as an environment variable in the
12
+ shell running the ruby code, or can be set directly in the ruby code as shown
13
+ below.
14
+
15
+ ```ruby
16
+ require "google/cloud/bigtable"
17
+
18
+ # Make Pub/Sub use the emulator
19
+ ENV["BIGTABLE_EMULATOR_HOST"] = "localhost:8086"
20
+
21
+ bigtable = Google::Cloud::Bigtable.new "emulator-project-id"
22
+ ```
23
+
24
+ Or by providing the `emulator_host` argument:
25
+
26
+ ```ruby
27
+ require "google/cloud/bigtable"
28
+
29
+ bigtable = Google::Cloud::Bigtable.new emulator_host: "localhost:8086"
30
+ ```
data/OVERVIEW.md CHANGED
@@ -24,7 +24,8 @@ steps:
24
24
 
25
25
  ## Additional information
26
26
 
27
- Google Bigtable can be configured to use gRPC's logging. To learn more, see the
27
+ Google Bigtable can be configured to use an emulator or to enable gRPC's
28
+ logging. To learn more, see the {file:EMULATOR.md Emulator guide} and
28
29
  {file:LOGGING.md Logging guide}.
29
30
 
30
31
  [Product Documentation]: https://cloud.google.com/bigtable
@@ -26,9 +26,9 @@ require "google/cloud/config"
26
26
 
27
27
  module Google
28
28
  module Cloud
29
- # Creates a new object for connecting to the Bigtable service.
29
+ # Creates a new object for connecting to the Cloud Bigtable service.
30
30
  #
31
- # For more information on connecting to Google Cloud see the
31
+ # For more information on connecting to Google Cloud Platform, see the
32
32
  # {file:AUTHENTICATION.md Authentication Guide}.
33
33
  #
34
34
  # @param scope [Array<String>]
@@ -41,20 +41,20 @@ module Google
41
41
  # The default timeout, in seconds, for calls made through this client.
42
42
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
43
43
  # Provides the means for authenticating requests made by the client. This parameter can
44
- # be many types.
45
- # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
44
+ # be one of the following types.
45
+ # `Google::Auth::Credentials` uses the properties of its represented keyfile for
46
46
  # authenticating requests made by this client.
47
- # A `String` will be treated as the path to the keyfile to be used for the construction of
47
+ # `String` will be treated as the path to the keyfile to use to construct
48
48
  # credentials for this client.
49
- # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
49
+ # `Hash` will be treated as the contents of a keyfile to use to construct
50
50
  # credentials for this client.
51
- # A `GRPC::Core::Channel` will be used to make calls through.
52
- # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
51
+ # `GRPC::Core::Channel` will be used to make calls through.
52
+ # `GRPC::Core::ChannelCredentials` will be used to set up the gRPC client. The channel credentials
53
53
  # should already be composed with a `GRPC::Core::CallCredentials` object.
54
- # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
54
+ # `Proc` will be used as an updater_proc for the gRPC channel. The proc transforms the
55
55
  # metadata for requests, generally, to give OAuth credentials.
56
56
  # @param client_config [Hash]
57
- # A Hash for call options for each method.
57
+ # A hash for call options for each method.
58
58
  # See Google::Gax#construct_settings for the structure of
59
59
  # this data. Falls back to the default config if not specified
60
60
  # or the specified config is missing data points.
@@ -78,27 +78,28 @@ module Google
78
78
  )
79
79
  end
80
80
 
81
- # Create bigtable client instance for data, table admin and instance admin
82
- # operartions.
81
+ # Creates a Cloud Bigtable client instance for data, table admin and instance admin
82
+ # operations.
83
83
  #
84
84
  # @param project_id [String]
85
85
  # Project identifier for the Bigtable service you
86
86
  # are connecting to. If not present, the default project for the
87
87
  # credentials is used.
88
88
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
89
- # Provides the means for authenticating requests made by the client. This parameter can
90
- # be many types.
91
- # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
89
+ # The means for authenticating requests made by the client. This parameter can
90
+ # be one of the following types.
91
+ # `Google::Auth::Credentials` uses the properties of its represented keyfile for
92
92
  # authenticating requests made by this client.
93
- # A `String` will be treated as the path to the keyfile to be used for the construction of
93
+ # `String` will be treated as the path to the keyfile to use to construct
94
94
  # credentials for this client.
95
- # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
95
+ # `Hash` will be treated as the contents of a keyfile to use to construct
96
96
  # credentials for this client.
97
- # A `GRPC::Core::Channel` will be used to make calls through.
98
- # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
97
+ # `GRPC::Core::Channel` will be used to make calls through.
98
+ # `GRPC::Core::ChannelCredentials` will be used to set up the gRPC client. The channel credentials
99
99
  # should already be composed with a `GRPC::Core::CallCredentials` object.
100
- # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
100
+ # `Proc` will be used as an updater_proc for the gRPC channel. The proc transforms the
101
101
  # metadata for requests, generally, to give OAuth credentials.
102
+ # @param timeout [Integer]
102
103
  # @param scope [Array<String>]
103
104
  # The OAuth 2.0 scopes controlling the set of resources and operations
104
105
  # that the connection can access. See [Using OAuth 2.0 to Access Google
@@ -108,7 +109,7 @@ module Google
108
109
  # @param timeout [Integer]
109
110
  # The default timeout, in seconds, for calls made through this client.
110
111
  # @param client_config [Hash]
111
- # A Hash for call options for each method.
112
+ # A hash for call options for each method.
112
113
  # See Google::Gax#construct_settings for the structure of
113
114
  # this data. Falls back to the default config if not specified
114
115
  # or the specified config is missing data points. Optional.
@@ -137,7 +138,7 @@ module Google
137
138
  end
138
139
  end
139
140
 
140
- # Set the default BIGTABLE configuration
141
+ # Sets the default Bigtable configuration
141
142
  Google::Cloud.configure.add_config! :bigtable do |config|
142
143
  default_project = Google::Cloud::Config.deferred do
143
144
  ENV["BIGTABLE_PROJECT"]
@@ -148,6 +149,9 @@ Google::Cloud.configure.add_config! :bigtable do |config|
148
149
  "BIGTABLE_KEYFILE", "BIGTABLE_KEYFILE_JSON"
149
150
  )
150
151
  end
152
+ default_emulator = Google::Cloud::Config.deferred do
153
+ ENV["BIGTABLE_EMULATOR_HOST"]
154
+ end
151
155
 
152
156
  config.add_field! :project_id, default_project, match: String, allow_nil: true
153
157
  config.add_alias! :project, :project_id
@@ -164,4 +168,6 @@ Google::Cloud.configure.add_config! :bigtable do |config|
164
168
  config.add_field! :scope, nil, match: [String, Array]
165
169
  config.add_field! :timeout, nil, match: Integer
166
170
  config.add_field! :client_config, nil, match: Hash
171
+ config.add_field! :emulator_host, default_emulator,
172
+ match: String, allow_nil: true
167
173
  end
@@ -26,26 +26,28 @@ module Google
26
26
  # See {file:OVERVIEW.md Bigtable Overview}.
27
27
  #
28
28
  module Bigtable
29
- # Service for managing Bigtable instance, tables and reading from and
30
- # writing to existing Bigtable tables.
29
+ # Service for managing Cloud Bigtable instances and tables and for reading from and
30
+ # writing to Bigtable tables.
31
31
  #
32
32
  # @param project_id [String]
33
33
  # Project identifier for the Bigtable service you are connecting to.
34
34
  # If not present, the default project for the credentials is used.
35
35
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
36
36
  # Provides the means for authenticating requests made by the client. This parameter can
37
- # be many types.
38
- # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
37
+ # be one of the following types:
38
+ # `Google::Auth::Credentials` uses the properties of its represented keyfile for
39
39
  # authenticating requests made by this client.
40
- # A `String` will be treated as the path to the keyfile to be used for the construction of
40
+ # `String` will be treated as the path to the keyfile to use to construct
41
41
  # credentials for this client.
42
- # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
42
+ # `Hash` will be treated as the contents of a keyfile to use to construct
43
43
  # credentials for this client.
44
- # A `GRPC::Core::Channel` will be used to make calls through.
45
- # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
44
+ # `GRPC::Core::Channel` will be used to make calls through.
45
+ # `GRPC::Core::ChannelCredentials` for the setting up the gRPC client. The channel credentials
46
46
  # should already be composed with a `GRPC::Core::CallCredentials` object.
47
- # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
47
+ # `Proc` will be used as an updater_proc for the gRPC channel. The proc transforms the
48
48
  # metadata for requests, generally, to give OAuth credentials.
49
+ # @param [String] emulator_host Bigtable emulator host. Optional.
50
+ # If the parameter is nil, uses the value of the `emulator_host` config.
49
51
  # @param scope [Array<String>]
50
52
  # The OAuth 2.0 scopes controlling the set of resources and operations
51
53
  # that the connection can access. See [Using OAuth 2.0 to Access Google
@@ -53,7 +55,7 @@ module Google
53
55
  # The OAuth scopes for this service. This parameter is ignored if an
54
56
  # updater_proc is supplied.
55
57
  # @param client_config [Hash]
56
- # A Hash for call options for each method.
58
+ # A hash for call options for each method.
57
59
  # See Google::Gax#construct_settings for the structure of
58
60
  # this data. Falls back to the default config if not specified
59
61
  # or the specified config is missing data points.
@@ -69,18 +71,28 @@ module Google
69
71
  def self.new \
70
72
  project_id: nil,
71
73
  credentials: nil,
74
+ emulator_host: nil,
72
75
  scope: nil,
73
76
  client_config: nil,
74
77
  timeout: nil
75
78
  project_id = (project_id || default_project_id).to_s
76
-
77
- raise InvalidArgumentError, "project_id is required" unless project_id
79
+ raise ArgumentError, "project_id is required" if project_id.empty?
78
80
 
79
81
  scope ||= configure.scope
80
82
  timeout ||= configure.timeout
81
83
  client_config ||= configure.client_config
82
- credentials ||= default_credentials(scope: scope)
84
+ emulator_host ||= configure.emulator_host
85
+ if emulator_host
86
+ return Bigtable::Project.new(
87
+ Bigtable::Service.new(
88
+ project_id, :this_channel_is_insecure,
89
+ host: emulator_host, timeout: timeout,
90
+ client_config: client_config
91
+ )
92
+ )
93
+ end
83
94
 
95
+ credentials ||= default_credentials(scope: scope)
84
96
  unless credentials.is_a? Google::Auth::Credentials
85
97
  credentials = Bigtable::Credentials.new credentials, scope: scope
86
98
  end
@@ -28,12 +28,12 @@
28
28
  "retry_params_name": "default"
29
29
  },
30
30
  "GetInstance": {
31
- "timeout_millis": 120000,
31
+ "timeout_millis": 60000,
32
32
  "retry_codes_name": "idempotent",
33
33
  "retry_params_name": "default"
34
34
  },
35
35
  "ListInstances": {
36
- "timeout_millis": 120000,
36
+ "timeout_millis": 60000,
37
37
  "retry_codes_name": "idempotent",
38
38
  "retry_params_name": "default"
39
39
  },
@@ -48,7 +48,7 @@
48
48
  "retry_params_name": "default"
49
49
  },
50
50
  "DeleteInstance": {
51
- "timeout_millis": 150000,
51
+ "timeout_millis": 60000,
52
52
  "retry_codes_name": "non_idempotent",
53
53
  "retry_params_name": "default"
54
54
  },
@@ -58,12 +58,12 @@
58
58
  "retry_params_name": "default"
59
59
  },
60
60
  "GetCluster": {
61
- "timeout_millis": 120000,
61
+ "timeout_millis": 60000,
62
62
  "retry_codes_name": "idempotent",
63
63
  "retry_params_name": "default"
64
64
  },
65
65
  "ListClusters": {
66
- "timeout_millis": 120000,
66
+ "timeout_millis": 60000,
67
67
  "retry_codes_name": "idempotent",
68
68
  "retry_params_name": "default"
69
69
  },
@@ -73,47 +73,47 @@
73
73
  "retry_params_name": "default"
74
74
  },
75
75
  "DeleteCluster": {
76
- "timeout_millis": 120000,
76
+ "timeout_millis": 60000,
77
77
  "retry_codes_name": "non_idempotent",
78
78
  "retry_params_name": "default"
79
79
  },
80
80
  "CreateAppProfile": {
81
- "timeout_millis": 120000,
81
+ "timeout_millis": 60000,
82
82
  "retry_codes_name": "non_idempotent",
83
83
  "retry_params_name": "default"
84
84
  },
85
85
  "GetAppProfile": {
86
- "timeout_millis": 120000,
86
+ "timeout_millis": 60000,
87
87
  "retry_codes_name": "idempotent",
88
88
  "retry_params_name": "default"
89
89
  },
90
90
  "ListAppProfiles": {
91
- "timeout_millis": 120000,
91
+ "timeout_millis": 60000,
92
92
  "retry_codes_name": "idempotent",
93
93
  "retry_params_name": "default"
94
94
  },
95
95
  "UpdateAppProfile": {
96
- "timeout_millis": 120000,
96
+ "timeout_millis": 60000,
97
97
  "retry_codes_name": "idempotent",
98
98
  "retry_params_name": "default"
99
99
  },
100
100
  "DeleteAppProfile": {
101
- "timeout_millis": 120000,
101
+ "timeout_millis": 60000,
102
102
  "retry_codes_name": "non_idempotent",
103
103
  "retry_params_name": "default"
104
104
  },
105
105
  "GetIamPolicy": {
106
- "timeout_millis": 120000,
106
+ "timeout_millis": 60000,
107
107
  "retry_codes_name": "idempotent",
108
108
  "retry_params_name": "default"
109
109
  },
110
110
  "SetIamPolicy": {
111
- "timeout_millis": 120000,
111
+ "timeout_millis": 60000,
112
112
  "retry_codes_name": "non_idempotent",
113
113
  "retry_params_name": "default"
114
114
  },
115
115
  "TestIamPermissions": {
116
- "timeout_millis": 120000,
116
+ "timeout_millis": 60000,
117
117
  "retry_codes_name": "idempotent",
118
118
  "retry_params_name": "default"
119
119
  }
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "methods": {
23
23
  "CreateTable": {
24
- "timeout_millis": 900000,
24
+ "timeout_millis": 130000,
25
25
  "retry_codes_name": "non_idempotent",
26
26
  "retry_params_name": "default"
27
27
  },
@@ -31,22 +31,22 @@
31
31
  "retry_params_name": "default"
32
32
  },
33
33
  "ListTables": {
34
- "timeout_millis": 120000,
34
+ "timeout_millis": 60000,
35
35
  "retry_codes_name": "idempotent",
36
36
  "retry_params_name": "default"
37
37
  },
38
38
  "GetTable": {
39
- "timeout_millis": 120000,
39
+ "timeout_millis": 60000,
40
40
  "retry_codes_name": "idempotent",
41
41
  "retry_params_name": "default"
42
42
  },
43
43
  "DeleteTable": {
44
- "timeout_millis": 120000,
44
+ "timeout_millis": 60000,
45
45
  "retry_codes_name": "non_idempotent",
46
46
  "retry_params_name": "default"
47
47
  },
48
48
  "ModifyColumnFamilies": {
49
- "timeout_millis": 900000,
49
+ "timeout_millis": 60000,
50
50
  "retry_codes_name": "non_idempotent",
51
51
  "retry_params_name": "default"
52
52
  },
@@ -116,28 +116,28 @@ module Google
116
116
  @grpc.multi_cluster_routing_use_any
117
117
  end
118
118
 
119
- # Get value of single cluster routing policy
119
+ # Get value of single cluster routing policy.
120
120
  #
121
121
  # @return [Google::Bigtable::Admin::V2::AppProfile::SingleClusterRouting]
122
122
  def single_cluster_routing
123
123
  @grpc.single_cluster_routing
124
124
  end
125
125
 
126
- # Set routing policy
126
+ # Set routing policy.
127
127
  #
128
128
  # @param policy [Google::Bigtable::Admin::V2::AppProfile::SingleClusterRouting | Google::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny]
129
- # The routing policy for all read/write requests which use this app profile.
129
+ # The routing policy for all read/write requests that use this app profile.
130
130
  # A value must be explicitly set.
131
131
  #
132
132
  # Routing Policies:
133
133
  # * `multi_cluster_routing` - Read/write requests may be routed to any
134
- # cluster in the instance, and will fail over to another cluster in the event
134
+ # cluster in the instance and will fail over to another cluster in the event
135
135
  # of transient errors or delays. Choosing this option sacrifices
136
136
  # read-your-writes consistency to improve availability.
137
137
  # * `single_cluster_routing` - Unconditionally routes all read/write requests
138
- # to a specific cluster. This option preserves read-your-writes consistency,
138
+ # to a specific cluster. This option preserves read-your-writes consistency
139
139
  # but does not improve availability.
140
- # Value contain `cluster_id` and optional field `allow_transactional_writes`.
140
+ # The value contains `cluster_id` and optional field `allow_transactional_writes`.
141
141
  #
142
142
  # @example Set multi cluster routing policy
143
143
  # require "google/cloud/bigtable"
@@ -173,7 +173,7 @@ module Google
173
173
  end
174
174
  end
175
175
 
176
- # Get routing policy
176
+ # Get routing policy.
177
177
  #
178
178
  # @return [Google::Bigtable::Admin::V2::AppProfile::SingleClusterRouting, Google::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny]
179
179
  #
@@ -300,10 +300,10 @@ module Google
300
300
 
301
301
  # Create instance of multi cluster routing policy.
302
302
  #
303
- # Read/write requests may be routed to any cluster in the instance, and will
304
- # Fail over to another cluster in the event of transient errors or delays.
303
+ # Read/write requests may be routed to any cluster in the instance and will
304
+ # fail over to another cluster in the event of transient errors or delays.
305
305
  # Choosing this option sacrifices read-your-writes consistency to improve
306
- # availability
306
+ # availability.
307
307
  # @return [Google::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny]
308
308
  #
309
309
  # @example Create instance of multi cluster routing
@@ -314,19 +314,19 @@ module Google
314
314
  Google::Bigtable::Admin::V2::AppProfile::MultiClusterRoutingUseAny.new
315
315
  end
316
316
 
317
- # Create instance of single cluster routing
317
+ # Create instance of single cluster routing.
318
318
  #
319
319
  # Unconditionally routes all read/write requests to a specific cluster.
320
- # This option preserves read-your-writes consistency, but does not improve
320
+ # This option preserves read-your-writes consistency but does not improve
321
321
  # availability.
322
322
  #
323
323
  # @param cluster_id [String]
324
324
  # The cluster to which read/write requests should be routed.
325
325
  # @param allow_transactional_writes [Boolean]
326
- # Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are
326
+ # If true, `CheckAndMutateRow` and `ReadModifyWriteRow` requests are
327
327
  # allowed by this app profile. It is unsafe to send these requests to
328
328
  # the same table/row/column in multiple clusters.
329
- # Default value is false.
329
+ # Default value is false.
330
330
  # @return [Google::Bigtable::Admin::V2::AppProfile::SingleClusterRouting]
331
331
  #
332
332
  # @example Create instance of single cluster routing