google-api-client 0.24.2 → 0.24.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +68 -0
- data/README.md +9 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +5 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +90 -87
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +17 -15
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +155 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +82 -0
- data/generated/google/apis/alertcenter_v1beta1.rb +31 -0
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +835 -0
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +394 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +302 -0
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +37 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +8 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -4
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/service.rb +5 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/service.rb +5 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +8 -1
- data/generated/google/apis/appengine_v1/representations.rb +1 -0
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +6 -5
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +12 -10
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +52 -18
- data/generated/google/apis/cloudasset_v1beta1.rb +34 -0
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +798 -0
- data/generated/google/apis/cloudasset_v1beta1/representations.rb +263 -0
- data/generated/google/apis/cloudasset_v1beta1/service.rb +313 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +42 -5
- data/generated/google/apis/cloudbuild_v1/representations.rb +6 -0
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +59 -0
- data/generated/google/apis/cloudiot_v1/representations.rb +28 -0
- data/generated/google/apis/cloudiot_v1/service.rb +94 -0
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +1 -0
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +34 -5
- data/generated/google/apis/composer_v1beta1/representations.rb +1 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +227 -48
- data/generated/google/apis/compute_alpha/representations.rb +84 -1
- data/generated/google/apis/compute_alpha/service.rb +50 -10
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +593 -77
- data/generated/google/apis/compute_beta/representations.rb +224 -18
- data/generated/google/apis/compute_beta/service.rb +174 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +41 -18
- data/generated/google/apis/compute_v1/representations.rb +3 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +372 -119
- data/generated/google/apis/content_v2/representations.rb +157 -39
- data/generated/google/apis/content_v2/service.rb +101 -11
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +372 -119
- data/generated/google/apis/content_v2sandbox/representations.rb +157 -39
- data/generated/google/apis/content_v2sandbox/service.rb +90 -0
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +7 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +1 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +12 -0
- data/generated/google/apis/dataproc_v1/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +21 -6
- data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +2 -2
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +2 -2
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +110 -5
- data/generated/google/apis/dlp_v2/representations.rb +17 -0
- data/generated/google/apis/dlp_v2/service.rb +41 -3
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +0 -234
- data/generated/google/apis/file_v1beta1/representations.rb +0 -79
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +19 -1
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +3 -0
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -1
- data/generated/google/apis/firebasehosting_v1beta1.rb +43 -0
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +767 -0
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +337 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +502 -0
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +8 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +1 -0
- data/generated/google/apis/firebaserules_v1/service.rb +1 -1
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/firestore_v1beta2/service.rb +80 -80
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/service.rb +4 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +3 -1
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/service.rb +0 -10
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/service.rb +339 -0
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +45 -37
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +21 -18
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +45 -20
- data/generated/google/apis/jobs_v3p1beta1/representations.rb +2 -0
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +12 -0
- data/generated/google/apis/logging_v2/representations.rb +1 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +12 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +2 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +19 -17
- data/generated/google/apis/monitoring_v3/representations.rb +1 -2
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +18 -15
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +18 -15
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +2 -150
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -42
- data/generated/google/apis/servicenetworking_v1beta.rb +38 -0
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +3440 -0
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +992 -0
- data/generated/google/apis/servicenetworking_v1beta/service.rb +227 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2 -150
- data/generated/google/apis/serviceuser_v1/representations.rb +0 -42
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +308 -30
- data/generated/google/apis/spanner_v1/representations.rb +17 -0
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +12 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +1 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +47 -0
- data/generated/google/apis/testing_v1/representations.rb +18 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +676 -0
- data/generated/google/apis/videointelligence_v1/representations.rb +306 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +676 -0
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +306 -0
- data/generated/google/apis/{videointelligence_v1beta1.rb → videointelligence_v1p1beta1.rb} +6 -6
- data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/classes.rb +885 -489
- data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/representations.rb +357 -194
- data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/service.rb +12 -12
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +2 -2
- data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +22 -6
@@ -0,0 +1,337 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
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
|
+
class ActingUser
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class CertDnsChallenge
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class CertHttpChallenge
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class Domain
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class DomainProvisioning
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class DomainRedirect
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class Empty
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class Header
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class ListDomainsResponse
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class ListReleasesResponse
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class ListVersionFilesResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class PopulateVersionFilesRequest
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class PopulateVersionFilesResponse
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class Redirect
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class Release
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class Rewrite
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class ServingConfig
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class Version
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class VersionFile
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class ActingUser
|
140
|
+
# @private
|
141
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
142
|
+
property :email, as: 'email'
|
143
|
+
property :image_url, as: 'imageUrl'
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
class CertDnsChallenge
|
148
|
+
# @private
|
149
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
150
|
+
property :domain_name, as: 'domainName'
|
151
|
+
property :token, as: 'token'
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
class CertHttpChallenge
|
156
|
+
# @private
|
157
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
158
|
+
property :path, as: 'path'
|
159
|
+
property :token, as: 'token'
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
class Domain
|
164
|
+
# @private
|
165
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
166
|
+
property :domain_name, as: 'domainName'
|
167
|
+
property :domain_redirect, as: 'domainRedirect', class: Google::Apis::FirebasehostingV1beta1::DomainRedirect, decorator: Google::Apis::FirebasehostingV1beta1::DomainRedirect::Representation
|
168
|
+
|
169
|
+
property :provisioning, as: 'provisioning', class: Google::Apis::FirebasehostingV1beta1::DomainProvisioning, decorator: Google::Apis::FirebasehostingV1beta1::DomainProvisioning::Representation
|
170
|
+
|
171
|
+
property :site, as: 'site'
|
172
|
+
property :status, as: 'status'
|
173
|
+
property :update_time, as: 'updateTime'
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
class DomainProvisioning
|
178
|
+
# @private
|
179
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
180
|
+
collection :cert_challenge_discovered_txt, as: 'certChallengeDiscoveredTxt'
|
181
|
+
property :cert_challenge_dns, as: 'certChallengeDns', class: Google::Apis::FirebasehostingV1beta1::CertDnsChallenge, decorator: Google::Apis::FirebasehostingV1beta1::CertDnsChallenge::Representation
|
182
|
+
|
183
|
+
property :cert_challenge_http, as: 'certChallengeHttp', class: Google::Apis::FirebasehostingV1beta1::CertHttpChallenge, decorator: Google::Apis::FirebasehostingV1beta1::CertHttpChallenge::Representation
|
184
|
+
|
185
|
+
property :cert_status, as: 'certStatus'
|
186
|
+
collection :discovered_ips, as: 'discoveredIps'
|
187
|
+
property :dns_fetch_time, as: 'dnsFetchTime'
|
188
|
+
property :dns_status, as: 'dnsStatus'
|
189
|
+
collection :expected_ips, as: 'expectedIps'
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
class DomainRedirect
|
194
|
+
# @private
|
195
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
196
|
+
property :domain_name, as: 'domainName'
|
197
|
+
property :type, as: 'type'
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
class Empty
|
202
|
+
# @private
|
203
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
class Header
|
208
|
+
# @private
|
209
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
210
|
+
property :glob, as: 'glob'
|
211
|
+
hash :headers, as: 'headers'
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
class ListDomainsResponse
|
216
|
+
# @private
|
217
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
218
|
+
collection :domains, as: 'domains', class: Google::Apis::FirebasehostingV1beta1::Domain, decorator: Google::Apis::FirebasehostingV1beta1::Domain::Representation
|
219
|
+
|
220
|
+
property :next_page_token, as: 'nextPageToken'
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
class ListReleasesResponse
|
225
|
+
# @private
|
226
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
227
|
+
property :next_page_token, as: 'nextPageToken'
|
228
|
+
collection :releases, as: 'releases', class: Google::Apis::FirebasehostingV1beta1::Release, decorator: Google::Apis::FirebasehostingV1beta1::Release::Representation
|
229
|
+
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
class ListVersionFilesResponse
|
234
|
+
# @private
|
235
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
236
|
+
collection :files, as: 'files', class: Google::Apis::FirebasehostingV1beta1::VersionFile, decorator: Google::Apis::FirebasehostingV1beta1::VersionFile::Representation
|
237
|
+
|
238
|
+
property :next_page_token, as: 'nextPageToken'
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
class PopulateVersionFilesRequest
|
243
|
+
# @private
|
244
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
245
|
+
hash :files, as: 'files'
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
class PopulateVersionFilesResponse
|
250
|
+
# @private
|
251
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
252
|
+
collection :upload_required_hashes, as: 'uploadRequiredHashes'
|
253
|
+
property :upload_url, as: 'uploadUrl'
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
class Redirect
|
258
|
+
# @private
|
259
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
260
|
+
property :glob, as: 'glob'
|
261
|
+
property :location, as: 'location'
|
262
|
+
property :status_code, as: 'statusCode'
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
266
|
+
class Release
|
267
|
+
# @private
|
268
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
269
|
+
property :message, as: 'message'
|
270
|
+
property :name, as: 'name'
|
271
|
+
property :release_time, as: 'releaseTime'
|
272
|
+
property :release_user, as: 'releaseUser', class: Google::Apis::FirebasehostingV1beta1::ActingUser, decorator: Google::Apis::FirebasehostingV1beta1::ActingUser::Representation
|
273
|
+
|
274
|
+
property :type, as: 'type'
|
275
|
+
property :version, as: 'version', class: Google::Apis::FirebasehostingV1beta1::Version, decorator: Google::Apis::FirebasehostingV1beta1::Version::Representation
|
276
|
+
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
class Rewrite
|
281
|
+
# @private
|
282
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
283
|
+
property :dynamic_links, as: 'dynamicLinks'
|
284
|
+
property :function, as: 'function'
|
285
|
+
property :glob, as: 'glob'
|
286
|
+
property :path, as: 'path'
|
287
|
+
end
|
288
|
+
end
|
289
|
+
|
290
|
+
class ServingConfig
|
291
|
+
# @private
|
292
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
293
|
+
property :app_association, as: 'appAssociation'
|
294
|
+
property :clean_urls, as: 'cleanUrls'
|
295
|
+
collection :headers, as: 'headers', class: Google::Apis::FirebasehostingV1beta1::Header, decorator: Google::Apis::FirebasehostingV1beta1::Header::Representation
|
296
|
+
|
297
|
+
collection :redirects, as: 'redirects', class: Google::Apis::FirebasehostingV1beta1::Redirect, decorator: Google::Apis::FirebasehostingV1beta1::Redirect::Representation
|
298
|
+
|
299
|
+
collection :rewrites, as: 'rewrites', class: Google::Apis::FirebasehostingV1beta1::Rewrite, decorator: Google::Apis::FirebasehostingV1beta1::Rewrite::Representation
|
300
|
+
|
301
|
+
property :trailing_slash_behavior, as: 'trailingSlashBehavior'
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
305
|
+
class Version
|
306
|
+
# @private
|
307
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
308
|
+
property :config, as: 'config', class: Google::Apis::FirebasehostingV1beta1::ServingConfig, decorator: Google::Apis::FirebasehostingV1beta1::ServingConfig::Representation
|
309
|
+
|
310
|
+
property :create_time, as: 'createTime'
|
311
|
+
property :create_user, as: 'createUser', class: Google::Apis::FirebasehostingV1beta1::ActingUser, decorator: Google::Apis::FirebasehostingV1beta1::ActingUser::Representation
|
312
|
+
|
313
|
+
property :delete_time, as: 'deleteTime'
|
314
|
+
property :delete_user, as: 'deleteUser', class: Google::Apis::FirebasehostingV1beta1::ActingUser, decorator: Google::Apis::FirebasehostingV1beta1::ActingUser::Representation
|
315
|
+
|
316
|
+
property :file_count, :numeric_string => true, as: 'fileCount'
|
317
|
+
property :finalize_time, as: 'finalizeTime'
|
318
|
+
property :finalize_user, as: 'finalizeUser', class: Google::Apis::FirebasehostingV1beta1::ActingUser, decorator: Google::Apis::FirebasehostingV1beta1::ActingUser::Representation
|
319
|
+
|
320
|
+
hash :labels, as: 'labels'
|
321
|
+
property :name, as: 'name'
|
322
|
+
property :status, as: 'status'
|
323
|
+
property :version_bytes, :numeric_string => true, as: 'versionBytes'
|
324
|
+
end
|
325
|
+
end
|
326
|
+
|
327
|
+
class VersionFile
|
328
|
+
# @private
|
329
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
330
|
+
property :hash_prop, as: 'hash'
|
331
|
+
property :path, as: 'path'
|
332
|
+
property :status, as: 'status'
|
333
|
+
end
|
334
|
+
end
|
335
|
+
end
|
336
|
+
end
|
337
|
+
end
|
@@ -0,0 +1,502 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module FirebasehostingV1beta1
|
23
|
+
# Firebase Hosting API
|
24
|
+
#
|
25
|
+
#
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/firebasehosting_v1beta1'
|
29
|
+
#
|
30
|
+
# Firebasehosting = Google::Apis::FirebasehostingV1beta1 # Alias the module
|
31
|
+
# service = Firebasehosting::FirebaseHostingService.new
|
32
|
+
#
|
33
|
+
# @see https://firebase.google.com/docs/hosting/
|
34
|
+
class FirebaseHostingService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://firebasehosting.googleapis.com/', '')
|
47
|
+
@batch_path = 'batch'
|
48
|
+
end
|
49
|
+
|
50
|
+
# Creates a domain mapping on the specified site.
|
51
|
+
# @param [String] parent
|
52
|
+
# Required. The parent to create the domain association for, in the format:
|
53
|
+
# <code>sites/<var>site-name</var></code>
|
54
|
+
# @param [Google::Apis::FirebasehostingV1beta1::Domain] domain_object
|
55
|
+
# @param [String] fields
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
57
|
+
# @param [String] quota_user
|
58
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
59
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60
|
+
# @param [Google::Apis::RequestOptions] options
|
61
|
+
# Request-specific options
|
62
|
+
#
|
63
|
+
# @yield [result, err] Result & error if block supplied
|
64
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::Domain] parsed result object
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
66
|
+
#
|
67
|
+
# @return [Google::Apis::FirebasehostingV1beta1::Domain]
|
68
|
+
#
|
69
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
+
def create_site_domain(parent, domain_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
73
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/domains', options)
|
74
|
+
command.request_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
|
75
|
+
command.request_object = domain_object
|
76
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
|
77
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::Domain
|
78
|
+
command.params['parent'] = parent unless parent.nil?
|
79
|
+
command.query['fields'] = fields unless fields.nil?
|
80
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
81
|
+
execute_or_queue_command(command, &block)
|
82
|
+
end
|
83
|
+
|
84
|
+
# Deletes the existing domain mapping on the specified site.
|
85
|
+
# @param [String] name
|
86
|
+
# Required. The name of the domain association to delete.
|
87
|
+
# @param [String] fields
|
88
|
+
# Selector specifying which fields to include in a partial response.
|
89
|
+
# @param [String] quota_user
|
90
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
91
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
92
|
+
# @param [Google::Apis::RequestOptions] options
|
93
|
+
# Request-specific options
|
94
|
+
#
|
95
|
+
# @yield [result, err] Result & error if block supplied
|
96
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::Empty] parsed result object
|
97
|
+
# @yieldparam err [StandardError] error object if request failed
|
98
|
+
#
|
99
|
+
# @return [Google::Apis::FirebasehostingV1beta1::Empty]
|
100
|
+
#
|
101
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
102
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
103
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
104
|
+
def delete_site_domain(name, fields: nil, quota_user: nil, options: nil, &block)
|
105
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
106
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::Empty::Representation
|
107
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::Empty
|
108
|
+
command.params['name'] = name unless name.nil?
|
109
|
+
command.query['fields'] = fields unless fields.nil?
|
110
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
111
|
+
execute_or_queue_command(command, &block)
|
112
|
+
end
|
113
|
+
|
114
|
+
# Gets a domain mapping on the specified site.
|
115
|
+
# @param [String] name
|
116
|
+
# Required. The name of the domain configuration to get.
|
117
|
+
# @param [String] fields
|
118
|
+
# Selector specifying which fields to include in a partial response.
|
119
|
+
# @param [String] quota_user
|
120
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
121
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
122
|
+
# @param [Google::Apis::RequestOptions] options
|
123
|
+
# Request-specific options
|
124
|
+
#
|
125
|
+
# @yield [result, err] Result & error if block supplied
|
126
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::Domain] parsed result object
|
127
|
+
# @yieldparam err [StandardError] error object if request failed
|
128
|
+
#
|
129
|
+
# @return [Google::Apis::FirebasehostingV1beta1::Domain]
|
130
|
+
#
|
131
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
132
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
133
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
134
|
+
def get_site_domain(name, fields: nil, quota_user: nil, options: nil, &block)
|
135
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
136
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
|
137
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::Domain
|
138
|
+
command.params['name'] = name unless name.nil?
|
139
|
+
command.query['fields'] = fields unless fields.nil?
|
140
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
141
|
+
execute_or_queue_command(command, &block)
|
142
|
+
end
|
143
|
+
|
144
|
+
# Lists the domains for the specified site.
|
145
|
+
# @param [String] parent
|
146
|
+
# Required. The parent for which to list domains, in the format:
|
147
|
+
# <code>sites/<var>site-name</var></code>
|
148
|
+
# @param [Fixnum] page_size
|
149
|
+
# The page size to return. Defaults to 50.
|
150
|
+
# @param [String] page_token
|
151
|
+
# The next_page_token from a previous request, if provided.
|
152
|
+
# @param [String] fields
|
153
|
+
# Selector specifying which fields to include in a partial response.
|
154
|
+
# @param [String] quota_user
|
155
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
156
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
157
|
+
# @param [Google::Apis::RequestOptions] options
|
158
|
+
# Request-specific options
|
159
|
+
#
|
160
|
+
# @yield [result, err] Result & error if block supplied
|
161
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListDomainsResponse] parsed result object
|
162
|
+
# @yieldparam err [StandardError] error object if request failed
|
163
|
+
#
|
164
|
+
# @return [Google::Apis::FirebasehostingV1beta1::ListDomainsResponse]
|
165
|
+
#
|
166
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
167
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
168
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
169
|
+
def list_site_domains(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
170
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/domains', options)
|
171
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::ListDomainsResponse::Representation
|
172
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::ListDomainsResponse
|
173
|
+
command.params['parent'] = parent unless parent.nil?
|
174
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
175
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
176
|
+
command.query['fields'] = fields unless fields.nil?
|
177
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
178
|
+
execute_or_queue_command(command, &block)
|
179
|
+
end
|
180
|
+
|
181
|
+
# Updates the specified domain mapping, creating the mapping as if it does
|
182
|
+
# not exist.
|
183
|
+
# @param [String] name
|
184
|
+
# Required. The name of the domain association to update or create, if an
|
185
|
+
# association doesn't already exist.
|
186
|
+
# @param [Google::Apis::FirebasehostingV1beta1::Domain] domain_object
|
187
|
+
# @param [String] fields
|
188
|
+
# Selector specifying which fields to include in a partial response.
|
189
|
+
# @param [String] quota_user
|
190
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
191
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
192
|
+
# @param [Google::Apis::RequestOptions] options
|
193
|
+
# Request-specific options
|
194
|
+
#
|
195
|
+
# @yield [result, err] Result & error if block supplied
|
196
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::Domain] parsed result object
|
197
|
+
# @yieldparam err [StandardError] error object if request failed
|
198
|
+
#
|
199
|
+
# @return [Google::Apis::FirebasehostingV1beta1::Domain]
|
200
|
+
#
|
201
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
202
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
203
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
204
|
+
def update_site_domain(name, domain_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
205
|
+
command = make_simple_command(:put, 'v1beta1/{+name}', options)
|
206
|
+
command.request_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
|
207
|
+
command.request_object = domain_object
|
208
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::Domain::Representation
|
209
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::Domain
|
210
|
+
command.params['name'] = name unless name.nil?
|
211
|
+
command.query['fields'] = fields unless fields.nil?
|
212
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
213
|
+
execute_or_queue_command(command, &block)
|
214
|
+
end
|
215
|
+
|
216
|
+
# Creates a new release which makes the content of the specified version
|
217
|
+
# actively display on the site.
|
218
|
+
# @param [String] parent
|
219
|
+
# The site that the release belongs to, in the format:
|
220
|
+
# <code>sites/<var>site-name</var></code>
|
221
|
+
# @param [Google::Apis::FirebasehostingV1beta1::Release] release_object
|
222
|
+
# @param [String] version_name
|
223
|
+
# The unique identifier for a version, in the format:
|
224
|
+
# <code>/sites/<var>site-name</var>/versions/<var>versionID</var></code>
|
225
|
+
# The <var>site-name</var> in this version identifier must match the
|
226
|
+
# <var>site-name</var> in the `parent` parameter.
|
227
|
+
# <br>
|
228
|
+
# <br>This query parameter must be empty if the `type` field in the
|
229
|
+
# request body is `SITE_DISABLE`.
|
230
|
+
# @param [String] fields
|
231
|
+
# Selector specifying which fields to include in a partial response.
|
232
|
+
# @param [String] quota_user
|
233
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
234
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
235
|
+
# @param [Google::Apis::RequestOptions] options
|
236
|
+
# Request-specific options
|
237
|
+
#
|
238
|
+
# @yield [result, err] Result & error if block supplied
|
239
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::Release] parsed result object
|
240
|
+
# @yieldparam err [StandardError] error object if request failed
|
241
|
+
#
|
242
|
+
# @return [Google::Apis::FirebasehostingV1beta1::Release]
|
243
|
+
#
|
244
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
245
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
246
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
247
|
+
def create_site_release(parent, release_object = nil, version_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
248
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/releases', options)
|
249
|
+
command.request_representation = Google::Apis::FirebasehostingV1beta1::Release::Representation
|
250
|
+
command.request_object = release_object
|
251
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::Release::Representation
|
252
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::Release
|
253
|
+
command.params['parent'] = parent unless parent.nil?
|
254
|
+
command.query['versionName'] = version_name unless version_name.nil?
|
255
|
+
command.query['fields'] = fields unless fields.nil?
|
256
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
257
|
+
execute_or_queue_command(command, &block)
|
258
|
+
end
|
259
|
+
|
260
|
+
# Lists the releases that have been created on the specified site.
|
261
|
+
# @param [String] parent
|
262
|
+
# Required. The parent for which to list files, in the format:
|
263
|
+
# <code>sites/<var>site-name</var></code>
|
264
|
+
# @param [Fixnum] page_size
|
265
|
+
# The page size to return. Defaults to 100.
|
266
|
+
# @param [String] page_token
|
267
|
+
# The next_page_token from a previous request, if provided.
|
268
|
+
# @param [String] fields
|
269
|
+
# Selector specifying which fields to include in a partial response.
|
270
|
+
# @param [String] quota_user
|
271
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
272
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
273
|
+
# @param [Google::Apis::RequestOptions] options
|
274
|
+
# Request-specific options
|
275
|
+
#
|
276
|
+
# @yield [result, err] Result & error if block supplied
|
277
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListReleasesResponse] parsed result object
|
278
|
+
# @yieldparam err [StandardError] error object if request failed
|
279
|
+
#
|
280
|
+
# @return [Google::Apis::FirebasehostingV1beta1::ListReleasesResponse]
|
281
|
+
#
|
282
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
283
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
284
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
285
|
+
def list_site_releases(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
286
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/releases', options)
|
287
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::ListReleasesResponse::Representation
|
288
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::ListReleasesResponse
|
289
|
+
command.params['parent'] = parent unless parent.nil?
|
290
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
291
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
292
|
+
command.query['fields'] = fields unless fields.nil?
|
293
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
294
|
+
execute_or_queue_command(command, &block)
|
295
|
+
end
|
296
|
+
|
297
|
+
# Creates a new version for a site.
|
298
|
+
# @param [String] parent
|
299
|
+
# Required. The parent to create the version for, in the format:
|
300
|
+
# <code>sites/<var>site-name</var></code>
|
301
|
+
# @param [Google::Apis::FirebasehostingV1beta1::Version] version_object
|
302
|
+
# @param [Fixnum] size_bytes
|
303
|
+
# The self-reported size of the version. This value is used for a pre-emptive
|
304
|
+
# quota check for legacy version uploads.
|
305
|
+
# @param [String] version_id
|
306
|
+
# A unique id for the new version. This is only specified for legacy version
|
307
|
+
# creations.
|
308
|
+
# @param [String] fields
|
309
|
+
# Selector specifying which fields to include in a partial response.
|
310
|
+
# @param [String] quota_user
|
311
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
312
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
313
|
+
# @param [Google::Apis::RequestOptions] options
|
314
|
+
# Request-specific options
|
315
|
+
#
|
316
|
+
# @yield [result, err] Result & error if block supplied
|
317
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::Version] parsed result object
|
318
|
+
# @yieldparam err [StandardError] error object if request failed
|
319
|
+
#
|
320
|
+
# @return [Google::Apis::FirebasehostingV1beta1::Version]
|
321
|
+
#
|
322
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
323
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
324
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
325
|
+
def create_site_version(parent, version_object = nil, size_bytes: nil, version_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
326
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/versions', options)
|
327
|
+
command.request_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
|
328
|
+
command.request_object = version_object
|
329
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
|
330
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::Version
|
331
|
+
command.params['parent'] = parent unless parent.nil?
|
332
|
+
command.query['sizeBytes'] = size_bytes unless size_bytes.nil?
|
333
|
+
command.query['versionId'] = version_id unless version_id.nil?
|
334
|
+
command.query['fields'] = fields unless fields.nil?
|
335
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
336
|
+
execute_or_queue_command(command, &block)
|
337
|
+
end
|
338
|
+
|
339
|
+
# Deletes the specified version.
|
340
|
+
# @param [String] name
|
341
|
+
# Required. The name of the version to be deleted, in the format:
|
342
|
+
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
|
343
|
+
# @param [String] fields
|
344
|
+
# Selector specifying which fields to include in a partial response.
|
345
|
+
# @param [String] quota_user
|
346
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
347
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
348
|
+
# @param [Google::Apis::RequestOptions] options
|
349
|
+
# Request-specific options
|
350
|
+
#
|
351
|
+
# @yield [result, err] Result & error if block supplied
|
352
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::Empty] parsed result object
|
353
|
+
# @yieldparam err [StandardError] error object if request failed
|
354
|
+
#
|
355
|
+
# @return [Google::Apis::FirebasehostingV1beta1::Empty]
|
356
|
+
#
|
357
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
358
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
359
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
360
|
+
def delete_site_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
361
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
362
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::Empty::Representation
|
363
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::Empty
|
364
|
+
command.params['name'] = name unless name.nil?
|
365
|
+
command.query['fields'] = fields unless fields.nil?
|
366
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
367
|
+
execute_or_queue_command(command, &block)
|
368
|
+
end
|
369
|
+
|
370
|
+
# Updates the specified metadata for a version. Note that this method will
|
371
|
+
# fail with `FAILED_PRECONDITION` in the event of an invalid state
|
372
|
+
# transition. The only valid transition for a version is currently from a
|
373
|
+
# `CREATED` status to a `FINALIZED` status.
|
374
|
+
# Use [`DeleteVersion`](../sites.versions/delete) to set the status of a
|
375
|
+
# version to `DELETED`.
|
376
|
+
# @param [String] name
|
377
|
+
# The unique identifier for a version, in the format:
|
378
|
+
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
|
379
|
+
# This name is provided in the response body when you call the
|
380
|
+
# [`CreateVersion`](../sites.versions/create) endpoint.
|
381
|
+
# @param [Google::Apis::FirebasehostingV1beta1::Version] version_object
|
382
|
+
# @param [String] update_mask
|
383
|
+
# A set of field names from your [version](../sites.versions) that you want
|
384
|
+
# to update.
|
385
|
+
# <br>A field will be overwritten if, and only if, it's in the mask.
|
386
|
+
# <br>If a mask is not provided then a default mask of only
|
387
|
+
# [`status`](../sites.versions#Version.FIELDS.status) will be used.
|
388
|
+
# @param [String] fields
|
389
|
+
# Selector specifying which fields to include in a partial response.
|
390
|
+
# @param [String] quota_user
|
391
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
392
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
393
|
+
# @param [Google::Apis::RequestOptions] options
|
394
|
+
# Request-specific options
|
395
|
+
#
|
396
|
+
# @yield [result, err] Result & error if block supplied
|
397
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::Version] parsed result object
|
398
|
+
# @yieldparam err [StandardError] error object if request failed
|
399
|
+
#
|
400
|
+
# @return [Google::Apis::FirebasehostingV1beta1::Version]
|
401
|
+
#
|
402
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
403
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
404
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
405
|
+
def patch_site_version(name, version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
406
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
407
|
+
command.request_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
|
408
|
+
command.request_object = version_object
|
409
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::Version::Representation
|
410
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::Version
|
411
|
+
command.params['name'] = name unless name.nil?
|
412
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
413
|
+
command.query['fields'] = fields unless fields.nil?
|
414
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
415
|
+
execute_or_queue_command(command, &block)
|
416
|
+
end
|
417
|
+
|
418
|
+
# Adds content files to a version.
|
419
|
+
# @param [String] parent
|
420
|
+
# Required. The version to add files to, in the format:
|
421
|
+
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
|
422
|
+
# @param [Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesRequest] populate_version_files_request_object
|
423
|
+
# @param [String] fields
|
424
|
+
# Selector specifying which fields to include in a partial response.
|
425
|
+
# @param [String] quota_user
|
426
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
427
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
428
|
+
# @param [Google::Apis::RequestOptions] options
|
429
|
+
# Request-specific options
|
430
|
+
#
|
431
|
+
# @yield [result, err] Result & error if block supplied
|
432
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesResponse] parsed result object
|
433
|
+
# @yieldparam err [StandardError] error object if request failed
|
434
|
+
#
|
435
|
+
# @return [Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesResponse]
|
436
|
+
#
|
437
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
438
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
439
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
440
|
+
def populate_site_version_files(parent, populate_version_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
441
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}:populateFiles', options)
|
442
|
+
command.request_representation = Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesRequest::Representation
|
443
|
+
command.request_object = populate_version_files_request_object
|
444
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesResponse::Representation
|
445
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::PopulateVersionFilesResponse
|
446
|
+
command.params['parent'] = parent unless parent.nil?
|
447
|
+
command.query['fields'] = fields unless fields.nil?
|
448
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
449
|
+
execute_or_queue_command(command, &block)
|
450
|
+
end
|
451
|
+
|
452
|
+
# Lists the remaining files to be uploaded for the specified version.
|
453
|
+
# @param [String] parent
|
454
|
+
# Required. The parent to list files for, in the format:
|
455
|
+
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
|
456
|
+
# @param [Fixnum] page_size
|
457
|
+
# The page size to return. Defaults to 1000.
|
458
|
+
# @param [String] page_token
|
459
|
+
# The next_page_token from a previous request, if provided. This will be the
|
460
|
+
# encoded version of a firebase.hosting.proto.metadata.ListFilesPageToken.
|
461
|
+
# @param [String] status
|
462
|
+
# The type of files in the version that should be listed.
|
463
|
+
# @param [String] fields
|
464
|
+
# Selector specifying which fields to include in a partial response.
|
465
|
+
# @param [String] quota_user
|
466
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
467
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
468
|
+
# @param [Google::Apis::RequestOptions] options
|
469
|
+
# Request-specific options
|
470
|
+
#
|
471
|
+
# @yield [result, err] Result & error if block supplied
|
472
|
+
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListVersionFilesResponse] parsed result object
|
473
|
+
# @yieldparam err [StandardError] error object if request failed
|
474
|
+
#
|
475
|
+
# @return [Google::Apis::FirebasehostingV1beta1::ListVersionFilesResponse]
|
476
|
+
#
|
477
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
478
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
479
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
480
|
+
def list_site_version_files(parent, page_size: nil, page_token: nil, status: nil, fields: nil, quota_user: nil, options: nil, &block)
|
481
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/files', options)
|
482
|
+
command.response_representation = Google::Apis::FirebasehostingV1beta1::ListVersionFilesResponse::Representation
|
483
|
+
command.response_class = Google::Apis::FirebasehostingV1beta1::ListVersionFilesResponse
|
484
|
+
command.params['parent'] = parent unless parent.nil?
|
485
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
486
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
487
|
+
command.query['status'] = status unless status.nil?
|
488
|
+
command.query['fields'] = fields unless fields.nil?
|
489
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
490
|
+
execute_or_queue_command(command, &block)
|
491
|
+
end
|
492
|
+
|
493
|
+
protected
|
494
|
+
|
495
|
+
def apply_command_defaults(command)
|
496
|
+
command.query['key'] = key unless key.nil?
|
497
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
498
|
+
end
|
499
|
+
end
|
500
|
+
end
|
501
|
+
end
|
502
|
+
end
|