google-apis-firebasehosting_v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1764 @@
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 FirebasehostingV1beta1
23
+ # Firebase Hosting API
24
+ #
25
+ # The Firebase Hosting REST API enables programmatic and customizable
26
+ # deployments to your Firebase-hosted sites. Use this REST API to deploy new or
27
+ # updated hosting configurations and content files.
28
+ #
29
+ # @example
30
+ # require 'google/apis/firebasehosting_v1beta1'
31
+ #
32
+ # Firebasehosting = Google::Apis::FirebasehostingV1beta1 # Alias the module
33
+ # service = Firebasehosting::FirebaseHostingService.new
34
+ #
35
+ # @see https://firebase.google.com/docs/hosting/
36
+ class FirebaseHostingService < Google::Apis::Core::BaseService
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('https://firebasehosting.googleapis.com/', '',
49
+ client_name: 'google-apis-firebasehosting_v1beta1',
50
+ client_version: Google::Apis::FirebasehostingV1beta1::GEM_VERSION)
51
+ @batch_path = 'batch'
52
+ end
53
+
54
+ # Gets the latest state of a long-running operation. Clients can use this method
55
+ # to poll the operation result at intervals as recommended by the API service.
56
+ # @param [String] name
57
+ # The name of the operation resource.
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
60
+ # @param [String] quota_user
61
+ # Available to use for quota purposes for server-side applications. Can be any
62
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
63
+ # @param [Google::Apis::RequestOptions] options
64
+ # Request-specific options
65
+ #
66
+ # @yield [result, err] Result & error if block supplied
67
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Operation] parsed result object
68
+ # @yieldparam err [StandardError] error object if request failed
69
+ #
70
+ # @return [Google::Apis::FirebasehostingV1beta1::Operation]
71
+ #
72
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
75
+ def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
76
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
77
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Operation::Representation
78
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Operation
79
+ command.params['name'] = name unless name.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
+ # Gets the Hosting metadata for a specific site.
86
+ # @param [String] name
87
+ # Required. The site for which to get the SiteConfig, in the format: sites/ site-
88
+ # name/config
89
+ # @param [String] fields
90
+ # Selector specifying which fields to include in a partial response.
91
+ # @param [String] quota_user
92
+ # Available to use for quota purposes for server-side applications. Can be any
93
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
94
+ # @param [Google::Apis::RequestOptions] options
95
+ # Request-specific options
96
+ #
97
+ # @yield [result, err] Result & error if block supplied
98
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::SiteConfig] parsed result object
99
+ # @yieldparam err [StandardError] error object if request failed
100
+ #
101
+ # @return [Google::Apis::FirebasehostingV1beta1::SiteConfig]
102
+ #
103
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
104
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
105
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
106
+ def get_project_site_config(name, fields: nil, quota_user: nil, options: nil, &block)
107
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
108
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::SiteConfig::Representation
109
+ command.response_class = Google::Apis::FirebasehostingV1beta1::SiteConfig
110
+ command.params['name'] = name unless name.nil?
111
+ command.query['fields'] = fields unless fields.nil?
112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
113
+ execute_or_queue_command(command, &block)
114
+ end
115
+
116
+ # Sets the Hosting metadata for a specific site.
117
+ # @param [String] name
118
+ # Required. The site for which to update the SiteConfig, in the format: sites/
119
+ # site-name/config
120
+ # @param [Google::Apis::FirebasehostingV1beta1::SiteConfig] site_config_object
121
+ # @param [String] update_mask
122
+ # A set of field names from your [site configuration](../sites.SiteConfig) that
123
+ # you want to update. A field will be overwritten if, and only if, it's in the
124
+ # mask. If a mask is not provided then a default mask of only [`max_versions`](..
125
+ # /sites.SiteConfig.max_versions) will be used.
126
+ # @param [String] fields
127
+ # Selector specifying which fields to include in a partial response.
128
+ # @param [String] quota_user
129
+ # Available to use for quota purposes for server-side applications. Can be any
130
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
131
+ # @param [Google::Apis::RequestOptions] options
132
+ # Request-specific options
133
+ #
134
+ # @yield [result, err] Result & error if block supplied
135
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::SiteConfig] parsed result object
136
+ # @yieldparam err [StandardError] error object if request failed
137
+ #
138
+ # @return [Google::Apis::FirebasehostingV1beta1::SiteConfig]
139
+ #
140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
143
+ def update_project_site_config(name, site_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
144
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
145
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::SiteConfig::Representation
146
+ command.request_object = site_config_object
147
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::SiteConfig::Representation
148
+ command.response_class = Google::Apis::FirebasehostingV1beta1::SiteConfig
149
+ command.params['name'] = name unless name.nil?
150
+ command.query['updateMask'] = update_mask unless update_mask.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
+ # Creates a new channel in the specified site.
157
+ # @param [String] parent
158
+ # Required. The site in which this channel should be created.
159
+ # @param [Google::Apis::FirebasehostingV1beta1::Channel] channel_object
160
+ # @param [String] channel_id
161
+ # Required. Immutable. A unique id within the site to identify the channel.
162
+ # @param [String] fields
163
+ # Selector specifying which fields to include in a partial response.
164
+ # @param [String] quota_user
165
+ # Available to use for quota purposes for server-side applications. Can be any
166
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
167
+ # @param [Google::Apis::RequestOptions] options
168
+ # Request-specific options
169
+ #
170
+ # @yield [result, err] Result & error if block supplied
171
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Channel] parsed result object
172
+ # @yieldparam err [StandardError] error object if request failed
173
+ #
174
+ # @return [Google::Apis::FirebasehostingV1beta1::Channel]
175
+ #
176
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
177
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
178
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
179
+ def create_project_site_channel(parent, channel_object = nil, channel_id: nil, fields: nil, quota_user: nil, options: nil, &block)
180
+ command = make_simple_command(:post, 'v1beta1/{+parent}/channels', options)
181
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Channel::Representation
182
+ command.request_object = channel_object
183
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Channel::Representation
184
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Channel
185
+ command.params['parent'] = parent unless parent.nil?
186
+ command.query['channelId'] = channel_id unless channel_id.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
+ # Deletes a channel of a site. The `live` channel cannot be deleted.
193
+ # @param [String] name
194
+ # Required. The fully-qualified identifier for the site.
195
+ # @param [String] fields
196
+ # Selector specifying which fields to include in a partial response.
197
+ # @param [String] quota_user
198
+ # Available to use for quota purposes for server-side applications. Can be any
199
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
200
+ # @param [Google::Apis::RequestOptions] options
201
+ # Request-specific options
202
+ #
203
+ # @yield [result, err] Result & error if block supplied
204
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Empty] parsed result object
205
+ # @yieldparam err [StandardError] error object if request failed
206
+ #
207
+ # @return [Google::Apis::FirebasehostingV1beta1::Empty]
208
+ #
209
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
210
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
211
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
212
+ def delete_project_site_channel(name, fields: nil, quota_user: nil, options: nil, &block)
213
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
214
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Empty::Representation
215
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Empty
216
+ command.params['name'] = name unless name.nil?
217
+ command.query['fields'] = fields unless fields.nil?
218
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
219
+ execute_or_queue_command(command, &block)
220
+ end
221
+
222
+ # Retrieves information for the specified channel of a site.
223
+ # @param [String] name
224
+ # Required. The fully-qualified identifier for the channel.
225
+ # @param [String] fields
226
+ # Selector specifying which fields to include in a partial response.
227
+ # @param [String] quota_user
228
+ # Available to use for quota purposes for server-side applications. Can be any
229
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
230
+ # @param [Google::Apis::RequestOptions] options
231
+ # Request-specific options
232
+ #
233
+ # @yield [result, err] Result & error if block supplied
234
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Channel] parsed result object
235
+ # @yieldparam err [StandardError] error object if request failed
236
+ #
237
+ # @return [Google::Apis::FirebasehostingV1beta1::Channel]
238
+ #
239
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
240
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
241
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
242
+ def get_project_site_channel(name, fields: nil, quota_user: nil, options: nil, &block)
243
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
244
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Channel::Representation
245
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Channel
246
+ command.params['name'] = name unless name.nil?
247
+ command.query['fields'] = fields unless fields.nil?
248
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
249
+ execute_or_queue_command(command, &block)
250
+ end
251
+
252
+ # Lists the channels for the specified site. All sites have a default "live"
253
+ # channel.
254
+ # @param [String] parent
255
+ # Required. The site from which to list channels.
256
+ # @param [Fixnum] page_size
257
+ # The maximum number of versions to return. The service may return fewer than
258
+ # this value. If unspecified, at most 25 channels will be returned. The maximum
259
+ # value is 100; valuupdateses above 100 will be coerced to 100
260
+ # @param [String] page_token
261
+ # The next_page_token from a previous request, if provided.
262
+ # @param [String] fields
263
+ # Selector specifying which fields to include in a partial response.
264
+ # @param [String] quota_user
265
+ # Available to use for quota purposes for server-side applications. Can be any
266
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
267
+ # @param [Google::Apis::RequestOptions] options
268
+ # Request-specific options
269
+ #
270
+ # @yield [result, err] Result & error if block supplied
271
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListChannelsResponse] parsed result object
272
+ # @yieldparam err [StandardError] error object if request failed
273
+ #
274
+ # @return [Google::Apis::FirebasehostingV1beta1::ListChannelsResponse]
275
+ #
276
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
277
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
278
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
279
+ def list_project_site_channels(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
280
+ command = make_simple_command(:get, 'v1beta1/{+parent}/channels', options)
281
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::ListChannelsResponse::Representation
282
+ command.response_class = Google::Apis::FirebasehostingV1beta1::ListChannelsResponse
283
+ command.params['parent'] = parent unless parent.nil?
284
+ command.query['pageSize'] = page_size unless page_size.nil?
285
+ command.query['pageToken'] = page_token unless page_token.nil?
286
+ command.query['fields'] = fields unless fields.nil?
287
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
288
+ execute_or_queue_command(command, &block)
289
+ end
290
+
291
+ # Updates information for the specified channel of a site. This method will
292
+ # implicitly create a channel if it doesn't exist.
293
+ # @param [String] name
294
+ # The fully-qualified identifier of the Channel.
295
+ # @param [Google::Apis::FirebasehostingV1beta1::Channel] channel_object
296
+ # @param [String] update_mask
297
+ # A comma-separated list of fields to be updated in this request.
298
+ # @param [String] fields
299
+ # Selector specifying which fields to include in a partial response.
300
+ # @param [String] quota_user
301
+ # Available to use for quota purposes for server-side applications. Can be any
302
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
303
+ # @param [Google::Apis::RequestOptions] options
304
+ # Request-specific options
305
+ #
306
+ # @yield [result, err] Result & error if block supplied
307
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Channel] parsed result object
308
+ # @yieldparam err [StandardError] error object if request failed
309
+ #
310
+ # @return [Google::Apis::FirebasehostingV1beta1::Channel]
311
+ #
312
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
313
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
314
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
315
+ def patch_project_site_channel(name, channel_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
316
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
317
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Channel::Representation
318
+ command.request_object = channel_object
319
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Channel::Representation
320
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Channel
321
+ command.params['name'] = name unless name.nil?
322
+ command.query['updateMask'] = update_mask unless update_mask.nil?
323
+ command.query['fields'] = fields unless fields.nil?
324
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
325
+ execute_or_queue_command(command, &block)
326
+ end
327
+
328
+ # Creates a new release which makes the content of the specified version
329
+ # actively display on the appropriate URL(s).
330
+ # @param [String] parent
331
+ # Required. The site that the release belongs to, in the format: sites/ site-
332
+ # name
333
+ # @param [Google::Apis::FirebasehostingV1beta1::Release] release_object
334
+ # @param [String] version_name
335
+ # The unique identifier for a version, in the format: /sites/site-name /versions/
336
+ # versionID The site-name in this version identifier must match the site-name in
337
+ # the `parent` parameter. This query parameter must be empty if the `type` field
338
+ # in the request body is `SITE_DISABLE`.
339
+ # @param [String] fields
340
+ # Selector specifying which fields to include in a partial response.
341
+ # @param [String] quota_user
342
+ # Available to use for quota purposes for server-side applications. Can be any
343
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
344
+ # @param [Google::Apis::RequestOptions] options
345
+ # Request-specific options
346
+ #
347
+ # @yield [result, err] Result & error if block supplied
348
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Release] parsed result object
349
+ # @yieldparam err [StandardError] error object if request failed
350
+ #
351
+ # @return [Google::Apis::FirebasehostingV1beta1::Release]
352
+ #
353
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
354
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
355
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
356
+ def create_project_site_channel_release(parent, release_object = nil, version_name: nil, fields: nil, quota_user: nil, options: nil, &block)
357
+ command = make_simple_command(:post, 'v1beta1/{+parent}/releases', options)
358
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Release::Representation
359
+ command.request_object = release_object
360
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Release::Representation
361
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Release
362
+ command.params['parent'] = parent unless parent.nil?
363
+ command.query['versionName'] = version_name unless version_name.nil?
364
+ command.query['fields'] = fields unless fields.nil?
365
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
366
+ execute_or_queue_command(command, &block)
367
+ end
368
+
369
+ # Lists the releases that have been created on the specified site.
370
+ # @param [String] parent
371
+ # Required. The parent for which to list files, in the format: sites/site-name
372
+ # @param [Fixnum] page_size
373
+ # The page size to return. Defaults to 100.
374
+ # @param [String] page_token
375
+ # The next_page_token from a previous request, if provided.
376
+ # @param [String] fields
377
+ # Selector specifying which fields to include in a partial response.
378
+ # @param [String] quota_user
379
+ # Available to use for quota purposes for server-side applications. Can be any
380
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
381
+ # @param [Google::Apis::RequestOptions] options
382
+ # Request-specific options
383
+ #
384
+ # @yield [result, err] Result & error if block supplied
385
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListReleasesResponse] parsed result object
386
+ # @yieldparam err [StandardError] error object if request failed
387
+ #
388
+ # @return [Google::Apis::FirebasehostingV1beta1::ListReleasesResponse]
389
+ #
390
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
391
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
392
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
393
+ def list_project_site_channel_releases(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
394
+ command = make_simple_command(:get, 'v1beta1/{+parent}/releases', options)
395
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::ListReleasesResponse::Representation
396
+ command.response_class = Google::Apis::FirebasehostingV1beta1::ListReleasesResponse
397
+ command.params['parent'] = parent unless parent.nil?
398
+ command.query['pageSize'] = page_size unless page_size.nil?
399
+ command.query['pageToken'] = page_token unless page_token.nil?
400
+ command.query['fields'] = fields unless fields.nil?
401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
402
+ execute_or_queue_command(command, &block)
403
+ end
404
+
405
+ # Creates a domain mapping on the specified site.
406
+ # @param [String] parent
407
+ # Required. The parent to create the domain association for, in the format:
408
+ # sites/site-name
409
+ # @param [Google::Apis::FirebasehostingV1beta1::Domain] domain_object
410
+ # @param [String] fields
411
+ # Selector specifying which fields to include in a partial response.
412
+ # @param [String] quota_user
413
+ # Available to use for quota purposes for server-side applications. Can be any
414
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
415
+ # @param [Google::Apis::RequestOptions] options
416
+ # Request-specific options
417
+ #
418
+ # @yield [result, err] Result & error if block supplied
419
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Domain] parsed result object
420
+ # @yieldparam err [StandardError] error object if request failed
421
+ #
422
+ # @return [Google::Apis::FirebasehostingV1beta1::Domain]
423
+ #
424
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
425
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
426
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
427
+ def create_project_site_domain(parent, domain_object = nil, fields: nil, quota_user: nil, options: nil, &block)
428
+ command = make_simple_command(:post, 'v1beta1/{+parent}/domains', options)
429
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
430
+ command.request_object = domain_object
431
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
432
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Domain
433
+ command.params['parent'] = parent unless parent.nil?
434
+ command.query['fields'] = fields unless fields.nil?
435
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
436
+ execute_or_queue_command(command, &block)
437
+ end
438
+
439
+ # Deletes the existing domain mapping on the specified site.
440
+ # @param [String] name
441
+ # Required. The name of the domain association to delete.
442
+ # @param [String] fields
443
+ # Selector specifying which fields to include in a partial response.
444
+ # @param [String] quota_user
445
+ # Available to use for quota purposes for server-side applications. Can be any
446
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
447
+ # @param [Google::Apis::RequestOptions] options
448
+ # Request-specific options
449
+ #
450
+ # @yield [result, err] Result & error if block supplied
451
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Empty] parsed result object
452
+ # @yieldparam err [StandardError] error object if request failed
453
+ #
454
+ # @return [Google::Apis::FirebasehostingV1beta1::Empty]
455
+ #
456
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
457
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
458
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
459
+ def delete_project_site_domain(name, fields: nil, quota_user: nil, options: nil, &block)
460
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
461
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Empty::Representation
462
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Empty
463
+ command.params['name'] = name unless name.nil?
464
+ command.query['fields'] = fields unless fields.nil?
465
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
466
+ execute_or_queue_command(command, &block)
467
+ end
468
+
469
+ # Gets a domain mapping on the specified site.
470
+ # @param [String] name
471
+ # Required. The name of the domain configuration to get.
472
+ # @param [String] fields
473
+ # Selector specifying which fields to include in a partial response.
474
+ # @param [String] quota_user
475
+ # Available to use for quota purposes for server-side applications. Can be any
476
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
477
+ # @param [Google::Apis::RequestOptions] options
478
+ # Request-specific options
479
+ #
480
+ # @yield [result, err] Result & error if block supplied
481
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Domain] parsed result object
482
+ # @yieldparam err [StandardError] error object if request failed
483
+ #
484
+ # @return [Google::Apis::FirebasehostingV1beta1::Domain]
485
+ #
486
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
487
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
488
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
489
+ def get_project_site_domain(name, fields: nil, quota_user: nil, options: nil, &block)
490
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
491
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
492
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Domain
493
+ command.params['name'] = name unless name.nil?
494
+ command.query['fields'] = fields unless fields.nil?
495
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
496
+ execute_or_queue_command(command, &block)
497
+ end
498
+
499
+ # Lists the domains for the specified site.
500
+ # @param [String] parent
501
+ # Required. The parent for which to list domains, in the format: sites/ site-
502
+ # name
503
+ # @param [Fixnum] page_size
504
+ # The page size to return. Defaults to 50.
505
+ # @param [String] page_token
506
+ # The next_page_token from a previous request, if provided.
507
+ # @param [String] fields
508
+ # Selector specifying which fields to include in a partial response.
509
+ # @param [String] quota_user
510
+ # Available to use for quota purposes for server-side applications. Can be any
511
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
512
+ # @param [Google::Apis::RequestOptions] options
513
+ # Request-specific options
514
+ #
515
+ # @yield [result, err] Result & error if block supplied
516
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListDomainsResponse] parsed result object
517
+ # @yieldparam err [StandardError] error object if request failed
518
+ #
519
+ # @return [Google::Apis::FirebasehostingV1beta1::ListDomainsResponse]
520
+ #
521
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
522
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
523
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
524
+ def list_project_site_domains(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
525
+ command = make_simple_command(:get, 'v1beta1/{+parent}/domains', options)
526
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::ListDomainsResponse::Representation
527
+ command.response_class = Google::Apis::FirebasehostingV1beta1::ListDomainsResponse
528
+ command.params['parent'] = parent unless parent.nil?
529
+ command.query['pageSize'] = page_size unless page_size.nil?
530
+ command.query['pageToken'] = page_token unless page_token.nil?
531
+ command.query['fields'] = fields unless fields.nil?
532
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
533
+ execute_or_queue_command(command, &block)
534
+ end
535
+
536
+ # Updates the specified domain mapping, creating the mapping as if it does not
537
+ # exist.
538
+ # @param [String] name
539
+ # Required. The name of the domain association to update or create, if an
540
+ # association doesn't already exist.
541
+ # @param [Google::Apis::FirebasehostingV1beta1::Domain] domain_object
542
+ # @param [String] fields
543
+ # Selector specifying which fields to include in a partial response.
544
+ # @param [String] quota_user
545
+ # Available to use for quota purposes for server-side applications. Can be any
546
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
547
+ # @param [Google::Apis::RequestOptions] options
548
+ # Request-specific options
549
+ #
550
+ # @yield [result, err] Result & error if block supplied
551
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Domain] parsed result object
552
+ # @yieldparam err [StandardError] error object if request failed
553
+ #
554
+ # @return [Google::Apis::FirebasehostingV1beta1::Domain]
555
+ #
556
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
557
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
558
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
559
+ def update_project_site_domain(name, domain_object = nil, fields: nil, quota_user: nil, options: nil, &block)
560
+ command = make_simple_command(:put, 'v1beta1/{+name}', options)
561
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
562
+ command.request_object = domain_object
563
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
564
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Domain
565
+ command.params['name'] = name unless name.nil?
566
+ command.query['fields'] = fields unless fields.nil?
567
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
568
+ execute_or_queue_command(command, &block)
569
+ end
570
+
571
+ # Creates a new release which makes the content of the specified version
572
+ # actively display on the appropriate URL(s).
573
+ # @param [String] parent
574
+ # Required. The site that the release belongs to, in the format: sites/ site-
575
+ # name
576
+ # @param [Google::Apis::FirebasehostingV1beta1::Release] release_object
577
+ # @param [String] version_name
578
+ # The unique identifier for a version, in the format: /sites/site-name /versions/
579
+ # versionID The site-name in this version identifier must match the site-name in
580
+ # the `parent` parameter. This query parameter must be empty if the `type` field
581
+ # in the request body is `SITE_DISABLE`.
582
+ # @param [String] fields
583
+ # Selector specifying which fields to include in a partial response.
584
+ # @param [String] quota_user
585
+ # Available to use for quota purposes for server-side applications. Can be any
586
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
587
+ # @param [Google::Apis::RequestOptions] options
588
+ # Request-specific options
589
+ #
590
+ # @yield [result, err] Result & error if block supplied
591
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Release] parsed result object
592
+ # @yieldparam err [StandardError] error object if request failed
593
+ #
594
+ # @return [Google::Apis::FirebasehostingV1beta1::Release]
595
+ #
596
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
597
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
598
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
599
+ def create_project_site_release(parent, release_object = nil, version_name: nil, fields: nil, quota_user: nil, options: nil, &block)
600
+ command = make_simple_command(:post, 'v1beta1/{+parent}/releases', options)
601
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Release::Representation
602
+ command.request_object = release_object
603
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Release::Representation
604
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Release
605
+ command.params['parent'] = parent unless parent.nil?
606
+ command.query['versionName'] = version_name unless version_name.nil?
607
+ command.query['fields'] = fields unless fields.nil?
608
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
609
+ execute_or_queue_command(command, &block)
610
+ end
611
+
612
+ # Lists the releases that have been created on the specified site.
613
+ # @param [String] parent
614
+ # Required. The parent for which to list files, in the format: sites/site-name
615
+ # @param [Fixnum] page_size
616
+ # The page size to return. Defaults to 100.
617
+ # @param [String] page_token
618
+ # The next_page_token from a previous request, if provided.
619
+ # @param [String] fields
620
+ # Selector specifying which fields to include in a partial response.
621
+ # @param [String] quota_user
622
+ # Available to use for quota purposes for server-side applications. Can be any
623
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
624
+ # @param [Google::Apis::RequestOptions] options
625
+ # Request-specific options
626
+ #
627
+ # @yield [result, err] Result & error if block supplied
628
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListReleasesResponse] parsed result object
629
+ # @yieldparam err [StandardError] error object if request failed
630
+ #
631
+ # @return [Google::Apis::FirebasehostingV1beta1::ListReleasesResponse]
632
+ #
633
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
634
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
635
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
636
+ def list_project_site_releases(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
637
+ command = make_simple_command(:get, 'v1beta1/{+parent}/releases', options)
638
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::ListReleasesResponse::Representation
639
+ command.response_class = Google::Apis::FirebasehostingV1beta1::ListReleasesResponse
640
+ command.params['parent'] = parent unless parent.nil?
641
+ command.query['pageSize'] = page_size unless page_size.nil?
642
+ command.query['pageToken'] = page_token unless page_token.nil?
643
+ command.query['fields'] = fields unless fields.nil?
644
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
645
+ execute_or_queue_command(command, &block)
646
+ end
647
+
648
+ # Creates a new version on the target site using the content of the specified
649
+ # version.
650
+ # @param [String] parent
651
+ # Required. The target site where the cloned version will reside, in the format:
652
+ # `sites/`site``
653
+ # @param [Google::Apis::FirebasehostingV1beta1::CloneVersionRequest] clone_version_request_object
654
+ # @param [String] fields
655
+ # Selector specifying which fields to include in a partial response.
656
+ # @param [String] quota_user
657
+ # Available to use for quota purposes for server-side applications. Can be any
658
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
659
+ # @param [Google::Apis::RequestOptions] options
660
+ # Request-specific options
661
+ #
662
+ # @yield [result, err] Result & error if block supplied
663
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Operation] parsed result object
664
+ # @yieldparam err [StandardError] error object if request failed
665
+ #
666
+ # @return [Google::Apis::FirebasehostingV1beta1::Operation]
667
+ #
668
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
669
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
670
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
671
+ def clone_project_site_version(parent, clone_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
672
+ command = make_simple_command(:post, 'v1beta1/{+parent}/versions:clone', options)
673
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::CloneVersionRequest::Representation
674
+ command.request_object = clone_version_request_object
675
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Operation::Representation
676
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Operation
677
+ command.params['parent'] = parent unless parent.nil?
678
+ command.query['fields'] = fields unless fields.nil?
679
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
680
+ execute_or_queue_command(command, &block)
681
+ end
682
+
683
+ # Creates a new version for a site.
684
+ # @param [String] parent
685
+ # Required. The parent to create the version for, in the format: sites/ site-
686
+ # name
687
+ # @param [Google::Apis::FirebasehostingV1beta1::Version] version_object
688
+ # @param [Fixnum] size_bytes
689
+ # The self-reported size of the version. This value is used for a pre-emptive
690
+ # quota check for legacy version uploads.
691
+ # @param [String] version_id
692
+ # A unique id for the new version. This is was only specified for legacy version
693
+ # creations, and should be blank.
694
+ # @param [String] fields
695
+ # Selector specifying which fields to include in a partial response.
696
+ # @param [String] quota_user
697
+ # Available to use for quota purposes for server-side applications. Can be any
698
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
699
+ # @param [Google::Apis::RequestOptions] options
700
+ # Request-specific options
701
+ #
702
+ # @yield [result, err] Result & error if block supplied
703
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Version] parsed result object
704
+ # @yieldparam err [StandardError] error object if request failed
705
+ #
706
+ # @return [Google::Apis::FirebasehostingV1beta1::Version]
707
+ #
708
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
709
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
710
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
711
+ def create_project_site_version(parent, version_object = nil, size_bytes: nil, version_id: nil, fields: nil, quota_user: nil, options: nil, &block)
712
+ command = make_simple_command(:post, 'v1beta1/{+parent}/versions', options)
713
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
714
+ command.request_object = version_object
715
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
716
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Version
717
+ command.params['parent'] = parent unless parent.nil?
718
+ command.query['sizeBytes'] = size_bytes unless size_bytes.nil?
719
+ command.query['versionId'] = version_id unless version_id.nil?
720
+ command.query['fields'] = fields unless fields.nil?
721
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
722
+ execute_or_queue_command(command, &block)
723
+ end
724
+
725
+ # Deletes the specified version.
726
+ # @param [String] name
727
+ # Required. The name of the version to be deleted, in the format: sites/ site-
728
+ # name/versions/versionID
729
+ # @param [String] fields
730
+ # Selector specifying which fields to include in a partial response.
731
+ # @param [String] quota_user
732
+ # Available to use for quota purposes for server-side applications. Can be any
733
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
734
+ # @param [Google::Apis::RequestOptions] options
735
+ # Request-specific options
736
+ #
737
+ # @yield [result, err] Result & error if block supplied
738
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Empty] parsed result object
739
+ # @yieldparam err [StandardError] error object if request failed
740
+ #
741
+ # @return [Google::Apis::FirebasehostingV1beta1::Empty]
742
+ #
743
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
744
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
745
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
746
+ def delete_project_site_version(name, fields: nil, quota_user: nil, options: nil, &block)
747
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
748
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Empty::Representation
749
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Empty
750
+ command.params['name'] = name unless name.nil?
751
+ command.query['fields'] = fields unless fields.nil?
752
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
753
+ execute_or_queue_command(command, &block)
754
+ end
755
+
756
+ # Lists the versions that have been created on the specified site. Will include
757
+ # filtering in the future.
758
+ # @param [String] parent
759
+ # Required. The parent for which to list files, in the format: sites/site-name
760
+ # @param [String] filter
761
+ # The filter string used to return a subset of versions in the response.
762
+ # Currently supported fields for filtering are: name, status, and create_time.
763
+ # Filter processing will be implemented in accordance with go/filtering.
764
+ # @param [Fixnum] page_size
765
+ # The maximum number of versions to return. The service may return fewer than
766
+ # this value. If unspecified, at most 25 versions will be returned. The maximum
767
+ # value is 100; values above 100 will be coerced to 100
768
+ # @param [String] page_token
769
+ # The next_page_token from a previous request, if provided.
770
+ # @param [String] fields
771
+ # Selector specifying which fields to include in a partial response.
772
+ # @param [String] quota_user
773
+ # Available to use for quota purposes for server-side applications. Can be any
774
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
775
+ # @param [Google::Apis::RequestOptions] options
776
+ # Request-specific options
777
+ #
778
+ # @yield [result, err] Result & error if block supplied
779
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListVersionsResponse] parsed result object
780
+ # @yieldparam err [StandardError] error object if request failed
781
+ #
782
+ # @return [Google::Apis::FirebasehostingV1beta1::ListVersionsResponse]
783
+ #
784
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
785
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
786
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
787
+ def list_project_site_versions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
788
+ command = make_simple_command(:get, 'v1beta1/{+parent}/versions', options)
789
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::ListVersionsResponse::Representation
790
+ command.response_class = Google::Apis::FirebasehostingV1beta1::ListVersionsResponse
791
+ command.params['parent'] = parent unless parent.nil?
792
+ command.query['filter'] = filter unless filter.nil?
793
+ command.query['pageSize'] = page_size unless page_size.nil?
794
+ command.query['pageToken'] = page_token unless page_token.nil?
795
+ command.query['fields'] = fields unless fields.nil?
796
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
797
+ execute_or_queue_command(command, &block)
798
+ end
799
+
800
+ # Updates the specified metadata for a version. Note that this method will fail
801
+ # with `FAILED_PRECONDITION` in the event of an invalid state transition. The
802
+ # only valid transition for a version is currently from a `CREATED` status to a `
803
+ # FINALIZED` status. Use [`DeleteVersion`](../sites.versions/delete) to set the
804
+ # status of a version to `DELETED`.
805
+ # @param [String] name
806
+ # The unique identifier for a version, in the format: sites/site-name /versions/
807
+ # versionID This name is provided in the response body when you call the [`
808
+ # CreateVersion`](../sites.versions/create) endpoint.
809
+ # @param [Google::Apis::FirebasehostingV1beta1::Version] version_object
810
+ # @param [String] update_mask
811
+ # A set of field names from your [version](../sites.versions) that you want to
812
+ # update. A field will be overwritten if, and only if, it's in the mask. If a
813
+ # mask is not provided then a default mask of only [`status`](../sites.versions#
814
+ # Version.FIELDS.status) will be used.
815
+ # @param [String] fields
816
+ # Selector specifying which fields to include in a partial response.
817
+ # @param [String] quota_user
818
+ # Available to use for quota purposes for server-side applications. Can be any
819
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
820
+ # @param [Google::Apis::RequestOptions] options
821
+ # Request-specific options
822
+ #
823
+ # @yield [result, err] Result & error if block supplied
824
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Version] parsed result object
825
+ # @yieldparam err [StandardError] error object if request failed
826
+ #
827
+ # @return [Google::Apis::FirebasehostingV1beta1::Version]
828
+ #
829
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
830
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
831
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
832
+ def patch_project_site_version(name, version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
833
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
834
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
835
+ command.request_object = version_object
836
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
837
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Version
838
+ command.params['name'] = name unless name.nil?
839
+ command.query['updateMask'] = update_mask unless update_mask.nil?
840
+ command.query['fields'] = fields unless fields.nil?
841
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
842
+ execute_or_queue_command(command, &block)
843
+ end
844
+
845
+ # Adds content files to a version. Each file must be under 2 GB.
846
+ # @param [String] parent
847
+ # Required. The version to add files to, in the format: sites/site-name /
848
+ # versions/versionID
849
+ # @param [Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesRequest] populate_version_files_request_object
850
+ # @param [String] fields
851
+ # Selector specifying which fields to include in a partial response.
852
+ # @param [String] quota_user
853
+ # Available to use for quota purposes for server-side applications. Can be any
854
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
855
+ # @param [Google::Apis::RequestOptions] options
856
+ # Request-specific options
857
+ #
858
+ # @yield [result, err] Result & error if block supplied
859
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesResponse] parsed result object
860
+ # @yieldparam err [StandardError] error object if request failed
861
+ #
862
+ # @return [Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesResponse]
863
+ #
864
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
865
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
866
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
867
+ def populate_project_site_version_files(parent, populate_version_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
868
+ command = make_simple_command(:post, 'v1beta1/{+parent}:populateFiles', options)
869
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesRequest::Representation
870
+ command.request_object = populate_version_files_request_object
871
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesResponse::Representation
872
+ command.response_class = Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesResponse
873
+ command.params['parent'] = parent unless parent.nil?
874
+ command.query['fields'] = fields unless fields.nil?
875
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
876
+ execute_or_queue_command(command, &block)
877
+ end
878
+
879
+ # Lists the remaining files to be uploaded for the specified version.
880
+ # @param [String] parent
881
+ # Required. The parent to list files for, in the format: sites/site-name /
882
+ # versions/versionID
883
+ # @param [Fixnum] page_size
884
+ # The page size to return. Defaults to 1000.
885
+ # @param [String] page_token
886
+ # The next_page_token from a previous request, if provided. This will be the
887
+ # encoded version of a firebase.hosting.proto.metadata.ListFilesPageToken.
888
+ # @param [String] status
889
+ # The type of files in the version that should be listed.
890
+ # @param [String] fields
891
+ # Selector specifying which fields to include in a partial response.
892
+ # @param [String] quota_user
893
+ # Available to use for quota purposes for server-side applications. Can be any
894
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
895
+ # @param [Google::Apis::RequestOptions] options
896
+ # Request-specific options
897
+ #
898
+ # @yield [result, err] Result & error if block supplied
899
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListVersionFilesResponse] parsed result object
900
+ # @yieldparam err [StandardError] error object if request failed
901
+ #
902
+ # @return [Google::Apis::FirebasehostingV1beta1::ListVersionFilesResponse]
903
+ #
904
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
905
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
906
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
907
+ def list_project_site_version_files(parent, page_size: nil, page_token: nil, status: nil, fields: nil, quota_user: nil, options: nil, &block)
908
+ command = make_simple_command(:get, 'v1beta1/{+parent}/files', options)
909
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::ListVersionFilesResponse::Representation
910
+ command.response_class = Google::Apis::FirebasehostingV1beta1::ListVersionFilesResponse
911
+ command.params['parent'] = parent unless parent.nil?
912
+ command.query['pageSize'] = page_size unless page_size.nil?
913
+ command.query['pageToken'] = page_token unless page_token.nil?
914
+ command.query['status'] = status unless status.nil?
915
+ command.query['fields'] = fields unless fields.nil?
916
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
917
+ execute_or_queue_command(command, &block)
918
+ end
919
+
920
+ # Gets the Hosting metadata for a specific site.
921
+ # @param [String] name
922
+ # Required. The site for which to get the SiteConfig, in the format: sites/ site-
923
+ # name/config
924
+ # @param [String] fields
925
+ # Selector specifying which fields to include in a partial response.
926
+ # @param [String] quota_user
927
+ # Available to use for quota purposes for server-side applications. Can be any
928
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
929
+ # @param [Google::Apis::RequestOptions] options
930
+ # Request-specific options
931
+ #
932
+ # @yield [result, err] Result & error if block supplied
933
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::SiteConfig] parsed result object
934
+ # @yieldparam err [StandardError] error object if request failed
935
+ #
936
+ # @return [Google::Apis::FirebasehostingV1beta1::SiteConfig]
937
+ #
938
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
939
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
940
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
941
+ def get_site_config(name, fields: nil, quota_user: nil, options: nil, &block)
942
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
943
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::SiteConfig::Representation
944
+ command.response_class = Google::Apis::FirebasehostingV1beta1::SiteConfig
945
+ command.params['name'] = name unless name.nil?
946
+ command.query['fields'] = fields unless fields.nil?
947
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
948
+ execute_or_queue_command(command, &block)
949
+ end
950
+
951
+ # Sets the Hosting metadata for a specific site.
952
+ # @param [String] name
953
+ # Required. The site for which to update the SiteConfig, in the format: sites/
954
+ # site-name/config
955
+ # @param [Google::Apis::FirebasehostingV1beta1::SiteConfig] site_config_object
956
+ # @param [String] update_mask
957
+ # A set of field names from your [site configuration](../sites.SiteConfig) that
958
+ # you want to update. A field will be overwritten if, and only if, it's in the
959
+ # mask. If a mask is not provided then a default mask of only [`max_versions`](..
960
+ # /sites.SiteConfig.max_versions) will be used.
961
+ # @param [String] fields
962
+ # Selector specifying which fields to include in a partial response.
963
+ # @param [String] quota_user
964
+ # Available to use for quota purposes for server-side applications. Can be any
965
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
966
+ # @param [Google::Apis::RequestOptions] options
967
+ # Request-specific options
968
+ #
969
+ # @yield [result, err] Result & error if block supplied
970
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::SiteConfig] parsed result object
971
+ # @yieldparam err [StandardError] error object if request failed
972
+ #
973
+ # @return [Google::Apis::FirebasehostingV1beta1::SiteConfig]
974
+ #
975
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
976
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
977
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
978
+ def update_site_config(name, site_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
979
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
980
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::SiteConfig::Representation
981
+ command.request_object = site_config_object
982
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::SiteConfig::Representation
983
+ command.response_class = Google::Apis::FirebasehostingV1beta1::SiteConfig
984
+ command.params['name'] = name unless name.nil?
985
+ command.query['updateMask'] = update_mask unless update_mask.nil?
986
+ command.query['fields'] = fields unless fields.nil?
987
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
988
+ execute_or_queue_command(command, &block)
989
+ end
990
+
991
+ # Creates a new channel in the specified site.
992
+ # @param [String] parent
993
+ # Required. The site in which this channel should be created.
994
+ # @param [Google::Apis::FirebasehostingV1beta1::Channel] channel_object
995
+ # @param [String] channel_id
996
+ # Required. Immutable. A unique id within the site to identify the channel.
997
+ # @param [String] fields
998
+ # Selector specifying which fields to include in a partial response.
999
+ # @param [String] quota_user
1000
+ # Available to use for quota purposes for server-side applications. Can be any
1001
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1002
+ # @param [Google::Apis::RequestOptions] options
1003
+ # Request-specific options
1004
+ #
1005
+ # @yield [result, err] Result & error if block supplied
1006
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Channel] parsed result object
1007
+ # @yieldparam err [StandardError] error object if request failed
1008
+ #
1009
+ # @return [Google::Apis::FirebasehostingV1beta1::Channel]
1010
+ #
1011
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1012
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1013
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1014
+ def create_site_channel(parent, channel_object = nil, channel_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1015
+ command = make_simple_command(:post, 'v1beta1/{+parent}/channels', options)
1016
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Channel::Representation
1017
+ command.request_object = channel_object
1018
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Channel::Representation
1019
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Channel
1020
+ command.params['parent'] = parent unless parent.nil?
1021
+ command.query['channelId'] = channel_id unless channel_id.nil?
1022
+ command.query['fields'] = fields unless fields.nil?
1023
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1024
+ execute_or_queue_command(command, &block)
1025
+ end
1026
+
1027
+ # Deletes a channel of a site. The `live` channel cannot be deleted.
1028
+ # @param [String] name
1029
+ # Required. The fully-qualified identifier for the site.
1030
+ # @param [String] fields
1031
+ # Selector specifying which fields to include in a partial response.
1032
+ # @param [String] quota_user
1033
+ # Available to use for quota purposes for server-side applications. Can be any
1034
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1035
+ # @param [Google::Apis::RequestOptions] options
1036
+ # Request-specific options
1037
+ #
1038
+ # @yield [result, err] Result & error if block supplied
1039
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Empty] parsed result object
1040
+ # @yieldparam err [StandardError] error object if request failed
1041
+ #
1042
+ # @return [Google::Apis::FirebasehostingV1beta1::Empty]
1043
+ #
1044
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1045
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1046
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1047
+ def delete_site_channel(name, fields: nil, quota_user: nil, options: nil, &block)
1048
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1049
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Empty::Representation
1050
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Empty
1051
+ command.params['name'] = name unless name.nil?
1052
+ command.query['fields'] = fields unless fields.nil?
1053
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1054
+ execute_or_queue_command(command, &block)
1055
+ end
1056
+
1057
+ # Retrieves information for the specified channel of a site.
1058
+ # @param [String] name
1059
+ # Required. The fully-qualified identifier for the channel.
1060
+ # @param [String] fields
1061
+ # Selector specifying which fields to include in a partial response.
1062
+ # @param [String] quota_user
1063
+ # Available to use for quota purposes for server-side applications. Can be any
1064
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1065
+ # @param [Google::Apis::RequestOptions] options
1066
+ # Request-specific options
1067
+ #
1068
+ # @yield [result, err] Result & error if block supplied
1069
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Channel] parsed result object
1070
+ # @yieldparam err [StandardError] error object if request failed
1071
+ #
1072
+ # @return [Google::Apis::FirebasehostingV1beta1::Channel]
1073
+ #
1074
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1075
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1076
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1077
+ def get_site_channel(name, fields: nil, quota_user: nil, options: nil, &block)
1078
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1079
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Channel::Representation
1080
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Channel
1081
+ command.params['name'] = name unless name.nil?
1082
+ command.query['fields'] = fields unless fields.nil?
1083
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1084
+ execute_or_queue_command(command, &block)
1085
+ end
1086
+
1087
+ # Lists the channels for the specified site. All sites have a default "live"
1088
+ # channel.
1089
+ # @param [String] parent
1090
+ # Required. The site from which to list channels.
1091
+ # @param [Fixnum] page_size
1092
+ # The maximum number of versions to return. The service may return fewer than
1093
+ # this value. If unspecified, at most 25 channels will be returned. The maximum
1094
+ # value is 100; valuupdateses above 100 will be coerced to 100
1095
+ # @param [String] page_token
1096
+ # The next_page_token from a previous request, if provided.
1097
+ # @param [String] fields
1098
+ # Selector specifying which fields to include in a partial response.
1099
+ # @param [String] quota_user
1100
+ # Available to use for quota purposes for server-side applications. Can be any
1101
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1102
+ # @param [Google::Apis::RequestOptions] options
1103
+ # Request-specific options
1104
+ #
1105
+ # @yield [result, err] Result & error if block supplied
1106
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListChannelsResponse] parsed result object
1107
+ # @yieldparam err [StandardError] error object if request failed
1108
+ #
1109
+ # @return [Google::Apis::FirebasehostingV1beta1::ListChannelsResponse]
1110
+ #
1111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1114
+ def list_site_channels(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1115
+ command = make_simple_command(:get, 'v1beta1/{+parent}/channels', options)
1116
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::ListChannelsResponse::Representation
1117
+ command.response_class = Google::Apis::FirebasehostingV1beta1::ListChannelsResponse
1118
+ command.params['parent'] = parent unless parent.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
+ # Updates information for the specified channel of a site. This method will
1127
+ # implicitly create a channel if it doesn't exist.
1128
+ # @param [String] name
1129
+ # The fully-qualified identifier of the Channel.
1130
+ # @param [Google::Apis::FirebasehostingV1beta1::Channel] channel_object
1131
+ # @param [String] update_mask
1132
+ # A comma-separated list of fields to be updated in this request.
1133
+ # @param [String] fields
1134
+ # Selector specifying which fields to include in a partial response.
1135
+ # @param [String] quota_user
1136
+ # Available to use for quota purposes for server-side applications. Can be any
1137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1138
+ # @param [Google::Apis::RequestOptions] options
1139
+ # Request-specific options
1140
+ #
1141
+ # @yield [result, err] Result & error if block supplied
1142
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Channel] parsed result object
1143
+ # @yieldparam err [StandardError] error object if request failed
1144
+ #
1145
+ # @return [Google::Apis::FirebasehostingV1beta1::Channel]
1146
+ #
1147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1150
+ def patch_site_channel(name, channel_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1151
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1152
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Channel::Representation
1153
+ command.request_object = channel_object
1154
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Channel::Representation
1155
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Channel
1156
+ command.params['name'] = name unless name.nil?
1157
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1158
+ command.query['fields'] = fields unless fields.nil?
1159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1160
+ execute_or_queue_command(command, &block)
1161
+ end
1162
+
1163
+ # Creates a new release which makes the content of the specified version
1164
+ # actively display on the appropriate URL(s).
1165
+ # @param [String] parent
1166
+ # Required. The site that the release belongs to, in the format: sites/ site-
1167
+ # name
1168
+ # @param [Google::Apis::FirebasehostingV1beta1::Release] release_object
1169
+ # @param [String] version_name
1170
+ # The unique identifier for a version, in the format: /sites/site-name /versions/
1171
+ # versionID The site-name in this version identifier must match the site-name in
1172
+ # the `parent` parameter. This query parameter must be empty if the `type` field
1173
+ # in the request body is `SITE_DISABLE`.
1174
+ # @param [String] fields
1175
+ # Selector specifying which fields to include in a partial response.
1176
+ # @param [String] quota_user
1177
+ # Available to use for quota purposes for server-side applications. Can be any
1178
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1179
+ # @param [Google::Apis::RequestOptions] options
1180
+ # Request-specific options
1181
+ #
1182
+ # @yield [result, err] Result & error if block supplied
1183
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Release] parsed result object
1184
+ # @yieldparam err [StandardError] error object if request failed
1185
+ #
1186
+ # @return [Google::Apis::FirebasehostingV1beta1::Release]
1187
+ #
1188
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1189
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1190
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1191
+ def create_site_channel_release(parent, release_object = nil, version_name: nil, fields: nil, quota_user: nil, options: nil, &block)
1192
+ command = make_simple_command(:post, 'v1beta1/{+parent}/releases', options)
1193
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Release::Representation
1194
+ command.request_object = release_object
1195
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Release::Representation
1196
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Release
1197
+ command.params['parent'] = parent unless parent.nil?
1198
+ command.query['versionName'] = version_name unless version_name.nil?
1199
+ command.query['fields'] = fields unless fields.nil?
1200
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1201
+ execute_or_queue_command(command, &block)
1202
+ end
1203
+
1204
+ # Lists the releases that have been created on the specified site.
1205
+ # @param [String] parent
1206
+ # Required. The parent for which to list files, in the format: sites/site-name
1207
+ # @param [Fixnum] page_size
1208
+ # The page size to return. Defaults to 100.
1209
+ # @param [String] page_token
1210
+ # The next_page_token from a previous request, if provided.
1211
+ # @param [String] fields
1212
+ # Selector specifying which fields to include in a partial response.
1213
+ # @param [String] quota_user
1214
+ # Available to use for quota purposes for server-side applications. Can be any
1215
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1216
+ # @param [Google::Apis::RequestOptions] options
1217
+ # Request-specific options
1218
+ #
1219
+ # @yield [result, err] Result & error if block supplied
1220
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListReleasesResponse] parsed result object
1221
+ # @yieldparam err [StandardError] error object if request failed
1222
+ #
1223
+ # @return [Google::Apis::FirebasehostingV1beta1::ListReleasesResponse]
1224
+ #
1225
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1226
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1227
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1228
+ def list_site_channel_releases(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1229
+ command = make_simple_command(:get, 'v1beta1/{+parent}/releases', options)
1230
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::ListReleasesResponse::Representation
1231
+ command.response_class = Google::Apis::FirebasehostingV1beta1::ListReleasesResponse
1232
+ command.params['parent'] = parent unless parent.nil?
1233
+ command.query['pageSize'] = page_size unless page_size.nil?
1234
+ command.query['pageToken'] = page_token unless page_token.nil?
1235
+ command.query['fields'] = fields unless fields.nil?
1236
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1237
+ execute_or_queue_command(command, &block)
1238
+ end
1239
+
1240
+ # Creates a domain mapping on the specified site.
1241
+ # @param [String] parent
1242
+ # Required. The parent to create the domain association for, in the format:
1243
+ # sites/site-name
1244
+ # @param [Google::Apis::FirebasehostingV1beta1::Domain] domain_object
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::FirebasehostingV1beta1::Domain] parsed result object
1255
+ # @yieldparam err [StandardError] error object if request failed
1256
+ #
1257
+ # @return [Google::Apis::FirebasehostingV1beta1::Domain]
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 create_site_domain(parent, domain_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1263
+ command = make_simple_command(:post, 'v1beta1/{+parent}/domains', options)
1264
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
1265
+ command.request_object = domain_object
1266
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
1267
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Domain
1268
+ command.params['parent'] = parent unless parent.nil?
1269
+ command.query['fields'] = fields unless fields.nil?
1270
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1271
+ execute_or_queue_command(command, &block)
1272
+ end
1273
+
1274
+ # Deletes the existing domain mapping on the specified site.
1275
+ # @param [String] name
1276
+ # Required. The name of the domain association to delete.
1277
+ # @param [String] fields
1278
+ # Selector specifying which fields to include in a partial response.
1279
+ # @param [String] quota_user
1280
+ # Available to use for quota purposes for server-side applications. Can be any
1281
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1282
+ # @param [Google::Apis::RequestOptions] options
1283
+ # Request-specific options
1284
+ #
1285
+ # @yield [result, err] Result & error if block supplied
1286
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Empty] parsed result object
1287
+ # @yieldparam err [StandardError] error object if request failed
1288
+ #
1289
+ # @return [Google::Apis::FirebasehostingV1beta1::Empty]
1290
+ #
1291
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1292
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1293
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1294
+ def delete_site_domain(name, fields: nil, quota_user: nil, options: nil, &block)
1295
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1296
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Empty::Representation
1297
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Empty
1298
+ command.params['name'] = name unless name.nil?
1299
+ command.query['fields'] = fields unless fields.nil?
1300
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1301
+ execute_or_queue_command(command, &block)
1302
+ end
1303
+
1304
+ # Gets a domain mapping on the specified site.
1305
+ # @param [String] name
1306
+ # Required. The name of the domain configuration to get.
1307
+ # @param [String] fields
1308
+ # Selector specifying which fields to include in a partial response.
1309
+ # @param [String] quota_user
1310
+ # Available to use for quota purposes for server-side applications. Can be any
1311
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1312
+ # @param [Google::Apis::RequestOptions] options
1313
+ # Request-specific options
1314
+ #
1315
+ # @yield [result, err] Result & error if block supplied
1316
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Domain] parsed result object
1317
+ # @yieldparam err [StandardError] error object if request failed
1318
+ #
1319
+ # @return [Google::Apis::FirebasehostingV1beta1::Domain]
1320
+ #
1321
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1322
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1323
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1324
+ def get_site_domain(name, fields: nil, quota_user: nil, options: nil, &block)
1325
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1326
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
1327
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Domain
1328
+ command.params['name'] = name unless name.nil?
1329
+ command.query['fields'] = fields unless fields.nil?
1330
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1331
+ execute_or_queue_command(command, &block)
1332
+ end
1333
+
1334
+ # Lists the domains for the specified site.
1335
+ # @param [String] parent
1336
+ # Required. The parent for which to list domains, in the format: sites/ site-
1337
+ # name
1338
+ # @param [Fixnum] page_size
1339
+ # The page size to return. Defaults to 50.
1340
+ # @param [String] page_token
1341
+ # The next_page_token from a previous request, if provided.
1342
+ # @param [String] fields
1343
+ # Selector specifying which fields to include in a partial response.
1344
+ # @param [String] quota_user
1345
+ # Available to use for quota purposes for server-side applications. Can be any
1346
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1347
+ # @param [Google::Apis::RequestOptions] options
1348
+ # Request-specific options
1349
+ #
1350
+ # @yield [result, err] Result & error if block supplied
1351
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListDomainsResponse] parsed result object
1352
+ # @yieldparam err [StandardError] error object if request failed
1353
+ #
1354
+ # @return [Google::Apis::FirebasehostingV1beta1::ListDomainsResponse]
1355
+ #
1356
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1357
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1358
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1359
+ def list_site_domains(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1360
+ command = make_simple_command(:get, 'v1beta1/{+parent}/domains', options)
1361
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::ListDomainsResponse::Representation
1362
+ command.response_class = Google::Apis::FirebasehostingV1beta1::ListDomainsResponse
1363
+ command.params['parent'] = parent unless parent.nil?
1364
+ command.query['pageSize'] = page_size unless page_size.nil?
1365
+ command.query['pageToken'] = page_token unless page_token.nil?
1366
+ command.query['fields'] = fields unless fields.nil?
1367
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1368
+ execute_or_queue_command(command, &block)
1369
+ end
1370
+
1371
+ # Updates the specified domain mapping, creating the mapping as if it does not
1372
+ # exist.
1373
+ # @param [String] name
1374
+ # Required. The name of the domain association to update or create, if an
1375
+ # association doesn't already exist.
1376
+ # @param [Google::Apis::FirebasehostingV1beta1::Domain] domain_object
1377
+ # @param [String] fields
1378
+ # Selector specifying which fields to include in a partial response.
1379
+ # @param [String] quota_user
1380
+ # Available to use for quota purposes for server-side applications. Can be any
1381
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1382
+ # @param [Google::Apis::RequestOptions] options
1383
+ # Request-specific options
1384
+ #
1385
+ # @yield [result, err] Result & error if block supplied
1386
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Domain] parsed result object
1387
+ # @yieldparam err [StandardError] error object if request failed
1388
+ #
1389
+ # @return [Google::Apis::FirebasehostingV1beta1::Domain]
1390
+ #
1391
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1392
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1393
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1394
+ def update_site_domain(name, domain_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1395
+ command = make_simple_command(:put, 'v1beta1/{+name}', options)
1396
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
1397
+ command.request_object = domain_object
1398
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
1399
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Domain
1400
+ command.params['name'] = name unless name.nil?
1401
+ command.query['fields'] = fields unless fields.nil?
1402
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1403
+ execute_or_queue_command(command, &block)
1404
+ end
1405
+
1406
+ # Creates a new release which makes the content of the specified version
1407
+ # actively display on the appropriate URL(s).
1408
+ # @param [String] parent
1409
+ # Required. The site that the release belongs to, in the format: sites/ site-
1410
+ # name
1411
+ # @param [Google::Apis::FirebasehostingV1beta1::Release] release_object
1412
+ # @param [String] version_name
1413
+ # The unique identifier for a version, in the format: /sites/site-name /versions/
1414
+ # versionID The site-name in this version identifier must match the site-name in
1415
+ # the `parent` parameter. This query parameter must be empty if the `type` field
1416
+ # in the request body is `SITE_DISABLE`.
1417
+ # @param [String] fields
1418
+ # Selector specifying which fields to include in a partial response.
1419
+ # @param [String] quota_user
1420
+ # Available to use for quota purposes for server-side applications. Can be any
1421
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1422
+ # @param [Google::Apis::RequestOptions] options
1423
+ # Request-specific options
1424
+ #
1425
+ # @yield [result, err] Result & error if block supplied
1426
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Release] parsed result object
1427
+ # @yieldparam err [StandardError] error object if request failed
1428
+ #
1429
+ # @return [Google::Apis::FirebasehostingV1beta1::Release]
1430
+ #
1431
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1432
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1433
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1434
+ def create_site_release(parent, release_object = nil, version_name: nil, fields: nil, quota_user: nil, options: nil, &block)
1435
+ command = make_simple_command(:post, 'v1beta1/{+parent}/releases', options)
1436
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Release::Representation
1437
+ command.request_object = release_object
1438
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Release::Representation
1439
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Release
1440
+ command.params['parent'] = parent unless parent.nil?
1441
+ command.query['versionName'] = version_name unless version_name.nil?
1442
+ command.query['fields'] = fields unless fields.nil?
1443
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1444
+ execute_or_queue_command(command, &block)
1445
+ end
1446
+
1447
+ # Lists the releases that have been created on the specified site.
1448
+ # @param [String] parent
1449
+ # Required. The parent for which to list files, in the format: sites/site-name
1450
+ # @param [Fixnum] page_size
1451
+ # The page size to return. Defaults to 100.
1452
+ # @param [String] page_token
1453
+ # The next_page_token from a previous request, if provided.
1454
+ # @param [String] fields
1455
+ # Selector specifying which fields to include in a partial response.
1456
+ # @param [String] quota_user
1457
+ # Available to use for quota purposes for server-side applications. Can be any
1458
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1459
+ # @param [Google::Apis::RequestOptions] options
1460
+ # Request-specific options
1461
+ #
1462
+ # @yield [result, err] Result & error if block supplied
1463
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListReleasesResponse] parsed result object
1464
+ # @yieldparam err [StandardError] error object if request failed
1465
+ #
1466
+ # @return [Google::Apis::FirebasehostingV1beta1::ListReleasesResponse]
1467
+ #
1468
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1469
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1470
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1471
+ def list_site_releases(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1472
+ command = make_simple_command(:get, 'v1beta1/{+parent}/releases', options)
1473
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::ListReleasesResponse::Representation
1474
+ command.response_class = Google::Apis::FirebasehostingV1beta1::ListReleasesResponse
1475
+ command.params['parent'] = parent unless parent.nil?
1476
+ command.query['pageSize'] = page_size unless page_size.nil?
1477
+ command.query['pageToken'] = page_token unless page_token.nil?
1478
+ command.query['fields'] = fields unless fields.nil?
1479
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1480
+ execute_or_queue_command(command, &block)
1481
+ end
1482
+
1483
+ # Creates a new version on the target site using the content of the specified
1484
+ # version.
1485
+ # @param [String] parent
1486
+ # Required. The target site where the cloned version will reside, in the format:
1487
+ # `sites/`site``
1488
+ # @param [Google::Apis::FirebasehostingV1beta1::CloneVersionRequest] clone_version_request_object
1489
+ # @param [String] fields
1490
+ # Selector specifying which fields to include in a partial response.
1491
+ # @param [String] quota_user
1492
+ # Available to use for quota purposes for server-side applications. Can be any
1493
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1494
+ # @param [Google::Apis::RequestOptions] options
1495
+ # Request-specific options
1496
+ #
1497
+ # @yield [result, err] Result & error if block supplied
1498
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Operation] parsed result object
1499
+ # @yieldparam err [StandardError] error object if request failed
1500
+ #
1501
+ # @return [Google::Apis::FirebasehostingV1beta1::Operation]
1502
+ #
1503
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1504
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1505
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1506
+ def clone_site_version(parent, clone_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1507
+ command = make_simple_command(:post, 'v1beta1/{+parent}/versions:clone', options)
1508
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::CloneVersionRequest::Representation
1509
+ command.request_object = clone_version_request_object
1510
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Operation::Representation
1511
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Operation
1512
+ command.params['parent'] = parent unless parent.nil?
1513
+ command.query['fields'] = fields unless fields.nil?
1514
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1515
+ execute_or_queue_command(command, &block)
1516
+ end
1517
+
1518
+ # Creates a new version for a site.
1519
+ # @param [String] parent
1520
+ # Required. The parent to create the version for, in the format: sites/ site-
1521
+ # name
1522
+ # @param [Google::Apis::FirebasehostingV1beta1::Version] version_object
1523
+ # @param [Fixnum] size_bytes
1524
+ # The self-reported size of the version. This value is used for a pre-emptive
1525
+ # quota check for legacy version uploads.
1526
+ # @param [String] version_id
1527
+ # A unique id for the new version. This is was only specified for legacy version
1528
+ # creations, and should be blank.
1529
+ # @param [String] fields
1530
+ # Selector specifying which fields to include in a partial response.
1531
+ # @param [String] quota_user
1532
+ # Available to use for quota purposes for server-side applications. Can be any
1533
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1534
+ # @param [Google::Apis::RequestOptions] options
1535
+ # Request-specific options
1536
+ #
1537
+ # @yield [result, err] Result & error if block supplied
1538
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Version] parsed result object
1539
+ # @yieldparam err [StandardError] error object if request failed
1540
+ #
1541
+ # @return [Google::Apis::FirebasehostingV1beta1::Version]
1542
+ #
1543
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1544
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1545
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1546
+ def create_site_version(parent, version_object = nil, size_bytes: nil, version_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1547
+ command = make_simple_command(:post, 'v1beta1/{+parent}/versions', options)
1548
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
1549
+ command.request_object = version_object
1550
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
1551
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Version
1552
+ command.params['parent'] = parent unless parent.nil?
1553
+ command.query['sizeBytes'] = size_bytes unless size_bytes.nil?
1554
+ command.query['versionId'] = version_id unless version_id.nil?
1555
+ command.query['fields'] = fields unless fields.nil?
1556
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1557
+ execute_or_queue_command(command, &block)
1558
+ end
1559
+
1560
+ # Deletes the specified version.
1561
+ # @param [String] name
1562
+ # Required. The name of the version to be deleted, in the format: sites/ site-
1563
+ # name/versions/versionID
1564
+ # @param [String] fields
1565
+ # Selector specifying which fields to include in a partial response.
1566
+ # @param [String] quota_user
1567
+ # Available to use for quota purposes for server-side applications. Can be any
1568
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1569
+ # @param [Google::Apis::RequestOptions] options
1570
+ # Request-specific options
1571
+ #
1572
+ # @yield [result, err] Result & error if block supplied
1573
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Empty] parsed result object
1574
+ # @yieldparam err [StandardError] error object if request failed
1575
+ #
1576
+ # @return [Google::Apis::FirebasehostingV1beta1::Empty]
1577
+ #
1578
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1579
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1580
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1581
+ def delete_site_version(name, fields: nil, quota_user: nil, options: nil, &block)
1582
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1583
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Empty::Representation
1584
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Empty
1585
+ command.params['name'] = name unless name.nil?
1586
+ command.query['fields'] = fields unless fields.nil?
1587
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1588
+ execute_or_queue_command(command, &block)
1589
+ end
1590
+
1591
+ # Lists the versions that have been created on the specified site. Will include
1592
+ # filtering in the future.
1593
+ # @param [String] parent
1594
+ # Required. The parent for which to list files, in the format: sites/site-name
1595
+ # @param [String] filter
1596
+ # The filter string used to return a subset of versions in the response.
1597
+ # Currently supported fields for filtering are: name, status, and create_time.
1598
+ # Filter processing will be implemented in accordance with go/filtering.
1599
+ # @param [Fixnum] page_size
1600
+ # The maximum number of versions to return. The service may return fewer than
1601
+ # this value. If unspecified, at most 25 versions will be returned. The maximum
1602
+ # value is 100; values above 100 will be coerced to 100
1603
+ # @param [String] page_token
1604
+ # The next_page_token from a previous request, if provided.
1605
+ # @param [String] fields
1606
+ # Selector specifying which fields to include in a partial response.
1607
+ # @param [String] quota_user
1608
+ # Available to use for quota purposes for server-side applications. Can be any
1609
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1610
+ # @param [Google::Apis::RequestOptions] options
1611
+ # Request-specific options
1612
+ #
1613
+ # @yield [result, err] Result & error if block supplied
1614
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListVersionsResponse] parsed result object
1615
+ # @yieldparam err [StandardError] error object if request failed
1616
+ #
1617
+ # @return [Google::Apis::FirebasehostingV1beta1::ListVersionsResponse]
1618
+ #
1619
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1620
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1621
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1622
+ def list_site_versions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1623
+ command = make_simple_command(:get, 'v1beta1/{+parent}/versions', options)
1624
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::ListVersionsResponse::Representation
1625
+ command.response_class = Google::Apis::FirebasehostingV1beta1::ListVersionsResponse
1626
+ command.params['parent'] = parent unless parent.nil?
1627
+ command.query['filter'] = filter unless filter.nil?
1628
+ command.query['pageSize'] = page_size unless page_size.nil?
1629
+ command.query['pageToken'] = page_token unless page_token.nil?
1630
+ command.query['fields'] = fields unless fields.nil?
1631
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1632
+ execute_or_queue_command(command, &block)
1633
+ end
1634
+
1635
+ # Updates the specified metadata for a version. Note that this method will fail
1636
+ # with `FAILED_PRECONDITION` in the event of an invalid state transition. The
1637
+ # only valid transition for a version is currently from a `CREATED` status to a `
1638
+ # FINALIZED` status. Use [`DeleteVersion`](../sites.versions/delete) to set the
1639
+ # status of a version to `DELETED`.
1640
+ # @param [String] name
1641
+ # The unique identifier for a version, in the format: sites/site-name /versions/
1642
+ # versionID This name is provided in the response body when you call the [`
1643
+ # CreateVersion`](../sites.versions/create) endpoint.
1644
+ # @param [Google::Apis::FirebasehostingV1beta1::Version] version_object
1645
+ # @param [String] update_mask
1646
+ # A set of field names from your [version](../sites.versions) that you want to
1647
+ # update. A field will be overwritten if, and only if, it's in the mask. If a
1648
+ # mask is not provided then a default mask of only [`status`](../sites.versions#
1649
+ # Version.FIELDS.status) will be used.
1650
+ # @param [String] fields
1651
+ # Selector specifying which fields to include in a partial response.
1652
+ # @param [String] quota_user
1653
+ # Available to use for quota purposes for server-side applications. Can be any
1654
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1655
+ # @param [Google::Apis::RequestOptions] options
1656
+ # Request-specific options
1657
+ #
1658
+ # @yield [result, err] Result & error if block supplied
1659
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Version] parsed result object
1660
+ # @yieldparam err [StandardError] error object if request failed
1661
+ #
1662
+ # @return [Google::Apis::FirebasehostingV1beta1::Version]
1663
+ #
1664
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1665
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1666
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1667
+ def patch_site_version(name, version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1668
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1669
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
1670
+ command.request_object = version_object
1671
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
1672
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Version
1673
+ command.params['name'] = name unless name.nil?
1674
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1675
+ command.query['fields'] = fields unless fields.nil?
1676
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1677
+ execute_or_queue_command(command, &block)
1678
+ end
1679
+
1680
+ # Adds content files to a version. Each file must be under 2 GB.
1681
+ # @param [String] parent
1682
+ # Required. The version to add files to, in the format: sites/site-name /
1683
+ # versions/versionID
1684
+ # @param [Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesRequest] populate_version_files_request_object
1685
+ # @param [String] fields
1686
+ # Selector specifying which fields to include in a partial response.
1687
+ # @param [String] quota_user
1688
+ # Available to use for quota purposes for server-side applications. Can be any
1689
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1690
+ # @param [Google::Apis::RequestOptions] options
1691
+ # Request-specific options
1692
+ #
1693
+ # @yield [result, err] Result & error if block supplied
1694
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesResponse] parsed result object
1695
+ # @yieldparam err [StandardError] error object if request failed
1696
+ #
1697
+ # @return [Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesResponse]
1698
+ #
1699
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1700
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1701
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1702
+ def populate_site_version_files(parent, populate_version_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1703
+ command = make_simple_command(:post, 'v1beta1/{+parent}:populateFiles', options)
1704
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesRequest::Representation
1705
+ command.request_object = populate_version_files_request_object
1706
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesResponse::Representation
1707
+ command.response_class = Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesResponse
1708
+ command.params['parent'] = parent unless parent.nil?
1709
+ command.query['fields'] = fields unless fields.nil?
1710
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1711
+ execute_or_queue_command(command, &block)
1712
+ end
1713
+
1714
+ # Lists the remaining files to be uploaded for the specified version.
1715
+ # @param [String] parent
1716
+ # Required. The parent to list files for, in the format: sites/site-name /
1717
+ # versions/versionID
1718
+ # @param [Fixnum] page_size
1719
+ # The page size to return. Defaults to 1000.
1720
+ # @param [String] page_token
1721
+ # The next_page_token from a previous request, if provided. This will be the
1722
+ # encoded version of a firebase.hosting.proto.metadata.ListFilesPageToken.
1723
+ # @param [String] status
1724
+ # The type of files in the version that should be listed.
1725
+ # @param [String] fields
1726
+ # Selector specifying which fields to include in a partial response.
1727
+ # @param [String] quota_user
1728
+ # Available to use for quota purposes for server-side applications. Can be any
1729
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1730
+ # @param [Google::Apis::RequestOptions] options
1731
+ # Request-specific options
1732
+ #
1733
+ # @yield [result, err] Result & error if block supplied
1734
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListVersionFilesResponse] parsed result object
1735
+ # @yieldparam err [StandardError] error object if request failed
1736
+ #
1737
+ # @return [Google::Apis::FirebasehostingV1beta1::ListVersionFilesResponse]
1738
+ #
1739
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1740
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1741
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1742
+ def list_site_version_files(parent, page_size: nil, page_token: nil, status: nil, fields: nil, quota_user: nil, options: nil, &block)
1743
+ command = make_simple_command(:get, 'v1beta1/{+parent}/files', options)
1744
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::ListVersionFilesResponse::Representation
1745
+ command.response_class = Google::Apis::FirebasehostingV1beta1::ListVersionFilesResponse
1746
+ command.params['parent'] = parent unless parent.nil?
1747
+ command.query['pageSize'] = page_size unless page_size.nil?
1748
+ command.query['pageToken'] = page_token unless page_token.nil?
1749
+ command.query['status'] = status unless status.nil?
1750
+ command.query['fields'] = fields unless fields.nil?
1751
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1752
+ execute_or_queue_command(command, &block)
1753
+ end
1754
+
1755
+ protected
1756
+
1757
+ def apply_command_defaults(command)
1758
+ command.query['key'] = key unless key.nil?
1759
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1760
+ end
1761
+ end
1762
+ end
1763
+ end
1764
+ end