google-api-client 0.26.0 → 0.27.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +34 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +78 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +34 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +3 -11
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +2 -2
- data/generated/google/apis/bigtableadmin_v2.rb +58 -0
- data/generated/google/apis/bigtableadmin_v2/classes.rb +1661 -0
- data/generated/google/apis/bigtableadmin_v2/representations.rb +703 -0
- data/generated/google/apis/bigtableadmin_v2/service.rb +1181 -0
- data/generated/google/apis/cloudbuild_v1alpha1.rb +34 -0
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +1158 -0
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +432 -0
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +223 -0
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +4 -2
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +4 -2
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +3 -3
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +2 -2
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2 -2
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +19 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +44 -36
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +1 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +3 -3
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +36 -26
- data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +3 -3
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +44 -36
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +3 -3
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +3 -3
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +3 -3
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +7 -2
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +1 -1
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +14 -0
- data/generated/google/apis/jobs_v3/representations.rb +1 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +17 -10
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5/classes.rb +45 -1
- data/generated/google/apis/pagespeedonline_v5/representations.rb +23 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +3 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +5 -3
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +140 -215
- data/generated/google/apis/testing_v1/service.rb +5 -7
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1/classes.rb +4 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +10 -6
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +0 -45
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +0 -733
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +0 -294
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +0 -488
|
@@ -0,0 +1,1181 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'google/apis/core/base_service'
|
|
16
|
+
require 'google/apis/core/json_representation'
|
|
17
|
+
require 'google/apis/core/hashable'
|
|
18
|
+
require 'google/apis/errors'
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apis
|
|
22
|
+
module BigtableadminV2
|
|
23
|
+
# Cloud Bigtable Admin API
|
|
24
|
+
#
|
|
25
|
+
#
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# require 'google/apis/bigtableadmin_v2'
|
|
29
|
+
#
|
|
30
|
+
# Bigtableadmin = Google::Apis::BigtableadminV2 # Alias the module
|
|
31
|
+
# service = Bigtableadmin::BigtableAdminService.new
|
|
32
|
+
#
|
|
33
|
+
# @see https://cloud.google.com/bigtable/
|
|
34
|
+
class BigtableAdminService < Google::Apis::Core::BaseService
|
|
35
|
+
# @return [String]
|
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
38
|
+
attr_accessor :key
|
|
39
|
+
|
|
40
|
+
# @return [String]
|
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
43
|
+
attr_accessor :quota_user
|
|
44
|
+
|
|
45
|
+
def initialize
|
|
46
|
+
super('https://bigtableadmin.googleapis.com/', '')
|
|
47
|
+
@batch_path = 'batch'
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Starts asynchronous cancellation on a long-running operation. The server
|
|
51
|
+
# makes a best effort to cancel the operation, but success is not
|
|
52
|
+
# guaranteed. If the server doesn't support this method, it returns
|
|
53
|
+
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
|
54
|
+
# Operations.GetOperation or
|
|
55
|
+
# other methods to check whether the cancellation succeeded or whether the
|
|
56
|
+
# operation completed despite cancellation. On successful cancellation,
|
|
57
|
+
# the operation is not deleted; instead, it becomes an operation with
|
|
58
|
+
# an Operation.error value with a google.rpc.Status.code of 1,
|
|
59
|
+
# corresponding to `Code.CANCELLED`.
|
|
60
|
+
# @param [String] name
|
|
61
|
+
# The name of the operation resource to be cancelled.
|
|
62
|
+
# @param [String] fields
|
|
63
|
+
# Selector specifying which fields to include in a partial response.
|
|
64
|
+
# @param [String] quota_user
|
|
65
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
66
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
67
|
+
# @param [Google::Apis::RequestOptions] options
|
|
68
|
+
# Request-specific options
|
|
69
|
+
#
|
|
70
|
+
# @yield [result, err] Result & error if block supplied
|
|
71
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Empty] parsed result object
|
|
72
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
73
|
+
#
|
|
74
|
+
# @return [Google::Apis::BigtableadminV2::Empty]
|
|
75
|
+
#
|
|
76
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
77
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
78
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
79
|
+
def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
80
|
+
command = make_simple_command(:post, 'v2/{+name}:cancel', options)
|
|
81
|
+
command.response_representation = Google::Apis::BigtableadminV2::Empty::Representation
|
|
82
|
+
command.response_class = Google::Apis::BigtableadminV2::Empty
|
|
83
|
+
command.params['name'] = name unless name.nil?
|
|
84
|
+
command.query['fields'] = fields unless fields.nil?
|
|
85
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
86
|
+
execute_or_queue_command(command, &block)
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Deletes a long-running operation. This method indicates that the client is
|
|
90
|
+
# no longer interested in the operation result. It does not cancel the
|
|
91
|
+
# operation. If the server doesn't support this method, it returns
|
|
92
|
+
# `google.rpc.Code.UNIMPLEMENTED`.
|
|
93
|
+
# @param [String] name
|
|
94
|
+
# The name of the operation resource to be deleted.
|
|
95
|
+
# @param [String] fields
|
|
96
|
+
# Selector specifying which fields to include in a partial response.
|
|
97
|
+
# @param [String] quota_user
|
|
98
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
99
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
100
|
+
# @param [Google::Apis::RequestOptions] options
|
|
101
|
+
# Request-specific options
|
|
102
|
+
#
|
|
103
|
+
# @yield [result, err] Result & error if block supplied
|
|
104
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Empty] parsed result object
|
|
105
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
106
|
+
#
|
|
107
|
+
# @return [Google::Apis::BigtableadminV2::Empty]
|
|
108
|
+
#
|
|
109
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
110
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
111
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
112
|
+
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
113
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
114
|
+
command.response_representation = Google::Apis::BigtableadminV2::Empty::Representation
|
|
115
|
+
command.response_class = Google::Apis::BigtableadminV2::Empty
|
|
116
|
+
command.params['name'] = name unless name.nil?
|
|
117
|
+
command.query['fields'] = fields unless fields.nil?
|
|
118
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
119
|
+
execute_or_queue_command(command, &block)
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Gets the latest state of a long-running operation. Clients can use this
|
|
123
|
+
# method to poll the operation result at intervals as recommended by the API
|
|
124
|
+
# service.
|
|
125
|
+
# @param [String] name
|
|
126
|
+
# The name of the operation resource.
|
|
127
|
+
# @param [String] fields
|
|
128
|
+
# Selector specifying which fields to include in a partial response.
|
|
129
|
+
# @param [String] quota_user
|
|
130
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
131
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
132
|
+
# @param [Google::Apis::RequestOptions] options
|
|
133
|
+
# Request-specific options
|
|
134
|
+
#
|
|
135
|
+
# @yield [result, err] Result & error if block supplied
|
|
136
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Operation] parsed result object
|
|
137
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
138
|
+
#
|
|
139
|
+
# @return [Google::Apis::BigtableadminV2::Operation]
|
|
140
|
+
#
|
|
141
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
142
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
143
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
144
|
+
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
145
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
146
|
+
command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation
|
|
147
|
+
command.response_class = Google::Apis::BigtableadminV2::Operation
|
|
148
|
+
command.params['name'] = name unless name.nil?
|
|
149
|
+
command.query['fields'] = fields unless fields.nil?
|
|
150
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
151
|
+
execute_or_queue_command(command, &block)
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Lists operations that match the specified filter in the request. If the
|
|
155
|
+
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
156
|
+
# NOTE: the `name` binding allows API services to override the binding
|
|
157
|
+
# to use different resource name schemes, such as `users/*/operations`. To
|
|
158
|
+
# override the binding, API services can add a binding such as
|
|
159
|
+
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
|
160
|
+
# For backwards compatibility, the default name includes the operations
|
|
161
|
+
# collection id, however overriding users must ensure the name binding
|
|
162
|
+
# is the parent resource, without the operations collection id.
|
|
163
|
+
# @param [String] name
|
|
164
|
+
# The name of the operation's parent resource.
|
|
165
|
+
# @param [String] filter
|
|
166
|
+
# The standard list filter.
|
|
167
|
+
# @param [Fixnum] page_size
|
|
168
|
+
# The standard list page size.
|
|
169
|
+
# @param [String] page_token
|
|
170
|
+
# The standard list page token.
|
|
171
|
+
# @param [String] fields
|
|
172
|
+
# Selector specifying which fields to include in a partial response.
|
|
173
|
+
# @param [String] quota_user
|
|
174
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
175
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
176
|
+
# @param [Google::Apis::RequestOptions] options
|
|
177
|
+
# Request-specific options
|
|
178
|
+
#
|
|
179
|
+
# @yield [result, err] Result & error if block supplied
|
|
180
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::ListOperationsResponse] parsed result object
|
|
181
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
182
|
+
#
|
|
183
|
+
# @return [Google::Apis::BigtableadminV2::ListOperationsResponse]
|
|
184
|
+
#
|
|
185
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
186
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
187
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
188
|
+
def list_operation_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
189
|
+
command = make_simple_command(:get, 'v2/{+name}/operations', options)
|
|
190
|
+
command.response_representation = Google::Apis::BigtableadminV2::ListOperationsResponse::Representation
|
|
191
|
+
command.response_class = Google::Apis::BigtableadminV2::ListOperationsResponse
|
|
192
|
+
command.params['name'] = name unless name.nil?
|
|
193
|
+
command.query['filter'] = filter unless filter.nil?
|
|
194
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
195
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
196
|
+
command.query['fields'] = fields unless fields.nil?
|
|
197
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
198
|
+
execute_or_queue_command(command, &block)
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Create an instance within a project.
|
|
202
|
+
# @param [String] parent
|
|
203
|
+
# The unique name of the project in which to create the new instance.
|
|
204
|
+
# Values are of the form `projects/<project>`.
|
|
205
|
+
# @param [Google::Apis::BigtableadminV2::CreateInstanceRequest] create_instance_request_object
|
|
206
|
+
# @param [String] fields
|
|
207
|
+
# Selector specifying which fields to include in a partial response.
|
|
208
|
+
# @param [String] quota_user
|
|
209
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
210
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
211
|
+
# @param [Google::Apis::RequestOptions] options
|
|
212
|
+
# Request-specific options
|
|
213
|
+
#
|
|
214
|
+
# @yield [result, err] Result & error if block supplied
|
|
215
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Operation] parsed result object
|
|
216
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
217
|
+
#
|
|
218
|
+
# @return [Google::Apis::BigtableadminV2::Operation]
|
|
219
|
+
#
|
|
220
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
221
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
222
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
223
|
+
def create_instance(parent, create_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
224
|
+
command = make_simple_command(:post, 'v2/{+parent}/instances', options)
|
|
225
|
+
command.request_representation = Google::Apis::BigtableadminV2::CreateInstanceRequest::Representation
|
|
226
|
+
command.request_object = create_instance_request_object
|
|
227
|
+
command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation
|
|
228
|
+
command.response_class = Google::Apis::BigtableadminV2::Operation
|
|
229
|
+
command.params['parent'] = parent unless parent.nil?
|
|
230
|
+
command.query['fields'] = fields unless fields.nil?
|
|
231
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
232
|
+
execute_or_queue_command(command, &block)
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Delete an instance from a project.
|
|
236
|
+
# @param [String] name
|
|
237
|
+
# The unique name of the instance to be deleted.
|
|
238
|
+
# Values are of the form `projects/<project>/instances/<instance>`.
|
|
239
|
+
# @param [String] fields
|
|
240
|
+
# Selector specifying which fields to include in a partial response.
|
|
241
|
+
# @param [String] quota_user
|
|
242
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
243
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
244
|
+
# @param [Google::Apis::RequestOptions] options
|
|
245
|
+
# Request-specific options
|
|
246
|
+
#
|
|
247
|
+
# @yield [result, err] Result & error if block supplied
|
|
248
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Empty] parsed result object
|
|
249
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
250
|
+
#
|
|
251
|
+
# @return [Google::Apis::BigtableadminV2::Empty]
|
|
252
|
+
#
|
|
253
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
254
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
255
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
256
|
+
def delete_project_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
257
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
258
|
+
command.response_representation = Google::Apis::BigtableadminV2::Empty::Representation
|
|
259
|
+
command.response_class = Google::Apis::BigtableadminV2::Empty
|
|
260
|
+
command.params['name'] = name unless name.nil?
|
|
261
|
+
command.query['fields'] = fields unless fields.nil?
|
|
262
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
263
|
+
execute_or_queue_command(command, &block)
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# Gets information about an instance.
|
|
267
|
+
# @param [String] name
|
|
268
|
+
# The unique name of the requested instance. Values are of the form
|
|
269
|
+
# `projects/<project>/instances/<instance>`.
|
|
270
|
+
# @param [String] fields
|
|
271
|
+
# Selector specifying which fields to include in a partial response.
|
|
272
|
+
# @param [String] quota_user
|
|
273
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
274
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
275
|
+
# @param [Google::Apis::RequestOptions] options
|
|
276
|
+
# Request-specific options
|
|
277
|
+
#
|
|
278
|
+
# @yield [result, err] Result & error if block supplied
|
|
279
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Instance] parsed result object
|
|
280
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
281
|
+
#
|
|
282
|
+
# @return [Google::Apis::BigtableadminV2::Instance]
|
|
283
|
+
#
|
|
284
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
285
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
286
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
287
|
+
def get_project_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
288
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
289
|
+
command.response_representation = Google::Apis::BigtableadminV2::Instance::Representation
|
|
290
|
+
command.response_class = Google::Apis::BigtableadminV2::Instance
|
|
291
|
+
command.params['name'] = name unless name.nil?
|
|
292
|
+
command.query['fields'] = fields unless fields.nil?
|
|
293
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
294
|
+
execute_or_queue_command(command, &block)
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# Gets the access control policy for an instance resource. Returns an empty
|
|
298
|
+
# policy if an instance exists but does not have a policy set.
|
|
299
|
+
# @param [String] resource
|
|
300
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
301
|
+
# See the operation documentation for the appropriate value for this field.
|
|
302
|
+
# @param [Google::Apis::BigtableadminV2::GetIamPolicyRequest] get_iam_policy_request_object
|
|
303
|
+
# @param [String] fields
|
|
304
|
+
# Selector specifying which fields to include in a partial response.
|
|
305
|
+
# @param [String] quota_user
|
|
306
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
307
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
308
|
+
# @param [Google::Apis::RequestOptions] options
|
|
309
|
+
# Request-specific options
|
|
310
|
+
#
|
|
311
|
+
# @yield [result, err] Result & error if block supplied
|
|
312
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Policy] parsed result object
|
|
313
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
314
|
+
#
|
|
315
|
+
# @return [Google::Apis::BigtableadminV2::Policy]
|
|
316
|
+
#
|
|
317
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
318
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
319
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
320
|
+
def get_instance_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
321
|
+
command = make_simple_command(:post, 'v2/{+resource}:getIamPolicy', options)
|
|
322
|
+
command.request_representation = Google::Apis::BigtableadminV2::GetIamPolicyRequest::Representation
|
|
323
|
+
command.request_object = get_iam_policy_request_object
|
|
324
|
+
command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation
|
|
325
|
+
command.response_class = Google::Apis::BigtableadminV2::Policy
|
|
326
|
+
command.params['resource'] = resource unless resource.nil?
|
|
327
|
+
command.query['fields'] = fields unless fields.nil?
|
|
328
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
329
|
+
execute_or_queue_command(command, &block)
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# Lists information about instances in a project.
|
|
333
|
+
# @param [String] parent
|
|
334
|
+
# The unique name of the project for which a list of instances is requested.
|
|
335
|
+
# Values are of the form `projects/<project>`.
|
|
336
|
+
# @param [String] page_token
|
|
337
|
+
# DEPRECATED: This field is unused and ignored.
|
|
338
|
+
# @param [String] fields
|
|
339
|
+
# Selector specifying which fields to include in a partial response.
|
|
340
|
+
# @param [String] quota_user
|
|
341
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
342
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
343
|
+
# @param [Google::Apis::RequestOptions] options
|
|
344
|
+
# Request-specific options
|
|
345
|
+
#
|
|
346
|
+
# @yield [result, err] Result & error if block supplied
|
|
347
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::ListInstancesResponse] parsed result object
|
|
348
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
349
|
+
#
|
|
350
|
+
# @return [Google::Apis::BigtableadminV2::ListInstancesResponse]
|
|
351
|
+
#
|
|
352
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
353
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
354
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
355
|
+
def list_project_instances(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
356
|
+
command = make_simple_command(:get, 'v2/{+parent}/instances', options)
|
|
357
|
+
command.response_representation = Google::Apis::BigtableadminV2::ListInstancesResponse::Representation
|
|
358
|
+
command.response_class = Google::Apis::BigtableadminV2::ListInstancesResponse
|
|
359
|
+
command.params['parent'] = parent unless parent.nil?
|
|
360
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
361
|
+
command.query['fields'] = fields unless fields.nil?
|
|
362
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
363
|
+
execute_or_queue_command(command, &block)
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
# Partially updates an instance within a project. This method can modify all
|
|
367
|
+
# fields of an Instance and is the preferred way to update an Instance.
|
|
368
|
+
# @param [String] name
|
|
369
|
+
# (`OutputOnly`)
|
|
370
|
+
# The unique name of the instance. Values are of the form
|
|
371
|
+
# `projects/<project>/instances/a-z+[a-z0-9]`.
|
|
372
|
+
# @param [Google::Apis::BigtableadminV2::Instance] instance_object
|
|
373
|
+
# @param [String] update_mask
|
|
374
|
+
# The subset of Instance fields which should be replaced.
|
|
375
|
+
# Must be explicitly set.
|
|
376
|
+
# @param [String] fields
|
|
377
|
+
# Selector specifying which fields to include in a partial response.
|
|
378
|
+
# @param [String] quota_user
|
|
379
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
380
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
381
|
+
# @param [Google::Apis::RequestOptions] options
|
|
382
|
+
# Request-specific options
|
|
383
|
+
#
|
|
384
|
+
# @yield [result, err] Result & error if block supplied
|
|
385
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Operation] parsed result object
|
|
386
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
387
|
+
#
|
|
388
|
+
# @return [Google::Apis::BigtableadminV2::Operation]
|
|
389
|
+
#
|
|
390
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
391
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
392
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
393
|
+
def partial_project_instance_update_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
394
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
395
|
+
command.request_representation = Google::Apis::BigtableadminV2::Instance::Representation
|
|
396
|
+
command.request_object = instance_object
|
|
397
|
+
command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation
|
|
398
|
+
command.response_class = Google::Apis::BigtableadminV2::Operation
|
|
399
|
+
command.params['name'] = name unless name.nil?
|
|
400
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
401
|
+
command.query['fields'] = fields unless fields.nil?
|
|
402
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
403
|
+
execute_or_queue_command(command, &block)
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
# Sets the access control policy on an instance resource. Replaces any
|
|
407
|
+
# existing policy.
|
|
408
|
+
# @param [String] resource
|
|
409
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
410
|
+
# See the operation documentation for the appropriate value for this field.
|
|
411
|
+
# @param [Google::Apis::BigtableadminV2::SetIamPolicyRequest] set_iam_policy_request_object
|
|
412
|
+
# @param [String] fields
|
|
413
|
+
# Selector specifying which fields to include in a partial response.
|
|
414
|
+
# @param [String] quota_user
|
|
415
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
416
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
417
|
+
# @param [Google::Apis::RequestOptions] options
|
|
418
|
+
# Request-specific options
|
|
419
|
+
#
|
|
420
|
+
# @yield [result, err] Result & error if block supplied
|
|
421
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Policy] parsed result object
|
|
422
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
423
|
+
#
|
|
424
|
+
# @return [Google::Apis::BigtableadminV2::Policy]
|
|
425
|
+
#
|
|
426
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
427
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
428
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
429
|
+
def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
430
|
+
command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options)
|
|
431
|
+
command.request_representation = Google::Apis::BigtableadminV2::SetIamPolicyRequest::Representation
|
|
432
|
+
command.request_object = set_iam_policy_request_object
|
|
433
|
+
command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation
|
|
434
|
+
command.response_class = Google::Apis::BigtableadminV2::Policy
|
|
435
|
+
command.params['resource'] = resource unless resource.nil?
|
|
436
|
+
command.query['fields'] = fields unless fields.nil?
|
|
437
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
438
|
+
execute_or_queue_command(command, &block)
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
# Returns permissions that the caller has on the specified instance resource.
|
|
442
|
+
# @param [String] resource
|
|
443
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
|
444
|
+
# See the operation documentation for the appropriate value for this field.
|
|
445
|
+
# @param [Google::Apis::BigtableadminV2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
446
|
+
# @param [String] fields
|
|
447
|
+
# Selector specifying which fields to include in a partial response.
|
|
448
|
+
# @param [String] quota_user
|
|
449
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
450
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
451
|
+
# @param [Google::Apis::RequestOptions] options
|
|
452
|
+
# Request-specific options
|
|
453
|
+
#
|
|
454
|
+
# @yield [result, err] Result & error if block supplied
|
|
455
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::TestIamPermissionsResponse] parsed result object
|
|
456
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
457
|
+
#
|
|
458
|
+
# @return [Google::Apis::BigtableadminV2::TestIamPermissionsResponse]
|
|
459
|
+
#
|
|
460
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
461
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
462
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
463
|
+
def test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
464
|
+
command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
|
|
465
|
+
command.request_representation = Google::Apis::BigtableadminV2::TestIamPermissionsRequest::Representation
|
|
466
|
+
command.request_object = test_iam_permissions_request_object
|
|
467
|
+
command.response_representation = Google::Apis::BigtableadminV2::TestIamPermissionsResponse::Representation
|
|
468
|
+
command.response_class = Google::Apis::BigtableadminV2::TestIamPermissionsResponse
|
|
469
|
+
command.params['resource'] = resource unless resource.nil?
|
|
470
|
+
command.query['fields'] = fields unless fields.nil?
|
|
471
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
472
|
+
execute_or_queue_command(command, &block)
|
|
473
|
+
end
|
|
474
|
+
|
|
475
|
+
# Updates an instance within a project. This method updates only the display
|
|
476
|
+
# name and type for an Instance. To update other Instance properties, such as
|
|
477
|
+
# labels, use PartialUpdateInstance.
|
|
478
|
+
# @param [String] name
|
|
479
|
+
# (`OutputOnly`)
|
|
480
|
+
# The unique name of the instance. Values are of the form
|
|
481
|
+
# `projects/<project>/instances/a-z+[a-z0-9]`.
|
|
482
|
+
# @param [Google::Apis::BigtableadminV2::Instance] instance_object
|
|
483
|
+
# @param [String] fields
|
|
484
|
+
# Selector specifying which fields to include in a partial response.
|
|
485
|
+
# @param [String] quota_user
|
|
486
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
487
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
488
|
+
# @param [Google::Apis::RequestOptions] options
|
|
489
|
+
# Request-specific options
|
|
490
|
+
#
|
|
491
|
+
# @yield [result, err] Result & error if block supplied
|
|
492
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Instance] parsed result object
|
|
493
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
494
|
+
#
|
|
495
|
+
# @return [Google::Apis::BigtableadminV2::Instance]
|
|
496
|
+
#
|
|
497
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
498
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
499
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
500
|
+
def update_project_instance(name, instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
501
|
+
command = make_simple_command(:put, 'v2/{+name}', options)
|
|
502
|
+
command.request_representation = Google::Apis::BigtableadminV2::Instance::Representation
|
|
503
|
+
command.request_object = instance_object
|
|
504
|
+
command.response_representation = Google::Apis::BigtableadminV2::Instance::Representation
|
|
505
|
+
command.response_class = Google::Apis::BigtableadminV2::Instance
|
|
506
|
+
command.params['name'] = name unless name.nil?
|
|
507
|
+
command.query['fields'] = fields unless fields.nil?
|
|
508
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
509
|
+
execute_or_queue_command(command, &block)
|
|
510
|
+
end
|
|
511
|
+
|
|
512
|
+
# Creates an app profile within an instance.
|
|
513
|
+
# @param [String] parent
|
|
514
|
+
# The unique name of the instance in which to create the new app profile.
|
|
515
|
+
# Values are of the form
|
|
516
|
+
# `projects/<project>/instances/<instance>`.
|
|
517
|
+
# @param [Google::Apis::BigtableadminV2::AppProfile] app_profile_object
|
|
518
|
+
# @param [String] app_profile_id
|
|
519
|
+
# The ID to be used when referring to the new app profile within its
|
|
520
|
+
# instance, e.g., just `myprofile` rather than
|
|
521
|
+
# `projects/myproject/instances/myinstance/appProfiles/myprofile`.
|
|
522
|
+
# @param [Boolean] ignore_warnings
|
|
523
|
+
# If true, ignore safety checks when creating the app profile.
|
|
524
|
+
# @param [String] fields
|
|
525
|
+
# Selector specifying which fields to include in a partial response.
|
|
526
|
+
# @param [String] quota_user
|
|
527
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
528
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
529
|
+
# @param [Google::Apis::RequestOptions] options
|
|
530
|
+
# Request-specific options
|
|
531
|
+
#
|
|
532
|
+
# @yield [result, err] Result & error if block supplied
|
|
533
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::AppProfile] parsed result object
|
|
534
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
535
|
+
#
|
|
536
|
+
# @return [Google::Apis::BigtableadminV2::AppProfile]
|
|
537
|
+
#
|
|
538
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
539
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
540
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
541
|
+
def create_project_instance_app_profile(parent, app_profile_object = nil, app_profile_id: nil, ignore_warnings: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
542
|
+
command = make_simple_command(:post, 'v2/{+parent}/appProfiles', options)
|
|
543
|
+
command.request_representation = Google::Apis::BigtableadminV2::AppProfile::Representation
|
|
544
|
+
command.request_object = app_profile_object
|
|
545
|
+
command.response_representation = Google::Apis::BigtableadminV2::AppProfile::Representation
|
|
546
|
+
command.response_class = Google::Apis::BigtableadminV2::AppProfile
|
|
547
|
+
command.params['parent'] = parent unless parent.nil?
|
|
548
|
+
command.query['appProfileId'] = app_profile_id unless app_profile_id.nil?
|
|
549
|
+
command.query['ignoreWarnings'] = ignore_warnings unless ignore_warnings.nil?
|
|
550
|
+
command.query['fields'] = fields unless fields.nil?
|
|
551
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
552
|
+
execute_or_queue_command(command, &block)
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
# Deletes an app profile from an instance.
|
|
556
|
+
# @param [String] name
|
|
557
|
+
# The unique name of the app profile to be deleted. Values are of the form
|
|
558
|
+
# `projects/<project>/instances/<instance>/appProfiles/<app_profile>`.
|
|
559
|
+
# @param [Boolean] ignore_warnings
|
|
560
|
+
# If true, ignore safety checks when deleting the app profile.
|
|
561
|
+
# @param [String] fields
|
|
562
|
+
# Selector specifying which fields to include in a partial response.
|
|
563
|
+
# @param [String] quota_user
|
|
564
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
565
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
566
|
+
# @param [Google::Apis::RequestOptions] options
|
|
567
|
+
# Request-specific options
|
|
568
|
+
#
|
|
569
|
+
# @yield [result, err] Result & error if block supplied
|
|
570
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Empty] parsed result object
|
|
571
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
572
|
+
#
|
|
573
|
+
# @return [Google::Apis::BigtableadminV2::Empty]
|
|
574
|
+
#
|
|
575
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
576
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
577
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
578
|
+
def delete_project_instance_app_profile(name, ignore_warnings: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
579
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
580
|
+
command.response_representation = Google::Apis::BigtableadminV2::Empty::Representation
|
|
581
|
+
command.response_class = Google::Apis::BigtableadminV2::Empty
|
|
582
|
+
command.params['name'] = name unless name.nil?
|
|
583
|
+
command.query['ignoreWarnings'] = ignore_warnings unless ignore_warnings.nil?
|
|
584
|
+
command.query['fields'] = fields unless fields.nil?
|
|
585
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
586
|
+
execute_or_queue_command(command, &block)
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
# Gets information about an app profile.
|
|
590
|
+
# @param [String] name
|
|
591
|
+
# The unique name of the requested app profile. Values are of the form
|
|
592
|
+
# `projects/<project>/instances/<instance>/appProfiles/<app_profile>`.
|
|
593
|
+
# @param [String] fields
|
|
594
|
+
# Selector specifying which fields to include in a partial response.
|
|
595
|
+
# @param [String] quota_user
|
|
596
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
597
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
598
|
+
# @param [Google::Apis::RequestOptions] options
|
|
599
|
+
# Request-specific options
|
|
600
|
+
#
|
|
601
|
+
# @yield [result, err] Result & error if block supplied
|
|
602
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::AppProfile] parsed result object
|
|
603
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
604
|
+
#
|
|
605
|
+
# @return [Google::Apis::BigtableadminV2::AppProfile]
|
|
606
|
+
#
|
|
607
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
608
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
609
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
610
|
+
def get_project_instance_app_profile(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
611
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
612
|
+
command.response_representation = Google::Apis::BigtableadminV2::AppProfile::Representation
|
|
613
|
+
command.response_class = Google::Apis::BigtableadminV2::AppProfile
|
|
614
|
+
command.params['name'] = name unless name.nil?
|
|
615
|
+
command.query['fields'] = fields unless fields.nil?
|
|
616
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
617
|
+
execute_or_queue_command(command, &block)
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
# Lists information about app profiles in an instance.
|
|
621
|
+
# @param [String] parent
|
|
622
|
+
# The unique name of the instance for which a list of app profiles is
|
|
623
|
+
# requested. Values are of the form
|
|
624
|
+
# `projects/<project>/instances/<instance>`.
|
|
625
|
+
# Use `<instance> = '-'` to list AppProfiles for all Instances in a project,
|
|
626
|
+
# e.g., `projects/myproject/instances/-`.
|
|
627
|
+
# @param [Fixnum] page_size
|
|
628
|
+
# Maximum number of results per page.
|
|
629
|
+
# CURRENTLY UNIMPLEMENTED AND IGNORED.
|
|
630
|
+
# @param [String] page_token
|
|
631
|
+
# The value of `next_page_token` returned by a previous call.
|
|
632
|
+
# @param [String] fields
|
|
633
|
+
# Selector specifying which fields to include in a partial response.
|
|
634
|
+
# @param [String] quota_user
|
|
635
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
636
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
637
|
+
# @param [Google::Apis::RequestOptions] options
|
|
638
|
+
# Request-specific options
|
|
639
|
+
#
|
|
640
|
+
# @yield [result, err] Result & error if block supplied
|
|
641
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::ListAppProfilesResponse] parsed result object
|
|
642
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
643
|
+
#
|
|
644
|
+
# @return [Google::Apis::BigtableadminV2::ListAppProfilesResponse]
|
|
645
|
+
#
|
|
646
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
647
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
648
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
649
|
+
def list_project_instance_app_profiles(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
650
|
+
command = make_simple_command(:get, 'v2/{+parent}/appProfiles', options)
|
|
651
|
+
command.response_representation = Google::Apis::BigtableadminV2::ListAppProfilesResponse::Representation
|
|
652
|
+
command.response_class = Google::Apis::BigtableadminV2::ListAppProfilesResponse
|
|
653
|
+
command.params['parent'] = parent unless parent.nil?
|
|
654
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
655
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
656
|
+
command.query['fields'] = fields unless fields.nil?
|
|
657
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
658
|
+
execute_or_queue_command(command, &block)
|
|
659
|
+
end
|
|
660
|
+
|
|
661
|
+
# Updates an app profile within an instance.
|
|
662
|
+
# @param [String] name
|
|
663
|
+
# (`OutputOnly`)
|
|
664
|
+
# The unique name of the app profile. Values are of the form
|
|
665
|
+
# `projects/<project>/instances/<instance>/appProfiles/_a-zA-Z0-9*`.
|
|
666
|
+
# @param [Google::Apis::BigtableadminV2::AppProfile] app_profile_object
|
|
667
|
+
# @param [Boolean] ignore_warnings
|
|
668
|
+
# If true, ignore safety checks when updating the app profile.
|
|
669
|
+
# @param [String] update_mask
|
|
670
|
+
# The subset of app profile fields which should be replaced.
|
|
671
|
+
# If unset, all fields will be replaced.
|
|
672
|
+
# @param [String] fields
|
|
673
|
+
# Selector specifying which fields to include in a partial response.
|
|
674
|
+
# @param [String] quota_user
|
|
675
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
676
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
677
|
+
# @param [Google::Apis::RequestOptions] options
|
|
678
|
+
# Request-specific options
|
|
679
|
+
#
|
|
680
|
+
# @yield [result, err] Result & error if block supplied
|
|
681
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Operation] parsed result object
|
|
682
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
683
|
+
#
|
|
684
|
+
# @return [Google::Apis::BigtableadminV2::Operation]
|
|
685
|
+
#
|
|
686
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
687
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
688
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
689
|
+
def patch_project_instance_app_profile(name, app_profile_object = nil, ignore_warnings: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
690
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
691
|
+
command.request_representation = Google::Apis::BigtableadminV2::AppProfile::Representation
|
|
692
|
+
command.request_object = app_profile_object
|
|
693
|
+
command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation
|
|
694
|
+
command.response_class = Google::Apis::BigtableadminV2::Operation
|
|
695
|
+
command.params['name'] = name unless name.nil?
|
|
696
|
+
command.query['ignoreWarnings'] = ignore_warnings unless ignore_warnings.nil?
|
|
697
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
698
|
+
command.query['fields'] = fields unless fields.nil?
|
|
699
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
700
|
+
execute_or_queue_command(command, &block)
|
|
701
|
+
end
|
|
702
|
+
|
|
703
|
+
# Creates a cluster within an instance.
|
|
704
|
+
# @param [String] parent
|
|
705
|
+
# The unique name of the instance in which to create the new cluster.
|
|
706
|
+
# Values are of the form
|
|
707
|
+
# `projects/<project>/instances/<instance>`.
|
|
708
|
+
# @param [Google::Apis::BigtableadminV2::Cluster] cluster_object
|
|
709
|
+
# @param [String] cluster_id
|
|
710
|
+
# The ID to be used when referring to the new cluster within its instance,
|
|
711
|
+
# e.g., just `mycluster` rather than
|
|
712
|
+
# `projects/myproject/instances/myinstance/clusters/mycluster`.
|
|
713
|
+
# @param [String] fields
|
|
714
|
+
# Selector specifying which fields to include in a partial response.
|
|
715
|
+
# @param [String] quota_user
|
|
716
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
717
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
718
|
+
# @param [Google::Apis::RequestOptions] options
|
|
719
|
+
# Request-specific options
|
|
720
|
+
#
|
|
721
|
+
# @yield [result, err] Result & error if block supplied
|
|
722
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Operation] parsed result object
|
|
723
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
724
|
+
#
|
|
725
|
+
# @return [Google::Apis::BigtableadminV2::Operation]
|
|
726
|
+
#
|
|
727
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
728
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
729
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
730
|
+
def create_project_instance_cluster(parent, cluster_object = nil, cluster_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
731
|
+
command = make_simple_command(:post, 'v2/{+parent}/clusters', options)
|
|
732
|
+
command.request_representation = Google::Apis::BigtableadminV2::Cluster::Representation
|
|
733
|
+
command.request_object = cluster_object
|
|
734
|
+
command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation
|
|
735
|
+
command.response_class = Google::Apis::BigtableadminV2::Operation
|
|
736
|
+
command.params['parent'] = parent unless parent.nil?
|
|
737
|
+
command.query['clusterId'] = cluster_id unless cluster_id.nil?
|
|
738
|
+
command.query['fields'] = fields unless fields.nil?
|
|
739
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
740
|
+
execute_or_queue_command(command, &block)
|
|
741
|
+
end
|
|
742
|
+
|
|
743
|
+
# Deletes a cluster from an instance.
|
|
744
|
+
# @param [String] name
|
|
745
|
+
# The unique name of the cluster to be deleted. Values are of the form
|
|
746
|
+
# `projects/<project>/instances/<instance>/clusters/<cluster>`.
|
|
747
|
+
# @param [String] fields
|
|
748
|
+
# Selector specifying which fields to include in a partial response.
|
|
749
|
+
# @param [String] quota_user
|
|
750
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
751
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
752
|
+
# @param [Google::Apis::RequestOptions] options
|
|
753
|
+
# Request-specific options
|
|
754
|
+
#
|
|
755
|
+
# @yield [result, err] Result & error if block supplied
|
|
756
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Empty] parsed result object
|
|
757
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
758
|
+
#
|
|
759
|
+
# @return [Google::Apis::BigtableadminV2::Empty]
|
|
760
|
+
#
|
|
761
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
762
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
763
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
764
|
+
def delete_project_instance_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
765
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
766
|
+
command.response_representation = Google::Apis::BigtableadminV2::Empty::Representation
|
|
767
|
+
command.response_class = Google::Apis::BigtableadminV2::Empty
|
|
768
|
+
command.params['name'] = name unless name.nil?
|
|
769
|
+
command.query['fields'] = fields unless fields.nil?
|
|
770
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
771
|
+
execute_or_queue_command(command, &block)
|
|
772
|
+
end
|
|
773
|
+
|
|
774
|
+
# Gets information about a cluster.
|
|
775
|
+
# @param [String] name
|
|
776
|
+
# The unique name of the requested cluster. Values are of the form
|
|
777
|
+
# `projects/<project>/instances/<instance>/clusters/<cluster>`.
|
|
778
|
+
# @param [String] fields
|
|
779
|
+
# Selector specifying which fields to include in a partial response.
|
|
780
|
+
# @param [String] quota_user
|
|
781
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
782
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
783
|
+
# @param [Google::Apis::RequestOptions] options
|
|
784
|
+
# Request-specific options
|
|
785
|
+
#
|
|
786
|
+
# @yield [result, err] Result & error if block supplied
|
|
787
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Cluster] parsed result object
|
|
788
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
789
|
+
#
|
|
790
|
+
# @return [Google::Apis::BigtableadminV2::Cluster]
|
|
791
|
+
#
|
|
792
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
793
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
794
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
795
|
+
def get_project_instance_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
796
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
797
|
+
command.response_representation = Google::Apis::BigtableadminV2::Cluster::Representation
|
|
798
|
+
command.response_class = Google::Apis::BigtableadminV2::Cluster
|
|
799
|
+
command.params['name'] = name unless name.nil?
|
|
800
|
+
command.query['fields'] = fields unless fields.nil?
|
|
801
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
802
|
+
execute_or_queue_command(command, &block)
|
|
803
|
+
end
|
|
804
|
+
|
|
805
|
+
# Lists information about clusters in an instance.
|
|
806
|
+
# @param [String] parent
|
|
807
|
+
# The unique name of the instance for which a list of clusters is requested.
|
|
808
|
+
# Values are of the form `projects/<project>/instances/<instance>`.
|
|
809
|
+
# Use `<instance> = '-'` to list Clusters for all Instances in a project,
|
|
810
|
+
# e.g., `projects/myproject/instances/-`.
|
|
811
|
+
# @param [String] page_token
|
|
812
|
+
# DEPRECATED: This field is unused and ignored.
|
|
813
|
+
# @param [String] fields
|
|
814
|
+
# Selector specifying which fields to include in a partial response.
|
|
815
|
+
# @param [String] quota_user
|
|
816
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
817
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
818
|
+
# @param [Google::Apis::RequestOptions] options
|
|
819
|
+
# Request-specific options
|
|
820
|
+
#
|
|
821
|
+
# @yield [result, err] Result & error if block supplied
|
|
822
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::ListClustersResponse] parsed result object
|
|
823
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
824
|
+
#
|
|
825
|
+
# @return [Google::Apis::BigtableadminV2::ListClustersResponse]
|
|
826
|
+
#
|
|
827
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
828
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
829
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
830
|
+
def list_project_instance_clusters(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
831
|
+
command = make_simple_command(:get, 'v2/{+parent}/clusters', options)
|
|
832
|
+
command.response_representation = Google::Apis::BigtableadminV2::ListClustersResponse::Representation
|
|
833
|
+
command.response_class = Google::Apis::BigtableadminV2::ListClustersResponse
|
|
834
|
+
command.params['parent'] = parent unless parent.nil?
|
|
835
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
836
|
+
command.query['fields'] = fields unless fields.nil?
|
|
837
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
838
|
+
execute_or_queue_command(command, &block)
|
|
839
|
+
end
|
|
840
|
+
|
|
841
|
+
# Updates a cluster within an instance.
|
|
842
|
+
# @param [String] name
|
|
843
|
+
# (`OutputOnly`)
|
|
844
|
+
# The unique name of the cluster. Values are of the form
|
|
845
|
+
# `projects/<project>/instances/<instance>/clusters/a-z*`.
|
|
846
|
+
# @param [Google::Apis::BigtableadminV2::Cluster] cluster_object
|
|
847
|
+
# @param [String] fields
|
|
848
|
+
# Selector specifying which fields to include in a partial response.
|
|
849
|
+
# @param [String] quota_user
|
|
850
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
851
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
852
|
+
# @param [Google::Apis::RequestOptions] options
|
|
853
|
+
# Request-specific options
|
|
854
|
+
#
|
|
855
|
+
# @yield [result, err] Result & error if block supplied
|
|
856
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Operation] parsed result object
|
|
857
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
858
|
+
#
|
|
859
|
+
# @return [Google::Apis::BigtableadminV2::Operation]
|
|
860
|
+
#
|
|
861
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
862
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
863
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
864
|
+
def update_project_instance_cluster(name, cluster_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
865
|
+
command = make_simple_command(:put, 'v2/{+name}', options)
|
|
866
|
+
command.request_representation = Google::Apis::BigtableadminV2::Cluster::Representation
|
|
867
|
+
command.request_object = cluster_object
|
|
868
|
+
command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation
|
|
869
|
+
command.response_class = Google::Apis::BigtableadminV2::Operation
|
|
870
|
+
command.params['name'] = name unless name.nil?
|
|
871
|
+
command.query['fields'] = fields unless fields.nil?
|
|
872
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
873
|
+
execute_or_queue_command(command, &block)
|
|
874
|
+
end
|
|
875
|
+
|
|
876
|
+
# Checks replication consistency based on a consistency token, that is, if
|
|
877
|
+
# replication has caught up based on the conditions specified in the token
|
|
878
|
+
# and the check request.
|
|
879
|
+
# @param [String] name
|
|
880
|
+
# The unique name of the Table for which to check replication consistency.
|
|
881
|
+
# Values are of the form
|
|
882
|
+
# `projects/<project>/instances/<instance>/tables/<table>`.
|
|
883
|
+
# @param [Google::Apis::BigtableadminV2::CheckConsistencyRequest] check_consistency_request_object
|
|
884
|
+
# @param [String] fields
|
|
885
|
+
# Selector specifying which fields to include in a partial response.
|
|
886
|
+
# @param [String] quota_user
|
|
887
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
888
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
889
|
+
# @param [Google::Apis::RequestOptions] options
|
|
890
|
+
# Request-specific options
|
|
891
|
+
#
|
|
892
|
+
# @yield [result, err] Result & error if block supplied
|
|
893
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::CheckConsistencyResponse] parsed result object
|
|
894
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
895
|
+
#
|
|
896
|
+
# @return [Google::Apis::BigtableadminV2::CheckConsistencyResponse]
|
|
897
|
+
#
|
|
898
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
899
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
900
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
901
|
+
def check_table_consistency(name, check_consistency_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
902
|
+
command = make_simple_command(:post, 'v2/{+name}:checkConsistency', options)
|
|
903
|
+
command.request_representation = Google::Apis::BigtableadminV2::CheckConsistencyRequest::Representation
|
|
904
|
+
command.request_object = check_consistency_request_object
|
|
905
|
+
command.response_representation = Google::Apis::BigtableadminV2::CheckConsistencyResponse::Representation
|
|
906
|
+
command.response_class = Google::Apis::BigtableadminV2::CheckConsistencyResponse
|
|
907
|
+
command.params['name'] = name unless name.nil?
|
|
908
|
+
command.query['fields'] = fields unless fields.nil?
|
|
909
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
910
|
+
execute_or_queue_command(command, &block)
|
|
911
|
+
end
|
|
912
|
+
|
|
913
|
+
# Creates a new table in the specified instance.
|
|
914
|
+
# The table can be created with a full set of initial column families,
|
|
915
|
+
# specified in the request.
|
|
916
|
+
# @param [String] parent
|
|
917
|
+
# The unique name of the instance in which to create the table.
|
|
918
|
+
# Values are of the form `projects/<project>/instances/<instance>`.
|
|
919
|
+
# @param [Google::Apis::BigtableadminV2::CreateTableRequest] create_table_request_object
|
|
920
|
+
# @param [String] fields
|
|
921
|
+
# Selector specifying which fields to include in a partial response.
|
|
922
|
+
# @param [String] quota_user
|
|
923
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
924
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
925
|
+
# @param [Google::Apis::RequestOptions] options
|
|
926
|
+
# Request-specific options
|
|
927
|
+
#
|
|
928
|
+
# @yield [result, err] Result & error if block supplied
|
|
929
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Table] parsed result object
|
|
930
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
931
|
+
#
|
|
932
|
+
# @return [Google::Apis::BigtableadminV2::Table]
|
|
933
|
+
#
|
|
934
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
935
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
936
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
937
|
+
def create_table(parent, create_table_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
938
|
+
command = make_simple_command(:post, 'v2/{+parent}/tables', options)
|
|
939
|
+
command.request_representation = Google::Apis::BigtableadminV2::CreateTableRequest::Representation
|
|
940
|
+
command.request_object = create_table_request_object
|
|
941
|
+
command.response_representation = Google::Apis::BigtableadminV2::Table::Representation
|
|
942
|
+
command.response_class = Google::Apis::BigtableadminV2::Table
|
|
943
|
+
command.params['parent'] = parent unless parent.nil?
|
|
944
|
+
command.query['fields'] = fields unless fields.nil?
|
|
945
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
946
|
+
execute_or_queue_command(command, &block)
|
|
947
|
+
end
|
|
948
|
+
|
|
949
|
+
# Permanently deletes a specified table and all of its data.
|
|
950
|
+
# @param [String] name
|
|
951
|
+
# The unique name of the table to be deleted.
|
|
952
|
+
# Values are of the form
|
|
953
|
+
# `projects/<project>/instances/<instance>/tables/<table>`.
|
|
954
|
+
# @param [String] fields
|
|
955
|
+
# Selector specifying which fields to include in a partial response.
|
|
956
|
+
# @param [String] quota_user
|
|
957
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
958
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
959
|
+
# @param [Google::Apis::RequestOptions] options
|
|
960
|
+
# Request-specific options
|
|
961
|
+
#
|
|
962
|
+
# @yield [result, err] Result & error if block supplied
|
|
963
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Empty] parsed result object
|
|
964
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
965
|
+
#
|
|
966
|
+
# @return [Google::Apis::BigtableadminV2::Empty]
|
|
967
|
+
#
|
|
968
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
969
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
970
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
971
|
+
def delete_project_instance_table(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
972
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
973
|
+
command.response_representation = Google::Apis::BigtableadminV2::Empty::Representation
|
|
974
|
+
command.response_class = Google::Apis::BigtableadminV2::Empty
|
|
975
|
+
command.params['name'] = name unless name.nil?
|
|
976
|
+
command.query['fields'] = fields unless fields.nil?
|
|
977
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
978
|
+
execute_or_queue_command(command, &block)
|
|
979
|
+
end
|
|
980
|
+
|
|
981
|
+
# Permanently drop/delete a row range from a specified table. The request can
|
|
982
|
+
# specify whether to delete all rows in a table, or only those that match a
|
|
983
|
+
# particular prefix.
|
|
984
|
+
# @param [String] name
|
|
985
|
+
# The unique name of the table on which to drop a range of rows.
|
|
986
|
+
# Values are of the form
|
|
987
|
+
# `projects/<project>/instances/<instance>/tables/<table>`.
|
|
988
|
+
# @param [Google::Apis::BigtableadminV2::DropRowRangeRequest] drop_row_range_request_object
|
|
989
|
+
# @param [String] fields
|
|
990
|
+
# Selector specifying which fields to include in a partial response.
|
|
991
|
+
# @param [String] quota_user
|
|
992
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
993
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
994
|
+
# @param [Google::Apis::RequestOptions] options
|
|
995
|
+
# Request-specific options
|
|
996
|
+
#
|
|
997
|
+
# @yield [result, err] Result & error if block supplied
|
|
998
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Empty] parsed result object
|
|
999
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1000
|
+
#
|
|
1001
|
+
# @return [Google::Apis::BigtableadminV2::Empty]
|
|
1002
|
+
#
|
|
1003
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1004
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1005
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1006
|
+
def drop_table_row_range(name, drop_row_range_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1007
|
+
command = make_simple_command(:post, 'v2/{+name}:dropRowRange', options)
|
|
1008
|
+
command.request_representation = Google::Apis::BigtableadminV2::DropRowRangeRequest::Representation
|
|
1009
|
+
command.request_object = drop_row_range_request_object
|
|
1010
|
+
command.response_representation = Google::Apis::BigtableadminV2::Empty::Representation
|
|
1011
|
+
command.response_class = Google::Apis::BigtableadminV2::Empty
|
|
1012
|
+
command.params['name'] = name unless name.nil?
|
|
1013
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1014
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1015
|
+
execute_or_queue_command(command, &block)
|
|
1016
|
+
end
|
|
1017
|
+
|
|
1018
|
+
# Generates a consistency token for a Table, which can be used in
|
|
1019
|
+
# CheckConsistency to check whether mutations to the table that finished
|
|
1020
|
+
# before this call started have been replicated. The tokens will be available
|
|
1021
|
+
# for 90 days.
|
|
1022
|
+
# @param [String] name
|
|
1023
|
+
# The unique name of the Table for which to create a consistency token.
|
|
1024
|
+
# Values are of the form
|
|
1025
|
+
# `projects/<project>/instances/<instance>/tables/<table>`.
|
|
1026
|
+
# @param [Google::Apis::BigtableadminV2::GenerateConsistencyTokenRequest] generate_consistency_token_request_object
|
|
1027
|
+
# @param [String] fields
|
|
1028
|
+
# Selector specifying which fields to include in a partial response.
|
|
1029
|
+
# @param [String] quota_user
|
|
1030
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1031
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1032
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1033
|
+
# Request-specific options
|
|
1034
|
+
#
|
|
1035
|
+
# @yield [result, err] Result & error if block supplied
|
|
1036
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::GenerateConsistencyTokenResponse] parsed result object
|
|
1037
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1038
|
+
#
|
|
1039
|
+
# @return [Google::Apis::BigtableadminV2::GenerateConsistencyTokenResponse]
|
|
1040
|
+
#
|
|
1041
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1042
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1043
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1044
|
+
def generate_table_consistency_token(name, generate_consistency_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1045
|
+
command = make_simple_command(:post, 'v2/{+name}:generateConsistencyToken', options)
|
|
1046
|
+
command.request_representation = Google::Apis::BigtableadminV2::GenerateConsistencyTokenRequest::Representation
|
|
1047
|
+
command.request_object = generate_consistency_token_request_object
|
|
1048
|
+
command.response_representation = Google::Apis::BigtableadminV2::GenerateConsistencyTokenResponse::Representation
|
|
1049
|
+
command.response_class = Google::Apis::BigtableadminV2::GenerateConsistencyTokenResponse
|
|
1050
|
+
command.params['name'] = name unless name.nil?
|
|
1051
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1052
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1053
|
+
execute_or_queue_command(command, &block)
|
|
1054
|
+
end
|
|
1055
|
+
|
|
1056
|
+
# Gets metadata information about the specified table.
|
|
1057
|
+
# @param [String] name
|
|
1058
|
+
# The unique name of the requested table.
|
|
1059
|
+
# Values are of the form
|
|
1060
|
+
# `projects/<project>/instances/<instance>/tables/<table>`.
|
|
1061
|
+
# @param [String] view
|
|
1062
|
+
# The view to be applied to the returned table's fields.
|
|
1063
|
+
# Defaults to `SCHEMA_VIEW` if unspecified.
|
|
1064
|
+
# @param [String] fields
|
|
1065
|
+
# Selector specifying which fields to include in a partial response.
|
|
1066
|
+
# @param [String] quota_user
|
|
1067
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1068
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1069
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1070
|
+
# Request-specific options
|
|
1071
|
+
#
|
|
1072
|
+
# @yield [result, err] Result & error if block supplied
|
|
1073
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Table] parsed result object
|
|
1074
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1075
|
+
#
|
|
1076
|
+
# @return [Google::Apis::BigtableadminV2::Table]
|
|
1077
|
+
#
|
|
1078
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1079
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1080
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1081
|
+
def get_project_instance_table(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1082
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
1083
|
+
command.response_representation = Google::Apis::BigtableadminV2::Table::Representation
|
|
1084
|
+
command.response_class = Google::Apis::BigtableadminV2::Table
|
|
1085
|
+
command.params['name'] = name unless name.nil?
|
|
1086
|
+
command.query['view'] = view unless view.nil?
|
|
1087
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1088
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1089
|
+
execute_or_queue_command(command, &block)
|
|
1090
|
+
end
|
|
1091
|
+
|
|
1092
|
+
# Lists all tables served from a specified instance.
|
|
1093
|
+
# @param [String] parent
|
|
1094
|
+
# The unique name of the instance for which tables should be listed.
|
|
1095
|
+
# Values are of the form `projects/<project>/instances/<instance>`.
|
|
1096
|
+
# @param [Fixnum] page_size
|
|
1097
|
+
# Maximum number of results per page.
|
|
1098
|
+
# CURRENTLY UNIMPLEMENTED AND IGNORED.
|
|
1099
|
+
# @param [String] page_token
|
|
1100
|
+
# The value of `next_page_token` returned by a previous call.
|
|
1101
|
+
# @param [String] view
|
|
1102
|
+
# The view to be applied to the returned tables' fields.
|
|
1103
|
+
# Defaults to `NAME_ONLY` if unspecified; no others are currently supported.
|
|
1104
|
+
# @param [String] fields
|
|
1105
|
+
# Selector specifying which fields to include in a partial response.
|
|
1106
|
+
# @param [String] quota_user
|
|
1107
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1108
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1109
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1110
|
+
# Request-specific options
|
|
1111
|
+
#
|
|
1112
|
+
# @yield [result, err] Result & error if block supplied
|
|
1113
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::ListTablesResponse] parsed result object
|
|
1114
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1115
|
+
#
|
|
1116
|
+
# @return [Google::Apis::BigtableadminV2::ListTablesResponse]
|
|
1117
|
+
#
|
|
1118
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1119
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1120
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1121
|
+
def list_project_instance_tables(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1122
|
+
command = make_simple_command(:get, 'v2/{+parent}/tables', options)
|
|
1123
|
+
command.response_representation = Google::Apis::BigtableadminV2::ListTablesResponse::Representation
|
|
1124
|
+
command.response_class = Google::Apis::BigtableadminV2::ListTablesResponse
|
|
1125
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1126
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1127
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1128
|
+
command.query['view'] = view unless view.nil?
|
|
1129
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1130
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1131
|
+
execute_or_queue_command(command, &block)
|
|
1132
|
+
end
|
|
1133
|
+
|
|
1134
|
+
# Performs a series of column family modifications on the specified table.
|
|
1135
|
+
# Either all or none of the modifications will occur before this method
|
|
1136
|
+
# returns, but data requests received prior to that point may see a table
|
|
1137
|
+
# where only some modifications have taken effect.
|
|
1138
|
+
# @param [String] name
|
|
1139
|
+
# The unique name of the table whose families should be modified.
|
|
1140
|
+
# Values are of the form
|
|
1141
|
+
# `projects/<project>/instances/<instance>/tables/<table>`.
|
|
1142
|
+
# @param [Google::Apis::BigtableadminV2::ModifyColumnFamiliesRequest] modify_column_families_request_object
|
|
1143
|
+
# @param [String] fields
|
|
1144
|
+
# Selector specifying which fields to include in a partial response.
|
|
1145
|
+
# @param [String] quota_user
|
|
1146
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1147
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1148
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1149
|
+
# Request-specific options
|
|
1150
|
+
#
|
|
1151
|
+
# @yield [result, err] Result & error if block supplied
|
|
1152
|
+
# @yieldparam result [Google::Apis::BigtableadminV2::Table] parsed result object
|
|
1153
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1154
|
+
#
|
|
1155
|
+
# @return [Google::Apis::BigtableadminV2::Table]
|
|
1156
|
+
#
|
|
1157
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1158
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1159
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1160
|
+
def modify_table_column_families(name, modify_column_families_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1161
|
+
command = make_simple_command(:post, 'v2/{+name}:modifyColumnFamilies', options)
|
|
1162
|
+
command.request_representation = Google::Apis::BigtableadminV2::ModifyColumnFamiliesRequest::Representation
|
|
1163
|
+
command.request_object = modify_column_families_request_object
|
|
1164
|
+
command.response_representation = Google::Apis::BigtableadminV2::Table::Representation
|
|
1165
|
+
command.response_class = Google::Apis::BigtableadminV2::Table
|
|
1166
|
+
command.params['name'] = name unless name.nil?
|
|
1167
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1168
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1169
|
+
execute_or_queue_command(command, &block)
|
|
1170
|
+
end
|
|
1171
|
+
|
|
1172
|
+
protected
|
|
1173
|
+
|
|
1174
|
+
def apply_command_defaults(command)
|
|
1175
|
+
command.query['key'] = key unless key.nil?
|
|
1176
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1177
|
+
end
|
|
1178
|
+
end
|
|
1179
|
+
end
|
|
1180
|
+
end
|
|
1181
|
+
end
|