google-apis-firebasehosting_v1beta1 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4f3dfc0caa4eaab3f06ba10e98a992db9c9dcbb2698ce2d0c004226b47cc06a
4
- data.tar.gz: e3a16aa467f6091ffa22a14cc397b0cf77c1b2004277be8fdc290c0adbd1b806
3
+ metadata.gz: 6ea7800112109b88ceb9a1c0af9f27793c891b57af06fa108bfea45cb1009409
4
+ data.tar.gz: 17c9de2b89624c09b296136d5bdcb62d0387f043a9b6133ad1da07cefc77e7ce
5
5
  SHA512:
6
- metadata.gz: 9d0672c3a68e1d5e9199c71ab454d9285875edb798990078b7779356f5e2b8bf26a07ad8397354260c04196aa2f3ae0749fee802a10c844c8c83410cfcc6502b
7
- data.tar.gz: f077a396a1547a8073bcd97820e8833efcc91d887276ab71ceaa5a99170b82587a5882ea9bebf388740f09674c1c05da3d715504fba0b81b8ff47902bcd21bcf
6
+ metadata.gz: ee2585245626e2034c3e68c2d0609a91fbe76a62efc644122e5c0d1468ecddb14059fce936170f2cd5110e6ae747c0d3e54a54dcad3f6f821367cb5d847508dd
7
+ data.tar.gz: fca962391f67f62290d04deeeb1f22eebc7abc037186e33ab47754654824fe3129488eb0de0e110c03b71815a0b1f46ead9981bd824b75d6b9e9d0bb9c1f934d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-firebasehosting_v1beta1
2
2
 
3
+ ### v0.4.0 (2021-03-12)
4
+
5
+ * Regenerated from discovery document revision 20210311
6
+ * Regenerated using generator version 0.2.0
7
+
3
8
  ### v0.3.0 (2021-03-04)
4
9
 
5
10
  * Regenerated from discovery document revision 20210303
@@ -545,6 +545,34 @@ module Google
545
545
  end
546
546
  end
547
547
 
548
+ # The response from ListSites.
549
+ class ListSitesResponse
550
+ include Google::Apis::Core::Hashable
551
+
552
+ # A token returned when the list of results is too large to fit in a single
553
+ # response. If the string is empty, the response is the last or only page of
554
+ # results. Use the token in a follow-up call to `ListSites` to find the next
555
+ # group of Sites. Page tokens are short-lived and should not be stored.
556
+ # Corresponds to the JSON property `nextPageToken`
557
+ # @return [String]
558
+ attr_accessor :next_page_token
559
+
560
+ # A list of Site objects from the parent Firebase Project.
561
+ # Corresponds to the JSON property `sites`
562
+ # @return [Array<Google::Apis::FirebasehostingV1beta1::Site>]
563
+ attr_accessor :sites
564
+
565
+ def initialize(**args)
566
+ update!(**args)
567
+ end
568
+
569
+ # Update properties of this object
570
+ def update!(**args)
571
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
572
+ @sites = args[:sites] if args.key?(:sites)
573
+ end
574
+ end
575
+
548
576
  #
549
577
  class ListVersionFilesResponse
550
578
  include Google::Apis::Core::Hashable
@@ -985,6 +1013,52 @@ module Google
985
1013
  end
986
1014
  end
987
1015
 
