google-api-client 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +4 -1
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
- data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
- data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +747 -747
- data/generated/google/apis/appengine_v1/representations.rb +158 -158
- data/generated/google/apis/appengine_v1/service.rb +214 -214
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +517 -515
- data/generated/google/apis/classroom_v1/representations.rb +147 -147
- data/generated/google/apis/classroom_v1/service.rb +1144 -1143
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
- data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
- data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
- data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
- data/generated/google/apis/cloudkms_v1/service.rb +276 -276
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +82 -6
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +1177 -834
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +371 -1
- data/generated/google/apis/compute_v1/representations.rb +139 -0
- data/generated/google/apis/compute_v1/service.rb +257 -9
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1122 -826
- data/generated/google/apis/container_v1/representations.rb +279 -135
- data/generated/google/apis/container_v1/service.rb +440 -98
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
- data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
- data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +450 -431
- data/generated/google/apis/dataproc_v1/representations.rb +92 -92
- data/generated/google/apis/dataproc_v1/service.rb +200 -200
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +397 -397
- data/generated/google/apis/datastore_v1/representations.rb +100 -100
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
- data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
- data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
- data/generated/google/apis/firebaserules_v1/service.rb +151 -151
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +9 -9
- data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
- data/generated/google/apis/genomics_v1/representations.rb +306 -306
- data/generated/google/apis/genomics_v1/service.rb +1172 -1172
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +243 -243
- data/generated/google/apis/iam_v1/representations.rb +79 -79
- data/generated/google/apis/iam_v1/service.rb +137 -137
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +451 -451
- data/generated/google/apis/language_v1/representations.rb +103 -103
- data/generated/google/apis/language_v1/service.rb +49 -49
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +459 -459
- data/generated/google/apis/language_v1beta1/representations.rb +110 -110
- data/generated/google/apis/language_v1beta1/service.rb +43 -43
- data/generated/google/apis/logging_v2.rb +8 -8
- data/generated/google/apis/logging_v2/classes.rb +915 -915
- data/generated/google/apis/logging_v2/representations.rb +142 -142
- data/generated/google/apis/logging_v2/service.rb +415 -415
- data/generated/google/apis/logging_v2beta1.rb +8 -8
- data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
- data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
- data/generated/google/apis/logging_v2beta1/service.rb +221 -221
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
- data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
- data/generated/google/apis/manufacturers_v1/service.rb +101 -4
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +709 -673
- data/generated/google/apis/ml_v1/representations.rb +154 -151
- data/generated/google/apis/ml_v1/service.rb +341 -354
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +869 -869
- data/generated/google/apis/monitoring_v3/representations.rb +171 -171
- data/generated/google/apis/monitoring_v3/service.rb +340 -340
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1569 -1569
- data/generated/google/apis/partners_v2/representations.rb +256 -256
- data/generated/google/apis/partners_v2/service.rb +530 -530
- data/generated/google/apis/people_v1.rb +7 -7
- data/generated/google/apis/people_v1/classes.rb +1287 -946
- data/generated/google/apis/people_v1/representations.rb +355 -203
- data/generated/google/apis/people_v1/service.rb +409 -32
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +286 -287
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +178 -178
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
- data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/script_v1.rb +4 -4
- data/generated/google/apis/script_v1/classes.rb +172 -172
- data/generated/google/apis/script_v1/representations.rb +41 -41
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
- data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
- data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
- data/generated/google/apis/servicemanagement_v1.rb +6 -6
- data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
- data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
- data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
- data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
- data/generated/google/apis/serviceuser_v1/service.rb +59 -59
- data/generated/google/apis/sheets_v4.rb +5 -5
- data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
- data/generated/google/apis/sheets_v4/representations.rb +957 -940
- data/generated/google/apis/sheets_v4/service.rb +175 -175
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2932 -2905
- data/generated/google/apis/slides_v1/representations.rb +709 -694
- data/generated/google/apis/slides_v1/service.rb +50 -50
- data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
- data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
- data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
- data/generated/google/apis/spanner_v1.rb +7 -1
- data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
- data/generated/google/apis/spanner_v1/representations.rb +342 -323
- data/generated/google/apis/spanner_v1/service.rb +502 -492
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
- data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
- data/generated/google/apis/speech_v1beta1/service.rb +91 -91
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
- data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
- data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
- data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
- data/generated/google/apis/translate_v2/classes.rb +107 -107
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +81 -81
- data/generated/google/apis/vision_v1.rb +4 -1
- data/generated/google/apis/vision_v1/classes.rb +527 -527
- data/generated/google/apis/vision_v1/representations.rb +115 -115
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
- data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
- data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/analytics.rb +2 -2
- metadata +2 -2
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module FirebasedynamiclinksV1
|
24
24
|
|
25
|
+
class CreateShortDynamicLinkResponse
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class Suffix
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -52,13 +58,13 @@ module Google
|
|
52
58
|
include Google::Apis::Core::JsonObjectSupport
|
53
59
|
end
|
54
60
|
|
55
|
-
class
|
61
|
+
class DynamicLinkStats
|
56
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
63
|
|
58
64
|
include Google::Apis::Core::JsonObjectSupport
|
59
65
|
end
|
60
66
|
|
61
|
-
class
|
67
|
+
class DynamicLinkWarning
|
62
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
69
|
|
64
70
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -101,9 +107,13 @@ module Google
|
|
101
107
|
end
|
102
108
|
|
103
109
|
class CreateShortDynamicLinkResponse
|
104
|
-
|
110
|
+
# @private
|
111
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
112
|
+
property :short_link, as: 'shortLink'
|
113
|
+
property :preview_link, as: 'previewLink'
|
114
|
+
collection :warning, as: 'warning', class: Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning, decorator: Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning::Representation
|
105
115
|
|
106
|
-
|
116
|
+
end
|
107
117
|
end
|
108
118
|
|
109
119
|
class Suffix
|
@@ -128,6 +138,11 @@ module Google
|
|
128
138
|
class DynamicLinkInfo
|
129
139
|
# @private
|
130
140
|
class Representation < Google::Apis::Core::JsonRepresentation
|
141
|
+
property :link, as: 'link'
|
142
|
+
property :ios_info, as: 'iosInfo', class: Google::Apis::FirebasedynamiclinksV1::IosInfo, decorator: Google::Apis::FirebasedynamiclinksV1::IosInfo::Representation
|
143
|
+
|
144
|
+
property :social_meta_tag_info, as: 'socialMetaTagInfo', class: Google::Apis::FirebasedynamiclinksV1::SocialMetaTagInfo, decorator: Google::Apis::FirebasedynamiclinksV1::SocialMetaTagInfo::Representation
|
145
|
+
|
131
146
|
property :android_info, as: 'androidInfo', class: Google::Apis::FirebasedynamiclinksV1::AndroidInfo, decorator: Google::Apis::FirebasedynamiclinksV1::AndroidInfo::Representation
|
132
147
|
|
133
148
|
property :navigation_info, as: 'navigationInfo', class: Google::Apis::FirebasedynamiclinksV1::NavigationInfo, decorator: Google::Apis::FirebasedynamiclinksV1::NavigationInfo::Representation
|
@@ -135,11 +150,6 @@ module Google
|
|
135
150
|
property :analytics_info, as: 'analyticsInfo', class: Google::Apis::FirebasedynamiclinksV1::AnalyticsInfo, decorator: Google::Apis::FirebasedynamiclinksV1::AnalyticsInfo::Representation
|
136
151
|
|
137
152
|
property :dynamic_link_domain, as: 'dynamicLinkDomain'
|
138
|
-
property :link, as: 'link'
|
139
|
-
property :ios_info, as: 'iosInfo', class: Google::Apis::FirebasedynamiclinksV1::IosInfo, decorator: Google::Apis::FirebasedynamiclinksV1::IosInfo::Representation
|
140
|
-
|
141
|
-
property :social_meta_tag_info, as: 'socialMetaTagInfo', class: Google::Apis::FirebasedynamiclinksV1::SocialMetaTagInfo, decorator: Google::Apis::FirebasedynamiclinksV1::SocialMetaTagInfo::Representation
|
142
|
-
|
143
153
|
end
|
144
154
|
end
|
145
155
|
|
@@ -162,29 +172,29 @@ module Google
|
|
162
172
|
end
|
163
173
|
end
|
164
174
|
|
165
|
-
class
|
175
|
+
class DynamicLinkStats
|
166
176
|
# @private
|
167
177
|
class Representation < Google::Apis::Core::JsonRepresentation
|
168
|
-
|
169
|
-
|
178
|
+
collection :link_event_stats, as: 'linkEventStats', class: Google::Apis::FirebasedynamiclinksV1::DynamicLinkEventStat, decorator: Google::Apis::FirebasedynamiclinksV1::DynamicLinkEventStat::Representation
|
179
|
+
|
170
180
|
end
|
171
181
|
end
|
172
182
|
|
173
|
-
class
|
183
|
+
class DynamicLinkWarning
|
174
184
|
# @private
|
175
185
|
class Representation < Google::Apis::Core::JsonRepresentation
|
176
|
-
|
177
|
-
|
186
|
+
property :warning_message, as: 'warningMessage'
|
187
|
+
property :warning_code, as: 'warningCode'
|
178
188
|
end
|
179
189
|
end
|
180
190
|
|
181
191
|
class AndroidInfo
|
182
192
|
# @private
|
183
193
|
class Representation < Google::Apis::Core::JsonRepresentation
|
194
|
+
property :android_fallback_link, as: 'androidFallbackLink'
|
184
195
|
property :android_package_name, as: 'androidPackageName'
|
185
196
|
property :android_min_package_version_code, as: 'androidMinPackageVersionCode'
|
186
197
|
property :android_link, as: 'androidLink'
|
187
|
-
property :android_fallback_link, as: 'androidFallbackLink'
|
188
198
|
end
|
189
199
|
end
|
190
200
|
|
@@ -231,19 +241,9 @@ module Google
|
|
231
241
|
class DynamicLinkEventStat
|
232
242
|
# @private
|
233
243
|
class Representation < Google::Apis::Core::JsonRepresentation
|
244
|
+
property :platform, as: 'platform'
|
234
245
|
property :count, :numeric_string => true, as: 'count'
|
235
246
|
property :event, as: 'event'
|
236
|
-
property :platform, as: 'platform'
|
237
|
-
end
|
238
|
-
end
|
239
|
-
|
240
|
-
class CreateShortDynamicLinkResponse
|
241
|
-
# @private
|
242
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
243
|
-
property :short_link, as: 'shortLink'
|
244
|
-
property :preview_link, as: 'previewLink'
|
245
|
-
collection :warning, as: 'warning', class: Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning, decorator: Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning::Representation
|
246
|
-
|
247
247
|
end
|
248
248
|
end
|
249
249
|
end
|
@@ -22,151 +22,22 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module FirebaserulesV1
|
24
24
|
|
25
|
-
#
|
26
|
-
class
|
27
|
-
include Google::Apis::Core::Hashable
|
28
|
-
|
29
|
-
# The result is an actual value. The type of the value must match that
|
30
|
-
# of the type declared by the service.
|
31
|
-
# Corresponds to the JSON property `value`
|
32
|
-
# @return [Object]
|
33
|
-
attr_accessor :value
|
34
|
-
|
35
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
36
|
-
# empty messages in your APIs. A typical example is to use it as the request
|
37
|
-
# or the response type of an API method. For instance:
|
38
|
-
# service Foo `
|
39
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
40
|
-
# `
|
41
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
42
|
-
# Corresponds to the JSON property `undefined`
|
43
|
-
# @return [Google::Apis::FirebaserulesV1::Empty]
|
44
|
-
attr_accessor :undefined
|
45
|
-
|
46
|
-
def initialize(**args)
|
47
|
-
update!(**args)
|
48
|
-
end
|
49
|
-
|
50
|
-
# Update properties of this object
|
51
|
-
def update!(**args)
|
52
|
-
@value = args[:value] if args.key?(:value)
|
53
|
-
@undefined = args[:undefined] if args.key?(:undefined)
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
# Position in the `Source` content including its line, column number, and an
|
58
|
-
# index of the `File` in the `Source` message. Used for debug purposes.
|
59
|
-
class SourcePosition
|
60
|
-
include Google::Apis::Core::Hashable
|
61
|
-
|
62
|
-
# Line number of the source fragment. 1-based.
|
63
|
-
# Corresponds to the JSON property `line`
|
64
|
-
# @return [Fixnum]
|
65
|
-
attr_accessor :line
|
66
|
-
|
67
|
-
# First column on the source line associated with the source fragment.
|
68
|
-
# Corresponds to the JSON property `column`
|
69
|
-
# @return [Fixnum]
|
70
|
-
attr_accessor :column
|
71
|
-
|
72
|
-
# Name of the `File`.
|
73
|
-
# Corresponds to the JSON property `fileName`
|
74
|
-
# @return [String]
|
75
|
-
attr_accessor :file_name
|
76
|
-
|
77
|
-
def initialize(**args)
|
78
|
-
update!(**args)
|
79
|
-
end
|
80
|
-
|
81
|
-
# Update properties of this object
|
82
|
-
def update!(**args)
|
83
|
-
@line = args[:line] if args.key?(:line)
|
84
|
-
@column = args[:column] if args.key?(:column)
|
85
|
-
@file_name = args[:file_name] if args.key?(:file_name)
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
89
|
-
# `TestCase` messages provide the request context and an expectation as to
|
90
|
-
# whether the given context will be allowed or denied. Test cases may specify
|
91
|
-
# the `request`, `resource`, and `function_mocks` to mock a function call to
|
92
|
-
# a service-provided function.
|
93
|
-
# The `request` object represents context present at request-time.
|
94
|
-
# The `resource` is the value of the target resource as it appears in
|
95
|
-
# persistent storage before the request is executed.
|
96
|
-
class TestCase
|
25
|
+
# `File` containing source content.
|
26
|
+
class File
|
97
27
|
include Google::Apis::Core::Hashable
|
98
28
|
|
99
|
-
#
|
100
|
-
#
|
101
|
-
# The resource type depends on the `request.path` value.
|
102
|
-
# Corresponds to the JSON property `resource`
|
103
|
-
# @return [Object]
|
104
|
-
attr_accessor :resource
|
105
|
-
|
106
|
-
# Optional function mocks for service-defined functions. If not set, any
|
107
|
-
# service defined function is expected to return an error, which may or may
|
108
|
-
# not influence the test outcome.
|
109
|
-
# Corresponds to the JSON property `functionMocks`
|
110
|
-
# @return [Array<Google::Apis::FirebaserulesV1::FunctionMock>]
|
111
|
-
attr_accessor :function_mocks
|
112
|
-
|
113
|
-
# Test expectation.
|
114
|
-
# Corresponds to the JSON property `expectation`
|
29
|
+
# Textual Content.
|
30
|
+
# Corresponds to the JSON property `content`
|
115
31
|
# @return [String]
|
116
|
-
attr_accessor :
|
117
|
-
|
118
|
-
# Request context.
|
119
|
-
# The exact format of the request context is service-dependent. See the
|
120
|
-
# appropriate service documentation for information about the supported
|
121
|
-
# fields and types on the request. Minimally, all services support the
|
122
|
-
# following fields and types:
|
123
|
-
# Request field | Type
|
124
|
-
# ---------------|-----------------
|
125
|
-
# auth.uid | `string`
|
126
|
-
# auth.token | `map<string, string>`
|
127
|
-
# headers | `map<string, string>`
|
128
|
-
# method | `string`
|
129
|
-
# params | `map<string, string>`
|
130
|
-
# path | `string`
|
131
|
-
# time | `google.protobuf.Timestamp`
|
132
|
-
# If the request value is not well-formed for the service, the request will
|
133
|
-
# be rejected as an invalid argument.
|
134
|
-
# Corresponds to the JSON property `request`
|
135
|
-
# @return [Object]
|
136
|
-
attr_accessor :request
|
137
|
-
|
138
|
-
def initialize(**args)
|
139
|
-
update!(**args)
|
140
|
-
end
|
141
|
-
|
142
|
-
# Update properties of this object
|
143
|
-
def update!(**args)
|
144
|
-
@resource = args[:resource] if args.key?(:resource)
|
145
|
-
@function_mocks = args[:function_mocks] if args.key?(:function_mocks)
|
146
|
-
@expectation = args[:expectation] if args.key?(:expectation)
|
147
|
-
@request = args[:request] if args.key?(:request)
|
148
|
-
end
|
149
|
-
end
|
150
|
-
|
151
|
-
# `Ruleset` is an immutable copy of `Source` with a globally unique identifier
|
152
|
-
# and a creation time.
|
153
|
-
class Ruleset
|
154
|
-
include Google::Apis::Core::Hashable
|
155
|
-
|
156
|
-
# `Source` is one or more `File` messages comprising a logical set of rules.
|
157
|
-
# Corresponds to the JSON property `source`
|
158
|
-
# @return [Google::Apis::FirebaserulesV1::Source]
|
159
|
-
attr_accessor :source
|
32
|
+
attr_accessor :content
|
160
33
|
|
161
|
-
#
|
162
|
-
#
|
163
|
-
#
|
34
|
+
# Fingerprint (e.g. github sha) associated with the `File`.
|
35
|
+
# Corresponds to the JSON property `fingerprint`
|
36
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
164
37
|
# @return [String]
|
165
|
-
attr_accessor :
|
38
|
+
attr_accessor :fingerprint
|
166
39
|
|
167
|
-
#
|
168
|
-
# Format: `projects/`project_id`/rulesets/`ruleset_id``
|
169
|
-
# Output only.
|
40
|
+
# File name.
|
170
41
|
# Corresponds to the JSON property `name`
|
171
42
|
# @return [String]
|
172
43
|
attr_accessor :name
|
@@ -177,59 +48,26 @@ module Google
|
|
177
48
|
|
178
49
|
# Update properties of this object
|
179
50
|
def update!(**args)
|
180
|
-
@
|
181
|
-
@
|
51
|
+
@content = args[:content] if args.key?(:content)
|
52
|
+
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
182
53
|
@name = args[:name] if args.key?(:name)
|
183
54
|
end
|
184
55
|
end
|
185
56
|
|
186
|
-
#
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
# `Source` is one or more `File` messages comprising a logical set of rules.
|
191
|
-
# Corresponds to the JSON property `source`
|
192
|
-
# @return [Google::Apis::FirebaserulesV1::Source]
|
193
|
-
attr_accessor :source
|
194
|
-
|
195
|
-
# `TestSuite` is a collection of `TestCase` instances that validate the logical
|
196
|
-
# correctness of a `Ruleset`. The `TestSuite` may be referenced in-line within
|
197
|
-
# a `TestRuleset` invocation or as part of a `Release` object as a pre-release
|
198
|
-
# check.
|
199
|
-
# Corresponds to the JSON property `testSuite`
|
200
|
-
# @return [Google::Apis::FirebaserulesV1::TestSuite]
|
201
|
-
attr_accessor :test_suite
|
202
|
-
|
203
|
-
def initialize(**args)
|
204
|
-
update!(**args)
|
205
|
-
end
|
206
|
-
|
207
|
-
# Update properties of this object
|
208
|
-
def update!(**args)
|
209
|
-
@source = args[:source] if args.key?(:source)
|
210
|
-
@test_suite = args[:test_suite] if args.key?(:test_suite)
|
211
|
-
end
|
212
|
-
end
|
213
|
-
|
214
|
-
# Issues include warnings, errors, and deprecation notices.
|
215
|
-
class Issue
|
57
|
+
# Represents a service-defined function call that was invoked during test
|
58
|
+
# execution.
|
59
|
+
class FunctionCall
|
216
60
|
include Google::Apis::Core::Hashable
|
217
61
|
|
218
|
-
#
|
219
|
-
# Corresponds to the JSON property `
|
220
|
-
# @return [
|
221
|
-
attr_accessor :
|
222
|
-
|
223
|
-
# Position in the `Source` content including its line, column number, and an
|
224
|
-
# index of the `File` in the `Source` message. Used for debug purposes.
|
225
|
-
# Corresponds to the JSON property `sourcePosition`
|
226
|
-
# @return [Google::Apis::FirebaserulesV1::SourcePosition]
|
227
|
-
attr_accessor :source_position
|
62
|
+
# The arguments that were provided to the function.
|
63
|
+
# Corresponds to the JSON property `args`
|
64
|
+
# @return [Array<Object>]
|
65
|
+
attr_accessor :args
|
228
66
|
|
229
|
-
#
|
230
|
-
# Corresponds to the JSON property `
|
67
|
+
# Name of the function invoked.
|
68
|
+
# Corresponds to the JSON property `function`
|
231
69
|
# @return [String]
|
232
|
-
attr_accessor :
|
70
|
+
attr_accessor :function
|
233
71
|
|
234
72
|
def initialize(**args)
|
235
73
|
update!(**args)
|
@@ -237,9 +75,8 @@ module Google
|
|
237
75
|
|
238
76
|
# Update properties of this object
|
239
77
|
def update!(**args)
|
240
|
-
@
|
241
|
-
@
|
242
|
-
@severity = args[:severity] if args.key?(:severity)
|
78
|
+
@args = args[:args] if args.key?(:args)
|
79
|
+
@function = args[:function] if args.key?(:function)
|
243
80
|
end
|
244
81
|
end
|
245
82
|
|
@@ -269,64 +106,6 @@ module Google
|
|
269
106
|
end
|
270
107
|
end
|
271
108
|
|
272
|
-
# `File` containing source content.
|
273
|
-
class File
|
274
|
-
include Google::Apis::Core::Hashable
|
275
|
-
|
276
|
-
# File name.
|
277
|
-
# Corresponds to the JSON property `name`
|
278
|
-
# @return [String]
|
279
|
-
attr_accessor :name
|
280
|
-
|
281
|
-
# Textual Content.
|
282
|
-
# Corresponds to the JSON property `content`
|
283
|
-
# @return [String]
|
284
|
-
attr_accessor :content
|
285
|
-
|
286
|
-
# Fingerprint (e.g. github sha) associated with the `File`.
|
287
|
-
# Corresponds to the JSON property `fingerprint`
|
288
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
289
|
-
# @return [String]
|
290
|
-
attr_accessor :fingerprint
|
291
|
-
|
292
|
-
def initialize(**args)
|
293
|
-
update!(**args)
|
294
|
-
end
|
295
|
-
|
296
|
-
# Update properties of this object
|
297
|
-
def update!(**args)
|
298
|
-
@name = args[:name] if args.key?(:name)
|
299
|
-
@content = args[:content] if args.key?(:content)
|
300
|
-
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
301
|
-
end
|
302
|
-
end
|
303
|
-
|
304
|
-
# Represents a service-defined function call that was invoked during test
|
305
|
-
# execution.
|
306
|
-
class FunctionCall
|
307
|
-
include Google::Apis::Core::Hashable
|
308
|
-
|
309
|
-
# The arguments that were provided to the function.
|
310
|
-
# Corresponds to the JSON property `args`
|
311
|
-
# @return [Array<Object>]
|
312
|
-
attr_accessor :args
|
313
|
-
|
314
|
-
# Name of the function invoked.
|
315
|
-
# Corresponds to the JSON property `function`
|
316
|
-
# @return [String]
|
317
|
-
attr_accessor :function
|
318
|
-
|
319
|
-
def initialize(**args)
|
320
|
-
update!(**args)
|
321
|
-
end
|
322
|
-
|
323
|
-
# Update properties of this object
|
324
|
-
def update!(**args)
|
325
|
-
@args = args[:args] if args.key?(:args)
|
326
|
-
@function = args[:function] if args.key?(:function)
|
327
|
-
end
|
328
|
-
end
|
329
|
-
|
330
109
|
# `Release` is a named reference to a `Ruleset`. Once a `Release` refers to a
|
331
110
|
# `Ruleset`, rules-enabled services will be able to enforce the `Ruleset`.
|
332
111
|
class Release
|
@@ -419,6 +198,12 @@ module Google
|
|
419
198
|
class TestResult
|
420
199
|
include Google::Apis::Core::Hashable
|
421
200
|
|
201
|
+
# Position in the `Source` content including its line, column number, and an
|
202
|
+
# index of the `File` in the `Source` message. Used for debug purposes.
|
203
|
+
# Corresponds to the JSON property `errorPosition`
|
204
|
+
# @return [Google::Apis::FirebaserulesV1::SourcePosition]
|
205
|
+
attr_accessor :error_position
|
206
|
+
|
422
207
|
# The set of function calls made to service-defined methods.
|
423
208
|
# Function calls are included in the order in which they are encountered
|
424
209
|
# during evaluation, are provided for both mocked and unmocked functions,
|
@@ -435,17 +220,11 @@ module Google
|
|
435
220
|
# Debug messages related to test execution issues encountered during
|
436
221
|
# evaluation.
|
437
222
|
# Debug messages may be related to too many or too few invocations of
|
438
|
-
# function mocks or to runtime errors that occur during evaluation.
|
439
|
-
# For example: ```Unable to read variable [name: "resource"]```
|
440
|
-
# Corresponds to the JSON property `debugMessages`
|
441
|
-
# @return [Array<String>]
|
442
|
-
attr_accessor :debug_messages
|
443
|
-
|
444
|
-
# Position in the `Source` content including its line, column number, and an
|
445
|
-
# index of the `File` in the `Source` message. Used for debug purposes.
|
446
|
-
# Corresponds to the JSON property `errorPosition`
|
447
|
-
# @return [Google::Apis::FirebaserulesV1::SourcePosition]
|
448
|
-
attr_accessor :error_position
|
223
|
+
# function mocks or to runtime errors that occur during evaluation.
|
224
|
+
# For example: ```Unable to read variable [name: "resource"]```
|
225
|
+
# Corresponds to the JSON property `debugMessages`
|
226
|
+
# @return [Array<String>]
|
227
|
+
attr_accessor :debug_messages
|
449
228
|
|
450
229
|
def initialize(**args)
|
451
230
|
update!(**args)
|
@@ -453,10 +232,10 @@ module Google
|
|
453
232
|
|
454
233
|
# Update properties of this object
|
455
234
|
def update!(**args)
|
235
|
+
@error_position = args[:error_position] if args.key?(:error_position)
|
456
236
|
@function_calls = args[:function_calls] if args.key?(:function_calls)
|
457
237
|
@state = args[:state] if args.key?(:state)
|
458
238
|
@debug_messages = args[:debug_messages] if args.key?(:debug_messages)
|
459
|
-
@error_position = args[:error_position] if args.key?(:error_position)
|
460
239
|
end
|
461
240
|
end
|
462
241
|
|
@@ -464,25 +243,25 @@ module Google
|
|
464
243
|
class ListRulesetsResponse
|
465
244
|
include Google::Apis::Core::Hashable
|
466
245
|
|
467
|
-
# List of `Ruleset` instances.
|
468
|
-
# Corresponds to the JSON property `rulesets`
|
469
|
-
# @return [Array<Google::Apis::FirebaserulesV1::Ruleset>]
|
470
|
-
attr_accessor :rulesets
|
471
|
-
|
472
246
|
# The pagination token to retrieve the next page of results. If the value is
|
473
247
|
# empty, no further results remain.
|
474
248
|
# Corresponds to the JSON property `nextPageToken`
|
475
249
|
# @return [String]
|
476
250
|
attr_accessor :next_page_token
|
477
251
|
|
252
|
+
# List of `Ruleset` instances.
|
253
|
+
# Corresponds to the JSON property `rulesets`
|
254
|
+
# @return [Array<Google::Apis::FirebaserulesV1::Ruleset>]
|
255
|
+
attr_accessor :rulesets
|
256
|
+
|
478
257
|
def initialize(**args)
|
479
258
|
update!(**args)
|
480
259
|
end
|
481
260
|
|
482
261
|
# Update properties of this object
|
483
262
|
def update!(**args)
|
484
|
-
@rulesets = args[:rulesets] if args.key?(:rulesets)
|
485
263
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
264
|
+
@rulesets = args[:rulesets] if args.key?(:rulesets)
|
486
265
|
end
|
487
266
|
end
|
488
267
|
|
@@ -569,6 +348,13 @@ module Google
|
|
569
348
|
class FunctionMock
|
570
349
|
include Google::Apis::Core::Hashable
|
571
350
|
|
351
|
+
# The list of `Arg` values to match. The order in which the arguments are
|
352
|
+
# provided is the order in which they must appear in the function
|
353
|
+
# invocation.
|
354
|
+
# Corresponds to the JSON property `args`
|
355
|
+
# @return [Array<Google::Apis::FirebaserulesV1::Arg>]
|
356
|
+
attr_accessor :args
|
357
|
+
|
572
358
|
# The name of the function.
|
573
359
|
# The function name must match one provided by a service declaration.
|
574
360
|
# Corresponds to the JSON property `function`
|
@@ -580,22 +366,15 @@ module Google
|
|
580
366
|
# @return [Google::Apis::FirebaserulesV1::Result]
|
581
367
|
attr_accessor :result
|
582
368
|
|
583
|
-
# The list of `Arg` values to match. The order in which the arguments are
|
584
|
-
# provided is the order in which they must appear in the function
|
585
|
-
# invocation.
|
586
|
-
# Corresponds to the JSON property `args`
|
587
|
-
# @return [Array<Google::Apis::FirebaserulesV1::Arg>]
|
588
|
-
attr_accessor :args
|
589
|
-
|
590
369
|
def initialize(**args)
|
591
370
|
update!(**args)
|
592
371
|
end
|
593
372
|
|
594
373
|
# Update properties of this object
|
595
374
|
def update!(**args)
|
375
|
+
@args = args[:args] if args.key?(:args)
|
596
376
|
@function = args[:function] if args.key?(:function)
|
597
377
|
@result = args[:result] if args.key?(:result)
|
598
|
-
@args = args[:args] if args.key?(:args)
|
599
378
|
end
|
600
379
|
end
|
601
380
|
|
@@ -617,6 +396,227 @@ module Google
|
|
617
396
|
@files = args[:files] if args.key?(:files)
|
618
397
|
end
|
619
398
|
end
|
399
|
+
|
400
|
+
# Possible result values from the function mock invocation.
|
401
|
+
class Result
|
402
|
+
include Google::Apis::Core::Hashable
|
403
|
+
|
404
|
+
# The result is an actual value. The type of the value must match that
|
405
|
+
# of the type declared by the service.
|
406
|
+
# Corresponds to the JSON property `value`
|
407
|
+
# @return [Object]
|
408
|
+
attr_accessor :value
|
409
|
+
|
410
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
411
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
412
|
+
# or the response type of an API method. For instance:
|
413
|
+
# service Foo `
|
414
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
415
|
+
# `
|
416
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
417
|
+
# Corresponds to the JSON property `undefined`
|
418
|
+
# @return [Google::Apis::FirebaserulesV1::Empty]
|
419
|
+
attr_accessor :undefined
|
420
|
+
|
421
|
+
def initialize(**args)
|
422
|
+
update!(**args)
|
423
|
+
end
|
424
|
+
|
425
|
+
# Update properties of this object
|
426
|
+
def update!(**args)
|
427
|
+
@value = args[:value] if args.key?(:value)
|
428
|
+
@undefined = args[:undefined] if args.key?(:undefined)
|
429
|
+
end
|
430
|
+
end
|
431
|
+
|
432
|
+
# Position in the `Source` content including its line, column number, and an
|
433
|
+
# index of the `File` in the `Source` message. Used for debug purposes.
|
434
|
+
class SourcePosition
|
435
|
+
include Google::Apis::Core::Hashable
|
436
|
+
|
437
|
+
# Line number of the source fragment. 1-based.
|
438
|
+
# Corresponds to the JSON property `line`
|
439
|
+
# @return [Fixnum]
|
440
|
+
attr_accessor :line
|
441
|
+
|
442
|
+
# First column on the source line associated with the source fragment.
|
443
|
+
# Corresponds to the JSON property `column`
|
444
|
+
# @return [Fixnum]
|
445
|
+
attr_accessor :column
|
446
|
+
|
447
|
+
# Name of the `File`.
|
448
|
+
# Corresponds to the JSON property `fileName`
|
449
|
+
# @return [String]
|
450
|
+
attr_accessor :file_name
|
451
|
+
|
452
|
+
def initialize(**args)
|
453
|
+
update!(**args)
|
454
|
+
end
|
455
|
+
|
456
|
+
# Update properties of this object
|
457
|
+
def update!(**args)
|
458
|
+
@line = args[:line] if args.key?(:line)
|
459
|
+
@column = args[:column] if args.key?(:column)
|
460
|
+
@file_name = args[:file_name] if args.key?(:file_name)
|
461
|
+
end
|
462
|
+
end
|
463
|
+
|
464
|
+
# `TestCase` messages provide the request context and an expectation as to
|
465
|
+
# whether the given context will be allowed or denied. Test cases may specify
|
466
|
+
# the `request`, `resource`, and `function_mocks` to mock a function call to
|
467
|
+
# a service-provided function.
|
468
|
+
# The `request` object represents context present at request-time.
|
469
|
+
# The `resource` is the value of the target resource as it appears in
|
470
|
+
# persistent storage before the request is executed.
|
471
|
+
class TestCase
|
472
|
+
include Google::Apis::Core::Hashable
|
473
|
+
|
474
|
+
# Optional resource value as it appears in persistent storage before the
|
475
|
+
# request is fulfilled.
|
476
|
+
# The resource type depends on the `request.path` value.
|
477
|
+
# Corresponds to the JSON property `resource`
|
478
|
+
# @return [Object]
|
479
|
+
attr_accessor :resource
|
480
|
+
|
481
|
+
# Optional function mocks for service-defined functions. If not set, any
|
482
|
+
# service defined function is expected to return an error, which may or may
|
483
|
+
# not influence the test outcome.
|
484
|
+
# Corresponds to the JSON property `functionMocks`
|
485
|
+
# @return [Array<Google::Apis::FirebaserulesV1::FunctionMock>]
|
486
|
+
attr_accessor :function_mocks
|
487
|
+
|
488
|
+
# Test expectation.
|
489
|
+
# Corresponds to the JSON property `expectation`
|
490
|
+
# @return [String]
|
491
|
+
attr_accessor :expectation
|
492
|
+
|
493
|
+
# Request context.
|
494
|
+
# The exact format of the request context is service-dependent. See the
|
495
|
+
# appropriate service documentation for information about the supported
|
496
|
+
# fields and types on the request. Minimally, all services support the
|
497
|
+
# following fields and types:
|
498
|
+
# Request field | Type
|
499
|
+
# ---------------|-----------------
|
500
|
+
# auth.uid | `string`
|
501
|
+
# auth.token | `map<string, string>`
|
502
|
+
# headers | `map<string, string>`
|
503
|
+
# method | `string`
|
504
|
+
# params | `map<string, string>`
|
505
|
+
# path | `string`
|
506
|
+
# time | `google.protobuf.Timestamp`
|
507
|
+
# If the request value is not well-formed for the service, the request will
|
508
|
+
# be rejected as an invalid argument.
|
509
|
+
# Corresponds to the JSON property `request`
|
510
|
+
# @return [Object]
|
511
|
+
attr_accessor :request
|
512
|
+
|
513
|
+
def initialize(**args)
|
514
|
+
update!(**args)
|
515
|
+
end
|
516
|
+
|
517
|
+
# Update properties of this object
|
518
|
+
def update!(**args)
|
519
|
+
@resource = args[:resource] if args.key?(:resource)
|
520
|
+
@function_mocks = args[:function_mocks] if args.key?(:function_mocks)
|
521
|
+
@expectation = args[:expectation] if args.key?(:expectation)
|
522
|
+
@request = args[:request] if args.key?(:request)
|
523
|
+
end
|
524
|
+
end
|
525
|
+
|
526
|
+
# The request for FirebaseRulesService.TestRuleset.
|
527
|
+
class TestRulesetRequest
|
528
|
+
include Google::Apis::Core::Hashable
|
529
|
+
|
530
|
+
# `Source` is one or more `File` messages comprising a logical set of rules.
|
531
|
+
# Corresponds to the JSON property `source`
|
532
|
+
# @return [Google::Apis::FirebaserulesV1::Source]
|
533
|
+
attr_accessor :source
|
534
|
+
|
535
|
+
# `TestSuite` is a collection of `TestCase` instances that validate the logical
|
536
|
+
# correctness of a `Ruleset`. The `TestSuite` may be referenced in-line within
|
537
|
+
# a `TestRuleset` invocation or as part of a `Release` object as a pre-release
|
538
|
+
# check.
|
539
|
+
# Corresponds to the JSON property `testSuite`
|
540
|
+
# @return [Google::Apis::FirebaserulesV1::TestSuite]
|
541
|
+
attr_accessor :test_suite
|
542
|
+
|
543
|
+
def initialize(**args)
|
544
|
+
update!(**args)
|
545
|
+
end
|
546
|
+
|
547
|
+
# Update properties of this object
|
548
|
+
def update!(**args)
|
549
|
+
@source = args[:source] if args.key?(:source)
|
550
|
+
@test_suite = args[:test_suite] if args.key?(:test_suite)
|
551
|
+
end
|
552
|
+
end
|
553
|
+
|
554
|
+
# `Ruleset` is an immutable copy of `Source` with a globally unique identifier
|
555
|
+
# and a creation time.
|
556
|
+
class Ruleset
|
557
|
+
include Google::Apis::Core::Hashable
|
558
|
+
|
559
|
+
# Name of the `Ruleset`. The ruleset_id is auto generated by the service.
|
560
|
+
# Format: `projects/`project_id`/rulesets/`ruleset_id``
|
561
|
+
# Output only.
|
562
|
+
# Corresponds to the JSON property `name`
|
563
|
+
# @return [String]
|
564
|
+
attr_accessor :name
|
565
|
+
|
566
|
+
# `Source` is one or more `File` messages comprising a logical set of rules.
|
567
|
+
# Corresponds to the JSON property `source`
|
568
|
+
# @return [Google::Apis::FirebaserulesV1::Source]
|
569
|
+
attr_accessor :source
|
570
|
+
|
571
|
+
# Time the `Ruleset` was created.
|
572
|
+
# Output only.
|
573
|
+
# Corresponds to the JSON property `createTime`
|
574
|
+
# @return [String]
|
575
|
+
attr_accessor :create_time
|
576
|
+
|
577
|
+
def initialize(**args)
|
578
|
+
update!(**args)
|
579
|
+
end
|
580
|
+
|
581
|
+
# Update properties of this object
|
582
|
+
def update!(**args)
|
583
|
+
@name = args[:name] if args.key?(:name)
|
584
|
+
@source = args[:source] if args.key?(:source)
|
585
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
586
|
+
end
|
587
|
+
end
|
588
|
+
|
589
|
+
# Issues include warnings, errors, and deprecation notices.
|
590
|
+
class Issue
|
591
|
+
include Google::Apis::Core::Hashable
|
592
|
+
|
593
|
+
# Short error description.
|
594
|
+
# Corresponds to the JSON property `description`
|
595
|
+
# @return [String]
|
596
|
+
attr_accessor :description
|
597
|
+
|
598
|
+
# Position in the `Source` content including its line, column number, and an
|
599
|
+
# index of the `File` in the `Source` message. Used for debug purposes.
|
600
|
+
# Corresponds to the JSON property `sourcePosition`
|
601
|
+
# @return [Google::Apis::FirebaserulesV1::SourcePosition]
|
602
|
+
attr_accessor :source_position
|
603
|
+
|
604
|
+
# The severity of the issue.
|
605
|
+
# Corresponds to the JSON property `severity`
|
606
|
+
# @return [String]
|
607
|
+
attr_accessor :severity
|
608
|
+
|
609
|
+
def initialize(**args)
|
610
|
+
update!(**args)
|
611
|
+
end
|
612
|
+
|
613
|
+
# Update properties of this object
|
614
|
+
def update!(**args)
|
615
|
+
@description = args[:description] if args.key?(:description)
|
616
|
+
@source_position = args[:source_position] if args.key?(:source_position)
|
617
|
+
@severity = args[:severity] if args.key?(:severity)
|
618
|
+
end
|
619
|
+
end
|
620
620
|
end
|
621
621
|
end
|
622
622
|
end
|