google-apis-firebasehosting_v1beta1 0.1.0 → 0.6.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 +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/google/apis/firebasehosting_v1beta1.rb +5 -4
- data/lib/google/apis/firebasehosting_v1beta1/classes.rb +164 -73
- data/lib/google/apis/firebasehosting_v1beta1/gem_version.rb +3 -3
- data/lib/google/apis/firebasehosting_v1beta1/representations.rb +32 -0
- data/lib/google/apis/firebasehosting_v1beta1/service.rb +391 -141
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2b3328db615c6142acbe6f92b732701067d70062403add2a46c04e2761a73c8
|
4
|
+
data.tar.gz: c4408ec709d3c4f0b3c1af81baba96430ffb1714fca27f0916e713472a1029c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88448afe99de008a6eefa01c029bc9bf202902c0e6692030f61fadb3956f56e03a79f6f6bb435adb3a2405f5cf48728436afb21eead9799fea45f66e0fb9b495
|
7
|
+
data.tar.gz: '084fed1faf7235c70f25b07f4630a44c91f9cf6be06f0980cdf47df188c6f44a993317c7b77121eb263bcde8a7106c038061b95efa345f1dc989c702606238f8'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release history for google-apis-firebasehosting_v1beta1
|
2
2
|
|
3
|
+
### v0.6.0 (2021-04-20)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210415
|
6
|
+
|
7
|
+
### v0.5.0 (2021-03-16)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210315
|
10
|
+
|
11
|
+
### v0.4.0 (2021-03-12)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210311
|
14
|
+
* Regenerated using generator version 0.2.0
|
15
|
+
|
16
|
+
### v0.3.0 (2021-03-04)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210303
|
19
|
+
|
20
|
+
### v0.2.0 (2021-02-02)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210129
|
23
|
+
* Regenerated using generator version 0.1.2
|
24
|
+
|
3
25
|
### v0.1.0 (2021-01-07)
|
4
26
|
|
5
27
|
* Regenerated using generator version 0.1.1
|
@@ -21,9 +21,10 @@ module Google
|
|
21
21
|
module Apis
|
22
22
|
# Firebase Hosting API
|
23
23
|
#
|
24
|
-
# The Firebase Hosting REST API enables programmatic and customizable
|
25
|
-
# deployments to your Firebase-hosted sites. Use this REST API to
|
26
|
-
#
|
24
|
+
# The Firebase Hosting REST API enables programmatic and customizable management
|
25
|
+
# and deployments to your Firebase-hosted sites. Use this REST API to create and
|
26
|
+
# manage channels and sites as well as to deploy new or updated hosting
|
27
|
+
# configurations and content files.
|
27
28
|
#
|
28
29
|
# @see https://firebase.google.com/docs/hosting/
|
29
30
|
module FirebasehostingV1beta1
|
@@ -31,7 +32,7 @@ module Google
|
|
31
32
|
# This is NOT the gem version.
|
32
33
|
VERSION = 'V1beta1'
|
33
34
|
|
34
|
-
#
|
35
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
35
36
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
36
37
|
|
37
38
|
# View your data across Google Cloud Platform services
|
@@ -103,8 +103,8 @@ module Google
|
|
103
103
|
end
|
104
104
|
|
105
105
|
# A `Channel` represents a stream of releases for a site. All sites have a
|
106
|
-
# default `live` channel that serves content to the
|
107
|
-
#
|
106
|
+
# default `live` channel that serves content to the Firebase-provided subdomains
|
107
|
+
# and any connected custom domains.
|
108
108
|
class Channel
|
109
109
|
include Google::Apis::Core::Hashable
|
110
110
|
|
@@ -114,8 +114,8 @@ module Google
|
|
114
114
|
attr_accessor :create_time
|
115
115
|
|
116
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.
|
117
|
+
# channel will not be automatically deleted. This field is present in the output
|
118
|
+
# whether it's set directly or via the `ttl` field.
|
119
119
|
# Corresponds to the JSON property `expireTime`
|
120
120
|
# @return [String]
|
121
121
|
attr_accessor :expire_time
|
@@ -125,7 +125,8 @@ module Google
|
|
125
125
|
# @return [Hash<String,String>]
|
126
126
|
attr_accessor :labels
|
127
127
|
|
128
|
-
# The fully-qualified
|
128
|
+
# The fully-qualified resource name for the channel, in the format: sites/
|
129
|
+
# SITE_ID/channels/CHANNEL_ID
|
129
130
|
# Corresponds to the JSON property `name`
|
130
131
|
# @return [String]
|
131
132
|
attr_accessor :name
|
@@ -153,8 +154,12 @@ module Google
|
|
153
154
|
# @return [String]
|
154
155
|
attr_accessor :update_time
|
155
156
|
|
156
|
-
# Output only. The URL at which the
|
157
|
-
#
|
157
|
+
# Output only. The URL at which the content of this channel's current release
|
158
|
+
# can be viewed. This URL is a Firebase-provided subdomain of `web.app`. The
|
159
|
+
# content of this channel's current release can also be viewed at the Firebase-
|
160
|
+
# provided subdomain of `firebaseapp.com`. If this channel is the `live` channel
|
161
|
+
# for the Hosting site, then the content of this channel's current release can
|
162
|
+
# also be viewed at any connected custom domains.
|
158
163
|
# Corresponds to the JSON property `url`
|
159
164
|
# @return [String]
|
160
165
|
attr_accessor :url
|
@@ -177,7 +182,7 @@ module Google
|
|
177
182
|
end
|
178
183
|
end
|
179
184
|
|
180
|
-
#
|
185
|
+
#
|
181
186
|
class CloneVersionRequest
|
182
187
|
include Google::Apis::Core::Hashable
|
183
188
|
|
@@ -186,7 +191,10 @@ module Google
|
|
186
191
|
# @return [Google::Apis::FirebasehostingV1beta1::PathFilter]
|
187
192
|
attr_accessor :exclude
|
188
193
|
|
189
|
-
# If true, immediately
|
194
|
+
# If true, the call to `CloneVersion` immediately finalizes the version after
|
195
|
+
# cloning is complete. If false, the cloned version will have a status of `
|
196
|
+
# CREATED`. Use [`UpdateVersion`](patch) to set the status of the version to `
|
197
|
+
# FINALIZED`.
|
190
198
|
# Corresponds to the JSON property `finalize`
|
191
199
|
# @return [Boolean]
|
192
200
|
attr_accessor :finalize
|
@@ -197,8 +205,8 @@ module Google
|
|
197
205
|
# @return [Google::Apis::FirebasehostingV1beta1::PathFilter]
|
198
206
|
attr_accessor :include
|
199
207
|
|
200
|
-
# Required. The
|
201
|
-
# versions
|
208
|
+
# Required. The unique identifier for the version to be cloned, in the format:
|
209
|
+
# sites/SITE_ID/versions/VERSION_ID
|
202
210
|
# Corresponds to the JSON property `sourceVersion`
|
203
211
|
# @return [String]
|
204
212
|
attr_accessor :source_version
|
@@ -404,14 +412,14 @@ module Google
|
|
404
412
|
end
|
405
413
|
end
|
406
414
|
|
407
|
-
# A [`
|
408
|
-
# URL pattern that, if matched to the request URL path, triggers
|
409
|
-
# apply the specified custom response headers.
|
415
|
+
# A [`Header`](https://firebase.google.com/docs/hosting/full-config#headers)
|
416
|
+
# specifies a URL pattern that, if matched to the request URL path, triggers
|
417
|
+
# Hosting to apply the specified custom response headers.
|
410
418
|
class Header
|
411
419
|
include Google::Apis::Core::Hashable
|
412
420
|
|
413
|
-
# The user-supplied [glob](/docs/hosting/full-config#
|
414
|
-
# match against the request URL path.
|
421
|
+
# The user-supplied [glob](https://firebase.google.com/docs/hosting/full-config#
|
422
|
+
# glob_pattern_matching) to match against the request URL path.
|
415
423
|
# Corresponds to the JSON property `glob`
|
416
424
|
# @return [String]
|
417
425
|
attr_accessor :glob
|
@@ -458,7 +466,7 @@ module Google
|
|
458
466
|
end
|
459
467
|
end
|
460
468
|
|
461
|
-
#
|
469
|
+
#
|
462
470
|
class ListChannelsResponse
|
463
471
|
include Google::Apis::Core::Hashable
|
464
472
|
|
@@ -467,9 +475,9 @@ module Google
|
|
467
475
|
# @return [Array<Google::Apis::FirebasehostingV1beta1::Channel>]
|
468
476
|
attr_accessor :channels
|
469
477
|
|
470
|
-
#
|
471
|
-
#
|
472
|
-
#
|
478
|
+
# The pagination token, if more results exist beyond the ones in this response.
|
479
|
+
# Include this token in your next call to `ListChannels`. Page tokens are short-
|
480
|
+
# lived and should not be stored.
|
473
481
|
# Corresponds to the JSON property `nextPageToken`
|
474
482
|
# @return [String]
|
475
483
|
attr_accessor :next_page_token
|
@@ -514,9 +522,9 @@ module Google
|
|
514
522
|
class ListReleasesResponse
|
515
523
|
include Google::Apis::Core::Hashable
|
516
524
|
|
517
|
-
#
|
518
|
-
#
|
519
|
-
#
|
525
|
+
# The pagination token, if more results exist beyond the ones in this response.
|
526
|
+
# Include this token in your next call to `ListReleases`. Page tokens are short-
|
527
|
+
# lived and should not be stored.
|
520
528
|
# Corresponds to the JSON property `nextPageToken`
|
521
529
|
# @return [String]
|
522
530
|
attr_accessor :next_page_token
|
@@ -537,16 +545,45 @@ module Google
|
|
537
545
|
end
|
538
546
|
end
|
539
547
|
|
548
|
+
#
|
549
|
+
class ListSitesResponse
|
550
|
+
include Google::Apis::Core::Hashable
|
551
|
+
|
552
|
+
# The pagination token, if more results exist beyond the ones in this response.
|
553
|
+
# Include this token in your next call to `ListSites`. Page tokens are short-
|
554
|
+
# lived and should not be stored.
|
555
|
+
# Corresponds to the JSON property `nextPageToken`
|
556
|
+
# @return [String]
|
557
|
+
attr_accessor :next_page_token
|
558
|
+
|
559
|
+
# A list of Site objects associated with the specified Firebase project.
|
560
|
+
# Corresponds to the JSON property `sites`
|
561
|
+
# @return [Array<Google::Apis::FirebasehostingV1beta1::Site>]
|
562
|
+
attr_accessor :sites
|
563
|
+
|
564
|
+
def initialize(**args)
|
565
|
+
update!(**args)
|
566
|
+
end
|
567
|
+
|
568
|
+
# Update properties of this object
|
569
|
+
def update!(**args)
|
570
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
571
|
+
@sites = args[:sites] if args.key?(:sites)
|
572
|
+
end
|
573
|
+
end
|
574
|
+
|
540
575
|
#
|
541
576
|
class ListVersionFilesResponse
|
542
577
|
include Google::Apis::Core::Hashable
|
543
578
|
|
544
|
-
# The list
|
579
|
+
# The list of paths to the hashes of the files in the specified version.
|
545
580
|
# Corresponds to the JSON property `files`
|
546
581
|
# @return [Array<Google::Apis::FirebasehostingV1beta1::VersionFile>]
|
547
582
|
attr_accessor :files
|
548
583
|
|
549
|
-
# The pagination token, if more results exist.
|
584
|
+
# The pagination token, if more results exist beyond the ones in this response.
|
585
|
+
# Include this token in your next call to `ListVersionFiles`. Page tokens are
|
586
|
+
# short-lived and should not be stored.
|
550
587
|
# Corresponds to the JSON property `nextPageToken`
|
551
588
|
# @return [String]
|
552
589
|
attr_accessor :next_page_token
|
@@ -566,7 +603,9 @@ module Google
|
|
566
603
|
class ListVersionsResponse
|
567
604
|
include Google::Apis::Core::Hashable
|
568
605
|
|
569
|
-
# The pagination token, if more results exist
|
606
|
+
# The pagination token, if more results exist beyond the ones in this response.
|
607
|
+
# Include this token in your next call to `ListVersions`. Page tokens are short-
|
608
|
+
# lived and should not be stored.
|
570
609
|
# Corresponds to the JSON property `nextPageToken`
|
571
610
|
# @return [String]
|
572
611
|
attr_accessor :next_page_token
|
@@ -653,7 +692,7 @@ module Google
|
|
653
692
|
class PathFilter
|
654
693
|
include Google::Apis::Core::Hashable
|
655
694
|
|
656
|
-
# An array of
|
695
|
+
# An array of RegEx values by which to filter.
|
657
696
|
# Corresponds to the JSON property `regexes`
|
658
697
|
# @return [Array<String>]
|
659
698
|
attr_accessor :regexes
|
@@ -668,14 +707,14 @@ module Google
|
|
668
707
|
end
|
669
708
|
end
|
670
709
|
|
671
|
-
#
|
710
|
+
#
|
672
711
|
class PopulateVersionFilesRequest
|
673
712
|
include Google::Apis::Core::Hashable
|
674
713
|
|
675
714
|
# A set of file paths to the hashes corresponding to assets that should be added
|
676
|
-
# to the version.
|
677
|
-
#
|
678
|
-
#
|
715
|
+
# to the version. A file path to an empty hash will remove the path from the
|
716
|
+
# version. Calculate a hash by Gzipping the file then taking the SHA256 hash of
|
717
|
+
# the newly compressed file.
|
679
718
|
# Corresponds to the JSON property `files`
|
680
719
|
# @return [Hash<String,String>]
|
681
720
|
attr_accessor :files
|
@@ -695,15 +734,15 @@ module Google
|
|
695
734
|
include Google::Apis::Core::Hashable
|
696
735
|
|
697
736
|
# The content hashes of the specified files that need to be uploaded to the
|
698
|
-
# specified
|
737
|
+
# specified URL.
|
699
738
|
# Corresponds to the JSON property `uploadRequiredHashes`
|
700
739
|
# @return [Array<String>]
|
701
740
|
attr_accessor :upload_required_hashes
|
702
741
|
|
703
742
|
# The URL to which the files should be uploaded, in the format: "https://upload-
|
704
|
-
# firebasehosting.googleapis.com/upload/sites/
|
705
|
-
#
|
706
|
-
#
|
743
|
+
# firebasehosting.googleapis.com/upload/sites/SITE_ID /versions/VERSION_ID/files"
|
744
|
+
# Perform a multipart `POST` of the Gzipped file contents to the URL using a
|
745
|
+
# forward slash and the hash of the file appended to the end.
|
707
746
|
# Corresponds to the JSON property `uploadUrl`
|
708
747
|
# @return [String]
|
709
748
|
attr_accessor :upload_url
|
@@ -719,9 +758,7 @@ module Google
|
|
719
758
|
end
|
720
759
|
end
|
721
760
|
|
722
|
-
#
|
723
|
-
# accessible via a custom URL even if it is not the currently released version.
|
724
|
-
# Deprecated in favor of site channels.
|
761
|
+
# Deprecated in favor of [site channels](sites.channels).
|
725
762
|
class PreviewConfig
|
726
763
|
include Google::Apis::Core::Hashable
|
727
764
|
|
@@ -748,14 +785,14 @@ module Google
|
|
748
785
|
end
|
749
786
|
end
|
750
787
|
|
751
|
-
# A [`
|
752
|
-
# pattern that, if matched to the request URL path, triggers
|
753
|
-
# with a redirect to the specified destination path.
|
788
|
+
# A [`Redirect`](https://firebase.google.com/docs/hosting/full-config#redirects)
|
789
|
+
# specifies a URL pattern that, if matched to the request URL path, triggers
|
790
|
+
# Hosting to respond with a redirect to the specified destination path.
|
754
791
|
class Redirect
|
755
792
|
include Google::Apis::Core::Hashable
|
756
793
|
|
757
|
-
# The user-supplied [glob](/docs/hosting/full-config#
|
758
|
-
# match against the request URL path.
|
794
|
+
# The user-supplied [glob](https://firebase.google.com/docs/hosting/full-config#
|
795
|
+
# glob_pattern_matching) to match against the request URL path.
|
759
796
|
# Corresponds to the JSON property `glob`
|
760
797
|
# @return [String]
|
761
798
|
attr_accessor :glob
|
@@ -804,9 +841,11 @@ module Google
|
|
804
841
|
# @return [String]
|
805
842
|
attr_accessor :message
|
806
843
|
|
807
|
-
# Output only. The unique identifier for the release, in
|
808
|
-
#
|
809
|
-
#
|
844
|
+
# Output only. The unique identifier for the release, in either of the following
|
845
|
+
# formats: - sites/SITE_ID/releases/RELEASE_ID - sites/SITE_ID/channels/
|
846
|
+
# CHANNEL_ID/releases/RELEASE_ID This name is provided in the response body when
|
847
|
+
# you call [`releases.create`](sites.releases/create) or [`channels.releases.
|
848
|
+
# create`](sites.channels.releases/create).
|
810
849
|
# Corresponds to the JSON property `name`
|
811
850
|
# @return [String]
|
812
851
|
attr_accessor :name
|
@@ -828,8 +867,8 @@ module Google
|
|
828
867
|
# @return [String]
|
829
868
|
attr_accessor :type
|
830
869
|
|
831
|
-
# A `Version` is
|
832
|
-
#
|
870
|
+
# A `Version` is a configuration and a collection of static files which
|
871
|
+
# determine how a site is displayed.
|
833
872
|
# Corresponds to the JSON property `version`
|
834
873
|
# @return [Google::Apis::FirebasehostingV1beta1::Version]
|
835
874
|
attr_accessor :version
|
@@ -849,9 +888,9 @@ module Google
|
|
849
888
|
end
|
850
889
|
end
|
851
890
|
|
852
|
-
# A [`
|
853
|
-
# pattern that, if matched to the request URL path, triggers
|
854
|
-
# as if the service were given the specified destination URL.
|
891
|
+
# A [`Rewrite`](https://firebase.google.com/docs/hosting/full-config#rewrites)
|
892
|
+
# specifies a URL pattern that, if matched to the request URL path, triggers
|
893
|
+
# Hosting to respond as if the service were given the specified destination URL.
|
855
894
|
class Rewrite
|
856
895
|
include Google::Apis::Core::Hashable
|
857
896
|
|
@@ -867,8 +906,8 @@ module Google
|
|
867
906
|
# @return [String]
|
868
907
|
attr_accessor :function
|
869
908
|
|
870
|
-
# The user-supplied [glob](/docs/hosting/full-config#
|
871
|
-
# match against the request URL path.
|
909
|
+
# The user-supplied [glob](https://firebase.google.com/docs/hosting/full-config#
|
910
|
+
# glob_pattern_matching) to match against the request URL path.
|
872
911
|
# Corresponds to the JSON property `glob`
|
873
912
|
# @return [String]
|
874
913
|
attr_accessor :glob
|
@@ -910,8 +949,8 @@ module Google
|
|
910
949
|
# The configuration for how incoming requests to a site should be routed and
|
911
950
|
# processed before serving content. The URL request paths are matched against
|
912
951
|
# the specified URL patterns in the configuration, then Hosting applies the
|
913
|
-
# applicable configuration according to a specific [priority order](
|
914
|
-
# hosting/full-config#hosting_priority_order).
|
952
|
+
# applicable configuration according to a specific [priority order](https://
|
953
|
+
# firebase.google.com/docs/hosting/full-config#hosting_priority_order).
|
915
954
|
class ServingConfig
|
916
955
|
include Google::Apis::Core::Hashable
|
917
956
|
|
@@ -973,6 +1012,60 @@ module Google
|
|
973
1012
|
end
|
974
1013
|
end
|
975
1014
|
|
1015
|
+
# A `Site` represents a Firebase Hosting site.
|
1016
|
+
class Site
|
1017
|
+
include Google::Apis::Core::Hashable
|
1018
|
+
|
1019
|
+
# Optional. The [ID of a Web App](https://firebase.google.com/docs/projects/api/
|
1020
|
+
# reference/rest/v1beta1/projects.webApps#WebApp.FIELDS.app_id) associated with
|
1021
|
+
# the Hosting site.
|
1022
|
+
# Corresponds to the JSON property `appId`
|
1023
|
+
# @return [String]
|
1024
|
+
attr_accessor :app_id
|
1025
|
+
|
1026
|
+
# Output only. The default URL for the Hosting site.
|
1027
|
+
# Corresponds to the JSON property `defaultUrl`
|
1028
|
+
# @return [String]
|
1029
|
+
attr_accessor :default_url
|
1030
|
+
|
1031
|
+
# Optional. User-specified labels for the Hosting site.
|
1032
|
+
# Corresponds to the JSON property `labels`
|
1033
|
+
# @return [Hash<String,String>]
|
1034
|
+
attr_accessor :labels
|
1035
|
+
|
1036
|
+
# Output only. The fully-qualified resource name of the Hosting site, in the
|
1037
|
+
# format: projects/PROJECT_IDENTIFIER/sites/SITE_ID PROJECT_IDENTIFIER: the
|
1038
|
+
# Firebase project's [`ProjectNumber`](https://firebase.google.com/docs/projects/
|
1039
|
+
# api/reference/rest/v1beta1/projects#FirebaseProject.FIELDS.project_number) ***(
|
1040
|
+
# recommended)*** or its [`ProjectId`](https://firebase.google.com/docs/projects/
|
1041
|
+
# api/reference/rest/v1beta1/projects#FirebaseProject.FIELDS.project_id). Learn
|
1042
|
+
# more about using project identifiers in Google's [AIP 2510 standard](https://
|
1043
|
+
# google.aip.dev/cloud/2510).
|
1044
|
+
# Corresponds to the JSON property `name`
|
1045
|
+
# @return [String]
|
1046
|
+
attr_accessor :name
|
1047
|
+
|
1048
|
+
# Output only. The type of Hosting site. Every Firebase project has a `
|
1049
|
+
# DEFAULT_SITE`, which is created when Hosting is provisioned for the project.
|
1050
|
+
# All additional sites are `USER_SITE`.
|
1051
|
+
# Corresponds to the JSON property `type`
|
1052
|
+
# @return [String]
|
1053
|
+
attr_accessor :type
|
1054
|
+
|
1055
|
+
def initialize(**args)
|
1056
|
+
update!(**args)
|
1057
|
+
end
|
1058
|
+
|
1059
|
+
# Update properties of this object
|
1060
|
+
def update!(**args)
|
1061
|
+
@app_id = args[:app_id] if args.key?(:app_id)
|
1062
|
+
@default_url = args[:default_url] if args.key?(:default_url)
|
1063
|
+
@labels = args[:labels] if args.key?(:labels)
|
1064
|
+
@name = args[:name] if args.key?(:name)
|
1065
|
+
@type = args[:type] if args.key?(:type)
|
1066
|
+
end
|
1067
|
+
end
|
1068
|
+
|
976
1069
|
# A `SiteConfig` contains metadata associated with a specific site that controls
|
977
1070
|
# Firebase Hosting serving behavior
|
978
1071
|
class SiteConfig
|
@@ -1043,16 +1136,16 @@ module Google
|
|
1043
1136
|
end
|
1044
1137
|
end
|
1045
1138
|
|
1046
|
-
# A `Version` is
|
1047
|
-
#
|
1139
|
+
# A `Version` is a configuration and a collection of static files which
|
1140
|
+
# determine how a site is displayed.
|
1048
1141
|
class Version
|
1049
1142
|
include Google::Apis::Core::Hashable
|
1050
1143
|
|
1051
1144
|
# The configuration for how incoming requests to a site should be routed and
|
1052
1145
|
# processed before serving content. The URL request paths are matched against
|
1053
1146
|
# the specified URL patterns in the configuration, then Hosting applies the
|
1054
|
-
# applicable configuration according to a specific [priority order](
|
1055
|
-
# hosting/full-config#hosting_priority_order).
|
1147
|
+
# applicable configuration according to a specific [priority order](https://
|
1148
|
+
# firebase.google.com/docs/hosting/full-config#hosting_priority_order).
|
1056
1149
|
# Corresponds to the JSON property `config`
|
1057
1150
|
# @return [Google::Apis::FirebasehostingV1beta1::ServingConfig]
|
1058
1151
|
attr_accessor :config
|
@@ -1101,28 +1194,26 @@ module Google
|
|
1101
1194
|
# @return [Hash<String,String>]
|
1102
1195
|
attr_accessor :labels
|
1103
1196
|
|
1104
|
-
# The
|
1105
|
-
#
|
1106
|
-
# CreateVersion`](
|
1197
|
+
# The fully-qualified resource name for the version, in the format: sites/
|
1198
|
+
# SITE_ID/versions/VERSION_ID This name is provided in the response body when
|
1199
|
+
# you call [`CreateVersion`](sites.versions/create).
|
1107
1200
|
# Corresponds to the JSON property `name`
|
1108
1201
|
# @return [String]
|
1109
1202
|
attr_accessor :name
|
1110
1203
|
|
1111
|
-
#
|
1112
|
-
# accessible via a custom URL even if it is not the currently released version.
|
1113
|
-
# Deprecated in favor of site channels.
|
1204
|
+
# Deprecated in favor of [site channels](sites.channels).
|
1114
1205
|
# Corresponds to the JSON property `preview`
|
1115
1206
|
# @return [Google::Apis::FirebasehostingV1beta1::PreviewConfig]
|
1116
1207
|
attr_accessor :preview
|
1117
1208
|
|
1118
|
-
# The deploy status of
|
1119
|
-
# CreateVersion`](sites.versions/create)
|
1120
|
-
#
|
1121
|
-
#
|
1122
|
-
#
|
1123
|
-
#
|
1124
|
-
#
|
1125
|
-
#
|
1209
|
+
# The deploy status of the version. For a successful deploy, call [`
|
1210
|
+
# CreateVersion`](sites.versions/create) to make a new version (`CREATED` status)
|
1211
|
+
# , [upload all desired files](sites.versions/populateFiles) to the version,
|
1212
|
+
# then [update](sites.versions/patch) the version to the `FINALIZED` status.
|
1213
|
+
# Note that if you leave the version in the `CREATED` state for more than 12
|
1214
|
+
# hours, the system will automatically mark the version as `ABANDONED`. You can
|
1215
|
+
# also change the status of a version to `DELETED` by calling [`DeleteVersion`](
|
1216
|
+
# sites.versions/delete).
|
1126
1217
|
# Corresponds to the JSON property `status`
|
1127
1218
|
# @return [String]
|
1128
1219
|
attr_accessor :status
|