google-apis-apphub_v1alpha 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +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/apphub_v1alpha/classes.rb +1651 -0
- data/lib/google/apis/apphub_v1alpha/gem_version.rb +28 -0
- data/lib/google/apis/apphub_v1alpha/representations.rb +709 -0
- data/lib/google/apis/apphub_v1alpha/service.rb +1517 -0
- data/lib/google/apis/apphub_v1alpha.rb +36 -0
- data/lib/google-apis-apphub_v1alpha.rb +15 -0
- metadata +82 -0
@@ -0,0 +1,1517 @@
|
|
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 ApphubV1alpha
|
23
|
+
# App Hub API
|
24
|
+
#
|
25
|
+
#
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/apphub_v1alpha'
|
29
|
+
#
|
30
|
+
# Apphub = Google::Apis::ApphubV1alpha # Alias the module
|
31
|
+
# service = Apphub::AppHubService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/app-hub/docs/
|
34
|
+
class AppHubService < Google::Apis::Core::BaseService
|
35
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://apphub.$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-apphub_v1alpha',
|
50
|
+
client_version: Google::Apis::ApphubV1alpha::GEM_VERSION)
|
51
|
+
@batch_path = 'batch'
|
52
|
+
end
|
53
|
+
|
54
|
+
# Detaches a service project from a host project. You can call this API from
|
55
|
+
# either a host or service project.
|
56
|
+
# @param [String] name
|
57
|
+
# Required. Value for name.
|
58
|
+
# @param [Google::Apis::ApphubV1alpha::DetachServiceProjectAttachmentRequest] detach_service_project_attachment_request_object
|
59
|
+
# @param [String] fields
|
60
|
+
# Selector specifying which fields to include in a partial response.
|
61
|
+
# @param [String] quota_user
|
62
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
63
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
64
|
+
# @param [Google::Apis::RequestOptions] options
|
65
|
+
# Request-specific options
|
66
|
+
#
|
67
|
+
# @yield [result, err] Result & error if block supplied
|
68
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::DetachServiceProjectAttachmentResponse] parsed result object
|
69
|
+
# @yieldparam err [StandardError] error object if request failed
|
70
|
+
#
|
71
|
+
# @return [Google::Apis::ApphubV1alpha::DetachServiceProjectAttachmentResponse]
|
72
|
+
#
|
73
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
74
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
75
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
76
|
+
def detach_location_service_project_attachment(name, detach_service_project_attachment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
77
|
+
command = make_simple_command(:post, 'v1alpha/{+name}:detachServiceProjectAttachment', options)
|
78
|
+
command.request_representation = Google::Apis::ApphubV1alpha::DetachServiceProjectAttachmentRequest::Representation
|
79
|
+
command.request_object = detach_service_project_attachment_request_object
|
80
|
+
command.response_representation = Google::Apis::ApphubV1alpha::DetachServiceProjectAttachmentResponse::Representation
|
81
|
+
command.response_class = Google::Apis::ApphubV1alpha::DetachServiceProjectAttachmentResponse
|
82
|
+
command.params['name'] = name unless name.nil?
|
83
|
+
command.query['fields'] = fields unless fields.nil?
|
84
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
85
|
+
execute_or_queue_command(command, &block)
|
86
|
+
end
|
87
|
+
|
88
|
+
# Gets information about a location.
|
89
|
+
# @param [String] name
|
90
|
+
# Resource name for the location.
|
91
|
+
# @param [String] fields
|
92
|
+
# Selector specifying which fields to include in a partial response.
|
93
|
+
# @param [String] quota_user
|
94
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
95
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
96
|
+
# @param [Google::Apis::RequestOptions] options
|
97
|
+
# Request-specific options
|
98
|
+
#
|
99
|
+
# @yield [result, err] Result & error if block supplied
|
100
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Location] parsed result object
|
101
|
+
# @yieldparam err [StandardError] error object if request failed
|
102
|
+
#
|
103
|
+
# @return [Google::Apis::ApphubV1alpha::Location]
|
104
|
+
#
|
105
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
106
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
107
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
108
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
109
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
110
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Location::Representation
|
111
|
+
command.response_class = Google::Apis::ApphubV1alpha::Location
|
112
|
+
command.params['name'] = name unless name.nil?
|
113
|
+
command.query['fields'] = fields unless fields.nil?
|
114
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
115
|
+
execute_or_queue_command(command, &block)
|
116
|
+
end
|
117
|
+
|
118
|
+
# Lists information about the supported locations for this service.
|
119
|
+
# @param [String] name
|
120
|
+
# The resource that owns the locations collection, if applicable.
|
121
|
+
# @param [String] filter
|
122
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
123
|
+
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
124
|
+
# in [AIP-160](https://google.aip.dev/160).
|
125
|
+
# @param [Fixnum] page_size
|
126
|
+
# The maximum number of results to return. If not set, the service selects a
|
127
|
+
# default.
|
128
|
+
# @param [String] page_token
|
129
|
+
# A page token received from the `next_page_token` field in the response. Send
|
130
|
+
# that page token to receive the subsequent page.
|
131
|
+
# @param [String] fields
|
132
|
+
# Selector specifying which fields to include in a partial response.
|
133
|
+
# @param [String] quota_user
|
134
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
135
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
136
|
+
# @param [Google::Apis::RequestOptions] options
|
137
|
+
# Request-specific options
|
138
|
+
#
|
139
|
+
# @yield [result, err] Result & error if block supplied
|
140
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::ListLocationsResponse] parsed result object
|
141
|
+
# @yieldparam err [StandardError] error object if request failed
|
142
|
+
#
|
143
|
+
# @return [Google::Apis::ApphubV1alpha::ListLocationsResponse]
|
144
|
+
#
|
145
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
146
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
147
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
148
|
+
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
149
|
+
command = make_simple_command(:get, 'v1alpha/{+name}/locations', options)
|
150
|
+
command.response_representation = Google::Apis::ApphubV1alpha::ListLocationsResponse::Representation
|
151
|
+
command.response_class = Google::Apis::ApphubV1alpha::ListLocationsResponse
|
152
|
+
command.params['name'] = name unless name.nil?
|
153
|
+
command.query['filter'] = filter unless filter.nil?
|
154
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
155
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
156
|
+
command.query['fields'] = fields unless fields.nil?
|
157
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
158
|
+
execute_or_queue_command(command, &block)
|
159
|
+
end
|
160
|
+
|
161
|
+
# Looks up a service project attachment. You can call this API from either a
|
162
|
+
# host or service project.
|
163
|
+
# @param [String] name
|
164
|
+
# Required. Value for name.
|
165
|
+
# @param [String] fields
|
166
|
+
# Selector specifying which fields to include in a partial response.
|
167
|
+
# @param [String] quota_user
|
168
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
169
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
170
|
+
# @param [Google::Apis::RequestOptions] options
|
171
|
+
# Request-specific options
|
172
|
+
#
|
173
|
+
# @yield [result, err] Result & error if block supplied
|
174
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::LookupServiceProjectAttachmentResponse] parsed result object
|
175
|
+
# @yieldparam err [StandardError] error object if request failed
|
176
|
+
#
|
177
|
+
# @return [Google::Apis::ApphubV1alpha::LookupServiceProjectAttachmentResponse]
|
178
|
+
#
|
179
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
180
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
181
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
182
|
+
def lookup_project_location_service_project_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
|
183
|
+
command = make_simple_command(:get, 'v1alpha/{+name}:lookupServiceProjectAttachment', options)
|
184
|
+
command.response_representation = Google::Apis::ApphubV1alpha::LookupServiceProjectAttachmentResponse::Representation
|
185
|
+
command.response_class = Google::Apis::ApphubV1alpha::LookupServiceProjectAttachmentResponse
|
186
|
+
command.params['name'] = name unless name.nil?
|
187
|
+
command.query['fields'] = fields unless fields.nil?
|
188
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
189
|
+
execute_or_queue_command(command, &block)
|
190
|
+
end
|
191
|
+
|
192
|
+
# Creates an Application in a host project and location.
|
193
|
+
# @param [String] parent
|
194
|
+
# Required. Value for parent.
|
195
|
+
# @param [Google::Apis::ApphubV1alpha::Application] application_object
|
196
|
+
# @param [String] application_id
|
197
|
+
# Required. The Application identifier.
|
198
|
+
# @param [String] request_id
|
199
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
200
|
+
# request ID so that if you must retry your request, the server will know to
|
201
|
+
# ignore the request if it has already been completed. The server will guarantee
|
202
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
203
|
+
# situation where you make an initial request and the request times out. If you
|
204
|
+
# make the request again with the same request ID, the server can check if
|
205
|
+
# original operation with the same request ID was received, and if so, will
|
206
|
+
# ignore the second request. This prevents clients from accidentally creating
|
207
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
208
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
209
|
+
# @param [String] fields
|
210
|
+
# Selector specifying which fields to include in a partial response.
|
211
|
+
# @param [String] quota_user
|
212
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
213
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
214
|
+
# @param [Google::Apis::RequestOptions] options
|
215
|
+
# Request-specific options
|
216
|
+
#
|
217
|
+
# @yield [result, err] Result & error if block supplied
|
218
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Operation] parsed result object
|
219
|
+
# @yieldparam err [StandardError] error object if request failed
|
220
|
+
#
|
221
|
+
# @return [Google::Apis::ApphubV1alpha::Operation]
|
222
|
+
#
|
223
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
224
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
225
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
226
|
+
def create_project_location_application(parent, application_object = nil, application_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
227
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/applications', options)
|
228
|
+
command.request_representation = Google::Apis::ApphubV1alpha::Application::Representation
|
229
|
+
command.request_object = application_object
|
230
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Operation::Representation
|
231
|
+
command.response_class = Google::Apis::ApphubV1alpha::Operation
|
232
|
+
command.params['parent'] = parent unless parent.nil?
|
233
|
+
command.query['applicationId'] = application_id unless application_id.nil?
|
234
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
235
|
+
command.query['fields'] = fields unless fields.nil?
|
236
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
237
|
+
execute_or_queue_command(command, &block)
|
238
|
+
end
|
239
|
+
|
240
|
+
# Deletes an Application in a host project and location.
|
241
|
+
# @param [String] name
|
242
|
+
# Required. Value for name.
|
243
|
+
# @param [String] request_id
|
244
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
245
|
+
# request ID so that if you must retry your request, the server will know to
|
246
|
+
# ignore the request if it has already been completed. The server will guarantee
|
247
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
248
|
+
# situation where you make an initial request and the request times out. If you
|
249
|
+
# make the request again with the same request ID, the server can check if
|
250
|
+
# original operation with the same request ID was received, and if so, will
|
251
|
+
# ignore the second request. This prevents clients from accidentally creating
|
252
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
253
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
254
|
+
# @param [String] fields
|
255
|
+
# Selector specifying which fields to include in a partial response.
|
256
|
+
# @param [String] quota_user
|
257
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
258
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
259
|
+
# @param [Google::Apis::RequestOptions] options
|
260
|
+
# Request-specific options
|
261
|
+
#
|
262
|
+
# @yield [result, err] Result & error if block supplied
|
263
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Operation] parsed result object
|
264
|
+
# @yieldparam err [StandardError] error object if request failed
|
265
|
+
#
|
266
|
+
# @return [Google::Apis::ApphubV1alpha::Operation]
|
267
|
+
#
|
268
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
269
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
270
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
271
|
+
def delete_project_location_application(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
272
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
273
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Operation::Representation
|
274
|
+
command.response_class = Google::Apis::ApphubV1alpha::Operation
|
275
|
+
command.params['name'] = name unless name.nil?
|
276
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
277
|
+
command.query['fields'] = fields unless fields.nil?
|
278
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
279
|
+
execute_or_queue_command(command, &block)
|
280
|
+
end
|
281
|
+
|
282
|
+
# Gets an Application in a host project and location.
|
283
|
+
# @param [String] name
|
284
|
+
# Required. Value for name.
|
285
|
+
# @param [String] fields
|
286
|
+
# Selector specifying which fields to include in a partial response.
|
287
|
+
# @param [String] quota_user
|
288
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
289
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
290
|
+
# @param [Google::Apis::RequestOptions] options
|
291
|
+
# Request-specific options
|
292
|
+
#
|
293
|
+
# @yield [result, err] Result & error if block supplied
|
294
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Application] parsed result object
|
295
|
+
# @yieldparam err [StandardError] error object if request failed
|
296
|
+
#
|
297
|
+
# @return [Google::Apis::ApphubV1alpha::Application]
|
298
|
+
#
|
299
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
300
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
301
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
302
|
+
def get_project_location_application(name, fields: nil, quota_user: nil, options: nil, &block)
|
303
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
304
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Application::Representation
|
305
|
+
command.response_class = Google::Apis::ApphubV1alpha::Application
|
306
|
+
command.params['name'] = name unless name.nil?
|
307
|
+
command.query['fields'] = fields unless fields.nil?
|
308
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
309
|
+
execute_or_queue_command(command, &block)
|
310
|
+
end
|
311
|
+
|
312
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
313
|
+
# resource exists and does not have a policy set.
|
314
|
+
# @param [String] resource
|
315
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
316
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
317
|
+
# appropriate value for this field.
|
318
|
+
# @param [Fixnum] options_requested_policy_version
|
319
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
320
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
321
|
+
# rejected. Requests for policies with any conditional role bindings must
|
322
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
323
|
+
# valid value or leave the field unset. The policy in the response might use the
|
324
|
+
# policy version that you specified, or it might use a lower policy version. For
|
325
|
+
# example, if you specify version 3, but the policy has no conditional role
|
326
|
+
# bindings, the response uses version 1. To learn which resources support
|
327
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
328
|
+
# google.com/iam/help/conditions/resource-policies).
|
329
|
+
# @param [String] fields
|
330
|
+
# Selector specifying which fields to include in a partial response.
|
331
|
+
# @param [String] quota_user
|
332
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
333
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
334
|
+
# @param [Google::Apis::RequestOptions] options
|
335
|
+
# Request-specific options
|
336
|
+
#
|
337
|
+
# @yield [result, err] Result & error if block supplied
|
338
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Policy] parsed result object
|
339
|
+
# @yieldparam err [StandardError] error object if request failed
|
340
|
+
#
|
341
|
+
# @return [Google::Apis::ApphubV1alpha::Policy]
|
342
|
+
#
|
343
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
344
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
345
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
346
|
+
def get_project_location_application_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
347
|
+
command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
|
348
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Policy::Representation
|
349
|
+
command.response_class = Google::Apis::ApphubV1alpha::Policy
|
350
|
+
command.params['resource'] = resource unless resource.nil?
|
351
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
352
|
+
command.query['fields'] = fields unless fields.nil?
|
353
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
354
|
+
execute_or_queue_command(command, &block)
|
355
|
+
end
|
356
|
+
|
357
|
+
# Lists Applications in a host project and location.
|
358
|
+
# @param [String] parent
|
359
|
+
# Required. Value for parent.
|
360
|
+
# @param [String] filter
|
361
|
+
# Optional. Filtering results
|
362
|
+
# @param [String] order_by
|
363
|
+
# Optional. Hint for how to order the results
|
364
|
+
# @param [Fixnum] page_size
|
365
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
366
|
+
# If unspecified, server will pick an appropriate default.
|
367
|
+
# @param [String] page_token
|
368
|
+
# Optional. A token identifying a page of results the server should return.
|
369
|
+
# @param [String] fields
|
370
|
+
# Selector specifying which fields to include in a partial response.
|
371
|
+
# @param [String] quota_user
|
372
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
373
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
374
|
+
# @param [Google::Apis::RequestOptions] options
|
375
|
+
# Request-specific options
|
376
|
+
#
|
377
|
+
# @yield [result, err] Result & error if block supplied
|
378
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::ListApplicationsResponse] parsed result object
|
379
|
+
# @yieldparam err [StandardError] error object if request failed
|
380
|
+
#
|
381
|
+
# @return [Google::Apis::ApphubV1alpha::ListApplicationsResponse]
|
382
|
+
#
|
383
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
384
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
385
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
386
|
+
def list_project_location_applications(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
387
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/applications', options)
|
388
|
+
command.response_representation = Google::Apis::ApphubV1alpha::ListApplicationsResponse::Representation
|
389
|
+
command.response_class = Google::Apis::ApphubV1alpha::ListApplicationsResponse
|
390
|
+
command.params['parent'] = parent unless parent.nil?
|
391
|
+
command.query['filter'] = filter unless filter.nil?
|
392
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
393
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
394
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
395
|
+
command.query['fields'] = fields unless fields.nil?
|
396
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
397
|
+
execute_or_queue_command(command, &block)
|
398
|
+
end
|
399
|
+
|
400
|
+
# Updates an Application in a host project and location.
|
401
|
+
# @param [String] name
|
402
|
+
# Identifier. The resource name of an Application. Format: "projects/`host-
|
403
|
+
# project-id`/locations/`location`/applications/`application-id`"
|
404
|
+
# @param [Google::Apis::ApphubV1alpha::Application] application_object
|
405
|
+
# @param [String] request_id
|
406
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
407
|
+
# request ID so that if you must retry your request, the server will know to
|
408
|
+
# ignore the request if it has already been completed. The server will guarantee
|
409
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
410
|
+
# situation where you make an initial request and the request times out. If you
|
411
|
+
# make the request again with the same request ID, the server can check if
|
412
|
+
# original operation with the same request ID was received, and if so, will
|
413
|
+
# ignore the second request. This prevents clients from accidentally creating
|
414
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
415
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
416
|
+
# @param [String] update_mask
|
417
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
418
|
+
# Application resource by the update. The fields specified in the update_mask
|
419
|
+
# are relative to the resource, not the full request. The API changes the values
|
420
|
+
# of the fields as specified in the update_mask. The API ignores the values of
|
421
|
+
# all fields not covered by the update_mask. You can also unset a field by not
|
422
|
+
# specifying it in the updated message, but adding the field to the mask. This
|
423
|
+
# clears whatever value the field previously had.
|
424
|
+
# @param [String] fields
|
425
|
+
# Selector specifying which fields to include in a partial response.
|
426
|
+
# @param [String] quota_user
|
427
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
428
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
429
|
+
# @param [Google::Apis::RequestOptions] options
|
430
|
+
# Request-specific options
|
431
|
+
#
|
432
|
+
# @yield [result, err] Result & error if block supplied
|
433
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Operation] parsed result object
|
434
|
+
# @yieldparam err [StandardError] error object if request failed
|
435
|
+
#
|
436
|
+
# @return [Google::Apis::ApphubV1alpha::Operation]
|
437
|
+
#
|
438
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
439
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
440
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
441
|
+
def patch_project_location_application(name, application_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
442
|
+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
|
443
|
+
command.request_representation = Google::Apis::ApphubV1alpha::Application::Representation
|
444
|
+
command.request_object = application_object
|
445
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Operation::Representation
|
446
|
+
command.response_class = Google::Apis::ApphubV1alpha::Operation
|
447
|
+
command.params['name'] = name unless name.nil?
|
448
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
449
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
450
|
+
command.query['fields'] = fields unless fields.nil?
|
451
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
452
|
+
execute_or_queue_command(command, &block)
|
453
|
+
end
|
454
|
+
|
455
|
+
# Sets the access control policy on the specified resource. Replaces any
|
456
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
457
|
+
# PERMISSION_DENIED` errors.
|
458
|
+
# @param [String] resource
|
459
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
460
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
461
|
+
# appropriate value for this field.
|
462
|
+
# @param [Google::Apis::ApphubV1alpha::SetIamPolicyRequest] set_iam_policy_request_object
|
463
|
+
# @param [String] fields
|
464
|
+
# Selector specifying which fields to include in a partial response.
|
465
|
+
# @param [String] quota_user
|
466
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
467
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
468
|
+
# @param [Google::Apis::RequestOptions] options
|
469
|
+
# Request-specific options
|
470
|
+
#
|
471
|
+
# @yield [result, err] Result & error if block supplied
|
472
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Policy] parsed result object
|
473
|
+
# @yieldparam err [StandardError] error object if request failed
|
474
|
+
#
|
475
|
+
# @return [Google::Apis::ApphubV1alpha::Policy]
|
476
|
+
#
|
477
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
478
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
479
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
480
|
+
def set_application_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
481
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
|
482
|
+
command.request_representation = Google::Apis::ApphubV1alpha::SetIamPolicyRequest::Representation
|
483
|
+
command.request_object = set_iam_policy_request_object
|
484
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Policy::Representation
|
485
|
+
command.response_class = Google::Apis::ApphubV1alpha::Policy
|
486
|
+
command.params['resource'] = resource unless resource.nil?
|
487
|
+
command.query['fields'] = fields unless fields.nil?
|
488
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
489
|
+
execute_or_queue_command(command, &block)
|
490
|
+
end
|
491
|
+
|
492
|
+
# Returns permissions that a caller has on the specified resource. If the
|
493
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
494
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
495
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
496
|
+
# This operation may "fail open" without warning.
|
497
|
+
# @param [String] resource
|
498
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
499
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
500
|
+
# appropriate value for this field.
|
501
|
+
# @param [Google::Apis::ApphubV1alpha::TestIamPermissionsRequest] test_iam_permissions_request_object
|
502
|
+
# @param [String] fields
|
503
|
+
# Selector specifying which fields to include in a partial response.
|
504
|
+
# @param [String] quota_user
|
505
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
506
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
507
|
+
# @param [Google::Apis::RequestOptions] options
|
508
|
+
# Request-specific options
|
509
|
+
#
|
510
|
+
# @yield [result, err] Result & error if block supplied
|
511
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::TestIamPermissionsResponse] parsed result object
|
512
|
+
# @yieldparam err [StandardError] error object if request failed
|
513
|
+
#
|
514
|
+
# @return [Google::Apis::ApphubV1alpha::TestIamPermissionsResponse]
|
515
|
+
#
|
516
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
517
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
518
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
519
|
+
def test_application_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
520
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
|
521
|
+
command.request_representation = Google::Apis::ApphubV1alpha::TestIamPermissionsRequest::Representation
|
522
|
+
command.request_object = test_iam_permissions_request_object
|
523
|
+
command.response_representation = Google::Apis::ApphubV1alpha::TestIamPermissionsResponse::Representation
|
524
|
+
command.response_class = Google::Apis::ApphubV1alpha::TestIamPermissionsResponse
|
525
|
+
command.params['resource'] = resource unless resource.nil?
|
526
|
+
command.query['fields'] = fields unless fields.nil?
|
527
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
528
|
+
execute_or_queue_command(command, &block)
|
529
|
+
end
|
530
|
+
|
531
|
+
# Creates a Service in an Application.
|
532
|
+
# @param [String] parent
|
533
|
+
# Required. Value for parent.
|
534
|
+
# @param [Google::Apis::ApphubV1alpha::Service] service_object
|
535
|
+
# @param [String] request_id
|
536
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
537
|
+
# request ID so that if you must retry your request, the server will know to
|
538
|
+
# ignore the request if it has already been completed. The server will guarantee
|
539
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
540
|
+
# situation where you make an initial request and the request times out. If you
|
541
|
+
# make the request again with the same request ID, the server can check if
|
542
|
+
# original operation with the same request ID was received, and if so, will
|
543
|
+
# ignore the second request. This prevents clients from accidentally creating
|
544
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
545
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
546
|
+
# @param [String] service_id
|
547
|
+
# Required. The Service identifier.
|
548
|
+
# @param [String] fields
|
549
|
+
# Selector specifying which fields to include in a partial response.
|
550
|
+
# @param [String] quota_user
|
551
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
552
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
553
|
+
# @param [Google::Apis::RequestOptions] options
|
554
|
+
# Request-specific options
|
555
|
+
#
|
556
|
+
# @yield [result, err] Result & error if block supplied
|
557
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Operation] parsed result object
|
558
|
+
# @yieldparam err [StandardError] error object if request failed
|
559
|
+
#
|
560
|
+
# @return [Google::Apis::ApphubV1alpha::Operation]
|
561
|
+
#
|
562
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
563
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
564
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
565
|
+
def create_project_location_application_service(parent, service_object = nil, request_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
566
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/services', options)
|
567
|
+
command.request_representation = Google::Apis::ApphubV1alpha::Service::Representation
|
568
|
+
command.request_object = service_object
|
569
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Operation::Representation
|
570
|
+
command.response_class = Google::Apis::ApphubV1alpha::Operation
|
571
|
+
command.params['parent'] = parent unless parent.nil?
|
572
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
573
|
+
command.query['serviceId'] = service_id unless service_id.nil?
|
574
|
+
command.query['fields'] = fields unless fields.nil?
|
575
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
576
|
+
execute_or_queue_command(command, &block)
|
577
|
+
end
|
578
|
+
|
579
|
+
# Deletes a Service in an Application.
|
580
|
+
# @param [String] name
|
581
|
+
# Required. Value for name.
|
582
|
+
# @param [String] request_id
|
583
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
584
|
+
# request ID so that if you must retry your request, the server will know to
|
585
|
+
# ignore the request if it has already been completed. The server will guarantee
|
586
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
587
|
+
# situation where you make an initial request and the request times out. If you
|
588
|
+
# make the request again with the same request ID, the server can check if
|
589
|
+
# original operation with the same request ID was received, and if so, will
|
590
|
+
# ignore the second request. This prevents clients from accidentally creating
|
591
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
592
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
593
|
+
# @param [String] fields
|
594
|
+
# Selector specifying which fields to include in a partial response.
|
595
|
+
# @param [String] quota_user
|
596
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
597
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
598
|
+
# @param [Google::Apis::RequestOptions] options
|
599
|
+
# Request-specific options
|
600
|
+
#
|
601
|
+
# @yield [result, err] Result & error if block supplied
|
602
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Operation] parsed result object
|
603
|
+
# @yieldparam err [StandardError] error object if request failed
|
604
|
+
#
|
605
|
+
# @return [Google::Apis::ApphubV1alpha::Operation]
|
606
|
+
#
|
607
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
608
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
609
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
610
|
+
def delete_project_location_application_service(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
611
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
612
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Operation::Representation
|
613
|
+
command.response_class = Google::Apis::ApphubV1alpha::Operation
|
614
|
+
command.params['name'] = name unless name.nil?
|
615
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
616
|
+
command.query['fields'] = fields unless fields.nil?
|
617
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
618
|
+
execute_or_queue_command(command, &block)
|
619
|
+
end
|
620
|
+
|
621
|
+
# Gets a Service in an Application.
|
622
|
+
# @param [String] name
|
623
|
+
# Required. Value for name.
|
624
|
+
# @param [String] fields
|
625
|
+
# Selector specifying which fields to include in a partial response.
|
626
|
+
# @param [String] quota_user
|
627
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
628
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
629
|
+
# @param [Google::Apis::RequestOptions] options
|
630
|
+
# Request-specific options
|
631
|
+
#
|
632
|
+
# @yield [result, err] Result & error if block supplied
|
633
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Service] parsed result object
|
634
|
+
# @yieldparam err [StandardError] error object if request failed
|
635
|
+
#
|
636
|
+
# @return [Google::Apis::ApphubV1alpha::Service]
|
637
|
+
#
|
638
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
639
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
640
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
641
|
+
def get_project_location_application_service(name, fields: nil, quota_user: nil, options: nil, &block)
|
642
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
643
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Service::Representation
|
644
|
+
command.response_class = Google::Apis::ApphubV1alpha::Service
|
645
|
+
command.params['name'] = name unless name.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
|
+
# List Services in an Application.
|
652
|
+
# @param [String] parent
|
653
|
+
# Required. Value for parent.
|
654
|
+
# @param [String] filter
|
655
|
+
# Optional. Filtering results
|
656
|
+
# @param [String] order_by
|
657
|
+
# Optional. Hint for how to order the results
|
658
|
+
# @param [Fixnum] page_size
|
659
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
660
|
+
# If unspecified, server will pick an appropriate default.
|
661
|
+
# @param [String] page_token
|
662
|
+
# Optional. A token identifying a page of results the server should return.
|
663
|
+
# @param [String] fields
|
664
|
+
# Selector specifying which fields to include in a partial response.
|
665
|
+
# @param [String] quota_user
|
666
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
667
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
668
|
+
# @param [Google::Apis::RequestOptions] options
|
669
|
+
# Request-specific options
|
670
|
+
#
|
671
|
+
# @yield [result, err] Result & error if block supplied
|
672
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::ListServicesResponse] parsed result object
|
673
|
+
# @yieldparam err [StandardError] error object if request failed
|
674
|
+
#
|
675
|
+
# @return [Google::Apis::ApphubV1alpha::ListServicesResponse]
|
676
|
+
#
|
677
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
678
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
679
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
680
|
+
def list_project_location_application_services(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
681
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/services', options)
|
682
|
+
command.response_representation = Google::Apis::ApphubV1alpha::ListServicesResponse::Representation
|
683
|
+
command.response_class = Google::Apis::ApphubV1alpha::ListServicesResponse
|
684
|
+
command.params['parent'] = parent unless parent.nil?
|
685
|
+
command.query['filter'] = filter unless filter.nil?
|
686
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
687
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
688
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
689
|
+
command.query['fields'] = fields unless fields.nil?
|
690
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
691
|
+
execute_or_queue_command(command, &block)
|
692
|
+
end
|
693
|
+
|
694
|
+
# Updates a Service in an Application.
|
695
|
+
# @param [String] name
|
696
|
+
# Identifier. The resource name of a Service. Format: "projects/`host-project-id`
|
697
|
+
# /locations/`location`/applications/`application-id`/services/`service-id`"
|
698
|
+
# @param [Google::Apis::ApphubV1alpha::Service] service_object
|
699
|
+
# @param [String] request_id
|
700
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
701
|
+
# request ID so that if you must retry your request, the server will know to
|
702
|
+
# ignore the request if it has already been completed. The server will guarantee
|
703
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
704
|
+
# situation where you make an initial request and the request times out. If you
|
705
|
+
# make the request again with the same request ID, the server can check if
|
706
|
+
# original operation with the same request ID was received, and if so, will
|
707
|
+
# ignore the second request. This prevents clients from accidentally creating
|
708
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
709
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
710
|
+
# @param [String] update_mask
|
711
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
712
|
+
# Service resource by the update. The fields specified in the update_mask are
|
713
|
+
# relative to the resource, not the full request. The API changes the values of
|
714
|
+
# the fields as specified in the update_mask. The API ignores the values of all
|
715
|
+
# fields not covered by the update_mask. You can also unset a field by not
|
716
|
+
# specifying it in the updated message, but adding the field to the mask. This
|
717
|
+
# clears whatever value the field previously had.
|
718
|
+
# @param [String] fields
|
719
|
+
# Selector specifying which fields to include in a partial response.
|
720
|
+
# @param [String] quota_user
|
721
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
722
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
723
|
+
# @param [Google::Apis::RequestOptions] options
|
724
|
+
# Request-specific options
|
725
|
+
#
|
726
|
+
# @yield [result, err] Result & error if block supplied
|
727
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Operation] parsed result object
|
728
|
+
# @yieldparam err [StandardError] error object if request failed
|
729
|
+
#
|
730
|
+
# @return [Google::Apis::ApphubV1alpha::Operation]
|
731
|
+
#
|
732
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
733
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
734
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
735
|
+
def patch_project_location_application_service(name, service_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
736
|
+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
|
737
|
+
command.request_representation = Google::Apis::ApphubV1alpha::Service::Representation
|
738
|
+
command.request_object = service_object
|
739
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Operation::Representation
|
740
|
+
command.response_class = Google::Apis::ApphubV1alpha::Operation
|
741
|
+
command.params['name'] = name unless name.nil?
|
742
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
743
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
744
|
+
command.query['fields'] = fields unless fields.nil?
|
745
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
746
|
+
execute_or_queue_command(command, &block)
|
747
|
+
end
|
748
|
+
|
749
|
+
# Creates a Workload in an Application.
|
750
|
+
# @param [String] parent
|
751
|
+
# Required. Value for parent.
|
752
|
+
# @param [Google::Apis::ApphubV1alpha::Workload] workload_object
|
753
|
+
# @param [String] request_id
|
754
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
755
|
+
# request ID so that if you must retry your request, the server will know to
|
756
|
+
# ignore the request if it has already been completed. The server will guarantee
|
757
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
758
|
+
# situation where you make an initial request and the request times out. If you
|
759
|
+
# make the request again with the same request ID, the server can check if
|
760
|
+
# original operation with the same request ID was received, and if so, will
|
761
|
+
# ignore the second request. This prevents clients from accidentally creating
|
762
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
763
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
764
|
+
# @param [String] workload_id
|
765
|
+
# Required. The Workload identifier.
|
766
|
+
# @param [String] fields
|
767
|
+
# Selector specifying which fields to include in a partial response.
|
768
|
+
# @param [String] quota_user
|
769
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
770
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
771
|
+
# @param [Google::Apis::RequestOptions] options
|
772
|
+
# Request-specific options
|
773
|
+
#
|
774
|
+
# @yield [result, err] Result & error if block supplied
|
775
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Operation] parsed result object
|
776
|
+
# @yieldparam err [StandardError] error object if request failed
|
777
|
+
#
|
778
|
+
# @return [Google::Apis::ApphubV1alpha::Operation]
|
779
|
+
#
|
780
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
781
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
782
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
783
|
+
def create_project_location_application_workload(parent, workload_object = nil, request_id: nil, workload_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
784
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/workloads', options)
|
785
|
+
command.request_representation = Google::Apis::ApphubV1alpha::Workload::Representation
|
786
|
+
command.request_object = workload_object
|
787
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Operation::Representation
|
788
|
+
command.response_class = Google::Apis::ApphubV1alpha::Operation
|
789
|
+
command.params['parent'] = parent unless parent.nil?
|
790
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
791
|
+
command.query['workloadId'] = workload_id unless workload_id.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
|
+
# Deletes a Workload in an Application.
|
798
|
+
# @param [String] name
|
799
|
+
# Required. Value for name.
|
800
|
+
# @param [String] request_id
|
801
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
802
|
+
# request ID so that if you must retry your request, the server will know to
|
803
|
+
# ignore the request if it has already been completed. The server will guarantee
|
804
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
805
|
+
# situation where you make an initial request and the request times out. If you
|
806
|
+
# make the request again with the same request ID, the server can check if
|
807
|
+
# original operation with the same request ID was received, and if so, will
|
808
|
+
# ignore the second request. This prevents clients from accidentally creating
|
809
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
810
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
811
|
+
# @param [String] fields
|
812
|
+
# Selector specifying which fields to include in a partial response.
|
813
|
+
# @param [String] quota_user
|
814
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
815
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
816
|
+
# @param [Google::Apis::RequestOptions] options
|
817
|
+
# Request-specific options
|
818
|
+
#
|
819
|
+
# @yield [result, err] Result & error if block supplied
|
820
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Operation] parsed result object
|
821
|
+
# @yieldparam err [StandardError] error object if request failed
|
822
|
+
#
|
823
|
+
# @return [Google::Apis::ApphubV1alpha::Operation]
|
824
|
+
#
|
825
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
826
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
827
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
828
|
+
def delete_project_location_application_workload(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
829
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
830
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Operation::Representation
|
831
|
+
command.response_class = Google::Apis::ApphubV1alpha::Operation
|
832
|
+
command.params['name'] = name unless name.nil?
|
833
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
834
|
+
command.query['fields'] = fields unless fields.nil?
|
835
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
836
|
+
execute_or_queue_command(command, &block)
|
837
|
+
end
|
838
|
+
|
839
|
+
# Gets a Workload in an Application.
|
840
|
+
# @param [String] name
|
841
|
+
# Required. Value for name.
|
842
|
+
# @param [String] fields
|
843
|
+
# Selector specifying which fields to include in a partial response.
|
844
|
+
# @param [String] quota_user
|
845
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
846
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
847
|
+
# @param [Google::Apis::RequestOptions] options
|
848
|
+
# Request-specific options
|
849
|
+
#
|
850
|
+
# @yield [result, err] Result & error if block supplied
|
851
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Workload] parsed result object
|
852
|
+
# @yieldparam err [StandardError] error object if request failed
|
853
|
+
#
|
854
|
+
# @return [Google::Apis::ApphubV1alpha::Workload]
|
855
|
+
#
|
856
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
857
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
858
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
859
|
+
def get_project_location_application_workload(name, fields: nil, quota_user: nil, options: nil, &block)
|
860
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
861
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Workload::Representation
|
862
|
+
command.response_class = Google::Apis::ApphubV1alpha::Workload
|
863
|
+
command.params['name'] = name unless name.nil?
|
864
|
+
command.query['fields'] = fields unless fields.nil?
|
865
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
866
|
+
execute_or_queue_command(command, &block)
|
867
|
+
end
|
868
|
+
|
869
|
+
# Lists Workloads in an Application.
|
870
|
+
# @param [String] parent
|
871
|
+
# Required. Value for parent.
|
872
|
+
# @param [String] filter
|
873
|
+
# Optional. Filtering results
|
874
|
+
# @param [String] order_by
|
875
|
+
# Optional. Hint for how to order the results
|
876
|
+
# @param [Fixnum] page_size
|
877
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
878
|
+
# If unspecified, server will pick an appropriate default.
|
879
|
+
# @param [String] page_token
|
880
|
+
# Optional. A token identifying a page of results the server should return.
|
881
|
+
# @param [String] fields
|
882
|
+
# Selector specifying which fields to include in a partial response.
|
883
|
+
# @param [String] quota_user
|
884
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
885
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
886
|
+
# @param [Google::Apis::RequestOptions] options
|
887
|
+
# Request-specific options
|
888
|
+
#
|
889
|
+
# @yield [result, err] Result & error if block supplied
|
890
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::ListWorkloadsResponse] parsed result object
|
891
|
+
# @yieldparam err [StandardError] error object if request failed
|
892
|
+
#
|
893
|
+
# @return [Google::Apis::ApphubV1alpha::ListWorkloadsResponse]
|
894
|
+
#
|
895
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
896
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
897
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
898
|
+
def list_project_location_application_workloads(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
899
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/workloads', options)
|
900
|
+
command.response_representation = Google::Apis::ApphubV1alpha::ListWorkloadsResponse::Representation
|
901
|
+
command.response_class = Google::Apis::ApphubV1alpha::ListWorkloadsResponse
|
902
|
+
command.params['parent'] = parent unless parent.nil?
|
903
|
+
command.query['filter'] = filter unless filter.nil?
|
904
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
905
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
906
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
907
|
+
command.query['fields'] = fields unless fields.nil?
|
908
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
909
|
+
execute_or_queue_command(command, &block)
|
910
|
+
end
|
911
|
+
|
912
|
+
# Updates a Workload in an Application.
|
913
|
+
# @param [String] name
|
914
|
+
# Identifier. The resource name of the Workload. Format: "projects/`host-project-
|
915
|
+
# id`/locations/`location`/applications/`application-id`/workloads/`workload-id`"
|
916
|
+
# @param [Google::Apis::ApphubV1alpha::Workload] workload_object
|
917
|
+
# @param [String] request_id
|
918
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
919
|
+
# request ID so that if you must retry your request, the server will know to
|
920
|
+
# ignore the request if it has already been completed. The server will guarantee
|
921
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
922
|
+
# situation where you make an initial request and the request times out. If you
|
923
|
+
# make the request again with the same request ID, the server can check if
|
924
|
+
# original operation with the same request ID was received, and if so, will
|
925
|
+
# ignore the second request. This prevents clients from accidentally creating
|
926
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
927
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
928
|
+
# @param [String] update_mask
|
929
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
930
|
+
# Workload resource by the update. The fields specified in the update_mask are
|
931
|
+
# relative to the resource, not the full request. The API changes the values of
|
932
|
+
# the fields as specified in the update_mask. The API ignores the values of all
|
933
|
+
# fields not covered by the update_mask. You can also unset a field by not
|
934
|
+
# specifying it in the updated message, but adding the field to the mask. This
|
935
|
+
# clears whatever value the field previously had.
|
936
|
+
# @param [String] fields
|
937
|
+
# Selector specifying which fields to include in a partial response.
|
938
|
+
# @param [String] quota_user
|
939
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
940
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
941
|
+
# @param [Google::Apis::RequestOptions] options
|
942
|
+
# Request-specific options
|
943
|
+
#
|
944
|
+
# @yield [result, err] Result & error if block supplied
|
945
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Operation] parsed result object
|
946
|
+
# @yieldparam err [StandardError] error object if request failed
|
947
|
+
#
|
948
|
+
# @return [Google::Apis::ApphubV1alpha::Operation]
|
949
|
+
#
|
950
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
951
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
952
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
953
|
+
def patch_project_location_application_workload(name, workload_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
954
|
+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
|
955
|
+
command.request_representation = Google::Apis::ApphubV1alpha::Workload::Representation
|
956
|
+
command.request_object = workload_object
|
957
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Operation::Representation
|
958
|
+
command.response_class = Google::Apis::ApphubV1alpha::Operation
|
959
|
+
command.params['name'] = name unless name.nil?
|
960
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
961
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
962
|
+
command.query['fields'] = fields unless fields.nil?
|
963
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
964
|
+
execute_or_queue_command(command, &block)
|
965
|
+
end
|
966
|
+
|
967
|
+
# Finds unregistered services in a host project and location.
|
968
|
+
# @param [String] parent
|
969
|
+
# Required. Value for parent.
|
970
|
+
# @param [String] filter
|
971
|
+
# Optional. Filtering results
|
972
|
+
# @param [String] order_by
|
973
|
+
# Optional. Hint for how to order the results
|
974
|
+
# @param [Fixnum] page_size
|
975
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
976
|
+
# If unspecified, server will pick an appropriate default.
|
977
|
+
# @param [String] page_token
|
978
|
+
# Optional. A token identifying a page of results the server should return.
|
979
|
+
# @param [String] fields
|
980
|
+
# Selector specifying which fields to include in a partial response.
|
981
|
+
# @param [String] quota_user
|
982
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
983
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
984
|
+
# @param [Google::Apis::RequestOptions] options
|
985
|
+
# Request-specific options
|
986
|
+
#
|
987
|
+
# @yield [result, err] Result & error if block supplied
|
988
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::FindUnregisteredServicesResponse] parsed result object
|
989
|
+
# @yieldparam err [StandardError] error object if request failed
|
990
|
+
#
|
991
|
+
# @return [Google::Apis::ApphubV1alpha::FindUnregisteredServicesResponse]
|
992
|
+
#
|
993
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
994
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
995
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
996
|
+
def find_project_location_discovered_service_unregistered(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
997
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/discoveredServices:findUnregistered', options)
|
998
|
+
command.response_representation = Google::Apis::ApphubV1alpha::FindUnregisteredServicesResponse::Representation
|
999
|
+
command.response_class = Google::Apis::ApphubV1alpha::FindUnregisteredServicesResponse
|
1000
|
+
command.params['parent'] = parent unless parent.nil?
|
1001
|
+
command.query['filter'] = filter unless filter.nil?
|
1002
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1003
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1004
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1005
|
+
command.query['fields'] = fields unless fields.nil?
|
1006
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1007
|
+
execute_or_queue_command(command, &block)
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
# Gets a discovered service in a host project and location.
|
1011
|
+
# @param [String] name
|
1012
|
+
# Required. Value for name.
|
1013
|
+
# @param [String] fields
|
1014
|
+
# Selector specifying which fields to include in a partial response.
|
1015
|
+
# @param [String] quota_user
|
1016
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1017
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1018
|
+
# @param [Google::Apis::RequestOptions] options
|
1019
|
+
# Request-specific options
|
1020
|
+
#
|
1021
|
+
# @yield [result, err] Result & error if block supplied
|
1022
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::DiscoveredService] parsed result object
|
1023
|
+
# @yieldparam err [StandardError] error object if request failed
|
1024
|
+
#
|
1025
|
+
# @return [Google::Apis::ApphubV1alpha::DiscoveredService]
|
1026
|
+
#
|
1027
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1028
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1029
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1030
|
+
def get_project_location_discovered_service(name, fields: nil, quota_user: nil, options: nil, &block)
|
1031
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
1032
|
+
command.response_representation = Google::Apis::ApphubV1alpha::DiscoveredService::Representation
|
1033
|
+
command.response_class = Google::Apis::ApphubV1alpha::DiscoveredService
|
1034
|
+
command.params['name'] = name unless name.nil?
|
1035
|
+
command.query['fields'] = fields unless fields.nil?
|
1036
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1037
|
+
execute_or_queue_command(command, &block)
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
# Lists discovered services in a host project and location.
|
1041
|
+
# @param [String] parent
|
1042
|
+
# Required. Value for parent.
|
1043
|
+
# @param [String] filter
|
1044
|
+
# Optional. Filtering results
|
1045
|
+
# @param [String] order_by
|
1046
|
+
# Optional. Hint for how to order the results
|
1047
|
+
# @param [Fixnum] page_size
|
1048
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
1049
|
+
# If unspecified, server will pick an appropriate default.
|
1050
|
+
# @param [String] page_token
|
1051
|
+
# Optional. A token identifying a page of results the server should return.
|
1052
|
+
# @param [String] fields
|
1053
|
+
# Selector specifying which fields to include in a partial response.
|
1054
|
+
# @param [String] quota_user
|
1055
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1056
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1057
|
+
# @param [Google::Apis::RequestOptions] options
|
1058
|
+
# Request-specific options
|
1059
|
+
#
|
1060
|
+
# @yield [result, err] Result & error if block supplied
|
1061
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::ListDiscoveredServicesResponse] parsed result object
|
1062
|
+
# @yieldparam err [StandardError] error object if request failed
|
1063
|
+
#
|
1064
|
+
# @return [Google::Apis::ApphubV1alpha::ListDiscoveredServicesResponse]
|
1065
|
+
#
|
1066
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1067
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1068
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1069
|
+
def list_project_location_discovered_services(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1070
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/discoveredServices', options)
|
1071
|
+
command.response_representation = Google::Apis::ApphubV1alpha::ListDiscoveredServicesResponse::Representation
|
1072
|
+
command.response_class = Google::Apis::ApphubV1alpha::ListDiscoveredServicesResponse
|
1073
|
+
command.params['parent'] = parent unless parent.nil?
|
1074
|
+
command.query['filter'] = filter unless filter.nil?
|
1075
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1076
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1077
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1078
|
+
command.query['fields'] = fields unless fields.nil?
|
1079
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1080
|
+
execute_or_queue_command(command, &block)
|
1081
|
+
end
|
1082
|
+
|
1083
|
+
# Finds unregistered workloads in a host project and location.
|
1084
|
+
# @param [String] parent
|
1085
|
+
# Required. Value for parent.
|
1086
|
+
# @param [String] filter
|
1087
|
+
# Optional. Filtering results
|
1088
|
+
# @param [String] order_by
|
1089
|
+
# Optional. Hint for how to order the results
|
1090
|
+
# @param [Fixnum] page_size
|
1091
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
1092
|
+
# If unspecified, server will pick an appropriate default.
|
1093
|
+
# @param [String] page_token
|
1094
|
+
# Optional. A token identifying a page of results the server should return.
|
1095
|
+
# @param [String] fields
|
1096
|
+
# Selector specifying which fields to include in a partial response.
|
1097
|
+
# @param [String] quota_user
|
1098
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1099
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1100
|
+
# @param [Google::Apis::RequestOptions] options
|
1101
|
+
# Request-specific options
|
1102
|
+
#
|
1103
|
+
# @yield [result, err] Result & error if block supplied
|
1104
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::FindUnregisteredWorkloadsResponse] parsed result object
|
1105
|
+
# @yieldparam err [StandardError] error object if request failed
|
1106
|
+
#
|
1107
|
+
# @return [Google::Apis::ApphubV1alpha::FindUnregisteredWorkloadsResponse]
|
1108
|
+
#
|
1109
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1110
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1111
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1112
|
+
def find_project_location_discovered_workload_unregistered(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1113
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/discoveredWorkloads:findUnregistered', options)
|
1114
|
+
command.response_representation = Google::Apis::ApphubV1alpha::FindUnregisteredWorkloadsResponse::Representation
|
1115
|
+
command.response_class = Google::Apis::ApphubV1alpha::FindUnregisteredWorkloadsResponse
|
1116
|
+
command.params['parent'] = parent unless parent.nil?
|
1117
|
+
command.query['filter'] = filter unless filter.nil?
|
1118
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1119
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1120
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1121
|
+
command.query['fields'] = fields unless fields.nil?
|
1122
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1123
|
+
execute_or_queue_command(command, &block)
|
1124
|
+
end
|
1125
|
+
|
1126
|
+
# Gets a discovered workload in a host project and location.
|
1127
|
+
# @param [String] name
|
1128
|
+
# Required. Value for name.
|
1129
|
+
# @param [String] fields
|
1130
|
+
# Selector specifying which fields to include in a partial response.
|
1131
|
+
# @param [String] quota_user
|
1132
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1133
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1134
|
+
# @param [Google::Apis::RequestOptions] options
|
1135
|
+
# Request-specific options
|
1136
|
+
#
|
1137
|
+
# @yield [result, err] Result & error if block supplied
|
1138
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::DiscoveredWorkload] parsed result object
|
1139
|
+
# @yieldparam err [StandardError] error object if request failed
|
1140
|
+
#
|
1141
|
+
# @return [Google::Apis::ApphubV1alpha::DiscoveredWorkload]
|
1142
|
+
#
|
1143
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1144
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1145
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1146
|
+
def get_project_location_discovered_workload(name, fields: nil, quota_user: nil, options: nil, &block)
|
1147
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
1148
|
+
command.response_representation = Google::Apis::ApphubV1alpha::DiscoveredWorkload::Representation
|
1149
|
+
command.response_class = Google::Apis::ApphubV1alpha::DiscoveredWorkload
|
1150
|
+
command.params['name'] = name unless name.nil?
|
1151
|
+
command.query['fields'] = fields unless fields.nil?
|
1152
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1153
|
+
execute_or_queue_command(command, &block)
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
# Lists discovered workloads in a host project and location.
|
1157
|
+
# @param [String] parent
|
1158
|
+
# Required. Value for parent.
|
1159
|
+
# @param [String] filter
|
1160
|
+
# Optional. Filtering results
|
1161
|
+
# @param [String] order_by
|
1162
|
+
# Optional. Hint for how to order the results
|
1163
|
+
# @param [Fixnum] page_size
|
1164
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
1165
|
+
# If unspecified, server will pick an appropriate default.
|
1166
|
+
# @param [String] page_token
|
1167
|
+
# Optional. A token identifying a page of results the server should return.
|
1168
|
+
# @param [String] fields
|
1169
|
+
# Selector specifying which fields to include in a partial response.
|
1170
|
+
# @param [String] quota_user
|
1171
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1172
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1173
|
+
# @param [Google::Apis::RequestOptions] options
|
1174
|
+
# Request-specific options
|
1175
|
+
#
|
1176
|
+
# @yield [result, err] Result & error if block supplied
|
1177
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::ListDiscoveredWorkloadsResponse] parsed result object
|
1178
|
+
# @yieldparam err [StandardError] error object if request failed
|
1179
|
+
#
|
1180
|
+
# @return [Google::Apis::ApphubV1alpha::ListDiscoveredWorkloadsResponse]
|
1181
|
+
#
|
1182
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1183
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1184
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1185
|
+
def list_project_location_discovered_workloads(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1186
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/discoveredWorkloads', options)
|
1187
|
+
command.response_representation = Google::Apis::ApphubV1alpha::ListDiscoveredWorkloadsResponse::Representation
|
1188
|
+
command.response_class = Google::Apis::ApphubV1alpha::ListDiscoveredWorkloadsResponse
|
1189
|
+
command.params['parent'] = parent unless parent.nil?
|
1190
|
+
command.query['filter'] = filter unless filter.nil?
|
1191
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1192
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1193
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1194
|
+
command.query['fields'] = fields unless fields.nil?
|
1195
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1196
|
+
execute_or_queue_command(command, &block)
|
1197
|
+
end
|
1198
|
+
|
1199
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
1200
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
1201
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
1202
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
1203
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
1204
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
1205
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
1206
|
+
# corresponding to `Code.CANCELLED`.
|
1207
|
+
# @param [String] name
|
1208
|
+
# The name of the operation resource to be cancelled.
|
1209
|
+
# @param [Google::Apis::ApphubV1alpha::CancelOperationRequest] cancel_operation_request_object
|
1210
|
+
# @param [String] fields
|
1211
|
+
# Selector specifying which fields to include in a partial response.
|
1212
|
+
# @param [String] quota_user
|
1213
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1214
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1215
|
+
# @param [Google::Apis::RequestOptions] options
|
1216
|
+
# Request-specific options
|
1217
|
+
#
|
1218
|
+
# @yield [result, err] Result & error if block supplied
|
1219
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Empty] parsed result object
|
1220
|
+
# @yieldparam err [StandardError] error object if request failed
|
1221
|
+
#
|
1222
|
+
# @return [Google::Apis::ApphubV1alpha::Empty]
|
1223
|
+
#
|
1224
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1225
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1226
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1227
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1228
|
+
command = make_simple_command(:post, 'v1alpha/{+name}:cancel', options)
|
1229
|
+
command.request_representation = Google::Apis::ApphubV1alpha::CancelOperationRequest::Representation
|
1230
|
+
command.request_object = cancel_operation_request_object
|
1231
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Empty::Representation
|
1232
|
+
command.response_class = Google::Apis::ApphubV1alpha::Empty
|
1233
|
+
command.params['name'] = name unless name.nil?
|
1234
|
+
command.query['fields'] = fields unless fields.nil?
|
1235
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1236
|
+
execute_or_queue_command(command, &block)
|
1237
|
+
end
|
1238
|
+
|
1239
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
1240
|
+
# longer interested in the operation result. It does not cancel the operation.
|
1241
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
1242
|
+
# UNIMPLEMENTED`.
|
1243
|
+
# @param [String] name
|
1244
|
+
# The name of the operation resource to be deleted.
|
1245
|
+
# @param [String] fields
|
1246
|
+
# Selector specifying which fields to include in a partial response.
|
1247
|
+
# @param [String] quota_user
|
1248
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1249
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1250
|
+
# @param [Google::Apis::RequestOptions] options
|
1251
|
+
# Request-specific options
|
1252
|
+
#
|
1253
|
+
# @yield [result, err] Result & error if block supplied
|
1254
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Empty] parsed result object
|
1255
|
+
# @yieldparam err [StandardError] error object if request failed
|
1256
|
+
#
|
1257
|
+
# @return [Google::Apis::ApphubV1alpha::Empty]
|
1258
|
+
#
|
1259
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1260
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1261
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1262
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1263
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
1264
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Empty::Representation
|
1265
|
+
command.response_class = Google::Apis::ApphubV1alpha::Empty
|
1266
|
+
command.params['name'] = name unless name.nil?
|
1267
|
+
command.query['fields'] = fields unless fields.nil?
|
1268
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1269
|
+
execute_or_queue_command(command, &block)
|
1270
|
+
end
|
1271
|
+
|
1272
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
1273
|
+
# to poll the operation result at intervals as recommended by the API service.
|
1274
|
+
# @param [String] name
|
1275
|
+
# The name of the operation resource.
|
1276
|
+
# @param [String] fields
|
1277
|
+
# Selector specifying which fields to include in a partial response.
|
1278
|
+
# @param [String] quota_user
|
1279
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1280
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1281
|
+
# @param [Google::Apis::RequestOptions] options
|
1282
|
+
# Request-specific options
|
1283
|
+
#
|
1284
|
+
# @yield [result, err] Result & error if block supplied
|
1285
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Operation] parsed result object
|
1286
|
+
# @yieldparam err [StandardError] error object if request failed
|
1287
|
+
#
|
1288
|
+
# @return [Google::Apis::ApphubV1alpha::Operation]
|
1289
|
+
#
|
1290
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1291
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1292
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1293
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1294
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
1295
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Operation::Representation
|
1296
|
+
command.response_class = Google::Apis::ApphubV1alpha::Operation
|
1297
|
+
command.params['name'] = name unless name.nil?
|
1298
|
+
command.query['fields'] = fields unless fields.nil?
|
1299
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1300
|
+
execute_or_queue_command(command, &block)
|
1301
|
+
end
|
1302
|
+
|
1303
|
+
# Lists operations that match the specified filter in the request. If the server
|
1304
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
1305
|
+
# @param [String] name
|
1306
|
+
# The name of the operation's parent resource.
|
1307
|
+
# @param [String] filter
|
1308
|
+
# The standard list filter.
|
1309
|
+
# @param [Fixnum] page_size
|
1310
|
+
# The standard list page size.
|
1311
|
+
# @param [String] page_token
|
1312
|
+
# The standard list page token.
|
1313
|
+
# @param [String] fields
|
1314
|
+
# Selector specifying which fields to include in a partial response.
|
1315
|
+
# @param [String] quota_user
|
1316
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1317
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1318
|
+
# @param [Google::Apis::RequestOptions] options
|
1319
|
+
# Request-specific options
|
1320
|
+
#
|
1321
|
+
# @yield [result, err] Result & error if block supplied
|
1322
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::ListOperationsResponse] parsed result object
|
1323
|
+
# @yieldparam err [StandardError] error object if request failed
|
1324
|
+
#
|
1325
|
+
# @return [Google::Apis::ApphubV1alpha::ListOperationsResponse]
|
1326
|
+
#
|
1327
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1328
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1329
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1330
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1331
|
+
command = make_simple_command(:get, 'v1alpha/{+name}/operations', options)
|
1332
|
+
command.response_representation = Google::Apis::ApphubV1alpha::ListOperationsResponse::Representation
|
1333
|
+
command.response_class = Google::Apis::ApphubV1alpha::ListOperationsResponse
|
1334
|
+
command.params['name'] = name unless name.nil?
|
1335
|
+
command.query['filter'] = filter unless filter.nil?
|
1336
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1337
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1338
|
+
command.query['fields'] = fields unless fields.nil?
|
1339
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1340
|
+
execute_or_queue_command(command, &block)
|
1341
|
+
end
|
1342
|
+
|
1343
|
+
# Attaches a service project to the host project.
|
1344
|
+
# @param [String] parent
|
1345
|
+
# Required. Value for parent.
|
1346
|
+
# @param [Google::Apis::ApphubV1alpha::ServiceProjectAttachment] service_project_attachment_object
|
1347
|
+
# @param [String] request_id
|
1348
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1349
|
+
# request ID so that if you must retry your request, the server will know to
|
1350
|
+
# ignore the request if it has already been completed. The server will guarantee
|
1351
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
1352
|
+
# situation where you make an initial request and the request times out. If you
|
1353
|
+
# make the request again with the same request ID, the server can check if
|
1354
|
+
# original operation with the same request ID was received, and if so, will
|
1355
|
+
# ignore the second request. This prevents clients from accidentally creating
|
1356
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
1357
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1358
|
+
# @param [String] service_project_attachment_id
|
1359
|
+
# Required. The service project attachment identifier must contain the
|
1360
|
+
# project_id of the service project specified in the service_project_attachment.
|
1361
|
+
# service_project field. Hint: "projects/`project_id`"
|
1362
|
+
# @param [String] fields
|
1363
|
+
# Selector specifying which fields to include in a partial response.
|
1364
|
+
# @param [String] quota_user
|
1365
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1366
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1367
|
+
# @param [Google::Apis::RequestOptions] options
|
1368
|
+
# Request-specific options
|
1369
|
+
#
|
1370
|
+
# @yield [result, err] Result & error if block supplied
|
1371
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Operation] parsed result object
|
1372
|
+
# @yieldparam err [StandardError] error object if request failed
|
1373
|
+
#
|
1374
|
+
# @return [Google::Apis::ApphubV1alpha::Operation]
|
1375
|
+
#
|
1376
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1377
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1378
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1379
|
+
def create_project_location_service_project_attachment(parent, service_project_attachment_object = nil, request_id: nil, service_project_attachment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1380
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/serviceProjectAttachments', options)
|
1381
|
+
command.request_representation = Google::Apis::ApphubV1alpha::ServiceProjectAttachment::Representation
|
1382
|
+
command.request_object = service_project_attachment_object
|
1383
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Operation::Representation
|
1384
|
+
command.response_class = Google::Apis::ApphubV1alpha::Operation
|
1385
|
+
command.params['parent'] = parent unless parent.nil?
|
1386
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1387
|
+
command.query['serviceProjectAttachmentId'] = service_project_attachment_id unless service_project_attachment_id.nil?
|
1388
|
+
command.query['fields'] = fields unless fields.nil?
|
1389
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1390
|
+
execute_or_queue_command(command, &block)
|
1391
|
+
end
|
1392
|
+
|
1393
|
+
# Deletes a service project attached to the host project.
|
1394
|
+
# @param [String] name
|
1395
|
+
# Required. Value for name.
|
1396
|
+
# @param [String] request_id
|
1397
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1398
|
+
# request ID so that if you must retry your request, the server will know to
|
1399
|
+
# ignore the request if it has already been completed. The server will guarantee
|
1400
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
1401
|
+
# situation where you make an initial request and the request times out. If you
|
1402
|
+
# make the request again with the same request ID, the server can check if
|
1403
|
+
# original operation with the same request ID was received, and if so, will
|
1404
|
+
# ignore the second request. This prevents clients from accidentally creating
|
1405
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
1406
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1407
|
+
# @param [String] fields
|
1408
|
+
# Selector specifying which fields to include in a partial response.
|
1409
|
+
# @param [String] quota_user
|
1410
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1411
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1412
|
+
# @param [Google::Apis::RequestOptions] options
|
1413
|
+
# Request-specific options
|
1414
|
+
#
|
1415
|
+
# @yield [result, err] Result & error if block supplied
|
1416
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::Operation] parsed result object
|
1417
|
+
# @yieldparam err [StandardError] error object if request failed
|
1418
|
+
#
|
1419
|
+
# @return [Google::Apis::ApphubV1alpha::Operation]
|
1420
|
+
#
|
1421
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1422
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1423
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1424
|
+
def delete_project_location_service_project_attachment(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1425
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
1426
|
+
command.response_representation = Google::Apis::ApphubV1alpha::Operation::Representation
|
1427
|
+
command.response_class = Google::Apis::ApphubV1alpha::Operation
|
1428
|
+
command.params['name'] = name unless name.nil?
|
1429
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1430
|
+
command.query['fields'] = fields unless fields.nil?
|
1431
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1432
|
+
execute_or_queue_command(command, &block)
|
1433
|
+
end
|
1434
|
+
|
1435
|
+
# Gets a service project attached to the host project.
|
1436
|
+
# @param [String] name
|
1437
|
+
# Required. Value for name.
|
1438
|
+
# @param [String] fields
|
1439
|
+
# Selector specifying which fields to include in a partial response.
|
1440
|
+
# @param [String] quota_user
|
1441
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1442
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1443
|
+
# @param [Google::Apis::RequestOptions] options
|
1444
|
+
# Request-specific options
|
1445
|
+
#
|
1446
|
+
# @yield [result, err] Result & error if block supplied
|
1447
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::ServiceProjectAttachment] parsed result object
|
1448
|
+
# @yieldparam err [StandardError] error object if request failed
|
1449
|
+
#
|
1450
|
+
# @return [Google::Apis::ApphubV1alpha::ServiceProjectAttachment]
|
1451
|
+
#
|
1452
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1453
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1454
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1455
|
+
def get_project_location_service_project_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
|
1456
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
1457
|
+
command.response_representation = Google::Apis::ApphubV1alpha::ServiceProjectAttachment::Representation
|
1458
|
+
command.response_class = Google::Apis::ApphubV1alpha::ServiceProjectAttachment
|
1459
|
+
command.params['name'] = name unless name.nil?
|
1460
|
+
command.query['fields'] = fields unless fields.nil?
|
1461
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1462
|
+
execute_or_queue_command(command, &block)
|
1463
|
+
end
|
1464
|
+
|
1465
|
+
# List service projects attached to the host project.
|
1466
|
+
# @param [String] parent
|
1467
|
+
# Required. Value for parent.
|
1468
|
+
# @param [String] filter
|
1469
|
+
# Optional. Filtering results
|
1470
|
+
# @param [String] order_by
|
1471
|
+
# Optional. Hint for how to order the results
|
1472
|
+
# @param [Fixnum] page_size
|
1473
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
1474
|
+
# If unspecified, server will pick an appropriate default.
|
1475
|
+
# @param [String] page_token
|
1476
|
+
# Optional. A token identifying a page of results the server should return.
|
1477
|
+
# @param [String] fields
|
1478
|
+
# Selector specifying which fields to include in a partial response.
|
1479
|
+
# @param [String] quota_user
|
1480
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1481
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1482
|
+
# @param [Google::Apis::RequestOptions] options
|
1483
|
+
# Request-specific options
|
1484
|
+
#
|
1485
|
+
# @yield [result, err] Result & error if block supplied
|
1486
|
+
# @yieldparam result [Google::Apis::ApphubV1alpha::ListServiceProjectAttachmentsResponse] parsed result object
|
1487
|
+
# @yieldparam err [StandardError] error object if request failed
|
1488
|
+
#
|
1489
|
+
# @return [Google::Apis::ApphubV1alpha::ListServiceProjectAttachmentsResponse]
|
1490
|
+
#
|
1491
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1492
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1493
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1494
|
+
def list_project_location_service_project_attachments(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1495
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/serviceProjectAttachments', options)
|
1496
|
+
command.response_representation = Google::Apis::ApphubV1alpha::ListServiceProjectAttachmentsResponse::Representation
|
1497
|
+
command.response_class = Google::Apis::ApphubV1alpha::ListServiceProjectAttachmentsResponse
|
1498
|
+
command.params['parent'] = parent unless parent.nil?
|
1499
|
+
command.query['filter'] = filter unless filter.nil?
|
1500
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1501
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1502
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1503
|
+
command.query['fields'] = fields unless fields.nil?
|
1504
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1505
|
+
execute_or_queue_command(command, &block)
|
1506
|
+
end
|
1507
|
+
|
1508
|
+
protected
|
1509
|
+
|
1510
|
+
def apply_command_defaults(command)
|
1511
|
+
command.query['key'] = key unless key.nil?
|
1512
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1513
|
+
end
|
1514
|
+
end
|
1515
|
+
end
|
1516
|
+
end
|
1517
|
+
end
|