google-apis-dataform_v1beta1 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/dataform_v1beta1/classes.rb +2096 -0
- data/lib/google/apis/dataform_v1beta1/gem_version.rb +28 -0
- data/lib/google/apis/dataform_v1beta1/representations.rb +1013 -0
- data/lib/google/apis/dataform_v1beta1/service.rb +1768 -0
- data/lib/google/apis/dataform_v1beta1.rb +36 -0
- data/lib/google-apis-dataform_v1beta1.rb +15 -0
- metadata +82 -0
@@ -0,0 +1,1768 @@
|
|
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 DataformV1beta1
|
23
|
+
# Dataform API
|
24
|
+
#
|
25
|
+
#
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/dataform_v1beta1'
|
29
|
+
#
|
30
|
+
# Dataform = Google::Apis::DataformV1beta1 # Alias the module
|
31
|
+
# service = Dataform::DataformService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/dataform/docs
|
34
|
+
class DataformService < 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://dataform.googleapis.com/', '',
|
47
|
+
client_name: 'google-apis-dataform_v1beta1',
|
48
|
+
client_version: Google::Apis::DataformV1beta1::GEM_VERSION)
|
49
|
+
@batch_path = 'batch'
|
50
|
+
end
|
51
|
+
|
52
|
+
# Gets information about a location.
|
53
|
+
# @param [String] name
|
54
|
+
# Resource name for the location.
|
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::DataformV1beta1::Location] parsed result object
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
66
|
+
#
|
67
|
+
# @return [Google::Apis::DataformV1beta1::Location]
|
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_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
73
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
74
|
+
command.response_representation = Google::Apis::DataformV1beta1::Location::Representation
|
75
|
+
command.response_class = Google::Apis::DataformV1beta1::Location
|
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 information about the supported locations for this service.
|
83
|
+
# @param [String] name
|
84
|
+
# The resource that owns the locations collection, if applicable.
|
85
|
+
# @param [String] filter
|
86
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
87
|
+
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
88
|
+
# in [AIP-160](https://google.aip.dev/160).
|
89
|
+
# @param [Boolean] include_unrevealed_locations
|
90
|
+
# If true, the returned list will include locations which are not yet revealed.
|
91
|
+
# @param [Fixnum] page_size
|
92
|
+
# The maximum number of results to return. If not set, the service selects a
|
93
|
+
# default.
|
94
|
+
# @param [String] page_token
|
95
|
+
# A page token received from the `next_page_token` field in the response. Send
|
96
|
+
# that page token to receive the subsequent page.
|
97
|
+
# @param [String] fields
|
98
|
+
# Selector specifying which fields to include in a partial response.
|
99
|
+
# @param [String] quota_user
|
100
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
101
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
102
|
+
# @param [Google::Apis::RequestOptions] options
|
103
|
+
# Request-specific options
|
104
|
+
#
|
105
|
+
# @yield [result, err] Result & error if block supplied
|
106
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::ListLocationsResponse] parsed result object
|
107
|
+
# @yieldparam err [StandardError] error object if request failed
|
108
|
+
#
|
109
|
+
# @return [Google::Apis::DataformV1beta1::ListLocationsResponse]
|
110
|
+
#
|
111
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
112
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
113
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
114
|
+
def list_project_locations(name, filter: nil, include_unrevealed_locations: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
115
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
|
116
|
+
command.response_representation = Google::Apis::DataformV1beta1::ListLocationsResponse::Representation
|
117
|
+
command.response_class = Google::Apis::DataformV1beta1::ListLocationsResponse
|
118
|
+
command.params['name'] = name unless name.nil?
|
119
|
+
command.query['filter'] = filter unless filter.nil?
|
120
|
+
command.query['includeUnrevealedLocations'] = include_unrevealed_locations unless include_unrevealed_locations.nil?
|
121
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
122
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
123
|
+
command.query['fields'] = fields unless fields.nil?
|
124
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
125
|
+
execute_or_queue_command(command, &block)
|
126
|
+
end
|
127
|
+
|
128
|
+
# Creates a new Repository in a given project and location.
|
129
|
+
# @param [String] parent
|
130
|
+
# Required. The location in which to create the repository. Must be in the
|
131
|
+
# format `projects/*/locations/*`.
|
132
|
+
# @param [Google::Apis::DataformV1beta1::Repository] repository_object
|
133
|
+
# @param [String] repository_id
|
134
|
+
# Required. The ID to use for the repository, which will become the final
|
135
|
+
# component of the repository's resource name.
|
136
|
+
# @param [String] fields
|
137
|
+
# Selector specifying which fields to include in a partial response.
|
138
|
+
# @param [String] quota_user
|
139
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
140
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
141
|
+
# @param [Google::Apis::RequestOptions] options
|
142
|
+
# Request-specific options
|
143
|
+
#
|
144
|
+
# @yield [result, err] Result & error if block supplied
|
145
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Repository] parsed result object
|
146
|
+
# @yieldparam err [StandardError] error object if request failed
|
147
|
+
#
|
148
|
+
# @return [Google::Apis::DataformV1beta1::Repository]
|
149
|
+
#
|
150
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
151
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
152
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
153
|
+
def create_project_location_repository(parent, repository_object = nil, repository_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
154
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/repositories', options)
|
155
|
+
command.request_representation = Google::Apis::DataformV1beta1::Repository::Representation
|
156
|
+
command.request_object = repository_object
|
157
|
+
command.response_representation = Google::Apis::DataformV1beta1::Repository::Representation
|
158
|
+
command.response_class = Google::Apis::DataformV1beta1::Repository
|
159
|
+
command.params['parent'] = parent unless parent.nil?
|
160
|
+
command.query['repositoryId'] = repository_id unless repository_id.nil?
|
161
|
+
command.query['fields'] = fields unless fields.nil?
|
162
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
163
|
+
execute_or_queue_command(command, &block)
|
164
|
+
end
|
165
|
+
|
166
|
+
# Deletes a single Repository.
|
167
|
+
# @param [String] name
|
168
|
+
# Required. The repository's name.
|
169
|
+
# @param [Boolean] force
|
170
|
+
# If set to true, any child resources of this repository will also be deleted. (
|
171
|
+
# Otherwise, the request will only succeed if the repository has no child
|
172
|
+
# resources.)
|
173
|
+
# @param [String] fields
|
174
|
+
# Selector specifying which fields to include in a partial response.
|
175
|
+
# @param [String] quota_user
|
176
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
177
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
178
|
+
# @param [Google::Apis::RequestOptions] options
|
179
|
+
# Request-specific options
|
180
|
+
#
|
181
|
+
# @yield [result, err] Result & error if block supplied
|
182
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Empty] parsed result object
|
183
|
+
# @yieldparam err [StandardError] error object if request failed
|
184
|
+
#
|
185
|
+
# @return [Google::Apis::DataformV1beta1::Empty]
|
186
|
+
#
|
187
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
188
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
189
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
190
|
+
def delete_project_location_repository(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
191
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
192
|
+
command.response_representation = Google::Apis::DataformV1beta1::Empty::Representation
|
193
|
+
command.response_class = Google::Apis::DataformV1beta1::Empty
|
194
|
+
command.params['name'] = name unless name.nil?
|
195
|
+
command.query['force'] = force unless force.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
|
+
# Fetches a Repository's remote branches.
|
202
|
+
# @param [String] name
|
203
|
+
# Required. The repository's name.
|
204
|
+
# @param [String] fields
|
205
|
+
# Selector specifying which fields to include in a partial response.
|
206
|
+
# @param [String] quota_user
|
207
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
208
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
209
|
+
# @param [Google::Apis::RequestOptions] options
|
210
|
+
# Request-specific options
|
211
|
+
#
|
212
|
+
# @yield [result, err] Result & error if block supplied
|
213
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::FetchRemoteBranchesResponse] parsed result object
|
214
|
+
# @yieldparam err [StandardError] error object if request failed
|
215
|
+
#
|
216
|
+
# @return [Google::Apis::DataformV1beta1::FetchRemoteBranchesResponse]
|
217
|
+
#
|
218
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
219
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
220
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
221
|
+
def fetch_project_location_repository_remote_branches(name, fields: nil, quota_user: nil, options: nil, &block)
|
222
|
+
command = make_simple_command(:get, 'v1beta1/{+name}:fetchRemoteBranches', options)
|
223
|
+
command.response_representation = Google::Apis::DataformV1beta1::FetchRemoteBranchesResponse::Representation
|
224
|
+
command.response_class = Google::Apis::DataformV1beta1::FetchRemoteBranchesResponse
|
225
|
+
command.params['name'] = name unless name.nil?
|
226
|
+
command.query['fields'] = fields unless fields.nil?
|
227
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
228
|
+
execute_or_queue_command(command, &block)
|
229
|
+
end
|
230
|
+
|
231
|
+
# Fetches a single Repository.
|
232
|
+
# @param [String] name
|
233
|
+
# Required. The repository's name.
|
234
|
+
# @param [String] fields
|
235
|
+
# Selector specifying which fields to include in a partial response.
|
236
|
+
# @param [String] quota_user
|
237
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
238
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
239
|
+
# @param [Google::Apis::RequestOptions] options
|
240
|
+
# Request-specific options
|
241
|
+
#
|
242
|
+
# @yield [result, err] Result & error if block supplied
|
243
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Repository] parsed result object
|
244
|
+
# @yieldparam err [StandardError] error object if request failed
|
245
|
+
#
|
246
|
+
# @return [Google::Apis::DataformV1beta1::Repository]
|
247
|
+
#
|
248
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
249
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
250
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
251
|
+
def get_project_location_repository(name, fields: nil, quota_user: nil, options: nil, &block)
|
252
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
253
|
+
command.response_representation = Google::Apis::DataformV1beta1::Repository::Representation
|
254
|
+
command.response_class = Google::Apis::DataformV1beta1::Repository
|
255
|
+
command.params['name'] = name unless name.nil?
|
256
|
+
command.query['fields'] = fields unless fields.nil?
|
257
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
258
|
+
execute_or_queue_command(command, &block)
|
259
|
+
end
|
260
|
+
|
261
|
+
# Lists Repositories in a given project and location.
|
262
|
+
# @param [String] parent
|
263
|
+
# Required. The location in which to list repositories. Must be in the format `
|
264
|
+
# projects/*/locations/*`.
|
265
|
+
# @param [String] filter
|
266
|
+
# Optional. Filter for the returned list.
|
267
|
+
# @param [String] order_by
|
268
|
+
# Optional. This field only supports ordering by `name`. If unspecified, the
|
269
|
+
# server will choose the ordering. If specified, the default order is ascending
|
270
|
+
# for the `name` field.
|
271
|
+
# @param [Fixnum] page_size
|
272
|
+
# Optional. Maximum number of repositories to return. The server may return
|
273
|
+
# fewer items than requested. If unspecified, the server will pick an
|
274
|
+
# appropriate default.
|
275
|
+
# @param [String] page_token
|
276
|
+
# Optional. Page token received from a previous `ListRepositories` call. Provide
|
277
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
278
|
+
# provided to `ListRepositories` must match the call that provided the page
|
279
|
+
# token.
|
280
|
+
# @param [String] fields
|
281
|
+
# Selector specifying which fields to include in a partial response.
|
282
|
+
# @param [String] quota_user
|
283
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
284
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
285
|
+
# @param [Google::Apis::RequestOptions] options
|
286
|
+
# Request-specific options
|
287
|
+
#
|
288
|
+
# @yield [result, err] Result & error if block supplied
|
289
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::ListRepositoriesResponse] parsed result object
|
290
|
+
# @yieldparam err [StandardError] error object if request failed
|
291
|
+
#
|
292
|
+
# @return [Google::Apis::DataformV1beta1::ListRepositoriesResponse]
|
293
|
+
#
|
294
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
295
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
296
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
297
|
+
def list_project_location_repositories(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
298
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/repositories', options)
|
299
|
+
command.response_representation = Google::Apis::DataformV1beta1::ListRepositoriesResponse::Representation
|
300
|
+
command.response_class = Google::Apis::DataformV1beta1::ListRepositoriesResponse
|
301
|
+
command.params['parent'] = parent unless parent.nil?
|
302
|
+
command.query['filter'] = filter unless filter.nil?
|
303
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
304
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
305
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
306
|
+
command.query['fields'] = fields unless fields.nil?
|
307
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
308
|
+
execute_or_queue_command(command, &block)
|
309
|
+
end
|
310
|
+
|
311
|
+
# Updates a single Repository.
|
312
|
+
# @param [String] name
|
313
|
+
# Output only. The repository's name.
|
314
|
+
# @param [Google::Apis::DataformV1beta1::Repository] repository_object
|
315
|
+
# @param [String] update_mask
|
316
|
+
# Optional. Specifies the fields to be updated in the repository. If left unset,
|
317
|
+
# all fields will be updated.
|
318
|
+
# @param [String] fields
|
319
|
+
# Selector specifying which fields to include in a partial response.
|
320
|
+
# @param [String] quota_user
|
321
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
322
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
323
|
+
# @param [Google::Apis::RequestOptions] options
|
324
|
+
# Request-specific options
|
325
|
+
#
|
326
|
+
# @yield [result, err] Result & error if block supplied
|
327
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Repository] parsed result object
|
328
|
+
# @yieldparam err [StandardError] error object if request failed
|
329
|
+
#
|
330
|
+
# @return [Google::Apis::DataformV1beta1::Repository]
|
331
|
+
#
|
332
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
333
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
334
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
335
|
+
def patch_project_location_repository(name, repository_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
336
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
337
|
+
command.request_representation = Google::Apis::DataformV1beta1::Repository::Representation
|
338
|
+
command.request_object = repository_object
|
339
|
+
command.response_representation = Google::Apis::DataformV1beta1::Repository::Representation
|
340
|
+
command.response_class = Google::Apis::DataformV1beta1::Repository
|
341
|
+
command.params['name'] = name unless name.nil?
|
342
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
343
|
+
command.query['fields'] = fields unless fields.nil?
|
344
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
345
|
+
execute_or_queue_command(command, &block)
|
346
|
+
end
|
347
|
+
|
348
|
+
# Creates a new CompilationResult in a given project and location.
|
349
|
+
# @param [String] parent
|
350
|
+
# Required. The repository in which to create the compilation result. Must be in
|
351
|
+
# the format `projects/*/locations/*/repositories/*`.
|
352
|
+
# @param [Google::Apis::DataformV1beta1::CompilationResult] compilation_result_object
|
353
|
+
# @param [String] fields
|
354
|
+
# Selector specifying which fields to include in a partial response.
|
355
|
+
# @param [String] quota_user
|
356
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
357
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
358
|
+
# @param [Google::Apis::RequestOptions] options
|
359
|
+
# Request-specific options
|
360
|
+
#
|
361
|
+
# @yield [result, err] Result & error if block supplied
|
362
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::CompilationResult] parsed result object
|
363
|
+
# @yieldparam err [StandardError] error object if request failed
|
364
|
+
#
|
365
|
+
# @return [Google::Apis::DataformV1beta1::CompilationResult]
|
366
|
+
#
|
367
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
368
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
369
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
370
|
+
def create_project_location_repository_compilation_result(parent, compilation_result_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
371
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/compilationResults', options)
|
372
|
+
command.request_representation = Google::Apis::DataformV1beta1::CompilationResult::Representation
|
373
|
+
command.request_object = compilation_result_object
|
374
|
+
command.response_representation = Google::Apis::DataformV1beta1::CompilationResult::Representation
|
375
|
+
command.response_class = Google::Apis::DataformV1beta1::CompilationResult
|
376
|
+
command.params['parent'] = parent unless parent.nil?
|
377
|
+
command.query['fields'] = fields unless fields.nil?
|
378
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
379
|
+
execute_or_queue_command(command, &block)
|
380
|
+
end
|
381
|
+
|
382
|
+
# Fetches a single CompilationResult.
|
383
|
+
# @param [String] name
|
384
|
+
# Required. The compilation result's name.
|
385
|
+
# @param [String] fields
|
386
|
+
# Selector specifying which fields to include in a partial response.
|
387
|
+
# @param [String] quota_user
|
388
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
389
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
390
|
+
# @param [Google::Apis::RequestOptions] options
|
391
|
+
# Request-specific options
|
392
|
+
#
|
393
|
+
# @yield [result, err] Result & error if block supplied
|
394
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::CompilationResult] parsed result object
|
395
|
+
# @yieldparam err [StandardError] error object if request failed
|
396
|
+
#
|
397
|
+
# @return [Google::Apis::DataformV1beta1::CompilationResult]
|
398
|
+
#
|
399
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
400
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
401
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
402
|
+
def get_project_location_repository_compilation_result(name, fields: nil, quota_user: nil, options: nil, &block)
|
403
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
404
|
+
command.response_representation = Google::Apis::DataformV1beta1::CompilationResult::Representation
|
405
|
+
command.response_class = Google::Apis::DataformV1beta1::CompilationResult
|
406
|
+
command.params['name'] = name unless name.nil?
|
407
|
+
command.query['fields'] = fields unless fields.nil?
|
408
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
409
|
+
execute_or_queue_command(command, &block)
|
410
|
+
end
|
411
|
+
|
412
|
+
# Lists CompilationResults in a given Repository.
|
413
|
+
# @param [String] parent
|
414
|
+
# Required. The repository in which to list compilation results. Must be in the
|
415
|
+
# format `projects/*/locations/*/repositories/*`.
|
416
|
+
# @param [Fixnum] page_size
|
417
|
+
# Optional. Maximum number of compilation results to return. The server may
|
418
|
+
# return fewer items than requested. If unspecified, the server will pick an
|
419
|
+
# appropriate default.
|
420
|
+
# @param [String] page_token
|
421
|
+
# Optional. Page token received from a previous `ListCompilationResults` call.
|
422
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
423
|
+
# parameters provided to `ListCompilationResults` must match the call that
|
424
|
+
# provided the page token.
|
425
|
+
# @param [String] fields
|
426
|
+
# Selector specifying which fields to include in a partial response.
|
427
|
+
# @param [String] quota_user
|
428
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
429
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
430
|
+
# @param [Google::Apis::RequestOptions] options
|
431
|
+
# Request-specific options
|
432
|
+
#
|
433
|
+
# @yield [result, err] Result & error if block supplied
|
434
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::ListCompilationResultsResponse] parsed result object
|
435
|
+
# @yieldparam err [StandardError] error object if request failed
|
436
|
+
#
|
437
|
+
# @return [Google::Apis::DataformV1beta1::ListCompilationResultsResponse]
|
438
|
+
#
|
439
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
440
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
441
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
442
|
+
def list_project_location_repository_compilation_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
443
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/compilationResults', options)
|
444
|
+
command.response_representation = Google::Apis::DataformV1beta1::ListCompilationResultsResponse::Representation
|
445
|
+
command.response_class = Google::Apis::DataformV1beta1::ListCompilationResultsResponse
|
446
|
+
command.params['parent'] = parent unless parent.nil?
|
447
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
448
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
449
|
+
command.query['fields'] = fields unless fields.nil?
|
450
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
451
|
+
execute_or_queue_command(command, &block)
|
452
|
+
end
|
453
|
+
|
454
|
+
# Returns CompilationResultActions in a given CompilationResult.
|
455
|
+
# @param [String] name
|
456
|
+
# Required. The compilation result's name.
|
457
|
+
# @param [String] filter
|
458
|
+
# Optional. Optional filter for the returned list. Filtering is only currently
|
459
|
+
# supported on the `file_path` field.
|
460
|
+
# @param [Fixnum] page_size
|
461
|
+
# Optional. Maximum number of compilation results to return. The server may
|
462
|
+
# return fewer items than requested. If unspecified, the server will pick an
|
463
|
+
# appropriate default.
|
464
|
+
# @param [String] page_token
|
465
|
+
# Optional. Page token received from a previous `QueryCompilationResultActions`
|
466
|
+
# call. Provide this to retrieve the subsequent page. When paginating, all other
|
467
|
+
# parameters provided to `QueryCompilationResultActions` must match the call
|
468
|
+
# that provided the page token.
|
469
|
+
# @param [String] fields
|
470
|
+
# Selector specifying which fields to include in a partial response.
|
471
|
+
# @param [String] quota_user
|
472
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
473
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
474
|
+
# @param [Google::Apis::RequestOptions] options
|
475
|
+
# Request-specific options
|
476
|
+
#
|
477
|
+
# @yield [result, err] Result & error if block supplied
|
478
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::QueryCompilationResultActionsResponse] parsed result object
|
479
|
+
# @yieldparam err [StandardError] error object if request failed
|
480
|
+
#
|
481
|
+
# @return [Google::Apis::DataformV1beta1::QueryCompilationResultActionsResponse]
|
482
|
+
#
|
483
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
484
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
485
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
486
|
+
def query_project_location_repository_compilation_result(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
487
|
+
command = make_simple_command(:get, 'v1beta1/{+name}:query', options)
|
488
|
+
command.response_representation = Google::Apis::DataformV1beta1::QueryCompilationResultActionsResponse::Representation
|
489
|
+
command.response_class = Google::Apis::DataformV1beta1::QueryCompilationResultActionsResponse
|
490
|
+
command.params['name'] = name unless name.nil?
|
491
|
+
command.query['filter'] = filter unless filter.nil?
|
492
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
493
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
494
|
+
command.query['fields'] = fields unless fields.nil?
|
495
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
496
|
+
execute_or_queue_command(command, &block)
|
497
|
+
end
|
498
|
+
|
499
|
+
# Creates a new ReleaseConfig in a given Repository.
|
500
|
+
# @param [String] parent
|
501
|
+
# Required. The repository in which to create the release config. Must be in the
|
502
|
+
# format `projects/*/locations/*/repositories/*`.
|
503
|
+
# @param [Google::Apis::DataformV1beta1::ReleaseConfig] release_config_object
|
504
|
+
# @param [String] release_config_id
|
505
|
+
# Required. The ID to use for the release config, which will become the final
|
506
|
+
# component of the release config's resource name.
|
507
|
+
# @param [String] fields
|
508
|
+
# Selector specifying which fields to include in a partial response.
|
509
|
+
# @param [String] quota_user
|
510
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
511
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
512
|
+
# @param [Google::Apis::RequestOptions] options
|
513
|
+
# Request-specific options
|
514
|
+
#
|
515
|
+
# @yield [result, err] Result & error if block supplied
|
516
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::ReleaseConfig] parsed result object
|
517
|
+
# @yieldparam err [StandardError] error object if request failed
|
518
|
+
#
|
519
|
+
# @return [Google::Apis::DataformV1beta1::ReleaseConfig]
|
520
|
+
#
|
521
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
522
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
523
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
524
|
+
def create_project_location_repository_release_config(parent, release_config_object = nil, release_config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
525
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/releaseConfigs', options)
|
526
|
+
command.request_representation = Google::Apis::DataformV1beta1::ReleaseConfig::Representation
|
527
|
+
command.request_object = release_config_object
|
528
|
+
command.response_representation = Google::Apis::DataformV1beta1::ReleaseConfig::Representation
|
529
|
+
command.response_class = Google::Apis::DataformV1beta1::ReleaseConfig
|
530
|
+
command.params['parent'] = parent unless parent.nil?
|
531
|
+
command.query['releaseConfigId'] = release_config_id unless release_config_id.nil?
|
532
|
+
command.query['fields'] = fields unless fields.nil?
|
533
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
534
|
+
execute_or_queue_command(command, &block)
|
535
|
+
end
|
536
|
+
|
537
|
+
# Deletes a single ReleaseConfig.
|
538
|
+
# @param [String] name
|
539
|
+
# Required. The release config's name.
|
540
|
+
# @param [String] fields
|
541
|
+
# Selector specifying which fields to include in a partial response.
|
542
|
+
# @param [String] quota_user
|
543
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
544
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
545
|
+
# @param [Google::Apis::RequestOptions] options
|
546
|
+
# Request-specific options
|
547
|
+
#
|
548
|
+
# @yield [result, err] Result & error if block supplied
|
549
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Empty] parsed result object
|
550
|
+
# @yieldparam err [StandardError] error object if request failed
|
551
|
+
#
|
552
|
+
# @return [Google::Apis::DataformV1beta1::Empty]
|
553
|
+
#
|
554
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
555
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
556
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
557
|
+
def delete_project_location_repository_release_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
558
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
559
|
+
command.response_representation = Google::Apis::DataformV1beta1::Empty::Representation
|
560
|
+
command.response_class = Google::Apis::DataformV1beta1::Empty
|
561
|
+
command.params['name'] = name unless name.nil?
|
562
|
+
command.query['fields'] = fields unless fields.nil?
|
563
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
564
|
+
execute_or_queue_command(command, &block)
|
565
|
+
end
|
566
|
+
|
567
|
+
# Fetches a single ReleaseConfig.
|
568
|
+
# @param [String] name
|
569
|
+
# Required. The release config's name.
|
570
|
+
# @param [String] fields
|
571
|
+
# Selector specifying which fields to include in a partial response.
|
572
|
+
# @param [String] quota_user
|
573
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
574
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
575
|
+
# @param [Google::Apis::RequestOptions] options
|
576
|
+
# Request-specific options
|
577
|
+
#
|
578
|
+
# @yield [result, err] Result & error if block supplied
|
579
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::ReleaseConfig] parsed result object
|
580
|
+
# @yieldparam err [StandardError] error object if request failed
|
581
|
+
#
|
582
|
+
# @return [Google::Apis::DataformV1beta1::ReleaseConfig]
|
583
|
+
#
|
584
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
585
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
586
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
587
|
+
def get_project_location_repository_release_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
588
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
589
|
+
command.response_representation = Google::Apis::DataformV1beta1::ReleaseConfig::Representation
|
590
|
+
command.response_class = Google::Apis::DataformV1beta1::ReleaseConfig
|
591
|
+
command.params['name'] = name unless name.nil?
|
592
|
+
command.query['fields'] = fields unless fields.nil?
|
593
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
594
|
+
execute_or_queue_command(command, &block)
|
595
|
+
end
|
596
|
+
|
597
|
+
# Lists ReleaseConfigs in a given Repository.
|
598
|
+
# @param [String] parent
|
599
|
+
# Required. The repository in which to list release configs. Must be in the
|
600
|
+
# format `projects/*/locations/*/repositories/*`.
|
601
|
+
# @param [Fixnum] page_size
|
602
|
+
# Optional. Maximum number of release configs to return. The server may return
|
603
|
+
# fewer items than requested. If unspecified, the server will pick an
|
604
|
+
# appropriate default.
|
605
|
+
# @param [String] page_token
|
606
|
+
# Optional. Page token received from a previous `ListReleaseConfigs` call.
|
607
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
608
|
+
# parameters provided to `ListReleaseConfigs` must match the call that provided
|
609
|
+
# the page token.
|
610
|
+
# @param [String] fields
|
611
|
+
# Selector specifying which fields to include in a partial response.
|
612
|
+
# @param [String] quota_user
|
613
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
614
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
615
|
+
# @param [Google::Apis::RequestOptions] options
|
616
|
+
# Request-specific options
|
617
|
+
#
|
618
|
+
# @yield [result, err] Result & error if block supplied
|
619
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::ListReleaseConfigsResponse] parsed result object
|
620
|
+
# @yieldparam err [StandardError] error object if request failed
|
621
|
+
#
|
622
|
+
# @return [Google::Apis::DataformV1beta1::ListReleaseConfigsResponse]
|
623
|
+
#
|
624
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
625
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
626
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
627
|
+
def list_project_location_repository_release_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
628
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/releaseConfigs', options)
|
629
|
+
command.response_representation = Google::Apis::DataformV1beta1::ListReleaseConfigsResponse::Representation
|
630
|
+
command.response_class = Google::Apis::DataformV1beta1::ListReleaseConfigsResponse
|
631
|
+
command.params['parent'] = parent unless parent.nil?
|
632
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
633
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
634
|
+
command.query['fields'] = fields unless fields.nil?
|
635
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
636
|
+
execute_or_queue_command(command, &block)
|
637
|
+
end
|
638
|
+
|
639
|
+
# Updates a single ReleaseConfig.
|
640
|
+
# @param [String] name
|
641
|
+
# Output only. The release config's name.
|
642
|
+
# @param [Google::Apis::DataformV1beta1::ReleaseConfig] release_config_object
|
643
|
+
# @param [String] update_mask
|
644
|
+
# Optional. Specifies the fields to be updated in the release config. If left
|
645
|
+
# unset, all fields will be updated.
|
646
|
+
# @param [String] fields
|
647
|
+
# Selector specifying which fields to include in a partial response.
|
648
|
+
# @param [String] quota_user
|
649
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
650
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
651
|
+
# @param [Google::Apis::RequestOptions] options
|
652
|
+
# Request-specific options
|
653
|
+
#
|
654
|
+
# @yield [result, err] Result & error if block supplied
|
655
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::ReleaseConfig] parsed result object
|
656
|
+
# @yieldparam err [StandardError] error object if request failed
|
657
|
+
#
|
658
|
+
# @return [Google::Apis::DataformV1beta1::ReleaseConfig]
|
659
|
+
#
|
660
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
661
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
662
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
663
|
+
def patch_project_location_repository_release_config(name, release_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
664
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
665
|
+
command.request_representation = Google::Apis::DataformV1beta1::ReleaseConfig::Representation
|
666
|
+
command.request_object = release_config_object
|
667
|
+
command.response_representation = Google::Apis::DataformV1beta1::ReleaseConfig::Representation
|
668
|
+
command.response_class = Google::Apis::DataformV1beta1::ReleaseConfig
|
669
|
+
command.params['name'] = name unless name.nil?
|
670
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
671
|
+
command.query['fields'] = fields unless fields.nil?
|
672
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
673
|
+
execute_or_queue_command(command, &block)
|
674
|
+
end
|
675
|
+
|
676
|
+
# Creates a new WorkflowConfig in a given Repository.
|
677
|
+
# @param [String] parent
|
678
|
+
# Required. The repository in which to create the workflow config. Must be in
|
679
|
+
# the format `projects/*/locations/*/repositories/*`.
|
680
|
+
# @param [Google::Apis::DataformV1beta1::WorkflowConfig] workflow_config_object
|
681
|
+
# @param [String] workflow_config_id
|
682
|
+
# Required. The ID to use for the workflow config, which will become the final
|
683
|
+
# component of the workflow config's resource name.
|
684
|
+
# @param [String] fields
|
685
|
+
# Selector specifying which fields to include in a partial response.
|
686
|
+
# @param [String] quota_user
|
687
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
688
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
689
|
+
# @param [Google::Apis::RequestOptions] options
|
690
|
+
# Request-specific options
|
691
|
+
#
|
692
|
+
# @yield [result, err] Result & error if block supplied
|
693
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::WorkflowConfig] parsed result object
|
694
|
+
# @yieldparam err [StandardError] error object if request failed
|
695
|
+
#
|
696
|
+
# @return [Google::Apis::DataformV1beta1::WorkflowConfig]
|
697
|
+
#
|
698
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
699
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
700
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
701
|
+
def create_project_location_repository_workflow_config(parent, workflow_config_object = nil, workflow_config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
702
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/workflowConfigs', options)
|
703
|
+
command.request_representation = Google::Apis::DataformV1beta1::WorkflowConfig::Representation
|
704
|
+
command.request_object = workflow_config_object
|
705
|
+
command.response_representation = Google::Apis::DataformV1beta1::WorkflowConfig::Representation
|
706
|
+
command.response_class = Google::Apis::DataformV1beta1::WorkflowConfig
|
707
|
+
command.params['parent'] = parent unless parent.nil?
|
708
|
+
command.query['workflowConfigId'] = workflow_config_id unless workflow_config_id.nil?
|
709
|
+
command.query['fields'] = fields unless fields.nil?
|
710
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
711
|
+
execute_or_queue_command(command, &block)
|
712
|
+
end
|
713
|
+
|
714
|
+
# Deletes a single WorkflowConfig.
|
715
|
+
# @param [String] name
|
716
|
+
# Required. The workflow config's name.
|
717
|
+
# @param [String] fields
|
718
|
+
# Selector specifying which fields to include in a partial response.
|
719
|
+
# @param [String] quota_user
|
720
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
721
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
722
|
+
# @param [Google::Apis::RequestOptions] options
|
723
|
+
# Request-specific options
|
724
|
+
#
|
725
|
+
# @yield [result, err] Result & error if block supplied
|
726
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Empty] parsed result object
|
727
|
+
# @yieldparam err [StandardError] error object if request failed
|
728
|
+
#
|
729
|
+
# @return [Google::Apis::DataformV1beta1::Empty]
|
730
|
+
#
|
731
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
732
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
733
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
734
|
+
def delete_project_location_repository_workflow_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
735
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
736
|
+
command.response_representation = Google::Apis::DataformV1beta1::Empty::Representation
|
737
|
+
command.response_class = Google::Apis::DataformV1beta1::Empty
|
738
|
+
command.params['name'] = name unless name.nil?
|
739
|
+
command.query['fields'] = fields unless fields.nil?
|
740
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
741
|
+
execute_or_queue_command(command, &block)
|
742
|
+
end
|
743
|
+
|
744
|
+
# Fetches a single WorkflowConfig.
|
745
|
+
# @param [String] name
|
746
|
+
# Required. The workflow config's name.
|
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::DataformV1beta1::WorkflowConfig] parsed result object
|
757
|
+
# @yieldparam err [StandardError] error object if request failed
|
758
|
+
#
|
759
|
+
# @return [Google::Apis::DataformV1beta1::WorkflowConfig]
|
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 get_project_location_repository_workflow_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
765
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
766
|
+
command.response_representation = Google::Apis::DataformV1beta1::WorkflowConfig::Representation
|
767
|
+
command.response_class = Google::Apis::DataformV1beta1::WorkflowConfig
|
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
|
+
# Lists WorkflowConfigs in a given Repository.
|
775
|
+
# @param [String] parent
|
776
|
+
# Required. The repository in which to list workflow configs. Must be in the
|
777
|
+
# format `projects/*/locations/*/repositories/*`.
|
778
|
+
# @param [Fixnum] page_size
|
779
|
+
# Optional. Maximum number of workflow configs to return. The server may return
|
780
|
+
# fewer items than requested. If unspecified, the server will pick an
|
781
|
+
# appropriate default.
|
782
|
+
# @param [String] page_token
|
783
|
+
# Optional. Page token received from a previous `ListWorkflowConfigs` call.
|
784
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
785
|
+
# parameters provided to `ListWorkflowConfigs` must match the call that provided
|
786
|
+
# the page token.
|
787
|
+
# @param [String] fields
|
788
|
+
# Selector specifying which fields to include in a partial response.
|
789
|
+
# @param [String] quota_user
|
790
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
791
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
792
|
+
# @param [Google::Apis::RequestOptions] options
|
793
|
+
# Request-specific options
|
794
|
+
#
|
795
|
+
# @yield [result, err] Result & error if block supplied
|
796
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::ListWorkflowConfigsResponse] parsed result object
|
797
|
+
# @yieldparam err [StandardError] error object if request failed
|
798
|
+
#
|
799
|
+
# @return [Google::Apis::DataformV1beta1::ListWorkflowConfigsResponse]
|
800
|
+
#
|
801
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
802
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
803
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
804
|
+
def list_project_location_repository_workflow_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
805
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/workflowConfigs', options)
|
806
|
+
command.response_representation = Google::Apis::DataformV1beta1::ListWorkflowConfigsResponse::Representation
|
807
|
+
command.response_class = Google::Apis::DataformV1beta1::ListWorkflowConfigsResponse
|
808
|
+
command.params['parent'] = parent unless parent.nil?
|
809
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
810
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
811
|
+
command.query['fields'] = fields unless fields.nil?
|
812
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
813
|
+
execute_or_queue_command(command, &block)
|
814
|
+
end
|
815
|
+
|
816
|
+
# Updates a single WorkflowConfig.
|
817
|
+
# @param [String] name
|
818
|
+
# Output only. The workflow config's name.
|
819
|
+
# @param [Google::Apis::DataformV1beta1::WorkflowConfig] workflow_config_object
|
820
|
+
# @param [String] update_mask
|
821
|
+
# Optional. Specifies the fields to be updated in the workflow config. If left
|
822
|
+
# unset, all fields will be updated.
|
823
|
+
# @param [String] fields
|
824
|
+
# Selector specifying which fields to include in a partial response.
|
825
|
+
# @param [String] quota_user
|
826
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
827
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
828
|
+
# @param [Google::Apis::RequestOptions] options
|
829
|
+
# Request-specific options
|
830
|
+
#
|
831
|
+
# @yield [result, err] Result & error if block supplied
|
832
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::WorkflowConfig] parsed result object
|
833
|
+
# @yieldparam err [StandardError] error object if request failed
|
834
|
+
#
|
835
|
+
# @return [Google::Apis::DataformV1beta1::WorkflowConfig]
|
836
|
+
#
|
837
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
838
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
839
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
840
|
+
def patch_project_location_repository_workflow_config(name, workflow_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
841
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
842
|
+
command.request_representation = Google::Apis::DataformV1beta1::WorkflowConfig::Representation
|
843
|
+
command.request_object = workflow_config_object
|
844
|
+
command.response_representation = Google::Apis::DataformV1beta1::WorkflowConfig::Representation
|
845
|
+
command.response_class = Google::Apis::DataformV1beta1::WorkflowConfig
|
846
|
+
command.params['name'] = name unless name.nil?
|
847
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
848
|
+
command.query['fields'] = fields unless fields.nil?
|
849
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
850
|
+
execute_or_queue_command(command, &block)
|
851
|
+
end
|
852
|
+
|
853
|
+
# Requests cancellation of a running WorkflowInvocation.
|
854
|
+
# @param [String] name
|
855
|
+
# Required. The workflow invocation resource's name.
|
856
|
+
# @param [Google::Apis::DataformV1beta1::CancelWorkflowInvocationRequest] cancel_workflow_invocation_request_object
|
857
|
+
# @param [String] fields
|
858
|
+
# Selector specifying which fields to include in a partial response.
|
859
|
+
# @param [String] quota_user
|
860
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
861
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
862
|
+
# @param [Google::Apis::RequestOptions] options
|
863
|
+
# Request-specific options
|
864
|
+
#
|
865
|
+
# @yield [result, err] Result & error if block supplied
|
866
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Empty] parsed result object
|
867
|
+
# @yieldparam err [StandardError] error object if request failed
|
868
|
+
#
|
869
|
+
# @return [Google::Apis::DataformV1beta1::Empty]
|
870
|
+
#
|
871
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
872
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
873
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
874
|
+
def cancel_workflow_invocation(name, cancel_workflow_invocation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
875
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
876
|
+
command.request_representation = Google::Apis::DataformV1beta1::CancelWorkflowInvocationRequest::Representation
|
877
|
+
command.request_object = cancel_workflow_invocation_request_object
|
878
|
+
command.response_representation = Google::Apis::DataformV1beta1::Empty::Representation
|
879
|
+
command.response_class = Google::Apis::DataformV1beta1::Empty
|
880
|
+
command.params['name'] = name unless name.nil?
|
881
|
+
command.query['fields'] = fields unless fields.nil?
|
882
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
883
|
+
execute_or_queue_command(command, &block)
|
884
|
+
end
|
885
|
+
|
886
|
+
# Creates a new WorkflowInvocation in a given Repository.
|
887
|
+
# @param [String] parent
|
888
|
+
# Required. The repository in which to create the workflow invocation. Must be
|
889
|
+
# in the format `projects/*/locations/*/repositories/*`.
|
890
|
+
# @param [Google::Apis::DataformV1beta1::WorkflowInvocation] workflow_invocation_object
|
891
|
+
# @param [String] fields
|
892
|
+
# Selector specifying which fields to include in a partial response.
|
893
|
+
# @param [String] quota_user
|
894
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
895
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
896
|
+
# @param [Google::Apis::RequestOptions] options
|
897
|
+
# Request-specific options
|
898
|
+
#
|
899
|
+
# @yield [result, err] Result & error if block supplied
|
900
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::WorkflowInvocation] parsed result object
|
901
|
+
# @yieldparam err [StandardError] error object if request failed
|
902
|
+
#
|
903
|
+
# @return [Google::Apis::DataformV1beta1::WorkflowInvocation]
|
904
|
+
#
|
905
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
906
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
907
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
908
|
+
def create_project_location_repository_workflow_invocation(parent, workflow_invocation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
909
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/workflowInvocations', options)
|
910
|
+
command.request_representation = Google::Apis::DataformV1beta1::WorkflowInvocation::Representation
|
911
|
+
command.request_object = workflow_invocation_object
|
912
|
+
command.response_representation = Google::Apis::DataformV1beta1::WorkflowInvocation::Representation
|
913
|
+
command.response_class = Google::Apis::DataformV1beta1::WorkflowInvocation
|
914
|
+
command.params['parent'] = parent unless parent.nil?
|
915
|
+
command.query['fields'] = fields unless fields.nil?
|
916
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
917
|
+
execute_or_queue_command(command, &block)
|
918
|
+
end
|
919
|
+
|
920
|
+
# Deletes a single WorkflowInvocation.
|
921
|
+
# @param [String] name
|
922
|
+
# Required. The workflow invocation resource's name.
|
923
|
+
# @param [String] fields
|
924
|
+
# Selector specifying which fields to include in a partial response.
|
925
|
+
# @param [String] quota_user
|
926
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
927
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
928
|
+
# @param [Google::Apis::RequestOptions] options
|
929
|
+
# Request-specific options
|
930
|
+
#
|
931
|
+
# @yield [result, err] Result & error if block supplied
|
932
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Empty] parsed result object
|
933
|
+
# @yieldparam err [StandardError] error object if request failed
|
934
|
+
#
|
935
|
+
# @return [Google::Apis::DataformV1beta1::Empty]
|
936
|
+
#
|
937
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
938
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
939
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
940
|
+
def delete_project_location_repository_workflow_invocation(name, fields: nil, quota_user: nil, options: nil, &block)
|
941
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
942
|
+
command.response_representation = Google::Apis::DataformV1beta1::Empty::Representation
|
943
|
+
command.response_class = Google::Apis::DataformV1beta1::Empty
|
944
|
+
command.params['name'] = name unless name.nil?
|
945
|
+
command.query['fields'] = fields unless fields.nil?
|
946
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
947
|
+
execute_or_queue_command(command, &block)
|
948
|
+
end
|
949
|
+
|
950
|
+
# Fetches a single WorkflowInvocation.
|
951
|
+
# @param [String] name
|
952
|
+
# Required. The workflow invocation resource's name.
|
953
|
+
# @param [String] fields
|
954
|
+
# Selector specifying which fields to include in a partial response.
|
955
|
+
# @param [String] quota_user
|
956
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
957
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
958
|
+
# @param [Google::Apis::RequestOptions] options
|
959
|
+
# Request-specific options
|
960
|
+
#
|
961
|
+
# @yield [result, err] Result & error if block supplied
|
962
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::WorkflowInvocation] parsed result object
|
963
|
+
# @yieldparam err [StandardError] error object if request failed
|
964
|
+
#
|
965
|
+
# @return [Google::Apis::DataformV1beta1::WorkflowInvocation]
|
966
|
+
#
|
967
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
968
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
969
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
970
|
+
def get_project_location_repository_workflow_invocation(name, fields: nil, quota_user: nil, options: nil, &block)
|
971
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
972
|
+
command.response_representation = Google::Apis::DataformV1beta1::WorkflowInvocation::Representation
|
973
|
+
command.response_class = Google::Apis::DataformV1beta1::WorkflowInvocation
|
974
|
+
command.params['name'] = name unless name.nil?
|
975
|
+
command.query['fields'] = fields unless fields.nil?
|
976
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
977
|
+
execute_or_queue_command(command, &block)
|
978
|
+
end
|
979
|
+
|
980
|
+
# Lists WorkflowInvocations in a given Repository.
|
981
|
+
# @param [String] parent
|
982
|
+
# Required. The parent resource of the WorkflowInvocation type. Must be in the
|
983
|
+
# format `projects/*/locations/*/repositories/*`.
|
984
|
+
# @param [String] filter
|
985
|
+
# Optional. Filter for the returned list.
|
986
|
+
# @param [String] order_by
|
987
|
+
# Optional. This field only supports ordering by `name`. If unspecified, the
|
988
|
+
# server will choose the ordering. If specified, the default order is ascending
|
989
|
+
# for the `name` field.
|
990
|
+
# @param [Fixnum] page_size
|
991
|
+
# Optional. Maximum number of workflow invocations to return. The server may
|
992
|
+
# return fewer items than requested. If unspecified, the server will pick an
|
993
|
+
# appropriate default.
|
994
|
+
# @param [String] page_token
|
995
|
+
# Optional. Page token received from a previous `ListWorkflowInvocations` call.
|
996
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
997
|
+
# parameters provided to `ListWorkflowInvocations` must match the call that
|
998
|
+
# provided the page token.
|
999
|
+
# @param [String] fields
|
1000
|
+
# Selector specifying which fields to include in a partial response.
|
1001
|
+
# @param [String] quota_user
|
1002
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1003
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1004
|
+
# @param [Google::Apis::RequestOptions] options
|
1005
|
+
# Request-specific options
|
1006
|
+
#
|
1007
|
+
# @yield [result, err] Result & error if block supplied
|
1008
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::ListWorkflowInvocationsResponse] parsed result object
|
1009
|
+
# @yieldparam err [StandardError] error object if request failed
|
1010
|
+
#
|
1011
|
+
# @return [Google::Apis::DataformV1beta1::ListWorkflowInvocationsResponse]
|
1012
|
+
#
|
1013
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1014
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1015
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1016
|
+
def list_project_location_repository_workflow_invocations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1017
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/workflowInvocations', options)
|
1018
|
+
command.response_representation = Google::Apis::DataformV1beta1::ListWorkflowInvocationsResponse::Representation
|
1019
|
+
command.response_class = Google::Apis::DataformV1beta1::ListWorkflowInvocationsResponse
|
1020
|
+
command.params['parent'] = parent unless parent.nil?
|
1021
|
+
command.query['filter'] = filter unless filter.nil?
|
1022
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1023
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1024
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1025
|
+
command.query['fields'] = fields unless fields.nil?
|
1026
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1027
|
+
execute_or_queue_command(command, &block)
|
1028
|
+
end
|
1029
|
+
|
1030
|
+
# Returns WorkflowInvocationActions in a given WorkflowInvocation.
|
1031
|
+
# @param [String] name
|
1032
|
+
# Required. The workflow invocation's name.
|
1033
|
+
# @param [Fixnum] page_size
|
1034
|
+
# Optional. Maximum number of workflow invocations to return. The server may
|
1035
|
+
# return fewer items than requested. If unspecified, the server will pick an
|
1036
|
+
# appropriate default.
|
1037
|
+
# @param [String] page_token
|
1038
|
+
# Optional. Page token received from a previous `QueryWorkflowInvocationActions`
|
1039
|
+
# call. Provide this to retrieve the subsequent page. When paginating, all other
|
1040
|
+
# parameters provided to `QueryWorkflowInvocationActions` must match the call
|
1041
|
+
# that provided the page token.
|
1042
|
+
# @param [String] fields
|
1043
|
+
# Selector specifying which fields to include in a partial response.
|
1044
|
+
# @param [String] quota_user
|
1045
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1046
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1047
|
+
# @param [Google::Apis::RequestOptions] options
|
1048
|
+
# Request-specific options
|
1049
|
+
#
|
1050
|
+
# @yield [result, err] Result & error if block supplied
|
1051
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::QueryWorkflowInvocationActionsResponse] parsed result object
|
1052
|
+
# @yieldparam err [StandardError] error object if request failed
|
1053
|
+
#
|
1054
|
+
# @return [Google::Apis::DataformV1beta1::QueryWorkflowInvocationActionsResponse]
|
1055
|
+
#
|
1056
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1057
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1058
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1059
|
+
def query_project_location_repository_workflow_invocation(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1060
|
+
command = make_simple_command(:get, 'v1beta1/{+name}:query', options)
|
1061
|
+
command.response_representation = Google::Apis::DataformV1beta1::QueryWorkflowInvocationActionsResponse::Representation
|
1062
|
+
command.response_class = Google::Apis::DataformV1beta1::QueryWorkflowInvocationActionsResponse
|
1063
|
+
command.params['name'] = name unless name.nil?
|
1064
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1065
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1066
|
+
command.query['fields'] = fields unless fields.nil?
|
1067
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1068
|
+
execute_or_queue_command(command, &block)
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
# Applies a Git commit for uncommitted files in a Workspace.
|
1072
|
+
# @param [String] name
|
1073
|
+
# Required. The workspace's name.
|
1074
|
+
# @param [Google::Apis::DataformV1beta1::CommitWorkspaceChangesRequest] commit_workspace_changes_request_object
|
1075
|
+
# @param [String] fields
|
1076
|
+
# Selector specifying which fields to include in a partial response.
|
1077
|
+
# @param [String] quota_user
|
1078
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1079
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1080
|
+
# @param [Google::Apis::RequestOptions] options
|
1081
|
+
# Request-specific options
|
1082
|
+
#
|
1083
|
+
# @yield [result, err] Result & error if block supplied
|
1084
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Empty] parsed result object
|
1085
|
+
# @yieldparam err [StandardError] error object if request failed
|
1086
|
+
#
|
1087
|
+
# @return [Google::Apis::DataformV1beta1::Empty]
|
1088
|
+
#
|
1089
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1090
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1091
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1092
|
+
def commit_workspace_changes(name, commit_workspace_changes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1093
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:commit', options)
|
1094
|
+
command.request_representation = Google::Apis::DataformV1beta1::CommitWorkspaceChangesRequest::Representation
|
1095
|
+
command.request_object = commit_workspace_changes_request_object
|
1096
|
+
command.response_representation = Google::Apis::DataformV1beta1::Empty::Representation
|
1097
|
+
command.response_class = Google::Apis::DataformV1beta1::Empty
|
1098
|
+
command.params['name'] = name unless name.nil?
|
1099
|
+
command.query['fields'] = fields unless fields.nil?
|
1100
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1101
|
+
execute_or_queue_command(command, &block)
|
1102
|
+
end
|
1103
|
+
|
1104
|
+
# Creates a new Workspace in a given Repository.
|
1105
|
+
# @param [String] parent
|
1106
|
+
# Required. The repository in which to create the workspace. Must be in the
|
1107
|
+
# format `projects/*/locations/*/repositories/*`.
|
1108
|
+
# @param [Google::Apis::DataformV1beta1::Workspace] workspace_object
|
1109
|
+
# @param [String] workspace_id
|
1110
|
+
# Required. The ID to use for the workspace, which will become the final
|
1111
|
+
# component of the workspace's resource name.
|
1112
|
+
# @param [String] fields
|
1113
|
+
# Selector specifying which fields to include in a partial response.
|
1114
|
+
# @param [String] quota_user
|
1115
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1116
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1117
|
+
# @param [Google::Apis::RequestOptions] options
|
1118
|
+
# Request-specific options
|
1119
|
+
#
|
1120
|
+
# @yield [result, err] Result & error if block supplied
|
1121
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Workspace] parsed result object
|
1122
|
+
# @yieldparam err [StandardError] error object if request failed
|
1123
|
+
#
|
1124
|
+
# @return [Google::Apis::DataformV1beta1::Workspace]
|
1125
|
+
#
|
1126
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1127
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1128
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1129
|
+
def create_project_location_repository_workspace(parent, workspace_object = nil, workspace_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1130
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/workspaces', options)
|
1131
|
+
command.request_representation = Google::Apis::DataformV1beta1::Workspace::Representation
|
1132
|
+
command.request_object = workspace_object
|
1133
|
+
command.response_representation = Google::Apis::DataformV1beta1::Workspace::Representation
|
1134
|
+
command.response_class = Google::Apis::DataformV1beta1::Workspace
|
1135
|
+
command.params['parent'] = parent unless parent.nil?
|
1136
|
+
command.query['workspaceId'] = workspace_id unless workspace_id.nil?
|
1137
|
+
command.query['fields'] = fields unless fields.nil?
|
1138
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1139
|
+
execute_or_queue_command(command, &block)
|
1140
|
+
end
|
1141
|
+
|
1142
|
+
# Deletes a single Workspace.
|
1143
|
+
# @param [String] name
|
1144
|
+
# Required. The workspace resource's name.
|
1145
|
+
# @param [String] fields
|
1146
|
+
# Selector specifying which fields to include in a partial response.
|
1147
|
+
# @param [String] quota_user
|
1148
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1149
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1150
|
+
# @param [Google::Apis::RequestOptions] options
|
1151
|
+
# Request-specific options
|
1152
|
+
#
|
1153
|
+
# @yield [result, err] Result & error if block supplied
|
1154
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Empty] parsed result object
|
1155
|
+
# @yieldparam err [StandardError] error object if request failed
|
1156
|
+
#
|
1157
|
+
# @return [Google::Apis::DataformV1beta1::Empty]
|
1158
|
+
#
|
1159
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1160
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1161
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1162
|
+
def delete_project_location_repository_workspace(name, fields: nil, quota_user: nil, options: nil, &block)
|
1163
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
1164
|
+
command.response_representation = Google::Apis::DataformV1beta1::Empty::Representation
|
1165
|
+
command.response_class = Google::Apis::DataformV1beta1::Empty
|
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
|
+
# Fetches Git diff for an uncommitted file in a Workspace.
|
1173
|
+
# @param [String] workspace
|
1174
|
+
# Required. The workspace's name.
|
1175
|
+
# @param [String] path
|
1176
|
+
# Required. The file's full path including filename, relative to the workspace
|
1177
|
+
# root.
|
1178
|
+
# @param [String] fields
|
1179
|
+
# Selector specifying which fields to include in a partial response.
|
1180
|
+
# @param [String] quota_user
|
1181
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1182
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1183
|
+
# @param [Google::Apis::RequestOptions] options
|
1184
|
+
# Request-specific options
|
1185
|
+
#
|
1186
|
+
# @yield [result, err] Result & error if block supplied
|
1187
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::FetchFileDiffResponse] parsed result object
|
1188
|
+
# @yieldparam err [StandardError] error object if request failed
|
1189
|
+
#
|
1190
|
+
# @return [Google::Apis::DataformV1beta1::FetchFileDiffResponse]
|
1191
|
+
#
|
1192
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1193
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1194
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1195
|
+
def fetch_project_location_repository_workspace_file_diff(workspace, path: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1196
|
+
command = make_simple_command(:get, 'v1beta1/{+workspace}:fetchFileDiff', options)
|
1197
|
+
command.response_representation = Google::Apis::DataformV1beta1::FetchFileDiffResponse::Representation
|
1198
|
+
command.response_class = Google::Apis::DataformV1beta1::FetchFileDiffResponse
|
1199
|
+
command.params['workspace'] = workspace unless workspace.nil?
|
1200
|
+
command.query['path'] = path unless path.nil?
|
1201
|
+
command.query['fields'] = fields unless fields.nil?
|
1202
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1203
|
+
execute_or_queue_command(command, &block)
|
1204
|
+
end
|
1205
|
+
|
1206
|
+
# Fetches Git statuses for the files in a Workspace.
|
1207
|
+
# @param [String] name
|
1208
|
+
# Required. The workspace's name.
|
1209
|
+
# @param [String] fields
|
1210
|
+
# Selector specifying which fields to include in a partial response.
|
1211
|
+
# @param [String] quota_user
|
1212
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1213
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1214
|
+
# @param [Google::Apis::RequestOptions] options
|
1215
|
+
# Request-specific options
|
1216
|
+
#
|
1217
|
+
# @yield [result, err] Result & error if block supplied
|
1218
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::FetchFileGitStatusesResponse] parsed result object
|
1219
|
+
# @yieldparam err [StandardError] error object if request failed
|
1220
|
+
#
|
1221
|
+
# @return [Google::Apis::DataformV1beta1::FetchFileGitStatusesResponse]
|
1222
|
+
#
|
1223
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1224
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1225
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1226
|
+
def fetch_project_location_repository_workspace_file_git_statuses(name, fields: nil, quota_user: nil, options: nil, &block)
|
1227
|
+
command = make_simple_command(:get, 'v1beta1/{+name}:fetchFileGitStatuses', options)
|
1228
|
+
command.response_representation = Google::Apis::DataformV1beta1::FetchFileGitStatusesResponse::Representation
|
1229
|
+
command.response_class = Google::Apis::DataformV1beta1::FetchFileGitStatusesResponse
|
1230
|
+
command.params['name'] = name unless name.nil?
|
1231
|
+
command.query['fields'] = fields unless fields.nil?
|
1232
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1233
|
+
execute_or_queue_command(command, &block)
|
1234
|
+
end
|
1235
|
+
|
1236
|
+
# Fetches Git ahead/behind against a remote branch.
|
1237
|
+
# @param [String] name
|
1238
|
+
# Required. The workspace's name.
|
1239
|
+
# @param [String] remote_branch
|
1240
|
+
# Optional. The name of the branch in the Git remote against which this
|
1241
|
+
# workspace should be compared. If left unset, the repository's default branch
|
1242
|
+
# name will be used.
|
1243
|
+
# @param [String] fields
|
1244
|
+
# Selector specifying which fields to include in a partial response.
|
1245
|
+
# @param [String] quota_user
|
1246
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1247
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1248
|
+
# @param [Google::Apis::RequestOptions] options
|
1249
|
+
# Request-specific options
|
1250
|
+
#
|
1251
|
+
# @yield [result, err] Result & error if block supplied
|
1252
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::FetchGitAheadBehindResponse] parsed result object
|
1253
|
+
# @yieldparam err [StandardError] error object if request failed
|
1254
|
+
#
|
1255
|
+
# @return [Google::Apis::DataformV1beta1::FetchGitAheadBehindResponse]
|
1256
|
+
#
|
1257
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1258
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1259
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1260
|
+
def fetch_project_location_repository_workspace_git_ahead_behind(name, remote_branch: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1261
|
+
command = make_simple_command(:get, 'v1beta1/{+name}:fetchGitAheadBehind', options)
|
1262
|
+
command.response_representation = Google::Apis::DataformV1beta1::FetchGitAheadBehindResponse::Representation
|
1263
|
+
command.response_class = Google::Apis::DataformV1beta1::FetchGitAheadBehindResponse
|
1264
|
+
command.params['name'] = name unless name.nil?
|
1265
|
+
command.query['remoteBranch'] = remote_branch unless remote_branch.nil?
|
1266
|
+
command.query['fields'] = fields unless fields.nil?
|
1267
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1268
|
+
execute_or_queue_command(command, &block)
|
1269
|
+
end
|
1270
|
+
|
1271
|
+
# Fetches a single Workspace.
|
1272
|
+
# @param [String] name
|
1273
|
+
# Required. The workspace's name.
|
1274
|
+
# @param [String] fields
|
1275
|
+
# Selector specifying which fields to include in a partial response.
|
1276
|
+
# @param [String] quota_user
|
1277
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1278
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1279
|
+
# @param [Google::Apis::RequestOptions] options
|
1280
|
+
# Request-specific options
|
1281
|
+
#
|
1282
|
+
# @yield [result, err] Result & error if block supplied
|
1283
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Workspace] parsed result object
|
1284
|
+
# @yieldparam err [StandardError] error object if request failed
|
1285
|
+
#
|
1286
|
+
# @return [Google::Apis::DataformV1beta1::Workspace]
|
1287
|
+
#
|
1288
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1289
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1290
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1291
|
+
def get_project_location_repository_workspace(name, fields: nil, quota_user: nil, options: nil, &block)
|
1292
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
1293
|
+
command.response_representation = Google::Apis::DataformV1beta1::Workspace::Representation
|
1294
|
+
command.response_class = Google::Apis::DataformV1beta1::Workspace
|
1295
|
+
command.params['name'] = name unless name.nil?
|
1296
|
+
command.query['fields'] = fields unless fields.nil?
|
1297
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1298
|
+
execute_or_queue_command(command, &block)
|
1299
|
+
end
|
1300
|
+
|
1301
|
+
# Installs dependency NPM packages (inside a Workspace).
|
1302
|
+
# @param [String] workspace
|
1303
|
+
# Required. The workspace's name.
|
1304
|
+
# @param [Google::Apis::DataformV1beta1::InstallNpmPackagesRequest] install_npm_packages_request_object
|
1305
|
+
# @param [String] fields
|
1306
|
+
# Selector specifying which fields to include in a partial response.
|
1307
|
+
# @param [String] quota_user
|
1308
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1309
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1310
|
+
# @param [Google::Apis::RequestOptions] options
|
1311
|
+
# Request-specific options
|
1312
|
+
#
|
1313
|
+
# @yield [result, err] Result & error if block supplied
|
1314
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::InstallNpmPackagesResponse] parsed result object
|
1315
|
+
# @yieldparam err [StandardError] error object if request failed
|
1316
|
+
#
|
1317
|
+
# @return [Google::Apis::DataformV1beta1::InstallNpmPackagesResponse]
|
1318
|
+
#
|
1319
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1320
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1321
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1322
|
+
def install_workspace_npm_packages(workspace, install_npm_packages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1323
|
+
command = make_simple_command(:post, 'v1beta1/{+workspace}:installNpmPackages', options)
|
1324
|
+
command.request_representation = Google::Apis::DataformV1beta1::InstallNpmPackagesRequest::Representation
|
1325
|
+
command.request_object = install_npm_packages_request_object
|
1326
|
+
command.response_representation = Google::Apis::DataformV1beta1::InstallNpmPackagesResponse::Representation
|
1327
|
+
command.response_class = Google::Apis::DataformV1beta1::InstallNpmPackagesResponse
|
1328
|
+
command.params['workspace'] = workspace unless workspace.nil?
|
1329
|
+
command.query['fields'] = fields unless fields.nil?
|
1330
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1331
|
+
execute_or_queue_command(command, &block)
|
1332
|
+
end
|
1333
|
+
|
1334
|
+
# Lists Workspaces in a given Repository.
|
1335
|
+
# @param [String] parent
|
1336
|
+
# Required. The repository in which to list workspaces. Must be in the format `
|
1337
|
+
# projects/*/locations/*/repositories/*`.
|
1338
|
+
# @param [String] filter
|
1339
|
+
# Optional. Filter for the returned list.
|
1340
|
+
# @param [String] order_by
|
1341
|
+
# Optional. This field only supports ordering by `name`. If unspecified, the
|
1342
|
+
# server will choose the ordering. If specified, the default order is ascending
|
1343
|
+
# for the `name` field.
|
1344
|
+
# @param [Fixnum] page_size
|
1345
|
+
# Optional. Maximum number of workspaces to return. The server may return fewer
|
1346
|
+
# items than requested. If unspecified, the server will pick an appropriate
|
1347
|
+
# default.
|
1348
|
+
# @param [String] page_token
|
1349
|
+
# Optional. Page token received from a previous `ListWorkspaces` call. Provide
|
1350
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
1351
|
+
# provided to `ListWorkspaces` must match the call that provided the page token.
|
1352
|
+
# @param [String] fields
|
1353
|
+
# Selector specifying which fields to include in a partial response.
|
1354
|
+
# @param [String] quota_user
|
1355
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1356
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1357
|
+
# @param [Google::Apis::RequestOptions] options
|
1358
|
+
# Request-specific options
|
1359
|
+
#
|
1360
|
+
# @yield [result, err] Result & error if block supplied
|
1361
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::ListWorkspacesResponse] parsed result object
|
1362
|
+
# @yieldparam err [StandardError] error object if request failed
|
1363
|
+
#
|
1364
|
+
# @return [Google::Apis::DataformV1beta1::ListWorkspacesResponse]
|
1365
|
+
#
|
1366
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1367
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1368
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1369
|
+
def list_project_location_repository_workspaces(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1370
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/workspaces', options)
|
1371
|
+
command.response_representation = Google::Apis::DataformV1beta1::ListWorkspacesResponse::Representation
|
1372
|
+
command.response_class = Google::Apis::DataformV1beta1::ListWorkspacesResponse
|
1373
|
+
command.params['parent'] = parent unless parent.nil?
|
1374
|
+
command.query['filter'] = filter unless filter.nil?
|
1375
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1376
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1377
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1378
|
+
command.query['fields'] = fields unless fields.nil?
|
1379
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1380
|
+
execute_or_queue_command(command, &block)
|
1381
|
+
end
|
1382
|
+
|
1383
|
+
# Creates a directory inside a Workspace.
|
1384
|
+
# @param [String] workspace
|
1385
|
+
# Required. The workspace's name.
|
1386
|
+
# @param [Google::Apis::DataformV1beta1::MakeDirectoryRequest] make_directory_request_object
|
1387
|
+
# @param [String] fields
|
1388
|
+
# Selector specifying which fields to include in a partial response.
|
1389
|
+
# @param [String] quota_user
|
1390
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1391
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1392
|
+
# @param [Google::Apis::RequestOptions] options
|
1393
|
+
# Request-specific options
|
1394
|
+
#
|
1395
|
+
# @yield [result, err] Result & error if block supplied
|
1396
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::MakeDirectoryResponse] parsed result object
|
1397
|
+
# @yieldparam err [StandardError] error object if request failed
|
1398
|
+
#
|
1399
|
+
# @return [Google::Apis::DataformV1beta1::MakeDirectoryResponse]
|
1400
|
+
#
|
1401
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1402
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1403
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1404
|
+
def make_workspace_directory(workspace, make_directory_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1405
|
+
command = make_simple_command(:post, 'v1beta1/{+workspace}:makeDirectory', options)
|
1406
|
+
command.request_representation = Google::Apis::DataformV1beta1::MakeDirectoryRequest::Representation
|
1407
|
+
command.request_object = make_directory_request_object
|
1408
|
+
command.response_representation = Google::Apis::DataformV1beta1::MakeDirectoryResponse::Representation
|
1409
|
+
command.response_class = Google::Apis::DataformV1beta1::MakeDirectoryResponse
|
1410
|
+
command.params['workspace'] = workspace unless workspace.nil?
|
1411
|
+
command.query['fields'] = fields unless fields.nil?
|
1412
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1413
|
+
execute_or_queue_command(command, &block)
|
1414
|
+
end
|
1415
|
+
|
1416
|
+
# Moves a directory (inside a Workspace), and all of its contents, to a new
|
1417
|
+
# location.
|
1418
|
+
# @param [String] workspace
|
1419
|
+
# Required. The workspace's name.
|
1420
|
+
# @param [Google::Apis::DataformV1beta1::MoveDirectoryRequest] move_directory_request_object
|
1421
|
+
# @param [String] fields
|
1422
|
+
# Selector specifying which fields to include in a partial response.
|
1423
|
+
# @param [String] quota_user
|
1424
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1425
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1426
|
+
# @param [Google::Apis::RequestOptions] options
|
1427
|
+
# Request-specific options
|
1428
|
+
#
|
1429
|
+
# @yield [result, err] Result & error if block supplied
|
1430
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::MoveDirectoryResponse] parsed result object
|
1431
|
+
# @yieldparam err [StandardError] error object if request failed
|
1432
|
+
#
|
1433
|
+
# @return [Google::Apis::DataformV1beta1::MoveDirectoryResponse]
|
1434
|
+
#
|
1435
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1436
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1437
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1438
|
+
def move_workspace_directory(workspace, move_directory_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1439
|
+
command = make_simple_command(:post, 'v1beta1/{+workspace}:moveDirectory', options)
|
1440
|
+
command.request_representation = Google::Apis::DataformV1beta1::MoveDirectoryRequest::Representation
|
1441
|
+
command.request_object = move_directory_request_object
|
1442
|
+
command.response_representation = Google::Apis::DataformV1beta1::MoveDirectoryResponse::Representation
|
1443
|
+
command.response_class = Google::Apis::DataformV1beta1::MoveDirectoryResponse
|
1444
|
+
command.params['workspace'] = workspace unless workspace.nil?
|
1445
|
+
command.query['fields'] = fields unless fields.nil?
|
1446
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1447
|
+
execute_or_queue_command(command, &block)
|
1448
|
+
end
|
1449
|
+
|
1450
|
+
# Moves a file (inside a Workspace) to a new location.
|
1451
|
+
# @param [String] workspace
|
1452
|
+
# Required. The workspace's name.
|
1453
|
+
# @param [Google::Apis::DataformV1beta1::MoveFileRequest] move_file_request_object
|
1454
|
+
# @param [String] fields
|
1455
|
+
# Selector specifying which fields to include in a partial response.
|
1456
|
+
# @param [String] quota_user
|
1457
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1458
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1459
|
+
# @param [Google::Apis::RequestOptions] options
|
1460
|
+
# Request-specific options
|
1461
|
+
#
|
1462
|
+
# @yield [result, err] Result & error if block supplied
|
1463
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::MoveFileResponse] parsed result object
|
1464
|
+
# @yieldparam err [StandardError] error object if request failed
|
1465
|
+
#
|
1466
|
+
# @return [Google::Apis::DataformV1beta1::MoveFileResponse]
|
1467
|
+
#
|
1468
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1469
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1470
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1471
|
+
def move_workspace_file(workspace, move_file_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1472
|
+
command = make_simple_command(:post, 'v1beta1/{+workspace}:moveFile', options)
|
1473
|
+
command.request_representation = Google::Apis::DataformV1beta1::MoveFileRequest::Representation
|
1474
|
+
command.request_object = move_file_request_object
|
1475
|
+
command.response_representation = Google::Apis::DataformV1beta1::MoveFileResponse::Representation
|
1476
|
+
command.response_class = Google::Apis::DataformV1beta1::MoveFileResponse
|
1477
|
+
command.params['workspace'] = workspace unless workspace.nil?
|
1478
|
+
command.query['fields'] = fields unless fields.nil?
|
1479
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1480
|
+
execute_or_queue_command(command, &block)
|
1481
|
+
end
|
1482
|
+
|
1483
|
+
# Pulls Git commits from the Repository's remote into a Workspace.
|
1484
|
+
# @param [String] name
|
1485
|
+
# Required. The workspace's name.
|
1486
|
+
# @param [Google::Apis::DataformV1beta1::PullGitCommitsRequest] pull_git_commits_request_object
|
1487
|
+
# @param [String] fields
|
1488
|
+
# Selector specifying which fields to include in a partial response.
|
1489
|
+
# @param [String] quota_user
|
1490
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1491
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1492
|
+
# @param [Google::Apis::RequestOptions] options
|
1493
|
+
# Request-specific options
|
1494
|
+
#
|
1495
|
+
# @yield [result, err] Result & error if block supplied
|
1496
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Empty] parsed result object
|
1497
|
+
# @yieldparam err [StandardError] error object if request failed
|
1498
|
+
#
|
1499
|
+
# @return [Google::Apis::DataformV1beta1::Empty]
|
1500
|
+
#
|
1501
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1502
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1503
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1504
|
+
def pull_workspace_git_commits(name, pull_git_commits_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1505
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:pull', options)
|
1506
|
+
command.request_representation = Google::Apis::DataformV1beta1::PullGitCommitsRequest::Representation
|
1507
|
+
command.request_object = pull_git_commits_request_object
|
1508
|
+
command.response_representation = Google::Apis::DataformV1beta1::Empty::Representation
|
1509
|
+
command.response_class = Google::Apis::DataformV1beta1::Empty
|
1510
|
+
command.params['name'] = name unless name.nil?
|
1511
|
+
command.query['fields'] = fields unless fields.nil?
|
1512
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1513
|
+
execute_or_queue_command(command, &block)
|
1514
|
+
end
|
1515
|
+
|
1516
|
+
# Pushes Git commits from a Workspace to the Repository's remote.
|
1517
|
+
# @param [String] name
|
1518
|
+
# Required. The workspace's name.
|
1519
|
+
# @param [Google::Apis::DataformV1beta1::PushGitCommitsRequest] push_git_commits_request_object
|
1520
|
+
# @param [String] fields
|
1521
|
+
# Selector specifying which fields to include in a partial response.
|
1522
|
+
# @param [String] quota_user
|
1523
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1524
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1525
|
+
# @param [Google::Apis::RequestOptions] options
|
1526
|
+
# Request-specific options
|
1527
|
+
#
|
1528
|
+
# @yield [result, err] Result & error if block supplied
|
1529
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Empty] parsed result object
|
1530
|
+
# @yieldparam err [StandardError] error object if request failed
|
1531
|
+
#
|
1532
|
+
# @return [Google::Apis::DataformV1beta1::Empty]
|
1533
|
+
#
|
1534
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1535
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1536
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1537
|
+
def push_workspace_git_commits(name, push_git_commits_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1538
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:push', options)
|
1539
|
+
command.request_representation = Google::Apis::DataformV1beta1::PushGitCommitsRequest::Representation
|
1540
|
+
command.request_object = push_git_commits_request_object
|
1541
|
+
command.response_representation = Google::Apis::DataformV1beta1::Empty::Representation
|
1542
|
+
command.response_class = Google::Apis::DataformV1beta1::Empty
|
1543
|
+
command.params['name'] = name unless name.nil?
|
1544
|
+
command.query['fields'] = fields unless fields.nil?
|
1545
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1546
|
+
execute_or_queue_command(command, &block)
|
1547
|
+
end
|
1548
|
+
|
1549
|
+
# Returns the contents of a given Workspace directory.
|
1550
|
+
# @param [String] workspace
|
1551
|
+
# Required. The workspace's name.
|
1552
|
+
# @param [Fixnum] page_size
|
1553
|
+
# Optional. Maximum number of paths to return. The server may return fewer items
|
1554
|
+
# than requested. If unspecified, the server will pick an appropriate default.
|
1555
|
+
# @param [String] page_token
|
1556
|
+
# Optional. Page token received from a previous `QueryDirectoryContents` call.
|
1557
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
1558
|
+
# parameters provided to `QueryDirectoryContents` must match the call that
|
1559
|
+
# provided the page token.
|
1560
|
+
# @param [String] path
|
1561
|
+
# Optional. The directory's full path including directory name, relative to the
|
1562
|
+
# workspace root. If left unset, the workspace root is used.
|
1563
|
+
# @param [String] fields
|
1564
|
+
# Selector specifying which fields to include in a partial response.
|
1565
|
+
# @param [String] quota_user
|
1566
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1567
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1568
|
+
# @param [Google::Apis::RequestOptions] options
|
1569
|
+
# Request-specific options
|
1570
|
+
#
|
1571
|
+
# @yield [result, err] Result & error if block supplied
|
1572
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::QueryDirectoryContentsResponse] parsed result object
|
1573
|
+
# @yieldparam err [StandardError] error object if request failed
|
1574
|
+
#
|
1575
|
+
# @return [Google::Apis::DataformV1beta1::QueryDirectoryContentsResponse]
|
1576
|
+
#
|
1577
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1578
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1579
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1580
|
+
def query_project_location_repository_workspace_directory_contents(workspace, page_size: nil, page_token: nil, path: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1581
|
+
command = make_simple_command(:get, 'v1beta1/{+workspace}:queryDirectoryContents', options)
|
1582
|
+
command.response_representation = Google::Apis::DataformV1beta1::QueryDirectoryContentsResponse::Representation
|
1583
|
+
command.response_class = Google::Apis::DataformV1beta1::QueryDirectoryContentsResponse
|
1584
|
+
command.params['workspace'] = workspace unless workspace.nil?
|
1585
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1586
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1587
|
+
command.query['path'] = path unless path.nil?
|
1588
|
+
command.query['fields'] = fields unless fields.nil?
|
1589
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1590
|
+
execute_or_queue_command(command, &block)
|
1591
|
+
end
|
1592
|
+
|
1593
|
+
# Returns the contents of a file (inside a Workspace).
|
1594
|
+
# @param [String] workspace
|
1595
|
+
# Required. The workspace's name.
|
1596
|
+
# @param [String] path
|
1597
|
+
# Required. The file's full path including filename, relative to the workspace
|
1598
|
+
# root.
|
1599
|
+
# @param [String] fields
|
1600
|
+
# Selector specifying which fields to include in a partial response.
|
1601
|
+
# @param [String] quota_user
|
1602
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1603
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1604
|
+
# @param [Google::Apis::RequestOptions] options
|
1605
|
+
# Request-specific options
|
1606
|
+
#
|
1607
|
+
# @yield [result, err] Result & error if block supplied
|
1608
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::ReadFileResponse] parsed result object
|
1609
|
+
# @yieldparam err [StandardError] error object if request failed
|
1610
|
+
#
|
1611
|
+
# @return [Google::Apis::DataformV1beta1::ReadFileResponse]
|
1612
|
+
#
|
1613
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1614
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1615
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1616
|
+
def read_project_location_repository_workspace_file(workspace, path: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1617
|
+
command = make_simple_command(:get, 'v1beta1/{+workspace}:readFile', options)
|
1618
|
+
command.response_representation = Google::Apis::DataformV1beta1::ReadFileResponse::Representation
|
1619
|
+
command.response_class = Google::Apis::DataformV1beta1::ReadFileResponse
|
1620
|
+
command.params['workspace'] = workspace unless workspace.nil?
|
1621
|
+
command.query['path'] = path unless path.nil?
|
1622
|
+
command.query['fields'] = fields unless fields.nil?
|
1623
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1624
|
+
execute_or_queue_command(command, &block)
|
1625
|
+
end
|
1626
|
+
|
1627
|
+
# Deletes a directory (inside a Workspace) and all of its contents.
|
1628
|
+
# @param [String] workspace
|
1629
|
+
# Required. The workspace's name.
|
1630
|
+
# @param [Google::Apis::DataformV1beta1::RemoveDirectoryRequest] remove_directory_request_object
|
1631
|
+
# @param [String] fields
|
1632
|
+
# Selector specifying which fields to include in a partial response.
|
1633
|
+
# @param [String] quota_user
|
1634
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1635
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1636
|
+
# @param [Google::Apis::RequestOptions] options
|
1637
|
+
# Request-specific options
|
1638
|
+
#
|
1639
|
+
# @yield [result, err] Result & error if block supplied
|
1640
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Empty] parsed result object
|
1641
|
+
# @yieldparam err [StandardError] error object if request failed
|
1642
|
+
#
|
1643
|
+
# @return [Google::Apis::DataformV1beta1::Empty]
|
1644
|
+
#
|
1645
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1646
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1647
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1648
|
+
def remove_workspace_directory(workspace, remove_directory_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1649
|
+
command = make_simple_command(:post, 'v1beta1/{+workspace}:removeDirectory', options)
|
1650
|
+
command.request_representation = Google::Apis::DataformV1beta1::RemoveDirectoryRequest::Representation
|
1651
|
+
command.request_object = remove_directory_request_object
|
1652
|
+
command.response_representation = Google::Apis::DataformV1beta1::Empty::Representation
|
1653
|
+
command.response_class = Google::Apis::DataformV1beta1::Empty
|
1654
|
+
command.params['workspace'] = workspace unless workspace.nil?
|
1655
|
+
command.query['fields'] = fields unless fields.nil?
|
1656
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1657
|
+
execute_or_queue_command(command, &block)
|
1658
|
+
end
|
1659
|
+
|
1660
|
+
# Deletes a file (inside a Workspace).
|
1661
|
+
# @param [String] workspace
|
1662
|
+
# Required. The workspace's name.
|
1663
|
+
# @param [Google::Apis::DataformV1beta1::RemoveFileRequest] remove_file_request_object
|
1664
|
+
# @param [String] fields
|
1665
|
+
# Selector specifying which fields to include in a partial response.
|
1666
|
+
# @param [String] quota_user
|
1667
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1668
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1669
|
+
# @param [Google::Apis::RequestOptions] options
|
1670
|
+
# Request-specific options
|
1671
|
+
#
|
1672
|
+
# @yield [result, err] Result & error if block supplied
|
1673
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Empty] parsed result object
|
1674
|
+
# @yieldparam err [StandardError] error object if request failed
|
1675
|
+
#
|
1676
|
+
# @return [Google::Apis::DataformV1beta1::Empty]
|
1677
|
+
#
|
1678
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1679
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1680
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1681
|
+
def remove_workspace_file(workspace, remove_file_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1682
|
+
command = make_simple_command(:post, 'v1beta1/{+workspace}:removeFile', options)
|
1683
|
+
command.request_representation = Google::Apis::DataformV1beta1::RemoveFileRequest::Representation
|
1684
|
+
command.request_object = remove_file_request_object
|
1685
|
+
command.response_representation = Google::Apis::DataformV1beta1::Empty::Representation
|
1686
|
+
command.response_class = Google::Apis::DataformV1beta1::Empty
|
1687
|
+
command.params['workspace'] = workspace unless workspace.nil?
|
1688
|
+
command.query['fields'] = fields unless fields.nil?
|
1689
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1690
|
+
execute_or_queue_command(command, &block)
|
1691
|
+
end
|
1692
|
+
|
1693
|
+
# Performs a Git reset for uncommitted files in a Workspace.
|
1694
|
+
# @param [String] name
|
1695
|
+
# Required. The workspace's name.
|
1696
|
+
# @param [Google::Apis::DataformV1beta1::ResetWorkspaceChangesRequest] reset_workspace_changes_request_object
|
1697
|
+
# @param [String] fields
|
1698
|
+
# Selector specifying which fields to include in a partial response.
|
1699
|
+
# @param [String] quota_user
|
1700
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1701
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1702
|
+
# @param [Google::Apis::RequestOptions] options
|
1703
|
+
# Request-specific options
|
1704
|
+
#
|
1705
|
+
# @yield [result, err] Result & error if block supplied
|
1706
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::Empty] parsed result object
|
1707
|
+
# @yieldparam err [StandardError] error object if request failed
|
1708
|
+
#
|
1709
|
+
# @return [Google::Apis::DataformV1beta1::Empty]
|
1710
|
+
#
|
1711
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1712
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1713
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1714
|
+
def reset_workspace_changes(name, reset_workspace_changes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1715
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:reset', options)
|
1716
|
+
command.request_representation = Google::Apis::DataformV1beta1::ResetWorkspaceChangesRequest::Representation
|
1717
|
+
command.request_object = reset_workspace_changes_request_object
|
1718
|
+
command.response_representation = Google::Apis::DataformV1beta1::Empty::Representation
|
1719
|
+
command.response_class = Google::Apis::DataformV1beta1::Empty
|
1720
|
+
command.params['name'] = name unless name.nil?
|
1721
|
+
command.query['fields'] = fields unless fields.nil?
|
1722
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1723
|
+
execute_or_queue_command(command, &block)
|
1724
|
+
end
|
1725
|
+
|
1726
|
+
# Writes to a file (inside a Workspace).
|
1727
|
+
# @param [String] workspace
|
1728
|
+
# Required. The workspace's name.
|
1729
|
+
# @param [Google::Apis::DataformV1beta1::WriteFileRequest] write_file_request_object
|
1730
|
+
# @param [String] fields
|
1731
|
+
# Selector specifying which fields to include in a partial response.
|
1732
|
+
# @param [String] quota_user
|
1733
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1734
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1735
|
+
# @param [Google::Apis::RequestOptions] options
|
1736
|
+
# Request-specific options
|
1737
|
+
#
|
1738
|
+
# @yield [result, err] Result & error if block supplied
|
1739
|
+
# @yieldparam result [Google::Apis::DataformV1beta1::WriteFileResponse] parsed result object
|
1740
|
+
# @yieldparam err [StandardError] error object if request failed
|
1741
|
+
#
|
1742
|
+
# @return [Google::Apis::DataformV1beta1::WriteFileResponse]
|
1743
|
+
#
|
1744
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1745
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1746
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1747
|
+
def write_workspace_file(workspace, write_file_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1748
|
+
command = make_simple_command(:post, 'v1beta1/{+workspace}:writeFile', options)
|
1749
|
+
command.request_representation = Google::Apis::DataformV1beta1::WriteFileRequest::Representation
|
1750
|
+
command.request_object = write_file_request_object
|
1751
|
+
command.response_representation = Google::Apis::DataformV1beta1::WriteFileResponse::Representation
|
1752
|
+
command.response_class = Google::Apis::DataformV1beta1::WriteFileResponse
|
1753
|
+
command.params['workspace'] = workspace unless workspace.nil?
|
1754
|
+
command.query['fields'] = fields unless fields.nil?
|
1755
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1756
|
+
execute_or_queue_command(command, &block)
|
1757
|
+
end
|
1758
|
+
|
1759
|
+
protected
|
1760
|
+
|
1761
|
+
def apply_command_defaults(command)
|
1762
|
+
command.query['key'] = key unless key.nil?
|
1763
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1764
|
+
end
|
1765
|
+
end
|
1766
|
+
end
|
1767
|
+
end
|
1768
|
+
end
|