google-apis-apphub_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,250 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module ApphubV1
24
+
25
+ class AuditConfig
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AuditLogConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Binding
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CancelOperationRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Empty
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Expr
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ListLocationsResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ListOperationsResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Location
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Operation
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Policy
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class SetIamPolicyRequest
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class Status
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class TestIamPermissionsRequest
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class TestIamPermissionsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class AuditConfig
116
+ # @private
117
+ class Representation < Google::Apis::Core::JsonRepresentation
118
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ApphubV1::AuditLogConfig, decorator: Google::Apis::ApphubV1::AuditLogConfig::Representation
119
+
120
+ property :service, as: 'service'
121
+ end
122
+ end
123
+
124
+ class AuditLogConfig
125
+ # @private
126
+ class Representation < Google::Apis::Core::JsonRepresentation
127
+ collection :exempted_members, as: 'exemptedMembers'
128
+ property :log_type, as: 'logType'
129
+ end
130
+ end
131
+
132
+ class Binding
133
+ # @private
134
+ class Representation < Google::Apis::Core::JsonRepresentation
135
+ property :condition, as: 'condition', class: Google::Apis::ApphubV1::Expr, decorator: Google::Apis::ApphubV1::Expr::Representation
136
+
137
+ collection :members, as: 'members'
138
+ property :role, as: 'role'
139
+ end
140
+ end
141
+
142
+ class CancelOperationRequest
143
+ # @private
144
+ class Representation < Google::Apis::Core::JsonRepresentation
145
+ end
146
+ end
147
+
148
+ class Empty
149
+ # @private
150
+ class Representation < Google::Apis::Core::JsonRepresentation
151
+ end
152
+ end
153
+
154
+ class Expr
155
+ # @private
156
+ class Representation < Google::Apis::Core::JsonRepresentation
157
+ property :description, as: 'description'
158
+ property :expression, as: 'expression'
159
+ property :location, as: 'location'
160
+ property :title, as: 'title'
161
+ end
162
+ end
163
+
164
+ class ListLocationsResponse
165
+ # @private
166
+ class Representation < Google::Apis::Core::JsonRepresentation
167
+ collection :locations, as: 'locations', class: Google::Apis::ApphubV1::Location, decorator: Google::Apis::ApphubV1::Location::Representation
168
+
169
+ property :next_page_token, as: 'nextPageToken'
170
+ end
171
+ end
172
+
173
+ class ListOperationsResponse
174
+ # @private
175
+ class Representation < Google::Apis::Core::JsonRepresentation
176
+ property :next_page_token, as: 'nextPageToken'
177
+ collection :operations, as: 'operations', class: Google::Apis::ApphubV1::Operation, decorator: Google::Apis::ApphubV1::Operation::Representation
178
+
179
+ end
180
+ end
181
+
182
+ class Location
183
+ # @private
184
+ class Representation < Google::Apis::Core::JsonRepresentation
185
+ property :display_name, as: 'displayName'
186
+ hash :labels, as: 'labels'
187
+ property :location_id, as: 'locationId'
188
+ hash :metadata, as: 'metadata'
189
+ property :name, as: 'name'
190
+ end
191
+ end
192
+
193
+ class Operation
194
+ # @private
195
+ class Representation < Google::Apis::Core::JsonRepresentation
196
+ property :done, as: 'done'
197
+ property :error, as: 'error', class: Google::Apis::ApphubV1::Status, decorator: Google::Apis::ApphubV1::Status::Representation
198
+
199
+ hash :metadata, as: 'metadata'
200
+ property :name, as: 'name'
201
+ hash :response, as: 'response'
202
+ end
203
+ end
204
+
205
+ class Policy
206
+ # @private
207
+ class Representation < Google::Apis::Core::JsonRepresentation
208
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ApphubV1::AuditConfig, decorator: Google::Apis::ApphubV1::AuditConfig::Representation
209
+
210
+ collection :bindings, as: 'bindings', class: Google::Apis::ApphubV1::Binding, decorator: Google::Apis::ApphubV1::Binding::Representation
211
+
212
+ property :etag, :base64 => true, as: 'etag'
213
+ property :version, as: 'version'
214
+ end
215
+ end
216
+
217
+ class SetIamPolicyRequest
218
+ # @private
219
+ class Representation < Google::Apis::Core::JsonRepresentation
220
+ property :policy, as: 'policy', class: Google::Apis::ApphubV1::Policy, decorator: Google::Apis::ApphubV1::Policy::Representation
221
+
222
+ property :update_mask, as: 'updateMask'
223
+ end
224
+ end
225
+
226
+ class Status
227
+ # @private
228
+ class Representation < Google::Apis::Core::JsonRepresentation
229
+ property :code, as: 'code'
230
+ collection :details, as: 'details'
231
+ property :message, as: 'message'
232
+ end
233
+ end
234
+
235
+ class TestIamPermissionsRequest
236
+ # @private
237
+ class Representation < Google::Apis::Core::JsonRepresentation
238
+ collection :permissions, as: 'permissions'
239
+ end
240
+ end
241
+
242
+ class TestIamPermissionsResponse
243
+ # @private
244
+ class Representation < Google::Apis::Core::JsonRepresentation
245
+ collection :permissions, as: 'permissions'
246
+ end
247
+ end
248
+ end
249
+ end
250
+ end
@@ -0,0 +1,399 @@
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 ApphubV1
23
+ # App Hub API
24
+ #
25
+ #
26
+ #
27
+ # @example
28
+ # require 'google/apis/apphub_v1'
29
+ #
30
+ # Apphub = Google::Apis::ApphubV1 # 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
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://apphub.googleapis.com/', '',
47
+ client_name: 'google-apis-apphub_v1',
48
+ client_version: Google::Apis::ApphubV1::GEM_VERSION)
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Gets information about a location.
53
+ # @param [String] name
54
+ # Resource name for the location.
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
57
+ # @param [String] quota_user
58
+ # Available to use for quota purposes for server-side applications. Can be any
59
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [Google::Apis::RequestOptions] options
61
+ # Request-specific options
62
+ #
63
+ # @yield [result, err] Result & error if block supplied
64
+ # @yieldparam result [Google::Apis::ApphubV1::Location] parsed result object
65
+ # @yieldparam err [StandardError] error object if request failed
66
+ #
67
+ # @return [Google::Apis::ApphubV1::Location]
68
+ #
69
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
72
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:get, 'v1/{+name}', options)
74
+ command.response_representation = Google::Apis::ApphubV1::Location::Representation
75
+ command.response_class = Google::Apis::ApphubV1::Location
76
+ command.params['name'] = name unless name.nil?
77
+ command.query['fields'] = fields unless fields.nil?
78
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
79
+ execute_or_queue_command(command, &block)
80
+ end
81
+
82
+ # Lists information about the supported locations for this service.
83
+ # @param [String] name
84
+ # The resource that owns the locations collection, if applicable.
85
+ # @param [String] filter
86
+ # A filter to narrow down results to a preferred subset. The filtering language
87
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
88
+ # in [AIP-160](https://google.aip.dev/160).
89
+ # @param [Fixnum] page_size
90
+ # The maximum number of results to return. If not set, the service selects a
91
+ # default.
92
+ # @param [String] page_token
93
+ # A page token received from the `next_page_token` field in the response. Send
94
+ # that page token to receive the subsequent page.
95
+ # @param [String] fields
96
+ # Selector specifying which fields to include in a partial response.
97
+ # @param [String] quota_user
98
+ # Available to use for quota purposes for server-side applications. Can be any
99
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
100
+ # @param [Google::Apis::RequestOptions] options
101
+ # Request-specific options
102
+ #
103
+ # @yield [result, err] Result & error if block supplied
104
+ # @yieldparam result [Google::Apis::ApphubV1::ListLocationsResponse] parsed result object
105
+ # @yieldparam err [StandardError] error object if request failed
106
+ #
107
+ # @return [Google::Apis::ApphubV1::ListLocationsResponse]
108
+ #
109
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
110
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
111
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
112
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
113
+ command = make_simple_command(:get, 'v1/{+name}/locations', options)
114
+ command.response_representation = Google::Apis::ApphubV1::ListLocationsResponse::Representation
115
+ command.response_class = Google::Apis::ApphubV1::ListLocationsResponse
116
+ command.params['name'] = name unless name.nil?
117
+ command.query['filter'] = filter unless filter.nil?
118
+ command.query['pageSize'] = page_size unless page_size.nil?
119
+ command.query['pageToken'] = page_token unless page_token.nil?
120
+ command.query['fields'] = fields unless fields.nil?
121
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
122
+ execute_or_queue_command(command, &block)
123
+ end
124
+
125
+ # Gets the access control policy for a resource. Returns an empty policy if the
126
+ # resource exists and does not have a policy set.
127
+ # @param [String] resource
128
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
129
+ # names](https://cloud.google.com/apis/design/resource_names) for the
130
+ # appropriate value for this field.
131
+ # @param [Fixnum] options_requested_policy_version
132
+ # Optional. The maximum policy version that will be used to format the policy.
133
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
134
+ # rejected. Requests for policies with any conditional role bindings must
135
+ # specify version 3. Policies with no conditional role bindings may specify any
136
+ # valid value or leave the field unset. The policy in the response might use the
137
+ # policy version that you specified, or it might use a lower policy version. For
138
+ # example, if you specify version 3, but the policy has no conditional role
139
+ # bindings, the response uses version 1. To learn which resources support
140
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
141
+ # google.com/iam/help/conditions/resource-policies).
142
+ # @param [String] fields
143
+ # Selector specifying which fields to include in a partial response.
144
+ # @param [String] quota_user
145
+ # Available to use for quota purposes for server-side applications. Can be any
146
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
147
+ # @param [Google::Apis::RequestOptions] options
148
+ # Request-specific options
149
+ #
150
+ # @yield [result, err] Result & error if block supplied
151
+ # @yieldparam result [Google::Apis::ApphubV1::Policy] parsed result object
152
+ # @yieldparam err [StandardError] error object if request failed
153
+ #
154
+ # @return [Google::Apis::ApphubV1::Policy]
155
+ #
156
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
157
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
158
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
159
+ def get_project_location_application_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
160
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
161
+ command.response_representation = Google::Apis::ApphubV1::Policy::Representation
162
+ command.response_class = Google::Apis::ApphubV1::Policy
163
+ command.params['resource'] = resource unless resource.nil?
164
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
165
+ command.query['fields'] = fields unless fields.nil?
166
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
167
+ execute_or_queue_command(command, &block)
168
+ end
169
+
170
+ # Sets the access control policy on the specified resource. Replaces any
171
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
172
+ # PERMISSION_DENIED` errors.
173
+ # @param [String] resource
174
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
175
+ # names](https://cloud.google.com/apis/design/resource_names) for the
176
+ # appropriate value for this field.
177
+ # @param [Google::Apis::ApphubV1::SetIamPolicyRequest] set_iam_policy_request_object
178
+ # @param [String] fields
179
+ # Selector specifying which fields to include in a partial response.
180
+ # @param [String] quota_user
181
+ # Available to use for quota purposes for server-side applications. Can be any
182
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
183
+ # @param [Google::Apis::RequestOptions] options
184
+ # Request-specific options
185
+ #
186
+ # @yield [result, err] Result & error if block supplied
187
+ # @yieldparam result [Google::Apis::ApphubV1::Policy] parsed result object
188
+ # @yieldparam err [StandardError] error object if request failed
189
+ #
190
+ # @return [Google::Apis::ApphubV1::Policy]
191
+ #
192
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
193
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
194
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
195
+ def set_application_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
196
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
197
+ command.request_representation = Google::Apis::ApphubV1::SetIamPolicyRequest::Representation
198
+ command.request_object = set_iam_policy_request_object
199
+ command.response_representation = Google::Apis::ApphubV1::Policy::Representation
200
+ command.response_class = Google::Apis::ApphubV1::Policy
201
+ command.params['resource'] = resource unless resource.nil?
202
+ command.query['fields'] = fields unless fields.nil?
203
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
204
+ execute_or_queue_command(command, &block)
205
+ end
206
+
207
+ # Returns permissions that a caller has on the specified resource. If the
208
+ # resource does not exist, this will return an empty set of permissions, not a `
209
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
210
+ # permission-aware UIs and command-line tools, not for authorization checking.
211
+ # This operation may "fail open" without warning.
212
+ # @param [String] resource
213
+ # REQUIRED: The resource for which the policy detail is being requested. See [
214
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
215
+ # appropriate value for this field.
216
+ # @param [Google::Apis::ApphubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
217
+ # @param [String] fields
218
+ # Selector specifying which fields to include in a partial response.
219
+ # @param [String] quota_user
220
+ # Available to use for quota purposes for server-side applications. Can be any
221
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
222
+ # @param [Google::Apis::RequestOptions] options
223
+ # Request-specific options
224
+ #
225
+ # @yield [result, err] Result & error if block supplied
226
+ # @yieldparam result [Google::Apis::ApphubV1::TestIamPermissionsResponse] parsed result object
227
+ # @yieldparam err [StandardError] error object if request failed
228
+ #
229
+ # @return [Google::Apis::ApphubV1::TestIamPermissionsResponse]
230
+ #
231
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
232
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
233
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
234
+ def test_application_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
235
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
236
+ command.request_representation = Google::Apis::ApphubV1::TestIamPermissionsRequest::Representation
237
+ command.request_object = test_iam_permissions_request_object
238
+ command.response_representation = Google::Apis::ApphubV1::TestIamPermissionsResponse::Representation
239
+ command.response_class = Google::Apis::ApphubV1::TestIamPermissionsResponse
240
+ command.params['resource'] = resource unless resource.nil?
241
+ command.query['fields'] = fields unless fields.nil?
242
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
243
+ execute_or_queue_command(command, &block)
244
+ end
245
+
246
+ # Starts asynchronous cancellation on a long-running operation. The server makes
247
+ # a best effort to cancel the operation, but success is not guaranteed. If the
248
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
249
+ # Clients can use Operations.GetOperation or other methods to check whether the
250
+ # cancellation succeeded or whether the operation completed despite cancellation.
251
+ # On successful cancellation, the operation is not deleted; instead, it becomes
252
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
253
+ # corresponding to `Code.CANCELLED`.
254
+ # @param [String] name
255
+ # The name of the operation resource to be cancelled.
256
+ # @param [Google::Apis::ApphubV1::CancelOperationRequest] cancel_operation_request_object
257
+ # @param [String] fields
258
+ # Selector specifying which fields to include in a partial response.
259
+ # @param [String] quota_user
260
+ # Available to use for quota purposes for server-side applications. Can be any
261
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
262
+ # @param [Google::Apis::RequestOptions] options
263
+ # Request-specific options
264
+ #
265
+ # @yield [result, err] Result & error if block supplied
266
+ # @yieldparam result [Google::Apis::ApphubV1::Empty] parsed result object
267
+ # @yieldparam err [StandardError] error object if request failed
268
+ #
269
+ # @return [Google::Apis::ApphubV1::Empty]
270
+ #
271
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
272
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
273
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
274
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
275
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
276
+ command.request_representation = Google::Apis::ApphubV1::CancelOperationRequest::Representation
277
+ command.request_object = cancel_operation_request_object
278
+ command.response_representation = Google::Apis::ApphubV1::Empty::Representation
279
+ command.response_class = Google::Apis::ApphubV1::Empty
280
+ command.params['name'] = name unless name.nil?
281
+ command.query['fields'] = fields unless fields.nil?
282
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
283
+ execute_or_queue_command(command, &block)
284
+ end
285
+
286
+ # Deletes a long-running operation. This method indicates that the client is no
287
+ # longer interested in the operation result. It does not cancel the operation.
288
+ # If the server doesn't support this method, it returns `google.rpc.Code.
289
+ # UNIMPLEMENTED`.
290
+ # @param [String] name
291
+ # The name of the operation resource to be deleted.
292
+ # @param [String] fields
293
+ # Selector specifying which fields to include in a partial response.
294
+ # @param [String] quota_user
295
+ # Available to use for quota purposes for server-side applications. Can be any
296
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
297
+ # @param [Google::Apis::RequestOptions] options
298
+ # Request-specific options
299
+ #
300
+ # @yield [result, err] Result & error if block supplied
301
+ # @yieldparam result [Google::Apis::ApphubV1::Empty] parsed result object
302
+ # @yieldparam err [StandardError] error object if request failed
303
+ #
304
+ # @return [Google::Apis::ApphubV1::Empty]
305
+ #
306
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
307
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
308
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
309
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
310
+ command = make_simple_command(:delete, 'v1/{+name}', options)
311
+ command.response_representation = Google::Apis::ApphubV1::Empty::Representation
312
+ command.response_class = Google::Apis::ApphubV1::Empty
313
+ command.params['name'] = name unless name.nil?
314
+ command.query['fields'] = fields unless fields.nil?
315
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
316
+ execute_or_queue_command(command, &block)
317
+ end
318
+
319
+ # Gets the latest state of a long-running operation. Clients can use this method
320
+ # to poll the operation result at intervals as recommended by the API service.
321
+ # @param [String] name
322
+ # The name of the operation resource.
323
+ # @param [String] fields
324
+ # Selector specifying which fields to include in a partial response.
325
+ # @param [String] quota_user
326
+ # Available to use for quota purposes for server-side applications. Can be any
327
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
328
+ # @param [Google::Apis::RequestOptions] options
329
+ # Request-specific options
330
+ #
331
+ # @yield [result, err] Result & error if block supplied
332
+ # @yieldparam result [Google::Apis::ApphubV1::Operation] parsed result object
333
+ # @yieldparam err [StandardError] error object if request failed
334
+ #
335
+ # @return [Google::Apis::ApphubV1::Operation]
336
+ #
337
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
338
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
339
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
340
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
341
+ command = make_simple_command(:get, 'v1/{+name}', options)
342
+ command.response_representation = Google::Apis::ApphubV1::Operation::Representation
343
+ command.response_class = Google::Apis::ApphubV1::Operation
344
+ command.params['name'] = name unless name.nil?
345
+ command.query['fields'] = fields unless fields.nil?
346
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
347
+ execute_or_queue_command(command, &block)
348
+ end
349
+
350
+ # Lists operations that match the specified filter in the request. If the server
351
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
352
+ # @param [String] name
353
+ # The name of the operation's parent resource.
354
+ # @param [String] filter
355
+ # The standard list filter.
356
+ # @param [Fixnum] page_size
357
+ # The standard list page size.
358
+ # @param [String] page_token
359
+ # The standard list page token.
360
+ # @param [String] fields
361
+ # Selector specifying which fields to include in a partial response.
362
+ # @param [String] quota_user
363
+ # Available to use for quota purposes for server-side applications. Can be any
364
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
365
+ # @param [Google::Apis::RequestOptions] options
366
+ # Request-specific options
367
+ #
368
+ # @yield [result, err] Result & error if block supplied
369
+ # @yieldparam result [Google::Apis::ApphubV1::ListOperationsResponse] parsed result object
370
+ # @yieldparam err [StandardError] error object if request failed
371
+ #
372
+ # @return [Google::Apis::ApphubV1::ListOperationsResponse]
373
+ #
374
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
375
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
376
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
377
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
378
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
379
+ command.response_representation = Google::Apis::ApphubV1::ListOperationsResponse::Representation
380
+ command.response_class = Google::Apis::ApphubV1::ListOperationsResponse
381
+ command.params['name'] = name unless name.nil?
382
+ command.query['filter'] = filter unless filter.nil?
383
+ command.query['pageSize'] = page_size unless page_size.nil?
384
+ command.query['pageToken'] = page_token unless page_token.nil?
385
+ command.query['fields'] = fields unless fields.nil?
386
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
387
+ execute_or_queue_command(command, &block)
388
+ end
389
+
390
+ protected
391
+
392
+ def apply_command_defaults(command)
393
+ command.query['key'] = key unless key.nil?
394
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
395
+ end
396
+ end
397
+ end
398
+ end
399
+ end