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
@@ -113,6 +113,11 @@ module Google
|
|
113
113
|
# @return [String]
|
114
114
|
attr_accessor :name
|
115
115
|
|
116
|
+
# Google SDK version. Version takes the form "$major.$minor.$patch"
|
117
|
+
# Corresponds to the JSON property `sdkVersion`
|
118
|
+
# @return [String]
|
119
|
+
attr_accessor :sdk_version
|
120
|
+
|
116
121
|
# Short Dynamic Link suffix.
|
117
122
|
# Corresponds to the JSON property `suffix`
|
118
123
|
# @return [Google::Apis::FirebasedynamiclinksV1::Suffix]
|
@@ -127,6 +132,7 @@ module Google
|
|
127
132
|
@dynamic_link_info = args[:dynamic_link_info] if args.key?(:dynamic_link_info)
|
128
133
|
@long_dynamic_link = args[:long_dynamic_link] if args.key?(:long_dynamic_link)
|
129
134
|
@name = args[:name] if args.key?(:name)
|
135
|
+
@sdk_version = args[:sdk_version] if args.key?(:sdk_version)
|
130
136
|
@suffix = args[:suffix] if args.key?(:suffix)
|
131
137
|
end
|
132
138
|
end
|
@@ -180,6 +186,11 @@ module Google
|
|
180
186
|
# @return [String]
|
181
187
|
attr_accessor :long_dynamic_link
|
182
188
|
|
189
|
+
# Google SDK version. Version takes the form "$major.$minor.$patch"
|
190
|
+
# Corresponds to the JSON property `sdkVersion`
|
191
|
+
# @return [String]
|
192
|
+
attr_accessor :sdk_version
|
193
|
+
|
183
194
|
# Short Dynamic Link suffix.
|
184
195
|
# Corresponds to the JSON property `suffix`
|
185
196
|
# @return [Google::Apis::FirebasedynamiclinksV1::Suffix]
|
@@ -193,6 +204,7 @@ module Google
|
|
193
204
|
def update!(**args)
|
194
205
|
@dynamic_link_info = args[:dynamic_link_info] if args.key?(:dynamic_link_info)
|
195
206
|
@long_dynamic_link = args[:long_dynamic_link] if args.key?(:long_dynamic_link)
|
207
|
+
@sdk_version = args[:sdk_version] if args.key?(:sdk_version)
|
196
208
|
@suffix = args[:suffix] if args.key?(:suffix)
|
197
209
|
end
|
198
210
|
end
|
@@ -500,7 +512,7 @@ module Google
|
|
500
512
|
# @return [String]
|
501
513
|
attr_accessor :retrieval_method
|
502
514
|
|
503
|
-
# Google SDK version.
|
515
|
+
# Google SDK version. Version takes the form "$major.$minor.$patch"
|
504
516
|
# Corresponds to the JSON property `sdkVersion`
|
505
517
|
# @return [String]
|
506
518
|
attr_accessor :sdk_version
|
@@ -674,6 +686,11 @@ module Google
|
|
674
686
|
# @return [String]
|
675
687
|
attr_accessor :requested_link
|
676
688
|
|
689
|
+
# Google SDK version. Version takes the form "$major.$minor.$patch"
|
690
|
+
# Corresponds to the JSON property `sdkVersion`
|
691
|
+
# @return [String]
|
692
|
+
attr_accessor :sdk_version
|
693
|
+
|
677
694
|
def initialize(**args)
|
678
695
|
update!(**args)
|
679
696
|
end
|
@@ -682,6 +699,7 @@ module Google
|
|
682
699
|
def update!(**args)
|
683
700
|
@bundle_id = args[:bundle_id] if args.key?(:bundle_id)
|
684
701
|
@requested_link = args[:requested_link] if args.key?(:requested_link)
|
702
|
+
@sdk_version = args[:sdk_version] if args.key?(:sdk_version)
|
685
703
|
end
|
686
704
|
end
|
687
705
|
|
@@ -187,6 +187,7 @@ module Google
|
|
187
187
|
|
188
188
|
property :long_dynamic_link, as: 'longDynamicLink'
|
189
189
|
property :name, as: 'name'
|
190
|
+
property :sdk_version, as: 'sdkVersion'
|
190
191
|
property :suffix, as: 'suffix', class: Google::Apis::FirebasedynamiclinksV1::Suffix, decorator: Google::Apis::FirebasedynamiclinksV1::Suffix::Representation
|
191
192
|
|
192
193
|
end
|
@@ -209,6 +210,7 @@ module Google
|
|
209
210
|
property :dynamic_link_info, as: 'dynamicLinkInfo', class: Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo, decorator: Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo::Representation
|
210
211
|
|
211
212
|
property :long_dynamic_link, as: 'longDynamicLink'
|
213
|
+
property :sdk_version, as: 'sdkVersion'
|
212
214
|
property :suffix, as: 'suffix', class: Google::Apis::FirebasedynamiclinksV1::Suffix, decorator: Google::Apis::FirebasedynamiclinksV1::Suffix::Representation
|
213
215
|
|
214
216
|
end
|
@@ -331,6 +333,7 @@ module Google
|
|
331
333
|
class Representation < Google::Apis::Core::JsonRepresentation
|
332
334
|
property :bundle_id, as: 'bundleId'
|
333
335
|
property :requested_link, as: 'requestedLink'
|
336
|
+
property :sdk_version, as: 'sdkVersion'
|
334
337
|
end
|
335
338
|
end
|
336
339
|
|
@@ -130,6 +130,8 @@ module Google
|
|
130
130
|
# Dynamic Link URL. e.g. https://abcd.app.goo.gl/wxyz
|
131
131
|
# @param [Fixnum] duration_days
|
132
132
|
# The span of time requested in days.
|
133
|
+
# @param [String] sdk_version
|
134
|
+
# Google SDK version. Version takes the form "$major.$minor.$patch"
|
133
135
|
# @param [String] fields
|
134
136
|
# Selector specifying which fields to include in a partial response.
|
135
137
|
# @param [String] quota_user
|
@@ -147,12 +149,13 @@ module Google
|
|
147
149
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
148
150
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
149
151
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
150
|
-
def get_link_stats(dynamic_link, duration_days: nil, fields: nil, quota_user: nil, options: nil, &block)
|
152
|
+
def get_link_stats(dynamic_link, duration_days: nil, sdk_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
151
153
|
command = make_simple_command(:get, 'v1/{dynamicLink}/linkStats', options)
|
152
154
|
command.response_representation = Google::Apis::FirebasedynamiclinksV1::DynamicLinkStats::Representation
|
153
155
|
command.response_class = Google::Apis::FirebasedynamiclinksV1::DynamicLinkStats
|
154
156
|
command.params['dynamicLink'] = dynamic_link unless dynamic_link.nil?
|
155
157
|
command.query['durationDays'] = duration_days unless duration_days.nil?
|
158
|
+
command.query['sdkVersion'] = sdk_version unless sdk_version.nil?
|
156
159
|
command.query['fields'] = fields unless fields.nil?
|
157
160
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
158
161
|
execute_or_queue_command(command, &block)
|
@@ -0,0 +1,43 @@
|
|
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/firebasehosting_v1beta1/service.rb'
|
16
|
+
require 'google/apis/firebasehosting_v1beta1/classes.rb'
|
17
|
+
require 'google/apis/firebasehosting_v1beta1/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Firebase Hosting API
|
22
|
+
#
|
23
|
+
#
|
24
|
+
#
|
25
|
+
# @see https://firebase.google.com/docs/hosting/
|
26
|
+
module FirebasehostingV1beta1
|
27
|
+
VERSION = 'V1beta1'
|
28
|
+
REVISION = '20181004'
|
29
|
+
|
30
|
+
# View and manage your data across Google Cloud Platform services
|
31
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
32
|
+
|
33
|
+
# View your data across Google Cloud Platform services
|
34
|
+
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
35
|
+
|
36
|
+
# View and administer all your Firebase data and settings
|
37
|
+
AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'
|
38
|
+
|
39
|
+
# View all your Firebase data and settings
|
40
|
+
AUTH_FIREBASE_READONLY = 'https://www.googleapis.com/auth/firebase.readonly'
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,767 @@
|
|
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
|
+
# Contains metadata about the user who performed an action, such as creating
|
26
|
+
# a 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
|
36
|
+
# changed 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
|
62
|
+
# satisfy 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
|
83
|
+
# certificate 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
|
+
# The intended behavior and status information of a domain.
|
106
|
+
class Domain
|
107
|
+
include Google::Apis::Core::Hashable
|
108
|
+
|
109
|
+
# Required. The domain name of the association.
|
110
|
+
# Corresponds to the JSON property `domainName`
|
111
|
+
# @return [String]
|
112
|
+
attr_accessor :domain_name
|
113
|
+
|
114
|
+
# Defines the behavior of a domain-level redirect. Domain redirects preserve
|
115
|
+
# the path of the redirect but replace the requested domain with the one
|
116
|
+
# specified in the redirect configuration.
|
117
|
+
# Corresponds to the JSON property `domainRedirect`
|
118
|
+
# @return [Google::Apis::FirebasehostingV1beta1::DomainRedirect]
|
119
|
+
attr_accessor :domain_redirect
|
120
|
+
|
121
|
+
# The current certificate provisioning status information for a domain.
|
122
|
+
# Corresponds to the JSON property `provisioning`
|
123
|
+
# @return [Google::Apis::FirebasehostingV1beta1::DomainProvisioning]
|
124
|
+
attr_accessor :provisioning
|
125
|
+
|
126
|
+
# Required. The site name of the association.
|
127
|
+
# Corresponds to the JSON property `site`
|
128
|
+
# @return [String]
|
129
|
+
attr_accessor :site
|
130
|
+
|
131
|
+
# Output only. Additional status of the domain association.
|
132
|
+
# Corresponds to the JSON property `status`
|
133
|
+
# @return [String]
|
134
|
+
attr_accessor :status
|
135
|
+
|
136
|
+
# Output only. The time at which the domain was last updated.
|
137
|
+
# Corresponds to the JSON property `updateTime`
|
138
|
+
# @return [String]
|
139
|
+
attr_accessor :update_time
|
140
|
+
|
141
|
+
def initialize(**args)
|
142
|
+
update!(**args)
|
143
|
+
end
|
144
|
+
|
145
|
+
# Update properties of this object
|
146
|
+
def update!(**args)
|
147
|
+
@domain_name = args[:domain_name] if args.key?(:domain_name)
|
148
|
+
@domain_redirect = args[:domain_redirect] if args.key?(:domain_redirect)
|
149
|
+
@provisioning = args[:provisioning] if args.key?(:provisioning)
|
150
|
+
@site = args[:site] if args.key?(:site)
|
151
|
+
@status = args[:status] if args.key?(:status)
|
152
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
# The current certificate provisioning status information for a domain.
|
157
|
+
class DomainProvisioning
|
158
|
+
include Google::Apis::Core::Hashable
|
159
|
+
|
160
|
+
# The TXT records (for the certificate challenge) that were found at the last
|
161
|
+
# DNS fetch.
|
162
|
+
# Corresponds to the JSON property `certChallengeDiscoveredTxt`
|
163
|
+
# @return [Array<String>]
|
164
|
+
attr_accessor :cert_challenge_discovered_txt
|
165
|
+
|
166
|
+
# Represents a DNS certificate challenge.
|
167
|
+
# Corresponds to the JSON property `certChallengeDns`
|
168
|
+
# @return [Google::Apis::FirebasehostingV1beta1::CertDnsChallenge]
|
169
|
+
attr_accessor :cert_challenge_dns
|
170
|
+
|
171
|
+
# Represents an HTTP certificate challenge.
|
172
|
+
# Corresponds to the JSON property `certChallengeHttp`
|
173
|
+
# @return [Google::Apis::FirebasehostingV1beta1::CertHttpChallenge]
|
174
|
+
attr_accessor :cert_challenge_http
|
175
|
+
|
176
|
+
# The certificate provisioning status; updated when Firebase Hosting
|
177
|
+
# provisions an SSL certificate for the domain.
|
178
|
+
# Corresponds to the JSON property `certStatus`
|
179
|
+
# @return [String]
|
180
|
+
attr_accessor :cert_status
|
181
|
+
|
182
|
+
# The IPs found at the last DNS fetch.
|
183
|
+
# Corresponds to the JSON property `discoveredIps`
|
184
|
+
# @return [Array<String>]
|
185
|
+
attr_accessor :discovered_ips
|
186
|
+
|
187
|
+
# The time at which the last DNS fetch occurred.
|
188
|
+
# Corresponds to the JSON property `dnsFetchTime`
|
189
|
+
# @return [String]
|
190
|
+
attr_accessor :dns_fetch_time
|
191
|
+
|
192
|
+
# The DNS record match status as of the last DNS fetch.
|
193
|
+
# Corresponds to the JSON property `dnsStatus`
|
194
|
+
# @return [String]
|
195
|
+
attr_accessor :dns_status
|
196
|
+
|
197
|
+
# The list of IPs to which the domain is expected to resolve.
|
198
|
+
# Corresponds to the JSON property `expectedIps`
|
199
|
+
# @return [Array<String>]
|
200
|
+
attr_accessor :expected_ips
|
201
|
+
|
202
|
+
def initialize(**args)
|
203
|
+
update!(**args)
|
204
|
+
end
|
205
|
+
|
206
|
+
# Update properties of this object
|
207
|
+
def update!(**args)
|
208
|
+
@cert_challenge_discovered_txt = args[:cert_challenge_discovered_txt] if args.key?(:cert_challenge_discovered_txt)
|
209
|
+
@cert_challenge_dns = args[:cert_challenge_dns] if args.key?(:cert_challenge_dns)
|
210
|
+
@cert_challenge_http = args[:cert_challenge_http] if args.key?(:cert_challenge_http)
|
211
|
+
@cert_status = args[:cert_status] if args.key?(:cert_status)
|
212
|
+
@discovered_ips = args[:discovered_ips] if args.key?(:discovered_ips)
|
213
|
+
@dns_fetch_time = args[:dns_fetch_time] if args.key?(:dns_fetch_time)
|
214
|
+
@dns_status = args[:dns_status] if args.key?(:dns_status)
|
215
|
+
@expected_ips = args[:expected_ips] if args.key?(:expected_ips)
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
# Defines the behavior of a domain-level redirect. Domain redirects preserve
|
220
|
+
# the path of the redirect but replace the requested domain with the one
|
221
|
+
# specified in the redirect configuration.
|
222
|
+
class DomainRedirect
|
223
|
+
include Google::Apis::Core::Hashable
|
224
|
+
|
225
|
+
# Required. The domain name to redirect to.
|
226
|
+
# Corresponds to the JSON property `domainName`
|
227
|
+
# @return [String]
|
228
|
+
attr_accessor :domain_name
|
229
|
+
|
230
|
+
# Required. The redirect status code.
|
231
|
+
# Corresponds to the JSON property `type`
|
232
|
+
# @return [String]
|
233
|
+
attr_accessor :type
|
234
|
+
|
235
|
+
def initialize(**args)
|
236
|
+
update!(**args)
|
237
|
+
end
|
238
|
+
|
239
|
+
# Update properties of this object
|
240
|
+
def update!(**args)
|
241
|
+
@domain_name = args[:domain_name] if args.key?(:domain_name)
|
242
|
+
@type = args[:type] if args.key?(:type)
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
247
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
248
|
+
# or the response type of an API method. For instance:
|
249
|
+
# service Foo `
|
250
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
251
|
+
# `
|
252
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
253
|
+
class Empty
|
254
|
+
include Google::Apis::Core::Hashable
|
255
|
+
|
256
|
+
def initialize(**args)
|
257
|
+
update!(**args)
|
258
|
+
end
|
259
|
+
|
260
|
+
# Update properties of this object
|
261
|
+
def update!(**args)
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
# A `Header` defines custom headers to add to a response should the request
|
266
|
+
# URL path match the pattern.
|
267
|
+
class Header
|
268
|
+
include Google::Apis::Core::Hashable
|
269
|
+
|
270
|
+
# Required. The user-supplied
|
271
|
+
# [glob pattern](/docs/hosting/full-config#section-glob) to match against
|
272
|
+
# the request URL path.
|
273
|
+
# Corresponds to the JSON property `glob`
|
274
|
+
# @return [String]
|
275
|
+
attr_accessor :glob
|
276
|
+
|
277
|
+
# Required. The additional headers to add to the response.
|
278
|
+
# Corresponds to the JSON property `headers`
|
279
|
+
# @return [Hash<String,String>]
|
280
|
+
attr_accessor :headers
|
281
|
+
|
282
|
+
def initialize(**args)
|
283
|
+
update!(**args)
|
284
|
+
end
|
285
|
+
|
286
|
+
# Update properties of this object
|
287
|
+
def update!(**args)
|
288
|
+
@glob = args[:glob] if args.key?(:glob)
|
289
|
+
@headers = args[:headers] if args.key?(:headers)
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
#
|
294
|
+
class ListDomainsResponse
|
295
|
+
include Google::Apis::Core::Hashable
|
296
|
+
|
297
|
+
# The list of domains, if any exist.
|
298
|
+
# Corresponds to the JSON property `domains`
|
299
|
+
# @return [Array<Google::Apis::FirebasehostingV1beta1::Domain>]
|
300
|
+
attr_accessor :domains
|
301
|
+
|
302
|
+
# The pagination token, if more results exist.
|
303
|
+
# Corresponds to the JSON property `nextPageToken`
|
304
|
+
# @return [String]
|
305
|
+
attr_accessor :next_page_token
|
306
|
+
|
307
|
+
def initialize(**args)
|
308
|
+
update!(**args)
|
309
|
+
end
|
310
|
+
|
311
|
+
# Update properties of this object
|
312
|
+
def update!(**args)
|
313
|
+
@domains = args[:domains] if args.key?(:domains)
|
314
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
315
|
+
end
|
316
|
+
end
|
317
|
+
|
318
|
+
#
|
319
|
+
class ListReleasesResponse
|
320
|
+
include Google::Apis::Core::Hashable
|
321
|
+
|
322
|
+
# If there are additional releases remaining beyond the ones in this
|
323
|
+
# response, then supply this token in the next
|
324
|
+
# [`list`](../sites.versions.files/list) call to continue with the next set
|
325
|
+
# of releases.
|
326
|
+
# Corresponds to the JSON property `nextPageToken`
|
327
|
+
# @return [String]
|
328
|
+
attr_accessor :next_page_token
|
329
|
+
|
330
|
+
# The list of hashes of files that still need to be uploaded, if any exist.
|
331
|
+
# Corresponds to the JSON property `releases`
|
332
|
+
# @return [Array<Google::Apis::FirebasehostingV1beta1::Release>]
|
333
|
+
attr_accessor :releases
|
334
|
+
|
335
|
+
def initialize(**args)
|
336
|
+
update!(**args)
|
337
|
+
end
|
338
|
+
|
339
|
+
# Update properties of this object
|
340
|
+
def update!(**args)
|
341
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
342
|
+
@releases = args[:releases] if args.key?(:releases)
|
343
|
+
end
|
344
|
+
end
|
345
|
+
|
346
|
+
#
|
347
|
+
class ListVersionFilesResponse
|
348
|
+
include Google::Apis::Core::Hashable
|
349
|
+
|
350
|
+
# The list path/hashes in the specified version.
|
351
|
+
# Corresponds to the JSON property `files`
|
352
|
+
# @return [Array<Google::Apis::FirebasehostingV1beta1::VersionFile>]
|
353
|
+
attr_accessor :files
|
354
|
+
|
355
|
+
# The pagination token, if more results exist.
|
356
|
+
# Corresponds to the JSON property `nextPageToken`
|
357
|
+
# @return [String]
|
358
|
+
attr_accessor :next_page_token
|
359
|
+
|
360
|
+
def initialize(**args)
|
361
|
+
update!(**args)
|
362
|
+
end
|
363
|
+
|
364
|
+
# Update properties of this object
|
365
|
+
def update!(**args)
|
366
|
+
@files = args[:files] if args.key?(:files)
|
367
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
368
|
+
end
|
369
|
+
end
|
370
|
+
|
371
|
+
#
|
372
|
+
class PopulateVersionFilesRequest
|
373
|
+
include Google::Apis::Core::Hashable
|
374
|
+
|
375
|
+
# A set of file paths to the hashes corresponding to assets that should be
|
376
|
+
# added to the version. Note that a file path to an empty hash will remove
|
377
|
+
# the path from the version. Calculate a hash by Gzipping the file then
|
378
|
+
# taking the SHA256 hash of the newly compressed file.
|
379
|
+
# Corresponds to the JSON property `files`
|
380
|
+
# @return [Hash<String,String>]
|
381
|
+
attr_accessor :files
|
382
|
+
|
383
|
+
def initialize(**args)
|
384
|
+
update!(**args)
|
385
|
+
end
|
386
|
+
|
387
|
+
# Update properties of this object
|
388
|
+
def update!(**args)
|
389
|
+
@files = args[:files] if args.key?(:files)
|
390
|
+
end
|
391
|
+
end
|
392
|
+
|
393
|
+
#
|
394
|
+
class PopulateVersionFilesResponse
|
395
|
+
include Google::Apis::Core::Hashable
|
396
|
+
|
397
|
+
# The content hashes of the specified files that need to be uploaded to the
|
398
|
+
# specified endpoint.
|
399
|
+
# Corresponds to the JSON property `uploadRequiredHashes`
|
400
|
+
# @return [Array<String>]
|
401
|
+
attr_accessor :upload_required_hashes
|
402
|
+
|
403
|
+
# The URL to which the files should be uploaded, in the format:
|
404
|
+
# <br>"https://upload-firebasehosting.googleapis.com/upload/sites/<var>site-name<
|
405
|
+
# /var>/versions/<var>versionID</var>/files".
|
406
|
+
# <br>Perform a multipart `POST` of the Gzipped file contents to the URL
|
407
|
+
# using a forward slash and the hash of the file appended to the end.
|
408
|
+
# Corresponds to the JSON property `uploadUrl`
|
409
|
+
# @return [String]
|
410
|
+
attr_accessor :upload_url
|
411
|
+
|
412
|
+
def initialize(**args)
|
413
|
+
update!(**args)
|
414
|
+
end
|
415
|
+
|
416
|
+
# Update properties of this object
|
417
|
+
def update!(**args)
|
418
|
+
@upload_required_hashes = args[:upload_required_hashes] if args.key?(:upload_required_hashes)
|
419
|
+
@upload_url = args[:upload_url] if args.key?(:upload_url)
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
423
|
+
# A `Redirect` represents the configuration for returning an HTTP redirect
|
424
|
+
# response given a matching request URL path.
|
425
|
+
class Redirect
|
426
|
+
include Google::Apis::Core::Hashable
|
427
|
+
|
428
|
+
# Required. The user-supplied
|
429
|
+
# [glob pattern](/docs/hosting/full-config#section-glob) to match against
|
430
|
+
# the request URL path.
|
431
|
+
# Corresponds to the JSON property `glob`
|
432
|
+
# @return [String]
|
433
|
+
attr_accessor :glob
|
434
|
+
|
435
|
+
# Required. The value to put in the HTTP location header of the response.
|
436
|
+
# <br>The location can contain capture group values from the pattern using a
|
437
|
+
# `":"` prefix to identify the segment and an optional `"*"` to capture the
|
438
|
+
# rest of the URL.
|
439
|
+
# For example:
|
440
|
+
# <code>"glob": "/:capture*",
|
441
|
+
# <br>"statusCode": 301,
|
442
|
+
# <br>"location": "https://example.com/foo/:capture"</code>
|
443
|
+
# Corresponds to the JSON property `location`
|
444
|
+
# @return [String]
|
445
|
+
attr_accessor :location
|
446
|
+
|
447
|
+
# Required. The status HTTP code to return in the response. It must be a
|
448
|
+
# valid 3xx status code.
|
449
|
+
# Corresponds to the JSON property `statusCode`
|
450
|
+
# @return [Fixnum]
|
451
|
+
attr_accessor :status_code
|
452
|
+
|
453
|
+
def initialize(**args)
|
454
|
+
update!(**args)
|
455
|
+
end
|
456
|
+
|
457
|
+
# Update properties of this object
|
458
|
+
def update!(**args)
|
459
|
+
@glob = args[:glob] if args.key?(:glob)
|
460
|
+
@location = args[:location] if args.key?(:location)
|
461
|
+
@status_code = args[:status_code] if args.key?(:status_code)
|
462
|
+
end
|
463
|
+
end
|
464
|
+
|
465
|
+
# A `Release` is a particular
|
466
|
+
# [collection of configurations and files](sites.versions)
|
467
|
+
# that is set to be public at a particular time.
|
468
|
+
class Release
|
469
|
+
include Google::Apis::Core::Hashable
|
470
|
+
|
471
|
+
# The deploy description when the release was created. The value can be up to
|
472
|
+
# 512 characters.
|
473
|
+
# Corresponds to the JSON property `message`
|
474
|
+
# @return [String]
|
475
|
+
attr_accessor :message
|
476
|
+
|
477
|
+
# Output only. The unique identifier for the release, in the format:
|
478
|
+
# <code>sites/<var>site-name</var>/releases/<var>releaseID</var></code>
|
479
|
+
# This name is provided in the response body when you call the
|
480
|
+
# [`CreateRelease`](sites.releases/create) endpoint.
|
481
|
+
# Corresponds to the JSON property `name`
|
482
|
+
# @return [String]
|
483
|
+
attr_accessor :name
|
484
|
+
|
485
|
+
# Output only. The time at which the version is set to be public.
|
486
|
+
# Corresponds to the JSON property `releaseTime`
|
487
|
+
# @return [String]
|
488
|
+
attr_accessor :release_time
|
489
|
+
|
490
|
+
# Contains metadata about the user who performed an action, such as creating
|
491
|
+
# a release or finalizing a version.
|
492
|
+
# Corresponds to the JSON property `releaseUser`
|
493
|
+
# @return [Google::Apis::FirebasehostingV1beta1::ActingUser]
|
494
|
+
attr_accessor :release_user
|
495
|
+
|
496
|
+
# Explains the reason for the release.
|
497
|
+
# <br>Specify a value for this field only when creating a `SITE_DISABLE`
|
498
|
+
# type release.
|
499
|
+
# Corresponds to the JSON property `type`
|
500
|
+
# @return [String]
|
501
|
+
attr_accessor :type
|
502
|
+
|
503
|
+
# A `Version` is the collection of configuration and
|
504
|
+
# [static files](sites.versions.files) that determine how a site is displayed.
|
505
|
+
# Corresponds to the JSON property `version`
|
506
|
+
# @return [Google::Apis::FirebasehostingV1beta1::Version]
|
507
|
+
attr_accessor :version
|
508
|
+
|
509
|
+
def initialize(**args)
|
510
|
+
update!(**args)
|
511
|
+
end
|
512
|
+
|
513
|
+
# Update properties of this object
|
514
|
+
def update!(**args)
|
515
|
+
@message = args[:message] if args.key?(:message)
|
516
|
+
@name = args[:name] if args.key?(:name)
|
517
|
+
@release_time = args[:release_time] if args.key?(:release_time)
|
518
|
+
@release_user = args[:release_user] if args.key?(:release_user)
|
519
|
+
@type = args[:type] if args.key?(:type)
|
520
|
+
@version = args[:version] if args.key?(:version)
|
521
|
+
end
|
522
|
+
end
|
523
|
+
|
524
|
+
# A `Rewrite` represents an internal content rewrite on the version. If the
|
525
|
+
# pattern matches, the request will be handled as if it were to the
|
526
|
+
# destination path specified in the configuration.
|
527
|
+
class Rewrite
|
528
|
+
include Google::Apis::Core::Hashable
|
529
|
+
|
530
|
+
# The request will be forwarded to Firebase Dynamic Links.
|
531
|
+
# Corresponds to the JSON property `dynamicLinks`
|
532
|
+
# @return [Boolean]
|
533
|
+
attr_accessor :dynamic_links
|
534
|
+
alias_method :dynamic_links?, :dynamic_links
|
535
|
+
|
536
|
+
# The function to proxy requests to. Must match the exported function
|
537
|
+
# name exactly.
|
538
|
+
# Corresponds to the JSON property `function`
|
539
|
+
# @return [String]
|
540
|
+
attr_accessor :function
|
541
|
+
|
542
|
+
# Required. The user-supplied
|
543
|
+
# [glob pattern](/docs/hosting/full-config#section-glob) to match against
|
544
|
+
# the request URL path.
|
545
|
+
# Corresponds to the JSON property `glob`
|
546
|
+
# @return [String]
|
547
|
+
attr_accessor :glob
|
548
|
+
|
549
|
+
# The URL path to rewrite the request to.
|
550
|
+
# Corresponds to the JSON property `path`
|
551
|
+
# @return [String]
|
552
|
+
attr_accessor :path
|
553
|
+
|
554
|
+
def initialize(**args)
|
555
|
+
update!(**args)
|
556
|
+
end
|
557
|
+
|
558
|
+
# Update properties of this object
|
559
|
+
def update!(**args)
|
560
|
+
@dynamic_links = args[:dynamic_links] if args.key?(:dynamic_links)
|
561
|
+
@function = args[:function] if args.key?(:function)
|
562
|
+
@glob = args[:glob] if args.key?(:glob)
|
563
|
+
@path = args[:path] if args.key?(:path)
|
564
|
+
end
|
565
|
+
end
|
566
|
+
|
567
|
+
# The configuration for how incoming requests to a site should be routed and
|
568
|
+
# processed before serving content. The patterns are matched and applied
|
569
|
+
# according to a specific
|
570
|
+
# [priority order](/docs/hosting/url-redirects-rewrites#section-priorities).
|
571
|
+
class ServingConfig
|
572
|
+
include Google::Apis::Core::Hashable
|
573
|
+
|
574
|
+
# How to handle well known App Association files.
|
575
|
+
# Corresponds to the JSON property `appAssociation`
|
576
|
+
# @return [String]
|
577
|
+
attr_accessor :app_association
|
578
|
+
|
579
|
+
# Defines whether to drop the file extension from uploaded files.
|
580
|
+
# Corresponds to the JSON property `cleanUrls`
|
581
|
+
# @return [Boolean]
|
582
|
+
attr_accessor :clean_urls
|
583
|
+
alias_method :clean_urls?, :clean_urls
|
584
|
+
|
585
|
+
# A list of custom response headers that are added to the content if the
|
586
|
+
# request URL path matches the glob.
|
587
|
+
# Corresponds to the JSON property `headers`
|
588
|
+
# @return [Array<Google::Apis::FirebasehostingV1beta1::Header>]
|
589
|
+
attr_accessor :headers
|
590
|
+
|
591
|
+
# A list of globs that will cause the response to redirect to another
|
592
|
+
# location.
|
593
|
+
# Corresponds to the JSON property `redirects`
|
594
|
+
# @return [Array<Google::Apis::FirebasehostingV1beta1::Redirect>]
|
595
|
+
attr_accessor :redirects
|
596
|
+
|
597
|
+
# A list of rewrites that will act as if the service were given the
|
598
|
+
# destination URL.
|
599
|
+
# Corresponds to the JSON property `rewrites`
|
600
|
+
# @return [Array<Google::Apis::FirebasehostingV1beta1::Rewrite>]
|
601
|
+
attr_accessor :rewrites
|
602
|
+
|
603
|
+
# Defines how to handle a trailing slash in the URL path.
|
604
|
+
# Corresponds to the JSON property `trailingSlashBehavior`
|
605
|
+
# @return [String]
|
606
|
+
attr_accessor :trailing_slash_behavior
|
607
|
+
|
608
|
+
def initialize(**args)
|
609
|
+
update!(**args)
|
610
|
+
end
|
611
|
+
|
612
|
+
# Update properties of this object
|
613
|
+
def update!(**args)
|
614
|
+
@app_association = args[:app_association] if args.key?(:app_association)
|
615
|
+
@clean_urls = args[:clean_urls] if args.key?(:clean_urls)
|
616
|
+
@headers = args[:headers] if args.key?(:headers)
|
617
|
+
@redirects = args[:redirects] if args.key?(:redirects)
|
618
|
+
@rewrites = args[:rewrites] if args.key?(:rewrites)
|
619
|
+
@trailing_slash_behavior = args[:trailing_slash_behavior] if args.key?(:trailing_slash_behavior)
|
620
|
+
end
|
621
|
+
end
|
622
|
+
|
623
|
+
# A `Version` is the collection of configuration and
|
624
|
+
# [static files](sites.versions.files) that determine how a site is displayed.
|
625
|
+
class Version
|
626
|
+
include Google::Apis::Core::Hashable
|
627
|
+
|
628
|
+
# The configuration for how incoming requests to a site should be routed and
|
629
|
+
# processed before serving content. The patterns are matched and applied
|
630
|
+
# according to a specific
|
631
|
+
# [priority order](/docs/hosting/url-redirects-rewrites#section-priorities).
|
632
|
+
# Corresponds to the JSON property `config`
|
633
|
+
# @return [Google::Apis::FirebasehostingV1beta1::ServingConfig]
|
634
|
+
attr_accessor :config
|
635
|
+
|
636
|
+
# Output only. The time at which the version was created.
|
637
|
+
# Corresponds to the JSON property `createTime`
|
638
|
+
# @return [String]
|
639
|
+
attr_accessor :create_time
|
640
|
+
|
641
|
+
# Contains metadata about the user who performed an action, such as creating
|
642
|
+
# a release or finalizing a version.
|
643
|
+
# Corresponds to the JSON property `createUser`
|
644
|
+
# @return [Google::Apis::FirebasehostingV1beta1::ActingUser]
|
645
|
+
attr_accessor :create_user
|
646
|
+
|
647
|
+
# Output only. The time at which the version was `DELETED`.
|
648
|
+
# Corresponds to the JSON property `deleteTime`
|
649
|
+
# @return [String]
|
650
|
+
attr_accessor :delete_time
|
651
|
+
|
652
|
+
# Contains metadata about the user who performed an action, such as creating
|
653
|
+
# a release or finalizing a version.
|
654
|
+
# Corresponds to the JSON property `deleteUser`
|
655
|
+
# @return [Google::Apis::FirebasehostingV1beta1::ActingUser]
|
656
|
+
attr_accessor :delete_user
|
657
|
+
|
658
|
+
# Output only. The total number of files associated with the version.
|
659
|
+
# <br>This value is calculated after a version is `FINALIZED`.
|
660
|
+
# Corresponds to the JSON property `fileCount`
|
661
|
+
# @return [Fixnum]
|
662
|
+
attr_accessor :file_count
|
663
|
+
|
664
|
+
# Output only. The time at which the version was `FINALIZED`.
|
665
|
+
# Corresponds to the JSON property `finalizeTime`
|
666
|
+
# @return [String]
|
667
|
+
attr_accessor :finalize_time
|
668
|
+
|
669
|
+
# Contains metadata about the user who performed an action, such as creating
|
670
|
+
# a release or finalizing a version.
|
671
|
+
# Corresponds to the JSON property `finalizeUser`
|
672
|
+
# @return [Google::Apis::FirebasehostingV1beta1::ActingUser]
|
673
|
+
attr_accessor :finalize_user
|
674
|
+
|
675
|
+
# The labels used for extra metadata and/or filtering.
|
676
|
+
# Corresponds to the JSON property `labels`
|
677
|
+
# @return [Hash<String,String>]
|
678
|
+
attr_accessor :labels
|
679
|
+
|
680
|
+
# The unique identifier for a version, in the format:
|
681
|
+
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
|
682
|
+
# This name is provided in the response body when you call the
|
683
|
+
# [`CreateVersion`](../sites.versions/create) endpoint.
|
684
|
+
# Corresponds to the JSON property `name`
|
685
|
+
# @return [String]
|
686
|
+
attr_accessor :name
|
687
|
+
|
688
|
+
# The deploy status of a version.
|
689
|
+
# <br>
|
690
|
+
# <br>For a successful deploy, call the
|
691
|
+
# [`CreateVersion`](sites.versions/create) endpoint to make a new version
|
692
|
+
# (`CREATED` status),
|
693
|
+
# [upload all desired files](sites.versions/populateFiles) to the version,
|
694
|
+
# then [update](sites.versions/patch) the version to the `FINALIZED` status.
|
695
|
+
# <br>
|
696
|
+
# <br>Note that if you leave the version in the `CREATED` state for more
|
697
|
+
# than 12 hours, the system will automatically mark the version as
|
698
|
+
# `ABANDONED`.
|
699
|
+
# <br>
|
700
|
+
# <br>You can also change the status of a version to `DELETED` by calling the
|
701
|
+
# [`DeleteVersion`](sites.versions/delete) endpoint.
|
702
|
+
# Corresponds to the JSON property `status`
|
703
|
+
# @return [String]
|
704
|
+
attr_accessor :status
|
705
|
+
|
706
|
+
# Output only. The total stored bytesize of the version.
|
707
|
+
# <br>This value is calculated after a version is `FINALIZED`.
|
708
|
+
# Corresponds to the JSON property `versionBytes`
|
709
|
+
# @return [Fixnum]
|
710
|
+
attr_accessor :version_bytes
|
711
|
+
|
712
|
+
def initialize(**args)
|
713
|
+
update!(**args)
|
714
|
+
end
|
715
|
+
|
716
|
+
# Update properties of this object
|
717
|
+
def update!(**args)
|
718
|
+
@config = args[:config] if args.key?(:config)
|
719
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
720
|
+
@create_user = args[:create_user] if args.key?(:create_user)
|
721
|
+
@delete_time = args[:delete_time] if args.key?(:delete_time)
|
722
|
+
@delete_user = args[:delete_user] if args.key?(:delete_user)
|
723
|
+
@file_count = args[:file_count] if args.key?(:file_count)
|
724
|
+
@finalize_time = args[:finalize_time] if args.key?(:finalize_time)
|
725
|
+
@finalize_user = args[:finalize_user] if args.key?(:finalize_user)
|
726
|
+
@labels = args[:labels] if args.key?(:labels)
|
727
|
+
@name = args[:name] if args.key?(:name)
|
728
|
+
@status = args[:status] if args.key?(:status)
|
729
|
+
@version_bytes = args[:version_bytes] if args.key?(:version_bytes)
|
730
|
+
end
|
731
|
+
end
|
732
|
+
|
733
|
+
# A static content file that is part of a version.
|
734
|
+
class VersionFile
|
735
|
+
include Google::Apis::Core::Hashable
|
736
|
+
|
737
|
+
# The SHA256 content hash of the file.
|
738
|
+
# Corresponds to the JSON property `hash`
|
739
|
+
# @return [String]
|
740
|
+
attr_accessor :hash_prop
|
741
|
+
|
742
|
+
# The URI at which the file's content should display.
|
743
|
+
# Corresponds to the JSON property `path`
|
744
|
+
# @return [String]
|
745
|
+
attr_accessor :path
|
746
|
+
|
747
|
+
# Output only. The current status of a particular file in the specified
|
748
|
+
# version.
|
749
|
+
# <br>The value will be either `pending upload` or `uploaded`.
|
750
|
+
# Corresponds to the JSON property `status`
|
751
|
+
# @return [String]
|
752
|
+
attr_accessor :status
|
753
|
+
|
754
|
+
def initialize(**args)
|
755
|
+
update!(**args)
|
756
|
+
end
|
757
|
+
|
758
|
+
# Update properties of this object
|
759
|
+
def update!(**args)
|
760
|
+
@hash_prop = args[:hash_prop] if args.key?(:hash_prop)
|
761
|
+
@path = args[:path] if args.key?(:path)
|
762
|
+
@status = args[:status] if args.key?(:status)
|
763
|
+
end
|
764
|
+
end
|
765
|
+
end
|
766
|
+
end
|
767
|
+
end
|