google-apis-area120tables_v1alpha1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-area120tables_v1alpha1.rb +15 -0
- data/lib/google/apis/area120tables_v1alpha1.rb +51 -0
- data/lib/google/apis/area120tables_v1alpha1/classes.rb +481 -0
- data/lib/google/apis/area120tables_v1alpha1/gem_version.rb +28 -0
- data/lib/google/apis/area120tables_v1alpha1/representations.rb +279 -0
- data/lib/google/apis/area120tables_v1alpha1/service.rb +450 -0
- metadata +76 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
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
|
+
module Google
|
16
|
+
module Apis
|
17
|
+
module Area120tablesV1alpha1
|
18
|
+
# Version of the google-apis-area120tables_v1alpha1 gem
|
19
|
+
GEM_VERSION = "0.1.0"
|
20
|
+
|
21
|
+
# Version of the code generator used to generate this client
|
22
|
+
GENERATOR_VERSION = "0.1.1"
|
23
|
+
|
24
|
+
# Revision of the discovery document this client was generated from
|
25
|
+
REVISION = "20201201"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,279 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
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 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module Area120tablesV1alpha1
|
24
|
+
|
25
|
+
class BatchCreateRowsRequest
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class BatchCreateRowsResponse
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class BatchUpdateRowsRequest
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class BatchUpdateRowsResponse
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class ColumnDescription
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class CreateRowRequest
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class Empty
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class LabeledItem
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class ListRowsResponse
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class ListTablesResponse
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class ListWorkspacesResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class LookupDetails
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class RelationshipDetails
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class Row
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class Table
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class UpdateRowRequest
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class Workspace
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class BatchCreateRowsRequest
|
128
|
+
# @private
|
129
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
130
|
+
collection :requests, as: 'requests', class: Google::Apis::Area120tablesV1alpha1::CreateRowRequest, decorator: Google::Apis::Area120tablesV1alpha1::CreateRowRequest::Representation
|
131
|
+
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
class BatchCreateRowsResponse
|
136
|
+
# @private
|
137
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
138
|
+
collection :rows, as: 'rows', class: Google::Apis::Area120tablesV1alpha1::Row, decorator: Google::Apis::Area120tablesV1alpha1::Row::Representation
|
139
|
+
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
class BatchUpdateRowsRequest
|
144
|
+
# @private
|
145
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
146
|
+
collection :requests, as: 'requests', class: Google::Apis::Area120tablesV1alpha1::UpdateRowRequest, decorator: Google::Apis::Area120tablesV1alpha1::UpdateRowRequest::Representation
|
147
|
+
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
class BatchUpdateRowsResponse
|
152
|
+
# @private
|
153
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
154
|
+
collection :rows, as: 'rows', class: Google::Apis::Area120tablesV1alpha1::Row, decorator: Google::Apis::Area120tablesV1alpha1::Row::Representation
|
155
|
+
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
class ColumnDescription
|
160
|
+
# @private
|
161
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
162
|
+
property :data_type, as: 'dataType'
|
163
|
+
property :id, as: 'id'
|
164
|
+
collection :labels, as: 'labels', class: Google::Apis::Area120tablesV1alpha1::LabeledItem, decorator: Google::Apis::Area120tablesV1alpha1::LabeledItem::Representation
|
165
|
+
|
166
|
+
property :lookup_details, as: 'lookupDetails', class: Google::Apis::Area120tablesV1alpha1::LookupDetails, decorator: Google::Apis::Area120tablesV1alpha1::LookupDetails::Representation
|
167
|
+
|
168
|
+
property :name, as: 'name'
|
169
|
+
property :relationship_details, as: 'relationshipDetails', class: Google::Apis::Area120tablesV1alpha1::RelationshipDetails, decorator: Google::Apis::Area120tablesV1alpha1::RelationshipDetails::Representation
|
170
|
+
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
class CreateRowRequest
|
175
|
+
# @private
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
177
|
+
property :parent, as: 'parent'
|
178
|
+
property :row, as: 'row', class: Google::Apis::Area120tablesV1alpha1::Row, decorator: Google::Apis::Area120tablesV1alpha1::Row::Representation
|
179
|
+
|
180
|
+
property :view, as: 'view'
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
class Empty
|
185
|
+
# @private
|
186
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
class LabeledItem
|
191
|
+
# @private
|
192
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
193
|
+
property :id, as: 'id'
|
194
|
+
property :name, as: 'name'
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
class ListRowsResponse
|
199
|
+
# @private
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
201
|
+
property :next_page_token, as: 'nextPageToken'
|
202
|
+
collection :rows, as: 'rows', class: Google::Apis::Area120tablesV1alpha1::Row, decorator: Google::Apis::Area120tablesV1alpha1::Row::Representation
|
203
|
+
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
class ListTablesResponse
|
208
|
+
# @private
|
209
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
210
|
+
property :next_page_token, as: 'nextPageToken'
|
211
|
+
collection :tables, as: 'tables', class: Google::Apis::Area120tablesV1alpha1::Table, decorator: Google::Apis::Area120tablesV1alpha1::Table::Representation
|
212
|
+
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
class ListWorkspacesResponse
|
217
|
+
# @private
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
219
|
+
property :next_page_token, as: 'nextPageToken'
|
220
|
+
collection :workspaces, as: 'workspaces', class: Google::Apis::Area120tablesV1alpha1::Workspace, decorator: Google::Apis::Area120tablesV1alpha1::Workspace::Representation
|
221
|
+
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
225
|
+
class LookupDetails
|
226
|
+
# @private
|
227
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
228
|
+
property :relationship_column, as: 'relationshipColumn'
|
229
|
+
property :relationship_column_id, as: 'relationshipColumnId'
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
class RelationshipDetails
|
234
|
+
# @private
|
235
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
236
|
+
property :linked_table, as: 'linkedTable'
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
class Row
|
241
|
+
# @private
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
243
|
+
property :name, as: 'name'
|
244
|
+
hash :values, as: 'values'
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
class Table
|
249
|
+
# @private
|
250
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
251
|
+
collection :columns, as: 'columns', class: Google::Apis::Area120tablesV1alpha1::ColumnDescription, decorator: Google::Apis::Area120tablesV1alpha1::ColumnDescription::Representation
|
252
|
+
|
253
|
+
property :display_name, as: 'displayName'
|
254
|
+
property :name, as: 'name'
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
class UpdateRowRequest
|
259
|
+
# @private
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
261
|
+
property :row, as: 'row', class: Google::Apis::Area120tablesV1alpha1::Row, decorator: Google::Apis::Area120tablesV1alpha1::Row::Representation
|
262
|
+
|
263
|
+
property :update_mask, as: 'updateMask'
|
264
|
+
property :view, as: 'view'
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
class Workspace
|
269
|
+
# @private
|
270
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
271
|
+
property :display_name, as: 'displayName'
|
272
|
+
property :name, as: 'name'
|
273
|
+
collection :tables, as: 'tables', class: Google::Apis::Area120tablesV1alpha1::Table, decorator: Google::Apis::Area120tablesV1alpha1::Table::Representation
|
274
|
+
|
275
|
+
end
|
276
|
+
end
|
277
|
+
end
|
278
|
+
end
|
279
|
+
end
|
@@ -0,0 +1,450 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
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 Area120tablesV1alpha1
|
23
|
+
# Area120 Tables API
|
24
|
+
#
|
25
|
+
#
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/area120tables_v1alpha1'
|
29
|
+
#
|
30
|
+
# Area120tables = Google::Apis::Area120tablesV1alpha1 # Alias the module
|
31
|
+
# service = Area120tables::Area120TablesService.new
|
32
|
+
#
|
33
|
+
# @see https://tables.area120.google.com
|
34
|
+
class Area120TablesService < 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://area120tables.googleapis.com/', '',
|
47
|
+
client_name: 'google-apis-area120tables_v1alpha1',
|
48
|
+
client_version: Google::Apis::Area120tablesV1alpha1::GEM_VERSION)
|
49
|
+
@batch_path = 'batch'
|
50
|
+
end
|
51
|
+
|
52
|
+
# Gets a table. Returns NOT_FOUND if the table does not exist.
|
53
|
+
# @param [String] name
|
54
|
+
# Required. The name of the table to retrieve. Format: tables/`table`
|
55
|
+
# @param [String] fields
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
57
|
+
# @param [String] quota_user
|
58
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
59
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60
|
+
# @param [Google::Apis::RequestOptions] options
|
61
|
+
# Request-specific options
|
62
|
+
#
|
63
|
+
# @yield [result, err] Result & error if block supplied
|
64
|
+
# @yieldparam result [Google::Apis::Area120tablesV1alpha1::Table] parsed result object
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
66
|
+
#
|
67
|
+
# @return [Google::Apis::Area120tablesV1alpha1::Table]
|
68
|
+
#
|
69
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
+
def get_table(name, fields: nil, quota_user: nil, options: nil, &block)
|
73
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
74
|
+
command.response_representation = Google::Apis::Area120tablesV1alpha1::Table::Representation
|
75
|
+
command.response_class = Google::Apis::Area120tablesV1alpha1::Table
|
76
|
+
command.params['name'] = name unless name.nil?
|
77
|
+
command.query['fields'] = fields unless fields.nil?
|
78
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
79
|
+
execute_or_queue_command(command, &block)
|
80
|
+
end
|
81
|
+
|
82
|
+
# Lists tables for the user.
|
83
|
+
# @param [Fixnum] page_size
|
84
|
+
# The maximum number of tables to return. The service may return fewer than this
|
85
|
+
# value. If unspecified, at most 20 tables are returned. The maximum value is
|
86
|
+
# 100; values above 100 are coerced to 100.
|
87
|
+
# @param [String] page_token
|
88
|
+
# A page token, received from a previous `ListTables` call. Provide this to
|
89
|
+
# retrieve the subsequent page. When paginating, all other parameters provided
|
90
|
+
# to `ListTables` must match the call that provided the page token.
|
91
|
+
# @param [String] fields
|
92
|
+
# Selector specifying which fields to include in a partial response.
|
93
|
+
# @param [String] quota_user
|
94
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
95
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
96
|
+
# @param [Google::Apis::RequestOptions] options
|
97
|
+
# Request-specific options
|
98
|
+
#
|
99
|
+
# @yield [result, err] Result & error if block supplied
|
100
|
+
# @yieldparam result [Google::Apis::Area120tablesV1alpha1::ListTablesResponse] parsed result object
|
101
|
+
# @yieldparam err [StandardError] error object if request failed
|
102
|
+
#
|
103
|
+
# @return [Google::Apis::Area120tablesV1alpha1::ListTablesResponse]
|
104
|
+
#
|
105
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
106
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
107
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
108
|
+
def list_tables(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
109
|
+
command = make_simple_command(:get, 'v1alpha1/tables', options)
|
110
|
+
command.response_representation = Google::Apis::Area120tablesV1alpha1::ListTablesResponse::Representation
|
111
|
+
command.response_class = Google::Apis::Area120tablesV1alpha1::ListTablesResponse
|
112
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
113
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
114
|
+
command.query['fields'] = fields unless fields.nil?
|
115
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
116
|
+
execute_or_queue_command(command, &block)
|
117
|
+
end
|
118
|
+
|
119
|
+
# Creates multiple rows.
|
120
|
+
# @param [String] parent
|
121
|
+
# Required. The parent table where the rows will be created. Format: tables/`
|
122
|
+
# table`
|
123
|
+
# @param [Google::Apis::Area120tablesV1alpha1::BatchCreateRowsRequest] batch_create_rows_request_object
|
124
|
+
# @param [String] fields
|
125
|
+
# Selector specifying which fields to include in a partial response.
|
126
|
+
# @param [String] quota_user
|
127
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
128
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
129
|
+
# @param [Google::Apis::RequestOptions] options
|
130
|
+
# Request-specific options
|
131
|
+
#
|
132
|
+
# @yield [result, err] Result & error if block supplied
|
133
|
+
# @yieldparam result [Google::Apis::Area120tablesV1alpha1::BatchCreateRowsResponse] parsed result object
|
134
|
+
# @yieldparam err [StandardError] error object if request failed
|
135
|
+
#
|
136
|
+
# @return [Google::Apis::Area120tablesV1alpha1::BatchCreateRowsResponse]
|
137
|
+
#
|
138
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
139
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
140
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
141
|
+
def batch_create_rows(parent, batch_create_rows_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
142
|
+
command = make_simple_command(:post, 'v1alpha1/{+parent}/rows:batchCreate', options)
|
143
|
+
command.request_representation = Google::Apis::Area120tablesV1alpha1::BatchCreateRowsRequest::Representation
|
144
|
+
command.request_object = batch_create_rows_request_object
|
145
|
+
command.response_representation = Google::Apis::Area120tablesV1alpha1::BatchCreateRowsResponse::Representation
|
146
|
+
command.response_class = Google::Apis::Area120tablesV1alpha1::BatchCreateRowsResponse
|
147
|
+
command.params['parent'] = parent unless parent.nil?
|
148
|
+
command.query['fields'] = fields unless fields.nil?
|
149
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
150
|
+
execute_or_queue_command(command, &block)
|
151
|
+
end
|
152
|
+
|
153
|
+
# Updates multiple rows.
|
154
|
+
# @param [String] parent
|
155
|
+
# Required. The parent table shared by all rows being updated. Format: tables/`
|
156
|
+
# table`
|
157
|
+
# @param [Google::Apis::Area120tablesV1alpha1::BatchUpdateRowsRequest] batch_update_rows_request_object
|
158
|
+
# @param [String] fields
|
159
|
+
# Selector specifying which fields to include in a partial response.
|
160
|
+
# @param [String] quota_user
|
161
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
162
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
163
|
+
# @param [Google::Apis::RequestOptions] options
|
164
|
+
# Request-specific options
|
165
|
+
#
|
166
|
+
# @yield [result, err] Result & error if block supplied
|
167
|
+
# @yieldparam result [Google::Apis::Area120tablesV1alpha1::BatchUpdateRowsResponse] parsed result object
|
168
|
+
# @yieldparam err [StandardError] error object if request failed
|
169
|
+
#
|
170
|
+
# @return [Google::Apis::Area120tablesV1alpha1::BatchUpdateRowsResponse]
|
171
|
+
#
|
172
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
173
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
174
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
175
|
+
def batch_update_rows(parent, batch_update_rows_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
176
|
+
command = make_simple_command(:post, 'v1alpha1/{+parent}/rows:batchUpdate', options)
|
177
|
+
command.request_representation = Google::Apis::Area120tablesV1alpha1::BatchUpdateRowsRequest::Representation
|
178
|
+
command.request_object = batch_update_rows_request_object
|
179
|
+
command.response_representation = Google::Apis::Area120tablesV1alpha1::BatchUpdateRowsResponse::Representation
|
180
|
+
command.response_class = Google::Apis::Area120tablesV1alpha1::BatchUpdateRowsResponse
|
181
|
+
command.params['parent'] = parent unless parent.nil?
|
182
|
+
command.query['fields'] = fields unless fields.nil?
|
183
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
184
|
+
execute_or_queue_command(command, &block)
|
185
|
+
end
|
186
|
+
|
187
|
+
# Creates a row.
|
188
|
+
# @param [String] parent
|
189
|
+
# Required. The parent table where this row will be created. Format: tables/`
|
190
|
+
# table`
|
191
|
+
# @param [Google::Apis::Area120tablesV1alpha1::Row] row_object
|
192
|
+
# @param [String] view
|
193
|
+
# Optional. Column key to use for values in the row. Defaults to user entered
|
194
|
+
# name.
|
195
|
+
# @param [String] fields
|
196
|
+
# Selector specifying which fields to include in a partial response.
|
197
|
+
# @param [String] quota_user
|
198
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
199
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
200
|
+
# @param [Google::Apis::RequestOptions] options
|
201
|
+
# Request-specific options
|
202
|
+
#
|
203
|
+
# @yield [result, err] Result & error if block supplied
|
204
|
+
# @yieldparam result [Google::Apis::Area120tablesV1alpha1::Row] parsed result object
|
205
|
+
# @yieldparam err [StandardError] error object if request failed
|
206
|
+
#
|
207
|
+
# @return [Google::Apis::Area120tablesV1alpha1::Row]
|
208
|
+
#
|
209
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
210
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
211
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
212
|
+
def create_table_row(parent, row_object = nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
213
|
+
command = make_simple_command(:post, 'v1alpha1/{+parent}/rows', options)
|
214
|
+
command.request_representation = Google::Apis::Area120tablesV1alpha1::Row::Representation
|
215
|
+
command.request_object = row_object
|
216
|
+
command.response_representation = Google::Apis::Area120tablesV1alpha1::Row::Representation
|
217
|
+
command.response_class = Google::Apis::Area120tablesV1alpha1::Row
|
218
|
+
command.params['parent'] = parent unless parent.nil?
|
219
|
+
command.query['view'] = view unless view.nil?
|
220
|
+
command.query['fields'] = fields unless fields.nil?
|
221
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
222
|
+
execute_or_queue_command(command, &block)
|
223
|
+
end
|
224
|
+
|
225
|
+
# Deletes a row.
|
226
|
+
# @param [String] name
|
227
|
+
# Required. The name of the row to delete. Format: tables/`table`/rows/`row`
|
228
|
+
# @param [String] fields
|
229
|
+
# Selector specifying which fields to include in a partial response.
|
230
|
+
# @param [String] quota_user
|
231
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
232
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
233
|
+
# @param [Google::Apis::RequestOptions] options
|
234
|
+
# Request-specific options
|
235
|
+
#
|
236
|
+
# @yield [result, err] Result & error if block supplied
|
237
|
+
# @yieldparam result [Google::Apis::Area120tablesV1alpha1::Empty] parsed result object
|
238
|
+
# @yieldparam err [StandardError] error object if request failed
|
239
|
+
#
|
240
|
+
# @return [Google::Apis::Area120tablesV1alpha1::Empty]
|
241
|
+
#
|
242
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
243
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
244
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
245
|
+
def delete_table_row(name, fields: nil, quota_user: nil, options: nil, &block)
|
246
|
+
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
|
247
|
+
command.response_representation = Google::Apis::Area120tablesV1alpha1::Empty::Representation
|
248
|
+
command.response_class = Google::Apis::Area120tablesV1alpha1::Empty
|
249
|
+
command.params['name'] = name unless name.nil?
|
250
|
+
command.query['fields'] = fields unless fields.nil?
|
251
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
252
|
+
execute_or_queue_command(command, &block)
|
253
|
+
end
|
254
|
+
|
255
|
+
# Gets a row. Returns NOT_FOUND if the row does not exist in the table.
|
256
|
+
# @param [String] name
|
257
|
+
# Required. The name of the row to retrieve. Format: tables/`table`/rows/`row`
|
258
|
+
# @param [String] view
|
259
|
+
# Optional. Column key to use for values in the row. Defaults to user entered
|
260
|
+
# name.
|
261
|
+
# @param [String] fields
|
262
|
+
# Selector specifying which fields to include in a partial response.
|
263
|
+
# @param [String] quota_user
|
264
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
265
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
266
|
+
# @param [Google::Apis::RequestOptions] options
|
267
|
+
# Request-specific options
|
268
|
+
#
|
269
|
+
# @yield [result, err] Result & error if block supplied
|
270
|
+
# @yieldparam result [Google::Apis::Area120tablesV1alpha1::Row] parsed result object
|
271
|
+
# @yieldparam err [StandardError] error object if request failed
|
272
|
+
#
|
273
|
+
# @return [Google::Apis::Area120tablesV1alpha1::Row]
|
274
|
+
#
|
275
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
276
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
277
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
278
|
+
def get_table_row(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
279
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
280
|
+
command.response_representation = Google::Apis::Area120tablesV1alpha1::Row::Representation
|
281
|
+
command.response_class = Google::Apis::Area120tablesV1alpha1::Row
|
282
|
+
command.params['name'] = name unless name.nil?
|
283
|
+
command.query['view'] = view unless view.nil?
|
284
|
+
command.query['fields'] = fields unless fields.nil?
|
285
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
286
|
+
execute_or_queue_command(command, &block)
|
287
|
+
end
|
288
|
+
|
289
|
+
# Lists rows in a table. Returns NOT_FOUND if the table does not exist.
|
290
|
+
# @param [String] parent
|
291
|
+
# Required. The parent table. Format: tables/`table`
|
292
|
+
# @param [Fixnum] page_size
|
293
|
+
# The maximum number of rows to return. The service may return fewer than this
|
294
|
+
# value. If unspecified, at most 50 rows are returned. The maximum value is 1,
|
295
|
+
# 000; values above 1,000 are coerced to 1,000.
|
296
|
+
# @param [String] page_token
|
297
|
+
# A page token, received from a previous `ListRows` call. Provide this to
|
298
|
+
# retrieve the subsequent page. When paginating, all other parameters provided
|
299
|
+
# to `ListRows` must match the call that provided the page token.
|
300
|
+
# @param [String] view
|
301
|
+
# Optional. Column key to use for values in the row. Defaults to user entered
|
302
|
+
# name.
|
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::Area120tablesV1alpha1::ListRowsResponse] parsed result object
|
313
|
+
# @yieldparam err [StandardError] error object if request failed
|
314
|
+
#
|
315
|
+
# @return [Google::Apis::Area120tablesV1alpha1::ListRowsResponse]
|
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 list_table_rows(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
321
|
+
command = make_simple_command(:get, 'v1alpha1/{+parent}/rows', options)
|
322
|
+
command.response_representation = Google::Apis::Area120tablesV1alpha1::ListRowsResponse::Representation
|
323
|
+
command.response_class = Google::Apis::Area120tablesV1alpha1::ListRowsResponse
|
324
|
+
command.params['parent'] = parent unless parent.nil?
|
325
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
326
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
327
|
+
command.query['view'] = view unless view.nil?
|
328
|
+
command.query['fields'] = fields unless fields.nil?
|
329
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
330
|
+
execute_or_queue_command(command, &block)
|
331
|
+
end
|
332
|
+
|
333
|
+
# Updates a row.
|
334
|
+
# @param [String] name
|
335
|
+
# The resource name of the row. Row names have the form `tables/`table`/rows/`
|
336
|
+
# row``. The name is ignored when creating a row.
|
337
|
+
# @param [Google::Apis::Area120tablesV1alpha1::Row] row_object
|
338
|
+
# @param [String] update_mask
|
339
|
+
# The list of fields to update.
|
340
|
+
# @param [String] view
|
341
|
+
# Optional. Column key to use for values in the row. Defaults to user entered
|
342
|
+
# name.
|
343
|
+
# @param [String] fields
|
344
|
+
# Selector specifying which fields to include in a partial response.
|
345
|
+
# @param [String] quota_user
|
346
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
347
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
348
|
+
# @param [Google::Apis::RequestOptions] options
|
349
|
+
# Request-specific options
|
350
|
+
#
|
351
|
+
# @yield [result, err] Result & error if block supplied
|
352
|
+
# @yieldparam result [Google::Apis::Area120tablesV1alpha1::Row] parsed result object
|
353
|
+
# @yieldparam err [StandardError] error object if request failed
|
354
|
+
#
|
355
|
+
# @return [Google::Apis::Area120tablesV1alpha1::Row]
|
356
|
+
#
|
357
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
358
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
359
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
360
|
+
def patch_table_row(name, row_object = nil, update_mask: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
361
|
+
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
|
362
|
+
command.request_representation = Google::Apis::Area120tablesV1alpha1::Row::Representation
|
363
|
+
command.request_object = row_object
|
364
|
+
command.response_representation = Google::Apis::Area120tablesV1alpha1::Row::Representation
|
365
|
+
command.response_class = Google::Apis::Area120tablesV1alpha1::Row
|
366
|
+
command.params['name'] = name unless name.nil?
|
367
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
368
|
+
command.query['view'] = view unless view.nil?
|
369
|
+
command.query['fields'] = fields unless fields.nil?
|
370
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
371
|
+
execute_or_queue_command(command, &block)
|
372
|
+
end
|
373
|
+
|
374
|
+
# Gets a workspace. Returns NOT_FOUND if the workspace does not exist.
|
375
|
+
# @param [String] name
|
376
|
+
# Required. The name of the workspace to retrieve. Format: workspaces/`workspace`
|
377
|
+
# @param [String] fields
|
378
|
+
# Selector specifying which fields to include in a partial response.
|
379
|
+
# @param [String] quota_user
|
380
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
381
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
382
|
+
# @param [Google::Apis::RequestOptions] options
|
383
|
+
# Request-specific options
|
384
|
+
#
|
385
|
+
# @yield [result, err] Result & error if block supplied
|
386
|
+
# @yieldparam result [Google::Apis::Area120tablesV1alpha1::Workspace] parsed result object
|
387
|
+
# @yieldparam err [StandardError] error object if request failed
|
388
|
+
#
|
389
|
+
# @return [Google::Apis::Area120tablesV1alpha1::Workspace]
|
390
|
+
#
|
391
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
392
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
393
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
394
|
+
def get_workspace(name, fields: nil, quota_user: nil, options: nil, &block)
|
395
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
396
|
+
command.response_representation = Google::Apis::Area120tablesV1alpha1::Workspace::Representation
|
397
|
+
command.response_class = Google::Apis::Area120tablesV1alpha1::Workspace
|
398
|
+
command.params['name'] = name unless name.nil?
|
399
|
+
command.query['fields'] = fields unless fields.nil?
|
400
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
401
|
+
execute_or_queue_command(command, &block)
|
402
|
+
end
|
403
|
+
|
404
|
+
# Lists workspaces for the user.
|
405
|
+
# @param [Fixnum] page_size
|
406
|
+
# The maximum number of workspaces to return. The service may return fewer than
|
407
|
+
# this value. If unspecified, at most 10 workspaces are returned. The maximum
|
408
|
+
# value is 25; values above 25 are coerced to 25.
|
409
|
+
# @param [String] page_token
|
410
|
+
# A page token, received from a previous `ListWorkspaces` call. Provide this to
|
411
|
+
# retrieve the subsequent page. When paginating, all other parameters provided
|
412
|
+
# to `ListWorkspaces` must match the call that provided the page token.
|
413
|
+
# @param [String] fields
|
414
|
+
# Selector specifying which fields to include in a partial response.
|
415
|
+
# @param [String] quota_user
|
416
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
417
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
418
|
+
# @param [Google::Apis::RequestOptions] options
|
419
|
+
# Request-specific options
|
420
|
+
#
|
421
|
+
# @yield [result, err] Result & error if block supplied
|
422
|
+
# @yieldparam result [Google::Apis::Area120tablesV1alpha1::ListWorkspacesResponse] parsed result object
|
423
|
+
# @yieldparam err [StandardError] error object if request failed
|
424
|
+
#
|
425
|
+
# @return [Google::Apis::Area120tablesV1alpha1::ListWorkspacesResponse]
|
426
|
+
#
|
427
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
428
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
429
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
430
|
+
def list_workspaces(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
431
|
+
command = make_simple_command(:get, 'v1alpha1/workspaces', options)
|
432
|
+
command.response_representation = Google::Apis::Area120tablesV1alpha1::ListWorkspacesResponse::Representation
|
433
|
+
command.response_class = Google::Apis::Area120tablesV1alpha1::ListWorkspacesResponse
|
434
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
435
|
+
command.query['pageToken'] = page_token unless page_token.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
|
+
protected
|
442
|
+
|
443
|
+
def apply_command_defaults(command)
|
444
|
+
command.query['key'] = key unless key.nil?
|
445
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
446
|
+
end
|
447
|
+
end
|
448
|
+
end
|
449
|
+
end
|
450
|
+
end
|