google-apis-developerconnect_v1 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/developerconnect_v1/classes.rb +858 -0
- data/lib/google/apis/developerconnect_v1/gem_version.rb +28 -0
- data/lib/google/apis/developerconnect_v1/representations.rb +400 -0
- data/lib/google/apis/developerconnect_v1/service.rb +877 -0
- data/lib/google/apis/developerconnect_v1.rb +36 -0
- data/lib/google-apis-developerconnect_v1.rb +15 -0
- metadata +82 -0
@@ -0,0 +1,877 @@
|
|
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 DeveloperconnectV1
|
23
|
+
# Developer Connect API
|
24
|
+
#
|
25
|
+
# Connect third-party source code management to Google
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/developerconnect_v1'
|
29
|
+
#
|
30
|
+
# Developerconnect = Google::Apis::DeveloperconnectV1 # Alias the module
|
31
|
+
# service = Developerconnect::DeveloperConnectService.new
|
32
|
+
#
|
33
|
+
# @see http://cloud.google.com/developer-connect/docs/overview
|
34
|
+
class DeveloperConnectService < Google::Apis::Core::BaseService
|
35
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://developerconnect.$UNIVERSE_DOMAIN$/"
|
36
|
+
|
37
|
+
# @return [String]
|
38
|
+
# API key. Your API key identifies your project and provides you with API access,
|
39
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
40
|
+
attr_accessor :key
|
41
|
+
|
42
|
+
# @return [String]
|
43
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
44
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
45
|
+
attr_accessor :quota_user
|
46
|
+
|
47
|
+
def initialize
|
48
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
49
|
+
client_name: 'google-apis-developerconnect_v1',
|
50
|
+
client_version: Google::Apis::DeveloperconnectV1::GEM_VERSION)
|
51
|
+
@batch_path = 'batch'
|
52
|
+
end
|
53
|
+
|
54
|
+
# Gets information about a location.
|
55
|
+
# @param [String] name
|
56
|
+
# Resource name for the location.
|
57
|
+
# @param [String] fields
|
58
|
+
# Selector specifying which fields to include in a partial response.
|
59
|
+
# @param [String] quota_user
|
60
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
61
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
62
|
+
# @param [Google::Apis::RequestOptions] options
|
63
|
+
# Request-specific options
|
64
|
+
#
|
65
|
+
# @yield [result, err] Result & error if block supplied
|
66
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Location] parsed result object
|
67
|
+
# @yieldparam err [StandardError] error object if request failed
|
68
|
+
#
|
69
|
+
# @return [Google::Apis::DeveloperconnectV1::Location]
|
70
|
+
#
|
71
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
72
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
73
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
74
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
75
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
76
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Location::Representation
|
77
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Location
|
78
|
+
command.params['name'] = name unless name.nil?
|
79
|
+
command.query['fields'] = fields unless fields.nil?
|
80
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
81
|
+
execute_or_queue_command(command, &block)
|
82
|
+
end
|
83
|
+
|
84
|
+
# Lists information about the supported locations for this service.
|
85
|
+
# @param [String] name
|
86
|
+
# The resource that owns the locations collection, if applicable.
|
87
|
+
# @param [String] filter
|
88
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
89
|
+
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
90
|
+
# in [AIP-160](https://google.aip.dev/160).
|
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::DeveloperconnectV1::ListLocationsResponse] parsed result object
|
107
|
+
# @yieldparam err [StandardError] error object if request failed
|
108
|
+
#
|
109
|
+
# @return [Google::Apis::DeveloperconnectV1::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, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
115
|
+
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
116
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::ListLocationsResponse::Representation
|
117
|
+
command.response_class = Google::Apis::DeveloperconnectV1::ListLocationsResponse
|
118
|
+
command.params['name'] = name unless name.nil?
|
119
|
+
command.query['filter'] = filter unless filter.nil?
|
120
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
121
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
122
|
+
command.query['fields'] = fields unless fields.nil?
|
123
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
124
|
+
execute_or_queue_command(command, &block)
|
125
|
+
end
|
126
|
+
|
127
|
+
# Creates a new Connection in a given project and location.
|
128
|
+
# @param [String] parent
|
129
|
+
# Required. Value for parent.
|
130
|
+
# @param [Google::Apis::DeveloperconnectV1::Connection] connection_object
|
131
|
+
# @param [String] connection_id
|
132
|
+
# Required. Id of the requesting object If auto-generating Id server-side,
|
133
|
+
# remove this field and connection_id from the method_signature of Create RPC
|
134
|
+
# @param [String] request_id
|
135
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
136
|
+
# request ID so that if you must retry your request, the server will know to
|
137
|
+
# ignore the request if it has already been completed. The server will guarantee
|
138
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
139
|
+
# situation where you make an initial request and the request times out. If you
|
140
|
+
# make the request again with the same request ID, the server can check if
|
141
|
+
# original operation with the same request ID was received, and if so, will
|
142
|
+
# ignore the second request. This prevents clients from accidentally creating
|
143
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
144
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
145
|
+
# @param [Boolean] validate_only
|
146
|
+
# Optional. If set, validate the request, but do not actually post it.
|
147
|
+
# @param [String] fields
|
148
|
+
# Selector specifying which fields to include in a partial response.
|
149
|
+
# @param [String] quota_user
|
150
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
151
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
152
|
+
# @param [Google::Apis::RequestOptions] options
|
153
|
+
# Request-specific options
|
154
|
+
#
|
155
|
+
# @yield [result, err] Result & error if block supplied
|
156
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Operation] parsed result object
|
157
|
+
# @yieldparam err [StandardError] error object if request failed
|
158
|
+
#
|
159
|
+
# @return [Google::Apis::DeveloperconnectV1::Operation]
|
160
|
+
#
|
161
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
162
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
163
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
164
|
+
def create_project_location_connection(parent, connection_object = nil, connection_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
165
|
+
command = make_simple_command(:post, 'v1/{+parent}/connections', options)
|
166
|
+
command.request_representation = Google::Apis::DeveloperconnectV1::Connection::Representation
|
167
|
+
command.request_object = connection_object
|
168
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Operation::Representation
|
169
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Operation
|
170
|
+
command.params['parent'] = parent unless parent.nil?
|
171
|
+
command.query['connectionId'] = connection_id unless connection_id.nil?
|
172
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
173
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
174
|
+
command.query['fields'] = fields unless fields.nil?
|
175
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
176
|
+
execute_or_queue_command(command, &block)
|
177
|
+
end
|
178
|
+
|
179
|
+
# Deletes a single Connection.
|
180
|
+
# @param [String] name
|
181
|
+
# Required. Name of the resource
|
182
|
+
# @param [String] etag
|
183
|
+
# Optional. The current etag of the Connection. If an etag is provided and does
|
184
|
+
# not match the current etag of the Connection, deletion will be blocked and an
|
185
|
+
# ABORTED error will be returned.
|
186
|
+
# @param [String] request_id
|
187
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
188
|
+
# request ID so that if you must retry your request, the server will know to
|
189
|
+
# ignore the request if it has already been completed. The server will guarantee
|
190
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
191
|
+
# situation where you make an initial request and the request times out. If you
|
192
|
+
# make the request again with the same request ID, the server can check if
|
193
|
+
# original operation with the same request ID was received, and if so, will
|
194
|
+
# ignore the second request. This prevents clients from accidentally creating
|
195
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
196
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
197
|
+
# @param [Boolean] validate_only
|
198
|
+
# Optional. If set, validate the request, but do not actually post it.
|
199
|
+
# @param [String] fields
|
200
|
+
# Selector specifying which fields to include in a partial response.
|
201
|
+
# @param [String] quota_user
|
202
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
203
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
204
|
+
# @param [Google::Apis::RequestOptions] options
|
205
|
+
# Request-specific options
|
206
|
+
#
|
207
|
+
# @yield [result, err] Result & error if block supplied
|
208
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Operation] parsed result object
|
209
|
+
# @yieldparam err [StandardError] error object if request failed
|
210
|
+
#
|
211
|
+
# @return [Google::Apis::DeveloperconnectV1::Operation]
|
212
|
+
#
|
213
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
214
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
215
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
216
|
+
def delete_project_location_connection(name, etag: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
217
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
218
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Operation::Representation
|
219
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Operation
|
220
|
+
command.params['name'] = name unless name.nil?
|
221
|
+
command.query['etag'] = etag unless etag.nil?
|
222
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
223
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
224
|
+
command.query['fields'] = fields unless fields.nil?
|
225
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
226
|
+
execute_or_queue_command(command, &block)
|
227
|
+
end
|
228
|
+
|
229
|
+
# FetchGitHubInstallations returns the list of GitHub Installations that are
|
230
|
+
# available to be added to a Connection. For github.com, only installations
|
231
|
+
# accessible to the authorizer token are returned. For GitHub Enterprise, all
|
232
|
+
# installations are returned.
|
233
|
+
# @param [String] connection
|
234
|
+
# Required. The resource name of the connection in the format `projects/*/
|
235
|
+
# locations/*/connections/*`.
|
236
|
+
# @param [String] fields
|
237
|
+
# Selector specifying which fields to include in a partial response.
|
238
|
+
# @param [String] quota_user
|
239
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
240
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
241
|
+
# @param [Google::Apis::RequestOptions] options
|
242
|
+
# Request-specific options
|
243
|
+
#
|
244
|
+
# @yield [result, err] Result & error if block supplied
|
245
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::FetchGitHubInstallationsResponse] parsed result object
|
246
|
+
# @yieldparam err [StandardError] error object if request failed
|
247
|
+
#
|
248
|
+
# @return [Google::Apis::DeveloperconnectV1::FetchGitHubInstallationsResponse]
|
249
|
+
#
|
250
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
251
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
252
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
253
|
+
def fetch_project_location_connection_git_hub_installations(connection, fields: nil, quota_user: nil, options: nil, &block)
|
254
|
+
command = make_simple_command(:get, 'v1/{+connection}:fetchGitHubInstallations', options)
|
255
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::FetchGitHubInstallationsResponse::Representation
|
256
|
+
command.response_class = Google::Apis::DeveloperconnectV1::FetchGitHubInstallationsResponse
|
257
|
+
command.params['connection'] = connection unless connection.nil?
|
258
|
+
command.query['fields'] = fields unless fields.nil?
|
259
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
260
|
+
execute_or_queue_command(command, &block)
|
261
|
+
end
|
262
|
+
|
263
|
+
# FetchLinkableGitRepositories returns a list of git repositories from an SCM
|
264
|
+
# that are available to be added to a Connection.
|
265
|
+
# @param [String] connection
|
266
|
+
# Required. The name of the Connection. Format: `projects/*/locations/*/
|
267
|
+
# connections/*`.
|
268
|
+
# @param [Fixnum] page_size
|
269
|
+
# Optional. Number of results to return in the list. Defaults to 20.
|
270
|
+
# @param [String] page_token
|
271
|
+
# Optional. Page start.
|
272
|
+
# @param [String] fields
|
273
|
+
# Selector specifying which fields to include in a partial response.
|
274
|
+
# @param [String] quota_user
|
275
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
276
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
277
|
+
# @param [Google::Apis::RequestOptions] options
|
278
|
+
# Request-specific options
|
279
|
+
#
|
280
|
+
# @yield [result, err] Result & error if block supplied
|
281
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::FetchLinkableGitRepositoriesResponse] parsed result object
|
282
|
+
# @yieldparam err [StandardError] error object if request failed
|
283
|
+
#
|
284
|
+
# @return [Google::Apis::DeveloperconnectV1::FetchLinkableGitRepositoriesResponse]
|
285
|
+
#
|
286
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
287
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
288
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
289
|
+
def fetch_project_location_connection_linkable_git_repositories(connection, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
290
|
+
command = make_simple_command(:get, 'v1/{+connection}:fetchLinkableGitRepositories', options)
|
291
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::FetchLinkableGitRepositoriesResponse::Representation
|
292
|
+
command.response_class = Google::Apis::DeveloperconnectV1::FetchLinkableGitRepositoriesResponse
|
293
|
+
command.params['connection'] = connection unless connection.nil?
|
294
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
295
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
296
|
+
command.query['fields'] = fields unless fields.nil?
|
297
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
298
|
+
execute_or_queue_command(command, &block)
|
299
|
+
end
|
300
|
+
|
301
|
+
# Gets details of a single Connection.
|
302
|
+
# @param [String] name
|
303
|
+
# Required. Name of the resource
|
304
|
+
# @param [String] fields
|
305
|
+
# Selector specifying which fields to include in a partial response.
|
306
|
+
# @param [String] quota_user
|
307
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
308
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
309
|
+
# @param [Google::Apis::RequestOptions] options
|
310
|
+
# Request-specific options
|
311
|
+
#
|
312
|
+
# @yield [result, err] Result & error if block supplied
|
313
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Connection] parsed result object
|
314
|
+
# @yieldparam err [StandardError] error object if request failed
|
315
|
+
#
|
316
|
+
# @return [Google::Apis::DeveloperconnectV1::Connection]
|
317
|
+
#
|
318
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
319
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
320
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
321
|
+
def get_project_location_connection(name, fields: nil, quota_user: nil, options: nil, &block)
|
322
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
323
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Connection::Representation
|
324
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Connection
|
325
|
+
command.params['name'] = name unless name.nil?
|
326
|
+
command.query['fields'] = fields unless fields.nil?
|
327
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
328
|
+
execute_or_queue_command(command, &block)
|
329
|
+
end
|
330
|
+
|
331
|
+
# Lists Connections in a given project and location.
|
332
|
+
# @param [String] parent
|
333
|
+
# Required. Parent value for ListConnectionsRequest
|
334
|
+
# @param [String] filter
|
335
|
+
# Optional. Filtering results
|
336
|
+
# @param [String] order_by
|
337
|
+
# Optional. Hint for how to order the results
|
338
|
+
# @param [Fixnum] page_size
|
339
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
340
|
+
# If unspecified, server will pick an appropriate default.
|
341
|
+
# @param [String] page_token
|
342
|
+
# Optional. A token identifying a page of results the server should return.
|
343
|
+
# @param [String] fields
|
344
|
+
# Selector specifying which fields to include in a partial response.
|
345
|
+
# @param [String] quota_user
|
346
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
347
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
348
|
+
# @param [Google::Apis::RequestOptions] options
|
349
|
+
# Request-specific options
|
350
|
+
#
|
351
|
+
# @yield [result, err] Result & error if block supplied
|
352
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::ListConnectionsResponse] parsed result object
|
353
|
+
# @yieldparam err [StandardError] error object if request failed
|
354
|
+
#
|
355
|
+
# @return [Google::Apis::DeveloperconnectV1::ListConnectionsResponse]
|
356
|
+
#
|
357
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
358
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
359
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
360
|
+
def list_project_location_connections(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
361
|
+
command = make_simple_command(:get, 'v1/{+parent}/connections', options)
|
362
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::ListConnectionsResponse::Representation
|
363
|
+
command.response_class = Google::Apis::DeveloperconnectV1::ListConnectionsResponse
|
364
|
+
command.params['parent'] = parent unless parent.nil?
|
365
|
+
command.query['filter'] = filter unless filter.nil?
|
366
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
367
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
368
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
369
|
+
command.query['fields'] = fields unless fields.nil?
|
370
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
371
|
+
execute_or_queue_command(command, &block)
|
372
|
+
end
|
373
|
+
|
374
|
+
# Updates the parameters of a single Connection.
|
375
|
+
# @param [String] name
|
376
|
+
# Identifier. The resource name of the connection, in the format `projects/`
|
377
|
+
# project`/locations/`location`/connections/`connection_id``.
|
378
|
+
# @param [Google::Apis::DeveloperconnectV1::Connection] connection_object
|
379
|
+
# @param [Boolean] allow_missing
|
380
|
+
# Optional. If set to true, and the connection is not found a new connection
|
381
|
+
# will be created. In this situation `update_mask` is ignored. The creation will
|
382
|
+
# succeed only if the input connection has all the necessary information (e.g a
|
383
|
+
# github_config with both user_oauth_token and installation_id properties).
|
384
|
+
# @param [String] request_id
|
385
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
386
|
+
# request ID so that if you must retry your request, the server will know to
|
387
|
+
# ignore the request if it has already been completed. The server will guarantee
|
388
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
389
|
+
# situation where you make an initial request and the request times out. If you
|
390
|
+
# make the request again with the same request ID, the server can check if
|
391
|
+
# original operation with the same request ID was received, and if so, will
|
392
|
+
# ignore the second request. This prevents clients from accidentally creating
|
393
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
394
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
395
|
+
# @param [String] update_mask
|
396
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
397
|
+
# Connection resource by the update. The fields specified in the update_mask are
|
398
|
+
# relative to the resource, not the full request. A field will be overwritten if
|
399
|
+
# it is in the mask. If the user does not provide a mask then all fields will be
|
400
|
+
# overwritten.
|
401
|
+
# @param [Boolean] validate_only
|
402
|
+
# Optional. If set, validate the request, but do not actually post it.
|
403
|
+
# @param [String] fields
|
404
|
+
# Selector specifying which fields to include in a partial response.
|
405
|
+
# @param [String] quota_user
|
406
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
407
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
408
|
+
# @param [Google::Apis::RequestOptions] options
|
409
|
+
# Request-specific options
|
410
|
+
#
|
411
|
+
# @yield [result, err] Result & error if block supplied
|
412
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Operation] parsed result object
|
413
|
+
# @yieldparam err [StandardError] error object if request failed
|
414
|
+
#
|
415
|
+
# @return [Google::Apis::DeveloperconnectV1::Operation]
|
416
|
+
#
|
417
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
418
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
419
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
420
|
+
def patch_project_location_connection(name, connection_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
421
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
422
|
+
command.request_representation = Google::Apis::DeveloperconnectV1::Connection::Representation
|
423
|
+
command.request_object = connection_object
|
424
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Operation::Representation
|
425
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Operation
|
426
|
+
command.params['name'] = name unless name.nil?
|
427
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
428
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
429
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
430
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
431
|
+
command.query['fields'] = fields unless fields.nil?
|
432
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
433
|
+
execute_or_queue_command(command, &block)
|
434
|
+
end
|
435
|
+
|
436
|
+
# Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect
|
437
|
+
# will configure the Git Repository to send webhook events to Developer Connect.
|
438
|
+
# Connections that use Firebase GitHub Application will have events forwarded to
|
439
|
+
# the Firebase service. All other Connections will have events forwarded to
|
440
|
+
# Cloud Build.
|
441
|
+
# @param [String] parent
|
442
|
+
# Required. Value for parent.
|
443
|
+
# @param [Google::Apis::DeveloperconnectV1::GitRepositoryLink] git_repository_link_object
|
444
|
+
# @param [String] git_repository_link_id
|
445
|
+
# Required. The ID to use for the repository, which will become the final
|
446
|
+
# component of the repository's resource name. This ID should be unique in the
|
447
|
+
# connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.
|
448
|
+
# @param [String] request_id
|
449
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
450
|
+
# request ID so that if you must retry your request, the server will know to
|
451
|
+
# ignore the request if it has already been completed. The server will guarantee
|
452
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
453
|
+
# situation where you make an initial request and the request times out. If you
|
454
|
+
# make the request again with the same request ID, the server can check if
|
455
|
+
# original operation with the same request ID was received, and if so, will
|
456
|
+
# ignore the second request. This prevents clients from accidentally creating
|
457
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
458
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
459
|
+
# @param [Boolean] validate_only
|
460
|
+
# Optional. If set, validate the request, but do not actually post it.
|
461
|
+
# @param [String] fields
|
462
|
+
# Selector specifying which fields to include in a partial response.
|
463
|
+
# @param [String] quota_user
|
464
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
465
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
466
|
+
# @param [Google::Apis::RequestOptions] options
|
467
|
+
# Request-specific options
|
468
|
+
#
|
469
|
+
# @yield [result, err] Result & error if block supplied
|
470
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Operation] parsed result object
|
471
|
+
# @yieldparam err [StandardError] error object if request failed
|
472
|
+
#
|
473
|
+
# @return [Google::Apis::DeveloperconnectV1::Operation]
|
474
|
+
#
|
475
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
476
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
477
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
478
|
+
def create_project_location_connection_git_repository_link(parent, git_repository_link_object = nil, git_repository_link_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
479
|
+
command = make_simple_command(:post, 'v1/{+parent}/gitRepositoryLinks', options)
|
480
|
+
command.request_representation = Google::Apis::DeveloperconnectV1::GitRepositoryLink::Representation
|
481
|
+
command.request_object = git_repository_link_object
|
482
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Operation::Representation
|
483
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Operation
|
484
|
+
command.params['parent'] = parent unless parent.nil?
|
485
|
+
command.query['gitRepositoryLinkId'] = git_repository_link_id unless git_repository_link_id.nil?
|
486
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
487
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
488
|
+
command.query['fields'] = fields unless fields.nil?
|
489
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
490
|
+
execute_or_queue_command(command, &block)
|
491
|
+
end
|
492
|
+
|
493
|
+
# Deletes a single GitRepositoryLink.
|
494
|
+
# @param [String] name
|
495
|
+
# Required. Name of the resource
|
496
|
+
# @param [String] etag
|
497
|
+
# Optional. This checksum is computed by the server based on the value of other
|
498
|
+
# fields, and may be sent on update and delete requests to ensure the client has
|
499
|
+
# an up-to-date value before proceeding.
|
500
|
+
# @param [String] request_id
|
501
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
502
|
+
# request ID so that if you must retry your request, the server will know to
|
503
|
+
# ignore the request if it has already been completed. The server will guarantee
|
504
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
505
|
+
# situation where you make an initial request and the request times out. If you
|
506
|
+
# make the request again with the same request ID, the server can check if
|
507
|
+
# original operation with the same request ID was received, and if so, will
|
508
|
+
# ignore the second request. This prevents clients from accidentally creating
|
509
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
510
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
511
|
+
# @param [Boolean] validate_only
|
512
|
+
# Optional. If set, validate the request, but do not actually post it.
|
513
|
+
# @param [String] fields
|
514
|
+
# Selector specifying which fields to include in a partial response.
|
515
|
+
# @param [String] quota_user
|
516
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
517
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
518
|
+
# @param [Google::Apis::RequestOptions] options
|
519
|
+
# Request-specific options
|
520
|
+
#
|
521
|
+
# @yield [result, err] Result & error if block supplied
|
522
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Operation] parsed result object
|
523
|
+
# @yieldparam err [StandardError] error object if request failed
|
524
|
+
#
|
525
|
+
# @return [Google::Apis::DeveloperconnectV1::Operation]
|
526
|
+
#
|
527
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
528
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
529
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
530
|
+
def delete_project_location_connection_git_repository_link(name, etag: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
531
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
532
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Operation::Representation
|
533
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Operation
|
534
|
+
command.params['name'] = name unless name.nil?
|
535
|
+
command.query['etag'] = etag unless etag.nil?
|
536
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
537
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
538
|
+
command.query['fields'] = fields unless fields.nil?
|
539
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
540
|
+
execute_or_queue_command(command, &block)
|
541
|
+
end
|
542
|
+
|
543
|
+
# Fetch the list of branches or tags for a given repository.
|
544
|
+
# @param [String] git_repository_link
|
545
|
+
# Required. The resource name of GitRepositoryLink in the format `projects/*/
|
546
|
+
# locations/*/connections/*/gitRepositoryLinks/*`.
|
547
|
+
# @param [Fixnum] page_size
|
548
|
+
# Optional. Number of results to return in the list. Default to 20.
|
549
|
+
# @param [String] page_token
|
550
|
+
# Optional. Page start.
|
551
|
+
# @param [String] ref_type
|
552
|
+
# Required. Type of refs to fetch.
|
553
|
+
# @param [String] fields
|
554
|
+
# Selector specifying which fields to include in a partial response.
|
555
|
+
# @param [String] quota_user
|
556
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
557
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
558
|
+
# @param [Google::Apis::RequestOptions] options
|
559
|
+
# Request-specific options
|
560
|
+
#
|
561
|
+
# @yield [result, err] Result & error if block supplied
|
562
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::FetchGitRefsResponse] parsed result object
|
563
|
+
# @yieldparam err [StandardError] error object if request failed
|
564
|
+
#
|
565
|
+
# @return [Google::Apis::DeveloperconnectV1::FetchGitRefsResponse]
|
566
|
+
#
|
567
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
568
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
569
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
570
|
+
def fetch_project_location_connection_git_repository_link_git_refs(git_repository_link, page_size: nil, page_token: nil, ref_type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
571
|
+
command = make_simple_command(:get, 'v1/{+gitRepositoryLink}:fetchGitRefs', options)
|
572
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::FetchGitRefsResponse::Representation
|
573
|
+
command.response_class = Google::Apis::DeveloperconnectV1::FetchGitRefsResponse
|
574
|
+
command.params['gitRepositoryLink'] = git_repository_link unless git_repository_link.nil?
|
575
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
576
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
577
|
+
command.query['refType'] = ref_type unless ref_type.nil?
|
578
|
+
command.query['fields'] = fields unless fields.nil?
|
579
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
580
|
+
execute_or_queue_command(command, &block)
|
581
|
+
end
|
582
|
+
|
583
|
+
# Fetches read token of a given gitRepositoryLink.
|
584
|
+
# @param [String] git_repository_link
|
585
|
+
# Required. The resource name of the gitRepositoryLink in the format `projects/*/
|
586
|
+
# locations/*/connections/*/gitRepositoryLinks/*`.
|
587
|
+
# @param [Google::Apis::DeveloperconnectV1::FetchReadTokenRequest] fetch_read_token_request_object
|
588
|
+
# @param [String] fields
|
589
|
+
# Selector specifying which fields to include in a partial response.
|
590
|
+
# @param [String] quota_user
|
591
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
592
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
593
|
+
# @param [Google::Apis::RequestOptions] options
|
594
|
+
# Request-specific options
|
595
|
+
#
|
596
|
+
# @yield [result, err] Result & error if block supplied
|
597
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::FetchReadTokenResponse] parsed result object
|
598
|
+
# @yieldparam err [StandardError] error object if request failed
|
599
|
+
#
|
600
|
+
# @return [Google::Apis::DeveloperconnectV1::FetchReadTokenResponse]
|
601
|
+
#
|
602
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
603
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
604
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
605
|
+
def fetch_git_repository_link_read_token(git_repository_link, fetch_read_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
606
|
+
command = make_simple_command(:post, 'v1/{+gitRepositoryLink}:fetchReadToken', options)
|
607
|
+
command.request_representation = Google::Apis::DeveloperconnectV1::FetchReadTokenRequest::Representation
|
608
|
+
command.request_object = fetch_read_token_request_object
|
609
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::FetchReadTokenResponse::Representation
|
610
|
+
command.response_class = Google::Apis::DeveloperconnectV1::FetchReadTokenResponse
|
611
|
+
command.params['gitRepositoryLink'] = git_repository_link unless git_repository_link.nil?
|
612
|
+
command.query['fields'] = fields unless fields.nil?
|
613
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
614
|
+
execute_or_queue_command(command, &block)
|
615
|
+
end
|
616
|
+
|
617
|
+
# Fetches read/write token of a given gitRepositoryLink.
|
618
|
+
# @param [String] git_repository_link
|
619
|
+
# Required. The resource name of the gitRepositoryLink in the format `projects/*/
|
620
|
+
# locations/*/connections/*/gitRepositoryLinks/*`.
|
621
|
+
# @param [Google::Apis::DeveloperconnectV1::FetchReadWriteTokenRequest] fetch_read_write_token_request_object
|
622
|
+
# @param [String] fields
|
623
|
+
# Selector specifying which fields to include in a partial response.
|
624
|
+
# @param [String] quota_user
|
625
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
626
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
627
|
+
# @param [Google::Apis::RequestOptions] options
|
628
|
+
# Request-specific options
|
629
|
+
#
|
630
|
+
# @yield [result, err] Result & error if block supplied
|
631
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::FetchReadWriteTokenResponse] parsed result object
|
632
|
+
# @yieldparam err [StandardError] error object if request failed
|
633
|
+
#
|
634
|
+
# @return [Google::Apis::DeveloperconnectV1::FetchReadWriteTokenResponse]
|
635
|
+
#
|
636
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
637
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
638
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
639
|
+
def fetch_git_repository_link_read_write_token(git_repository_link, fetch_read_write_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
640
|
+
command = make_simple_command(:post, 'v1/{+gitRepositoryLink}:fetchReadWriteToken', options)
|
641
|
+
command.request_representation = Google::Apis::DeveloperconnectV1::FetchReadWriteTokenRequest::Representation
|
642
|
+
command.request_object = fetch_read_write_token_request_object
|
643
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::FetchReadWriteTokenResponse::Representation
|
644
|
+
command.response_class = Google::Apis::DeveloperconnectV1::FetchReadWriteTokenResponse
|
645
|
+
command.params['gitRepositoryLink'] = git_repository_link unless git_repository_link.nil?
|
646
|
+
command.query['fields'] = fields unless fields.nil?
|
647
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
648
|
+
execute_or_queue_command(command, &block)
|
649
|
+
end
|
650
|
+
|
651
|
+
# Gets details of a single GitRepositoryLink.
|
652
|
+
# @param [String] name
|
653
|
+
# Required. Name of the resource
|
654
|
+
# @param [String] fields
|
655
|
+
# Selector specifying which fields to include in a partial response.
|
656
|
+
# @param [String] quota_user
|
657
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
658
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
659
|
+
# @param [Google::Apis::RequestOptions] options
|
660
|
+
# Request-specific options
|
661
|
+
#
|
662
|
+
# @yield [result, err] Result & error if block supplied
|
663
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::GitRepositoryLink] parsed result object
|
664
|
+
# @yieldparam err [StandardError] error object if request failed
|
665
|
+
#
|
666
|
+
# @return [Google::Apis::DeveloperconnectV1::GitRepositoryLink]
|
667
|
+
#
|
668
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
669
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
670
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
671
|
+
def get_project_location_connection_git_repository_link(name, fields: nil, quota_user: nil, options: nil, &block)
|
672
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
673
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::GitRepositoryLink::Representation
|
674
|
+
command.response_class = Google::Apis::DeveloperconnectV1::GitRepositoryLink
|
675
|
+
command.params['name'] = name unless name.nil?
|
676
|
+
command.query['fields'] = fields unless fields.nil?
|
677
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
678
|
+
execute_or_queue_command(command, &block)
|
679
|
+
end
|
680
|
+
|
681
|
+
# Lists GitRepositoryLinks in a given project, location, and connection.
|
682
|
+
# @param [String] parent
|
683
|
+
# Required. Parent value for ListGitRepositoryLinksRequest
|
684
|
+
# @param [String] filter
|
685
|
+
# Optional. Filtering results
|
686
|
+
# @param [String] order_by
|
687
|
+
# Optional. Hint for how to order the results
|
688
|
+
# @param [Fixnum] page_size
|
689
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
690
|
+
# If unspecified, server will pick an appropriate default.
|
691
|
+
# @param [String] page_token
|
692
|
+
# Optional. A token identifying a page of results the server should return.
|
693
|
+
# @param [String] fields
|
694
|
+
# Selector specifying which fields to include in a partial response.
|
695
|
+
# @param [String] quota_user
|
696
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
697
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
698
|
+
# @param [Google::Apis::RequestOptions] options
|
699
|
+
# Request-specific options
|
700
|
+
#
|
701
|
+
# @yield [result, err] Result & error if block supplied
|
702
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::ListGitRepositoryLinksResponse] parsed result object
|
703
|
+
# @yieldparam err [StandardError] error object if request failed
|
704
|
+
#
|
705
|
+
# @return [Google::Apis::DeveloperconnectV1::ListGitRepositoryLinksResponse]
|
706
|
+
#
|
707
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
708
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
709
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
710
|
+
def list_project_location_connection_git_repository_links(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
711
|
+
command = make_simple_command(:get, 'v1/{+parent}/gitRepositoryLinks', options)
|
712
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::ListGitRepositoryLinksResponse::Representation
|
713
|
+
command.response_class = Google::Apis::DeveloperconnectV1::ListGitRepositoryLinksResponse
|
714
|
+
command.params['parent'] = parent unless parent.nil?
|
715
|
+
command.query['filter'] = filter unless filter.nil?
|
716
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
717
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
718
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
719
|
+
command.query['fields'] = fields unless fields.nil?
|
720
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
721
|
+
execute_or_queue_command(command, &block)
|
722
|
+
end
|
723
|
+
|
724
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
725
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
726
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
727
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
728
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
729
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
730
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
731
|
+
# corresponding to `Code.CANCELLED`.
|
732
|
+
# @param [String] name
|
733
|
+
# The name of the operation resource to be cancelled.
|
734
|
+
# @param [Google::Apis::DeveloperconnectV1::CancelOperationRequest] cancel_operation_request_object
|
735
|
+
# @param [String] fields
|
736
|
+
# Selector specifying which fields to include in a partial response.
|
737
|
+
# @param [String] quota_user
|
738
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
739
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
740
|
+
# @param [Google::Apis::RequestOptions] options
|
741
|
+
# Request-specific options
|
742
|
+
#
|
743
|
+
# @yield [result, err] Result & error if block supplied
|
744
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Empty] parsed result object
|
745
|
+
# @yieldparam err [StandardError] error object if request failed
|
746
|
+
#
|
747
|
+
# @return [Google::Apis::DeveloperconnectV1::Empty]
|
748
|
+
#
|
749
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
750
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
751
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
752
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
753
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
754
|
+
command.request_representation = Google::Apis::DeveloperconnectV1::CancelOperationRequest::Representation
|
755
|
+
command.request_object = cancel_operation_request_object
|
756
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Empty::Representation
|
757
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Empty
|
758
|
+
command.params['name'] = name unless name.nil?
|
759
|
+
command.query['fields'] = fields unless fields.nil?
|
760
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
761
|
+
execute_or_queue_command(command, &block)
|
762
|
+
end
|
763
|
+
|
764
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
765
|
+
# longer interested in the operation result. It does not cancel the operation.
|
766
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
767
|
+
# UNIMPLEMENTED`.
|
768
|
+
# @param [String] name
|
769
|
+
# The name of the operation resource to be deleted.
|
770
|
+
# @param [String] fields
|
771
|
+
# Selector specifying which fields to include in a partial response.
|
772
|
+
# @param [String] quota_user
|
773
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
774
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
775
|
+
# @param [Google::Apis::RequestOptions] options
|
776
|
+
# Request-specific options
|
777
|
+
#
|
778
|
+
# @yield [result, err] Result & error if block supplied
|
779
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Empty] parsed result object
|
780
|
+
# @yieldparam err [StandardError] error object if request failed
|
781
|
+
#
|
782
|
+
# @return [Google::Apis::DeveloperconnectV1::Empty]
|
783
|
+
#
|
784
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
785
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
786
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
787
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
788
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
789
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Empty::Representation
|
790
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Empty
|
791
|
+
command.params['name'] = name unless name.nil?
|
792
|
+
command.query['fields'] = fields unless fields.nil?
|
793
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
794
|
+
execute_or_queue_command(command, &block)
|
795
|
+
end
|
796
|
+
|
797
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
798
|
+
# to poll the operation result at intervals as recommended by the API service.
|
799
|
+
# @param [String] name
|
800
|
+
# The name of the operation resource.
|
801
|
+
# @param [String] fields
|
802
|
+
# Selector specifying which fields to include in a partial response.
|
803
|
+
# @param [String] quota_user
|
804
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
805
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
806
|
+
# @param [Google::Apis::RequestOptions] options
|
807
|
+
# Request-specific options
|
808
|
+
#
|
809
|
+
# @yield [result, err] Result & error if block supplied
|
810
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Operation] parsed result object
|
811
|
+
# @yieldparam err [StandardError] error object if request failed
|
812
|
+
#
|
813
|
+
# @return [Google::Apis::DeveloperconnectV1::Operation]
|
814
|
+
#
|
815
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
816
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
817
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
818
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
819
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
820
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Operation::Representation
|
821
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Operation
|
822
|
+
command.params['name'] = name unless name.nil?
|
823
|
+
command.query['fields'] = fields unless fields.nil?
|
824
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
825
|
+
execute_or_queue_command(command, &block)
|
826
|
+
end
|
827
|
+
|
828
|
+
# Lists operations that match the specified filter in the request. If the server
|
829
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
830
|
+
# @param [String] name
|
831
|
+
# The name of the operation's parent resource.
|
832
|
+
# @param [String] filter
|
833
|
+
# The standard list filter.
|
834
|
+
# @param [Fixnum] page_size
|
835
|
+
# The standard list page size.
|
836
|
+
# @param [String] page_token
|
837
|
+
# The standard list page token.
|
838
|
+
# @param [String] fields
|
839
|
+
# Selector specifying which fields to include in a partial response.
|
840
|
+
# @param [String] quota_user
|
841
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
842
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
843
|
+
# @param [Google::Apis::RequestOptions] options
|
844
|
+
# Request-specific options
|
845
|
+
#
|
846
|
+
# @yield [result, err] Result & error if block supplied
|
847
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::ListOperationsResponse] parsed result object
|
848
|
+
# @yieldparam err [StandardError] error object if request failed
|
849
|
+
#
|
850
|
+
# @return [Google::Apis::DeveloperconnectV1::ListOperationsResponse]
|
851
|
+
#
|
852
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
853
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
854
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
855
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
856
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
857
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::ListOperationsResponse::Representation
|
858
|
+
command.response_class = Google::Apis::DeveloperconnectV1::ListOperationsResponse
|
859
|
+
command.params['name'] = name unless name.nil?
|
860
|
+
command.query['filter'] = filter unless filter.nil?
|
861
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
862
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
863
|
+
command.query['fields'] = fields unless fields.nil?
|
864
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
865
|
+
execute_or_queue_command(command, &block)
|
866
|
+
end
|
867
|
+
|
868
|
+
protected
|
869
|
+
|
870
|
+
def apply_command_defaults(command)
|
871
|
+
command.query['key'] = key unless key.nil?
|
872
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
873
|
+
end
|
874
|
+
end
|
875
|
+
end
|
876
|
+
end
|
877
|
+
end
|