google-apis-appengine_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.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module AppengineV1alpha
18
+ # Version of the google-apis-appengine_v1alpha gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20200802"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,391 @@
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 AppengineV1alpha
24
+
25
+ class AuthorizedCertificate
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AuthorizedDomain
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class CertificateRawData
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CreateVersionMetadataV1
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CreateVersionMetadataV1Alpha
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class CreateVersionMetadataV1Beta
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class DomainMapping
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Empty
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ListAuthorizedCertificatesResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ListAuthorizedDomainsResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ListDomainMappingsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListLocationsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListOperationsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class Location
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class LocationMetadata
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ManagedCertificate
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class Operation
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class OperationMetadataV1
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class OperationMetadataV1Alpha
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class OperationMetadataV1Beta
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class ResourceRecord
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class SslSettings
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class Status
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class AuthorizedCertificate
164
+ # @private
165
+ class Representation < Google::Apis::Core::JsonRepresentation
166
+ property :certificate_raw_data, as: 'certificateRawData', class: Google::Apis::AppengineV1alpha::CertificateRawData, decorator: Google::Apis::AppengineV1alpha::CertificateRawData::Representation
167
+
168
+ property :display_name, as: 'displayName'
169
+ property :domain_mappings_count, as: 'domainMappingsCount'
170
+ collection :domain_names, as: 'domainNames'
171
+ property :expire_time, as: 'expireTime'
172
+ property :id, as: 'id'
173
+ property :managed_certificate, as: 'managedCertificate', class: Google::Apis::AppengineV1alpha::ManagedCertificate, decorator: Google::Apis::AppengineV1alpha::ManagedCertificate::Representation
174
+
175
+ property :name, as: 'name'
176
+ collection :visible_domain_mappings, as: 'visibleDomainMappings'
177
+ end
178
+ end
179
+
180
+ class AuthorizedDomain
181
+ # @private
182
+ class Representation < Google::Apis::Core::JsonRepresentation
183
+ property :id, as: 'id'
184
+ property :name, as: 'name'
185
+ end
186
+ end
187
+
188
+ class CertificateRawData
189
+ # @private
190
+ class Representation < Google::Apis::Core::JsonRepresentation
191
+ property :private_key, as: 'privateKey'
192
+ property :public_certificate, as: 'publicCertificate'
193
+ end
194
+ end
195
+
196
+ class CreateVersionMetadataV1
197
+ # @private
198
+ class Representation < Google::Apis::Core::JsonRepresentation
199
+ property :cloud_build_id, as: 'cloudBuildId'
200
+ end
201
+ end
202
+
203
+ class CreateVersionMetadataV1Alpha
204
+ # @private
205
+ class Representation < Google::Apis::Core::JsonRepresentation
206
+ property :cloud_build_id, as: 'cloudBuildId'
207
+ end
208
+ end
209
+
210
+ class CreateVersionMetadataV1Beta
211
+ # @private
212
+ class Representation < Google::Apis::Core::JsonRepresentation
213
+ property :cloud_build_id, as: 'cloudBuildId'
214
+ end
215
+ end
216
+
217
+ class DomainMapping
218
+ # @private
219
+ class Representation < Google::Apis::Core::JsonRepresentation
220
+ property :id, as: 'id'
221
+ property :name, as: 'name'
222
+ collection :resource_records, as: 'resourceRecords', class: Google::Apis::AppengineV1alpha::ResourceRecord, decorator: Google::Apis::AppengineV1alpha::ResourceRecord::Representation
223
+
224
+ property :ssl_settings, as: 'sslSettings', class: Google::Apis::AppengineV1alpha::SslSettings, decorator: Google::Apis::AppengineV1alpha::SslSettings::Representation
225
+
226
+ end
227
+ end
228
+
229
+ class Empty
230
+ # @private
231
+ class Representation < Google::Apis::Core::JsonRepresentation
232
+ end
233
+ end
234
+
235
+ class ListAuthorizedCertificatesResponse
236
+ # @private
237
+ class Representation < Google::Apis::Core::JsonRepresentation
238
+ collection :certificates, as: 'certificates', class: Google::Apis::AppengineV1alpha::AuthorizedCertificate, decorator: Google::Apis::AppengineV1alpha::AuthorizedCertificate::Representation
239
+
240
+ property :next_page_token, as: 'nextPageToken'
241
+ end
242
+ end
243
+
244
+ class ListAuthorizedDomainsResponse
245
+ # @private
246
+ class Representation < Google::Apis::Core::JsonRepresentation
247
+ collection :domains, as: 'domains', class: Google::Apis::AppengineV1alpha::AuthorizedDomain, decorator: Google::Apis::AppengineV1alpha::AuthorizedDomain::Representation
248
+
249
+ property :next_page_token, as: 'nextPageToken'
250
+ end
251
+ end
252
+
253
+ class ListDomainMappingsResponse
254
+ # @private
255
+ class Representation < Google::Apis::Core::JsonRepresentation
256
+ collection :domain_mappings, as: 'domainMappings', class: Google::Apis::AppengineV1alpha::DomainMapping, decorator: Google::Apis::AppengineV1alpha::DomainMapping::Representation
257
+
258
+ property :next_page_token, as: 'nextPageToken'
259
+ end
260
+ end
261
+
262
+ class ListLocationsResponse
263
+ # @private
264
+ class Representation < Google::Apis::Core::JsonRepresentation
265
+ collection :locations, as: 'locations', class: Google::Apis::AppengineV1alpha::Location, decorator: Google::Apis::AppengineV1alpha::Location::Representation
266
+
267
+ property :next_page_token, as: 'nextPageToken'
268
+ end
269
+ end
270
+
271
+ class ListOperationsResponse
272
+ # @private
273
+ class Representation < Google::Apis::Core::JsonRepresentation
274
+ property :next_page_token, as: 'nextPageToken'
275
+ collection :operations, as: 'operations', class: Google::Apis::AppengineV1alpha::Operation, decorator: Google::Apis::AppengineV1alpha::Operation::Representation
276
+
277
+ end
278
+ end
279
+
280
+ class Location
281
+ # @private
282
+ class Representation < Google::Apis::Core::JsonRepresentation
283
+ property :display_name, as: 'displayName'
284
+ hash :labels, as: 'labels'
285
+ property :location_id, as: 'locationId'
286
+ hash :metadata, as: 'metadata'
287
+ property :name, as: 'name'
288
+ end
289
+ end
290
+
291
+ class LocationMetadata
292
+ # @private
293
+ class Representation < Google::Apis::Core::JsonRepresentation
294
+ property :flexible_environment_available, as: 'flexibleEnvironmentAvailable'
295
+ property :standard_environment_available, as: 'standardEnvironmentAvailable'
296
+ end
297
+ end
298
+
299
+ class ManagedCertificate
300
+ # @private
301
+ class Representation < Google::Apis::Core::JsonRepresentation
302
+ property :last_renewal_time, as: 'lastRenewalTime'
303
+ property :status, as: 'status'
304
+ end
305
+ end
306
+
307
+ class Operation
308
+ # @private
309
+ class Representation < Google::Apis::Core::JsonRepresentation
310
+ property :done, as: 'done'
311
+ property :error, as: 'error', class: Google::Apis::AppengineV1alpha::Status, decorator: Google::Apis::AppengineV1alpha::Status::Representation
312
+
313
+ hash :metadata, as: 'metadata'
314
+ property :name, as: 'name'
315
+ hash :response, as: 'response'
316
+ end
317
+ end
318
+
319
+ class OperationMetadataV1
320
+ # @private
321
+ class Representation < Google::Apis::Core::JsonRepresentation
322
+ property :create_version_metadata, as: 'createVersionMetadata', class: Google::Apis::AppengineV1alpha::CreateVersionMetadataV1, decorator: Google::Apis::AppengineV1alpha::CreateVersionMetadataV1::Representation
323
+
324
+ property :end_time, as: 'endTime'
325
+ property :ephemeral_message, as: 'ephemeralMessage'
326
+ property :insert_time, as: 'insertTime'
327
+ property :method_prop, as: 'method'
328
+ property :target, as: 'target'
329
+ property :user, as: 'user'
330
+ collection :warning, as: 'warning'
331
+ end
332
+ end
333
+
334
+ class OperationMetadataV1Alpha
335
+ # @private
336
+ class Representation < Google::Apis::Core::JsonRepresentation
337
+ property :create_version_metadata, as: 'createVersionMetadata', class: Google::Apis::AppengineV1alpha::CreateVersionMetadataV1Alpha, decorator: Google::Apis::AppengineV1alpha::CreateVersionMetadataV1Alpha::Representation
338
+
339
+ property :end_time, as: 'endTime'
340
+ property :ephemeral_message, as: 'ephemeralMessage'
341
+ property :insert_time, as: 'insertTime'
342
+ property :method_prop, as: 'method'
343
+ property :target, as: 'target'
344
+ property :user, as: 'user'
345
+ collection :warning, as: 'warning'
346
+ end
347
+ end
348
+
349
+ class OperationMetadataV1Beta
350
+ # @private
351
+ class Representation < Google::Apis::Core::JsonRepresentation
352
+ property :create_version_metadata, as: 'createVersionMetadata', class: Google::Apis::AppengineV1alpha::CreateVersionMetadataV1Beta, decorator: Google::Apis::AppengineV1alpha::CreateVersionMetadataV1Beta::Representation
353
+
354
+ property :end_time, as: 'endTime'
355
+ property :ephemeral_message, as: 'ephemeralMessage'
356
+ property :insert_time, as: 'insertTime'
357
+ property :method_prop, as: 'method'
358
+ property :target, as: 'target'
359
+ property :user, as: 'user'
360
+ collection :warning, as: 'warning'
361
+ end
362
+ end
363
+
364
+ class ResourceRecord
365
+ # @private
366
+ class Representation < Google::Apis::Core::JsonRepresentation
367
+ property :name, as: 'name'
368
+ property :rrdata, as: 'rrdata'
369
+ property :type, as: 'type'
370
+ end
371
+ end
372
+
373
+ class SslSettings
374
+ # @private
375
+ class Representation < Google::Apis::Core::JsonRepresentation
376
+ property :certificate_id, as: 'certificateId'
377
+ property :is_managed_certificate, as: 'isManagedCertificate'
378
+ end
379
+ end
380
+
381
+ class Status
382
+ # @private
383
+ class Representation < Google::Apis::Core::JsonRepresentation
384
+ property :code, as: 'code'
385
+ collection :details, as: 'details'
386
+ property :message, as: 'message'
387
+ end
388
+ end
389
+ end
390
+ end
391
+ end
@@ -0,0 +1,636 @@
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 AppengineV1alpha
23
+ # App Engine Admin API
24
+ #
25
+ # Provisions and manages developers' App Engine applications.
26
+ #
27
+ # @example
28
+ # require 'google/apis/appengine_v1alpha'
29
+ #
30
+ # Appengine = Google::Apis::AppengineV1alpha # Alias the module
31
+ # service = Appengine::AppengineService.new
32
+ #
33
+ # @see https://cloud.google.com/appengine/docs/admin-api/
34
+ class AppengineService < 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://appengine.googleapis.com/', '',
47
+ client_name: 'google-apis-appengine_v1alpha',
48
+ client_version: Google::Apis::AppengineV1alpha::GEM_VERSION)
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Uploads the specified SSL certificate.
53
+ # @param [String] apps_id
54
+ # Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
55
+ # @param [Google::Apis::AppengineV1alpha::AuthorizedCertificate] authorized_certificate_object
56
+ # @param [String] fields
57
+ # Selector specifying which fields to include in a partial response.
58
+ # @param [String] quota_user
59
+ # Available to use for quota purposes for server-side applications. Can be any
60
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
61
+ # @param [Google::Apis::RequestOptions] options
62
+ # Request-specific options
63
+ #
64
+ # @yield [result, err] Result & error if block supplied
65
+ # @yieldparam result [Google::Apis::AppengineV1alpha::AuthorizedCertificate] parsed result object
66
+ # @yieldparam err [StandardError] error object if request failed
67
+ #
68
+ # @return [Google::Apis::AppengineV1alpha::AuthorizedCertificate]
69
+ #
70
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
73
+ def create_app_authorized_certificate(apps_id, authorized_certificate_object = nil, fields: nil, quota_user: nil, options: nil, &block)
74
+ command = make_simple_command(:post, 'v1alpha/apps/{appsId}/authorizedCertificates', options)
75
+ command.request_representation = Google::Apis::AppengineV1alpha::AuthorizedCertificate::Representation
76
+ command.request_object = authorized_certificate_object
77
+ command.response_representation = Google::Apis::AppengineV1alpha::AuthorizedCertificate::Representation
78
+ command.response_class = Google::Apis::AppengineV1alpha::AuthorizedCertificate
79
+ command.params['appsId'] = apps_id unless apps_id.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ # Deletes the specified SSL certificate.
86
+ # @param [String] apps_id
87
+ # Part of `name`. Name of the resource to delete. Example: apps/myapp/
88
+ # authorizedCertificates/12345.
89
+ # @param [String] authorized_certificates_id
90
+ # Part of `name`. See documentation of `appsId`.
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::AppengineV1alpha::Empty] parsed result object
101
+ # @yieldparam err [StandardError] error object if request failed
102
+ #
103
+ # @return [Google::Apis::AppengineV1alpha::Empty]
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 delete_app_authorized_certificate(apps_id, authorized_certificates_id, fields: nil, quota_user: nil, options: nil, &block)
109
+ command = make_simple_command(:delete, 'v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}', options)
110
+ command.response_representation = Google::Apis::AppengineV1alpha::Empty::Representation
111
+ command.response_class = Google::Apis::AppengineV1alpha::Empty
112
+ command.params['appsId'] = apps_id unless apps_id.nil?
113
+ command.params['authorizedCertificatesId'] = authorized_certificates_id unless authorized_certificates_id.nil?
114
+ command.query['fields'] = fields unless fields.nil?
115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
116
+ execute_or_queue_command(command, &block)
117
+ end
118
+
119
+ # Gets the specified SSL certificate.
120
+ # @param [String] apps_id
121
+ # Part of `name`. Name of the resource requested. Example: apps/myapp/
122
+ # authorizedCertificates/12345.
123
+ # @param [String] authorized_certificates_id
124
+ # Part of `name`. See documentation of `appsId`.
125
+ # @param [String] view
126
+ # Controls the set of fields returned in the GET response.
127
+ # @param [String] fields
128
+ # Selector specifying which fields to include in a partial response.
129
+ # @param [String] quota_user
130
+ # Available to use for quota purposes for server-side applications. Can be any
131
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
132
+ # @param [Google::Apis::RequestOptions] options
133
+ # Request-specific options
134
+ #
135
+ # @yield [result, err] Result & error if block supplied
136
+ # @yieldparam result [Google::Apis::AppengineV1alpha::AuthorizedCertificate] parsed result object
137
+ # @yieldparam err [StandardError] error object if request failed
138
+ #
139
+ # @return [Google::Apis::AppengineV1alpha::AuthorizedCertificate]
140
+ #
141
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
142
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
143
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
144
+ def get_app_authorized_certificate(apps_id, authorized_certificates_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
145
+ command = make_simple_command(:get, 'v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}', options)
146
+ command.response_representation = Google::Apis::AppengineV1alpha::AuthorizedCertificate::Representation
147
+ command.response_class = Google::Apis::AppengineV1alpha::AuthorizedCertificate
148
+ command.params['appsId'] = apps_id unless apps_id.nil?
149
+ command.params['authorizedCertificatesId'] = authorized_certificates_id unless authorized_certificates_id.nil?
150
+ command.query['view'] = view unless view.nil?
151
+ command.query['fields'] = fields unless fields.nil?
152
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
153
+ execute_or_queue_command(command, &block)
154
+ end
155
+
156
+ # Lists all SSL certificates the user is authorized to administer.
157
+ # @param [String] apps_id
158
+ # Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
159
+ # @param [Fixnum] page_size
160
+ # Maximum results to return per page.
161
+ # @param [String] page_token
162
+ # Continuation token for fetching the next page of results.
163
+ # @param [String] view
164
+ # Controls the set of fields returned in the LIST response.
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::AppengineV1alpha::ListAuthorizedCertificatesResponse] parsed result object
175
+ # @yieldparam err [StandardError] error object if request failed
176
+ #
177
+ # @return [Google::Apis::AppengineV1alpha::ListAuthorizedCertificatesResponse]
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 list_app_authorized_certificates(apps_id, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
183
+ command = make_simple_command(:get, 'v1alpha/apps/{appsId}/authorizedCertificates', options)
184
+ command.response_representation = Google::Apis::AppengineV1alpha::ListAuthorizedCertificatesResponse::Representation
185
+ command.response_class = Google::Apis::AppengineV1alpha::ListAuthorizedCertificatesResponse
186
+ command.params['appsId'] = apps_id unless apps_id.nil?
187
+ command.query['pageSize'] = page_size unless page_size.nil?
188
+ command.query['pageToken'] = page_token unless page_token.nil?
189
+ command.query['view'] = view unless view.nil?
190
+ command.query['fields'] = fields unless fields.nil?
191
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
192
+ execute_or_queue_command(command, &block)
193
+ end
194
+
195
+ # Updates the specified SSL certificate. To renew a certificate and maintain its
196
+ # existing domain mappings, update certificate_data with a new certificate. The
197
+ # new certificate must be applicable to the same domains as the original
198
+ # certificate. The certificate display_name may also be updated.
199
+ # @param [String] apps_id
200
+ # Part of `name`. Name of the resource to update. Example: apps/myapp/
201
+ # authorizedCertificates/12345.
202
+ # @param [String] authorized_certificates_id
203
+ # Part of `name`. See documentation of `appsId`.
204
+ # @param [Google::Apis::AppengineV1alpha::AuthorizedCertificate] authorized_certificate_object
205
+ # @param [String] update_mask
206
+ # Standard field mask for the set of fields to be updated. Updates are only
207
+ # supported on the certificate_raw_data and display_name fields.
208
+ # @param [String] fields
209
+ # Selector specifying which fields to include in a partial response.
210
+ # @param [String] quota_user
211
+ # Available to use for quota purposes for server-side applications. Can be any
212
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
213
+ # @param [Google::Apis::RequestOptions] options
214
+ # Request-specific options
215
+ #
216
+ # @yield [result, err] Result & error if block supplied
217
+ # @yieldparam result [Google::Apis::AppengineV1alpha::AuthorizedCertificate] parsed result object
218
+ # @yieldparam err [StandardError] error object if request failed
219
+ #
220
+ # @return [Google::Apis::AppengineV1alpha::AuthorizedCertificate]
221
+ #
222
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
223
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
224
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
225
+ def patch_app_authorized_certificate(apps_id, authorized_certificates_id, authorized_certificate_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
226
+ command = make_simple_command(:patch, 'v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}', options)
227
+ command.request_representation = Google::Apis::AppengineV1alpha::AuthorizedCertificate::Representation
228
+ command.request_object = authorized_certificate_object
229
+ command.response_representation = Google::Apis::AppengineV1alpha::AuthorizedCertificate::Representation
230
+ command.response_class = Google::Apis::AppengineV1alpha::AuthorizedCertificate
231
+ command.params['appsId'] = apps_id unless apps_id.nil?
232
+ command.params['authorizedCertificatesId'] = authorized_certificates_id unless authorized_certificates_id.nil?
233
+ command.query['updateMask'] = update_mask unless update_mask.nil?
234
+ command.query['fields'] = fields unless fields.nil?
235
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
236
+ execute_or_queue_command(command, &block)
237
+ end
238
+
239
+ # Lists all domains the user is authorized to administer.
240
+ # @param [String] apps_id
241
+ # Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
242
+ # @param [Fixnum] page_size
243
+ # Maximum results to return per page.
244
+ # @param [String] page_token
245
+ # Continuation token for fetching the next page of results.
246
+ # @param [String] fields
247
+ # Selector specifying which fields to include in a partial response.
248
+ # @param [String] quota_user
249
+ # Available to use for quota purposes for server-side applications. Can be any
250
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
251
+ # @param [Google::Apis::RequestOptions] options
252
+ # Request-specific options
253
+ #
254
+ # @yield [result, err] Result & error if block supplied
255
+ # @yieldparam result [Google::Apis::AppengineV1alpha::ListAuthorizedDomainsResponse] parsed result object
256
+ # @yieldparam err [StandardError] error object if request failed
257
+ #
258
+ # @return [Google::Apis::AppengineV1alpha::ListAuthorizedDomainsResponse]
259
+ #
260
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
261
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
262
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
263
+ def list_app_authorized_domains(apps_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
264
+ command = make_simple_command(:get, 'v1alpha/apps/{appsId}/authorizedDomains', options)
265
+ command.response_representation = Google::Apis::AppengineV1alpha::ListAuthorizedDomainsResponse::Representation
266
+ command.response_class = Google::Apis::AppengineV1alpha::ListAuthorizedDomainsResponse
267
+ command.params['appsId'] = apps_id unless apps_id.nil?
268
+ command.query['pageSize'] = page_size unless page_size.nil?
269
+ command.query['pageToken'] = page_token unless page_token.nil?
270
+ command.query['fields'] = fields unless fields.nil?
271
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
272
+ execute_or_queue_command(command, &block)
273
+ end
274
+
275
+ # Maps a domain to an application. A user must be authorized to administer a
276
+ # domain in order to map it to an application. For a list of available
277
+ # authorized domains, see AuthorizedDomains.ListAuthorizedDomains.
278
+ # @param [String] apps_id
279
+ # Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
280
+ # @param [Google::Apis::AppengineV1alpha::DomainMapping] domain_mapping_object
281
+ # @param [Boolean] no_managed_certificate
282
+ # Whether a managed certificate should be provided by App Engine. If true, a
283
+ # certificate ID must be manaually set in the DomainMapping resource to
284
+ # configure SSL for this domain. If false, a managed certificate will be
285
+ # provisioned and a certificate ID will be automatically populated.
286
+ # @param [String] override_strategy
287
+ # Whether the domain creation should override any existing mappings for this
288
+ # domain. By default, overrides are rejected.
289
+ # @param [String] fields
290
+ # Selector specifying which fields to include in a partial response.
291
+ # @param [String] quota_user
292
+ # Available to use for quota purposes for server-side applications. Can be any
293
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
294
+ # @param [Google::Apis::RequestOptions] options
295
+ # Request-specific options
296
+ #
297
+ # @yield [result, err] Result & error if block supplied
298
+ # @yieldparam result [Google::Apis::AppengineV1alpha::Operation] parsed result object
299
+ # @yieldparam err [StandardError] error object if request failed
300
+ #
301
+ # @return [Google::Apis::AppengineV1alpha::Operation]
302
+ #
303
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
304
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
305
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
306
+ def create_app_domain_mapping(apps_id, domain_mapping_object = nil, no_managed_certificate: nil, override_strategy: nil, fields: nil, quota_user: nil, options: nil, &block)
307
+ command = make_simple_command(:post, 'v1alpha/apps/{appsId}/domainMappings', options)
308
+ command.request_representation = Google::Apis::AppengineV1alpha::DomainMapping::Representation
309
+ command.request_object = domain_mapping_object
310
+ command.response_representation = Google::Apis::AppengineV1alpha::Operation::Representation
311
+ command.response_class = Google::Apis::AppengineV1alpha::Operation
312
+ command.params['appsId'] = apps_id unless apps_id.nil?
313
+ command.query['noManagedCertificate'] = no_managed_certificate unless no_managed_certificate.nil?
314
+ command.query['overrideStrategy'] = override_strategy unless override_strategy.nil?
315
+ command.query['fields'] = fields unless fields.nil?
316
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
317
+ execute_or_queue_command(command, &block)
318
+ end
319
+
320
+ # Deletes the specified domain mapping. A user must be authorized to administer
321
+ # the associated domain in order to delete a DomainMapping resource.
322
+ # @param [String] apps_id
323
+ # Part of `name`. Name of the resource to delete. Example: apps/myapp/
324
+ # domainMappings/example.com.
325
+ # @param [String] domain_mappings_id
326
+ # Part of `name`. See documentation of `appsId`.
327
+ # @param [String] fields
328
+ # Selector specifying which fields to include in a partial response.
329
+ # @param [String] quota_user
330
+ # Available to use for quota purposes for server-side applications. Can be any
331
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
332
+ # @param [Google::Apis::RequestOptions] options
333
+ # Request-specific options
334
+ #
335
+ # @yield [result, err] Result & error if block supplied
336
+ # @yieldparam result [Google::Apis::AppengineV1alpha::Operation] parsed result object
337
+ # @yieldparam err [StandardError] error object if request failed
338
+ #
339
+ # @return [Google::Apis::AppengineV1alpha::Operation]
340
+ #
341
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
342
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
343
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
344
+ def delete_app_domain_mapping(apps_id, domain_mappings_id, fields: nil, quota_user: nil, options: nil, &block)
345
+ command = make_simple_command(:delete, 'v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}', options)
346
+ command.response_representation = Google::Apis::AppengineV1alpha::Operation::Representation
347
+ command.response_class = Google::Apis::AppengineV1alpha::Operation
348
+ command.params['appsId'] = apps_id unless apps_id.nil?
349
+ command.params['domainMappingsId'] = domain_mappings_id unless domain_mappings_id.nil?
350
+ command.query['fields'] = fields unless fields.nil?
351
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
352
+ execute_or_queue_command(command, &block)
353
+ end
354
+
355
+ # Gets the specified domain mapping.
356
+ # @param [String] apps_id
357
+ # Part of `name`. Name of the resource requested. Example: apps/myapp/
358
+ # domainMappings/example.com.
359
+ # @param [String] domain_mappings_id
360
+ # Part of `name`. See documentation of `appsId`.
361
+ # @param [String] fields
362
+ # Selector specifying which fields to include in a partial response.
363
+ # @param [String] quota_user
364
+ # Available to use for quota purposes for server-side applications. Can be any
365
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
366
+ # @param [Google::Apis::RequestOptions] options
367
+ # Request-specific options
368
+ #
369
+ # @yield [result, err] Result & error if block supplied
370
+ # @yieldparam result [Google::Apis::AppengineV1alpha::DomainMapping] parsed result object
371
+ # @yieldparam err [StandardError] error object if request failed
372
+ #
373
+ # @return [Google::Apis::AppengineV1alpha::DomainMapping]
374
+ #
375
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
376
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
377
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
378
+ def get_app_domain_mapping(apps_id, domain_mappings_id, fields: nil, quota_user: nil, options: nil, &block)
379
+ command = make_simple_command(:get, 'v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}', options)
380
+ command.response_representation = Google::Apis::AppengineV1alpha::DomainMapping::Representation
381
+ command.response_class = Google::Apis::AppengineV1alpha::DomainMapping
382
+ command.params['appsId'] = apps_id unless apps_id.nil?
383
+ command.params['domainMappingsId'] = domain_mappings_id unless domain_mappings_id.nil?
384
+ command.query['fields'] = fields unless fields.nil?
385
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
386
+ execute_or_queue_command(command, &block)
387
+ end
388
+
389
+ # Lists the domain mappings on an application.
390
+ # @param [String] apps_id
391
+ # Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
392
+ # @param [Fixnum] page_size
393
+ # Maximum results to return per page.
394
+ # @param [String] page_token
395
+ # Continuation token for fetching the next page of results.
396
+ # @param [String] fields
397
+ # Selector specifying which fields to include in a partial response.
398
+ # @param [String] quota_user
399
+ # Available to use for quota purposes for server-side applications. Can be any
400
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
401
+ # @param [Google::Apis::RequestOptions] options
402
+ # Request-specific options
403
+ #
404
+ # @yield [result, err] Result & error if block supplied
405
+ # @yieldparam result [Google::Apis::AppengineV1alpha::ListDomainMappingsResponse] parsed result object
406
+ # @yieldparam err [StandardError] error object if request failed
407
+ #
408
+ # @return [Google::Apis::AppengineV1alpha::ListDomainMappingsResponse]
409
+ #
410
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
411
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
412
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
413
+ def list_app_domain_mappings(apps_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
414
+ command = make_simple_command(:get, 'v1alpha/apps/{appsId}/domainMappings', options)
415
+ command.response_representation = Google::Apis::AppengineV1alpha::ListDomainMappingsResponse::Representation
416
+ command.response_class = Google::Apis::AppengineV1alpha::ListDomainMappingsResponse
417
+ command.params['appsId'] = apps_id unless apps_id.nil?
418
+ command.query['pageSize'] = page_size unless page_size.nil?
419
+ command.query['pageToken'] = page_token unless page_token.nil?
420
+ command.query['fields'] = fields unless fields.nil?
421
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
422
+ execute_or_queue_command(command, &block)
423
+ end
424
+
425
+ # Updates the specified domain mapping. To map an SSL certificate to a domain
426
+ # mapping, update certificate_id to point to an AuthorizedCertificate resource.
427
+ # A user must be authorized to administer the associated domain in order to
428
+ # update a DomainMapping resource.
429
+ # @param [String] apps_id
430
+ # Part of `name`. Name of the resource to update. Example: apps/myapp/
431
+ # domainMappings/example.com.
432
+ # @param [String] domain_mappings_id
433
+ # Part of `name`. See documentation of `appsId`.
434
+ # @param [Google::Apis::AppengineV1alpha::DomainMapping] domain_mapping_object
435
+ # @param [Boolean] no_managed_certificate
436
+ # Whether a managed certificate should be provided by App Engine. If true, a
437
+ # certificate ID must be manually set in the DomainMapping resource to configure
438
+ # SSL for this domain. If false, a managed certificate will be provisioned and a
439
+ # certificate ID will be automatically populated. Only applicable if
440
+ # ssl_settings.certificate_id is specified in the update mask.
441
+ # @param [String] update_mask
442
+ # Standard field mask for the set of fields to be updated.
443
+ # @param [String] fields
444
+ # Selector specifying which fields to include in a partial response.
445
+ # @param [String] quota_user
446
+ # Available to use for quota purposes for server-side applications. Can be any
447
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
448
+ # @param [Google::Apis::RequestOptions] options
449
+ # Request-specific options
450
+ #
451
+ # @yield [result, err] Result & error if block supplied
452
+ # @yieldparam result [Google::Apis::AppengineV1alpha::Operation] parsed result object
453
+ # @yieldparam err [StandardError] error object if request failed
454
+ #
455
+ # @return [Google::Apis::AppengineV1alpha::Operation]
456
+ #
457
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
458
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
459
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
460
+ def patch_app_domain_mapping(apps_id, domain_mappings_id, domain_mapping_object = nil, no_managed_certificate: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
461
+ command = make_simple_command(:patch, 'v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}', options)
462
+ command.request_representation = Google::Apis::AppengineV1alpha::DomainMapping::Representation
463
+ command.request_object = domain_mapping_object
464
+ command.response_representation = Google::Apis::AppengineV1alpha::Operation::Representation
465
+ command.response_class = Google::Apis::AppengineV1alpha::Operation
466
+ command.params['appsId'] = apps_id unless apps_id.nil?
467
+ command.params['domainMappingsId'] = domain_mappings_id unless domain_mappings_id.nil?
468
+ command.query['noManagedCertificate'] = no_managed_certificate unless no_managed_certificate.nil?
469
+ command.query['updateMask'] = update_mask unless update_mask.nil?
470
+ command.query['fields'] = fields unless fields.nil?
471
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
472
+ execute_or_queue_command(command, &block)
473
+ end
474
+
475
+ # Gets information about a location.
476
+ # @param [String] apps_id
477
+ # Part of `name`. Resource name for the location.
478
+ # @param [String] locations_id
479
+ # Part of `name`. See documentation of `appsId`.
480
+ # @param [String] fields
481
+ # Selector specifying which fields to include in a partial response.
482
+ # @param [String] quota_user
483
+ # Available to use for quota purposes for server-side applications. Can be any
484
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
485
+ # @param [Google::Apis::RequestOptions] options
486
+ # Request-specific options
487
+ #
488
+ # @yield [result, err] Result & error if block supplied
489
+ # @yieldparam result [Google::Apis::AppengineV1alpha::Location] parsed result object
490
+ # @yieldparam err [StandardError] error object if request failed
491
+ #
492
+ # @return [Google::Apis::AppengineV1alpha::Location]
493
+ #
494
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
495
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
496
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
497
+ def get_app_location(apps_id, locations_id, fields: nil, quota_user: nil, options: nil, &block)
498
+ command = make_simple_command(:get, 'v1alpha/apps/{appsId}/locations/{locationsId}', options)
499
+ command.response_representation = Google::Apis::AppengineV1alpha::Location::Representation
500
+ command.response_class = Google::Apis::AppengineV1alpha::Location
501
+ command.params['appsId'] = apps_id unless apps_id.nil?
502
+ command.params['locationsId'] = locations_id unless locations_id.nil?
503
+ command.query['fields'] = fields unless fields.nil?
504
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
505
+ execute_or_queue_command(command, &block)
506
+ end
507
+
508
+ # Lists information about the supported locations for this service.
509
+ # @param [String] apps_id
510
+ # Part of `name`. The resource that owns the locations collection, if applicable.
511
+ # @param [String] filter
512
+ # The standard list filter.
513
+ # @param [Fixnum] page_size
514
+ # The standard list page size.
515
+ # @param [String] page_token
516
+ # The standard list page token.
517
+ # @param [String] fields
518
+ # Selector specifying which fields to include in a partial response.
519
+ # @param [String] quota_user
520
+ # Available to use for quota purposes for server-side applications. Can be any
521
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
522
+ # @param [Google::Apis::RequestOptions] options
523
+ # Request-specific options
524
+ #
525
+ # @yield [result, err] Result & error if block supplied
526
+ # @yieldparam result [Google::Apis::AppengineV1alpha::ListLocationsResponse] parsed result object
527
+ # @yieldparam err [StandardError] error object if request failed
528
+ #
529
+ # @return [Google::Apis::AppengineV1alpha::ListLocationsResponse]
530
+ #
531
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
532
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
533
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
534
+ def list_app_locations(apps_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
535
+ command = make_simple_command(:get, 'v1alpha/apps/{appsId}/locations', options)
536
+ command.response_representation = Google::Apis::AppengineV1alpha::ListLocationsResponse::Representation
537
+ command.response_class = Google::Apis::AppengineV1alpha::ListLocationsResponse
538
+ command.params['appsId'] = apps_id unless apps_id.nil?
539
+ command.query['filter'] = filter unless filter.nil?
540
+ command.query['pageSize'] = page_size unless page_size.nil?
541
+ command.query['pageToken'] = page_token unless page_token.nil?
542
+ command.query['fields'] = fields unless fields.nil?
543
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
544
+ execute_or_queue_command(command, &block)
545
+ end
546
+
547
+ # Gets the latest state of a long-running operation. Clients can use this method
548
+ # to poll the operation result at intervals as recommended by the API service.
549
+ # @param [String] apps_id
550
+ # Part of `name`. The name of the operation resource.
551
+ # @param [String] operations_id
552
+ # Part of `name`. See documentation of `appsId`.
553
+ # @param [String] fields
554
+ # Selector specifying which fields to include in a partial response.
555
+ # @param [String] quota_user
556
+ # Available to use for quota purposes for server-side applications. Can be any
557
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
558
+ # @param [Google::Apis::RequestOptions] options
559
+ # Request-specific options
560
+ #
561
+ # @yield [result, err] Result & error if block supplied
562
+ # @yieldparam result [Google::Apis::AppengineV1alpha::Operation] parsed result object
563
+ # @yieldparam err [StandardError] error object if request failed
564
+ #
565
+ # @return [Google::Apis::AppengineV1alpha::Operation]
566
+ #
567
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
568
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
569
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
570
+ def get_app_operation(apps_id, operations_id, fields: nil, quota_user: nil, options: nil, &block)
571
+ command = make_simple_command(:get, 'v1alpha/apps/{appsId}/operations/{operationsId}', options)
572
+ command.response_representation = Google::Apis::AppengineV1alpha::Operation::Representation
573
+ command.response_class = Google::Apis::AppengineV1alpha::Operation
574
+ command.params['appsId'] = apps_id unless apps_id.nil?
575
+ command.params['operationsId'] = operations_id unless operations_id.nil?
576
+ command.query['fields'] = fields unless fields.nil?
577
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
578
+ execute_or_queue_command(command, &block)
579
+ end
580
+
581
+ # Lists operations that match the specified filter in the request. If the server
582
+ # doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
583
+ # allows API services to override the binding to use different resource name
584
+ # schemes, such as users/*/operations. To override the binding, API services can
585
+ # add a binding such as "/v1/`name=users/*`/operations" to their service
586
+ # configuration. For backwards compatibility, the default name includes the
587
+ # operations collection id, however overriding users must ensure the name
588
+ # binding is the parent resource, without the operations collection id.
589
+ # @param [String] apps_id
590
+ # Part of `name`. The name of the operation's parent resource.
591
+ # @param [String] filter
592
+ # The standard list filter.
593
+ # @param [Fixnum] page_size
594
+ # The standard list page size.
595
+ # @param [String] page_token
596
+ # The standard list page token.
597
+ # @param [String] fields
598
+ # Selector specifying which fields to include in a partial response.
599
+ # @param [String] quota_user
600
+ # Available to use for quota purposes for server-side applications. Can be any
601
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
602
+ # @param [Google::Apis::RequestOptions] options
603
+ # Request-specific options
604
+ #
605
+ # @yield [result, err] Result & error if block supplied
606
+ # @yieldparam result [Google::Apis::AppengineV1alpha::ListOperationsResponse] parsed result object
607
+ # @yieldparam err [StandardError] error object if request failed
608
+ #
609
+ # @return [Google::Apis::AppengineV1alpha::ListOperationsResponse]
610
+ #
611
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
612
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
613
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
614
+ def list_app_operations(apps_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
615
+ command = make_simple_command(:get, 'v1alpha/apps/{appsId}/operations', options)
616
+ command.response_representation = Google::Apis::AppengineV1alpha::ListOperationsResponse::Representation
617
+ command.response_class = Google::Apis::AppengineV1alpha::ListOperationsResponse
618
+ command.params['appsId'] = apps_id unless apps_id.nil?
619
+ command.query['filter'] = filter unless filter.nil?
620
+ command.query['pageSize'] = page_size unless page_size.nil?
621
+ command.query['pageToken'] = page_token unless page_token.nil?
622
+ command.query['fields'] = fields unless fields.nil?
623
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
624
+ execute_or_queue_command(command, &block)
625
+ end
626
+
627
+ protected
628
+
629
+ def apply_command_defaults(command)
630
+ command.query['key'] = key unless key.nil?
631
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
632
+ end
633
+ end
634
+ end
635
+ end
636
+ end