1016
+ # A `Site` represents a Firebase Hosting Site.
1017
+ class Site
1018
+ include Google::Apis::Core::Hashable
1019
+
1020
+ # Optional. The ID of a Web App associated with the Site.
1021
+ # Corresponds to the JSON property `appId`
1022
+ # @return [String]
1023
+ attr_accessor :app_id
1024
+
1025
+ # Output only. The default URL for this Hosting Site.
1026
+ # Corresponds to the JSON property `defaultUrl`
1027
+ # @return [String]
1028
+ attr_accessor :default_url
1029
+
1030
+ # Optional. User-specified labels for the Hosting Site.
1031
+ # Corresponds to the JSON property `labels`
1032
+ # @return [Hash<String,String>]
1033
+ attr_accessor :labels
1034
+
1035
+ # Output only. The fully qualified resource name of the Hosting Site, e.g.: `
1036
+ # projects/`project-number`/sites/`site-id``.
1037
+ # Corresponds to the JSON property `name`
1038
+ # @return [String]
1039
+ attr_accessor :name
1040
+
1041
+ # Output only. The Hosting site type. There will always be a single DEFAULT_SITE,
1042
+ # which is created when Hosting is provisioned. All additional sites are
1043
+ # USER_SITE.
1044
+ # Corresponds to the JSON property `type`
1045
+ # @return [String]
1046
+ attr_accessor :type
1047
+
1048
+ def initialize(**args)
1049
+ update!(**args)
1050
+ end
1051
+
1052
+ # Update properties of this object
1053
+ def update!(**args)
1054
+ @app_id = args[:app_id] if args.key?(:app_id)
1055
+ @default_url = args[:default_url] if args.key?(:default_url)
1056
+ @labels = args[:labels] if args.key?(:labels)
1057
+ @name = args[:name] if args.key?(:name)
1058
+ @type = args[:type] if args.key?(:type)
1059
+ end
1060
+ end
1061
+
988
1062
  # A `SiteConfig` contains metadata associated with a specific site that controls
989
1063
  # Firebase Hosting serving behavior
990
1064
  class SiteConfig
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FirebasehostingV1beta1
18
18
  # Version of the google-apis-firebasehosting_v1beta1 gem
19
- GEM_VERSION = "0.3.0"
19
+ GEM_VERSION = "0.4.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210303"
25
+ REVISION = "20210311"
26
26
  end
27
27
  end
28
28
  end
@@ -112,6 +112,12 @@ module Google
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
+ class ListSitesResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
115
121
  class ListVersionFilesResponse
116
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
123
 
@@ -178,6 +184,12 @@ module Google
178
184
  include Google::Apis::Core::JsonObjectSupport
179
185
  end
180
186
 
187
+ class Site
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
181
193
  class SiteConfig
182
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
195
 
@@ -349,6 +361,15 @@ module Google
349
361
  end
350
362
  end
351
363
 
364
+ class ListSitesResponse
365
+ # @private
366
+ class Representation < Google::Apis::Core::JsonRepresentation
367
+ property :next_page_token, as: 'nextPageToken'
368
+ collection :sites, as: 'sites', class: Google::Apis::FirebasehostingV1beta1::Site, decorator: Google::Apis::FirebasehostingV1beta1::Site::Representation
369
+
370
+ end
371
+ end
372
+
352
373
  class ListVersionFilesResponse
353
374
  # @private
354
375
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -463,6 +484,17 @@ module Google
463
484
  end
464
485
  end
465
486
 
487
+ class Site
488
+ # @private
489
+ class Representation < Google::Apis::Core::JsonRepresentation
490
+ property :app_id, as: 'appId'
491
+ property :default_url, as: 'defaultUrl'
492
+ hash :labels, as: 'labels'
493
+ property :name, as: 'name'
494
+ property :type, as: 'type'
495
+ end
496
+ end
497
+
466
498
  class SiteConfig
467
499
  # @private
468
500
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -82,6 +82,108 @@ module Google
82
82
  execute_or_queue_command(command, &block)
83
83
  end
84
84
 
