google-api-client 0.11.3 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +51 -0
- data/api_names.yaml +32317 -34465
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +44 -44
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +14 -14
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +305 -305
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +82 -82
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +106 -106
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
- data/generated/google/apis/admin_directory_v1/service.rb +26 -26
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
- data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
- data/generated/google/apis/adsense_v1_4/service.rb +44 -44
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
- data/generated/google/apis/analytics_v3/classes.rb +3 -3
- data/generated/google/apis/analytics_v3/representations.rb +3 -3
- data/generated/google/apis/analytics_v3/service.rb +82 -82
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +916 -916
- data/generated/google/apis/analyticsreporting_v4/representations.rb +167 -167
- data/generated/google/apis/analyticsreporting_v4/service.rb +7 -7
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
- data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
- data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
- data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
- data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +825 -817
- data/generated/google/apis/appengine_v1/representations.rb +185 -184
- data/generated/google/apis/appengine_v1/service.rb +220 -216
- 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 +9 -7
- data/generated/google/apis/bigquery_v2/representations.rb +8 -8
- data/generated/google/apis/bigquery_v2/service.rb +13 -13
- data/generated/google/apis/blogger_v3/service.rb +3 -3
- data/generated/google/apis/books_v1/classes.rb +55 -55
- data/generated/google/apis/books_v1/representations.rb +67 -67
- data/generated/google/apis/books_v1/service.rb +82 -82
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +6 -6
- data/generated/google/apis/calendar_v3/representations.rb +3 -3
- data/generated/google/apis/calendar_v3/service.rb +2 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +1 -1
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -2
- data/generated/google/apis/civicinfo_v2/service.rb +8 -8
- data/generated/google/apis/classroom_v1.rb +24 -24
- data/generated/google/apis/classroom_v1/classes.rb +381 -381
- data/generated/google/apis/classroom_v1/representations.rb +108 -108
- data/generated/google/apis/classroom_v1/service.rb +503 -503
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +219 -219
- data/generated/google/apis/cloudbuild_v1/representations.rb +62 -62
- data/generated/google/apis/cloudbuild_v1/service.rb +165 -165
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +133 -133
- data/generated/google/apis/clouddebugger_v2/representations.rb +29 -29
- data/generated/google/apis/clouddebugger_v2/service.rb +54 -54
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +177 -177
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +47 -47
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +123 -123
- 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 +3 -3
- data/generated/google/apis/cloudkms_v1/classes.rb +229 -229
- data/generated/google/apis/cloudkms_v1/representations.rb +54 -54
- data/generated/google/apis/cloudkms_v1/service.rb +224 -224
- data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1199 -1199
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +192 -192
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +122 -122
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +495 -495
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +92 -92
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +320 -320
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +44 -44
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +28 -28
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +57 -15
- data/generated/google/apis/compute_beta/representations.rb +30 -14
- data/generated/google/apis/compute_beta/service.rb +52 -52
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +223 -10
- data/generated/google/apis/compute_v1/representations.rb +85 -16
- data/generated/google/apis/compute_v1/service.rb +327 -51
- data/generated/google/apis/container_v1/classes.rb +267 -267
- data/generated/google/apis/container_v1/representations.rb +61 -61
- data/generated/google/apis/container_v1/service.rb +123 -123
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +71 -71
- data/generated/google/apis/content_v2/representations.rb +105 -105
- data/generated/google/apis/content_v2/service.rb +120 -120
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3442 -3452
- data/generated/google/apis/dataflow_v1b3/representations.rb +388 -389
- data/generated/google/apis/dataflow_v1b3/service.rb +265 -265
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1059 -1059
- data/generated/google/apis/dataproc_v1/representations.rb +147 -147
- data/generated/google/apis/dataproc_v1/service.rb +309 -305
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +818 -818
- data/generated/google/apis/datastore_v1/representations.rb +151 -151
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
- data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
- data/generated/google/apis/discovery_v1/classes.rb +4 -4
- data/generated/google/apis/discovery_v1/representations.rb +2 -2
- data/generated/google/apis/discovery_v1/service.rb +1 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +3 -3
- data/generated/google/apis/dns_v1/representations.rb +6 -6
- data/generated/google/apis/dns_v1/service.rb +12 -12
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.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 +188 -188
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +62 -62
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -4
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +403 -206
- data/generated/google/apis/firebaserules_v1/representations.rb +134 -54
- data/generated/google/apis/firebaserules_v1/service.rb +89 -89
- data/generated/google/apis/fusiontables_v2/service.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
- data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +23 -23
- data/generated/google/apis/games_v1/representations.rb +43 -43
- data/generated/google/apis/games_v1/service.rb +72 -72
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2296 -2297
- data/generated/google/apis/genomics_v1/representations.rb +298 -298
- data/generated/google/apis/genomics_v1/service.rb +1160 -1160
- data/generated/google/apis/groupssettings_v1/service.rb +0 -3
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +235 -235
- data/generated/google/apis/iam_v1/representations.rb +72 -72
- data/generated/google/apis/iam_v1/service.rb +189 -189
- data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
- data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
- data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +10 -10
- data/generated/google/apis/language_v1/classes.rb +220 -220
- data/generated/google/apis/language_v1/representations.rb +81 -81
- data/generated/google/apis/language_v1/service.rb +43 -43
- data/generated/google/apis/language_v1beta1/classes.rb +448 -448
- data/generated/google/apis/language_v1beta1/representations.rb +106 -106
- data/generated/google/apis/language_v1beta1/service.rb +31 -31
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/logging_v2/classes.rb +737 -737
- data/generated/google/apis/logging_v2/representations.rb +120 -120
- data/generated/google/apis/logging_v2/service.rb +479 -479
- data/generated/google/apis/logging_v2beta1/classes.rb +293 -293
- data/generated/google/apis/logging_v2beta1/representations.rb +54 -54
- data/generated/google/apis/logging_v2beta1/service.rb +349 -349
- data/generated/google/apis/manufacturers_v1/classes.rb +423 -423
- data/generated/google/apis/manufacturers_v1/representations.rb +61 -61
- data/generated/google/apis/manufacturers_v1/service.rb +8 -8
- data/generated/google/apis/mirror_v1/classes.rb +5 -5
- data/generated/google/apis/mirror_v1/representations.rb +10 -10
- data/generated/google/apis/mirror_v1/service.rb +20 -20
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1285 -1205
- data/generated/google/apis/ml_v1/representations.rb +204 -174
- data/generated/google/apis/ml_v1/service.rb +150 -145
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +880 -880
- data/generated/google/apis/monitoring_v3/representations.rb +154 -154
- data/generated/google/apis/monitoring_v3/service.rb +299 -299
- data/generated/google/apis/mybusiness_v3/service.rb +5 -5
- data/generated/google/apis/oauth2_v2/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
- data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +524 -509
- data/generated/google/apis/partners_v2/representations.rb +115 -111
- data/generated/google/apis/partners_v2/service.rb +287 -287
- data/generated/google/apis/people_v1.rb +13 -13
- data/generated/google/apis/people_v1/classes.rb +1150 -1150
- data/generated/google/apis/people_v1/representations.rb +258 -258
- data/generated/google/apis/people_v1/service.rb +7 -7
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +4 -4
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -8
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +554 -554
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +108 -108
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +224 -224
- data/generated/google/apis/pubsub_v1/classes.rb +228 -228
- data/generated/google/apis/pubsub_v1/representations.rb +69 -69
- data/generated/google/apis/pubsub_v1/service.rb +182 -182
- data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
- data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
- data/generated/google/apis/qpx_express_v1/service.rb +8 -8
- data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
- data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
- data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
- data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1/classes.rb +19 -19
- data/generated/google/apis/runtimeconfig_v1/representations.rb +10 -10
- data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
- data/generated/google/apis/script_v1.rb +9 -9
- data/generated/google/apis/script_v1/classes.rb +94 -94
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +65 -65
- data/generated/google/apis/searchconsole_v1/representations.rb +27 -27
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1/classes.rb +1131 -1131
- data/generated/google/apis/servicecontrol_v1/representations.rb +195 -195
- data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
- data/generated/google/apis/servicemanagement_v1.rb +7 -7
- data/generated/google/apis/servicemanagement_v1/classes.rb +3543 -3585
- data/generated/google/apis/servicemanagement_v1/representations.rb +556 -556
- data/generated/google/apis/servicemanagement_v1/service.rb +309 -309
- data/generated/google/apis/serviceuser_v1.rb +4 -4
- data/generated/google/apis/serviceuser_v1/classes.rb +2734 -2776
- data/generated/google/apis/serviceuser_v1/representations.rb +398 -398
- data/generated/google/apis/serviceuser_v1/service.rb +16 -16
- data/generated/google/apis/sheets_v4/classes.rb +1489 -1489
- data/generated/google/apis/sheets_v4/representations.rb +324 -324
- data/generated/google/apis/sheets_v4/service.rb +49 -49
- data/generated/google/apis/site_verification_v1/classes.rb +6 -6
- data/generated/google/apis/site_verification_v1/representations.rb +8 -8
- data/generated/google/apis/site_verification_v1/service.rb +12 -12
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2907 -2907
- data/generated/google/apis/slides_v1/representations.rb +695 -695
- data/generated/google/apis/slides_v1/service.rb +40 -40
- data/generated/google/apis/sourcerepo_v1.rb +7 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +459 -452
- data/generated/google/apis/sourcerepo_v1/representations.rb +90 -89
- data/generated/google/apis/sourcerepo_v1/service.rb +101 -100
- data/generated/google/apis/spanner_v1/classes.rb +2557 -2557
- data/generated/google/apis/spanner_v1/representations.rb +205 -205
- data/generated/google/apis/spanner_v1/service.rb +525 -525
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +73 -73
- data/generated/google/apis/speech_v1beta1/representations.rb +25 -25
- data/generated/google/apis/speech_v1beta1/service.rb +33 -33
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +16 -15
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +28 -28
- data/generated/google/apis/sqladmin_v1beta4/service.rb +58 -57
- data/generated/google/apis/storage_v1/classes.rb +6 -6
- data/generated/google/apis/storage_v1/representations.rb +4 -4
- data/generated/google/apis/storage_v1/service.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +357 -357
- data/generated/google/apis/storagetransfer_v1/representations.rb +87 -87
- data/generated/google/apis/storagetransfer_v1/service.rb +53 -48
- data/generated/google/apis/tagmanager_v1/service.rb +33 -33
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/translate_v2.rb +1 -1
- data/generated/google/apis/translate_v2/classes.rb +46 -46
- data/generated/google/apis/translate_v2/representations.rb +22 -22
- data/generated/google/apis/translate_v2/service.rb +81 -74
- data/generated/google/apis/vision_v1/classes.rb +1290 -1290
- data/generated/google/apis/vision_v1/representations.rb +166 -166
- data/generated/google/apis/vision_v1/service.rb +6 -6
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/representations.rb +8 -8
- data/generated/google/apis/webmasters_v3/service.rb +21 -21
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
- data/generated/google/apis/youtube_v3/classes.rb +20 -20
- data/generated/google/apis/youtube_v3/representations.rb +40 -40
- data/generated/google/apis/youtube_v3/service.rb +80 -80
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +127 -127
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +90 -90
- data/google-api-client.gemspec +3 -3
- data/lib/google/apis/core/base_service.rb +6 -0
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/generator/model.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +11 -94
- data/dl.rb +0 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +0 -35
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +0 -1335
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +0 -446
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +0 -872
- data/generated/google/apis/appengine_v1beta4.rb +0 -35
- data/generated/google/apis/appengine_v1beta4/classes.rb +0 -1585
- data/generated/google/apis/appengine_v1beta4/representations.rb +0 -542
- data/generated/google/apis/appengine_v1beta4/service.rb +0 -477
- data/generated/google/apis/appengine_v1beta5.rb +0 -40
- data/generated/google/apis/appengine_v1beta5/classes.rb +0 -2094
- data/generated/google/apis/appengine_v1beta5/representations.rb +0 -802
- data/generated/google/apis/appengine_v1beta5/service.rb +0 -867
- data/generated/google/apis/autoscaler_v1beta2.rb +0 -38
- data/generated/google/apis/autoscaler_v1beta2/classes.rb +0 -710
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +0 -296
- data/generated/google/apis/autoscaler_v1beta2/service.rb +0 -478
- data/generated/google/apis/classroom_v1beta1.rb +0 -49
- data/generated/google/apis/classroom_v1beta1/classes.rb +0 -447
- data/generated/google/apis/classroom_v1beta1/representations.rb +0 -190
- data/generated/google/apis/classroom_v1beta1/service.rb +0 -791
- data/generated/google/apis/cloudkms_v1beta1.rb +0 -35
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +0 -1039
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +0 -448
- data/generated/google/apis/cloudkms_v1beta1/service.rb +0 -933
- data/generated/google/apis/cloudlatencytest_v2.rb +0 -34
- data/generated/google/apis/cloudlatencytest_v2/classes.rb +0 -195
- data/generated/google/apis/cloudlatencytest_v2/representations.rb +0 -127
- data/generated/google/apis/cloudlatencytest_v2/service.rb +0 -135
- data/generated/google/apis/container_v1beta1.rb +0 -35
- data/generated/google/apis/container_v1beta1/classes.rb +0 -466
- data/generated/google/apis/container_v1beta1/representations.rb +0 -177
- data/generated/google/apis/container_v1beta1/service.rb +0 -394
- data/generated/google/apis/coordinate_v1.rb +0 -37
- data/generated/google/apis/coordinate_v1/classes.rb +0 -669
- data/generated/google/apis/coordinate_v1/representations.rb +0 -321
- data/generated/google/apis/coordinate_v1/service.rb +0 -678
- data/generated/google/apis/datastore_v1beta2.rb +0 -40
- data/generated/google/apis/datastore_v1beta2/classes.rb +0 -1186
- data/generated/google/apis/datastore_v1beta2/representations.rb +0 -594
- data/generated/google/apis/datastore_v1beta2/service.rb +0 -294
- data/generated/google/apis/datastore_v1beta3.rb +0 -38
- data/generated/google/apis/datastore_v1beta3/classes.rb +0 -1284
- data/generated/google/apis/datastore_v1beta3/representations.rb +0 -572
- data/generated/google/apis/datastore_v1beta3/service.rb +0 -259
- data/generated/google/apis/deploymentmanager_v2beta2.rb +0 -44
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +0 -843
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +0 -306
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +0 -689
- data/generated/google/apis/dfareporting_v2_1.rb +0 -37
- data/generated/google/apis/dfareporting_v2_1/classes.rb +0 -10770
- data/generated/google/apis/dfareporting_v2_1/representations.rb +0 -3438
- data/generated/google/apis/dfareporting_v2_1/service.rb +0 -8585
- data/generated/google/apis/dfareporting_v2_3.rb +0 -37
- data/generated/google/apis/dfareporting_v2_3/classes.rb +0 -10839
- data/generated/google/apis/dfareporting_v2_3/representations.rb +0 -3829
- data/generated/google/apis/dfareporting_v2_3/service.rb +0 -8581
- data/generated/google/apis/dfareporting_v2_5.rb +0 -40
- data/generated/google/apis/dfareporting_v2_5/classes.rb +0 -11225
- data/generated/google/apis/dfareporting_v2_5/representations.rb +0 -3982
- data/generated/google/apis/dfareporting_v2_5/service.rb +0 -8755
- data/generated/google/apis/dfareporting_v2_6.rb +0 -40
- data/generated/google/apis/dfareporting_v2_6/classes.rb +0 -11599
- data/generated/google/apis/dfareporting_v2_6/representations.rb +0 -4119
- data/generated/google/apis/dfareporting_v2_6/service.rb +0 -9026
- data/generated/google/apis/gan_v1beta1.rb +0 -31
- data/generated/google/apis/gan_v1beta1/classes.rb +0 -1428
- data/generated/google/apis/gan_v1beta1/representations.rb +0 -462
- data/generated/google/apis/gan_v1beta1/service.rb +0 -682
- data/generated/google/apis/genomics_v1beta2.rb +0 -46
- data/generated/google/apis/genomics_v1beta2/classes.rb +0 -3288
- data/generated/google/apis/genomics_v1beta2/representations.rb +0 -1194
- data/generated/google/apis/genomics_v1beta2/service.rb +0 -2392
- data/generated/google/apis/logging_v1beta3.rb +0 -47
- data/generated/google/apis/logging_v1beta3/classes.rb +0 -1079
- data/generated/google/apis/logging_v1beta3/representations.rb +0 -366
- data/generated/google/apis/logging_v1beta3/service.rb +0 -1001
- data/generated/google/apis/manager_v1beta2.rb +0 -53
- data/generated/google/apis/manager_v1beta2/classes.rb +0 -1287
- data/generated/google/apis/manager_v1beta2/representations.rb +0 -606
- data/generated/google/apis/manager_v1beta2/service.rb +0 -372
- data/generated/google/apis/pubsub_v1beta2.rb +0 -37
- data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -620
- data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -282
- data/generated/google/apis/pubsub_v1beta2/service.rb +0 -774
- data/generated/google/apis/tracing_v1.rb +0 -40
- data/generated/google/apis/tracing_v1/classes.rb +0 -664
- data/generated/google/apis/tracing_v1/representations.rb +0 -279
- data/generated/google/apis/tracing_v1/service.rb +0 -226
@@ -22,6 +22,18 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module ScriptV1
|
24
24
|
|
25
|
+
class ScriptStackTraceElement
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class ExecutionError
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
25
37
|
class Status
|
26
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
39
|
|
@@ -59,42 +71,48 @@ module Google
|
|
59
71
|
end
|
60
72
|
|
61
73
|
class ScriptStackTraceElement
|
62
|
-
|
63
|
-
|
64
|
-
|
74
|
+
# @private
|
75
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
76
|
+
property :function, as: 'function'
|
77
|
+
property :line_number, as: 'lineNumber'
|
78
|
+
end
|
65
79
|
end
|
66
80
|
|
67
81
|
class ExecutionError
|
68
|
-
|
82
|
+
# @private
|
83
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
84
|
+
property :error_type, as: 'errorType'
|
85
|
+
property :error_message, as: 'errorMessage'
|
86
|
+
collection :script_stack_trace_elements, as: 'scriptStackTraceElements', class: Google::Apis::ScriptV1::ScriptStackTraceElement, decorator: Google::Apis::ScriptV1::ScriptStackTraceElement::Representation
|
69
87
|
|
70
|
-
|
88
|
+
end
|
71
89
|
end
|
72
90
|
|
73
91
|
class Status
|
74
92
|
# @private
|
75
93
|
class Representation < Google::Apis::Core::JsonRepresentation
|
94
|
+
property :message, as: 'message'
|
76
95
|
collection :details, as: 'details'
|
77
96
|
property :code, as: 'code'
|
78
|
-
property :message, as: 'message'
|
79
97
|
end
|
80
98
|
end
|
81
99
|
|
82
100
|
class ExecutionRequest
|
83
101
|
# @private
|
84
102
|
class Representation < Google::Apis::Core::JsonRepresentation
|
85
|
-
property :session_state, as: 'sessionState'
|
86
103
|
property :function, as: 'function'
|
87
104
|
property :dev_mode, as: 'devMode'
|
88
105
|
collection :parameters, as: 'parameters'
|
106
|
+
property :session_state, as: 'sessionState'
|
89
107
|
end
|
90
108
|
end
|
91
109
|
|
92
110
|
class JoinAsyncRequest
|
93
111
|
# @private
|
94
112
|
class Representation < Google::Apis::Core::JsonRepresentation
|
95
|
-
property :timeout, as: 'timeout'
|
96
113
|
property :script_id, as: 'scriptId'
|
97
114
|
collection :names, as: 'names'
|
115
|
+
property :timeout, as: 'timeout'
|
98
116
|
end
|
99
117
|
end
|
100
118
|
|
@@ -124,24 +142,6 @@ module Google
|
|
124
142
|
|
125
143
|
end
|
126
144
|
end
|
127
|
-
|
128
|
-
class ScriptStackTraceElement
|
129
|
-
# @private
|
130
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
131
|
-
property :function, as: 'function'
|
132
|
-
property :line_number, as: 'lineNumber'
|
133
|
-
end
|
134
|
-
end
|
135
|
-
|
136
|
-
class ExecutionError
|
137
|
-
# @private
|
138
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
139
|
-
property :error_type, as: 'errorType'
|
140
|
-
property :error_message, as: 'errorMessage'
|
141
|
-
collection :script_stack_trace_elements, as: 'scriptStackTraceElements', class: Google::Apis::ScriptV1::ScriptStackTraceElement, decorator: Google::Apis::ScriptV1::ScriptStackTraceElement::Representation
|
142
|
-
|
143
|
-
end
|
144
|
-
end
|
145
145
|
end
|
146
146
|
end
|
147
147
|
end
|
@@ -22,6 +22,59 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module SearchconsoleV1
|
24
24
|
|
25
|
+
# Mobile-friendly test request.
|
26
|
+
class RunMobileFriendlyTestRequest
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# URL for inspection.
|
30
|
+
# Corresponds to the JSON property `url`
|
31
|
+
# @return [String]
|
32
|
+
attr_accessor :url
|
33
|
+
|
34
|
+
# Whether or not screenshot is requested. Default is false.
|
35
|
+
# Corresponds to the JSON property `requestScreenshot`
|
36
|
+
# @return [Boolean]
|
37
|
+
attr_accessor :request_screenshot
|
38
|
+
alias_method :request_screenshot?, :request_screenshot
|
39
|
+
|
40
|
+
def initialize(**args)
|
41
|
+
update!(**args)
|
42
|
+
end
|
43
|
+
|
44
|
+
# Update properties of this object
|
45
|
+
def update!(**args)
|
46
|
+
@url = args[:url] if args.key?(:url)
|
47
|
+
@request_screenshot = args[:request_screenshot] if args.key?(:request_screenshot)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# Describe image data.
|
52
|
+
class Image
|
53
|
+
include Google::Apis::Core::Hashable
|
54
|
+
|
55
|
+
# The mime-type of the image data.
|
56
|
+
# Corresponds to the JSON property `mimeType`
|
57
|
+
# @return [String]
|
58
|
+
attr_accessor :mime_type
|
59
|
+
|
60
|
+
# Image data in format determined by the mime type. Currently, the format
|
61
|
+
# will always be "image/png", but this might change in the future.
|
62
|
+
# Corresponds to the JSON property `data`
|
63
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
64
|
+
# @return [String]
|
65
|
+
attr_accessor :data
|
66
|
+
|
67
|
+
def initialize(**args)
|
68
|
+
update!(**args)
|
69
|
+
end
|
70
|
+
|
71
|
+
# Update properties of this object
|
72
|
+
def update!(**args)
|
73
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
74
|
+
@data = args[:data] if args.key?(:data)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
25
78
|
# Mobile-friendly issue.
|
26
79
|
class MobileFriendlyIssue
|
27
80
|
include Google::Apis::Core::Hashable
|
@@ -46,6 +99,16 @@ module Google
|
|
46
99
|
class RunMobileFriendlyTestResponse
|
47
100
|
include Google::Apis::Core::Hashable
|
48
101
|
|
102
|
+
# Information about embedded resources issues.
|
103
|
+
# Corresponds to the JSON property `resourceIssues`
|
104
|
+
# @return [Array<Google::Apis::SearchconsoleV1::ResourceIssue>]
|
105
|
+
attr_accessor :resource_issues
|
106
|
+
|
107
|
+
# Final state of the test, including error details if necessary.
|
108
|
+
# Corresponds to the JSON property `testStatus`
|
109
|
+
# @return [Google::Apis::SearchconsoleV1::TestStatus]
|
110
|
+
attr_accessor :test_status
|
111
|
+
|
49
112
|
# Test verdict, whether the page is mobile friendly or not.
|
50
113
|
# Corresponds to the JSON property `mobileFriendliness`
|
51
114
|
# @return [String]
|
@@ -61,27 +124,17 @@ module Google
|
|
61
124
|
# @return [Google::Apis::SearchconsoleV1::Image]
|
62
125
|
attr_accessor :screenshot
|
63
126
|
|
64
|
-
# Information about embedded resources issues.
|
65
|
-
# Corresponds to the JSON property `resourceIssues`
|
66
|
-
# @return [Array<Google::Apis::SearchconsoleV1::ResourceIssue>]
|
67
|
-
attr_accessor :resource_issues
|
68
|
-
|
69
|
-
# Final state of the test, including error details if necessary.
|
70
|
-
# Corresponds to the JSON property `testStatus`
|
71
|
-
# @return [Google::Apis::SearchconsoleV1::TestStatus]
|
72
|
-
attr_accessor :test_status
|
73
|
-
|
74
127
|
def initialize(**args)
|
75
128
|
update!(**args)
|
76
129
|
end
|
77
130
|
|
78
131
|
# Update properties of this object
|
79
132
|
def update!(**args)
|
133
|
+
@resource_issues = args[:resource_issues] if args.key?(:resource_issues)
|
134
|
+
@test_status = args[:test_status] if args.key?(:test_status)
|
80
135
|
@mobile_friendliness = args[:mobile_friendliness] if args.key?(:mobile_friendliness)
|
81
136
|
@mobile_friendly_issues = args[:mobile_friendly_issues] if args.key?(:mobile_friendly_issues)
|
82
137
|
@screenshot = args[:screenshot] if args.key?(:screenshot)
|
83
|
-
@resource_issues = args[:resource_issues] if args.key?(:resource_issues)
|
84
|
-
@test_status = args[:test_status] if args.key?(:test_status)
|
85
138
|
end
|
86
139
|
end
|
87
140
|
|
@@ -147,59 +200,6 @@ module Google
|
|
147
200
|
@details = args[:details] if args.key?(:details)
|
148
201
|
end
|
149
202
|
end
|
150
|
-
|
151
|
-
# Describe image data.
|
152
|
-
class Image
|
153
|
-
include Google::Apis::Core::Hashable
|
154
|
-
|
155
|
-
# Image data in format determined by the mime type. Currently, the format
|
156
|
-
# will always be "image/png", but this might change in the future.
|
157
|
-
# Corresponds to the JSON property `data`
|
158
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
159
|
-
# @return [String]
|
160
|
-
attr_accessor :data
|
161
|
-
|
162
|
-
# The mime-type of the image data.
|
163
|
-
# Corresponds to the JSON property `mimeType`
|
164
|
-
# @return [String]
|
165
|
-
attr_accessor :mime_type
|
166
|
-
|
167
|
-
def initialize(**args)
|
168
|
-
update!(**args)
|
169
|
-
end
|
170
|
-
|
171
|
-
# Update properties of this object
|
172
|
-
def update!(**args)
|
173
|
-
@data = args[:data] if args.key?(:data)
|
174
|
-
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
175
|
-
end
|
176
|
-
end
|
177
|
-
|
178
|
-
# Mobile-friendly test request.
|
179
|
-
class RunMobileFriendlyTestRequest
|
180
|
-
include Google::Apis::Core::Hashable
|
181
|
-
|
182
|
-
# URL for inspection.
|
183
|
-
# Corresponds to the JSON property `url`
|
184
|
-
# @return [String]
|
185
|
-
attr_accessor :url
|
186
|
-
|
187
|
-
# Whether or not screenshot is requested. Default is false.
|
188
|
-
# Corresponds to the JSON property `requestScreenshot`
|
189
|
-
# @return [Boolean]
|
190
|
-
attr_accessor :request_screenshot
|
191
|
-
alias_method :request_screenshot?, :request_screenshot
|
192
|
-
|
193
|
-
def initialize(**args)
|
194
|
-
update!(**args)
|
195
|
-
end
|
196
|
-
|
197
|
-
# Update properties of this object
|
198
|
-
def update!(**args)
|
199
|
-
@url = args[:url] if args.key?(:url)
|
200
|
-
@request_screenshot = args[:request_screenshot] if args.key?(:request_screenshot)
|
201
|
-
end
|
202
|
-
end
|
203
203
|
end
|
204
204
|
end
|
205
205
|
end
|
@@ -22,48 +22,64 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module SearchconsoleV1
|
24
24
|
|
25
|
-
class
|
25
|
+
class RunMobileFriendlyTestRequest
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
27
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
-
class
|
31
|
+
class Image
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
33
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
-
class
|
37
|
+
class MobileFriendlyIssue
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
39
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
-
class
|
43
|
+
class RunMobileFriendlyTestResponse
|
44
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
45
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
-
class
|
49
|
+
class ResourceIssue
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
51
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
-
class
|
55
|
+
class BlockedResource
|
56
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
57
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
-
class
|
61
|
+
class TestStatus
|
62
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
63
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
+
class RunMobileFriendlyTestRequest
|
68
|
+
# @private
|
69
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
70
|
+
property :url, as: 'url'
|
71
|
+
property :request_screenshot, as: 'requestScreenshot'
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
class Image
|
76
|
+
# @private
|
77
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
78
|
+
property :mime_type, as: 'mimeType'
|
79
|
+
property :data, :base64 => true, as: 'data'
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
67
83
|
class MobileFriendlyIssue
|
68
84
|
# @private
|
69
85
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -74,15 +90,15 @@ module Google
|
|
74
90
|
class RunMobileFriendlyTestResponse
|
75
91
|
# @private
|
76
92
|
class Representation < Google::Apis::Core::JsonRepresentation
|
93
|
+
collection :resource_issues, as: 'resourceIssues', class: Google::Apis::SearchconsoleV1::ResourceIssue, decorator: Google::Apis::SearchconsoleV1::ResourceIssue::Representation
|
94
|
+
|
95
|
+
property :test_status, as: 'testStatus', class: Google::Apis::SearchconsoleV1::TestStatus, decorator: Google::Apis::SearchconsoleV1::TestStatus::Representation
|
96
|
+
|
77
97
|
property :mobile_friendliness, as: 'mobileFriendliness'
|
78
98
|
collection :mobile_friendly_issues, as: 'mobileFriendlyIssues', class: Google::Apis::SearchconsoleV1::MobileFriendlyIssue, decorator: Google::Apis::SearchconsoleV1::MobileFriendlyIssue::Representation
|
79
99
|
|
80
100
|
property :screenshot, as: 'screenshot', class: Google::Apis::SearchconsoleV1::Image, decorator: Google::Apis::SearchconsoleV1::Image::Representation
|
81
101
|
|
82
|
-
collection :resource_issues, as: 'resourceIssues', class: Google::Apis::SearchconsoleV1::ResourceIssue, decorator: Google::Apis::SearchconsoleV1::ResourceIssue::Representation
|
83
|
-
|
84
|
-
property :test_status, as: 'testStatus', class: Google::Apis::SearchconsoleV1::TestStatus, decorator: Google::Apis::SearchconsoleV1::TestStatus::Representation
|
85
|
-
|
86
102
|
end
|
87
103
|
end
|
88
104
|
|
@@ -108,22 +124,6 @@ module Google
|
|
108
124
|
property :details, as: 'details'
|
109
125
|
end
|
110
126
|
end
|
111
|
-
|
112
|
-
class Image
|
113
|
-
# @private
|
114
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
115
|
-
property :data, :base64 => true, as: 'data'
|
116
|
-
property :mime_type, as: 'mimeType'
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
|
-
class RunMobileFriendlyTestRequest
|
121
|
-
# @private
|
122
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
123
|
-
property :url, as: 'url'
|
124
|
-
property :request_screenshot, as: 'requestScreenshot'
|
125
|
-
end
|
126
|
-
end
|
127
127
|
end
|
128
128
|
end
|
129
129
|
end
|
@@ -32,16 +32,16 @@ module Google
|
|
32
32
|
#
|
33
33
|
# @see https://developers.google.com/webmaster-tools/search-console-api/
|
34
34
|
class SearchConsoleService < Google::Apis::Core::BaseService
|
35
|
-
# @return [String]
|
36
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
37
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38
|
-
attr_accessor :quota_user
|
39
|
-
|
40
35
|
# @return [String]
|
41
36
|
# API key. Your API key identifies your project and provides you with API access,
|
42
37
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
43
38
|
attr_accessor :key
|
44
39
|
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
45
|
def initialize
|
46
46
|
super('https://searchconsole.googleapis.com/', '')
|
47
47
|
@batch_path = 'batch'
|
@@ -80,8 +80,8 @@ module Google
|
|
80
80
|
protected
|
81
81
|
|
82
82
|
def apply_command_defaults(command)
|
83
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
84
83
|
command.query['key'] = key unless key.nil?
|
84
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
85
85
|
end
|
86
86
|
end
|
87
87
|
end
|
@@ -22,43 +22,30 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module ServicecontrolV1
|
24
24
|
|
25
|
-
#
|
26
|
-
class
|
25
|
+
# Represents an amount of money with its currency type.
|
26
|
+
class Money
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
|
-
# The
|
30
|
-
#
|
31
|
-
# Corresponds to the JSON property `operationId`
|
32
|
-
# @return [String]
|
33
|
-
attr_accessor :operation_id
|
34
|
-
|
35
|
-
# ID of the actual config used to process the request.
|
36
|
-
# Corresponds to the JSON property `serviceConfigId`
|
29
|
+
# The 3-letter currency code defined in ISO 4217.
|
30
|
+
# Corresponds to the JSON property `currencyCode`
|
37
31
|
# @return [String]
|
38
|
-
attr_accessor :
|
32
|
+
attr_accessor :currency_code
|
39
33
|
|
40
|
-
#
|
41
|
-
#
|
42
|
-
#
|
43
|
-
|
34
|
+
# Number of nano (10^-9) units of the amount.
|
35
|
+
# The value must be between -999,999,999 and +999,999,999 inclusive.
|
36
|
+
# If `units` is positive, `nanos` must be positive or zero.
|
37
|
+
# If `units` is zero, `nanos` can be positive, zero, or negative.
|
38
|
+
# If `units` is negative, `nanos` must be negative or zero.
|
39
|
+
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
40
|
+
# Corresponds to the JSON property `nanos`
|
41
|
+
# @return [Fixnum]
|
42
|
+
attr_accessor :nanos
|
44
43
|
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
|
50
|
-
# 2. For allocation quota, per quota metric total usage will be specified
|
51
|
-
# using the following gauge metric:
|
52
|
-
# "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
|
53
|
-
# 3. For both rate quota and allocation quota, the quota limit reached
|
54
|
-
# condition will be specified using the following boolean metric:
|
55
|
-
# "serviceruntime.googleapis.com/quota/exceeded"
|
56
|
-
# 4. For allocation quota, value for each quota limit associated with
|
57
|
-
# the metrics will be specified using the following gauge metric:
|
58
|
-
# "serviceruntime.googleapis.com/quota/limit"
|
59
|
-
# Corresponds to the JSON property `quotaMetrics`
|
60
|
-
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
61
|
-
attr_accessor :quota_metrics
|
44
|
+
# The whole units of the amount.
|
45
|
+
# For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
46
|
+
# Corresponds to the JSON property `units`
|
47
|
+
# @return [Fixnum]
|
48
|
+
attr_accessor :units
|
62
49
|
|
63
50
|
def initialize(**args)
|
64
51
|
update!(**args)
|
@@ -66,60 +53,86 @@ module Google
|
|
66
53
|
|
67
54
|
# Update properties of this object
|
68
55
|
def update!(**args)
|
69
|
-
@
|
70
|
-
@
|
71
|
-
@
|
72
|
-
@quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
|
56
|
+
@currency_code = args[:currency_code] if args.key?(:currency_code)
|
57
|
+
@nanos = args[:nanos] if args.key?(:nanos)
|
58
|
+
@units = args[:units] if args.key?(:units)
|
73
59
|
end
|
74
60
|
end
|
75
61
|
|
76
|
-
#
|
77
|
-
class
|
62
|
+
#
|
63
|
+
class EndReconciliationResponse
|
78
64
|
include Google::Apis::Core::Hashable
|
79
65
|
|
80
|
-
#
|
81
|
-
#
|
82
|
-
#
|
66
|
+
# Metric values as tracked by One Platform before the adjustment was made.
|
67
|
+
# The following metrics will be included:
|
68
|
+
# 1. Per quota metric total usage will be specified using the following gauge
|
69
|
+
# metric:
|
70
|
+
# "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
|
71
|
+
# 2. Value for each quota limit associated with the metrics will be specified
|
72
|
+
# using the following gauge metric:
|
73
|
+
# "serviceruntime.googleapis.com/quota/limit"
|
74
|
+
# 3. Delta value of the usage after the reconciliation for limits associated
|
75
|
+
# with the metrics will be specified using the following metric:
|
76
|
+
# "serviceruntime.googleapis.com/allocation/reconciliation_delta"
|
77
|
+
# The delta value is defined as:
|
78
|
+
# new_usage_from_client - existing_value_in_spanner.
|
79
|
+
# This metric is not defined in serviceruntime.yaml or in Cloud Monarch.
|
80
|
+
# This metric is meant for callers' use only. Since this metric is not
|
81
|
+
# defined in the monitoring backend, reporting on this metric will result in
|
82
|
+
# an error.
|
83
|
+
# Corresponds to the JSON property `quotaMetrics`
|
84
|
+
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
85
|
+
attr_accessor :quota_metrics
|
86
|
+
|
87
|
+
# The same operation_id value used in the EndReconciliationRequest. Used for
|
88
|
+
# logging and diagnostics purposes.
|
89
|
+
# Corresponds to the JSON property `operationId`
|
90
|
+
# @return [String]
|
91
|
+
attr_accessor :operation_id
|
92
|
+
|
93
|
+
# Indicates the decision of the reconciliation end.
|
94
|
+
# Corresponds to the JSON property `reconciliationErrors`
|
95
|
+
# @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
|
96
|
+
attr_accessor :reconciliation_errors
|
97
|
+
|
98
|
+
# ID of the actual config used to process the request.
|
83
99
|
# Corresponds to the JSON property `serviceConfigId`
|
84
100
|
# @return [String]
|
85
101
|
attr_accessor :service_config_id
|
86
102
|
|
87
|
-
# Represents information regarding a quota operation.
|
88
|
-
# Corresponds to the JSON property `releaseOperation`
|
89
|
-
# @return [Google::Apis::ServicecontrolV1::QuotaOperation]
|
90
|
-
attr_accessor :release_operation
|
91
|
-
|
92
103
|
def initialize(**args)
|
93
104
|
update!(**args)
|
94
105
|
end
|
95
106
|
|
96
107
|
# Update properties of this object
|
97
108
|
def update!(**args)
|
109
|
+
@quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
|
110
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
111
|
+
@reconciliation_errors = args[:reconciliation_errors] if args.key?(:reconciliation_errors)
|
98
112
|
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
99
|
-
@release_operation = args[:release_operation] if args.key?(:release_operation)
|
100
113
|
end
|
101
114
|
end
|
102
115
|
|
103
|
-
#
|
104
|
-
class
|
116
|
+
# Describing buckets with arbitrary user-provided width.
|
117
|
+
class ExplicitBuckets
|
105
118
|
include Google::Apis::Core::Hashable
|
106
119
|
|
107
|
-
#
|
108
|
-
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
|
113
|
-
|
114
|
-
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
|
118
|
-
|
119
|
-
#
|
120
|
-
# Corresponds to the JSON property `
|
121
|
-
# @return [
|
122
|
-
attr_accessor :
|
120
|
+
# 'bound' is a list of strictly increasing boundaries between
|
121
|
+
# buckets. Note that a list of length N-1 defines N buckets because
|
122
|
+
# of fenceposting. See comments on `bucket_options` for details.
|
123
|
+
# The i'th finite bucket covers the interval
|
124
|
+
# [bound[i-1], bound[i])
|
125
|
+
# where i ranges from 1 to bound_size() - 1. Note that there are no
|
126
|
+
# finite buckets at all if 'bound' only contains a single element; in
|
127
|
+
# that special case the single bound defines the boundary between the
|
128
|
+
# underflow and overflow buckets.
|
129
|
+
# bucket number lower bound upper bound
|
130
|
+
# i == 0 (underflow) -inf bound[i]
|
131
|
+
# 0 < i < bound_size() bound[i-1] bound[i]
|
132
|
+
# i == bound_size() (overflow) bound[i-1] +inf
|
133
|
+
# Corresponds to the JSON property `bounds`
|
134
|
+
# @return [Array<Float>]
|
135
|
+
attr_accessor :bounds
|
123
136
|
|
124
137
|
def initialize(**args)
|
125
138
|
update!(**args)
|
@@ -127,57 +140,76 @@ module Google
|
|
127
140
|
|
128
141
|
# Update properties of this object
|
129
142
|
def update!(**args)
|
130
|
-
@
|
131
|
-
@description = args[:description] if args.key?(:description)
|
132
|
-
@code = args[:code] if args.key?(:code)
|
143
|
+
@bounds = args[:bounds] if args.key?(:bounds)
|
133
144
|
end
|
134
145
|
end
|
135
146
|
|
136
|
-
#
|
137
|
-
|
147
|
+
# Distribution represents a frequency distribution of double-valued sample
|
148
|
+
# points. It contains the size of the population of sample points plus
|
149
|
+
# additional optional information:
|
150
|
+
# - the arithmetic mean of the samples
|
151
|
+
# - the minimum and maximum of the samples
|
152
|
+
# - the sum-squared-deviation of the samples, used to compute variance
|
153
|
+
# - a histogram of the values of the sample points
|
154
|
+
class Distribution
|
138
155
|
include Google::Apis::Core::Hashable
|
139
156
|
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
|
144
|
-
# The request was made by the Google API client for Python.
|
145
|
-
# + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
|
146
|
-
# The request was made by the Google Cloud SDK CLI (gcloud).
|
147
|
-
# + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`
|
148
|
-
# :
|
149
|
-
# The request was made from the `my-project` App Engine app.
|
150
|
-
# NOLINT
|
151
|
-
# Corresponds to the JSON property `callerSuppliedUserAgent`
|
152
|
-
# @return [String]
|
153
|
-
attr_accessor :caller_supplied_user_agent
|
157
|
+
# Describing buckets with exponentially growing width.
|
158
|
+
# Corresponds to the JSON property `exponentialBuckets`
|
159
|
+
# @return [Google::Apis::ServicecontrolV1::ExponentialBuckets]
|
160
|
+
attr_accessor :exponential_buckets
|
154
161
|
|
155
|
-
# The
|
156
|
-
# Corresponds to the JSON property `
|
157
|
-
# @return [
|
158
|
-
attr_accessor :
|
162
|
+
# The minimum of the population of values. Ignored if `count` is zero.
|
163
|
+
# Corresponds to the JSON property `minimum`
|
164
|
+
# @return [Float]
|
165
|
+
attr_accessor :minimum
|
159
166
|
|
160
|
-
|
161
|
-
|
162
|
-
|
167
|
+
# Describing buckets with constant width.
|
168
|
+
# Corresponds to the JSON property `linearBuckets`
|
169
|
+
# @return [Google::Apis::ServicecontrolV1::LinearBuckets]
|
170
|
+
attr_accessor :linear_buckets
|
163
171
|
|
164
|
-
#
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
end
|
172
|
+
# The arithmetic mean of the samples in the distribution. If `count` is
|
173
|
+
# zero then this field must be zero.
|
174
|
+
# Corresponds to the JSON property `mean`
|
175
|
+
# @return [Float]
|
176
|
+
attr_accessor :mean
|
170
177
|
|
171
|
-
|
172
|
-
|
173
|
-
|
178
|
+
# The total number of samples in the distribution. Must be >= 0.
|
179
|
+
# Corresponds to the JSON property `count`
|
180
|
+
# @return [Fixnum]
|
181
|
+
attr_accessor :count
|
174
182
|
|
175
|
-
#
|
176
|
-
#
|
177
|
-
#
|
178
|
-
#
|
179
|
-
#
|
180
|
-
|
183
|
+
# The number of samples in each histogram bucket. `bucket_counts` are
|
184
|
+
# optional. If present, they must sum to the `count` value.
|
185
|
+
# The buckets are defined below in `bucket_option`. There are N buckets.
|
186
|
+
# `bucket_counts[0]` is the number of samples in the underflow bucket.
|
187
|
+
# `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
|
188
|
+
# in each of the finite buckets. And `bucket_counts[N] is the number
|
189
|
+
# of samples in the overflow bucket. See the comments of `bucket_option`
|
190
|
+
# below for more details.
|
191
|
+
# Any suffix of trailing zeros may be omitted.
|
192
|
+
# Corresponds to the JSON property `bucketCounts`
|
193
|
+
# @return [Array<Fixnum>]
|
194
|
+
attr_accessor :bucket_counts
|
195
|
+
|
196
|
+
# Describing buckets with arbitrary user-provided width.
|
197
|
+
# Corresponds to the JSON property `explicitBuckets`
|
198
|
+
# @return [Google::Apis::ServicecontrolV1::ExplicitBuckets]
|
199
|
+
attr_accessor :explicit_buckets
|
200
|
+
|
201
|
+
# The maximum of the population of values. Ignored if `count` is zero.
|
202
|
+
# Corresponds to the JSON property `maximum`
|
203
|
+
# @return [Float]
|
204
|
+
attr_accessor :maximum
|
205
|
+
|
206
|
+
# The sum of squared deviations from the mean:
|
207
|
+
# Sum[i=1..count]((x_i - mean)^2)
|
208
|
+
# where each x_i is a sample values. If `count` is zero then this field
|
209
|
+
# must be zero, otherwise validation of the request fails.
|
210
|
+
# Corresponds to the JSON property `sumOfSquaredDeviation`
|
211
|
+
# @return [Float]
|
212
|
+
attr_accessor :sum_of_squared_deviation
|
181
213
|
|
182
214
|
def initialize(**args)
|
183
215
|
update!(**args)
|
@@ -185,44 +217,44 @@ module Google
|
|
185
217
|
|
186
218
|
# Update properties of this object
|
187
219
|
def update!(**args)
|
188
|
-
@
|
220
|
+
@exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
|
221
|
+
@minimum = args[:minimum] if args.key?(:minimum)
|
222
|
+
@linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
|
223
|
+
@mean = args[:mean] if args.key?(:mean)
|
224
|
+
@count = args[:count] if args.key?(:count)
|
225
|
+
@bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
|
226
|
+
@explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
|
227
|
+
@maximum = args[:maximum] if args.key?(:maximum)
|
228
|
+
@sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation)
|
189
229
|
end
|
190
230
|
end
|
191
231
|
|
192
|
-
#
|
193
|
-
class
|
232
|
+
# Describing buckets with exponentially growing width.
|
233
|
+
class ExponentialBuckets
|
194
234
|
include Google::Apis::Core::Hashable
|
195
235
|
|
196
|
-
#
|
197
|
-
#
|
198
|
-
#
|
199
|
-
|
200
|
-
|
201
|
-
#
|
202
|
-
|
203
|
-
# @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
|
204
|
-
attr_accessor :release_errors
|
236
|
+
# The i'th exponential bucket covers the interval
|
237
|
+
# [scale * growth_factor^(i-1), scale * growth_factor^i)
|
238
|
+
# where i ranges from 1 to num_finite_buckets inclusive.
|
239
|
+
# Must be > 0.
|
240
|
+
# Corresponds to the JSON property `scale`
|
241
|
+
# @return [Float]
|
242
|
+
attr_accessor :scale
|
205
243
|
|
206
|
-
#
|
207
|
-
#
|
208
|
-
#
|
209
|
-
#
|
210
|
-
#
|
211
|
-
|
212
|
-
# using the following gauge metric:
|
213
|
-
# "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
|
214
|
-
# 3. For allocation quota, value for each quota limit associated with
|
215
|
-
# the metrics will be specified using the following gauge metric:
|
216
|
-
# "serviceruntime.googleapis.com/quota/limit"
|
217
|
-
# Corresponds to the JSON property `quotaMetrics`
|
218
|
-
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
219
|
-
attr_accessor :quota_metrics
|
244
|
+
# The number of finite buckets. With the underflow and overflow buckets,
|
245
|
+
# the total number of buckets is `num_finite_buckets` + 2.
|
246
|
+
# See comments on `bucket_options` for details.
|
247
|
+
# Corresponds to the JSON property `numFiniteBuckets`
|
248
|
+
# @return [Fixnum]
|
249
|
+
attr_accessor :num_finite_buckets
|
220
250
|
|
221
|
-
# The
|
222
|
-
#
|
223
|
-
#
|
224
|
-
#
|
225
|
-
|
251
|
+
# The i'th exponential bucket covers the interval
|
252
|
+
# [scale * growth_factor^(i-1), scale * growth_factor^i)
|
253
|
+
# where i ranges from 1 to num_finite_buckets inclusive.
|
254
|
+
# Must be larger than 1.0.
|
255
|
+
# Corresponds to the JSON property `growthFactor`
|
256
|
+
# @return [Float]
|
257
|
+
attr_accessor :growth_factor
|
226
258
|
|
227
259
|
def initialize(**args)
|
228
260
|
update!(**args)
|
@@ -230,34 +262,33 @@ module Google
|
|
230
262
|
|
231
263
|
# Update properties of this object
|
232
264
|
def update!(**args)
|
233
|
-
@
|
234
|
-
@
|
235
|
-
@
|
236
|
-
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
265
|
+
@scale = args[:scale] if args.key?(:scale)
|
266
|
+
@num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
|
267
|
+
@growth_factor = args[:growth_factor] if args.key?(:growth_factor)
|
237
268
|
end
|
238
269
|
end
|
239
270
|
|
240
|
-
#
|
241
|
-
class
|
271
|
+
# Authorization information for the operation.
|
272
|
+
class AuthorizationInfo
|
242
273
|
include Google::Apis::Core::Hashable
|
243
274
|
|
244
|
-
#
|
245
|
-
#
|
246
|
-
#
|
247
|
-
#
|
248
|
-
|
249
|
-
|
275
|
+
# Whether or not authorization for `resource` and `permission`
|
276
|
+
# was granted.
|
277
|
+
# Corresponds to the JSON property `granted`
|
278
|
+
# @return [Boolean]
|
279
|
+
attr_accessor :granted
|
280
|
+
alias_method :granted?, :granted
|
250
281
|
|
251
|
-
#
|
252
|
-
# Corresponds to the JSON property `
|
253
|
-
# @return [
|
254
|
-
attr_accessor :
|
282
|
+
# The required IAM permission.
|
283
|
+
# Corresponds to the JSON property `permission`
|
284
|
+
# @return [String]
|
285
|
+
attr_accessor :permission
|
255
286
|
|
256
|
-
#
|
257
|
-
#
|
258
|
-
# Corresponds to the JSON property `
|
287
|
+
# The resource being accessed, as a REST-style string. For example:
|
288
|
+
# bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
|
289
|
+
# Corresponds to the JSON property `resource`
|
259
290
|
# @return [String]
|
260
|
-
attr_accessor :
|
291
|
+
attr_accessor :resource
|
261
292
|
|
262
293
|
def initialize(**args)
|
263
294
|
update!(**args)
|
@@ -265,27 +296,43 @@ module Google
|
|
265
296
|
|
266
297
|
# Update properties of this object
|
267
298
|
def update!(**args)
|
268
|
-
@
|
269
|
-
@
|
270
|
-
@
|
299
|
+
@granted = args[:granted] if args.key?(:granted)
|
300
|
+
@permission = args[:permission] if args.key?(:permission)
|
301
|
+
@resource = args[:resource] if args.key?(:resource)
|
271
302
|
end
|
272
303
|
end
|
273
304
|
|
274
|
-
#
|
275
|
-
|
276
|
-
# end time, and label values.
|
277
|
-
class MetricValueSet
|
305
|
+
#
|
306
|
+
class StartReconciliationResponse
|
278
307
|
include Google::Apis::Core::Hashable
|
279
308
|
|
280
|
-
# The
|
281
|
-
#
|
309
|
+
# The same operation_id value used in the StartReconciliationRequest. Used
|
310
|
+
# for logging and diagnostics purposes.
|
311
|
+
# Corresponds to the JSON property `operationId`
|
282
312
|
# @return [String]
|
283
|
-
attr_accessor :
|
313
|
+
attr_accessor :operation_id
|
284
314
|
|
285
|
-
#
|
286
|
-
# Corresponds to the JSON property `
|
287
|
-
# @return [Array<Google::Apis::ServicecontrolV1::
|
288
|
-
attr_accessor :
|
315
|
+
# Indicates the decision of the reconciliation start.
|
316
|
+
# Corresponds to the JSON property `reconciliationErrors`
|
317
|
+
# @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
|
318
|
+
attr_accessor :reconciliation_errors
|
319
|
+
|
320
|
+
# ID of the actual config used to process the request.
|
321
|
+
# Corresponds to the JSON property `serviceConfigId`
|
322
|
+
# @return [String]
|
323
|
+
attr_accessor :service_config_id
|
324
|
+
|
325
|
+
# Metric values as tracked by One Platform before the start of
|
326
|
+
# reconciliation. The following metrics will be included:
|
327
|
+
# 1. Per quota metric total usage will be specified using the following gauge
|
328
|
+
# metric:
|
329
|
+
# "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
|
330
|
+
# 2. Value for each quota limit associated with the metrics will be specified
|
331
|
+
# using the following gauge metric:
|
332
|
+
# "serviceruntime.googleapis.com/quota/limit"
|
333
|
+
# Corresponds to the JSON property `quotaMetrics`
|
334
|
+
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
335
|
+
attr_accessor :quota_metrics
|
289
336
|
|
290
337
|
def initialize(**args)
|
291
338
|
update!(**args)
|
@@ -293,62 +340,36 @@ module Google
|
|
293
340
|
|
294
341
|
# Update properties of this object
|
295
342
|
def update!(**args)
|
296
|
-
@
|
297
|
-
@
|
343
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
344
|
+
@reconciliation_errors = args[:reconciliation_errors] if args.key?(:reconciliation_errors)
|
345
|
+
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
346
|
+
@quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
|
298
347
|
end
|
299
348
|
end
|
300
349
|
|
301
|
-
# Represents the
|
302
|
-
class
|
350
|
+
# Represents the properties needed for quota operations.
|
351
|
+
class QuotaProperties
|
303
352
|
include Google::Apis::Core::Hashable
|
304
353
|
|
305
|
-
#
|
306
|
-
#
|
307
|
-
#
|
308
|
-
|
354
|
+
# LimitType IDs that should be used for checking quota. Key in this map
|
355
|
+
# should be a valid LimitType string, and the value is the ID to be used. For
|
356
|
+
# example, an entry <USER, 123> will cause all user quota limits to use 123
|
357
|
+
# as the user ID. See google/api/quota.proto for the definition of LimitType.
|
358
|
+
# CLIENT_PROJECT: Not supported.
|
359
|
+
# USER: Value of this entry will be used for enforcing user-level quota
|
360
|
+
# limits. If none specified, caller IP passed in the
|
361
|
+
# servicecontrol.googleapis.com/caller_ip label will be used instead.
|
362
|
+
# If the server cannot resolve a value for this LimitType, an error
|
363
|
+
# will be thrown. No validation will be performed on this ID.
|
364
|
+
# Deprecated: use servicecontrol.googleapis.com/user label to send user ID.
|
365
|
+
# Corresponds to the JSON property `limitByIds`
|
366
|
+
# @return [Hash<String,String>]
|
367
|
+
attr_accessor :limit_by_ids
|
309
368
|
|
310
|
-
#
|
311
|
-
#
|
312
|
-
# [
|
313
|
-
|
314
|
-
# - Flexible enough to meet unexpected needs
|
315
|
-
# # Overview
|
316
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
317
|
-
# and error details. The error code should be an enum value of
|
318
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
319
|
-
# error message should be a developer-facing English message that helps
|
320
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
321
|
-
# error message is needed, put the localized message in the error details or
|
322
|
-
# localize it in the client. The optional error details may contain arbitrary
|
323
|
-
# information about the error. There is a predefined set of error detail types
|
324
|
-
# in the package `google.rpc` that can be used for common error conditions.
|
325
|
-
# # Language mapping
|
326
|
-
# The `Status` message is the logical representation of the error model, but it
|
327
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
328
|
-
# exposed in different client libraries and different wire protocols, it can be
|
329
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
330
|
-
# in Java, but more likely mapped to some error codes in C.
|
331
|
-
# # Other uses
|
332
|
-
# The error model and the `Status` message can be used in a variety of
|
333
|
-
# environments, either with or without APIs, to provide a
|
334
|
-
# consistent developer experience across different environments.
|
335
|
-
# Example uses of this error model include:
|
336
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
337
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
338
|
-
# errors.
|
339
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
340
|
-
# have a `Status` message for error reporting.
|
341
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
342
|
-
# `Status` message should be used directly inside batch response, one for
|
343
|
-
# each error sub-response.
|
344
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
345
|
-
# results in its response, the status of those operations should be
|
346
|
-
# represented directly using the `Status` message.
|
347
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
348
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
349
|
-
# Corresponds to the JSON property `status`
|
350
|
-
# @return [Google::Apis::ServicecontrolV1::Status]
|
351
|
-
attr_accessor :status
|
369
|
+
# Quota mode for this operation.
|
370
|
+
# Corresponds to the JSON property `quotaMode`
|
371
|
+
# @return [String]
|
372
|
+
attr_accessor :quota_mode
|
352
373
|
|
353
374
|
def initialize(**args)
|
354
375
|
update!(**args)
|
@@ -356,26 +377,36 @@ module Google
|
|
356
377
|
|
357
378
|
# Update properties of this object
|
358
379
|
def update!(**args)
|
359
|
-
@
|
360
|
-
@
|
380
|
+
@limit_by_ids = args[:limit_by_ids] if args.key?(:limit_by_ids)
|
381
|
+
@quota_mode = args[:quota_mode] if args.key?(:quota_mode)
|
361
382
|
end
|
362
383
|
end
|
363
384
|
|
364
|
-
#
|
365
|
-
class
|
385
|
+
# Describing buckets with constant width.
|
386
|
+
class LinearBuckets
|
366
387
|
include Google::Apis::Core::Hashable
|
367
388
|
|
368
|
-
#
|
369
|
-
#
|
370
|
-
#
|
371
|
-
|
389
|
+
# The number of finite buckets. With the underflow and overflow buckets,
|
390
|
+
# the total number of buckets is `num_finite_buckets` + 2.
|
391
|
+
# See comments on `bucket_options` for details.
|
392
|
+
# Corresponds to the JSON property `numFiniteBuckets`
|
393
|
+
# @return [Fixnum]
|
394
|
+
attr_accessor :num_finite_buckets
|
372
395
|
|
373
|
-
#
|
374
|
-
#
|
375
|
-
#
|
376
|
-
#
|
377
|
-
#
|
378
|
-
|
396
|
+
# The i'th linear bucket covers the interval
|
397
|
+
# [offset + (i-1) * width, offset + i * width)
|
398
|
+
# where i ranges from 1 to num_finite_buckets, inclusive.
|
399
|
+
# Must be strictly positive.
|
400
|
+
# Corresponds to the JSON property `width`
|
401
|
+
# @return [Float]
|
402
|
+
attr_accessor :width
|
403
|
+
|
404
|
+
# The i'th linear bucket covers the interval
|
405
|
+
# [offset + (i-1) * width, offset + i * width)
|
406
|
+
# where i ranges from 1 to num_finite_buckets, inclusive.
|
407
|
+
# Corresponds to the JSON property `offset`
|
408
|
+
# @return [Float]
|
409
|
+
attr_accessor :offset
|
379
410
|
|
380
411
|
def initialize(**args)
|
381
412
|
update!(**args)
|
@@ -383,25 +414,26 @@ module Google
|
|
383
414
|
|
384
415
|
# Update properties of this object
|
385
416
|
def update!(**args)
|
386
|
-
@
|
387
|
-
@
|
417
|
+
@num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
|
418
|
+
@width = args[:width] if args.key?(:width)
|
419
|
+
@offset = args[:offset] if args.key?(:offset)
|
388
420
|
end
|
389
421
|
end
|
390
422
|
|
391
|
-
#
|
392
|
-
|
393
|
-
class CheckError
|
423
|
+
# Authentication information for the operation.
|
424
|
+
class AuthenticationInfo
|
394
425
|
include Google::Apis::Core::Hashable
|
395
426
|
|
396
|
-
#
|
397
|
-
# Corresponds to the JSON property `
|
427
|
+
# The email address of the authenticated user making the request.
|
428
|
+
# Corresponds to the JSON property `principalEmail`
|
398
429
|
# @return [String]
|
399
|
-
attr_accessor :
|
430
|
+
attr_accessor :principal_email
|
400
431
|
|
401
|
-
# The
|
402
|
-
#
|
432
|
+
# The authority selector specified by the requestor, if any.
|
433
|
+
# It is not guaranteed that the principal was allowed to use this authority.
|
434
|
+
# Corresponds to the JSON property `authoritySelector`
|
403
435
|
# @return [String]
|
404
|
-
attr_accessor :
|
436
|
+
attr_accessor :authority_selector
|
405
437
|
|
406
438
|
def initialize(**args)
|
407
439
|
update!(**args)
|
@@ -409,25 +441,22 @@ module Google
|
|
409
441
|
|
410
442
|
# Update properties of this object
|
411
443
|
def update!(**args)
|
412
|
-
@
|
413
|
-
@
|
444
|
+
@principal_email = args[:principal_email] if args.key?(:principal_email)
|
445
|
+
@authority_selector = args[:authority_selector] if args.key?(:authority_selector)
|
414
446
|
end
|
415
447
|
end
|
416
448
|
|
417
|
-
#
|
418
|
-
class
|
449
|
+
# Response message for the AllocateQuota method.
|
450
|
+
class AllocateQuotaResponse
|
419
451
|
include Google::Apis::Core::Hashable
|
420
452
|
|
421
|
-
#
|
422
|
-
#
|
423
|
-
#
|
424
|
-
|
425
|
-
# Corresponds to the JSON property `quotaConsumed`
|
426
|
-
# @return [Hash<String,Fixnum>]
|
427
|
-
attr_accessor :quota_consumed
|
453
|
+
# Indicates the decision of the allocate.
|
454
|
+
# Corresponds to the JSON property `allocateErrors`
|
455
|
+
# @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
|
456
|
+
attr_accessor :allocate_errors
|
428
457
|
|
429
|
-
# Quota metrics to indicate the
|
430
|
-
# more of the following metrics will be included:
|
458
|
+
# Quota metrics to indicate the result of allocation. Depending on the
|
459
|
+
# request, one or more of the following metrics will be included:
|
431
460
|
# 1. For rate quota, per quota group or per quota metric incremental usage
|
432
461
|
# will be specified using the following delta metric:
|
433
462
|
# "serviceruntime.googleapis.com/api/consumer/quota_used_count"
|
@@ -437,18 +466,23 @@ module Google
|
|
437
466
|
# 3. For both rate quota and allocation quota, the quota limit reached
|
438
467
|
# condition will be specified using the following boolean metric:
|
439
468
|
# "serviceruntime.googleapis.com/quota/exceeded"
|
469
|
+
# 4. For allocation quota, value for each quota limit associated with
|
470
|
+
# the metrics will be specified using the following gauge metric:
|
471
|
+
# "serviceruntime.googleapis.com/quota/limit"
|
440
472
|
# Corresponds to the JSON property `quotaMetrics`
|
441
473
|
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
442
474
|
attr_accessor :quota_metrics
|
443
475
|
|
444
|
-
#
|
445
|
-
#
|
446
|
-
#
|
447
|
-
#
|
448
|
-
|
449
|
-
|
450
|
-
#
|
451
|
-
|
476
|
+
# The same operation_id value used in the AllocateQuotaRequest. Used for
|
477
|
+
# logging and diagnostics purposes.
|
478
|
+
# Corresponds to the JSON property `operationId`
|
479
|
+
# @return [String]
|
480
|
+
attr_accessor :operation_id
|
481
|
+
|
482
|
+
# ID of the actual config used to process the request.
|
483
|
+
# Corresponds to the JSON property `serviceConfigId`
|
484
|
+
# @return [String]
|
485
|
+
attr_accessor :service_config_id
|
452
486
|
|
453
487
|
def initialize(**args)
|
454
488
|
update!(**args)
|
@@ -456,112 +490,60 @@ module Google
|
|
456
490
|
|
457
491
|
# Update properties of this object
|
458
492
|
def update!(**args)
|
459
|
-
@
|
493
|
+
@allocate_errors = args[:allocate_errors] if args.key?(:allocate_errors)
|
460
494
|
@quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
|
461
|
-
@
|
495
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
496
|
+
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
462
497
|
end
|
463
498
|
end
|
464
499
|
|
465
|
-
# Request message for the
|
466
|
-
class
|
500
|
+
# Request message for the ReleaseQuota method.
|
501
|
+
class ReleaseQuotaRequest
|
467
502
|
include Google::Apis::Core::Hashable
|
468
503
|
|
469
|
-
# Represents information regarding
|
470
|
-
# Corresponds to the JSON property `
|
471
|
-
# @return [Google::Apis::ServicecontrolV1::
|
472
|
-
attr_accessor :
|
473
|
-
|
474
|
-
# Requests the project settings to be returned as part of the check response.
|
475
|
-
# Corresponds to the JSON property `requestProjectSettings`
|
476
|
-
# @return [Boolean]
|
477
|
-
attr_accessor :request_project_settings
|
478
|
-
alias_method :request_project_settings?, :request_project_settings
|
504
|
+
# Represents information regarding a quota operation.
|
505
|
+
# Corresponds to the JSON property `releaseOperation`
|
506
|
+
# @return [Google::Apis::ServicecontrolV1::QuotaOperation]
|
507
|
+
attr_accessor :release_operation
|
479
508
|
|
480
509
|
# Specifies which version of service configuration should be used to process
|
481
|
-
# the request.
|
482
|
-
#
|
483
|
-
# latest one will be used.
|
510
|
+
# the request. If unspecified or no matching version can be found, the latest
|
511
|
+
# one will be used.
|
484
512
|
# Corresponds to the JSON property `serviceConfigId`
|
485
513
|
# @return [String]
|
486
514
|
attr_accessor :service_config_id
|
487
515
|
|
488
|
-
# Indicates if service activation check should be skipped for this request.
|
489
|
-
# Default behavior is to perform the check and apply relevant quota.
|
490
|
-
# Corresponds to the JSON property `skipActivationCheck`
|
491
|
-
# @return [Boolean]
|
492
|
-
attr_accessor :skip_activation_check
|
493
|
-
alias_method :skip_activation_check?, :skip_activation_check
|
494
|
-
|
495
516
|
def initialize(**args)
|
496
517
|
update!(**args)
|
497
518
|
end
|
498
519
|
|
499
520
|
# Update properties of this object
|
500
521
|
def update!(**args)
|
501
|
-
@
|
502
|
-
@request_project_settings = args[:request_project_settings] if args.key?(:request_project_settings)
|
522
|
+
@release_operation = args[:release_operation] if args.key?(:release_operation)
|
503
523
|
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
504
|
-
@skip_activation_check = args[:skip_activation_check] if args.key?(:skip_activation_check)
|
505
524
|
end
|
506
525
|
end
|
507
526
|
|
508
|
-
#
|
509
|
-
class
|
527
|
+
#
|
528
|
+
class QuotaError
|
510
529
|
include Google::Apis::Core::Hashable
|
511
530
|
|
512
|
-
#
|
513
|
-
#
|
514
|
-
#
|
515
|
-
#
|
516
|
-
# Within a single operation, it is not allowed to have more than one
|
517
|
-
# MetricValue instances that have the same metric names and identical
|
518
|
-
# label value combinations. If a request has such duplicated MetricValue
|
519
|
-
# instances, the entire request is rejected with
|
520
|
-
# an invalid argument error.
|
521
|
-
# Corresponds to the JSON property `quotaMetrics`
|
522
|
-
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
523
|
-
attr_accessor :quota_metrics
|
524
|
-
|
525
|
-
# Labels describing the operation.
|
526
|
-
# Corresponds to the JSON property `labels`
|
527
|
-
# @return [Hash<String,String>]
|
528
|
-
attr_accessor :labels
|
529
|
-
|
530
|
-
# Identity of the consumer for whom this quota operation is being performed.
|
531
|
-
# This can be in one of the following formats:
|
532
|
-
# project:<project_id>,
|
533
|
-
# project_number:<project_number>,
|
534
|
-
# api_key:<api_key>.
|
535
|
-
# Corresponds to the JSON property `consumerId`
|
536
|
-
# @return [String]
|
537
|
-
attr_accessor :consumer_id
|
538
|
-
|
539
|
-
# Identity of the operation. This must be unique within the scope of the
|
540
|
-
# service that generated the operation. If the service calls AllocateQuota
|
541
|
-
# and ReleaseQuota on the same operation, the two calls should carry the
|
542
|
-
# same ID.
|
543
|
-
# UUID version 4 is recommended, though not required. In scenarios where an
|
544
|
-
# operation is computed from existing information and an idempotent id is
|
545
|
-
# desirable for deduplication purpose, UUID version 5 is recommended. See
|
546
|
-
# RFC 4122 for details.
|
547
|
-
# Corresponds to the JSON property `operationId`
|
531
|
+
# Subject to whom this error applies. See the specific enum for more details
|
532
|
+
# on this field. For example, "clientip:<ip address of client>" or
|
533
|
+
# "project:<Google developer project id>".
|
534
|
+
# Corresponds to the JSON property `subject`
|
548
535
|
# @return [String]
|
549
|
-
attr_accessor :
|
536
|
+
attr_accessor :subject
|
550
537
|
|
551
|
-
#
|
552
|
-
#
|
553
|
-
# billing status rules defined in service configuration. This field is not
|
554
|
-
# required if the quota operation is performed on non-API resources.
|
555
|
-
# Example of an RPC method name:
|
556
|
-
# google.example.library.v1.LibraryService.CreateShelf
|
557
|
-
# Corresponds to the JSON property `methodName`
|
538
|
+
# Free-form text that provides details on the cause of the error.
|
539
|
+
# Corresponds to the JSON property `description`
|
558
540
|
# @return [String]
|
559
|
-
attr_accessor :
|
541
|
+
attr_accessor :description
|
560
542
|
|
561
|
-
#
|
562
|
-
# Corresponds to the JSON property `
|
543
|
+
# Error code.
|
544
|
+
# Corresponds to the JSON property `code`
|
563
545
|
# @return [String]
|
564
|
-
attr_accessor :
|
546
|
+
attr_accessor :code
|
565
547
|
|
566
548
|
def initialize(**args)
|
567
549
|
update!(**args)
|
@@ -569,30 +551,35 @@ module Google
|
|
569
551
|
|
570
552
|
# Update properties of this object
|
571
553
|
def update!(**args)
|
572
|
-
@
|
573
|
-
@
|
574
|
-
@
|
575
|
-
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
576
|
-
@method_name = args[:method_name] if args.key?(:method_name)
|
577
|
-
@quota_mode = args[:quota_mode] if args.key?(:quota_mode)
|
554
|
+
@subject = args[:subject] if args.key?(:subject)
|
555
|
+
@description = args[:description] if args.key?(:description)
|
556
|
+
@code = args[:code] if args.key?(:code)
|
578
557
|
end
|
579
558
|
end
|
580
559
|
|
581
|
-
#
|
582
|
-
class
|
560
|
+
# Metadata about the request.
|
561
|
+
class RequestMetadata
|
583
562
|
include Google::Apis::Core::Hashable
|
584
563
|
|
585
|
-
#
|
586
|
-
# Corresponds to the JSON property `
|
587
|
-
# @return [
|
588
|
-
attr_accessor :
|
564
|
+
# The IP address of the caller.
|
565
|
+
# Corresponds to the JSON property `callerIp`
|
566
|
+
# @return [String]
|
567
|
+
attr_accessor :caller_ip
|
589
568
|
|
590
|
-
#
|
591
|
-
#
|
592
|
-
#
|
593
|
-
#
|
569
|
+
# The user agent of the caller.
|
570
|
+
# This information is not authenticated and should be treated accordingly.
|
571
|
+
# For example:
|
572
|
+
# + `google-api-python-client/1.4.0`:
|
573
|
+
# The request was made by the Google API client for Python.
|
574
|
+
# + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
|
575
|
+
# The request was made by the Google Cloud SDK CLI (gcloud).
|
576
|
+
# + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`
|
577
|
+
# :
|
578
|
+
# The request was made from the `my-project` App Engine app.
|
579
|
+
# NOLINT
|
580
|
+
# Corresponds to the JSON property `callerSuppliedUserAgent`
|
594
581
|
# @return [String]
|
595
|
-
attr_accessor :
|
582
|
+
attr_accessor :caller_supplied_user_agent
|
596
583
|
|
597
584
|
def initialize(**args)
|
598
585
|
update!(**args)
|
@@ -600,24 +587,21 @@ module Google
|
|
600
587
|
|
601
588
|
# Update properties of this object
|
602
589
|
def update!(**args)
|
603
|
-
@
|
604
|
-
@
|
590
|
+
@caller_ip = args[:caller_ip] if args.key?(:caller_ip)
|
591
|
+
@caller_supplied_user_agent = args[:caller_supplied_user_agent] if args.key?(:caller_supplied_user_agent)
|
605
592
|
end
|
606
593
|
end
|
607
594
|
|
608
595
|
#
|
609
|
-
class
|
596
|
+
class CheckInfo
|
610
597
|
include Google::Apis::Core::Hashable
|
611
598
|
|
612
|
-
#
|
613
|
-
#
|
614
|
-
#
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
# Corresponds to the JSON property `quotaInfo`
|
619
|
-
# @return [Google::Apis::ServicecontrolV1::QuotaInfo]
|
620
|
-
attr_accessor :quota_info
|
599
|
+
# A list of fields and label keys that are ignored by the server.
|
600
|
+
# The client doesn't need to send them for following requests to improve
|
601
|
+
# performance and allow better aggregation.
|
602
|
+
# Corresponds to the JSON property `unusedArguments`
|
603
|
+
# @return [Array<String>]
|
604
|
+
attr_accessor :unused_arguments
|
621
605
|
|
622
606
|
def initialize(**args)
|
623
607
|
update!(**args)
|
@@ -625,116 +609,78 @@ module Google
|
|
625
609
|
|
626
610
|
# Update properties of this object
|
627
611
|
def update!(**args)
|
628
|
-
@
|
629
|
-
@quota_info = args[:quota_info] if args.key?(:quota_info)
|
612
|
+
@unused_arguments = args[:unused_arguments] if args.key?(:unused_arguments)
|
630
613
|
end
|
631
614
|
end
|
632
615
|
|
633
|
-
#
|
634
|
-
class
|
616
|
+
# Request message for the AllocateQuota method.
|
617
|
+
class AllocateQuotaRequest
|
635
618
|
include Google::Apis::Core::Hashable
|
636
619
|
|
637
|
-
#
|
638
|
-
#
|
639
|
-
#
|
640
|
-
|
620
|
+
# Specifies which version of service configuration should be used to process
|
621
|
+
# the request. If unspecified or no matching version can be found, the latest
|
622
|
+
# one will be used.
|
623
|
+
# Corresponds to the JSON property `serviceConfigId`
|
624
|
+
# @return [String]
|
625
|
+
attr_accessor :service_config_id
|
641
626
|
|
642
|
-
#
|
643
|
-
#
|
644
|
-
#
|
645
|
-
|
646
|
-
|
647
|
-
#
|
648
|
-
#
|
649
|
-
#
|
650
|
-
# Corresponds to the JSON property `consumerId`
|
627
|
+
# Represents information regarding a quota operation.
|
628
|
+
# Corresponds to the JSON property `allocateOperation`
|
629
|
+
# @return [Google::Apis::ServicecontrolV1::QuotaOperation]
|
630
|
+
attr_accessor :allocate_operation
|
631
|
+
|
632
|
+
# Allocation mode for this operation.
|
633
|
+
# Deprecated: use QuotaMode inside the QuotaOperation.
|
634
|
+
# Corresponds to the JSON property `allocationMode`
|
651
635
|
# @return [String]
|
652
|
-
attr_accessor :
|
636
|
+
attr_accessor :allocation_mode
|
653
637
|
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
# the same id.
|
658
|
-
# UUID version 4 is recommended, though not required.
|
659
|
-
# In scenarios where an operation is computed from existing information
|
660
|
-
# and an idempotent id is desirable for deduplication purpose, UUID version 5
|
661
|
-
# is recommended. See RFC 4122 for details.
|
662
|
-
# Corresponds to the JSON property `operationId`
|
663
|
-
# @return [String]
|
664
|
-
attr_accessor :operation_id
|
638
|
+
def initialize(**args)
|
639
|
+
update!(**args)
|
640
|
+
end
|
665
641
|
|
666
|
-
#
|
667
|
-
|
668
|
-
|
669
|
-
|
642
|
+
# Update properties of this object
|
643
|
+
def update!(**args)
|
644
|
+
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
645
|
+
@allocate_operation = args[:allocate_operation] if args.key?(:allocate_operation)
|
646
|
+
@allocation_mode = args[:allocation_mode] if args.key?(:allocation_mode)
|
647
|
+
end
|
648
|
+
end
|
670
649
|
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
# Corresponds to the JSON property `endTime`
|
675
|
-
# @return [String]
|
676
|
-
attr_accessor :end_time
|
650
|
+
# Response message for the ReleaseQuota method.
|
651
|
+
class ReleaseQuotaResponse
|
652
|
+
include Google::Apis::Core::Hashable
|
677
653
|
|
678
|
-
#
|
679
|
-
# Corresponds to the JSON property `
|
680
|
-
# @return [
|
681
|
-
attr_accessor :
|
654
|
+
# Indicates the decision of the release.
|
655
|
+
# Corresponds to the JSON property `releaseErrors`
|
656
|
+
# @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
|
657
|
+
attr_accessor :release_errors
|
682
658
|
|
683
|
-
#
|
684
|
-
#
|
685
|
-
#
|
686
|
-
|
659
|
+
# Quota metrics to indicate the result of release. Depending on the
|
660
|
+
# request, one or more of the following metrics will be included:
|
661
|
+
# 1. For rate quota, per quota group or per quota metric released amount
|
662
|
+
# will be specified using the following delta metric:
|
663
|
+
# "serviceruntime.googleapis.com/api/consumer/quota_refund_count"
|
664
|
+
# 2. For allocation quota, per quota metric total usage will be specified
|
665
|
+
# using the following gauge metric:
|
666
|
+
# "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
|
667
|
+
# 3. For allocation quota, value for each quota limit associated with
|
668
|
+
# the metrics will be specified using the following gauge metric:
|
669
|
+
# "serviceruntime.googleapis.com/quota/limit"
|
670
|
+
# Corresponds to the JSON property `quotaMetrics`
|
671
|
+
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
672
|
+
attr_accessor :quota_metrics
|
687
673
|
|
688
|
-
# The
|
689
|
-
#
|
690
|
-
#
|
691
|
-
# - “folders/<folder-id>”
|
692
|
-
# - “organizations/<organization-id>”
|
693
|
-
# Corresponds to the JSON property `resourceContainer`
|
674
|
+
# The same operation_id value used in the ReleaseQuotaRequest. Used for
|
675
|
+
# logging and diagnostics purposes.
|
676
|
+
# Corresponds to the JSON property `operationId`
|
694
677
|
# @return [String]
|
695
|
-
attr_accessor :
|
696
|
-
|
697
|
-
# Labels describing the operation. Only the following labels are allowed:
|
698
|
-
# - Labels describing monitored resources as defined in
|
699
|
-
# the service configuration.
|
700
|
-
# - Default labels of metric values. When specified, labels defined in the
|
701
|
-
# metric value override these default.
|
702
|
-
# - The following labels defined by Google Cloud Platform:
|
703
|
-
# - `cloud.googleapis.com/location` describing the location where the
|
704
|
-
# operation happened,
|
705
|
-
# - `servicecontrol.googleapis.com/user_agent` describing the user agent
|
706
|
-
# of the API request,
|
707
|
-
# - `servicecontrol.googleapis.com/service_agent` describing the service
|
708
|
-
# used to handle the API request (e.g. ESP),
|
709
|
-
# - `servicecontrol.googleapis.com/platform` describing the platform
|
710
|
-
# where the API is served (e.g. GAE, GCE, GKE).
|
711
|
-
# Corresponds to the JSON property `labels`
|
712
|
-
# @return [Hash<String,String>]
|
713
|
-
attr_accessor :labels
|
714
|
-
|
715
|
-
# Represents information to be logged.
|
716
|
-
# Corresponds to the JSON property `logEntries`
|
717
|
-
# @return [Array<Google::Apis::ServicecontrolV1::LogEntry>]
|
718
|
-
attr_accessor :log_entries
|
719
|
-
|
720
|
-
# User defined labels for the resource that this operation is associated
|
721
|
-
# with.
|
722
|
-
# Corresponds to the JSON property `userLabels`
|
723
|
-
# @return [Hash<String,String>]
|
724
|
-
attr_accessor :user_labels
|
678
|
+
attr_accessor :operation_id
|
725
679
|
|
726
|
-
#
|
727
|
-
#
|
728
|
-
#
|
729
|
-
|
730
|
-
# Within a single operation, it is not allowed to have more than one
|
731
|
-
# MetricValue instances that have the same metric names and identical
|
732
|
-
# label value combinations. If a request has such duplicated MetricValue
|
733
|
-
# instances, the entire request is rejected with
|
734
|
-
# an invalid argument error.
|
735
|
-
# Corresponds to the JSON property `metricValueSets`
|
736
|
-
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
737
|
-
attr_accessor :metric_value_sets
|
680
|
+
# ID of the actual config used to process the request.
|
681
|
+
# Corresponds to the JSON property `serviceConfigId`
|
682
|
+
# @return [String]
|
683
|
+
attr_accessor :service_config_id
|
738
684
|
|
739
685
|
def initialize(**args)
|
740
686
|
update!(**args)
|
@@ -742,56 +688,28 @@ module Google
|
|
742
688
|
|
743
689
|
# Update properties of this object
|
744
690
|
def update!(**args)
|
745
|
-
@
|
746
|
-
@
|
691
|
+
@release_errors = args[:release_errors] if args.key?(:release_errors)
|
692
|
+
@quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
|
747
693
|
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
748
|
-
@
|
749
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
750
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
751
|
-
@importance = args[:importance] if args.key?(:importance)
|
752
|
-
@resource_container = args[:resource_container] if args.key?(:resource_container)
|
753
|
-
@labels = args[:labels] if args.key?(:labels)
|
754
|
-
@log_entries = args[:log_entries] if args.key?(:log_entries)
|
755
|
-
@user_labels = args[:user_labels] if args.key?(:user_labels)
|
756
|
-
@metric_value_sets = args[:metric_value_sets] if args.key?(:metric_value_sets)
|
694
|
+
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
757
695
|
end
|
758
696
|
end
|
759
697
|
|
760
|
-
#
|
761
|
-
|
698
|
+
# Represents a set of metric values in the same metric.
|
699
|
+
# Each metric value in the set should have a unique combination of start time,
|
700
|
+
# end time, and label values.
|
701
|
+
class MetricValueSet
|
762
702
|
include Google::Apis::Core::Hashable
|
763
703
|
|
764
|
-
#
|
765
|
-
#
|
766
|
-
# 1. The combination of a successful RPC status and an empty `report_errors`
|
767
|
-
# list indicates a complete success where all `Operations` in the
|
768
|
-
# request are processed successfully.
|
769
|
-
# 2. The combination of a successful RPC status and a non-empty
|
770
|
-
# `report_errors` list indicates a partial success where some
|
771
|
-
# `Operations` in the request succeeded. Each
|
772
|
-
# `Operation` that failed processing has a corresponding item
|
773
|
-
# in this list.
|
774
|
-
# 3. A failed RPC status indicates a general non-deterministic failure.
|
775
|
-
# When this happens, it's impossible to know which of the
|
776
|
-
# 'Operations' in the request succeeded or failed.
|
777
|
-
# Corresponds to the JSON property `reportErrors`
|
778
|
-
# @return [Array<Google::Apis::ServicecontrolV1::ReportError>]
|
779
|
-
attr_accessor :report_errors
|
780
|
-
|
781
|
-
# Quota usage for each quota release `Operation` request.
|
782
|
-
# Fully or partially failed quota release request may or may not be present
|
783
|
-
# in `report_quota_info`. For example, a failed quota release request will
|
784
|
-
# have the current quota usage info when precise quota library returns the
|
785
|
-
# info. A deadline exceeded quota request will not have quota usage info.
|
786
|
-
# If there is no quota release request, report_quota_info will be empty.
|
787
|
-
# Corresponds to the JSON property `reportInfos`
|
788
|
-
# @return [Array<Google::Apis::ServicecontrolV1::ReportInfo>]
|
789
|
-
attr_accessor :report_infos
|
790
|
-
|
791
|
-
# The actual config id used to process the request.
|
792
|
-
# Corresponds to the JSON property `serviceConfigId`
|
704
|
+
# The metric name defined in the service configuration.
|
705
|
+
# Corresponds to the JSON property `metricName`
|
793
706
|
# @return [String]
|
794
|
-
attr_accessor :
|
707
|
+
attr_accessor :metric_name
|
708
|
+
|
709
|
+
# The values in this metric.
|
710
|
+
# Corresponds to the JSON property `metricValues`
|
711
|
+
# @return [Array<Google::Apis::ServicecontrolV1::MetricValue>]
|
712
|
+
attr_accessor :metric_values
|
795
713
|
|
796
714
|
def initialize(**args)
|
797
715
|
update!(**args)
|
@@ -799,151 +717,112 @@ module Google
|
|
799
717
|
|
800
718
|
# Update properties of this object
|
801
719
|
def update!(**args)
|
802
|
-
@
|
803
|
-
@
|
804
|
-
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
720
|
+
@metric_name = args[:metric_name] if args.key?(:metric_name)
|
721
|
+
@metric_values = args[:metric_values] if args.key?(:metric_values)
|
805
722
|
end
|
806
723
|
end
|
807
724
|
|
808
|
-
#
|
809
|
-
class
|
725
|
+
# Represents the processing error of one `Operation` in the request.
|
726
|
+
class ReportError
|
810
727
|
include Google::Apis::Core::Hashable
|
811
728
|
|
812
|
-
# The
|
813
|
-
#
|
729
|
+
# The `Status` type defines a logical error model that is suitable for different
|
730
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
731
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
732
|
+
# - Simple to use and understand for most users
|
733
|
+
# - Flexible enough to meet unexpected needs
|
734
|
+
# # Overview
|
735
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
736
|
+
# and error details. The error code should be an enum value of
|
737
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
738
|
+
# error message should be a developer-facing English message that helps
|
739
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
740
|
+
# error message is needed, put the localized message in the error details or
|
741
|
+
# localize it in the client. The optional error details may contain arbitrary
|
742
|
+
# information about the error. There is a predefined set of error detail types
|
743
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
744
|
+
# # Language mapping
|
745
|
+
# The `Status` message is the logical representation of the error model, but it
|
746
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
747
|
+
# exposed in different client libraries and different wire protocols, it can be
|
748
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
749
|
+
# in Java, but more likely mapped to some error codes in C.
|
750
|
+
# # Other uses
|
751
|
+
# The error model and the `Status` message can be used in a variety of
|
752
|
+
# environments, either with or without APIs, to provide a
|
753
|
+
# consistent developer experience across different environments.
|
754
|
+
# Example uses of this error model include:
|
755
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
756
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
757
|
+
# errors.
|
758
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
759
|
+
# have a `Status` message for error reporting.
|
760
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
761
|
+
# `Status` message should be used directly inside batch response, one for
|
762
|
+
# each error sub-response.
|
763
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
764
|
+
# results in its response, the status of those operations should be
|
765
|
+
# represented directly using the `Status` message.
|
766
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
767
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
768
|
+
# Corresponds to the JSON property `status`
|
769
|
+
# @return [Google::Apis::ServicecontrolV1::Status]
|
770
|
+
attr_accessor :status
|
771
|
+
|
772
|
+
# The Operation.operation_id value from the request.
|
814
773
|
# Corresponds to the JSON property `operationId`
|
815
774
|
# @return [String]
|
816
775
|
attr_accessor :operation_id
|
817
776
|
|
818
|
-
# Indicate the decision of the check.
|
819
|
-
# If no check errors are present, the service should process the operation.
|
820
|
-
# Otherwise the service should use the list of errors to determine the
|
821
|
-
# appropriate action.
|
822
|
-
# Corresponds to the JSON property `checkErrors`
|
823
|
-
# @return [Array<Google::Apis::ServicecontrolV1::CheckError>]
|
824
|
-
attr_accessor :check_errors
|
825
|
-
|
826
|
-
# Feedback data returned from the server during processing a Check request.
|
827
|
-
# Corresponds to the JSON property `checkInfo`
|
828
|
-
# @return [Google::Apis::ServicecontrolV1::CheckInfo]
|
829
|
-
attr_accessor :check_info
|
830
|
-
|
831
|
-
# Contains the quota information for a quota check response.
|
832
|
-
# Corresponds to the JSON property `quotaInfo`
|
833
|
-
# @return [Google::Apis::ServicecontrolV1::QuotaInfo]
|
834
|
-
attr_accessor :quota_info
|
835
|
-
|
836
|
-
# The actual config id used to process the request.
|
837
|
-
# Corresponds to the JSON property `serviceConfigId`
|
838
|
-
# @return [String]
|
839
|
-
attr_accessor :service_config_id
|
840
|
-
|
841
777
|
def initialize(**args)
|
842
778
|
update!(**args)
|
843
779
|
end
|
844
780
|
|
845
781
|
# Update properties of this object
|
846
782
|
def update!(**args)
|
783
|
+
@status = args[:status] if args.key?(:status)
|
847
784
|
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
848
|
-
@check_errors = args[:check_errors] if args.key?(:check_errors)
|
849
|
-
@check_info = args[:check_info] if args.key?(:check_info)
|
850
|
-
@quota_info = args[:quota_info] if args.key?(:quota_info)
|
851
|
-
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
852
785
|
end
|
853
786
|
end
|
854
787
|
|
855
|
-
#
|
856
|
-
#
|
857
|
-
|
858
|
-
# - Simple to use and understand for most users
|
859
|
-
# - Flexible enough to meet unexpected needs
|
860
|
-
# # Overview
|
861
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
862
|
-
# and error details. The error code should be an enum value of
|
863
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
864
|
-
# error message should be a developer-facing English message that helps
|
865
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
866
|
-
# error message is needed, put the localized message in the error details or
|
867
|
-
# localize it in the client. The optional error details may contain arbitrary
|
868
|
-
# information about the error. There is a predefined set of error detail types
|
869
|
-
# in the package `google.rpc` that can be used for common error conditions.
|
870
|
-
# # Language mapping
|
871
|
-
# The `Status` message is the logical representation of the error model, but it
|
872
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
873
|
-
# exposed in different client libraries and different wire protocols, it can be
|
874
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
875
|
-
# in Java, but more likely mapped to some error codes in C.
|
876
|
-
# # Other uses
|
877
|
-
# The error model and the `Status` message can be used in a variety of
|
878
|
-
# environments, either with or without APIs, to provide a
|
879
|
-
# consistent developer experience across different environments.
|
880
|
-
# Example uses of this error model include:
|
881
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
882
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
883
|
-
# errors.
|
884
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
885
|
-
# have a `Status` message for error reporting.
|
886
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
887
|
-
# `Status` message should be used directly inside batch response, one for
|
888
|
-
# each error sub-response.
|
889
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
890
|
-
# results in its response, the status of those operations should be
|
891
|
-
# represented directly using the `Status` message.
|
892
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
893
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
894
|
-
class Status
|
788
|
+
# Defines the errors to be returned in
|
789
|
+
# google.api.servicecontrol.v1.CheckResponse.check_errors.
|
790
|
+
class CheckError
|
895
791
|
include Google::Apis::Core::Hashable
|
896
792
|
|
897
|
-
#
|
898
|
-
# user-facing error message should be localized and sent in the
|
899
|
-
# google.rpc.Status.details field, or localized by the client.
|
900
|
-
# Corresponds to the JSON property `message`
|
901
|
-
# @return [String]
|
902
|
-
attr_accessor :message
|
903
|
-
|
904
|
-
# A list of messages that carry the error details. There will be a
|
905
|
-
# common set of message types for APIs to use.
|
906
|
-
# Corresponds to the JSON property `details`
|
907
|
-
# @return [Array<Hash<String,Object>>]
|
908
|
-
attr_accessor :details
|
909
|
-
|
910
|
-
# The status code, which should be an enum value of google.rpc.Code.
|
793
|
+
# The error code.
|
911
794
|
# Corresponds to the JSON property `code`
|
912
|
-
# @return [
|
795
|
+
# @return [String]
|
913
796
|
attr_accessor :code
|
914
797
|
|
798
|
+
# Free-form text providing details on the error cause of the error.
|
799
|
+
# Corresponds to the JSON property `detail`
|
800
|
+
# @return [String]
|
801
|
+
attr_accessor :detail
|
802
|
+
|
915
803
|
def initialize(**args)
|
916
804
|
update!(**args)
|
917
805
|
end
|
918
806
|
|
919
807
|
# Update properties of this object
|
920
808
|
def update!(**args)
|
921
|
-
@message = args[:message] if args.key?(:message)
|
922
|
-
@details = args[:details] if args.key?(:details)
|
923
809
|
@code = args[:code] if args.key?(:code)
|
810
|
+
@detail = args[:detail] if args.key?(:detail)
|
924
811
|
end
|
925
812
|
end
|
926
813
|
|
927
|
-
#
|
928
|
-
class
|
814
|
+
#
|
815
|
+
class StartReconciliationRequest
|
929
816
|
include Google::Apis::Core::Hashable
|
930
817
|
|
931
|
-
#
|
932
|
-
#
|
933
|
-
#
|
934
|
-
|
935
|
-
# of the report.
|
936
|
-
# If multiple operations are in a single request, the total request size
|
937
|
-
# should be no larger than 1MB. See ReportResponse.report_errors for
|
938
|
-
# partial failure behavior.
|
939
|
-
# Corresponds to the JSON property `operations`
|
940
|
-
# @return [Array<Google::Apis::ServicecontrolV1::Operation>]
|
941
|
-
attr_accessor :operations
|
818
|
+
# Represents information regarding a quota operation.
|
819
|
+
# Corresponds to the JSON property `reconciliationOperation`
|
820
|
+
# @return [Google::Apis::ServicecontrolV1::QuotaOperation]
|
821
|
+
attr_accessor :reconciliation_operation
|
942
822
|
|
943
|
-
# Specifies which version of service
|
944
|
-
# request.
|
945
|
-
#
|
946
|
-
# latest one will be used.
|
823
|
+
# Specifies which version of service configuration should be used to process
|
824
|
+
# the request. If unspecified or no matching version can be found, the latest
|
825
|
+
# one will be used.
|
947
826
|
# Corresponds to the JSON property `serviceConfigId`
|
948
827
|
# @return [String]
|
949
828
|
attr_accessor :service_config_id
|
@@ -954,130 +833,46 @@ module Google
|
|
954
833
|
|
955
834
|
# Update properties of this object
|
956
835
|
def update!(**args)
|
957
|
-
@
|
836
|
+
@reconciliation_operation = args[:reconciliation_operation] if args.key?(:reconciliation_operation)
|
958
837
|
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
959
838
|
end
|
960
839
|
end
|
961
840
|
|
962
|
-
#
|
963
|
-
class
|
841
|
+
# Contains the quota information for a quota check response.
|
842
|
+
class QuotaInfo
|
964
843
|
include Google::Apis::Core::Hashable
|
965
844
|
|
966
|
-
#
|
967
|
-
#
|
968
|
-
#
|
969
|
-
#
|
970
|
-
|
971
|
-
|
972
|
-
#
|
973
|
-
|
974
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
975
|
-
# - Simple to use and understand for most users
|
976
|
-
# - Flexible enough to meet unexpected needs
|
977
|
-
# # Overview
|
978
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
979
|
-
# and error details. The error code should be an enum value of
|
980
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
981
|
-
# error message should be a developer-facing English message that helps
|
982
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
983
|
-
# error message is needed, put the localized message in the error details or
|
984
|
-
# localize it in the client. The optional error details may contain arbitrary
|
985
|
-
# information about the error. There is a predefined set of error detail types
|
986
|
-
# in the package `google.rpc` that can be used for common error conditions.
|
987
|
-
# # Language mapping
|
988
|
-
# The `Status` message is the logical representation of the error model, but it
|
989
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
990
|
-
# exposed in different client libraries and different wire protocols, it can be
|
991
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
992
|
-
# in Java, but more likely mapped to some error codes in C.
|
993
|
-
# # Other uses
|
994
|
-
# The error model and the `Status` message can be used in a variety of
|
995
|
-
# environments, either with or without APIs, to provide a
|
996
|
-
# consistent developer experience across different environments.
|
997
|
-
# Example uses of this error model include:
|
998
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
999
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
1000
|
-
# errors.
|
1001
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
1002
|
-
# have a `Status` message for error reporting.
|
1003
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
1004
|
-
# `Status` message should be used directly inside batch response, one for
|
1005
|
-
# each error sub-response.
|
1006
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
1007
|
-
# results in its response, the status of those operations should be
|
1008
|
-
# represented directly using the `Status` message.
|
1009
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
1010
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
1011
|
-
# Corresponds to the JSON property `status`
|
1012
|
-
# @return [Google::Apis::ServicecontrolV1::Status]
|
1013
|
-
attr_accessor :status
|
1014
|
-
|
1015
|
-
# Authentication information for the operation.
|
1016
|
-
# Corresponds to the JSON property `authenticationInfo`
|
1017
|
-
# @return [Google::Apis::ServicecontrolV1::AuthenticationInfo]
|
1018
|
-
attr_accessor :authentication_info
|
1019
|
-
|
1020
|
-
# The operation response. This may not include all response elements,
|
1021
|
-
# such as those that are too large, privacy-sensitive, or duplicated
|
1022
|
-
# elsewhere in the log record.
|
1023
|
-
# It should never include user-generated data, such as file contents.
|
1024
|
-
# When the JSON object represented here has a proto equivalent, the proto
|
1025
|
-
# name will be indicated in the `@type` property.
|
1026
|
-
# Corresponds to the JSON property `response`
|
1027
|
-
# @return [Hash<String,Object>]
|
1028
|
-
attr_accessor :response
|
1029
|
-
|
1030
|
-
# The name of the API service performing the operation. For example,
|
1031
|
-
# `"datastore.googleapis.com"`.
|
1032
|
-
# Corresponds to the JSON property `serviceName`
|
1033
|
-
# @return [String]
|
1034
|
-
attr_accessor :service_name
|
1035
|
-
|
1036
|
-
# The name of the service method or operation.
|
1037
|
-
# For API calls, this should be the name of the API method.
|
1038
|
-
# For example,
|
1039
|
-
# "google.datastore.v1.Datastore.RunQuery"
|
1040
|
-
# "google.logging.v1.LoggingService.DeleteLog"
|
1041
|
-
# Corresponds to the JSON property `methodName`
|
1042
|
-
# @return [String]
|
1043
|
-
attr_accessor :method_name
|
1044
|
-
|
1045
|
-
# Authorization information. If there are multiple
|
1046
|
-
# resources or permissions involved, then there is
|
1047
|
-
# one AuthorizationInfo element for each `resource, permission` tuple.
|
1048
|
-
# Corresponds to the JSON property `authorizationInfo`
|
1049
|
-
# @return [Array<Google::Apis::ServicecontrolV1::AuthorizationInfo>]
|
1050
|
-
attr_accessor :authorization_info
|
1051
|
-
|
1052
|
-
# The resource or collection that is the target of the operation.
|
1053
|
-
# The name is a scheme-less URI, not including the API service name.
|
1054
|
-
# For example:
|
1055
|
-
# "shelves/SHELF_ID/books"
|
1056
|
-
# "shelves/SHELF_ID/books/BOOK_ID"
|
1057
|
-
# Corresponds to the JSON property `resourceName`
|
1058
|
-
# @return [String]
|
1059
|
-
attr_accessor :resource_name
|
1060
|
-
|
1061
|
-
# The operation request. This may not include all request parameters,
|
1062
|
-
# such as those that are too large, privacy-sensitive, or duplicated
|
1063
|
-
# elsewhere in the log record.
|
1064
|
-
# It should never include user-generated data, such as file contents.
|
1065
|
-
# When the JSON object represented here has a proto equivalent, the proto
|
1066
|
-
# name will be indicated in the `@type` property.
|
1067
|
-
# Corresponds to the JSON property `request`
|
1068
|
-
# @return [Hash<String,Object>]
|
1069
|
-
attr_accessor :request
|
845
|
+
# Quota Metrics that have exceeded quota limits.
|
846
|
+
# For QuotaGroup-based quota, this is QuotaGroup.name
|
847
|
+
# For QuotaLimit-based quota, this is QuotaLimit.name
|
848
|
+
# See: google.api.Quota
|
849
|
+
# Deprecated: Use quota_metrics to get per quota group limit exceeded status.
|
850
|
+
# Corresponds to the JSON property `limitExceeded`
|
851
|
+
# @return [Array<String>]
|
852
|
+
attr_accessor :limit_exceeded
|
1070
853
|
|
1071
|
-
#
|
1072
|
-
#
|
1073
|
-
#
|
1074
|
-
|
854
|
+
# Map of quota group name to the actual number of tokens consumed. If the
|
855
|
+
# quota check was not successful, then this will not be populated due to no
|
856
|
+
# quota consumption.
|
857
|
+
# Deprecated: Use quota_metrics to get per quota group usage.
|
858
|
+
# Corresponds to the JSON property `quotaConsumed`
|
859
|
+
# @return [Hash<String,Fixnum>]
|
860
|
+
attr_accessor :quota_consumed
|
1075
861
|
|
1076
|
-
#
|
1077
|
-
#
|
1078
|
-
#
|
1079
|
-
#
|
1080
|
-
|
862
|
+
# Quota metrics to indicate the usage. Depending on the check request, one or
|
863
|
+
# more of the following metrics will be included:
|
864
|
+
# 1. For rate quota, per quota group or per quota metric incremental usage
|
865
|
+
# will be specified using the following delta metric:
|
866
|
+
# "serviceruntime.googleapis.com/api/consumer/quota_used_count"
|
867
|
+
# 2. For allocation quota, per quota metric total usage will be specified
|
868
|
+
# using the following gauge metric:
|
869
|
+
# "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
|
870
|
+
# 3. For both rate quota and allocation quota, the quota limit reached
|
871
|
+
# condition will be specified using the following boolean metric:
|
872
|
+
# "serviceruntime.googleapis.com/quota/exceeded"
|
873
|
+
# Corresponds to the JSON property `quotaMetrics`
|
874
|
+
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
875
|
+
attr_accessor :quota_metrics
|
1081
876
|
|
1082
877
|
def initialize(**args)
|
1083
878
|
update!(**args)
|
@@ -1085,71 +880,41 @@ module Google
|
|
1085
880
|
|
1086
881
|
# Update properties of this object
|
1087
882
|
def update!(**args)
|
1088
|
-
@
|
1089
|
-
@
|
1090
|
-
@
|
1091
|
-
@response = args[:response] if args.key?(:response)
|
1092
|
-
@service_name = args[:service_name] if args.key?(:service_name)
|
1093
|
-
@method_name = args[:method_name] if args.key?(:method_name)
|
1094
|
-
@authorization_info = args[:authorization_info] if args.key?(:authorization_info)
|
1095
|
-
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
1096
|
-
@request = args[:request] if args.key?(:request)
|
1097
|
-
@request_metadata = args[:request_metadata] if args.key?(:request_metadata)
|
1098
|
-
@service_data = args[:service_data] if args.key?(:service_data)
|
883
|
+
@limit_exceeded = args[:limit_exceeded] if args.key?(:limit_exceeded)
|
884
|
+
@quota_consumed = args[:quota_consumed] if args.key?(:quota_consumed)
|
885
|
+
@quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
|
1099
886
|
end
|
1100
887
|
end
|
1101
888
|
|
1102
|
-
#
|
1103
|
-
class
|
889
|
+
# Request message for the Check method.
|
890
|
+
class CheckRequest
|
1104
891
|
include Google::Apis::Core::Hashable
|
1105
892
|
|
1106
|
-
#
|
1107
|
-
#
|
1108
|
-
# Corresponds to the JSON property `
|
1109
|
-
# @return [
|
1110
|
-
attr_accessor :
|
1111
|
-
|
1112
|
-
# A set of user-defined (key, value) data that provides additional
|
1113
|
-
# information about the log entry.
|
1114
|
-
# Corresponds to the JSON property `labels`
|
1115
|
-
# @return [Hash<String,String>]
|
1116
|
-
attr_accessor :labels
|
1117
|
-
|
1118
|
-
# The severity of the log entry. The default value is
|
1119
|
-
# `LogSeverity.DEFAULT`.
|
1120
|
-
# Corresponds to the JSON property `severity`
|
1121
|
-
# @return [String]
|
1122
|
-
attr_accessor :severity
|
1123
|
-
|
1124
|
-
# A unique ID for the log entry used for deduplication. If omitted,
|
1125
|
-
# the implementation will generate one based on operation_id.
|
1126
|
-
# Corresponds to the JSON property `insertId`
|
1127
|
-
# @return [String]
|
1128
|
-
attr_accessor :insert_id
|
893
|
+
# Indicates if service activation check should be skipped for this request.
|
894
|
+
# Default behavior is to perform the check and apply relevant quota.
|
895
|
+
# Corresponds to the JSON property `skipActivationCheck`
|
896
|
+
# @return [Boolean]
|
897
|
+
attr_accessor :skip_activation_check
|
898
|
+
alias_method :skip_activation_check?, :skip_activation_check
|
1129
899
|
|
1130
|
-
#
|
1131
|
-
# `
|
1132
|
-
#
|
1133
|
-
|
1134
|
-
attr_accessor :name
|
900
|
+
# Represents information regarding an operation.
|
901
|
+
# Corresponds to the JSON property `operation`
|
902
|
+
# @return [Google::Apis::ServicecontrolV1::Operation]
|
903
|
+
attr_accessor :operation
|
1135
904
|
|
1136
|
-
#
|
1137
|
-
#
|
1138
|
-
#
|
1139
|
-
|
1140
|
-
|
905
|
+
# Requests the project settings to be returned as part of the check response.
|
906
|
+
# Corresponds to the JSON property `requestProjectSettings`
|
907
|
+
# @return [Boolean]
|
908
|
+
attr_accessor :request_project_settings
|
909
|
+
alias_method :request_project_settings?, :request_project_settings
|
1141
910
|
|
1142
|
-
#
|
1143
|
-
#
|
911
|
+
# Specifies which version of service configuration should be used to process
|
912
|
+
# the request.
|
913
|
+
# If unspecified or no matching version can be found, the
|
914
|
+
# latest one will be used.
|
915
|
+
# Corresponds to the JSON property `serviceConfigId`
|
1144
916
|
# @return [String]
|
1145
|
-
attr_accessor :
|
1146
|
-
|
1147
|
-
# The log entry payload, represented as a protocol buffer that is
|
1148
|
-
# expressed as a JSON object. You can only pass `protoPayload`
|
1149
|
-
# values that belong to a set of approved types.
|
1150
|
-
# Corresponds to the JSON property `protoPayload`
|
1151
|
-
# @return [Hash<String,Object>]
|
1152
|
-
attr_accessor :proto_payload
|
917
|
+
attr_accessor :service_config_id
|
1153
918
|
|
1154
919
|
def initialize(**args)
|
1155
920
|
update!(**args)
|
@@ -1157,78 +922,70 @@ module Google
|
|
1157
922
|
|
1158
923
|
# Update properties of this object
|
1159
924
|
def update!(**args)
|
1160
|
-
@
|
1161
|
-
@
|
1162
|
-
@
|
1163
|
-
@
|
1164
|
-
@name = args[:name] if args.key?(:name)
|
1165
|
-
@struct_payload = args[:struct_payload] if args.key?(:struct_payload)
|
1166
|
-
@text_payload = args[:text_payload] if args.key?(:text_payload)
|
1167
|
-
@proto_payload = args[:proto_payload] if args.key?(:proto_payload)
|
925
|
+
@skip_activation_check = args[:skip_activation_check] if args.key?(:skip_activation_check)
|
926
|
+
@operation = args[:operation] if args.key?(:operation)
|
927
|
+
@request_project_settings = args[:request_project_settings] if args.key?(:request_project_settings)
|
928
|
+
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
1168
929
|
end
|
1169
930
|
end
|
1170
931
|
|
1171
|
-
# Represents a
|
1172
|
-
class
|
932
|
+
# Represents information regarding a quota operation.
|
933
|
+
class QuotaOperation
|
1173
934
|
include Google::Apis::Core::Hashable
|
1174
935
|
|
1175
|
-
#
|
1176
|
-
# Corresponds to the JSON property `
|
1177
|
-
# @return [Boolean]
|
1178
|
-
attr_accessor :bool_value
|
1179
|
-
alias_method :bool_value?, :bool_value
|
1180
|
-
|
1181
|
-
# The end of the time period over which this metric value's measurement
|
1182
|
-
# applies.
|
1183
|
-
# Corresponds to the JSON property `endTime`
|
936
|
+
# Quota mode for this operation.
|
937
|
+
# Corresponds to the JSON property `quotaMode`
|
1184
938
|
# @return [String]
|
1185
|
-
attr_accessor :
|
939
|
+
attr_accessor :quota_mode
|
1186
940
|
|
1187
|
-
#
|
1188
|
-
#
|
1189
|
-
#
|
1190
|
-
#
|
1191
|
-
#
|
941
|
+
# Fully qualified name of the API method for which this quota operation is
|
942
|
+
# requested. This name is used for matching quota rules or metric rules and
|
943
|
+
# billing status rules defined in service configuration. This field is not
|
944
|
+
# required if the quota operation is performed on non-API resources.
|
945
|
+
# Example of an RPC method name:
|
946
|
+
# google.example.library.v1.LibraryService.CreateShelf
|
947
|
+
# Corresponds to the JSON property `methodName`
|
1192
948
|
# @return [String]
|
1193
|
-
attr_accessor :
|
1194
|
-
|
1195
|
-
# Represents an amount of money with its currency type.
|
1196
|
-
# Corresponds to the JSON property `moneyValue`
|
1197
|
-
# @return [Google::Apis::ServicecontrolV1::Money]
|
1198
|
-
attr_accessor :money_value
|
949
|
+
attr_accessor :method_name
|
1199
950
|
|
1200
|
-
#
|
1201
|
-
#
|
1202
|
-
#
|
1203
|
-
|
951
|
+
# Represents information about this operation. Each MetricValueSet
|
952
|
+
# corresponds to a metric defined in the service configuration.
|
953
|
+
# The data type used in the MetricValueSet must agree with
|
954
|
+
# the data type specified in the metric definition.
|
955
|
+
# Within a single operation, it is not allowed to have more than one
|
956
|
+
# MetricValue instances that have the same metric names and identical
|
957
|
+
# label value combinations. If a request has such duplicated MetricValue
|
958
|
+
# instances, the entire request is rejected with
|
959
|
+
# an invalid argument error.
|
960
|
+
# Corresponds to the JSON property `quotaMetrics`
|
961
|
+
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
962
|
+
attr_accessor :quota_metrics
|
1204
963
|
|
1205
|
-
#
|
1206
|
-
# See comments on google.api.servicecontrol.v1.Operation.labels for
|
1207
|
-
# the overriding relationship.
|
964
|
+
# Labels describing the operation.
|
1208
965
|
# Corresponds to the JSON property `labels`
|
1209
966
|
# @return [Hash<String,String>]
|
1210
967
|
attr_accessor :labels
|
1211
968
|
|
1212
|
-
#
|
1213
|
-
#
|
1214
|
-
#
|
1215
|
-
|
1216
|
-
|
1217
|
-
#
|
1218
|
-
#
|
1219
|
-
|
1220
|
-
attr_accessor :int64_value
|
969
|
+
# Identity of the consumer for whom this quota operation is being performed.
|
970
|
+
# This can be in one of the following formats:
|
971
|
+
# project:<project_id>,
|
972
|
+
# project_number:<project_number>,
|
973
|
+
# api_key:<api_key>.
|
974
|
+
# Corresponds to the JSON property `consumerId`
|
975
|
+
# @return [String]
|
976
|
+
attr_accessor :consumer_id
|
1221
977
|
|
1222
|
-
#
|
1223
|
-
#
|
1224
|
-
#
|
1225
|
-
#
|
1226
|
-
#
|
1227
|
-
#
|
1228
|
-
#
|
1229
|
-
#
|
1230
|
-
#
|
1231
|
-
|
978
|
+
# Identity of the operation. This must be unique within the scope of the
|
979
|
+
# service that generated the operation. If the service calls AllocateQuota
|
980
|
+
# and ReleaseQuota on the same operation, the two calls should carry the
|
981
|
+
# same ID.
|
982
|
+
# UUID version 4 is recommended, though not required. In scenarios where an
|
983
|
+
# operation is computed from existing information and an idempotent id is
|
984
|
+
# desirable for deduplication purpose, UUID version 5 is recommended. See
|
985
|
+
# RFC 4122 for details.
|
986
|
+
# Corresponds to the JSON property `operationId`
|
987
|
+
# @return [String]
|
988
|
+
attr_accessor :operation_id
|
1232
989
|
|
1233
990
|
def initialize(**args)
|
1234
991
|
update!(**args)
|
@@ -1236,42 +993,30 @@ module Google
|
|
1236
993
|
|
1237
994
|
# Update properties of this object
|
1238
995
|
def update!(**args)
|
1239
|
-
@
|
1240
|
-
@
|
1241
|
-
@
|
1242
|
-
@money_value = args[:money_value] if args.key?(:money_value)
|
1243
|
-
@string_value = args[:string_value] if args.key?(:string_value)
|
996
|
+
@quota_mode = args[:quota_mode] if args.key?(:quota_mode)
|
997
|
+
@method_name = args[:method_name] if args.key?(:method_name)
|
998
|
+
@quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
|
1244
999
|
@labels = args[:labels] if args.key?(:labels)
|
1245
|
-
@
|
1246
|
-
@
|
1247
|
-
@distribution_value = args[:distribution_value] if args.key?(:distribution_value)
|
1000
|
+
@consumer_id = args[:consumer_id] if args.key?(:consumer_id)
|
1001
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1248
1002
|
end
|
1249
1003
|
end
|
1250
1004
|
|
1251
|
-
#
|
1252
|
-
class
|
1005
|
+
#
|
1006
|
+
class EndReconciliationRequest
|
1253
1007
|
include Google::Apis::Core::Hashable
|
1254
1008
|
|
1255
|
-
#
|
1256
|
-
# Corresponds to the JSON property `
|
1257
|
-
# @return [
|
1258
|
-
attr_accessor :
|
1259
|
-
|
1260
|
-
# Number of nano (10^-9) units of the amount.
|
1261
|
-
# The value must be between -999,999,999 and +999,999,999 inclusive.
|
1262
|
-
# If `units` is positive, `nanos` must be positive or zero.
|
1263
|
-
# If `units` is zero, `nanos` can be positive, zero, or negative.
|
1264
|
-
# If `units` is negative, `nanos` must be negative or zero.
|
1265
|
-
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
1266
|
-
# Corresponds to the JSON property `nanos`
|
1267
|
-
# @return [Fixnum]
|
1268
|
-
attr_accessor :nanos
|
1009
|
+
# Represents information regarding a quota operation.
|
1010
|
+
# Corresponds to the JSON property `reconciliationOperation`
|
1011
|
+
# @return [Google::Apis::ServicecontrolV1::QuotaOperation]
|
1012
|
+
attr_accessor :reconciliation_operation
|
1269
1013
|
|
1270
|
-
#
|
1271
|
-
#
|
1272
|
-
#
|
1273
|
-
#
|
1274
|
-
|
1014
|
+
# Specifies which version of service configuration should be used to process
|
1015
|
+
# the request. If unspecified or no matching version can be found, the latest
|
1016
|
+
# one will be used.
|
1017
|
+
# Corresponds to the JSON property `serviceConfigId`
|
1018
|
+
# @return [String]
|
1019
|
+
attr_accessor :service_config_id
|
1275
1020
|
|
1276
1021
|
def initialize(**args)
|
1277
1022
|
update!(**args)
|
@@ -1279,86 +1024,71 @@ module Google
|
|
1279
1024
|
|
1280
1025
|
# Update properties of this object
|
1281
1026
|
def update!(**args)
|
1282
|
-
@
|
1283
|
-
@
|
1284
|
-
@units = args[:units] if args.key?(:units)
|
1027
|
+
@reconciliation_operation = args[:reconciliation_operation] if args.key?(:reconciliation_operation)
|
1028
|
+
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
1285
1029
|
end
|
1286
1030
|
end
|
1287
1031
|
|
1288
1032
|
#
|
1289
|
-
class
|
1033
|
+
class ReportInfo
|
1290
1034
|
include Google::Apis::Core::Hashable
|
1291
1035
|
|
1292
|
-
# The
|
1293
|
-
# logging and diagnostics purposes.
|
1036
|
+
# The Operation.operation_id value from the request.
|
1294
1037
|
# Corresponds to the JSON property `operationId`
|
1295
1038
|
# @return [String]
|
1296
1039
|
attr_accessor :operation_id
|
1297
1040
|
|
1298
|
-
#
|
1299
|
-
# Corresponds to the JSON property `
|
1300
|
-
# @return [
|
1301
|
-
attr_accessor :
|
1041
|
+
# Contains the quota information for a quota check response.
|
1042
|
+
# Corresponds to the JSON property `quotaInfo`
|
1043
|
+
# @return [Google::Apis::ServicecontrolV1::QuotaInfo]
|
1044
|
+
attr_accessor :quota_info
|
1302
1045
|
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
attr_accessor :service_config_id
|
1307
|
-
|
1308
|
-
# Metric values as tracked by One Platform before the adjustment was made.
|
1309
|
-
# The following metrics will be included:
|
1310
|
-
# 1. Per quota metric total usage will be specified using the following gauge
|
1311
|
-
# metric:
|
1312
|
-
# "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
|
1313
|
-
# 2. Value for each quota limit associated with the metrics will be specified
|
1314
|
-
# using the following gauge metric:
|
1315
|
-
# "serviceruntime.googleapis.com/quota/limit"
|
1316
|
-
# 3. Delta value of the usage after the reconciliation for limits associated
|
1317
|
-
# with the metrics will be specified using the following metric:
|
1318
|
-
# "serviceruntime.googleapis.com/allocation/reconciliation_delta"
|
1319
|
-
# The delta value is defined as:
|
1320
|
-
# new_usage_from_client - existing_value_in_spanner.
|
1321
|
-
# This metric is not defined in serviceruntime.yaml or in Cloud Monarch.
|
1322
|
-
# This metric is meant for callers' use only. Since this metric is not
|
1323
|
-
# defined in the monitoring backend, reporting on this metric will result in
|
1324
|
-
# an error.
|
1325
|
-
# Corresponds to the JSON property `quotaMetrics`
|
1326
|
-
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
1327
|
-
attr_accessor :quota_metrics
|
1328
|
-
|
1329
|
-
def initialize(**args)
|
1330
|
-
update!(**args)
|
1331
|
-
end
|
1046
|
+
def initialize(**args)
|
1047
|
+
update!(**args)
|
1048
|
+
end
|
1332
1049
|
|
1333
1050
|
# Update properties of this object
|
1334
1051
|
def update!(**args)
|
1335
1052
|
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1336
|
-
@
|
1337
|
-
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
1338
|
-
@quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
|
1053
|
+
@quota_info = args[:quota_info] if args.key?(:quota_info)
|
1339
1054
|
end
|
1340
1055
|
end
|
1341
1056
|
|
1342
|
-
#
|
1343
|
-
class
|
1057
|
+
# Response message for the Report method.
|
1058
|
+
class ReportResponse
|
1344
1059
|
include Google::Apis::Core::Hashable
|
1345
1060
|
|
1346
|
-
#
|
1347
|
-
#
|
1348
|
-
# of
|
1349
|
-
#
|
1350
|
-
#
|
1351
|
-
#
|
1352
|
-
#
|
1353
|
-
#
|
1354
|
-
#
|
1355
|
-
#
|
1356
|
-
#
|
1357
|
-
#
|
1358
|
-
#
|
1359
|
-
# Corresponds to the JSON property `
|
1360
|
-
# @return [Array<
|
1361
|
-
attr_accessor :
|
1061
|
+
# Partial failures, one for each `Operation` in the request that failed
|
1062
|
+
# processing. There are three possible combinations of the RPC status:
|
1063
|
+
# 1. The combination of a successful RPC status and an empty `report_errors`
|
1064
|
+
# list indicates a complete success where all `Operations` in the
|
1065
|
+
# request are processed successfully.
|
1066
|
+
# 2. The combination of a successful RPC status and a non-empty
|
1067
|
+
# `report_errors` list indicates a partial success where some
|
1068
|
+
# `Operations` in the request succeeded. Each
|
1069
|
+
# `Operation` that failed processing has a corresponding item
|
1070
|
+
# in this list.
|
1071
|
+
# 3. A failed RPC status indicates a general non-deterministic failure.
|
1072
|
+
# When this happens, it's impossible to know which of the
|
1073
|
+
# 'Operations' in the request succeeded or failed.
|
1074
|
+
# Corresponds to the JSON property `reportErrors`
|
1075
|
+
# @return [Array<Google::Apis::ServicecontrolV1::ReportError>]
|
1076
|
+
attr_accessor :report_errors
|
1077
|
+
|
1078
|
+
# Quota usage for each quota release `Operation` request.
|
1079
|
+
# Fully or partially failed quota release request may or may not be present
|
1080
|
+
# in `report_quota_info`. For example, a failed quota release request will
|
1081
|
+
# have the current quota usage info when precise quota library returns the
|
1082
|
+
# info. A deadline exceeded quota request will not have quota usage info.
|
1083
|
+
# If there is no quota release request, report_quota_info will be empty.
|
1084
|
+
# Corresponds to the JSON property `reportInfos`
|
1085
|
+
# @return [Array<Google::Apis::ServicecontrolV1::ReportInfo>]
|
1086
|
+
attr_accessor :report_infos
|
1087
|
+
|
1088
|
+
# The actual config id used to process the request.
|
1089
|
+
# Corresponds to the JSON property `serviceConfigId`
|
1090
|
+
# @return [String]
|
1091
|
+
attr_accessor :service_config_id
|
1362
1092
|
|
1363
1093
|
def initialize(**args)
|
1364
1094
|
update!(**args)
|
@@ -1366,76 +1096,117 @@ module Google
|
|
1366
1096
|
|
1367
1097
|
# Update properties of this object
|
1368
1098
|
def update!(**args)
|
1369
|
-
@
|
1099
|
+
@report_errors = args[:report_errors] if args.key?(:report_errors)
|
1100
|
+
@report_infos = args[:report_infos] if args.key?(:report_infos)
|
1101
|
+
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
1370
1102
|
end
|
1371
1103
|
end
|
1372
1104
|
|
1373
|
-
#
|
1374
|
-
|
1375
|
-
# additional optional information:
|
1376
|
-
# - the arithmetic mean of the samples
|
1377
|
-
# - the minimum and maximum of the samples
|
1378
|
-
# - the sum-squared-deviation of the samples, used to compute variance
|
1379
|
-
# - a histogram of the values of the sample points
|
1380
|
-
class Distribution
|
1105
|
+
# Represents information regarding an operation.
|
1106
|
+
class Operation
|
1381
1107
|
include Google::Apis::Core::Hashable
|
1382
1108
|
|
1383
|
-
#
|
1384
|
-
# Corresponds to the JSON property `
|
1385
|
-
# @return [Google::Apis::ServicecontrolV1::
|
1386
|
-
attr_accessor :
|
1109
|
+
# Represents the properties needed for quota operations.
|
1110
|
+
# Corresponds to the JSON property `quotaProperties`
|
1111
|
+
# @return [Google::Apis::ServicecontrolV1::QuotaProperties]
|
1112
|
+
attr_accessor :quota_properties
|
1387
1113
|
|
1388
|
-
#
|
1389
|
-
#
|
1390
|
-
#
|
1391
|
-
|
1114
|
+
# Identity of the consumer who is using the service.
|
1115
|
+
# This field should be filled in for the operations initiated by a
|
1116
|
+
# consumer, but not for service-initiated operations that are
|
1117
|
+
# not related to a specific consumer.
|
1118
|
+
# This can be in one of the following formats:
|
1119
|
+
# project:<project_id>,
|
1120
|
+
# project_number:<project_number>,
|
1121
|
+
# api_key:<api_key>.
|
1122
|
+
# Corresponds to the JSON property `consumerId`
|
1123
|
+
# @return [String]
|
1124
|
+
attr_accessor :consumer_id
|
1392
1125
|
|
1393
|
-
#
|
1394
|
-
#
|
1395
|
-
#
|
1396
|
-
#
|
1397
|
-
|
1126
|
+
# Identity of the operation. This must be unique within the scope of the
|
1127
|
+
# service that generated the operation. If the service calls
|
1128
|
+
# Check() and Report() on the same operation, the two calls should carry
|
1129
|
+
# the same id.
|
1130
|
+
# UUID version 4 is recommended, though not required.
|
1131
|
+
# In scenarios where an operation is computed from existing information
|
1132
|
+
# and an idempotent id is desirable for deduplication purpose, UUID version 5
|
1133
|
+
# is recommended. See RFC 4122 for details.
|
1134
|
+
# Corresponds to the JSON property `operationId`
|
1135
|
+
# @return [String]
|
1136
|
+
attr_accessor :operation_id
|
1398
1137
|
|
1399
|
-
#
|
1400
|
-
#
|
1401
|
-
#
|
1402
|
-
|
1138
|
+
# End time of the operation.
|
1139
|
+
# Required when the operation is used in ServiceController.Report,
|
1140
|
+
# but optional when the operation is used in ServiceController.Check.
|
1141
|
+
# Corresponds to the JSON property `endTime`
|
1142
|
+
# @return [String]
|
1143
|
+
attr_accessor :end_time
|
1403
1144
|
|
1404
|
-
#
|
1405
|
-
#
|
1406
|
-
#
|
1407
|
-
|
1408
|
-
# `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
|
1409
|
-
# in each of the finite buckets. And `bucket_counts[N] is the number
|
1410
|
-
# of samples in the overflow bucket. See the comments of `bucket_option`
|
1411
|
-
# below for more details.
|
1412
|
-
# Any suffix of trailing zeros may be omitted.
|
1413
|
-
# Corresponds to the JSON property `bucketCounts`
|
1414
|
-
# @return [Array<Fixnum>]
|
1415
|
-
attr_accessor :bucket_counts
|
1145
|
+
# Fully qualified name of the operation. Reserved for future use.
|
1146
|
+
# Corresponds to the JSON property `operationName`
|
1147
|
+
# @return [String]
|
1148
|
+
attr_accessor :operation_name
|
1416
1149
|
|
1417
|
-
#
|
1418
|
-
# Corresponds to the JSON property `
|
1419
|
-
# @return [
|
1420
|
-
attr_accessor :
|
1150
|
+
# Required. Start time of the operation.
|
1151
|
+
# Corresponds to the JSON property `startTime`
|
1152
|
+
# @return [String]
|
1153
|
+
attr_accessor :start_time
|
1421
1154
|
|
1422
|
-
#
|
1423
|
-
# Corresponds to the JSON property `
|
1424
|
-
# @return [
|
1425
|
-
attr_accessor :
|
1155
|
+
# DO NOT USE. This is an experimental field.
|
1156
|
+
# Corresponds to the JSON property `importance`
|
1157
|
+
# @return [String]
|
1158
|
+
attr_accessor :importance
|
1426
1159
|
|
1427
|
-
# The
|
1428
|
-
#
|
1429
|
-
#
|
1430
|
-
#
|
1431
|
-
#
|
1432
|
-
#
|
1433
|
-
|
1160
|
+
# The resource name of the parent of a resource in the resource hierarchy.
|
1161
|
+
# This can be in one of the following formats:
|
1162
|
+
# - “projects/<project-id or project-number>”
|
1163
|
+
# - “folders/<folder-id>”
|
1164
|
+
# - “organizations/<organization-id>”
|
1165
|
+
# Corresponds to the JSON property `resourceContainer`
|
1166
|
+
# @return [String]
|
1167
|
+
attr_accessor :resource_container
|
1434
1168
|
|
1435
|
-
#
|
1436
|
-
#
|
1437
|
-
#
|
1438
|
-
|
1169
|
+
# Labels describing the operation. Only the following labels are allowed:
|
1170
|
+
# - Labels describing monitored resources as defined in
|
1171
|
+
# the service configuration.
|
1172
|
+
# - Default labels of metric values. When specified, labels defined in the
|
1173
|
+
# metric value override these default.
|
1174
|
+
# - The following labels defined by Google Cloud Platform:
|
1175
|
+
# - `cloud.googleapis.com/location` describing the location where the
|
1176
|
+
# operation happened,
|
1177
|
+
# - `servicecontrol.googleapis.com/user_agent` describing the user agent
|
1178
|
+
# of the API request,
|
1179
|
+
# - `servicecontrol.googleapis.com/service_agent` describing the service
|
1180
|
+
# used to handle the API request (e.g. ESP),
|
1181
|
+
# - `servicecontrol.googleapis.com/platform` describing the platform
|
1182
|
+
# where the API is served (e.g. GAE, GCE, GKE).
|
1183
|
+
# Corresponds to the JSON property `labels`
|
1184
|
+
# @return [Hash<String,String>]
|
1185
|
+
attr_accessor :labels
|
1186
|
+
|
1187
|
+
# Represents information to be logged.
|
1188
|
+
# Corresponds to the JSON property `logEntries`
|
1189
|
+
# @return [Array<Google::Apis::ServicecontrolV1::LogEntry>]
|
1190
|
+
attr_accessor :log_entries
|
1191
|
+
|
1192
|
+
# User defined labels for the resource that this operation is associated
|
1193
|
+
# with.
|
1194
|
+
# Corresponds to the JSON property `userLabels`
|
1195
|
+
# @return [Hash<String,String>]
|
1196
|
+
attr_accessor :user_labels
|
1197
|
+
|
1198
|
+
# Represents information about this operation. Each MetricValueSet
|
1199
|
+
# corresponds to a metric defined in the service configuration.
|
1200
|
+
# The data type used in the MetricValueSet must agree with
|
1201
|
+
# the data type specified in the metric definition.
|
1202
|
+
# Within a single operation, it is not allowed to have more than one
|
1203
|
+
# MetricValue instances that have the same metric names and identical
|
1204
|
+
# label value combinations. If a request has such duplicated MetricValue
|
1205
|
+
# instances, the entire request is rejected with
|
1206
|
+
# an invalid argument error.
|
1207
|
+
# Corresponds to the JSON property `metricValueSets`
|
1208
|
+
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
1209
|
+
attr_accessor :metric_value_sets
|
1439
1210
|
|
1440
1211
|
def initialize(**args)
|
1441
1212
|
update!(**args)
|
@@ -1443,44 +1214,53 @@ module Google
|
|
1443
1214
|
|
1444
1215
|
# Update properties of this object
|
1445
1216
|
def update!(**args)
|
1446
|
-
@
|
1447
|
-
@
|
1448
|
-
@
|
1449
|
-
@
|
1450
|
-
@
|
1451
|
-
@
|
1452
|
-
@
|
1453
|
-
@
|
1454
|
-
@
|
1217
|
+
@quota_properties = args[:quota_properties] if args.key?(:quota_properties)
|
1218
|
+
@consumer_id = args[:consumer_id] if args.key?(:consumer_id)
|
1219
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1220
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
1221
|
+
@operation_name = args[:operation_name] if args.key?(:operation_name)
|
1222
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1223
|
+
@importance = args[:importance] if args.key?(:importance)
|
1224
|
+
@resource_container = args[:resource_container] if args.key?(:resource_container)
|
1225
|
+
@labels = args[:labels] if args.key?(:labels)
|
1226
|
+
@log_entries = args[:log_entries] if args.key?(:log_entries)
|
1227
|
+
@user_labels = args[:user_labels] if args.key?(:user_labels)
|
1228
|
+
@metric_value_sets = args[:metric_value_sets] if args.key?(:metric_value_sets)
|
1455
1229
|
end
|
1456
1230
|
end
|
1457
1231
|
|
1458
|
-
#
|
1459
|
-
class
|
1232
|
+
# Response message for the Check method.
|
1233
|
+
class CheckResponse
|
1460
1234
|
include Google::Apis::Core::Hashable
|
1461
1235
|
|
1462
|
-
# The
|
1463
|
-
#
|
1464
|
-
#
|
1465
|
-
#
|
1466
|
-
|
1467
|
-
# @return [Float]
|
1468
|
-
attr_accessor :growth_factor
|
1469
|
-
|
1470
|
-
# The i'th exponential bucket covers the interval
|
1471
|
-
# [scale * growth_factor^(i-1), scale * growth_factor^i)
|
1472
|
-
# where i ranges from 1 to num_finite_buckets inclusive.
|
1473
|
-
# Must be > 0.
|
1474
|
-
# Corresponds to the JSON property `scale`
|
1475
|
-
# @return [Float]
|
1476
|
-
attr_accessor :scale
|
1236
|
+
# The same operation_id value used in the CheckRequest.
|
1237
|
+
# Used for logging and diagnostics purposes.
|
1238
|
+
# Corresponds to the JSON property `operationId`
|
1239
|
+
# @return [String]
|
1240
|
+
attr_accessor :operation_id
|
1477
1241
|
|
1478
|
-
#
|
1479
|
-
#
|
1480
|
-
#
|
1481
|
-
#
|
1482
|
-
#
|
1483
|
-
|
1242
|
+
# Indicate the decision of the check.
|
1243
|
+
# If no check errors are present, the service should process the operation.
|
1244
|
+
# Otherwise the service should use the list of errors to determine the
|
1245
|
+
# appropriate action.
|
1246
|
+
# Corresponds to the JSON property `checkErrors`
|
1247
|
+
# @return [Array<Google::Apis::ServicecontrolV1::CheckError>]
|
1248
|
+
attr_accessor :check_errors
|
1249
|
+
|
1250
|
+
# Feedback data returned from the server during processing a Check request.
|
1251
|
+
# Corresponds to the JSON property `checkInfo`
|
1252
|
+
# @return [Google::Apis::ServicecontrolV1::CheckInfo]
|
1253
|
+
attr_accessor :check_info
|
1254
|
+
|
1255
|
+
# Contains the quota information for a quota check response.
|
1256
|
+
# Corresponds to the JSON property `quotaInfo`
|
1257
|
+
# @return [Google::Apis::ServicecontrolV1::QuotaInfo]
|
1258
|
+
attr_accessor :quota_info
|
1259
|
+
|
1260
|
+
# The actual config id used to process the request.
|
1261
|
+
# Corresponds to the JSON property `serviceConfigId`
|
1262
|
+
# @return [String]
|
1263
|
+
attr_accessor :service_config_id
|
1484
1264
|
|
1485
1265
|
def initialize(**args)
|
1486
1266
|
update!(**args)
|
@@ -1488,33 +1268,73 @@ module Google
|
|
1488
1268
|
|
1489
1269
|
# Update properties of this object
|
1490
1270
|
def update!(**args)
|
1491
|
-
@
|
1492
|
-
@
|
1493
|
-
@
|
1271
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1272
|
+
@check_errors = args[:check_errors] if args.key?(:check_errors)
|
1273
|
+
@check_info = args[:check_info] if args.key?(:check_info)
|
1274
|
+
@quota_info = args[:quota_info] if args.key?(:quota_info)
|
1275
|
+
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
1494
1276
|
end
|
1495
1277
|
end
|
1496
1278
|
|
1497
|
-
#
|
1498
|
-
|
1279
|
+
# The `Status` type defines a logical error model that is suitable for different
|
1280
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
1281
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
1282
|
+
# - Simple to use and understand for most users
|
1283
|
+
# - Flexible enough to meet unexpected needs
|
1284
|
+
# # Overview
|
1285
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
1286
|
+
# and error details. The error code should be an enum value of
|
1287
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
1288
|
+
# error message should be a developer-facing English message that helps
|
1289
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
1290
|
+
# error message is needed, put the localized message in the error details or
|
1291
|
+
# localize it in the client. The optional error details may contain arbitrary
|
1292
|
+
# information about the error. There is a predefined set of error detail types
|
1293
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
1294
|
+
# # Language mapping
|
1295
|
+
# The `Status` message is the logical representation of the error model, but it
|
1296
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
1297
|
+
# exposed in different client libraries and different wire protocols, it can be
|
1298
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
1299
|
+
# in Java, but more likely mapped to some error codes in C.
|
1300
|
+
# # Other uses
|
1301
|
+
# The error model and the `Status` message can be used in a variety of
|
1302
|
+
# environments, either with or without APIs, to provide a
|
1303
|
+
# consistent developer experience across different environments.
|
1304
|
+
# Example uses of this error model include:
|
1305
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
1306
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
1307
|
+
# errors.
|
1308
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
1309
|
+
# have a `Status` message for error reporting.
|
1310
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
1311
|
+
# `Status` message should be used directly inside batch response, one for
|
1312
|
+
# each error sub-response.
|
1313
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
1314
|
+
# results in its response, the status of those operations should be
|
1315
|
+
# represented directly using the `Status` message.
|
1316
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
1317
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
1318
|
+
class Status
|
1499
1319
|
include Google::Apis::Core::Hashable
|
1500
1320
|
|
1501
|
-
#
|
1502
|
-
#
|
1503
|
-
# Corresponds to the JSON property `
|
1504
|
-
# @return [String]
|
1505
|
-
attr_accessor :
|
1321
|
+
# A list of messages that carry the error details. There will be a
|
1322
|
+
# common set of message types for APIs to use.
|
1323
|
+
# Corresponds to the JSON property `details`
|
1324
|
+
# @return [Array<Hash<String,Object>>]
|
1325
|
+
attr_accessor :details
|
1506
1326
|
|
1507
|
-
#
|
1508
|
-
#
|
1509
|
-
#
|
1510
|
-
|
1511
|
-
attr_accessor :granted
|
1512
|
-
alias_method :granted?, :granted
|
1327
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
1328
|
+
# Corresponds to the JSON property `code`
|
1329
|
+
# @return [Fixnum]
|
1330
|
+
attr_accessor :code
|
1513
1331
|
|
1514
|
-
#
|
1515
|
-
#
|
1332
|
+
# A developer-facing error message, which should be in English. Any
|
1333
|
+
# user-facing error message should be localized and sent in the
|
1334
|
+
# google.rpc.Status.details field, or localized by the client.
|
1335
|
+
# Corresponds to the JSON property `message`
|
1516
1336
|
# @return [String]
|
1517
|
-
attr_accessor :
|
1337
|
+
attr_accessor :message
|
1518
1338
|
|
1519
1339
|
def initialize(**args)
|
1520
1340
|
update!(**args)
|
@@ -1522,80 +1342,98 @@ module Google
|
|
1522
1342
|
|
1523
1343
|
# Update properties of this object
|
1524
1344
|
def update!(**args)
|
1525
|
-
@
|
1526
|
-
@
|
1527
|
-
@
|
1345
|
+
@details = args[:details] if args.key?(:details)
|
1346
|
+
@code = args[:code] if args.key?(:code)
|
1347
|
+
@message = args[:message] if args.key?(:message)
|
1528
1348
|
end
|
1529
1349
|
end
|
1530
1350
|
|
1531
|
-
#
|
1532
|
-
class
|
1351
|
+
# Request message for the Report method.
|
1352
|
+
class ReportRequest
|
1533
1353
|
include Google::Apis::Core::Hashable
|
1534
1354
|
|
1535
|
-
#
|
1355
|
+
# Operations to be reported.
|
1356
|
+
# Typically the service should report one operation per request.
|
1357
|
+
# Putting multiple operations into a single request is allowed, but should
|
1358
|
+
# be used only when multiple operations are natually available at the time
|
1359
|
+
# of the report.
|
1360
|
+
# If multiple operations are in a single request, the total request size
|
1361
|
+
# should be no larger than 1MB. See ReportResponse.report_errors for
|
1362
|
+
# partial failure behavior.
|
1363
|
+
# Corresponds to the JSON property `operations`
|
1364
|
+
# @return [Array<Google::Apis::ServicecontrolV1::Operation>]
|
1365
|
+
attr_accessor :operations
|
1366
|
+
|
1367
|
+
# Specifies which version of service config should be used to process the
|
1368
|
+
# request.
|
1369
|
+
# If unspecified or no matching version can be found, the
|
1370
|
+
# latest one will be used.
|
1536
1371
|
# Corresponds to the JSON property `serviceConfigId`
|
1537
1372
|
# @return [String]
|
1538
1373
|
attr_accessor :service_config_id
|
1539
1374
|
|
1540
|
-
# Metric values as tracked by One Platform before the start of
|
1541
|
-
# reconciliation. The following metrics will be included:
|
1542
|
-
# 1. Per quota metric total usage will be specified using the following gauge
|
1543
|
-
# metric:
|
1544
|
-
# "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
|
1545
|
-
# 2. Value for each quota limit associated with the metrics will be specified
|
1546
|
-
# using the following gauge metric:
|
1547
|
-
# "serviceruntime.googleapis.com/quota/limit"
|
1548
|
-
# Corresponds to the JSON property `quotaMetrics`
|
1549
|
-
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
|
1550
|
-
attr_accessor :quota_metrics
|
1551
|
-
|
1552
|
-
# The same operation_id value used in the StartReconciliationRequest. Used
|
1553
|
-
# for logging and diagnostics purposes.
|
1554
|
-
# Corresponds to the JSON property `operationId`
|
1555
|
-
# @return [String]
|
1556
|
-
attr_accessor :operation_id
|
1557
|
-
|
1558
|
-
# Indicates the decision of the reconciliation start.
|
1559
|
-
# Corresponds to the JSON property `reconciliationErrors`
|
1560
|
-
# @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
|
1561
|
-
attr_accessor :reconciliation_errors
|
1562
|
-
|
1563
1375
|
def initialize(**args)
|
1564
1376
|
update!(**args)
|
1565
1377
|
end
|
1566
1378
|
|
1567
1379
|
# Update properties of this object
|
1568
1380
|
def update!(**args)
|
1381
|
+
@operations = args[:operations] if args.key?(:operations)
|
1569
1382
|
@service_config_id = args[:service_config_id] if args.key?(:service_config_id)
|
1570
|
-
@quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
|
1571
|
-
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1572
|
-
@reconciliation_errors = args[:reconciliation_errors] if args.key?(:reconciliation_errors)
|
1573
1383
|
end
|
1574
1384
|
end
|
1575
1385
|
|
1576
|
-
#
|
1577
|
-
class
|
1386
|
+
# An individual log entry.
|
1387
|
+
class LogEntry
|
1578
1388
|
include Google::Apis::Core::Hashable
|
1579
1389
|
|
1580
|
-
#
|
1581
|
-
#
|
1582
|
-
#
|
1583
|
-
# as the user ID. See google/api/quota.proto for the definition of LimitType.
|
1584
|
-
# CLIENT_PROJECT: Not supported.
|
1585
|
-
# USER: Value of this entry will be used for enforcing user-level quota
|
1586
|
-
# limits. If none specified, caller IP passed in the
|
1587
|
-
# servicecontrol.googleapis.com/caller_ip label will be used instead.
|
1588
|
-
# If the server cannot resolve a value for this LimitType, an error
|
1589
|
-
# will be thrown. No validation will be performed on this ID.
|
1590
|
-
# Deprecated: use servicecontrol.googleapis.com/user label to send user ID.
|
1591
|
-
# Corresponds to the JSON property `limitByIds`
|
1390
|
+
# A set of user-defined (key, value) data that provides additional
|
1391
|
+
# information about the log entry.
|
1392
|
+
# Corresponds to the JSON property `labels`
|
1592
1393
|
# @return [Hash<String,String>]
|
1593
|
-
attr_accessor :
|
1394
|
+
attr_accessor :labels
|
1594
1395
|
|
1595
|
-
#
|
1596
|
-
#
|
1396
|
+
# The severity of the log entry. The default value is
|
1397
|
+
# `LogSeverity.DEFAULT`.
|
1398
|
+
# Corresponds to the JSON property `severity`
|
1597
1399
|
# @return [String]
|
1598
|
-
attr_accessor :
|
1400
|
+
attr_accessor :severity
|
1401
|
+
|
1402
|
+
# A unique ID for the log entry used for deduplication. If omitted,
|
1403
|
+
# the implementation will generate one based on operation_id.
|
1404
|
+
# Corresponds to the JSON property `insertId`
|
1405
|
+
# @return [String]
|
1406
|
+
attr_accessor :insert_id
|
1407
|
+
|
1408
|
+
# Required. The log to which this log entry belongs. Examples: `"syslog"`,
|
1409
|
+
# `"book_log"`.
|
1410
|
+
# Corresponds to the JSON property `name`
|
1411
|
+
# @return [String]
|
1412
|
+
attr_accessor :name
|
1413
|
+
|
1414
|
+
# The log entry payload, represented as a structure that
|
1415
|
+
# is expressed as a JSON object.
|
1416
|
+
# Corresponds to the JSON property `structPayload`
|
1417
|
+
# @return [Hash<String,Object>]
|
1418
|
+
attr_accessor :struct_payload
|
1419
|
+
|
1420
|
+
# The log entry payload, represented as a Unicode string (UTF-8).
|
1421
|
+
# Corresponds to the JSON property `textPayload`
|
1422
|
+
# @return [String]
|
1423
|
+
attr_accessor :text_payload
|
1424
|
+
|
1425
|
+
# The log entry payload, represented as a protocol buffer that is
|
1426
|
+
# expressed as a JSON object. You can only pass `protoPayload`
|
1427
|
+
# values that belong to a set of approved types.
|
1428
|
+
# Corresponds to the JSON property `protoPayload`
|
1429
|
+
# @return [Hash<String,Object>]
|
1430
|
+
attr_accessor :proto_payload
|
1431
|
+
|
1432
|
+
# The time the event described by the log entry occurred. If
|
1433
|
+
# omitted, defaults to operation start time.
|
1434
|
+
# Corresponds to the JSON property `timestamp`
|
1435
|
+
# @return [String]
|
1436
|
+
attr_accessor :timestamp
|
1599
1437
|
|
1600
1438
|
def initialize(**args)
|
1601
1439
|
update!(**args)
|
@@ -1603,36 +1441,136 @@ module Google
|
|
1603
1441
|
|
1604
1442
|
# Update properties of this object
|
1605
1443
|
def update!(**args)
|
1606
|
-
@
|
1607
|
-
@
|
1444
|
+
@labels = args[:labels] if args.key?(:labels)
|
1445
|
+
@severity = args[:severity] if args.key?(:severity)
|
1446
|
+
@insert_id = args[:insert_id] if args.key?(:insert_id)
|
1447
|
+
@name = args[:name] if args.key?(:name)
|
1448
|
+
@struct_payload = args[:struct_payload] if args.key?(:struct_payload)
|
1449
|
+
@text_payload = args[:text_payload] if args.key?(:text_payload)
|
1450
|
+
@proto_payload = args[:proto_payload] if args.key?(:proto_payload)
|
1451
|
+
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
1608
1452
|
end
|
1609
1453
|
end
|
1610
1454
|
|
1611
|
-
#
|
1612
|
-
class
|
1455
|
+
# Common audit log format for Google Cloud Platform API operations.
|
1456
|
+
class AuditLog
|
1613
1457
|
include Google::Apis::Core::Hashable
|
1614
1458
|
|
1615
|
-
# The
|
1616
|
-
#
|
1617
|
-
#
|
1618
|
-
#
|
1459
|
+
# The name of the API service performing the operation. For example,
|
1460
|
+
# `"datastore.googleapis.com"`.
|
1461
|
+
# Corresponds to the JSON property `serviceName`
|
1462
|
+
# @return [String]
|
1463
|
+
attr_accessor :service_name
|
1464
|
+
|
1465
|
+
# The operation response. This may not include all response elements,
|
1466
|
+
# such as those that are too large, privacy-sensitive, or duplicated
|
1467
|
+
# elsewhere in the log record.
|
1468
|
+
# It should never include user-generated data, such as file contents.
|
1469
|
+
# When the JSON object represented here has a proto equivalent, the proto
|
1470
|
+
# name will be indicated in the `@type` property.
|
1471
|
+
# Corresponds to the JSON property `response`
|
1472
|
+
# @return [Hash<String,Object>]
|
1473
|
+
attr_accessor :response
|
1474
|
+
|
1475
|
+
# The name of the service method or operation.
|
1476
|
+
# For API calls, this should be the name of the API method.
|
1477
|
+
# For example,
|
1478
|
+
# "google.datastore.v1.Datastore.RunQuery"
|
1479
|
+
# "google.logging.v1.LoggingService.DeleteLog"
|
1480
|
+
# Corresponds to the JSON property `methodName`
|
1481
|
+
# @return [String]
|
1482
|
+
attr_accessor :method_name
|
1483
|
+
|
1484
|
+
# The resource or collection that is the target of the operation.
|
1485
|
+
# The name is a scheme-less URI, not including the API service name.
|
1486
|
+
# For example:
|
1487
|
+
# "shelves/SHELF_ID/books"
|
1488
|
+
# "shelves/SHELF_ID/books/BOOK_ID"
|
1489
|
+
# Corresponds to the JSON property `resourceName`
|
1490
|
+
# @return [String]
|
1491
|
+
attr_accessor :resource_name
|
1492
|
+
|
1493
|
+
# Authorization information. If there are multiple
|
1494
|
+
# resources or permissions involved, then there is
|
1495
|
+
# one AuthorizationInfo element for each `resource, permission` tuple.
|
1496
|
+
# Corresponds to the JSON property `authorizationInfo`
|
1497
|
+
# @return [Array<Google::Apis::ServicecontrolV1::AuthorizationInfo>]
|
1498
|
+
attr_accessor :authorization_info
|
1499
|
+
|
1500
|
+
# The operation request. This may not include all request parameters,
|
1501
|
+
# such as those that are too large, privacy-sensitive, or duplicated
|
1502
|
+
# elsewhere in the log record.
|
1503
|
+
# It should never include user-generated data, such as file contents.
|
1504
|
+
# When the JSON object represented here has a proto equivalent, the proto
|
1505
|
+
# name will be indicated in the `@type` property.
|
1506
|
+
# Corresponds to the JSON property `request`
|
1507
|
+
# @return [Hash<String,Object>]
|
1508
|
+
attr_accessor :request
|
1509
|
+
|
1510
|
+
# Metadata about the request.
|
1511
|
+
# Corresponds to the JSON property `requestMetadata`
|
1512
|
+
# @return [Google::Apis::ServicecontrolV1::RequestMetadata]
|
1513
|
+
attr_accessor :request_metadata
|
1514
|
+
|
1515
|
+
# Other service-specific data about the request, response, and other
|
1516
|
+
# activities.
|
1517
|
+
# Corresponds to the JSON property `serviceData`
|
1518
|
+
# @return [Hash<String,Object>]
|
1519
|
+
attr_accessor :service_data
|
1520
|
+
|
1521
|
+
# The number of items returned from a List or Query API method,
|
1522
|
+
# if applicable.
|
1523
|
+
# Corresponds to the JSON property `numResponseItems`
|
1619
1524
|
# @return [Fixnum]
|
1620
|
-
attr_accessor :
|
1525
|
+
attr_accessor :num_response_items
|
1621
1526
|
|
1622
|
-
#
|
1623
|
-
#
|
1624
|
-
#
|
1625
|
-
|
1626
|
-
# Corresponds to the JSON property `width`
|
1627
|
-
# @return [Float]
|
1628
|
-
attr_accessor :width
|
1527
|
+
# Authentication information for the operation.
|
1528
|
+
# Corresponds to the JSON property `authenticationInfo`
|
1529
|
+
# @return [Google::Apis::ServicecontrolV1::AuthenticationInfo]
|
1530
|
+
attr_accessor :authentication_info
|
1629
1531
|
|
1630
|
-
# The
|
1631
|
-
#
|
1632
|
-
#
|
1633
|
-
#
|
1634
|
-
#
|
1635
|
-
|
1532
|
+
# The `Status` type defines a logical error model that is suitable for different
|
1533
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
1534
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
1535
|
+
# - Simple to use and understand for most users
|
1536
|
+
# - Flexible enough to meet unexpected needs
|
1537
|
+
# # Overview
|
1538
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
1539
|
+
# and error details. The error code should be an enum value of
|
1540
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
1541
|
+
# error message should be a developer-facing English message that helps
|
1542
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
1543
|
+
# error message is needed, put the localized message in the error details or
|
1544
|
+
# localize it in the client. The optional error details may contain arbitrary
|
1545
|
+
# information about the error. There is a predefined set of error detail types
|
1546
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
1547
|
+
# # Language mapping
|
1548
|
+
# The `Status` message is the logical representation of the error model, but it
|
1549
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
1550
|
+
# exposed in different client libraries and different wire protocols, it can be
|
1551
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
1552
|
+
# in Java, but more likely mapped to some error codes in C.
|
1553
|
+
# # Other uses
|
1554
|
+
# The error model and the `Status` message can be used in a variety of
|
1555
|
+
# environments, either with or without APIs, to provide a
|
1556
|
+
# consistent developer experience across different environments.
|
1557
|
+
# Example uses of this error model include:
|
1558
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
1559
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
1560
|
+
# errors.
|
1561
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
1562
|
+
# have a `Status` message for error reporting.
|
1563
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
1564
|
+
# `Status` message should be used directly inside batch response, one for
|
1565
|
+
# each error sub-response.
|
1566
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
1567
|
+
# results in its response, the status of those operations should be
|
1568
|
+
# represented directly using the `Status` message.
|
1569
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
1570
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
1571
|
+
# Corresponds to the JSON property `status`
|
1572
|
+
# @return [Google::Apis::ServicecontrolV1::Status]
|
1573
|
+
attr_accessor :status
|
1636
1574
|
|
1637
1575
|
def initialize(**args)
|
1638
1576
|
update!(**args)
|
@@ -1640,26 +1578,81 @@ module Google
|
|
1640
1578
|
|
1641
1579
|
# Update properties of this object
|
1642
1580
|
def update!(**args)
|
1643
|
-
@
|
1644
|
-
@
|
1645
|
-
@
|
1581
|
+
@service_name = args[:service_name] if args.key?(:service_name)
|
1582
|
+
@response = args[:response] if args.key?(:response)
|
1583
|
+
@method_name = args[:method_name] if args.key?(:method_name)
|
1584
|
+
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
1585
|
+
@authorization_info = args[:authorization_info] if args.key?(:authorization_info)
|
1586
|
+
@request = args[:request] if args.key?(:request)
|
1587
|
+
@request_metadata = args[:request_metadata] if args.key?(:request_metadata)
|
1588
|
+
@service_data = args[:service_data] if args.key?(:service_data)
|
1589
|
+
@num_response_items = args[:num_response_items] if args.key?(:num_response_items)
|
1590
|
+
@authentication_info = args[:authentication_info] if args.key?(:authentication_info)
|
1591
|
+
@status = args[:status] if args.key?(:status)
|
1646
1592
|
end
|
1647
1593
|
end
|
1648
1594
|
|
1649
|
-
#
|
1650
|
-
class
|
1595
|
+
# Represents a single metric value.
|
1596
|
+
class MetricValue
|
1651
1597
|
include Google::Apis::Core::Hashable
|
1652
1598
|
|
1653
|
-
# The
|
1654
|
-
#
|
1599
|
+
# The labels describing the metric value.
|
1600
|
+
# See comments on google.api.servicecontrol.v1.Operation.labels for
|
1601
|
+
# the overriding relationship.
|
1602
|
+
# Corresponds to the JSON property `labels`
|
1603
|
+
# @return [Hash<String,String>]
|
1604
|
+
attr_accessor :labels
|
1605
|
+
|
1606
|
+
# A text string value.
|
1607
|
+
# Corresponds to the JSON property `stringValue`
|
1655
1608
|
# @return [String]
|
1656
|
-
attr_accessor :
|
1609
|
+
attr_accessor :string_value
|
1657
1610
|
|
1658
|
-
#
|
1659
|
-
#
|
1660
|
-
#
|
1611
|
+
# A double precision floating point value.
|
1612
|
+
# Corresponds to the JSON property `doubleValue`
|
1613
|
+
# @return [Float]
|
1614
|
+
attr_accessor :double_value
|
1615
|
+
|
1616
|
+
# A signed 64-bit integer value.
|
1617
|
+
# Corresponds to the JSON property `int64Value`
|
1618
|
+
# @return [Fixnum]
|
1619
|
+
attr_accessor :int64_value
|
1620
|
+
|
1621
|
+
# Distribution represents a frequency distribution of double-valued sample
|
1622
|
+
# points. It contains the size of the population of sample points plus
|
1623
|
+
# additional optional information:
|
1624
|
+
# - the arithmetic mean of the samples
|
1625
|
+
# - the minimum and maximum of the samples
|
1626
|
+
# - the sum-squared-deviation of the samples, used to compute variance
|
1627
|
+
# - a histogram of the values of the sample points
|
1628
|
+
# Corresponds to the JSON property `distributionValue`
|
1629
|
+
# @return [Google::Apis::ServicecontrolV1::Distribution]
|
1630
|
+
attr_accessor :distribution_value
|
1631
|
+
|
1632
|
+
# A boolean value.
|
1633
|
+
# Corresponds to the JSON property `boolValue`
|
1634
|
+
# @return [Boolean]
|
1635
|
+
attr_accessor :bool_value
|
1636
|
+
alias_method :bool_value?, :bool_value
|
1637
|
+
|
1638
|
+
# The end of the time period over which this metric value's measurement
|
1639
|
+
# applies.
|
1640
|
+
# Corresponds to the JSON property `endTime`
|
1661
1641
|
# @return [String]
|
1662
|
-
attr_accessor :
|
1642
|
+
attr_accessor :end_time
|
1643
|
+
|
1644
|
+
# The start of the time period over which this metric value's measurement
|
1645
|
+
# applies. The time period has different semantics for different metric
|
1646
|
+
# types (cumulative, delta, and gauge). See the metric definition
|
1647
|
+
# documentation in the service configuration for details.
|
1648
|
+
# Corresponds to the JSON property `startTime`
|
1649
|
+
# @return [String]
|
1650
|
+
attr_accessor :start_time
|
1651
|
+
|
1652
|
+
# Represents an amount of money with its currency type.
|
1653
|
+
# Corresponds to the JSON property `moneyValue`
|
1654
|
+
# @return [Google::Apis::ServicecontrolV1::Money]
|
1655
|
+
attr_accessor :money_value
|
1663
1656
|
|
1664
1657
|
def initialize(**args)
|
1665
1658
|
update!(**args)
|
@@ -1667,8 +1660,15 @@ module Google
|
|
1667
1660
|
|
1668
1661
|
# Update properties of this object
|
1669
1662
|
def update!(**args)
|
1670
|
-
@
|
1671
|
-
@
|
1663
|
+
@labels = args[:labels] if args.key?(:labels)
|
1664
|
+
@string_value = args[:string_value] if args.key?(:string_value)
|
1665
|
+
@double_value = args[:double_value] if args.key?(:double_value)
|
1666
|
+
@int64_value = args[:int64_value] if args.key?(:int64_value)
|
1667
|
+
@distribution_value = args[:distribution_value] if args.key?(:distribution_value)
|
1668
|
+
@bool_value = args[:bool_value] if args.key?(:bool_value)
|
1669
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
1670
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1671
|
+
@money_value = args[:money_value] if args.key?(:money_value)
|
1672
1672
|
end
|
1673
1673
|
end
|
1674
1674
|
end
|