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,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 71a982cf3233fc9991606f5e35533ca8c1b79205943a1df9e354e736aed2b95e
4
+ data.tar.gz: 1a0a71c6f287c1c437b5396fcd168548a3302b17bc7a5307d3028f8f105638d5
5
+ SHA512:
6
+ metadata.gz: ab5f5d56fec64fb01f68c0e9765e37ee444e0c0e341b792e886f86f8f581e42e455fe3f3a71e882dac4d7a906f521afc5fa7871bc86f20cd4adad536a0f262eb
7
+ data.tar.gz: 708ee4a905001e87cadde850e24a2c15e3b798465cd5294fdeacdcf64213a48700b959b20f2daa56ea4ec4a84ae5fcf1d5ce5788099679345d52adcf22558771
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-firebasehosting_v1beta1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/firebasehosting_v1beta1/*.rb
9
+ lib/google/apis/firebasehosting_v1beta1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-firebasehosting_v1beta1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201024
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1beta1 of the Firebase Hosting API
2
+
3
+ This is a simple client library for version V1beta1 of the Firebase Hosting API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/firebasehosting.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-firebasehosting_v1beta1', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-firebasehosting_v1beta1
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/firebasehosting_v1beta1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::FirebasehostingV1beta1::FirebaseHostingService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Firebasehosting service in particular.)
67
+
68
+ For reference information on specific calls in the Firebase Hosting API, see the {Google::Apis::FirebasehostingV1beta1::FirebaseHostingService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-firebasehosting_v1beta1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://firebase.google.com/docs/hosting/) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
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/firebasehosting_v1beta1"
@@ -0,0 +1,47 @@
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/firebasehosting_v1beta1/service.rb'
16
+ require 'google/apis/firebasehosting_v1beta1/classes.rb'
17
+ require 'google/apis/firebasehosting_v1beta1/representations.rb'
18
+ require 'google/apis/firebasehosting_v1beta1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Firebase Hosting API
23
+ #
24
+ # The Firebase Hosting REST API enables programmatic and customizable
25
+ # deployments to your Firebase-hosted sites. Use this REST API to deploy new or
26
+ # updated hosting configurations and content files.
27
+ #
28
+ # @see https://firebase.google.com/docs/hosting/
29
+ module FirebasehostingV1beta1
30
+ # Version of the Firebase Hosting API this client connects to.
31
+ # This is NOT the gem version.
32
+ VERSION = 'V1beta1'
33
+
34
+ # View and manage your data across Google Cloud Platform services
35
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
36
+
37
+ # View your data across Google Cloud Platform services
38
+ AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
39
+
40
+ # View and administer all your Firebase data and settings
41
+ AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'
42
+
43
+ # View all your Firebase data and settings
44
+ AUTH_FIREBASE_READONLY = 'https://www.googleapis.com/auth/firebase.readonly'
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,1191 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module FirebasehostingV1beta1
24
+
25
+ # Contains metadata about the user who performed an action, such as creating a
26
+ # release or finalizing a version.
27
+ class ActingUser
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # The email address of the user when the user performed the action.
31
+ # Corresponds to the JSON property `email`
32
+ # @return [String]
33
+ attr_accessor :email
34
+
35
+ # A profile image URL for the user. May not be present if the user has changed
36
+ # their email address or deleted their account.
37
+ # Corresponds to the JSON property `imageUrl`
38
+ # @return [String]
39
+ attr_accessor :image_url
40
+
41
+ def initialize(**args)
42
+ update!(**args)
43
+ end
44
+
45
+ # Update properties of this object
46
+ def update!(**args)
47
+ @email = args[:email] if args.key?(:email)
48
+ @image_url = args[:image_url] if args.key?(:image_url)
49
+ end
50
+ end
51
+
52
+ # Represents a DNS certificate challenge.
53
+ class CertDnsChallenge
54
+ include Google::Apis::Core::Hashable
55
+
56
+ # The domain name upon which the DNS challenge must be satisfied.
57
+ # Corresponds to the JSON property `domainName`
58
+ # @return [String]
59
+ attr_accessor :domain_name
60
+
61
+ # The value that must be present as a TXT record on the domain name to satisfy
62
+ # the challenge.
63
+ # Corresponds to the JSON property `token`
64
+ # @return [String]
65
+ attr_accessor :token
66
+
67
+ def initialize(**args)
68
+ update!(**args)
69
+ end
70
+
71
+ # Update properties of this object
72
+ def update!(**args)
73
+ @domain_name = args[:domain_name] if args.key?(:domain_name)
74
+ @token = args[:token] if args.key?(:token)
75
+ end
76
+ end
77
+
78
+ # Represents an HTTP certificate challenge.
79
+ class CertHttpChallenge
80
+ include Google::Apis::Core::Hashable
81
+
82
+ # The URL path on which to serve the specified token to satisfy the certificate
83
+ # challenge.
84
+ # Corresponds to the JSON property `path`
85
+ # @return [String]
86
+ attr_accessor :path
87
+
88
+ # The token to serve at the specified URL path to satisfy the certificate
89
+ # challenge.
90
+ # Corresponds to the JSON property `token`
91
+ # @return [String]
92
+ attr_accessor :token
93
+
94
+ def initialize(**args)
95
+ update!(**args)
96
+ end
97
+
98
+ # Update properties of this object
99
+ def update!(**args)
100
+ @path = args[:path] if args.key?(:path)
101
+ @token = args[:token] if args.key?(:token)
102
+ end
103
+ end
104
+
105
+ # A `Channel` represents a stream of releases for a site. All sites have a
106
+ # default `live` channel that serves content to the live Firebase-provided
107
+ # domains and any connected custom domains.
108
+ class Channel
109
+ include Google::Apis::Core::Hashable
110
+
111
+ # Output only. The time at which the channel was created.
112
+ # Corresponds to the JSON property `createTime`
113
+ # @return [String]
114
+ attr_accessor :create_time
115
+
116
+ # The time at which the channel will be automatically deleted. If null, the
117
+ # channel will not be automatically deleted. This field is present in output
118
+ # whether set directly or via the `ttl` field.
119
+ # Corresponds to the JSON property `expireTime`
120
+ # @return [String]
121
+ attr_accessor :expire_time
122
+
123
+ # Text labels used for extra metadata and/or filtering.
124
+ # Corresponds to the JSON property `labels`
125
+ # @return [Hash<String,String>]
126
+ attr_accessor :labels
127
+
128
+ # The fully-qualified identifier of the Channel.
129
+ # Corresponds to the JSON property `name`
130
+ # @return [String]
131
+ attr_accessor :name
132
+
133
+ # A `Release` is a particular [collection of configurations and files](sites.
134
+ # versions) that is set to be public at a particular time.
135
+ # Corresponds to the JSON property `release`
136
+ # @return [Google::Apis::FirebasehostingV1beta1::Release]
137
+ attr_accessor :release
138
+
139
+ # The number of previous releases to retain on the channel for rollback or other
140
+ # purposes. Must be a number between 1-100. Defaults to 10 for new channels.
141
+ # Corresponds to the JSON property `retainedReleaseCount`
142
+ # @return [Fixnum]
143
+ attr_accessor :retained_release_count
144
+
145
+ # Input only. A time-to-live for this channel. Sets `expire_time` to the
146
+ # provided duration past the time of the request.
147
+ # Corresponds to the JSON property `ttl`
148
+ # @return [String]
149
+ attr_accessor :ttl
150
+
151
+ # Output only. The time at which the channel was last updated.
152
+ # Corresponds to the JSON property `updateTime`
153
+ # @return [String]
154
+ attr_accessor :update_time
155
+
156
+ # Output only. The URL at which the channel can be viewed. For the `live`
157
+ # channel, the content of the current release may also be visible at other URLs.
158
+ # Corresponds to the JSON property `url`
159
+ # @return [String]
160
+ attr_accessor :url
161
+
162
+ def initialize(**args)
163
+ update!(**args)
164
+ end
165
+
166
+ # Update properties of this object
167
+ def update!(**args)
168
+ @create_time = args[:create_time] if args.key?(:create_time)
169
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
170
+ @labels = args[:labels] if args.key?(:labels)
171
+ @name = args[:name] if args.key?(:name)
172
+ @release = args[:release] if args.key?(:release)
173
+ @retained_release_count = args[:retained_release_count] if args.key?(:retained_release_count)
174
+ @ttl = args[:ttl] if args.key?(:ttl)
175
+ @update_time = args[:update_time] if args.key?(:update_time)
176
+ @url = args[:url] if args.key?(:url)
177
+ end
178
+ end
179
+
180
+ # The request sent to CloneVersion.
181
+ class CloneVersionRequest
182
+ include Google::Apis::Core::Hashable
183
+
184
+ # A representation of filter path.
185
+ # Corresponds to the JSON property `exclude`
186
+ # @return [Google::Apis::FirebasehostingV1beta1::PathFilter]
187
+ attr_accessor :exclude
188
+
189
+ # If true, immediately finalize the version after cloning is complete.
190
+ # Corresponds to the JSON property `finalize`
191
+ # @return [Boolean]
192
+ attr_accessor :finalize
193
+ alias_method :finalize?, :finalize
194
+
195
+ # A representation of filter path.
196
+ # Corresponds to the JSON property `include`
197
+ # @return [Google::Apis::FirebasehostingV1beta1::PathFilter]
198
+ attr_accessor :include
199
+
200
+ # Required. The name of the version to be cloned, in the format: `sites/`site`/
201
+ # versions/`version``
202
+ # Corresponds to the JSON property `sourceVersion`
203
+ # @return [String]
204
+ attr_accessor :source_version
205
+
206
+ def initialize(**args)
207
+ update!(**args)
208
+ end
209
+
210
+ # Update properties of this object
211
+ def update!(**args)
212
+ @exclude = args[:exclude] if args.key?(:exclude)
213
+ @finalize = args[:finalize] if args.key?(:finalize)
214
+ @include = args[:include] if args.key?(:include)
215
+ @source_version = args[:source_version] if args.key?(:source_version)
216
+ end
217
+ end
218
+
219
+ # A configured rewrite that directs requests to a Cloud Run service. If the
220
+ # Cloud Run service does not exist when setting or updating your Firebase
221
+ # Hosting configuration, then the request fails. Any errors from the Cloud Run
222
+ # service are passed to the end user (for example, if you delete a service, any
223
+ # requests directed to that service receive a `404` error).
224
+ class CloudRunRewrite
225
+ include Google::Apis::Core::Hashable
226
+
227
+ # Optional. User-provided region where the Cloud Run service is hosted. Defaults
228
+ # to `us-central1` if not supplied.
229
+ # Corresponds to the JSON property `region`
230
+ # @return [String]
231
+ attr_accessor :region
232
+
233
+ # Required. User-defined ID of the Cloud Run service.
234
+ # Corresponds to the JSON property `serviceId`
235
+ # @return [String]
236
+ attr_accessor :service_id
237
+
238
+ def initialize(**args)
239
+ update!(**args)
240
+ end
241
+
242
+ # Update properties of this object
243
+ def update!(**args)
244
+ @region = args[:region] if args.key?(:region)
245
+ @service_id = args[:service_id] if args.key?(:service_id)
246
+ end
247
+ end
248
+
249
+ # The intended behavior and status information of a domain.
250
+ class Domain
251
+ include Google::Apis::Core::Hashable
252
+
253
+ # Required. The domain name of the association.
254
+ # Corresponds to the JSON property `domainName`
255
+ # @return [String]
256
+ attr_accessor :domain_name
257
+
258
+ # Defines the behavior of a domain-level redirect. Domain redirects preserve the
259
+ # path of the redirect but replace the requested domain with the one specified
260
+ # in the redirect configuration.
261
+ # Corresponds to the JSON property `domainRedirect`
262
+ # @return [Google::Apis::FirebasehostingV1beta1::DomainRedirect]
263
+ attr_accessor :domain_redirect
264
+
265
+ # The current certificate provisioning status information for a domain.
266
+ # Corresponds to the JSON property `provisioning`
267
+ # @return [Google::Apis::FirebasehostingV1beta1::DomainProvisioning]
268
+ attr_accessor :provisioning
269
+
270
+ # Required. The site name of the association.
271
+ # Corresponds to the JSON property `site`
272
+ # @return [String]
273
+ attr_accessor :site
274
+
275
+ # Output only. Additional status of the domain association.
276
+ # Corresponds to the JSON property `status`
277
+ # @return [String]
278
+ attr_accessor :status
279
+
280
+ # Output only. The time at which the domain was last updated.
281
+ # Corresponds to the JSON property `updateTime`
282
+ # @return [String]
283
+ attr_accessor :update_time
284
+
285
+ def initialize(**args)
286
+ update!(**args)
287
+ end
288
+
289
+ # Update properties of this object
290
+ def update!(**args)
291
+ @domain_name = args[:domain_name] if args.key?(:domain_name)
292
+ @domain_redirect = args[:domain_redirect] if args.key?(:domain_redirect)
293
+ @provisioning = args[:provisioning] if args.key?(:provisioning)
294
+ @site = args[:site] if args.key?(:site)
295
+ @status = args[:status] if args.key?(:status)
296
+ @update_time = args[:update_time] if args.key?(:update_time)
297
+ end
298
+ end
299
+
300
+ # The current certificate provisioning status information for a domain.
301
+ class DomainProvisioning
302
+ include Google::Apis::Core::Hashable
303
+
304
+ # The TXT records (for the certificate challenge) that were found at the last
305
+ # DNS fetch.
306
+ # Corresponds to the JSON property `certChallengeDiscoveredTxt`
307
+ # @return [Array<String>]
308
+ attr_accessor :cert_challenge_discovered_txt
309
+
310
+ # Represents a DNS certificate challenge.
311
+ # Corresponds to the JSON property `certChallengeDns`
312
+ # @return [Google::Apis::FirebasehostingV1beta1::CertDnsChallenge]
313
+ attr_accessor :cert_challenge_dns
314
+
315
+ # Represents an HTTP certificate challenge.
316
+ # Corresponds to the JSON property `certChallengeHttp`
317
+ # @return [Google::Apis::FirebasehostingV1beta1::CertHttpChallenge]
318
+ attr_accessor :cert_challenge_http
319
+
320
+ # The certificate provisioning status; updated when Firebase Hosting provisions
321
+ # an SSL certificate for the domain.
322
+ # Corresponds to the JSON property `certStatus`
323
+ # @return [String]
324
+ attr_accessor :cert_status
325
+
326
+ # The IPs found at the last DNS fetch.
327
+ # Corresponds to the JSON property `discoveredIps`
328
+ # @return [Array<String>]
329
+ attr_accessor :discovered_ips
330
+
331
+ # The time at which the last DNS fetch occurred.
332
+ # Corresponds to the JSON property `dnsFetchTime`
333
+ # @return [String]
334
+ attr_accessor :dns_fetch_time
335
+
336
+ # The DNS record match status as of the last DNS fetch.
337
+ # Corresponds to the JSON property `dnsStatus`
338
+ # @return [String]
339
+ attr_accessor :dns_status
340
+
341
+ # The list of IPs to which the domain is expected to resolve.
342
+ # Corresponds to the JSON property `expectedIps`
343
+ # @return [Array<String>]
344
+ attr_accessor :expected_ips
345
+
346
+ def initialize(**args)
347
+ update!(**args)
348
+ end
349
+
350
+ # Update properties of this object
351
+ def update!(**args)
352
+ @cert_challenge_discovered_txt = args[:cert_challenge_discovered_txt] if args.key?(:cert_challenge_discovered_txt)
353
+ @cert_challenge_dns = args[:cert_challenge_dns] if args.key?(:cert_challenge_dns)
354
+ @cert_challenge_http = args[:cert_challenge_http] if args.key?(:cert_challenge_http)
355
+ @cert_status = args[:cert_status] if args.key?(:cert_status)
356
+ @discovered_ips = args[:discovered_ips] if args.key?(:discovered_ips)
357
+ @dns_fetch_time = args[:dns_fetch_time] if args.key?(:dns_fetch_time)
358
+ @dns_status = args[:dns_status] if args.key?(:dns_status)
359
+ @expected_ips = args[:expected_ips] if args.key?(:expected_ips)
360
+ end
361
+ end
362
+
363
+ # Defines the behavior of a domain-level redirect. Domain redirects preserve the
364
+ # path of the redirect but replace the requested domain with the one specified
365
+ # in the redirect configuration.
366
+ class DomainRedirect
367
+ include Google::Apis::Core::Hashable
368
+
369
+ # Required. The domain name to redirect to.
370
+ # Corresponds to the JSON property `domainName`
371
+ # @return [String]
372
+ attr_accessor :domain_name
373
+
374
+ # Required. The redirect status code.
375
+ # Corresponds to the JSON property `type`
376
+ # @return [String]
377
+ attr_accessor :type
378
+
379
+ def initialize(**args)
380
+ update!(**args)
381
+ end
382
+
383
+ # Update properties of this object
384
+ def update!(**args)
385
+ @domain_name = args[:domain_name] if args.key?(:domain_name)
386
+ @type = args[:type] if args.key?(:type)
387
+ end
388
+ end
389
+
390
+ # A generic empty message that you can re-use to avoid defining duplicated empty
391
+ # messages in your APIs. A typical example is to use it as the request or the
392
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
393
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
394
+ # `Empty` is empty JSON object ````.
395
+ class Empty
396
+ include Google::Apis::Core::Hashable
397
+
398
+ def initialize(**args)
399
+ update!(**args)
400
+ end
401
+
402
+ # Update properties of this object
403
+ def update!(**args)
404
+ end
405
+ end
406
+
407
+ # A [`header`](/docs/hosting/full-config#headers) is an object that specifies a
408
+ # URL pattern that, if matched to the request URL path, triggers Hosting to
409
+ # apply the specified custom response headers.
410
+ class Header
411
+ include Google::Apis::Core::Hashable
412
+
413
+ # The user-supplied [glob](/docs/hosting/full-config#glob_pattern_matching) to
414
+ # match against the request URL path.
415
+ # Corresponds to the JSON property `glob`
416
+ # @return [String]
417
+ attr_accessor :glob
418
+
419
+ # Required. The additional headers to add to the response.
420
+ # Corresponds to the JSON property `headers`
421
+ # @return [Hash<String,String>]
422
+ attr_accessor :headers
423
+
424
+ # The user-supplied RE2 regular expression to match against the request URL path.
425
+ # Corresponds to the JSON property `regex`
426
+ # @return [String]
427
+ attr_accessor :regex
428
+
429
+ def initialize(**args)
430
+ update!(**args)
431
+ end
432
+
433
+ # Update properties of this object
434
+ def update!(**args)
435
+ @glob = args[:glob] if args.key?(:glob)
436
+ @headers = args[:headers] if args.key?(:headers)
437
+ @regex = args[:regex] if args.key?(:regex)
438
+ end
439
+ end
440
+
441
+ # If provided, i18n rewrites are enabled.
442
+ class I18nConfig
443
+ include Google::Apis::Core::Hashable
444
+
445
+ # Required. The user-supplied path where country and language specific content
446
+ # will be looked for within the public directory.
447
+ # Corresponds to the JSON property `root`
448
+ # @return [String]
449
+ attr_accessor :root
450
+
451
+ def initialize(**args)
452
+ update!(**args)
453
+ end
454
+
455
+ # Update properties of this object
456
+ def update!(**args)
457
+ @root = args[:root] if args.key?(:root)
458
+ end
459
+ end
460
+
461
+ # The response returned by ListChannels.
462
+ class ListChannelsResponse
463
+ include Google::Apis::Core::Hashable
464
+
465
+ # The list of channels.
466
+ # Corresponds to the JSON property `channels`
467
+ # @return [Array<Google::Apis::FirebasehostingV1beta1::Channel>]
468
+ attr_accessor :channels
469
+
470
+ # If there are additional releases remaining beyond the ones in this response,
471
+ # then supply this token in the next [`list`](../sites.channels/list) call to
472
+ # continue with the next set of releases.
473
+ # Corresponds to the JSON property `nextPageToken`
474
+ # @return [String]
475
+ attr_accessor :next_page_token
476
+
477
+ def initialize(**args)
478
+ update!(**args)
479
+ end
480
+
481
+ # Update properties of this object
482
+ def update!(**args)
483
+ @channels = args[:channels] if args.key?(:channels)
484
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
485
+ end
486
+ end
487
+
488
+ # The response to listing Domains.
489
+ class ListDomainsResponse
490
+ include Google::Apis::Core::Hashable
491
+
492
+ # The list of domains, if any exist.
493
+ # Corresponds to the JSON property `domains`
494
+ # @return [Array<Google::Apis::FirebasehostingV1beta1::Domain>]
495
+ attr_accessor :domains
496
+
497
+ # The pagination token, if more results exist.
498
+ # Corresponds to the JSON property `nextPageToken`
499
+ # @return [String]
500
+ attr_accessor :next_page_token
501
+
502
+ def initialize(**args)
503
+ update!(**args)
504
+ end
505
+
506
+ # Update properties of this object
507
+ def update!(**args)
508
+ @domains = args[:domains] if args.key?(:domains)
509
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
510
+ end
511
+ end
512
+
513
+ #
514
+ class ListReleasesResponse
515
+ include Google::Apis::Core::Hashable
516
+
517
+ # If there are additional releases remaining beyond the ones in this response,
518
+ # then supply this token in the next [`list`](../sites.versions.files/list) call
519
+ # to continue with the next set of releases.
520
+ # Corresponds to the JSON property `nextPageToken`
521
+ # @return [String]
522
+ attr_accessor :next_page_token
523
+
524
+ # The list of hashes of files that still need to be uploaded, if any exist.
525
+ # Corresponds to the JSON property `releases`
526
+ # @return [Array<Google::Apis::FirebasehostingV1beta1::Release>]
527
+ attr_accessor :releases
528
+
529
+ def initialize(**args)
530
+ update!(**args)
531
+ end
532
+
533
+ # Update properties of this object
534
+ def update!(**args)
535
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
536
+ @releases = args[:releases] if args.key?(:releases)
537
+ end
538
+ end
539
+
540
+ #
541
+ class ListVersionFilesResponse
542
+ include Google::Apis::Core::Hashable
543
+
544
+ # The list path/hashes in the specified version.
545
+ # Corresponds to the JSON property `files`
546
+ # @return [Array<Google::Apis::FirebasehostingV1beta1::VersionFile>]
547
+ attr_accessor :files
548
+
549
+ # The pagination token, if more results exist.
550
+ # Corresponds to the JSON property `nextPageToken`
551
+ # @return [String]
552
+ attr_accessor :next_page_token
553
+
554
+ def initialize(**args)
555
+ update!(**args)
556
+ end
557
+
558
+ # Update properties of this object
559
+ def update!(**args)
560
+ @files = args[:files] if args.key?(:files)
561
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
562
+ end
563
+ end
564
+
565
+ #
566
+ class ListVersionsResponse
567
+ include Google::Apis::Core::Hashable
568
+
569
+ # The pagination token, if more results exist
570
+ # Corresponds to the JSON property `nextPageToken`
571
+ # @return [String]
572
+ attr_accessor :next_page_token
573
+
574
+ # The list of versions, if any exist.
575
+ # Corresponds to the JSON property `versions`
576
+ # @return [Array<Google::Apis::FirebasehostingV1beta1::Version>]
577
+ attr_accessor :versions
578
+
579
+ def initialize(**args)
580
+ update!(**args)
581
+ end
582
+
583
+ # Update properties of this object
584
+ def update!(**args)
585
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
586
+ @versions = args[:versions] if args.key?(:versions)
587
+ end
588
+ end
589
+
590
+ # This resource represents a long-running operation that is the result of a
591
+ # network API call.
592
+ class Operation
593
+ include Google::Apis::Core::Hashable
594
+
595
+ # If the value is `false`, it means the operation is still in progress. If `true`
596
+ # , the operation is completed, and either `error` or `response` is available.
597
+ # Corresponds to the JSON property `done`
598
+ # @return [Boolean]
599
+ attr_accessor :done
600
+ alias_method :done?, :done
601
+
602
+ # The `Status` type defines a logical error model that is suitable for different
603
+ # programming environments, including REST APIs and RPC APIs. It is used by [
604
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
605
+ # data: error code, error message, and error details. You can find out more
606
+ # about this error model and how to work with it in the [API Design Guide](https:
607
+ # //cloud.google.com/apis/design/errors).
608
+ # Corresponds to the JSON property `error`
609
+ # @return [Google::Apis::FirebasehostingV1beta1::Status]
610
+ attr_accessor :error
611
+
612
+ # Service-specific metadata associated with the operation. It typically contains
613
+ # progress information and common metadata such as create time. Some services
614
+ # might not provide such metadata. Any method that returns a long-running
615
+ # operation should document the metadata type, if any.
616
+ # Corresponds to the JSON property `metadata`
617
+ # @return [Hash<String,Object>]
618
+ attr_accessor :metadata
619
+
620
+ # The server-assigned name, which is only unique within the same service that
621
+ # originally returns it. If you use the default HTTP mapping, the `name` should
622
+ # be a resource name ending with `operations/`unique_id``.
623
+ # Corresponds to the JSON property `name`
624
+ # @return [String]
625
+ attr_accessor :name
626
+
627
+ # The normal response of the operation in case of success. If the original
628
+ # method returns no data on success, such as `Delete`, the response is `google.
629
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
630
+ # the response should be the resource. For other methods, the response should
631
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
632
+ # example, if the original method name is `TakeSnapshot()`, the inferred
633
+ # response type is `TakeSnapshotResponse`.
634
+ # Corresponds to the JSON property `response`
635
+ # @return [Hash<String,Object>]
636
+ attr_accessor :response
637
+
638
+ def initialize(**args)
639
+ update!(**args)
640
+ end
641
+
642
+ # Update properties of this object
643
+ def update!(**args)
644
+ @done = args[:done] if args.key?(:done)
645
+ @error = args[:error] if args.key?(:error)
646
+ @metadata = args[:metadata] if args.key?(:metadata)
647
+ @name = args[:name] if args.key?(:name)
648
+ @response = args[:response] if args.key?(:response)
649
+ end
650
+ end
651
+
652
+ # A representation of filter path.
653
+ class PathFilter
654
+ include Google::Apis::Core::Hashable
655
+
656
+ # An array of regexes to filter by.
657
+ # Corresponds to the JSON property `regexes`
658
+ # @return [Array<String>]
659
+ attr_accessor :regexes
660
+
661
+ def initialize(**args)
662
+ update!(**args)
663
+ end
664
+
665
+ # Update properties of this object
666
+ def update!(**args)
667
+ @regexes = args[:regexes] if args.key?(:regexes)
668
+ end
669
+ end
670
+
671
+ # The request to populate a Version's Files.
672
+ class PopulateVersionFilesRequest
673
+ include Google::Apis::Core::Hashable
674
+
675
+ # A set of file paths to the hashes corresponding to assets that should be added
676
+ # to the version. Note that a file path to an empty hash will remove the path
677
+ # from the version. Calculate a hash by Gzipping the file then taking the SHA256
678
+ # hash of the newly compressed file.
679
+ # Corresponds to the JSON property `files`
680
+ # @return [Hash<String,String>]
681
+ attr_accessor :files
682
+
683
+ def initialize(**args)
684
+ update!(**args)
685
+ end
686
+
687
+ # Update properties of this object
688
+ def update!(**args)
689
+ @files = args[:files] if args.key?(:files)
690
+ end
691
+ end
692
+
693
+ #
694
+ class PopulateVersionFilesResponse
695
+ include Google::Apis::Core::Hashable
696
+
697
+ # The content hashes of the specified files that need to be uploaded to the
698
+ # specified endpoint.
699
+ # Corresponds to the JSON property `uploadRequiredHashes`
700
+ # @return [Array<String>]
701
+ attr_accessor :upload_required_hashes
702
+
703
+ # The URL to which the files should be uploaded, in the format: "https://upload-
704
+ # firebasehosting.googleapis.com/upload/sites/site-name /versions/versionID/
705
+ # files". Perform a multipart `POST` of the Gzipped file contents to the URL
706
+ # using a forward slash and the hash of the file appended to the end.
707
+ # Corresponds to the JSON property `uploadUrl`
708
+ # @return [String]
709
+ attr_accessor :upload_url
710
+
711
+ def initialize(**args)
712
+ update!(**args)
713
+ end
714
+
715
+ # Update properties of this object
716
+ def update!(**args)
717
+ @upload_required_hashes = args[:upload_required_hashes] if args.key?(:upload_required_hashes)
718
+ @upload_url = args[:upload_url] if args.key?(:upload_url)
719
+ end
720
+ end
721
+
722
+ # Version preview configuration. If active and unexpired, this version will be
723
+ # accessible via a custom URL even if it is not the currently released version.
724
+ # Deprecated in favor of site channels.
725
+ class PreviewConfig
726
+ include Google::Apis::Core::Hashable
727
+
728
+ # If true, preview URLs are enabled for this version.
729
+ # Corresponds to the JSON property `active`
730
+ # @return [Boolean]
731
+ attr_accessor :active
732
+ alias_method :active?, :active
733
+
734
+ # Indicates the expiration time for previewing this version; preview URL
735
+ # requests received after this time will 404.
736
+ # Corresponds to the JSON property `expireTime`
737
+ # @return [String]
738
+ attr_accessor :expire_time
739
+
740
+ def initialize(**args)
741
+ update!(**args)
742
+ end
743
+
744
+ # Update properties of this object
745
+ def update!(**args)
746
+ @active = args[:active] if args.key?(:active)
747
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
748
+ end
749
+ end
750
+
751
+ # A [`redirect`](/docs/hosting/full-config#redirects) object specifies a URL
752
+ # pattern that, if matched to the request URL path, triggers Hosting to respond
753
+ # with a redirect to the specified destination path.
754
+ class Redirect
755
+ include Google::Apis::Core::Hashable
756
+
757
+ # The user-supplied [glob](/docs/hosting/full-config#glob_pattern_matching) to
758
+ # match against the request URL path.
759
+ # Corresponds to the JSON property `glob`
760
+ # @return [String]
761
+ attr_accessor :glob
762
+
763
+ # Required. The value to put in the HTTP location header of the response. The
764
+ # location can contain capture group values from the pattern using a `:` prefix
765
+ # to identify the segment and an optional `*` to capture the rest of the URL.
766
+ # For example: "glob": "/:capture*", "statusCode": 301, "location": "https://
767
+ # example.com/foo/:capture"
768
+ # Corresponds to the JSON property `location`
769
+ # @return [String]
770
+ attr_accessor :location
771
+
772
+ # The user-supplied RE2 regular expression to match against the request URL path.
773
+ # Corresponds to the JSON property `regex`
774
+ # @return [String]
775
+ attr_accessor :regex
776
+
777
+ # Required. The status HTTP code to return in the response. It must be a valid
778
+ # 3xx status code.
779
+ # Corresponds to the JSON property `statusCode`
780
+ # @return [Fixnum]
781
+ attr_accessor :status_code
782
+
783
+ def initialize(**args)
784
+ update!(**args)
785
+ end
786
+
787
+ # Update properties of this object
788
+ def update!(**args)
789
+ @glob = args[:glob] if args.key?(:glob)
790
+ @location = args[:location] if args.key?(:location)
791
+ @regex = args[:regex] if args.key?(:regex)
792
+ @status_code = args[:status_code] if args.key?(:status_code)
793
+ end
794
+ end
795
+
796
+ # A `Release` is a particular [collection of configurations and files](sites.
797
+ # versions) that is set to be public at a particular time.
798
+ class Release
799
+ include Google::Apis::Core::Hashable
800
+
801
+ # The deploy description when the release was created. The value can be up to
802
+ # 512 characters.
803
+ # Corresponds to the JSON property `message`
804
+ # @return [String]
805
+ attr_accessor :message
806
+
807
+ # Output only. The unique identifier for the release, in the format: sites/ site-
808
+ # name/releases/releaseID This name is provided in the response body when you
809
+ # call the [`CreateRelease`](sites.releases/create) endpoint.
810
+ # Corresponds to the JSON property `name`
811
+ # @return [String]
812
+ attr_accessor :name
813
+
814
+ # Output only. The time at which the version is set to be public.
815
+ # Corresponds to the JSON property `releaseTime`
816
+ # @return [String]
817
+ attr_accessor :release_time
818
+
819
+ # Contains metadata about the user who performed an action, such as creating a
820
+ # release or finalizing a version.
821
+ # Corresponds to the JSON property `releaseUser`
822
+ # @return [Google::Apis::FirebasehostingV1beta1::ActingUser]
823
+ attr_accessor :release_user
824
+
825
+ # Explains the reason for the release. Specify a value for this field only when
826
+ # creating a `SITE_DISABLE` type release.
827
+ # Corresponds to the JSON property `type`
828
+ # @return [String]
829
+ attr_accessor :type
830
+
831
+ # A `Version` is the collection of configuration and [static files](sites.
832
+ # versions.files) that determine how a site is displayed.
833
+ # Corresponds to the JSON property `version`
834
+ # @return [Google::Apis::FirebasehostingV1beta1::Version]
835
+ attr_accessor :version
836
+
837
+ def initialize(**args)
838
+ update!(**args)
839
+ end
840
+
841
+ # Update properties of this object
842
+ def update!(**args)
843
+ @message = args[:message] if args.key?(:message)
844
+ @name = args[:name] if args.key?(:name)
845
+ @release_time = args[:release_time] if args.key?(:release_time)
846
+ @release_user = args[:release_user] if args.key?(:release_user)
847
+ @type = args[:type] if args.key?(:type)
848
+ @version = args[:version] if args.key?(:version)
849
+ end
850
+ end
851
+
852
+ # A [`rewrite`](/docs/hosting/full-config#rewrites) object specifies a URL
853
+ # pattern that, if matched to the request URL path, triggers Hosting to respond
854
+ # as if the service were given the specified destination URL.
855
+ class Rewrite
856
+ include Google::Apis::Core::Hashable
857
+
858
+ # The request will be forwarded to Firebase Dynamic Links.
859
+ # Corresponds to the JSON property `dynamicLinks`
860
+ # @return [Boolean]
861
+ attr_accessor :dynamic_links
862
+ alias_method :dynamic_links?, :dynamic_links
863
+
864
+ # The function to proxy requests to. Must match the exported function name
865
+ # exactly.
866
+ # Corresponds to the JSON property `function`
867
+ # @return [String]
868
+ attr_accessor :function
869
+
870
+ # The user-supplied [glob](/docs/hosting/full-config#glob_pattern_matching) to
871
+ # match against the request URL path.
872
+ # Corresponds to the JSON property `glob`
873
+ # @return [String]
874
+ attr_accessor :glob
875
+
876
+ # The URL path to rewrite the request to.
877
+ # Corresponds to the JSON property `path`
878
+ # @return [String]
879
+ attr_accessor :path
880
+
881
+ # The user-supplied RE2 regular expression to match against the request URL path.
882
+ # Corresponds to the JSON property `regex`
883
+ # @return [String]
884
+ attr_accessor :regex
885
+
886
+ # A configured rewrite that directs requests to a Cloud Run service. If the
887
+ # Cloud Run service does not exist when setting or updating your Firebase
888
+ # Hosting configuration, then the request fails. Any errors from the Cloud Run
889
+ # service are passed to the end user (for example, if you delete a service, any
890
+ # requests directed to that service receive a `404` error).
891
+ # Corresponds to the JSON property `run`
892
+ # @return [Google::Apis::FirebasehostingV1beta1::CloudRunRewrite]
893
+ attr_accessor :run
894
+
895
+ def initialize(**args)
896
+ update!(**args)
897
+ end
898
+
899
+ # Update properties of this object
900
+ def update!(**args)
901
+ @dynamic_links = args[:dynamic_links] if args.key?(:dynamic_links)
902
+ @function = args[:function] if args.key?(:function)
903
+ @glob = args[:glob] if args.key?(:glob)
904
+ @path = args[:path] if args.key?(:path)
905
+ @regex = args[:regex] if args.key?(:regex)
906
+ @run = args[:run] if args.key?(:run)
907
+ end
908
+ end
909
+
910
+ # The configuration for how incoming requests to a site should be routed and
911
+ # processed before serving content. The URL request paths are matched against
912
+ # the specified URL patterns in the configuration, then Hosting applies the
913
+ # applicable configuration according to a specific [priority order](/docs/
914
+ # hosting/full-config#hosting_priority_order).
915
+ class ServingConfig
916
+ include Google::Apis::Core::Hashable
917
+
918
+ # How to handle well known App Association files.
919
+ # Corresponds to the JSON property `appAssociation`
920
+ # @return [String]
921
+ attr_accessor :app_association
922
+
923
+ # Defines whether to drop the file extension from uploaded files.
924
+ # Corresponds to the JSON property `cleanUrls`
925
+ # @return [Boolean]
926
+ attr_accessor :clean_urls
927
+ alias_method :clean_urls?, :clean_urls
928
+
929
+ # An array of objects, where each object specifies a URL pattern that, if
930
+ # matched to the request URL path, triggers Hosting to apply the specified
931
+ # custom response headers.
932
+ # Corresponds to the JSON property `headers`
933
+ # @return [Array<Google::Apis::FirebasehostingV1beta1::Header>]
934
+ attr_accessor :headers
935
+
936
+ # If provided, i18n rewrites are enabled.
937
+ # Corresponds to the JSON property `i18n`
938
+ # @return [Google::Apis::FirebasehostingV1beta1::I18nConfig]
939
+ attr_accessor :i18n
940
+
941
+ # An array of objects (called redirect rules), where each rule specifies a URL
942
+ # pattern that, if matched to the request URL path, triggers Hosting to respond
943
+ # with a redirect to the specified destination path.
944
+ # Corresponds to the JSON property `redirects`
945
+ # @return [Array<Google::Apis::FirebasehostingV1beta1::Redirect>]
946
+ attr_accessor :redirects
947
+
948
+ # An array of objects (called rewrite rules), where each rule specifies a URL
949
+ # pattern that, if matched to the request URL path, triggers Hosting to respond
950
+ # as if the service were given the specified destination URL.
951
+ # Corresponds to the JSON property `rewrites`
952
+ # @return [Array<Google::Apis::FirebasehostingV1beta1::Rewrite>]
953
+ attr_accessor :rewrites
954
+
955
+ # Defines how to handle a trailing slash in the URL path.
956
+ # Corresponds to the JSON property `trailingSlashBehavior`
957
+ # @return [String]
958
+ attr_accessor :trailing_slash_behavior
959
+
960
+ def initialize(**args)
961
+ update!(**args)
962
+ end
963
+
964
+ # Update properties of this object
965
+ def update!(**args)
966
+ @app_association = args[:app_association] if args.key?(:app_association)
967
+ @clean_urls = args[:clean_urls] if args.key?(:clean_urls)
968
+ @headers = args[:headers] if args.key?(:headers)
969
+ @i18n = args[:i18n] if args.key?(:i18n)
970
+ @redirects = args[:redirects] if args.key?(:redirects)
971
+ @rewrites = args[:rewrites] if args.key?(:rewrites)
972
+ @trailing_slash_behavior = args[:trailing_slash_behavior] if args.key?(:trailing_slash_behavior)
973
+ end
974
+ end
975
+
976
+ # A `SiteConfig` contains metadata associated with a specific site that controls
977
+ # Firebase Hosting serving behavior
978
+ class SiteConfig
979
+ include Google::Apis::Core::Hashable
980
+
981
+ # Whether or not web requests made by site visitors are logged via Cloud Logging.
982
+ # Corresponds to the JSON property `cloudLoggingEnabled`
983
+ # @return [Boolean]
984
+ attr_accessor :cloud_logging_enabled
985
+ alias_method :cloud_logging_enabled?, :cloud_logging_enabled
986
+
987
+ # The number of FINALIZED versions that will be held for a site before automatic
988
+ # deletion. When a new version is deployed, content for versions in storage in
989
+ # excess of this number will be deleted, and will no longer be billed for
990
+ # storage usage. Oldest versions will be deleted first; sites are created with
991
+ # an unlimited number of max_versions by default.
992
+ # Corresponds to the JSON property `maxVersions`
993
+ # @return [Fixnum]
994
+ attr_accessor :max_versions
995
+
996
+ def initialize(**args)
997
+ update!(**args)
998
+ end
999
+
1000
+ # Update properties of this object
1001
+ def update!(**args)
1002
+ @cloud_logging_enabled = args[:cloud_logging_enabled] if args.key?(:cloud_logging_enabled)
1003
+ @max_versions = args[:max_versions] if args.key?(:max_versions)
1004
+ end
1005
+ end
1006
+
1007
+ # The `Status` type defines a logical error model that is suitable for different
1008
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1009
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1010
+ # data: error code, error message, and error details. You can find out more
1011
+ # about this error model and how to work with it in the [API Design Guide](https:
1012
+ # //cloud.google.com/apis/design/errors).
1013
+ class Status
1014
+ include Google::Apis::Core::Hashable
1015
+
1016
+ # The status code, which should be an enum value of google.rpc.Code.
1017
+ # Corresponds to the JSON property `code`
1018
+ # @return [Fixnum]
1019
+ attr_accessor :code
1020
+
1021
+ # A list of messages that carry the error details. There is a common set of
1022
+ # message types for APIs to use.
1023
+ # Corresponds to the JSON property `details`
1024
+ # @return [Array<Hash<String,Object>>]
1025
+ attr_accessor :details
1026
+
1027
+ # A developer-facing error message, which should be in English. Any user-facing
1028
+ # error message should be localized and sent in the google.rpc.Status.details
1029
+ # field, or localized by the client.
1030
+ # Corresponds to the JSON property `message`
1031
+ # @return [String]
1032
+ attr_accessor :message
1033
+
1034
+ def initialize(**args)
1035
+ update!(**args)
1036
+ end
1037
+
1038
+ # Update properties of this object
1039
+ def update!(**args)
1040
+ @code = args[:code] if args.key?(:code)
1041
+ @details = args[:details] if args.key?(:details)
1042
+ @message = args[:message] if args.key?(:message)
1043
+ end
1044
+ end
1045
+
1046
+ # A `Version` is the collection of configuration and [static files](sites.
1047
+ # versions.files) that determine how a site is displayed.
1048
+ class Version
1049
+ include Google::Apis::Core::Hashable
1050
+
1051
+ # The configuration for how incoming requests to a site should be routed and
1052
+ # processed before serving content. The URL request paths are matched against
1053
+ # the specified URL patterns in the configuration, then Hosting applies the
1054
+ # applicable configuration according to a specific [priority order](/docs/
1055
+ # hosting/full-config#hosting_priority_order).
1056
+ # Corresponds to the JSON property `config`
1057
+ # @return [Google::Apis::FirebasehostingV1beta1::ServingConfig]
1058
+ attr_accessor :config
1059
+
1060
+ # Output only. The time at which the version was created.
1061
+ # Corresponds to the JSON property `createTime`
1062
+ # @return [String]
1063
+ attr_accessor :create_time
1064
+
1065
+ # Contains metadata about the user who performed an action, such as creating a
1066
+ # release or finalizing a version.
1067
+ # Corresponds to the JSON property `createUser`
1068
+ # @return [Google::Apis::FirebasehostingV1beta1::ActingUser]
1069
+ attr_accessor :create_user
1070
+
1071
+ # Output only. The time at which the version was `DELETED`.
1072
+ # Corresponds to the JSON property `deleteTime`
1073
+ # @return [String]
1074
+ attr_accessor :delete_time
1075
+
1076
+ # Contains metadata about the user who performed an action, such as creating a
1077
+ # release or finalizing a version.
1078
+ # Corresponds to the JSON property `deleteUser`
1079
+ # @return [Google::Apis::FirebasehostingV1beta1::ActingUser]
1080
+ attr_accessor :delete_user
1081
+
1082
+ # Output only. The total number of files associated with the version. This value
1083
+ # is calculated after a version is `FINALIZED`.
1084
+ # Corresponds to the JSON property `fileCount`
1085
+ # @return [Fixnum]
1086
+ attr_accessor :file_count
1087
+
1088
+ # Output only. The time at which the version was `FINALIZED`.
1089
+ # Corresponds to the JSON property `finalizeTime`
1090
+ # @return [String]
1091
+ attr_accessor :finalize_time
1092
+
1093
+ # Contains metadata about the user who performed an action, such as creating a
1094
+ # release or finalizing a version.
1095
+ # Corresponds to the JSON property `finalizeUser`
1096
+ # @return [Google::Apis::FirebasehostingV1beta1::ActingUser]
1097
+ attr_accessor :finalize_user
1098
+
1099
+ # The labels used for extra metadata and/or filtering.
1100
+ # Corresponds to the JSON property `labels`
1101
+ # @return [Hash<String,String>]
1102
+ attr_accessor :labels
1103
+
1104
+ # The unique identifier for a version, in the format: sites/site-name /versions/
1105
+ # versionID This name is provided in the response body when you call the [`
1106
+ # CreateVersion`](../sites.versions/create) endpoint.
1107
+ # Corresponds to the JSON property `name`
1108
+ # @return [String]
1109
+ attr_accessor :name
1110
+
1111
+ # Version preview configuration. If active and unexpired, this version will be
1112
+ # accessible via a custom URL even if it is not the currently released version.
1113
+ # Deprecated in favor of site channels.
1114
+ # Corresponds to the JSON property `preview`
1115
+ # @return [Google::Apis::FirebasehostingV1beta1::PreviewConfig]
1116
+ attr_accessor :preview
1117
+
1118
+ # The deploy status of a version. For a successful deploy, call the [`
1119
+ # CreateVersion`](sites.versions/create) endpoint to make a new version (`
1120
+ # CREATED` status), [upload all desired files](sites.versions/populateFiles) to
1121
+ # the version, then [update](sites.versions/patch) the version to the `FINALIZED`
1122
+ # status. Note that if you leave the version in the `CREATED` state for more
1123
+ # than 12 hours, the system will automatically mark the version as `ABANDONED`.
1124
+ # You can also change the status of a version to `DELETED` by calling the [`
1125
+ # DeleteVersion`](sites.versions/delete) endpoint.
1126
+ # Corresponds to the JSON property `status`
1127
+ # @return [String]
1128
+ attr_accessor :status
1129
+
1130
+ # Output only. The total stored bytesize of the version. This value is
1131
+ # calculated after a version is `FINALIZED`.
1132
+ # Corresponds to the JSON property `versionBytes`
1133
+ # @return [Fixnum]
1134
+ attr_accessor :version_bytes
1135
+
1136
+ def initialize(**args)
1137
+ update!(**args)
1138
+ end
1139
+
1140
+ # Update properties of this object
1141
+ def update!(**args)
1142
+ @config = args[:config] if args.key?(:config)
1143
+ @create_time = args[:create_time] if args.key?(:create_time)
1144
+ @create_user = args[:create_user] if args.key?(:create_user)
1145
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
1146
+ @delete_user = args[:delete_user] if args.key?(:delete_user)
1147
+ @file_count = args[:file_count] if args.key?(:file_count)
1148
+ @finalize_time = args[:finalize_time] if args.key?(:finalize_time)
1149
+ @finalize_user = args[:finalize_user] if args.key?(:finalize_user)
1150
+ @labels = args[:labels] if args.key?(:labels)
1151
+ @name = args[:name] if args.key?(:name)
1152
+ @preview = args[:preview] if args.key?(:preview)
1153
+ @status = args[:status] if args.key?(:status)
1154
+ @version_bytes = args[:version_bytes] if args.key?(:version_bytes)
1155
+ end
1156
+ end
1157
+
1158
+ # A static content file that is part of a version.
1159
+ class VersionFile
1160
+ include Google::Apis::Core::Hashable
1161
+
1162
+ # The SHA256 content hash of the file.
1163
+ # Corresponds to the JSON property `hash`
1164
+ # @return [String]
1165
+ attr_accessor :hash_prop
1166
+
1167
+ # The URI at which the file's content should display.
1168
+ # Corresponds to the JSON property `path`
1169
+ # @return [String]
1170
+ attr_accessor :path
1171
+
1172
+ # Output only. The current status of a particular file in the specified version.
1173
+ # The value will be either `pending upload` or `uploaded`.
1174
+ # Corresponds to the JSON property `status`
1175
+ # @return [String]
1176
+ attr_accessor :status
1177
+
1178
+ def initialize(**args)
1179
+ update!(**args)
1180
+ end
1181
+
1182
+ # Update properties of this object
1183
+ def update!(**args)
1184
+ @hash_prop = args[:hash_prop] if args.key?(:hash_prop)
1185
+ @path = args[:path] if args.key?(:path)
1186
+ @status = args[:status] if args.key?(:status)
1187
+ end
1188
+ end
1189
+ end
1190
+ end
1191
+ end