85
+ # Creates a new Site. Sites take several minutes to propagate through Firebase
86
+ # systems.
87
+ # @param [String] parent
88
+ # Required. The parent Project of a Site, e.g.: `projects/`project-number``.
89
+ # @param [Google::Apis::FirebasehostingV1beta1::Site] site_object
90
+ # @param [String] site_id
91
+ # Required. Immutable. A globally unique ID to identify the Site. The ID must
92
+ # also be a valid domain name label.
93
+ # @param [String] fields
94
+ # Selector specifying which fields to include in a partial response.
95
+ # @param [String] quota_user
96
+ # Available to use for quota purposes for server-side applications. Can be any
97
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
98
+ # @param [Google::Apis::RequestOptions] options
99
+ # Request-specific options
100
+ #
101
+ # @yield [result, err] Result & error if block supplied
102
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Site] parsed result object
103
+ # @yieldparam err [StandardError] error object if request failed
104
+ #
105
+ # @return [Google::Apis::FirebasehostingV1beta1::Site]
106
+ #
107
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
110
+ def create_project_site(parent, site_object = nil, site_id: nil, fields: nil, quota_user: nil, options: nil, &block)
111
+ command = make_simple_command(:post, 'v1beta1/{+parent}/sites', options)
112
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Site::Representation
113
+ command.request_object = site_object
114
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Site::Representation
115
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Site
116
+ command.params['parent'] = parent unless parent.nil?
117
+ command.query['siteId'] = site_id unless site_id.nil?
118
+ command.query['fields'] = fields unless fields.nil?
119
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
120
+ execute_or_queue_command(command, &block)
121
+ end
122
+
123
+ # Deletes a Site from the specified parent Project.
124
+ # @param [String] name
125
+ # Required. The fully qualified resource name of the Site, e.g.: `projects/`
126
+ # project-number`/sites/`site-id``.
127
+ # @param [String] fields
128
+ # Selector specifying which fields to include in a partial response.
129
+ # @param [String] quota_user
130
+ # Available to use for quota purposes for server-side applications. Can be any
131
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
132
+ # @param [Google::Apis::RequestOptions] options
133
+ # Request-specific options
134
+ #
135
+ # @yield [result, err] Result & error if block supplied
136
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Empty] parsed result object
137
+ # @yieldparam err [StandardError] error object if request failed
138
+ #
139
+ # @return [Google::Apis::FirebasehostingV1beta1::Empty]
140
+ #
141
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
142
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
143
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
144
+ def delete_project_site(name, fields: nil, quota_user: nil, options: nil, &block)
145
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
146
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Empty::Representation
147
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Empty
148
+ command.params['name'] = name unless name.nil?
149
+ command.query['fields'] = fields unless fields.nil?
150
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
151
+ execute_or_queue_command(command, &block)
152
+ end
153
+
154
+ # Gets the Site identified by the specified resource name.
155
+ # @param [String] name
156
+ # Required. The fully qualified resource name of the Site, e.g.: `projects/`
157
+ # project-number`/sites/`site-id``. As a `site-id` is a globally unique
158
+ # identifier, you can also use the unique sub-collection resource access pattern
159
+ # as well: `projects/-/sites/`site-id``.
160
+ # @param [String] fields
161
+ # Selector specifying which fields to include in a partial response.
162
+ # @param [String] quota_user
163
+ # Available to use for quota purposes for server-side applications. Can be any
164
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
165
+ # @param [Google::Apis::RequestOptions] options
166
+ # Request-specific options
167
+ #
168
+ # @yield [result, err] Result & error if block supplied
169
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Site] parsed result object
170
+ # @yieldparam err [StandardError] error object if request failed
171
+ #
172
+ # @return [Google::Apis::FirebasehostingV1beta1::Site]
173
+ #
174
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
175
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
176
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
177
+ def get_project_site(name, fields: nil, quota_user: nil, options: nil, &block)
178
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
179
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Site::Representation
180
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Site
181
+ command.params['name'] = name unless name.nil?
182
+ command.query['fields'] = fields unless fields.nil?
183
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
184
+ execute_or_queue_command(command, &block)
185
+ end
186
+
85
187
  # Gets the Hosting metadata for a specific site.
86
188
  # @param [String] name
87
189
  # Required. The site for which to get the SiteConfig, in the format: sites/ site-
@@ -113,6 +215,86 @@ module Google
113
215
  execute_or_queue_command(command, &block)
114
216
  end
115
217
 
218
+ # Lists each Site associated with the specified parent Project. Sites are
219
+ # returned in a consistent, but undefined, order to facilitate pagination. Site
220
+ # data might be out of sync by a few seconds. If you require up-to-date data,
221
+ # use GetSite.
222
+ # @param [String] parent
223
+ # Required. The Project that owns the sites to list, e.g.: `projects/`project-
224
+ # number``.
225
+ # @param [Fixnum] page_size
226
+ # Optional. The maximum number of sites to return in the response. The server
227
+ # may return fewer Sites at its discretion. If you don't specify a value or
228
+ # specify one that's too large, the server can select its own value.
229
+ # @param [String] page_token
230
+ # Optional. A token from a previous call to `ListSites` that tells the server
231
+ # where to resume listing.
232
+ # @param [String] fields
233
+ # Selector specifying which fields to include in a partial response.
234
+ # @param [String] quota_user
235
+ # Available to use for quota purposes for server-side applications. Can be any
236
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
237
+ # @param [Google::Apis::RequestOptions] options
238
+ # Request-specific options
239
+ #
240
+ # @yield [result, err] Result & error if block supplied
241
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListSitesResponse] parsed result object
242
+ # @yieldparam err [StandardError] error object if request failed
243
+ #
244
+ # @return [Google::Apis::FirebasehostingV1beta1::ListSitesResponse]
245
+ #
246
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
247
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
248
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
249
+ def list_project_sites(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
250
+ command = make_simple_command(:get, 'v1beta1/{+parent}/sites', options)
251
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::ListSitesResponse::Representation
252
+ command.response_class = Google::Apis::FirebasehostingV1beta1::ListSitesResponse
253
+ command.params['parent'] = parent unless parent.nil?
254
+ command.query['pageSize'] = page_size unless page_size.nil?
255
+ command.query['pageToken'] = page_token unless page_token.nil?
256
+ command.query['fields'] = fields unless fields.nil?
257
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
258
+ execute_or_queue_command(command, &block)
259
+ end
260
+
261
+ # Updates attributes of the Site identified by the specified resource name.
262
+ # @param [String] name
263
+ # Output only. The fully qualified resource name of the Hosting Site, e.g.: `
264
+ # projects/`project-number`/sites/`site-id``.
265
+ # @param [Google::Apis::FirebasehostingV1beta1::Site] site_object
266
+ # @param [String] update_mask
267
+ # A mask that specifies which Site fields to update.
268
+ # @param [String] fields
269
+ # Selector specifying which fields to include in a partial response.
270
+ # @param [String] quota_user
271
+ # Available to use for quota purposes for server-side applications. Can be any
272
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
273
+ # @param [Google::Apis::RequestOptions] options
274
+ # Request-specific options
275
+ #
276
+ # @yield [result, err] Result & error if block supplied
277
+ # @yieldparam result [Google::Apis::FirebasehostingV1beta1::Site] parsed result object
278
+ # @yieldparam err [StandardError] error object if request failed
279
+ #
280
+ # @return [Google::Apis::FirebasehostingV1beta1::Site]
281
+ #
282
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
283
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
284
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
285
+ def patch_project_site(name, site_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
286
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
287
+ command.request_representation = Google::Apis::FirebasehostingV1beta1::Site::Representation
288
+ command.request_object = site_object
289
+ command.response_representation = Google::Apis::FirebasehostingV1beta1::Site::Representation
290
+ command.response_class = Google::Apis::FirebasehostingV1beta1::Site
291
+ command.params['name'] = name unless name.nil?
292
+ command.query['updateMask'] = update_mask unless update_mask.nil?
293
+ command.query['fields'] = fields unless fields.nil?
294
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
295
+ execute_or_queue_command(command, &block)
296
+ end
297
+
116
298
  # Sets the Hosting metadata for a specific site.
117
299
  # @param [String] name
118
300
  # Required. The site for which to update the SiteConfig, in the format: sites/
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-firebasehosting_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-08 00:00:00.000000000 Z
11
+ date: 2021-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-firebasehosting_v1beta1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-firebasehosting_v1beta1/v0.3.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebasehosting_v1beta1/v0.4.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-firebasehosting_v1beta1
57
57
  post_install_message:
58
58
  rdoc_options: []