google-api-client 0.10.3 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +12 -18
- data/CHANGELOG.md +22 -2
- data/Gemfile +5 -7
- data/MIGRATING.md +33 -0
- data/README.md +10 -2
- data/Rakefile +1 -0
- data/bin/generate-api +7 -1
- data/dl.rb +0 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
- data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
- data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
- data/generated/google/apis/admin_directory_v1/service.rb +1 -0
- data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
- data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
- data/generated/google/apis/admin_reports_v1/service.rb +1 -0
- 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 +2 -2
- data/generated/google/apis/adsense_v1_4/service.rb +1 -0
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
- data/generated/google/apis/analytics_v3/classes.rb +10 -10
- data/generated/google/apis/analytics_v3/representations.rb +10 -10
- data/generated/google/apis/analytics_v3/service.rb +1 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
- data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
- data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
- data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
- data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
- data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
- data/generated/google/apis/appengine_v1/classes.rb +2 -2
- data/generated/google/apis/appengine_v1/representations.rb +2 -2
- data/generated/google/apis/appengine_v1/service.rb +1 -0
- data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -0
- data/generated/google/apis/appsmarket_v2.rb +35 -0
- data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
- data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
- data/generated/google/apis/appsmarket_v2/service.rb +187 -0
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +1 -0
- data/generated/google/apis/bigquery_v2/classes.rb +39 -39
- data/generated/google/apis/bigquery_v2/representations.rb +38 -38
- data/generated/google/apis/bigquery_v2/service.rb +3 -2
- data/generated/google/apis/blogger_v3/classes.rb +2 -2
- data/generated/google/apis/blogger_v3/representations.rb +2 -2
- data/generated/google/apis/blogger_v3/service.rb +1 -0
- data/generated/google/apis/books_v1/classes.rb +5 -5
- data/generated/google/apis/books_v1/representations.rb +4 -4
- data/generated/google/apis/books_v1/service.rb +1 -0
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/calendar_v3/representations.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +1 -0
- data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
- data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
- data/generated/google/apis/civicinfo_v2/service.rb +2 -1
- data/generated/google/apis/classroom_v1/service.rb +1 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
- data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
- data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
- data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
- data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
- data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
- data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
- data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
- data/generated/google/apis/cloudkms_v1/service.rb +168 -167
- data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
- data/generated/google/apis/cloudtrace_v1.rb +3 -3
- data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
- data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
- data/generated/google/apis/compute_beta/classes.rb +52 -52
- data/generated/google/apis/compute_beta/representations.rb +52 -52
- data/generated/google/apis/compute_beta/service.rb +2 -1
- data/generated/google/apis/compute_v1/classes.rb +48 -48
- data/generated/google/apis/compute_v1/representations.rb +48 -48
- data/generated/google/apis/compute_v1/service.rb +2 -1
- data/generated/google/apis/container_v1/service.rb +1 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +38 -660
- data/generated/google/apis/content_v2/representations.rb +37 -303
- data/generated/google/apis/content_v2/service.rb +63 -279
- data/generated/google/apis/customsearch_v1/classes.rb +2 -2
- data/generated/google/apis/customsearch_v1/representations.rb +2 -2
- data/generated/google/apis/customsearch_v1/service.rb +1 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
- data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
- data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
- data/generated/google/apis/dataproc_v1/classes.rb +395 -395
- data/generated/google/apis/dataproc_v1/representations.rb +91 -91
- data/generated/google/apis/dataproc_v1/service.rb +356 -355
- data/generated/google/apis/datastore_v1/classes.rb +506 -506
- data/generated/google/apis/datastore_v1/representations.rb +147 -147
- data/generated/google/apis/datastore_v1/service.rb +46 -45
- data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
- data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
- data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
- data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
- data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
- data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
- data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
- data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
- data/generated/google/apis/discovery_v1/service.rb +1 -0
- data/generated/google/apis/dns_v1/classes.rb +2 -2
- data/generated/google/apis/dns_v1/representations.rb +2 -2
- data/generated/google/apis/dns_v1/service.rb +1 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
- data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
- data/generated/google/apis/dns_v2beta1/service.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
- data/generated/google/apis/drive_v2/classes.rb +17 -17
- data/generated/google/apis/drive_v2/representations.rb +17 -17
- data/generated/google/apis/drive_v2/service.rb +5 -4
- data/generated/google/apis/drive_v3/classes.rb +13 -13
- data/generated/google/apis/drive_v3/representations.rb +12 -12
- data/generated/google/apis/drive_v3/service.rb +1 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
- data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
- data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
- data/generated/google/apis/firebaserules_v1/service.rb +1 -0
- data/generated/google/apis/fitness_v1/classes.rb +18 -18
- data/generated/google/apis/fitness_v1/representations.rb +18 -18
- data/generated/google/apis/fitness_v1/service.rb +6 -5
- data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
- data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
- data/generated/google/apis/fusiontables_v2/service.rb +1 -0
- 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 +2 -2
- data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +6 -6
- data/generated/google/apis/games_management_v1management/representations.rb +6 -6
- data/generated/google/apis/games_management_v1management/service.rb +1 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +47 -47
- data/generated/google/apis/games_v1/representations.rb +47 -47
- data/generated/google/apis/games_v1/service.rb +58 -57
- data/generated/google/apis/genomics_v1.rb +6 -6
- data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
- data/generated/google/apis/genomics_v1/representations.rb +487 -487
- data/generated/google/apis/genomics_v1/service.rb +1188 -1187
- data/generated/google/apis/gmail_v1/classes.rb +11 -11
- data/generated/google/apis/gmail_v1/representations.rb +11 -11
- data/generated/google/apis/gmail_v1/service.rb +2 -1
- data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
- data/generated/google/apis/groupssettings_v1/service.rb +1 -0
- data/generated/google/apis/iam_v1/classes.rb +437 -437
- data/generated/google/apis/iam_v1/representations.rb +95 -95
- data/generated/google/apis/iam_v1/service.rb +87 -86
- data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
- data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
- data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
- data/generated/google/apis/kgsearch_v1/service.rb +9 -8
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +245 -245
- data/generated/google/apis/language_v1/representations.rb +65 -65
- data/generated/google/apis/language_v1/service.rb +1 -0
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +277 -277
- data/generated/google/apis/language_v1beta1/representations.rb +83 -83
- data/generated/google/apis/language_v1beta1/service.rb +31 -30
- data/generated/google/apis/licensing_v1/service.rb +1 -0
- data/generated/google/apis/logging_v2/classes.rb +408 -408
- data/generated/google/apis/logging_v2/representations.rb +93 -93
- data/generated/google/apis/logging_v2/service.rb +408 -407
- data/generated/google/apis/logging_v2beta1.rb +3 -3
- data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
- data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
- data/generated/google/apis/logging_v2beta1/service.rb +89 -88
- data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
- data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
- data/generated/google/apis/manufacturers_v1/service.rb +1 -0
- data/generated/google/apis/mirror_v1/service.rb +1 -0
- data/generated/google/apis/ml_v1/classes.rb +1185 -1185
- data/generated/google/apis/ml_v1/representations.rb +171 -171
- data/generated/google/apis/ml_v1/service.rb +282 -281
- data/generated/google/apis/monitoring_v3.rb +3 -3
- data/generated/google/apis/monitoring_v3/classes.rb +334 -334
- data/generated/google/apis/monitoring_v3/representations.rb +86 -86
- data/generated/google/apis/monitoring_v3/service.rb +344 -343
- data/generated/google/apis/mybusiness_v3/service.rb +1 -0
- data/generated/google/apis/oauth2_v2/service.rb +1 -0
- data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
- data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
- data/generated/google/apis/partners_v2/classes.rb +1466 -1466
- data/generated/google/apis/partners_v2/representations.rb +371 -371
- data/generated/google/apis/partners_v2/service.rb +530 -529
- data/generated/google/apis/people_v1.rb +4 -4
- data/generated/google/apis/people_v1/classes.rb +1009 -1009
- data/generated/google/apis/people_v1/representations.rb +249 -249
- data/generated/google/apis/people_v1/service.rb +13 -12
- data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
- data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
- data/generated/google/apis/plus_domains_v1/service.rb +1 -0
- data/generated/google/apis/plus_v1/service.rb +1 -0
- data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
- data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
- data/generated/google/apis/prediction_v1_6/service.rb +1 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
- data/generated/google/apis/pubsub_v1/classes.rb +99 -99
- data/generated/google/apis/pubsub_v1/representations.rb +25 -25
- data/generated/google/apis/pubsub_v1/service.rb +236 -235
- data/generated/google/apis/qpx_express_v1/service.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
- data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
- data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
- data/generated/google/apis/reseller_v1/classes.rb +5 -5
- data/generated/google/apis/reseller_v1/representations.rb +5 -5
- data/generated/google/apis/reseller_v1/service.rb +1 -0
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
- data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
- data/generated/google/apis/runtimeconfig_v1.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
- data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
- data/generated/google/apis/script_v1.rb +18 -18
- data/generated/google/apis/script_v1/classes.rb +84 -84
- data/generated/google/apis/script_v1/representations.rb +18 -18
- data/generated/google/apis/script_v1/service.rb +11 -10
- data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/searchconsole_v1/service.rb +11 -10
- data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
- data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
- data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
- data/generated/google/apis/servicemanagement_v1.rb +3 -3
- data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
- data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
- data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
- data/generated/google/apis/serviceuser_v1.rb +3 -3
- data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
- data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
- data/generated/google/apis/serviceuser_v1/service.rb +47 -46
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
- data/generated/google/apis/sheets_v4/representations.rb +859 -859
- data/generated/google/apis/sheets_v4/service.rb +180 -179
- data/generated/google/apis/site_verification_v1/service.rb +1 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2856 -2856
- data/generated/google/apis/slides_v1/representations.rb +683 -683
- data/generated/google/apis/slides_v1/service.rb +27 -26
- data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
- data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
- data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
- data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
- data/generated/google/apis/spanner_v1/representations.rb +325 -325
- data/generated/google/apis/spanner_v1/service.rb +374 -373
- data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
- data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
- data/generated/google/apis/speech_v1beta1/service.rb +27 -26
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
- data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +11 -11
- data/generated/google/apis/storage_v1/representations.rb +11 -11
- data/generated/google/apis/storage_v1/service.rb +65 -64
- data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
- data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
- data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
- data/generated/google/apis/surveys_v2/classes.rb +4 -4
- data/generated/google/apis/surveys_v2/representations.rb +4 -4
- data/generated/google/apis/surveys_v2/service.rb +1 -0
- data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
- data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
- data/generated/google/apis/tagmanager_v1/service.rb +1 -0
- data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
- data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
- data/generated/google/apis/tagmanager_v2/service.rb +1 -0
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
- data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
- data/generated/google/apis/tasks_v1/service.rb +3 -2
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
- data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
- data/generated/google/apis/tracing_v1/classes.rb +421 -421
- data/generated/google/apis/tracing_v1/representations.rb +86 -86
- data/generated/google/apis/tracing_v1/service.rb +60 -59
- data/generated/google/apis/translate_v2/service.rb +1 -0
- data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
- data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
- data/generated/google/apis/urlshortener_v1/service.rb +1 -0
- data/generated/google/apis/vision_v1/classes.rb +1290 -1290
- data/generated/google/apis/vision_v1/representations.rb +184 -184
- data/generated/google/apis/vision_v1/service.rb +11 -10
- data/generated/google/apis/webfonts_v1/service.rb +1 -0
- data/generated/google/apis/webmasters_v3/classes.rb +5 -5
- data/generated/google/apis/webmasters_v3/representations.rb +5 -5
- data/generated/google/apis/webmasters_v3/service.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
- data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
- data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
- data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
- data/generated/google/apis/youtube_v3/classes.rb +31 -31
- data/generated/google/apis/youtube_v3/representations.rb +31 -31
- data/generated/google/apis/youtube_v3/service.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
- data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
- data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
- data/google-api-client.gemspec +4 -6
- data/lib/google/apis/core/api_command.rb +8 -3
- data/lib/google/apis/core/base_service.rb +47 -18
- data/lib/google/apis/core/batch.rb +13 -18
- data/lib/google/apis/core/composite_io.rb +97 -0
- data/lib/google/apis/core/download.rb +24 -20
- data/lib/google/apis/core/http_command.rb +49 -38
- data/lib/google/apis/core/json_representation.rb +5 -1
- data/lib/google/apis/core/multipart.rb +43 -95
- data/lib/google/apis/core/upload.rb +59 -84
- data/lib/google/apis/generator/model.rb +2 -0
- data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
- data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
- data/lib/google/apis/options.rb +24 -12
- data/lib/google/apis/version.rb +1 -1
- data/samples/web/Gemfile +0 -1
- metadata +39 -37
- data/lib/google/apis/core/http_client_adapter.rb +0 -82
- data/third_party/hurley_patches.rb +0 -103
@@ -27,6 +27,9 @@ module Google
|
|
27
27
|
VERSION = 'V2beta1'
|
28
28
|
REVISION = '20170327'
|
29
29
|
|
30
|
+
# View and manage your data across Google Cloud Platform services
|
31
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
32
|
+
|
30
33
|
# View your data across Google Cloud Platform services
|
31
34
|
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
32
35
|
|
@@ -38,9 +41,6 @@ module Google
|
|
38
41
|
|
39
42
|
# Submit log data for your projects
|
40
43
|
AUTH_LOGGING_WRITE = 'https://www.googleapis.com/auth/logging.write'
|
41
|
-
|
42
|
-
# View and manage your data across Google Cloud Platform services
|
43
|
-
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
@@ -22,29 +22,187 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module LoggingV2beta1
|
24
24
|
|
25
|
-
#
|
26
|
-
|
25
|
+
# Complete log information about a single HTTP request to an App Engine
|
26
|
+
# application.
|
27
|
+
class RequestLog
|
27
28
|
include Google::Apis::Core::Hashable
|
28
29
|
|
29
|
-
#
|
30
|
-
#
|
30
|
+
# Globally unique identifier for a request, which is based on the request start
|
31
|
+
# time. Request IDs for requests which started later will compare greater as
|
32
|
+
# strings than those for requests which started earlier.
|
33
|
+
# Corresponds to the JSON property `requestId`
|
31
34
|
# @return [String]
|
32
|
-
attr_accessor :
|
35
|
+
attr_accessor :request_id
|
33
36
|
|
34
|
-
#
|
35
|
-
#
|
37
|
+
# The logged-in user who made the request.Most likely, this is the part of the
|
38
|
+
# user's email before the @ sign. The field value is the same for different
|
39
|
+
# requests from the same user, but different users can have similar names. This
|
40
|
+
# information is also available to the application via the App Engine Users API.
|
41
|
+
# This field will be populated starting with App Engine 1.9.21.
|
42
|
+
# Corresponds to the JSON property `nickname`
|
36
43
|
# @return [String]
|
37
|
-
attr_accessor :
|
44
|
+
attr_accessor :nickname
|
38
45
|
|
39
|
-
#
|
40
|
-
# Corresponds to the JSON property `
|
41
|
-
# @return [
|
42
|
-
attr_accessor :
|
46
|
+
# HTTP response status code. Example: 200, 404.
|
47
|
+
# Corresponds to the JSON property `status`
|
48
|
+
# @return [Fixnum]
|
49
|
+
attr_accessor :status
|
43
50
|
|
44
|
-
#
|
45
|
-
# Corresponds to the JSON property `
|
51
|
+
# Time this request spent in the pending request queue.
|
52
|
+
# Corresponds to the JSON property `pendingTime`
|
46
53
|
# @return [String]
|
47
|
-
attr_accessor :
|
54
|
+
attr_accessor :pending_time
|
55
|
+
|
56
|
+
# Contains the path and query portion of the URL that was requested. For example,
|
57
|
+
# if the URL was "http://example.com/app?name=val", the resource would be "/app?
|
58
|
+
# name=val". The fragment identifier, which is identified by the # character, is
|
59
|
+
# not included.
|
60
|
+
# Corresponds to the JSON property `resource`
|
61
|
+
# @return [String]
|
62
|
+
attr_accessor :resource
|
63
|
+
|
64
|
+
# Task name of the request, in the case of an offline request.
|
65
|
+
# Corresponds to the JSON property `taskName`
|
66
|
+
# @return [String]
|
67
|
+
attr_accessor :task_name
|
68
|
+
|
69
|
+
# File or class that handled the request.
|
70
|
+
# Corresponds to the JSON property `urlMapEntry`
|
71
|
+
# @return [String]
|
72
|
+
attr_accessor :url_map_entry
|
73
|
+
|
74
|
+
# If the instance processing this request belongs to a manually scaled module,
|
75
|
+
# then this is the 0-based index of the instance. Otherwise, this value is -1.
|
76
|
+
# Corresponds to the JSON property `instanceIndex`
|
77
|
+
# @return [Fixnum]
|
78
|
+
attr_accessor :instance_index
|
79
|
+
|
80
|
+
# Whether this request is finished or active.
|
81
|
+
# Corresponds to the JSON property `finished`
|
82
|
+
# @return [Boolean]
|
83
|
+
attr_accessor :finished
|
84
|
+
alias_method :finished?, :finished
|
85
|
+
|
86
|
+
# Internet host and port number of the resource being requested.
|
87
|
+
# Corresponds to the JSON property `host`
|
88
|
+
# @return [String]
|
89
|
+
attr_accessor :host
|
90
|
+
|
91
|
+
# HTTP version of request. Example: "HTTP/1.1".
|
92
|
+
# Corresponds to the JSON property `httpVersion`
|
93
|
+
# @return [String]
|
94
|
+
attr_accessor :http_version
|
95
|
+
|
96
|
+
# Time when the request started.
|
97
|
+
# Corresponds to the JSON property `startTime`
|
98
|
+
# @return [String]
|
99
|
+
attr_accessor :start_time
|
100
|
+
|
101
|
+
# Latency of the request.
|
102
|
+
# Corresponds to the JSON property `latency`
|
103
|
+
# @return [String]
|
104
|
+
attr_accessor :latency
|
105
|
+
|
106
|
+
# Origin IP address.
|
107
|
+
# Corresponds to the JSON property `ip`
|
108
|
+
# @return [String]
|
109
|
+
attr_accessor :ip
|
110
|
+
|
111
|
+
# Application that handled this request.
|
112
|
+
# Corresponds to the JSON property `appId`
|
113
|
+
# @return [String]
|
114
|
+
attr_accessor :app_id
|
115
|
+
|
116
|
+
# App Engine release version.
|
117
|
+
# Corresponds to the JSON property `appEngineRelease`
|
118
|
+
# @return [String]
|
119
|
+
attr_accessor :app_engine_release
|
120
|
+
|
121
|
+
# Request method. Example: "GET", "HEAD", "PUT", "POST", "DELETE".
|
122
|
+
# Corresponds to the JSON property `method`
|
123
|
+
# @return [String]
|
124
|
+
attr_accessor :method_prop
|
125
|
+
|
126
|
+
# An indication of the relative cost of serving this request.
|
127
|
+
# Corresponds to the JSON property `cost`
|
128
|
+
# @return [Float]
|
129
|
+
attr_accessor :cost
|
130
|
+
|
131
|
+
# An identifier for the instance that handled the request.
|
132
|
+
# Corresponds to the JSON property `instanceId`
|
133
|
+
# @return [String]
|
134
|
+
attr_accessor :instance_id
|
135
|
+
|
136
|
+
# Number of CPU megacycles used to process request.
|
137
|
+
# Corresponds to the JSON property `megaCycles`
|
138
|
+
# @return [Fixnum]
|
139
|
+
attr_accessor :mega_cycles
|
140
|
+
|
141
|
+
# Whether this is the first RequestLog entry for this request. If an active
|
142
|
+
# request has several RequestLog entries written to Stackdriver Logging, then
|
143
|
+
# this field will be set for one of them.
|
144
|
+
# Corresponds to the JSON property `first`
|
145
|
+
# @return [Boolean]
|
146
|
+
attr_accessor :first
|
147
|
+
alias_method :first?, :first
|
148
|
+
|
149
|
+
# Version of the application that handled this request.
|
150
|
+
# Corresponds to the JSON property `versionId`
|
151
|
+
# @return [String]
|
152
|
+
attr_accessor :version_id
|
153
|
+
|
154
|
+
# Module of the application that handled this request.
|
155
|
+
# Corresponds to the JSON property `moduleId`
|
156
|
+
# @return [String]
|
157
|
+
attr_accessor :module_id
|
158
|
+
|
159
|
+
# Time when the request finished.
|
160
|
+
# Corresponds to the JSON property `endTime`
|
161
|
+
# @return [String]
|
162
|
+
attr_accessor :end_time
|
163
|
+
|
164
|
+
# User agent that made the request.
|
165
|
+
# Corresponds to the JSON property `userAgent`
|
166
|
+
# @return [String]
|
167
|
+
attr_accessor :user_agent
|
168
|
+
|
169
|
+
# Whether this was a loading request for the instance.
|
170
|
+
# Corresponds to the JSON property `wasLoadingRequest`
|
171
|
+
# @return [Boolean]
|
172
|
+
attr_accessor :was_loading_request
|
173
|
+
alias_method :was_loading_request?, :was_loading_request
|
174
|
+
|
175
|
+
# Source code for the application that handled this request. There can be more
|
176
|
+
# than one source reference per deployed application if source code is
|
177
|
+
# distributed among multiple repositories.
|
178
|
+
# Corresponds to the JSON property `sourceReference`
|
179
|
+
# @return [Array<Google::Apis::LoggingV2beta1::SourceReference>]
|
180
|
+
attr_accessor :source_reference
|
181
|
+
|
182
|
+
# Size in bytes sent back to client by request.
|
183
|
+
# Corresponds to the JSON property `responseSize`
|
184
|
+
# @return [Fixnum]
|
185
|
+
attr_accessor :response_size
|
186
|
+
|
187
|
+
# Stackdriver Trace identifier for this request.
|
188
|
+
# Corresponds to the JSON property `traceId`
|
189
|
+
# @return [String]
|
190
|
+
attr_accessor :trace_id
|
191
|
+
|
192
|
+
# A list of log lines emitted by the application while serving this request.
|
193
|
+
# Corresponds to the JSON property `line`
|
194
|
+
# @return [Array<Google::Apis::LoggingV2beta1::LogLine>]
|
195
|
+
attr_accessor :line
|
196
|
+
|
197
|
+
# Referrer URL of request.
|
198
|
+
# Corresponds to the JSON property `referrer`
|
199
|
+
# @return [String]
|
200
|
+
attr_accessor :referrer
|
201
|
+
|
202
|
+
# Queue name of the request, in the case of an offline request.
|
203
|
+
# Corresponds to the JSON property `taskQueueName`
|
204
|
+
# @return [String]
|
205
|
+
attr_accessor :task_queue_name
|
48
206
|
|
49
207
|
def initialize(**args)
|
50
208
|
update!(**args)
|
@@ -52,152 +210,132 @@ module Google
|
|
52
210
|
|
53
211
|
# Update properties of this object
|
54
212
|
def update!(**args)
|
55
|
-
@
|
56
|
-
@
|
57
|
-
@
|
58
|
-
@
|
213
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
214
|
+
@nickname = args[:nickname] if args.key?(:nickname)
|
215
|
+
@status = args[:status] if args.key?(:status)
|
216
|
+
@pending_time = args[:pending_time] if args.key?(:pending_time)
|
217
|
+
@resource = args[:resource] if args.key?(:resource)
|
218
|
+
@task_name = args[:task_name] if args.key?(:task_name)
|
219
|
+
@url_map_entry = args[:url_map_entry] if args.key?(:url_map_entry)
|
220
|
+
@instance_index = args[:instance_index] if args.key?(:instance_index)
|
221
|
+
@finished = args[:finished] if args.key?(:finished)
|
222
|
+
@host = args[:host] if args.key?(:host)
|
223
|
+
@http_version = args[:http_version] if args.key?(:http_version)
|
224
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
225
|
+
@latency = args[:latency] if args.key?(:latency)
|
226
|
+
@ip = args[:ip] if args.key?(:ip)
|
227
|
+
@app_id = args[:app_id] if args.key?(:app_id)
|
228
|
+
@app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release)
|
229
|
+
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
230
|
+
@cost = args[:cost] if args.key?(:cost)
|
231
|
+
@instance_id = args[:instance_id] if args.key?(:instance_id)
|
232
|
+
@mega_cycles = args[:mega_cycles] if args.key?(:mega_cycles)
|
233
|
+
@first = args[:first] if args.key?(:first)
|
234
|
+
@version_id = args[:version_id] if args.key?(:version_id)
|
235
|
+
@module_id = args[:module_id] if args.key?(:module_id)
|
236
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
237
|
+
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
238
|
+
@was_loading_request = args[:was_loading_request] if args.key?(:was_loading_request)
|
239
|
+
@source_reference = args[:source_reference] if args.key?(:source_reference)
|
240
|
+
@response_size = args[:response_size] if args.key?(:response_size)
|
241
|
+
@trace_id = args[:trace_id] if args.key?(:trace_id)
|
242
|
+
@line = args[:line] if args.key?(:line)
|
243
|
+
@referrer = args[:referrer] if args.key?(:referrer)
|
244
|
+
@task_queue_name = args[:task_queue_name] if args.key?(:task_queue_name)
|
59
245
|
end
|
60
246
|
end
|
61
247
|
|
62
|
-
# Result returned from
|
63
|
-
class
|
248
|
+
# Result returned from ListMonitoredResourceDescriptors.
|
249
|
+
class ListMonitoredResourceDescriptorsResponse
|
64
250
|
include Google::Apis::Core::Hashable
|
65
251
|
|
66
|
-
#
|
67
|
-
# Corresponds to the JSON property `metrics`
|
68
|
-
# @return [Array<Google::Apis::LoggingV2beta1::LogMetric>]
|
69
|
-
attr_accessor :metrics
|
70
|
-
|
71
|
-
# If there might be more results than appear in this response, then
|
252
|
+
# If there might be more results than those appearing in this response, then
|
72
253
|
# nextPageToken is included. To get the next set of results, call this method
|
73
254
|
# again using the value of nextPageToken as pageToken.
|
74
255
|
# Corresponds to the JSON property `nextPageToken`
|
75
256
|
# @return [String]
|
76
257
|
attr_accessor :next_page_token
|
77
258
|
|
259
|
+
# A list of resource descriptors.
|
260
|
+
# Corresponds to the JSON property `resourceDescriptors`
|
261
|
+
# @return [Array<Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor>]
|
262
|
+
attr_accessor :resource_descriptors
|
263
|
+
|
78
264
|
def initialize(**args)
|
79
265
|
update!(**args)
|
80
266
|
end
|
81
267
|
|
82
268
|
# Update properties of this object
|
83
269
|
def update!(**args)
|
84
|
-
@metrics = args[:metrics] if args.key?(:metrics)
|
85
270
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
271
|
+
@resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors)
|
86
272
|
end
|
87
273
|
end
|
88
274
|
|
89
|
-
#
|
90
|
-
|
275
|
+
# A reference to a particular snapshot of the source tree used to build and
|
276
|
+
# deploy an application.
|
277
|
+
class SourceReference
|
91
278
|
include Google::Apis::Core::Hashable
|
92
279
|
|
93
|
-
#
|
94
|
-
# "
|
95
|
-
#
|
96
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
97
|
-
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
98
|
-
# [LOG_ID] must be URL-encoded within log_name. Example: "organizations/
|
99
|
-
# 1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must
|
100
|
-
# be less than 512 characters long and can only include the following characters:
|
101
|
-
# upper and lower case alphanumeric characters, forward-slash, underscore,
|
102
|
-
# hyphen, and period.For backward compatibility, if log_name begins with a
|
103
|
-
# forward-slash, such as /projects/..., then the log entry is ingested as usual
|
104
|
-
# but the forward-slash is removed. Listing the log entry will not show the
|
105
|
-
# leading slash and filtering for a log name with a leading slash will never
|
106
|
-
# return any results.
|
107
|
-
# Corresponds to the JSON property `logName`
|
280
|
+
# The canonical and persistent identifier of the deployed revision. Example (git)
|
281
|
+
# : "0035781c50ec7aa23385dc841529ce8a4b70db1b"
|
282
|
+
# Corresponds to the JSON property `revisionId`
|
108
283
|
# @return [String]
|
109
|
-
attr_accessor :
|
110
|
-
|
111
|
-
# An object representing a resource that can be used for monitoring, logging,
|
112
|
-
# billing, or other purposes. Examples include virtual machine instances,
|
113
|
-
# databases, and storage devices such as disks. The type field identifies a
|
114
|
-
# MonitoredResourceDescriptor object that describes the resource's schema.
|
115
|
-
# Information in the labels field identifies the actual resource and its
|
116
|
-
# attributes according to the schema. For example, a particular Compute Engine
|
117
|
-
# VM instance could be represented by the following object, because the
|
118
|
-
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
119
|
-
# zone":
|
120
|
-
# ` "type": "gce_instance",
|
121
|
-
# "labels": ` "instance_id": "12345678901234",
|
122
|
-
# "zone": "us-central1-a" ``
|
123
|
-
# Corresponds to the JSON property `resource`
|
124
|
-
# @return [Google::Apis::LoggingV2beta1::MonitoredResource]
|
125
|
-
attr_accessor :resource
|
126
|
-
|
127
|
-
# A common proto for logging HTTP requests. Only contains semantics defined by
|
128
|
-
# the HTTP specification. Product-specific logging information MUST be defined
|
129
|
-
# in a separate message.
|
130
|
-
# Corresponds to the JSON property `httpRequest`
|
131
|
-
# @return [Google::Apis::LoggingV2beta1::HttpRequest]
|
132
|
-
attr_accessor :http_request
|
133
|
-
|
134
|
-
# The log entry payload, represented as a structure that is expressed as a JSON
|
135
|
-
# object.
|
136
|
-
# Corresponds to the JSON property `jsonPayload`
|
137
|
-
# @return [Hash<String,Object>]
|
138
|
-
attr_accessor :json_payload
|
139
|
-
|
140
|
-
# Additional information about a potentially long-running operation with which a
|
141
|
-
# log entry is associated.
|
142
|
-
# Corresponds to the JSON property `operation`
|
143
|
-
# @return [Google::Apis::LoggingV2beta1::LogEntryOperation]
|
144
|
-
attr_accessor :operation
|
284
|
+
attr_accessor :revision_id
|
145
285
|
|
146
|
-
# Optional. A
|
147
|
-
#
|
148
|
-
#
|
149
|
-
# removed. If omitted in new log entries, then Stackdriver Logging will insert
|
150
|
-
# its own unique identifier. The insert_id is used to order log entries that
|
151
|
-
# have the same timestamp value.
|
152
|
-
# Corresponds to the JSON property `insertId`
|
286
|
+
# Optional. A URI string identifying the repository. Example: "https://github.
|
287
|
+
# com/GoogleCloudPlatform/kubernetes.git"
|
288
|
+
# Corresponds to the JSON property `repository`
|
153
289
|
# @return [String]
|
154
|
-
attr_accessor :
|
290
|
+
attr_accessor :repository
|
155
291
|
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
attr_accessor :text_payload
|
292
|
+
def initialize(**args)
|
293
|
+
update!(**args)
|
294
|
+
end
|
160
295
|
|
161
|
-
#
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
296
|
+
# Update properties of this object
|
297
|
+
def update!(**args)
|
298
|
+
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
299
|
+
@repository = args[:repository] if args.key?(:repository)
|
300
|
+
end
|
301
|
+
end
|
166
302
|
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
attr_accessor :labels
|
303
|
+
# Describes a logs-based metric. The value of the metric is the number of log
|
304
|
+
# entries that match a logs filter in a given time interval.
|
305
|
+
class LogMetric
|
306
|
+
include Google::Apis::Core::Hashable
|
172
307
|
|
173
|
-
#
|
174
|
-
#
|
175
|
-
#
|
176
|
-
#
|
177
|
-
# Corresponds to the JSON property `trace`
|
308
|
+
# Output only. The API version that created or updated this metric. The version
|
309
|
+
# also dictates the syntax of the filter expression. When a value for this field
|
310
|
+
# is missing, the default value of V2 should be assumed.
|
311
|
+
# Corresponds to the JSON property `version`
|
178
312
|
# @return [String]
|
179
|
-
attr_accessor :
|
313
|
+
attr_accessor :version
|
180
314
|
|
181
|
-
#
|
182
|
-
#
|
183
|
-
#
|
315
|
+
# Required. An advanced logs filter which is used to match log entries. Example:
|
316
|
+
# "resource.type=gae_app AND severity>=ERROR"
|
317
|
+
# The maximum length of the filter is 20000 characters.
|
318
|
+
# Corresponds to the JSON property `filter`
|
184
319
|
# @return [String]
|
185
|
-
attr_accessor :
|
320
|
+
attr_accessor :filter
|
186
321
|
|
187
|
-
#
|
188
|
-
#
|
189
|
-
#
|
190
|
-
#
|
191
|
-
|
322
|
+
# Required. The client-assigned metric identifier. Examples: "error_count", "
|
323
|
+
# nginx/requests".Metric identifiers are limited to 100 characters and can
|
324
|
+
# include only the following characters: A-Z, a-z, 0-9, and the special
|
325
|
+
# characters _-.,+!*',()%/. The forward-slash character (/) denotes a hierarchy
|
326
|
+
# of name pieces, and it cannot be the first character of the name.The metric
|
327
|
+
# identifier in this field must not be URL-encoded (https://en.wikipedia.org/
|
328
|
+
# wiki/Percent-encoding). However, when the metric identifier appears as the [
|
329
|
+
# METRIC_ID] part of a metric_name API parameter, then the metric identifier
|
330
|
+
# must be URL-encoded. Example: "projects/my-project/metrics/nginx%2Frequests".
|
331
|
+
# Corresponds to the JSON property `name`
|
332
|
+
# @return [String]
|
333
|
+
attr_accessor :name
|
192
334
|
|
193
|
-
# Optional.
|
194
|
-
#
|
195
|
-
# received. Stackdriver Logging might reject log entries whose time stamps are
|
196
|
-
# more than a couple of hours in the future. Log entries with time stamps in the
|
197
|
-
# past are accepted.
|
198
|
-
# Corresponds to the JSON property `timestamp`
|
335
|
+
# Optional. A description of this metric, which is used in documentation.
|
336
|
+
# Corresponds to the JSON property `description`
|
199
337
|
# @return [String]
|
200
|
-
attr_accessor :
|
338
|
+
attr_accessor :description
|
201
339
|
|
202
340
|
def initialize(**args)
|
203
341
|
update!(**args)
|
@@ -205,133 +343,97 @@ module Google
|
|
205
343
|
|
206
344
|
# Update properties of this object
|
207
345
|
def update!(**args)
|
208
|
-
@
|
209
|
-
@
|
210
|
-
@
|
211
|
-
@
|
212
|
-
@operation = args[:operation] if args.key?(:operation)
|
213
|
-
@insert_id = args[:insert_id] if args.key?(:insert_id)
|
214
|
-
@text_payload = args[:text_payload] if args.key?(:text_payload)
|
215
|
-
@proto_payload = args[:proto_payload] if args.key?(:proto_payload)
|
216
|
-
@labels = args[:labels] if args.key?(:labels)
|
217
|
-
@trace = args[:trace] if args.key?(:trace)
|
218
|
-
@severity = args[:severity] if args.key?(:severity)
|
219
|
-
@source_location = args[:source_location] if args.key?(:source_location)
|
220
|
-
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
346
|
+
@version = args[:version] if args.key?(:version)
|
347
|
+
@filter = args[:filter] if args.key?(:filter)
|
348
|
+
@name = args[:name] if args.key?(:name)
|
349
|
+
@description = args[:description] if args.key?(:description)
|
221
350
|
end
|
222
351
|
end
|
223
352
|
|
224
|
-
#
|
225
|
-
#
|
226
|
-
|
227
|
-
# service Foo `
|
228
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
229
|
-
# `
|
230
|
-
# The JSON representation for Empty is empty JSON object ``.
|
231
|
-
class Empty
|
353
|
+
# Additional information about a potentially long-running operation with which a
|
354
|
+
# log entry is associated.
|
355
|
+
class LogEntryOperation
|
232
356
|
include Google::Apis::Core::Hashable
|
233
357
|
|
358
|
+
# Optional. Set this to True if this is the last log entry in the operation.
|
359
|
+
# Corresponds to the JSON property `last`
|
360
|
+
# @return [Boolean]
|
361
|
+
attr_accessor :last
|
362
|
+
alias_method :last?, :last
|
363
|
+
|
364
|
+
# Optional. An arbitrary operation identifier. Log entries with the same
|
365
|
+
# identifier are assumed to be part of the same operation.
|
366
|
+
# Corresponds to the JSON property `id`
|
367
|
+
# @return [String]
|
368
|
+
attr_accessor :id
|
369
|
+
|
370
|
+
# Optional. An arbitrary producer identifier. The combination of id and producer
|
371
|
+
# must be globally unique. Examples for producer: "MyDivision.MyBigCompany.com",
|
372
|
+
# "github.com/MyProject/MyApplication".
|
373
|
+
# Corresponds to the JSON property `producer`
|
374
|
+
# @return [String]
|
375
|
+
attr_accessor :producer
|
376
|
+
|
377
|
+
# Optional. Set this to True if this is the first log entry in the operation.
|
378
|
+
# Corresponds to the JSON property `first`
|
379
|
+
# @return [Boolean]
|
380
|
+
attr_accessor :first
|
381
|
+
alias_method :first?, :first
|
382
|
+
|
234
383
|
def initialize(**args)
|
235
384
|
update!(**args)
|
236
385
|
end
|
237
386
|
|
238
387
|
# Update properties of this object
|
239
388
|
def update!(**args)
|
389
|
+
@last = args[:last] if args.key?(:last)
|
390
|
+
@id = args[:id] if args.key?(:id)
|
391
|
+
@producer = args[:producer] if args.key?(:producer)
|
392
|
+
@first = args[:first] if args.key?(:first)
|
240
393
|
end
|
241
394
|
end
|
242
395
|
|
243
|
-
#
|
244
|
-
class
|
396
|
+
# Result returned from WriteLogEntries. empty
|
397
|
+
class WriteLogEntriesResponse
|
245
398
|
include Google::Apis::Core::Hashable
|
246
399
|
|
247
|
-
# Line within the source file.
|
248
|
-
# Corresponds to the JSON property `line`
|
249
|
-
# @return [String]
|
250
|
-
attr_accessor :line
|
251
|
-
|
252
|
-
# Source file name. Depending on the runtime environment, this might be a simple
|
253
|
-
# name or a fully-qualified name.
|
254
|
-
# Corresponds to the JSON property `file`
|
255
|
-
# @return [String]
|
256
|
-
attr_accessor :file
|
257
|
-
|
258
|
-
# Human-readable name of the function or method being invoked, with optional
|
259
|
-
# context such as the class or package name. This information is used in
|
260
|
-
# contexts such as the logs viewer, where a file and line number are less
|
261
|
-
# meaningful. The format can vary by language. For example: qual.if.ied.Class.
|
262
|
-
# method (Java), dir/package.func (Go), function (Python).
|
263
|
-
# Corresponds to the JSON property `functionName`
|
264
|
-
# @return [String]
|
265
|
-
attr_accessor :function_name
|
266
|
-
|
267
400
|
def initialize(**args)
|
268
401
|
update!(**args)
|
269
402
|
end
|
270
403
|
|
271
404
|
# Update properties of this object
|
272
405
|
def update!(**args)
|
273
|
-
@line = args[:line] if args.key?(:line)
|
274
|
-
@file = args[:file] if args.key?(:file)
|
275
|
-
@function_name = args[:function_name] if args.key?(:function_name)
|
276
406
|
end
|
277
407
|
end
|
278
408
|
|
279
|
-
#
|
280
|
-
|
409
|
+
# An object representing a resource that can be used for monitoring, logging,
|
410
|
+
# billing, or other purposes. Examples include virtual machine instances,
|
411
|
+
# databases, and storage devices such as disks. The type field identifies a
|
412
|
+
# MonitoredResourceDescriptor object that describes the resource's schema.
|
413
|
+
# Information in the labels field identifies the actual resource and its
|
414
|
+
# attributes according to the schema. For example, a particular Compute Engine
|
415
|
+
# VM instance could be represented by the following object, because the
|
416
|
+
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
417
|
+
# zone":
|
418
|
+
# ` "type": "gce_instance",
|
419
|
+
# "labels": ` "instance_id": "12345678901234",
|
420
|
+
# "zone": "us-central1-a" ``
|
421
|
+
class MonitoredResource
|
281
422
|
include Google::Apis::Core::Hashable
|
282
423
|
|
283
|
-
#
|
284
|
-
#
|
285
|
-
#
|
286
|
-
#
|
287
|
-
#
|
288
|
-
|
289
|
-
attr_accessor :page_token
|
290
|
-
|
291
|
-
# Optional. The maximum number of results to return from this request. Non-
|
292
|
-
# positive values are ignored. The presence of next_page_token in the response
|
293
|
-
# indicates that more results might be available.
|
294
|
-
# Corresponds to the JSON property `pageSize`
|
295
|
-
# @return [Fixnum]
|
296
|
-
attr_accessor :page_size
|
297
|
-
|
298
|
-
# Optional. How the results should be sorted. Presently, the only permitted
|
299
|
-
# values are "timestamp asc" (default) and "timestamp desc". The first option
|
300
|
-
# returns entries in order of increasing values of LogEntry.timestamp (oldest
|
301
|
-
# first), and the second option returns entries in order of decreasing
|
302
|
-
# timestamps (newest first). Entries with equal timestamps are returned in order
|
303
|
-
# of their insert_id values.
|
304
|
-
# Corresponds to the JSON property `orderBy`
|
305
|
-
# @return [String]
|
306
|
-
attr_accessor :order_by
|
307
|
-
|
308
|
-
# Required. Names of one or more parent resources from which to retrieve log
|
309
|
-
# entries:
|
310
|
-
# "projects/[PROJECT_ID]"
|
311
|
-
# "organizations/[ORGANIZATION_ID]"
|
312
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
313
|
-
# "folders/[FOLDER_ID]"
|
314
|
-
# Projects listed in the project_ids field are added to this list.
|
315
|
-
# Corresponds to the JSON property `resourceNames`
|
316
|
-
# @return [Array<String>]
|
317
|
-
attr_accessor :resource_names
|
424
|
+
# Required. Values for all of the labels listed in the associated monitored
|
425
|
+
# resource descriptor. For example, Cloud SQL databases use the labels "
|
426
|
+
# database_id" and "zone".
|
427
|
+
# Corresponds to the JSON property `labels`
|
428
|
+
# @return [Hash<String,String>]
|
429
|
+
attr_accessor :labels
|
318
430
|
|
319
|
-
#
|
320
|
-
#
|
321
|
-
#
|
322
|
-
#
|
323
|
-
# to return no results. The maximum length of the filter is 20000 characters.
|
324
|
-
# Corresponds to the JSON property `filter`
|
431
|
+
# Required. The monitored resource type. This field must match the type field of
|
432
|
+
# a MonitoredResourceDescriptor object. For example, the type of a Cloud SQL
|
433
|
+
# database is "cloudsql_database".
|
434
|
+
# Corresponds to the JSON property `type`
|
325
435
|
# @return [String]
|
326
|
-
attr_accessor :
|
327
|
-
|
328
|
-
# Deprecated. Use resource_names instead. One or more project identifiers or
|
329
|
-
# project numbers from which to retrieve log entries. Example: "my-project-1A".
|
330
|
-
# If present, these project identifiers are converted to resource name format
|
331
|
-
# and added to the list of resources in resource_names.
|
332
|
-
# Corresponds to the JSON property `projectIds`
|
333
|
-
# @return [Array<String>]
|
334
|
-
attr_accessor :project_ids
|
436
|
+
attr_accessor :type
|
335
437
|
|
336
438
|
def initialize(**args)
|
337
439
|
update!(**args)
|
@@ -339,196 +441,159 @@ module Google
|
|
339
441
|
|
340
442
|
# Update properties of this object
|
341
443
|
def update!(**args)
|
342
|
-
@
|
343
|
-
@
|
344
|
-
@order_by = args[:order_by] if args.key?(:order_by)
|
345
|
-
@resource_names = args[:resource_names] if args.key?(:resource_names)
|
346
|
-
@filter = args[:filter] if args.key?(:filter)
|
347
|
-
@project_ids = args[:project_ids] if args.key?(:project_ids)
|
444
|
+
@labels = args[:labels] if args.key?(:labels)
|
445
|
+
@type = args[:type] if args.key?(:type)
|
348
446
|
end
|
349
447
|
end
|
350
448
|
|
351
|
-
#
|
352
|
-
|
353
|
-
class RequestLog
|
449
|
+
# The parameters to WriteLogEntries.
|
450
|
+
class WriteLogEntriesRequest
|
354
451
|
include Google::Apis::Core::Hashable
|
355
452
|
|
356
|
-
# A
|
357
|
-
#
|
358
|
-
#
|
359
|
-
|
360
|
-
|
361
|
-
#
|
362
|
-
#
|
363
|
-
#
|
364
|
-
|
365
|
-
|
366
|
-
# Queue name of the request, in the case of an offline request.
|
367
|
-
# Corresponds to the JSON property `taskQueueName`
|
368
|
-
# @return [String]
|
369
|
-
attr_accessor :task_queue_name
|
370
|
-
|
371
|
-
# Globally unique identifier for a request, which is based on the request start
|
372
|
-
# time. Request IDs for requests which started later will compare greater as
|
373
|
-
# strings than those for requests which started earlier.
|
374
|
-
# Corresponds to the JSON property `requestId`
|
453
|
+
# Optional. A default log resource name that is assigned to all log entries in
|
454
|
+
# entries that do not specify a value for log_name:
|
455
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
456
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
457
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
458
|
+
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
459
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
460
|
+
# or "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
461
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
462
|
+
# Corresponds to the JSON property `logName`
|
375
463
|
# @return [String]
|
376
|
-
attr_accessor :
|
464
|
+
attr_accessor :log_name
|
377
465
|
|
378
|
-
# The
|
379
|
-
#
|
380
|
-
#
|
381
|
-
#
|
382
|
-
#
|
383
|
-
#
|
384
|
-
#
|
385
|
-
|
466
|
+
# Required. The log entries to write. Values supplied for the fields log_name,
|
467
|
+
# resource, and labels in this entries.write request are inserted into those log
|
468
|
+
# entries in this list that do not provide their own values.Stackdriver Logging
|
469
|
+
# also creates and inserts values for timestamp and insert_id if the entries do
|
470
|
+
# not provide them. The created insert_id for the N'th entry in this list will
|
471
|
+
# be greater than earlier entries and less than later entries. Otherwise, the
|
472
|
+
# order of log entries in this list does not matter.To improve throughput and to
|
473
|
+
# avoid exceeding the quota limit for calls to entries.write, you should write
|
474
|
+
# multiple log entries at once rather than calling this method for each
|
475
|
+
# individual log entry.
|
476
|
+
# Corresponds to the JSON property `entries`
|
477
|
+
# @return [Array<Google::Apis::LoggingV2beta1::LogEntry>]
|
478
|
+
attr_accessor :entries
|
386
479
|
|
387
|
-
#
|
388
|
-
#
|
389
|
-
#
|
390
|
-
|
480
|
+
# Optional. Whether valid entries should be written even if some other entries
|
481
|
+
# fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any entry is not
|
482
|
+
# written, then the response status is the error associated with one of the
|
483
|
+
# failed entries and the response includes error details keyed by the entries'
|
484
|
+
# zero-based index in the entries.write method.
|
485
|
+
# Corresponds to the JSON property `partialSuccess`
|
486
|
+
# @return [Boolean]
|
487
|
+
attr_accessor :partial_success
|
488
|
+
alias_method :partial_success?, :partial_success
|
391
489
|
|
392
|
-
#
|
393
|
-
#
|
394
|
-
#
|
395
|
-
|
490
|
+
# Optional. Default labels that are added to the labels field of all log entries
|
491
|
+
# in entries. If a log entry already has a label with the same key as a label in
|
492
|
+
# this parameter, then the log entry's label is not changed. See LogEntry.
|
493
|
+
# Corresponds to the JSON property `labels`
|
494
|
+
# @return [Hash<String,String>]
|
495
|
+
attr_accessor :labels
|
396
496
|
|
397
|
-
#
|
398
|
-
#
|
399
|
-
#
|
400
|
-
#
|
497
|
+
# An object representing a resource that can be used for monitoring, logging,
|
498
|
+
# billing, or other purposes. Examples include virtual machine instances,
|
499
|
+
# databases, and storage devices such as disks. The type field identifies a
|
500
|
+
# MonitoredResourceDescriptor object that describes the resource's schema.
|
501
|
+
# Information in the labels field identifies the actual resource and its
|
502
|
+
# attributes according to the schema. For example, a particular Compute Engine
|
503
|
+
# VM instance could be represented by the following object, because the
|
504
|
+
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
505
|
+
# zone":
|
506
|
+
# ` "type": "gce_instance",
|
507
|
+
# "labels": ` "instance_id": "12345678901234",
|
508
|
+
# "zone": "us-central1-a" ``
|
401
509
|
# Corresponds to the JSON property `resource`
|
402
|
-
# @return [
|
510
|
+
# @return [Google::Apis::LoggingV2beta1::MonitoredResource]
|
403
511
|
attr_accessor :resource
|
404
512
|
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
attr_accessor :task_name
|
409
|
-
|
410
|
-
# File or class that handled the request.
|
411
|
-
# Corresponds to the JSON property `urlMapEntry`
|
412
|
-
# @return [String]
|
413
|
-
attr_accessor :url_map_entry
|
414
|
-
|
415
|
-
# If the instance processing this request belongs to a manually scaled module,
|
416
|
-
# then this is the 0-based index of the instance. Otherwise, this value is -1.
|
417
|
-
# Corresponds to the JSON property `instanceIndex`
|
418
|
-
# @return [Fixnum]
|
419
|
-
attr_accessor :instance_index
|
420
|
-
|
421
|
-
# Internet host and port number of the resource being requested.
|
422
|
-
# Corresponds to the JSON property `host`
|
423
|
-
# @return [String]
|
424
|
-
attr_accessor :host
|
425
|
-
|
426
|
-
# Whether this request is finished or active.
|
427
|
-
# Corresponds to the JSON property `finished`
|
428
|
-
# @return [Boolean]
|
429
|
-
attr_accessor :finished
|
430
|
-
alias_method :finished?, :finished
|
431
|
-
|
432
|
-
# HTTP version of request. Example: "HTTP/1.1".
|
433
|
-
# Corresponds to the JSON property `httpVersion`
|
434
|
-
# @return [String]
|
435
|
-
attr_accessor :http_version
|
436
|
-
|
437
|
-
# Time when the request started.
|
438
|
-
# Corresponds to the JSON property `startTime`
|
439
|
-
# @return [String]
|
440
|
-
attr_accessor :start_time
|
441
|
-
|
442
|
-
# Latency of the request.
|
443
|
-
# Corresponds to the JSON property `latency`
|
444
|
-
# @return [String]
|
445
|
-
attr_accessor :latency
|
446
|
-
|
447
|
-
# Origin IP address.
|
448
|
-
# Corresponds to the JSON property `ip`
|
449
|
-
# @return [String]
|
450
|
-
attr_accessor :ip
|
451
|
-
|
452
|
-
# Application that handled this request.
|
453
|
-
# Corresponds to the JSON property `appId`
|
454
|
-
# @return [String]
|
455
|
-
attr_accessor :app_id
|
456
|
-
|
457
|
-
# App Engine release version.
|
458
|
-
# Corresponds to the JSON property `appEngineRelease`
|
459
|
-
# @return [String]
|
460
|
-
attr_accessor :app_engine_release
|
461
|
-
|
462
|
-
# Request method. Example: "GET", "HEAD", "PUT", "POST", "DELETE".
|
463
|
-
# Corresponds to the JSON property `method`
|
464
|
-
# @return [String]
|
465
|
-
attr_accessor :method_prop
|
466
|
-
|
467
|
-
# An indication of the relative cost of serving this request.
|
468
|
-
# Corresponds to the JSON property `cost`
|
469
|
-
# @return [Float]
|
470
|
-
attr_accessor :cost
|
471
|
-
|
472
|
-
# An identifier for the instance that handled the request.
|
473
|
-
# Corresponds to the JSON property `instanceId`
|
474
|
-
# @return [String]
|
475
|
-
attr_accessor :instance_id
|
513
|
+
def initialize(**args)
|
514
|
+
update!(**args)
|
515
|
+
end
|
476
516
|
|
477
|
-
#
|
478
|
-
|
479
|
-
|
480
|
-
|
517
|
+
# Update properties of this object
|
518
|
+
def update!(**args)
|
519
|
+
@log_name = args[:log_name] if args.key?(:log_name)
|
520
|
+
@entries = args[:entries] if args.key?(:entries)
|
521
|
+
@partial_success = args[:partial_success] if args.key?(:partial_success)
|
522
|
+
@labels = args[:labels] if args.key?(:labels)
|
523
|
+
@resource = args[:resource] if args.key?(:resource)
|
524
|
+
end
|
525
|
+
end
|
481
526
|
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
527
|
+
# Describes a sink used to export log entries to one of the following
|
528
|
+
# destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
|
529
|
+
# Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
|
530
|
+
# The sink must be created within a project, organization, billing account, or
|
531
|
+
# folder.
|
532
|
+
class LogSink
|
533
|
+
include Google::Apis::Core::Hashable
|
489
534
|
|
490
|
-
#
|
491
|
-
#
|
535
|
+
# Optional. The time at which this sink will begin exporting log entries. Log
|
536
|
+
# entries are exported only if their timestamp is not earlier than the start
|
537
|
+
# time. The default value of this field is the time the sink is created or
|
538
|
+
# updated.
|
539
|
+
# Corresponds to the JSON property `startTime`
|
492
540
|
# @return [String]
|
493
|
-
attr_accessor :
|
541
|
+
attr_accessor :start_time
|
494
542
|
|
495
|
-
#
|
496
|
-
#
|
543
|
+
# Output only. An IAM identity—a service account or group—under
|
544
|
+
# which Stackdriver Logging writes the exported log entries to the sink's
|
545
|
+
# destination. This field is set by sinks.create and sinks.update, based on the
|
546
|
+
# setting of unique_writer_identity in those methods.Until you grant this
|
547
|
+
# identity write-access to the destination, log entry exports from this sink
|
548
|
+
# will fail. For more information, see Granting access for a resource. Consult
|
549
|
+
# the destination service's documentation to determine the appropriate IAM roles
|
550
|
+
# to assign to the identity.
|
551
|
+
# Corresponds to the JSON property `writerIdentity`
|
497
552
|
# @return [String]
|
498
|
-
attr_accessor :
|
553
|
+
attr_accessor :writer_identity
|
499
554
|
|
500
|
-
#
|
501
|
-
#
|
555
|
+
# Optional. The log entry format to use for this sink's exported log entries.
|
556
|
+
# The v2 format is used by default. The v1 format is deprecated and should be
|
557
|
+
# used only as part of a migration effort to v2. See Migration to the v2 API.
|
558
|
+
# Corresponds to the JSON property `outputVersionFormat`
|
502
559
|
# @return [String]
|
503
|
-
attr_accessor :
|
560
|
+
attr_accessor :output_version_format
|
504
561
|
|
505
|
-
#
|
506
|
-
#
|
562
|
+
# Required. The client-assigned sink identifier, unique within the project.
|
563
|
+
# Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100
|
564
|
+
# characters and can include only the following characters: upper and lower-case
|
565
|
+
# alphanumeric characters, underscores, hyphens, and periods.
|
566
|
+
# Corresponds to the JSON property `name`
|
507
567
|
# @return [String]
|
508
|
-
attr_accessor :
|
509
|
-
|
510
|
-
# Whether this was a loading request for the instance.
|
511
|
-
# Corresponds to the JSON property `wasLoadingRequest`
|
512
|
-
# @return [Boolean]
|
513
|
-
attr_accessor :was_loading_request
|
514
|
-
alias_method :was_loading_request?, :was_loading_request
|
568
|
+
attr_accessor :name
|
515
569
|
|
516
|
-
#
|
517
|
-
#
|
518
|
-
#
|
519
|
-
#
|
520
|
-
#
|
521
|
-
|
570
|
+
# Required. The export destination:
|
571
|
+
# "storage.googleapis.com/[GCS_BUCKET]"
|
572
|
+
# "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
|
573
|
+
# "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
|
574
|
+
# The sink's writer_identity, set when the sink is created, must have permission
|
575
|
+
# to write to the destination or else the log entries are not exported. For more
|
576
|
+
# information, see Exporting Logs With Sinks.
|
577
|
+
# Corresponds to the JSON property `destination`
|
578
|
+
# @return [String]
|
579
|
+
attr_accessor :destination
|
522
580
|
|
523
|
-
#
|
524
|
-
#
|
581
|
+
# Optional. An advanced logs filter. The only exported log entries are those
|
582
|
+
# that are in the resource owning the sink and that match the filter. The filter
|
583
|
+
# must use the log entry format specified by the output_version_format parameter.
|
584
|
+
# For example, in the v2 format:
|
585
|
+
# logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
|
586
|
+
# Corresponds to the JSON property `filter`
|
525
587
|
# @return [String]
|
526
|
-
attr_accessor :
|
588
|
+
attr_accessor :filter
|
527
589
|
|
528
|
-
#
|
529
|
-
#
|
590
|
+
# Optional. The time at which this sink will stop exporting log entries. Log
|
591
|
+
# entries are exported only if their timestamp is earlier than the end time. If
|
592
|
+
# this field is not supplied, there is no end time. If both a start time and an
|
593
|
+
# end time are provided, then the end time must be later than the start time.
|
594
|
+
# Corresponds to the JSON property `endTime`
|
530
595
|
# @return [String]
|
531
|
-
attr_accessor :
|
596
|
+
attr_accessor :end_time
|
532
597
|
|
533
598
|
def initialize(**args)
|
534
599
|
update!(**args)
|
@@ -536,50 +601,20 @@ module Google
|
|
536
601
|
|
537
602
|
# Update properties of this object
|
538
603
|
def update!(**args)
|
539
|
-
@line = args[:line] if args.key?(:line)
|
540
|
-
@referrer = args[:referrer] if args.key?(:referrer)
|
541
|
-
@task_queue_name = args[:task_queue_name] if args.key?(:task_queue_name)
|
542
|
-
@request_id = args[:request_id] if args.key?(:request_id)
|
543
|
-
@nickname = args[:nickname] if args.key?(:nickname)
|
544
|
-
@status = args[:status] if args.key?(:status)
|
545
|
-
@pending_time = args[:pending_time] if args.key?(:pending_time)
|
546
|
-
@resource = args[:resource] if args.key?(:resource)
|
547
|
-
@task_name = args[:task_name] if args.key?(:task_name)
|
548
|
-
@url_map_entry = args[:url_map_entry] if args.key?(:url_map_entry)
|
549
|
-
@instance_index = args[:instance_index] if args.key?(:instance_index)
|
550
|
-
@host = args[:host] if args.key?(:host)
|
551
|
-
@finished = args[:finished] if args.key?(:finished)
|
552
|
-
@http_version = args[:http_version] if args.key?(:http_version)
|
553
604
|
@start_time = args[:start_time] if args.key?(:start_time)
|
554
|
-
@
|
555
|
-
@
|
556
|
-
@
|
557
|
-
@
|
558
|
-
@
|
559
|
-
@cost = args[:cost] if args.key?(:cost)
|
560
|
-
@instance_id = args[:instance_id] if args.key?(:instance_id)
|
561
|
-
@mega_cycles = args[:mega_cycles] if args.key?(:mega_cycles)
|
562
|
-
@first = args[:first] if args.key?(:first)
|
563
|
-
@version_id = args[:version_id] if args.key?(:version_id)
|
564
|
-
@module_id = args[:module_id] if args.key?(:module_id)
|
605
|
+
@writer_identity = args[:writer_identity] if args.key?(:writer_identity)
|
606
|
+
@output_version_format = args[:output_version_format] if args.key?(:output_version_format)
|
607
|
+
@name = args[:name] if args.key?(:name)
|
608
|
+
@destination = args[:destination] if args.key?(:destination)
|
609
|
+
@filter = args[:filter] if args.key?(:filter)
|
565
610
|
@end_time = args[:end_time] if args.key?(:end_time)
|
566
|
-
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
567
|
-
@was_loading_request = args[:was_loading_request] if args.key?(:was_loading_request)
|
568
|
-
@source_reference = args[:source_reference] if args.key?(:source_reference)
|
569
|
-
@response_size = args[:response_size] if args.key?(:response_size)
|
570
|
-
@trace_id = args[:trace_id] if args.key?(:trace_id)
|
571
611
|
end
|
572
612
|
end
|
573
613
|
|
574
|
-
# Result returned from
|
575
|
-
class
|
614
|
+
# Result returned from ListLogs.
|
615
|
+
class ListLogsResponse
|
576
616
|
include Google::Apis::Core::Hashable
|
577
617
|
|
578
|
-
# A list of resource descriptors.
|
579
|
-
# Corresponds to the JSON property `resourceDescriptors`
|
580
|
-
# @return [Array<Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor>]
|
581
|
-
attr_accessor :resource_descriptors
|
582
|
-
|
583
618
|
# If there might be more results than those appearing in this response, then
|
584
619
|
# nextPageToken is included. To get the next set of results, call this method
|
585
620
|
# again using the value of nextPageToken as pageToken.
|
@@ -587,141 +622,111 @@ module Google
|
|
587
622
|
# @return [String]
|
588
623
|
attr_accessor :next_page_token
|
589
624
|
|
625
|
+
# A list of log names. For example, "projects/my-project/syslog" or "
|
626
|
+
# organizations/123/cloudresourcemanager.googleapis.com%2Factivity".
|
627
|
+
# Corresponds to the JSON property `logNames`
|
628
|
+
# @return [Array<String>]
|
629
|
+
attr_accessor :log_names
|
630
|
+
|
590
631
|
def initialize(**args)
|
591
632
|
update!(**args)
|
592
633
|
end
|
593
634
|
|
594
635
|
# Update properties of this object
|
595
636
|
def update!(**args)
|
596
|
-
@resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors)
|
597
637
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
638
|
+
@log_names = args[:log_names] if args.key?(:log_names)
|
598
639
|
end
|
599
640
|
end
|
600
641
|
|
601
|
-
# A
|
602
|
-
#
|
603
|
-
|
642
|
+
# A common proto for logging HTTP requests. Only contains semantics defined by
|
643
|
+
# the HTTP specification. Product-specific logging information MUST be defined
|
644
|
+
# in a separate message.
|
645
|
+
class HttpRequest
|
604
646
|
include Google::Apis::Core::Hashable
|
605
647
|
|
606
|
-
#
|
607
|
-
#
|
608
|
-
# Corresponds to the JSON property `
|
609
|
-
# @return [String]
|
610
|
-
attr_accessor :repository
|
611
|
-
|
612
|
-
# The canonical and persistent identifier of the deployed revision. Example (git)
|
613
|
-
# : "0035781c50ec7aa23385dc841529ce8a4b70db1b"
|
614
|
-
# Corresponds to the JSON property `revisionId`
|
648
|
+
# The user agent sent by the client. Example: "Mozilla/4.0 (compatible; MSIE 6.0;
|
649
|
+
# Windows 98; Q312461; .NET CLR 1.0.3705)".
|
650
|
+
# Corresponds to the JSON property `userAgent`
|
615
651
|
# @return [String]
|
616
|
-
attr_accessor :
|
617
|
-
|
618
|
-
def initialize(**args)
|
619
|
-
update!(**args)
|
620
|
-
end
|
621
|
-
|
622
|
-
# Update properties of this object
|
623
|
-
def update!(**args)
|
624
|
-
@repository = args[:repository] if args.key?(:repository)
|
625
|
-
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
626
|
-
end
|
627
|
-
end
|
628
|
-
|
629
|
-
# Additional information about a potentially long-running operation with which a
|
630
|
-
# log entry is associated.
|
631
|
-
class LogEntryOperation
|
632
|
-
include Google::Apis::Core::Hashable
|
652
|
+
attr_accessor :user_agent
|
633
653
|
|
634
|
-
#
|
635
|
-
#
|
636
|
-
#
|
637
|
-
# Corresponds to the JSON property `producer`
|
654
|
+
# The request processing latency on the server, from the time the request was
|
655
|
+
# received until the response was sent.
|
656
|
+
# Corresponds to the JSON property `latency`
|
638
657
|
# @return [String]
|
639
|
-
attr_accessor :
|
640
|
-
|
641
|
-
# Optional. Set this to True if this is the first log entry in the operation.
|
642
|
-
# Corresponds to the JSON property `first`
|
643
|
-
# @return [Boolean]
|
644
|
-
attr_accessor :first
|
645
|
-
alias_method :first?, :first
|
658
|
+
attr_accessor :latency
|
646
659
|
|
647
|
-
#
|
648
|
-
#
|
649
|
-
#
|
650
|
-
|
651
|
-
|
660
|
+
# The number of HTTP response bytes inserted into cache. Set only when a cache
|
661
|
+
# fill was attempted.
|
662
|
+
# Corresponds to the JSON property `cacheFillBytes`
|
663
|
+
# @return [Fixnum]
|
664
|
+
attr_accessor :cache_fill_bytes
|
652
665
|
|
653
|
-
#
|
654
|
-
#
|
655
|
-
# Corresponds to the JSON property `id`
|
666
|
+
# The request method. Examples: "GET", "HEAD", "PUT", "POST".
|
667
|
+
# Corresponds to the JSON property `requestMethod`
|
656
668
|
# @return [String]
|
657
|
-
attr_accessor :
|
658
|
-
|
659
|
-
def initialize(**args)
|
660
|
-
update!(**args)
|
661
|
-
end
|
662
|
-
|
663
|
-
# Update properties of this object
|
664
|
-
def update!(**args)
|
665
|
-
@producer = args[:producer] if args.key?(:producer)
|
666
|
-
@first = args[:first] if args.key?(:first)
|
667
|
-
@last = args[:last] if args.key?(:last)
|
668
|
-
@id = args[:id] if args.key?(:id)
|
669
|
-
end
|
670
|
-
end
|
669
|
+
attr_accessor :request_method
|
671
670
|
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
671
|
+
# The size of the HTTP request message in bytes, including the request headers
|
672
|
+
# and the request body.
|
673
|
+
# Corresponds to the JSON property `requestSize`
|
674
|
+
# @return [Fixnum]
|
675
|
+
attr_accessor :request_size
|
676
676
|
|
677
|
-
#
|
678
|
-
#
|
679
|
-
#
|
680
|
-
#
|
681
|
-
|
682
|
-
# identifier in this field must not be URL-encoded (https://en.wikipedia.org/
|
683
|
-
# wiki/Percent-encoding). However, when the metric identifier appears as the [
|
684
|
-
# METRIC_ID] part of a metric_name API parameter, then the metric identifier
|
685
|
-
# must be URL-encoded. Example: "projects/my-project/metrics/nginx%2Frequests".
|
686
|
-
# Corresponds to the JSON property `name`
|
687
|
-
# @return [String]
|
688
|
-
attr_accessor :name
|
677
|
+
# The size of the HTTP response message sent back to the client, in bytes,
|
678
|
+
# including the response headers and the response body.
|
679
|
+
# Corresponds to the JSON property `responseSize`
|
680
|
+
# @return [Fixnum]
|
681
|
+
attr_accessor :response_size
|
689
682
|
|
690
|
-
#
|
691
|
-
#
|
683
|
+
# The scheme (http, https), the host name, the path and the query portion of the
|
684
|
+
# URL that was requested. Example: "http://example.com/some/info?color=red".
|
685
|
+
# Corresponds to the JSON property `requestUrl`
|
692
686
|
# @return [String]
|
693
|
-
attr_accessor :
|
687
|
+
attr_accessor :request_url
|
694
688
|
|
695
|
-
#
|
696
|
-
#
|
697
|
-
#
|
698
|
-
# Corresponds to the JSON property `version`
|
689
|
+
# The IP address (IPv4 or IPv6) of the origin server that the request was sent
|
690
|
+
# to.
|
691
|
+
# Corresponds to the JSON property `serverIp`
|
699
692
|
# @return [String]
|
700
|
-
attr_accessor :
|
701
|
-
|
702
|
-
#
|
703
|
-
# "
|
704
|
-
#
|
705
|
-
# Corresponds to the JSON property `filter`
|
693
|
+
attr_accessor :server_ip
|
694
|
+
|
695
|
+
# The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
|
696
|
+
# Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329".
|
697
|
+
# Corresponds to the JSON property `remoteIp`
|
706
698
|
# @return [String]
|
707
|
-
attr_accessor :
|
699
|
+
attr_accessor :remote_ip
|
708
700
|
|
709
|
-
|
710
|
-
|
711
|
-
|
701
|
+
# Whether or not a cache lookup was attempted.
|
702
|
+
# Corresponds to the JSON property `cacheLookup`
|
703
|
+
# @return [Boolean]
|
704
|
+
attr_accessor :cache_lookup
|
705
|
+
alias_method :cache_lookup?, :cache_lookup
|
712
706
|
|
713
|
-
#
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
@filter = args[:filter] if args.key?(:filter)
|
719
|
-
end
|
720
|
-
end
|
707
|
+
# Whether or not an entity was served from cache (with or without validation).
|
708
|
+
# Corresponds to the JSON property `cacheHit`
|
709
|
+
# @return [Boolean]
|
710
|
+
attr_accessor :cache_hit
|
711
|
+
alias_method :cache_hit?, :cache_hit
|
721
712
|
|
722
|
-
|
723
|
-
|
724
|
-
|
713
|
+
# Whether or not the response was validated with the origin server before being
|
714
|
+
# served from cache. This field is only meaningful if cache_hit is True.
|
715
|
+
# Corresponds to the JSON property `cacheValidatedWithOriginServer`
|
716
|
+
# @return [Boolean]
|
717
|
+
attr_accessor :cache_validated_with_origin_server
|
718
|
+
alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
|
719
|
+
|
720
|
+
# The response code indicating the status of response. Examples: 200, 404.
|
721
|
+
# Corresponds to the JSON property `status`
|
722
|
+
# @return [Fixnum]
|
723
|
+
attr_accessor :status
|
724
|
+
|
725
|
+
# The referer URL of the request, as defined in HTTP/1.1 Header Field
|
726
|
+
# Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
727
|
+
# Corresponds to the JSON property `referer`
|
728
|
+
# @return [String]
|
729
|
+
attr_accessor :referer
|
725
730
|
|
726
731
|
def initialize(**args)
|
727
732
|
update!(**args)
|
@@ -729,37 +734,38 @@ module Google
|
|
729
734
|
|
730
735
|
# Update properties of this object
|
731
736
|
def update!(**args)
|
737
|
+
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
738
|
+
@latency = args[:latency] if args.key?(:latency)
|
739
|
+
@cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
|
740
|
+
@request_method = args[:request_method] if args.key?(:request_method)
|
741
|
+
@request_size = args[:request_size] if args.key?(:request_size)
|
742
|
+
@response_size = args[:response_size] if args.key?(:response_size)
|
743
|
+
@request_url = args[:request_url] if args.key?(:request_url)
|
744
|
+
@server_ip = args[:server_ip] if args.key?(:server_ip)
|
745
|
+
@remote_ip = args[:remote_ip] if args.key?(:remote_ip)
|
746
|
+
@cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup)
|
747
|
+
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
|
748
|
+
@cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server)
|
749
|
+
@status = args[:status] if args.key?(:status)
|
750
|
+
@referer = args[:referer] if args.key?(:referer)
|
732
751
|
end
|
733
752
|
end
|
734
753
|
|
735
|
-
#
|
736
|
-
|
737
|
-
# databases, and storage devices such as disks. The type field identifies a
|
738
|
-
# MonitoredResourceDescriptor object that describes the resource's schema.
|
739
|
-
# Information in the labels field identifies the actual resource and its
|
740
|
-
# attributes according to the schema. For example, a particular Compute Engine
|
741
|
-
# VM instance could be represented by the following object, because the
|
742
|
-
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
743
|
-
# zone":
|
744
|
-
# ` "type": "gce_instance",
|
745
|
-
# "labels": ` "instance_id": "12345678901234",
|
746
|
-
# "zone": "us-central1-a" ``
|
747
|
-
class MonitoredResource
|
754
|
+
# Result returned from ListSinks.
|
755
|
+
class ListSinksResponse
|
748
756
|
include Google::Apis::Core::Hashable
|
749
757
|
|
750
|
-
#
|
751
|
-
#
|
752
|
-
#
|
753
|
-
|
754
|
-
# @return [Hash<String,String>]
|
755
|
-
attr_accessor :labels
|
758
|
+
# A list of sinks.
|
759
|
+
# Corresponds to the JSON property `sinks`
|
760
|
+
# @return [Array<Google::Apis::LoggingV2beta1::LogSink>]
|
761
|
+
attr_accessor :sinks
|
756
762
|
|
757
|
-
#
|
758
|
-
#
|
759
|
-
#
|
760
|
-
# Corresponds to the JSON property `
|
763
|
+
# If there might be more results than appear in this response, then
|
764
|
+
# nextPageToken is included. To get the next set of results, call the same
|
765
|
+
# method again using the value of nextPageToken as pageToken.
|
766
|
+
# Corresponds to the JSON property `nextPageToken`
|
761
767
|
# @return [String]
|
762
|
-
attr_accessor :
|
768
|
+
attr_accessor :next_page_token
|
763
769
|
|
764
770
|
def initialize(**args)
|
765
771
|
update!(**args)
|
@@ -767,74 +773,29 @@ module Google
|
|
767
773
|
|
768
774
|
# Update properties of this object
|
769
775
|
def update!(**args)
|
770
|
-
@
|
771
|
-
@
|
776
|
+
@sinks = args[:sinks] if args.key?(:sinks)
|
777
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
772
778
|
end
|
773
779
|
end
|
774
780
|
|
775
|
-
#
|
776
|
-
class
|
781
|
+
# A description of a label.
|
782
|
+
class LabelDescriptor
|
777
783
|
include Google::Apis::Core::Hashable
|
778
784
|
|
779
|
-
#
|
780
|
-
#
|
781
|
-
# this parameter, then the log entry's label is not changed. See LogEntry.
|
782
|
-
# Corresponds to the JSON property `labels`
|
783
|
-
# @return [Hash<String,String>]
|
784
|
-
attr_accessor :labels
|
785
|
-
|
786
|
-
# An object representing a resource that can be used for monitoring, logging,
|
787
|
-
# billing, or other purposes. Examples include virtual machine instances,
|
788
|
-
# databases, and storage devices such as disks. The type field identifies a
|
789
|
-
# MonitoredResourceDescriptor object that describes the resource's schema.
|
790
|
-
# Information in the labels field identifies the actual resource and its
|
791
|
-
# attributes according to the schema. For example, a particular Compute Engine
|
792
|
-
# VM instance could be represented by the following object, because the
|
793
|
-
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
794
|
-
# zone":
|
795
|
-
# ` "type": "gce_instance",
|
796
|
-
# "labels": ` "instance_id": "12345678901234",
|
797
|
-
# "zone": "us-central1-a" ``
|
798
|
-
# Corresponds to the JSON property `resource`
|
799
|
-
# @return [Google::Apis::LoggingV2beta1::MonitoredResource]
|
800
|
-
attr_accessor :resource
|
801
|
-
|
802
|
-
# Optional. A default log resource name that is assigned to all log entries in
|
803
|
-
# entries that do not specify a value for log_name:
|
804
|
-
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
805
|
-
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
806
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
807
|
-
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
808
|
-
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
809
|
-
# or "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
810
|
-
# 2Factivity". For more information about log names, see LogEntry.
|
811
|
-
# Corresponds to the JSON property `logName`
|
785
|
+
# The label key.
|
786
|
+
# Corresponds to the JSON property `key`
|
812
787
|
# @return [String]
|
813
|
-
attr_accessor :
|
788
|
+
attr_accessor :key
|
814
789
|
|
815
|
-
#
|
816
|
-
#
|
817
|
-
#
|
818
|
-
|
819
|
-
# not provide them. The created insert_id for the N'th entry in this list will
|
820
|
-
# be greater than earlier entries and less than later entries. Otherwise, the
|
821
|
-
# order of log entries in this list does not matter.To improve throughput and to
|
822
|
-
# avoid exceeding the quota limit for calls to entries.write, you should write
|
823
|
-
# multiple log entries at once rather than calling this method for each
|
824
|
-
# individual log entry.
|
825
|
-
# Corresponds to the JSON property `entries`
|
826
|
-
# @return [Array<Google::Apis::LoggingV2beta1::LogEntry>]
|
827
|
-
attr_accessor :entries
|
790
|
+
# A human-readable description for the label.
|
791
|
+
# Corresponds to the JSON property `description`
|
792
|
+
# @return [String]
|
793
|
+
attr_accessor :description
|
828
794
|
|
829
|
-
#
|
830
|
-
#
|
831
|
-
#
|
832
|
-
|
833
|
-
# zero-based index in the entries.write method.
|
834
|
-
# Corresponds to the JSON property `partialSuccess`
|
835
|
-
# @return [Boolean]
|
836
|
-
attr_accessor :partial_success
|
837
|
-
alias_method :partial_success?, :partial_success
|
795
|
+
# The type of data that can be assigned to the label.
|
796
|
+
# Corresponds to the JSON property `valueType`
|
797
|
+
# @return [String]
|
798
|
+
attr_accessor :value_type
|
838
799
|
|
839
800
|
def initialize(**args)
|
840
801
|
update!(**args)
|
@@ -842,84 +803,58 @@ module Google
|
|
842
803
|
|
843
804
|
# Update properties of this object
|
844
805
|
def update!(**args)
|
845
|
-
@
|
846
|
-
@
|
847
|
-
@
|
848
|
-
@entries = args[:entries] if args.key?(:entries)
|
849
|
-
@partial_success = args[:partial_success] if args.key?(:partial_success)
|
806
|
+
@key = args[:key] if args.key?(:key)
|
807
|
+
@description = args[:description] if args.key?(:description)
|
808
|
+
@value_type = args[:value_type] if args.key?(:value_type)
|
850
809
|
end
|
851
810
|
end
|
852
811
|
|
853
|
-
#
|
854
|
-
#
|
855
|
-
#
|
856
|
-
#
|
857
|
-
#
|
858
|
-
|
812
|
+
# An object that describes the schema of a MonitoredResource object using a type
|
813
|
+
# name and a set of labels. For example, the monitored resource descriptor for
|
814
|
+
# Google Compute Engine VM instances has a type of "gce_instance" and specifies
|
815
|
+
# the use of the labels "instance_id" and "zone" to identify particular VM
|
816
|
+
# instances.Different APIs can support different monitored resource types. APIs
|
817
|
+
# generally provide a list method that returns the monitored resource
|
818
|
+
# descriptors used by the API.
|
819
|
+
class MonitoredResourceDescriptor
|
859
820
|
include Google::Apis::Core::Hashable
|
860
821
|
|
861
|
-
#
|
862
|
-
#
|
863
|
-
#
|
864
|
-
#
|
865
|
-
#
|
866
|
-
|
867
|
-
# the destination service's documentation to determine the appropriate IAM roles
|
868
|
-
# to assign to the identity.
|
869
|
-
# Corresponds to the JSON property `writerIdentity`
|
870
|
-
# @return [String]
|
871
|
-
attr_accessor :writer_identity
|
872
|
-
|
873
|
-
# Optional. The time at which this sink will begin exporting log entries. Log
|
874
|
-
# entries are exported only if their timestamp is not earlier than the start
|
875
|
-
# time. The default value of this field is the time the sink is created or
|
876
|
-
# updated.
|
877
|
-
# Corresponds to the JSON property `startTime`
|
878
|
-
# @return [String]
|
879
|
-
attr_accessor :start_time
|
880
|
-
|
881
|
-
# Optional. The log entry format to use for this sink's exported log entries.
|
882
|
-
# The v2 format is used by default. The v1 format is deprecated and should be
|
883
|
-
# used only as part of a migration effort to v2. See Migration to the v2 API.
|
884
|
-
# Corresponds to the JSON property `outputVersionFormat`
|
885
|
-
# @return [String]
|
886
|
-
attr_accessor :output_version_format
|
822
|
+
# Required. A set of labels used to describe instances of this monitored
|
823
|
+
# resource type. For example, an individual Google Cloud SQL database is
|
824
|
+
# identified by values for the labels "database_id" and "zone".
|
825
|
+
# Corresponds to the JSON property `labels`
|
826
|
+
# @return [Array<Google::Apis::LoggingV2beta1::LabelDescriptor>]
|
827
|
+
attr_accessor :labels
|
887
828
|
|
888
|
-
#
|
889
|
-
#
|
890
|
-
#
|
891
|
-
#
|
829
|
+
# Optional. The resource name of the monitored resource descriptor: "projects/`
|
830
|
+
# project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of
|
831
|
+
# the type field in this object and `project_id` is a project ID that provides
|
832
|
+
# API-specific context for accessing the type. APIs that do not use project
|
833
|
+
# information can use the resource name format "monitoredResourceDescriptors/`
|
834
|
+
# type`".
|
892
835
|
# Corresponds to the JSON property `name`
|
893
836
|
# @return [String]
|
894
837
|
attr_accessor :name
|
895
838
|
|
896
|
-
# Optional.
|
897
|
-
#
|
898
|
-
#
|
899
|
-
#
|
900
|
-
# logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
|
901
|
-
# Corresponds to the JSON property `filter`
|
839
|
+
# Optional. A concise name for the monitored resource type that might be
|
840
|
+
# displayed in user interfaces. It should be a Title Cased Noun Phrase, without
|
841
|
+
# any article or other determiners. For example, "Google Cloud SQL Database".
|
842
|
+
# Corresponds to the JSON property `displayName`
|
902
843
|
# @return [String]
|
903
|
-
attr_accessor :
|
844
|
+
attr_accessor :display_name
|
904
845
|
|
905
|
-
#
|
906
|
-
#
|
907
|
-
#
|
908
|
-
# "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
|
909
|
-
# The sink's writer_identity, set when the sink is created, must have permission
|
910
|
-
# to write to the destination or else the log entries are not exported. For more
|
911
|
-
# information, see Exporting Logs With Sinks.
|
912
|
-
# Corresponds to the JSON property `destination`
|
846
|
+
# Optional. A detailed description of the monitored resource type that might be
|
847
|
+
# used in documentation.
|
848
|
+
# Corresponds to the JSON property `description`
|
913
849
|
# @return [String]
|
914
|
-
attr_accessor :
|
850
|
+
attr_accessor :description
|
915
851
|
|
916
|
-
#
|
917
|
-
#
|
918
|
-
#
|
919
|
-
#
|
920
|
-
# Corresponds to the JSON property `endTime`
|
852
|
+
# Required. The monitored resource type. For example, the type "
|
853
|
+
# cloudsql_database" represents databases in Google Cloud SQL. The maximum
|
854
|
+
# length of this value is 256 characters.
|
855
|
+
# Corresponds to the JSON property `type`
|
921
856
|
# @return [String]
|
922
|
-
attr_accessor :
|
857
|
+
attr_accessor :type
|
923
858
|
|
924
859
|
def initialize(**args)
|
925
860
|
update!(**args)
|
@@ -927,32 +862,39 @@ module Google
|
|
927
862
|
|
928
863
|
# Update properties of this object
|
929
864
|
def update!(**args)
|
930
|
-
@
|
931
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
932
|
-
@output_version_format = args[:output_version_format] if args.key?(:output_version_format)
|
865
|
+
@labels = args[:labels] if args.key?(:labels)
|
933
866
|
@name = args[:name] if args.key?(:name)
|
934
|
-
@
|
935
|
-
@
|
936
|
-
@
|
867
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
868
|
+
@description = args[:description] if args.key?(:description)
|
869
|
+
@type = args[:type] if args.key?(:type)
|
937
870
|
end
|
938
871
|
end
|
939
872
|
|
940
|
-
#
|
941
|
-
|
873
|
+
# Additional information about the source code location that produced the log
|
874
|
+
# entry.
|
875
|
+
class LogEntrySourceLocation
|
942
876
|
include Google::Apis::Core::Hashable
|
943
877
|
|
944
|
-
#
|
945
|
-
#
|
946
|
-
# Corresponds to the JSON property `
|
947
|
-
# @return [
|
948
|
-
attr_accessor :
|
878
|
+
# Optional. Source file name. Depending on the runtime environment, this might
|
879
|
+
# be a simple name or a fully-qualified name.
|
880
|
+
# Corresponds to the JSON property `file`
|
881
|
+
# @return [String]
|
882
|
+
attr_accessor :file
|
949
883
|
|
950
|
-
#
|
951
|
-
#
|
952
|
-
#
|
953
|
-
#
|
884
|
+
# Optional. Human-readable name of the function or method being invoked, with
|
885
|
+
# optional context such as the class or package name. This information may be
|
886
|
+
# used in contexts such as the logs viewer, where a file and line number are
|
887
|
+
# less meaningful. The format can vary by language. For example: qual.if.ied.
|
888
|
+
# Class.method (Java), dir/package.func (Go), function (Python).
|
889
|
+
# Corresponds to the JSON property `function`
|
954
890
|
# @return [String]
|
955
|
-
attr_accessor :
|
891
|
+
attr_accessor :function
|
892
|
+
|
893
|
+
# Optional. Line within the source file. 1-based; 0 indicates no line number
|
894
|
+
# available.
|
895
|
+
# Corresponds to the JSON property `line`
|
896
|
+
# @return [Fixnum]
|
897
|
+
attr_accessor :line
|
956
898
|
|
957
899
|
def initialize(**args)
|
958
900
|
update!(**args)
|
@@ -960,99 +902,68 @@ module Google
|
|
960
902
|
|
961
903
|
# Update properties of this object
|
962
904
|
def update!(**args)
|
963
|
-
@
|
964
|
-
@
|
905
|
+
@file = args[:file] if args.key?(:file)
|
906
|
+
@function = args[:function] if args.key?(:function)
|
907
|
+
@line = args[:line] if args.key?(:line)
|
965
908
|
end
|
966
909
|
end
|
967
910
|
|
968
|
-
#
|
969
|
-
|
970
|
-
# in a separate message.
|
971
|
-
class HttpRequest
|
911
|
+
# Result returned from ListLogEntries.
|
912
|
+
class ListLogEntriesResponse
|
972
913
|
include Google::Apis::Core::Hashable
|
973
914
|
|
974
|
-
#
|
975
|
-
#
|
976
|
-
#
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
#
|
981
|
-
#
|
982
|
-
#
|
983
|
-
#
|
984
|
-
attr_accessor :cache_validated_with_origin_server
|
985
|
-
alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
|
986
|
-
|
987
|
-
# The response code indicating the status of response. Examples: 200, 404.
|
988
|
-
# Corresponds to the JSON property `status`
|
989
|
-
# @return [Fixnum]
|
990
|
-
attr_accessor :status
|
991
|
-
|
992
|
-
# The referer URL of the request, as defined in HTTP/1.1 Header Field
|
993
|
-
# Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
994
|
-
# Corresponds to the JSON property `referer`
|
995
|
-
# @return [String]
|
996
|
-
attr_accessor :referer
|
997
|
-
|
998
|
-
# The request processing latency on the server, from the time the request was
|
999
|
-
# received until the response was sent.
|
1000
|
-
# Corresponds to the JSON property `latency`
|
915
|
+
# If there might be more results than those appearing in this response, then
|
916
|
+
# nextPageToken is included. To get the next set of results, call this method
|
917
|
+
# again using the value of nextPageToken as pageToken.If a value for
|
918
|
+
# next_page_token appears and the entries field is empty, it means that the
|
919
|
+
# search found no log entries so far but it did not have time to search all the
|
920
|
+
# possible log entries. Retry the method with this value for page_token to
|
921
|
+
# continue the search. Alternatively, consider speeding up the search by
|
922
|
+
# changing your filter to specify a single log name or resource type, or to
|
923
|
+
# narrow the time range of the search.
|
924
|
+
# Corresponds to the JSON property `nextPageToken`
|
1001
925
|
# @return [String]
|
1002
|
-
attr_accessor :
|
926
|
+
attr_accessor :next_page_token
|
1003
927
|
|
1004
|
-
#
|
1005
|
-
#
|
1006
|
-
#
|
1007
|
-
|
1008
|
-
attr_accessor :user_agent
|
928
|
+
# A list of log entries.
|
929
|
+
# Corresponds to the JSON property `entries`
|
930
|
+
# @return [Array<Google::Apis::LoggingV2beta1::LogEntry>]
|
931
|
+
attr_accessor :entries
|
1009
932
|
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
# @return [String]
|
1014
|
-
attr_accessor :cache_fill_bytes
|
933
|
+
def initialize(**args)
|
934
|
+
update!(**args)
|
935
|
+
end
|
1015
936
|
|
1016
|
-
#
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
937
|
+
# Update properties of this object
|
938
|
+
def update!(**args)
|
939
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
940
|
+
@entries = args[:entries] if args.key?(:entries)
|
941
|
+
end
|
942
|
+
end
|
1020
943
|
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
# @return [String]
|
1025
|
-
attr_accessor :request_size
|
944
|
+
# Application log line emitted while processing a request.
|
945
|
+
class LogLine
|
946
|
+
include Google::Apis::Core::Hashable
|
1026
947
|
|
1027
|
-
#
|
1028
|
-
#
|
1029
|
-
# Corresponds to the JSON property `responseSize`
|
948
|
+
# Severity of this log entry.
|
949
|
+
# Corresponds to the JSON property `severity`
|
1030
950
|
# @return [String]
|
1031
|
-
attr_accessor :
|
951
|
+
attr_accessor :severity
|
1032
952
|
|
1033
|
-
#
|
1034
|
-
#
|
1035
|
-
# Corresponds to the JSON property `requestUrl`
|
953
|
+
# App-provided log message.
|
954
|
+
# Corresponds to the JSON property `logMessage`
|
1036
955
|
# @return [String]
|
1037
|
-
attr_accessor :
|
956
|
+
attr_accessor :log_message
|
1038
957
|
|
1039
|
-
#
|
1040
|
-
#
|
1041
|
-
#
|
1042
|
-
|
1043
|
-
attr_accessor :remote_ip
|
958
|
+
# Specifies a location in a source code file.
|
959
|
+
# Corresponds to the JSON property `sourceLocation`
|
960
|
+
# @return [Google::Apis::LoggingV2beta1::SourceLocation]
|
961
|
+
attr_accessor :source_location
|
1044
962
|
|
1045
|
-
#
|
1046
|
-
# to
|
1047
|
-
# Corresponds to the JSON property `serverIp`
|
963
|
+
# Approximate time when this log entry was made.
|
964
|
+
# Corresponds to the JSON property `time`
|
1048
965
|
# @return [String]
|
1049
|
-
attr_accessor :
|
1050
|
-
|
1051
|
-
# Whether or not a cache lookup was attempted.
|
1052
|
-
# Corresponds to the JSON property `cacheLookup`
|
1053
|
-
# @return [Boolean]
|
1054
|
-
attr_accessor :cache_lookup
|
1055
|
-
alias_method :cache_lookup?, :cache_lookup
|
966
|
+
attr_accessor :time
|
1056
967
|
|
1057
968
|
def initialize(**args)
|
1058
969
|
update!(**args)
|
@@ -1060,127 +971,171 @@ module Google
|
|
1060
971
|
|
1061
972
|
# Update properties of this object
|
1062
973
|
def update!(**args)
|
1063
|
-
@
|
1064
|
-
@
|
1065
|
-
@
|
1066
|
-
@
|
1067
|
-
@latency = args[:latency] if args.key?(:latency)
|
1068
|
-
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
1069
|
-
@cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
|
1070
|
-
@request_method = args[:request_method] if args.key?(:request_method)
|
1071
|
-
@request_size = args[:request_size] if args.key?(:request_size)
|
1072
|
-
@response_size = args[:response_size] if args.key?(:response_size)
|
1073
|
-
@request_url = args[:request_url] if args.key?(:request_url)
|
1074
|
-
@remote_ip = args[:remote_ip] if args.key?(:remote_ip)
|
1075
|
-
@server_ip = args[:server_ip] if args.key?(:server_ip)
|
1076
|
-
@cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup)
|
974
|
+
@severity = args[:severity] if args.key?(:severity)
|
975
|
+
@log_message = args[:log_message] if args.key?(:log_message)
|
976
|
+
@source_location = args[:source_location] if args.key?(:source_location)
|
977
|
+
@time = args[:time] if args.key?(:time)
|
1077
978
|
end
|
1078
979
|
end
|
1079
980
|
|
1080
|
-
# Result returned from
|
1081
|
-
class
|
981
|
+
# Result returned from ListLogMetrics.
|
982
|
+
class ListLogMetricsResponse
|
1082
983
|
include Google::Apis::Core::Hashable
|
1083
984
|
|
1084
|
-
# A list of sinks.
|
1085
|
-
# Corresponds to the JSON property `sinks`
|
1086
|
-
# @return [Array<Google::Apis::LoggingV2beta1::LogSink>]
|
1087
|
-
attr_accessor :sinks
|
1088
|
-
|
1089
985
|
# If there might be more results than appear in this response, then
|
1090
|
-
# nextPageToken is included. To get the next set of results, call
|
1091
|
-
#
|
986
|
+
# nextPageToken is included. To get the next set of results, call this method
|
987
|
+
# again using the value of nextPageToken as pageToken.
|
1092
988
|
# Corresponds to the JSON property `nextPageToken`
|
1093
989
|
# @return [String]
|
1094
990
|
attr_accessor :next_page_token
|
1095
991
|
|
992
|
+
# A list of logs-based metrics.
|
993
|
+
# Corresponds to the JSON property `metrics`
|
994
|
+
# @return [Array<Google::Apis::LoggingV2beta1::LogMetric>]
|
995
|
+
attr_accessor :metrics
|
996
|
+
|
1096
997
|
def initialize(**args)
|
1097
998
|
update!(**args)
|
1098
999
|
end
|
1099
1000
|
|
1100
1001
|
# Update properties of this object
|
1101
1002
|
def update!(**args)
|
1102
|
-
@sinks = args[:sinks] if args.key?(:sinks)
|
1103
1003
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1004
|
+
@metrics = args[:metrics] if args.key?(:metrics)
|
1104
1005
|
end
|
1105
1006
|
end
|
1106
1007
|
|
1107
|
-
# A
|
1108
|
-
|
1008
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
1009
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
1010
|
+
# response type of an API method. For instance:
|
1011
|
+
# service Foo `
|
1012
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
1013
|
+
# `
|
1014
|
+
# The JSON representation for Empty is empty JSON object ``.
|
1015
|
+
class Empty
|
1109
1016
|
include Google::Apis::Core::Hashable
|
1110
1017
|
|
1111
|
-
|
1112
|
-
|
1018
|
+
def initialize(**args)
|
1019
|
+
update!(**args)
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
# Update properties of this object
|
1023
|
+
def update!(**args)
|
1024
|
+
end
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
# An individual entry in a log.
|
1028
|
+
class LogEntry
|
1029
|
+
include Google::Apis::Core::Hashable
|
1030
|
+
|
1031
|
+
# Required. The resource name of the log to which this log entry belongs:
|
1032
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
1033
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
1034
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
1035
|
+
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
1036
|
+
# [LOG_ID] must be URL-encoded within log_name. Example: "organizations/
|
1037
|
+
# 1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must
|
1038
|
+
# be less than 512 characters long and can only include the following characters:
|
1039
|
+
# upper and lower case alphanumeric characters, forward-slash, underscore,
|
1040
|
+
# hyphen, and period.For backward compatibility, if log_name begins with a
|
1041
|
+
# forward-slash, such as /projects/..., then the log entry is ingested as usual
|
1042
|
+
# but the forward-slash is removed. Listing the log entry will not show the
|
1043
|
+
# leading slash and filtering for a log name with a leading slash will never
|
1044
|
+
# return any results.
|
1045
|
+
# Corresponds to the JSON property `logName`
|
1113
1046
|
# @return [String]
|
1114
|
-
attr_accessor :
|
1047
|
+
attr_accessor :log_name
|
1115
1048
|
|
1116
|
-
#
|
1117
|
-
#
|
1118
|
-
#
|
1119
|
-
|
1049
|
+
# A common proto for logging HTTP requests. Only contains semantics defined by
|
1050
|
+
# the HTTP specification. Product-specific logging information MUST be defined
|
1051
|
+
# in a separate message.
|
1052
|
+
# Corresponds to the JSON property `httpRequest`
|
1053
|
+
# @return [Google::Apis::LoggingV2beta1::HttpRequest]
|
1054
|
+
attr_accessor :http_request
|
1120
1055
|
|
1121
|
-
#
|
1122
|
-
#
|
1123
|
-
#
|
1124
|
-
|
1056
|
+
# An object representing a resource that can be used for monitoring, logging,
|
1057
|
+
# billing, or other purposes. Examples include virtual machine instances,
|
1058
|
+
# databases, and storage devices such as disks. The type field identifies a
|
1059
|
+
# MonitoredResourceDescriptor object that describes the resource's schema.
|
1060
|
+
# Information in the labels field identifies the actual resource and its
|
1061
|
+
# attributes according to the schema. For example, a particular Compute Engine
|
1062
|
+
# VM instance could be represented by the following object, because the
|
1063
|
+
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
1064
|
+
# zone":
|
1065
|
+
# ` "type": "gce_instance",
|
1066
|
+
# "labels": ` "instance_id": "12345678901234",
|
1067
|
+
# "zone": "us-central1-a" ``
|
1068
|
+
# Corresponds to the JSON property `resource`
|
1069
|
+
# @return [Google::Apis::LoggingV2beta1::MonitoredResource]
|
1070
|
+
attr_accessor :resource
|
1125
1071
|
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1072
|
+
# The log entry payload, represented as a structure that is expressed as a JSON
|
1073
|
+
# object.
|
1074
|
+
# Corresponds to the JSON property `jsonPayload`
|
1075
|
+
# @return [Hash<String,Object>]
|
1076
|
+
attr_accessor :json_payload
|
1129
1077
|
|
1130
|
-
#
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1078
|
+
# Optional. A unique identifier for the log entry. If you provide a value, then
|
1079
|
+
# Stackdriver Logging considers other log entries in the same project, with the
|
1080
|
+
# same timestamp, and with the same insert_id to be duplicates which can be
|
1081
|
+
# removed. If omitted in new log entries, then Stackdriver Logging will insert
|
1082
|
+
# its own unique identifier. The insert_id is used to order log entries that
|
1083
|
+
# have the same timestamp value.
|
1084
|
+
# Corresponds to the JSON property `insertId`
|
1085
|
+
# @return [String]
|
1086
|
+
attr_accessor :insert_id
|
1137
1087
|
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
# generally provide a list method that returns the monitored resource
|
1144
|
-
# descriptors used by the API.
|
1145
|
-
class MonitoredResourceDescriptor
|
1146
|
-
include Google::Apis::Core::Hashable
|
1088
|
+
# Additional information about a potentially long-running operation with which a
|
1089
|
+
# log entry is associated.
|
1090
|
+
# Corresponds to the JSON property `operation`
|
1091
|
+
# @return [Google::Apis::LoggingV2beta1::LogEntryOperation]
|
1092
|
+
attr_accessor :operation
|
1147
1093
|
|
1148
|
-
#
|
1149
|
-
#
|
1150
|
-
# any article or other determiners. For example, "Google Cloud SQL Database".
|
1151
|
-
# Corresponds to the JSON property `displayName`
|
1094
|
+
# The log entry payload, represented as a Unicode string (UTF-8).
|
1095
|
+
# Corresponds to the JSON property `textPayload`
|
1152
1096
|
# @return [String]
|
1153
|
-
attr_accessor :
|
1097
|
+
attr_accessor :text_payload
|
1154
1098
|
|
1155
|
-
#
|
1156
|
-
#
|
1157
|
-
# Corresponds to the JSON property `
|
1158
|
-
# @return [String]
|
1159
|
-
attr_accessor :
|
1099
|
+
# The log entry payload, represented as a protocol buffer. Some Google Cloud
|
1100
|
+
# Platform services use this field for their log entry payloads.
|
1101
|
+
# Corresponds to the JSON property `protoPayload`
|
1102
|
+
# @return [Hash<String,Object>]
|
1103
|
+
attr_accessor :proto_payload
|
1160
1104
|
|
1161
|
-
#
|
1162
|
-
#
|
1163
|
-
#
|
1164
|
-
#
|
1105
|
+
# Optional. Resource name of the trace associated with the log entry, if any. If
|
1106
|
+
# it contains a relative resource name, the name is assumed to be relative to //
|
1107
|
+
# tracing.googleapis.com. Example: projects/my-projectid/traces/
|
1108
|
+
# 06796866738c859f2f19b7cfb3214824
|
1109
|
+
# Corresponds to the JSON property `trace`
|
1165
1110
|
# @return [String]
|
1166
|
-
attr_accessor :
|
1111
|
+
attr_accessor :trace
|
1167
1112
|
|
1168
|
-
#
|
1169
|
-
#
|
1170
|
-
# identified by values for the labels "database_id" and "zone".
|
1113
|
+
# Optional. A set of user-defined (key, value) data that provides additional
|
1114
|
+
# information about the log entry.
|
1171
1115
|
# Corresponds to the JSON property `labels`
|
1172
|
-
# @return [
|
1116
|
+
# @return [Hash<String,String>]
|
1173
1117
|
attr_accessor :labels
|
1174
1118
|
|
1175
|
-
# Optional. The
|
1176
|
-
#
|
1177
|
-
#
|
1178
|
-
# API-specific context for accessing the type. APIs that do not use project
|
1179
|
-
# information can use the resource name format "monitoredResourceDescriptors/`
|
1180
|
-
# type`".
|
1181
|
-
# Corresponds to the JSON property `name`
|
1119
|
+
# Optional. The severity of the log entry. The default value is LogSeverity.
|
1120
|
+
# DEFAULT.
|
1121
|
+
# Corresponds to the JSON property `severity`
|
1182
1122
|
# @return [String]
|
1183
|
-
attr_accessor :
|
1123
|
+
attr_accessor :severity
|
1124
|
+
|
1125
|
+
# Additional information about the source code location that produced the log
|
1126
|
+
# entry.
|
1127
|
+
# Corresponds to the JSON property `sourceLocation`
|
1128
|
+
# @return [Google::Apis::LoggingV2beta1::LogEntrySourceLocation]
|
1129
|
+
attr_accessor :source_location
|
1130
|
+
|
1131
|
+
# Optional. The time the event described by the log entry occurred. If omitted
|
1132
|
+
# in a new log entry, Stackdriver Logging will insert the time the log entry is
|
1133
|
+
# received. Stackdriver Logging might reject log entries whose time stamps are
|
1134
|
+
# more than a couple of hours in the future. Log entries with time stamps in the
|
1135
|
+
# past are accepted.
|
1136
|
+
# Corresponds to the JSON property `timestamp`
|
1137
|
+
# @return [String]
|
1138
|
+
attr_accessor :timestamp
|
1184
1139
|
|
1185
1140
|
def initialize(**args)
|
1186
1141
|
update!(**args)
|
@@ -1188,38 +1143,44 @@ module Google
|
|
1188
1143
|
|
1189
1144
|
# Update properties of this object
|
1190
1145
|
def update!(**args)
|
1191
|
-
@
|
1192
|
-
@
|
1193
|
-
@
|
1146
|
+
@log_name = args[:log_name] if args.key?(:log_name)
|
1147
|
+
@http_request = args[:http_request] if args.key?(:http_request)
|
1148
|
+
@resource = args[:resource] if args.key?(:resource)
|
1149
|
+
@json_payload = args[:json_payload] if args.key?(:json_payload)
|
1150
|
+
@insert_id = args[:insert_id] if args.key?(:insert_id)
|
1151
|
+
@operation = args[:operation] if args.key?(:operation)
|
1152
|
+
@text_payload = args[:text_payload] if args.key?(:text_payload)
|
1153
|
+
@proto_payload = args[:proto_payload] if args.key?(:proto_payload)
|
1154
|
+
@trace = args[:trace] if args.key?(:trace)
|
1194
1155
|
@labels = args[:labels] if args.key?(:labels)
|
1195
|
-
@
|
1156
|
+
@severity = args[:severity] if args.key?(:severity)
|
1157
|
+
@source_location = args[:source_location] if args.key?(:source_location)
|
1158
|
+
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
1196
1159
|
end
|
1197
1160
|
end
|
1198
1161
|
|
1199
|
-
#
|
1200
|
-
|
1201
|
-
class LogEntrySourceLocation
|
1162
|
+
# Specifies a location in a source code file.
|
1163
|
+
class SourceLocation
|
1202
1164
|
include Google::Apis::Core::Hashable
|
1203
1165
|
|
1204
|
-
#
|
1205
|
-
#
|
1166
|
+
# Source file name. Depending on the runtime environment, this might be a simple
|
1167
|
+
# name or a fully-qualified name.
|
1206
1168
|
# Corresponds to the JSON property `file`
|
1207
1169
|
# @return [String]
|
1208
1170
|
attr_accessor :file
|
1209
1171
|
|
1210
|
-
#
|
1211
|
-
#
|
1212
|
-
#
|
1213
|
-
#
|
1214
|
-
#
|
1215
|
-
# Corresponds to the JSON property `
|
1172
|
+
# Human-readable name of the function or method being invoked, with optional
|
1173
|
+
# context such as the class or package name. This information is used in
|
1174
|
+
# contexts such as the logs viewer, where a file and line number are less
|
1175
|
+
# meaningful. The format can vary by language. For example: qual.if.ied.Class.
|
1176
|
+
# method (Java), dir/package.func (Go), function (Python).
|
1177
|
+
# Corresponds to the JSON property `functionName`
|
1216
1178
|
# @return [String]
|
1217
|
-
attr_accessor :
|
1179
|
+
attr_accessor :function_name
|
1218
1180
|
|
1219
|
-
#
|
1220
|
-
# available.
|
1181
|
+
# Line within the source file.
|
1221
1182
|
# Corresponds to the JSON property `line`
|
1222
|
-
# @return [
|
1183
|
+
# @return [Fixnum]
|
1223
1184
|
attr_accessor :line
|
1224
1185
|
|
1225
1186
|
def initialize(**args)
|
@@ -1229,32 +1190,67 @@ module Google
|
|
1229
1190
|
# Update properties of this object
|
1230
1191
|
def update!(**args)
|
1231
1192
|
@file = args[:file] if args.key?(:file)
|
1232
|
-
@
|
1193
|
+
@function_name = args[:function_name] if args.key?(:function_name)
|
1233
1194
|
@line = args[:line] if args.key?(:line)
|
1234
1195
|
end
|
1235
1196
|
end
|
1236
1197
|
|
1237
|
-
#
|
1238
|
-
class
|
1198
|
+
# The parameters to ListLogEntries.
|
1199
|
+
class ListLogEntriesRequest
|
1239
1200
|
include Google::Apis::Core::Hashable
|
1240
1201
|
|
1241
|
-
#
|
1242
|
-
#
|
1243
|
-
#
|
1244
|
-
|
1202
|
+
# Optional. How the results should be sorted. Presently, the only permitted
|
1203
|
+
# values are "timestamp asc" (default) and "timestamp desc". The first option
|
1204
|
+
# returns entries in order of increasing values of LogEntry.timestamp (oldest
|
1205
|
+
# first), and the second option returns entries in order of decreasing
|
1206
|
+
# timestamps (newest first). Entries with equal timestamps are returned in order
|
1207
|
+
# of their insert_id values.
|
1208
|
+
# Corresponds to the JSON property `orderBy`
|
1209
|
+
# @return [String]
|
1210
|
+
attr_accessor :order_by
|
1245
1211
|
|
1246
|
-
#
|
1247
|
-
#
|
1248
|
-
#
|
1249
|
-
#
|
1250
|
-
#
|
1251
|
-
#
|
1252
|
-
#
|
1253
|
-
#
|
1254
|
-
#
|
1255
|
-
|
1212
|
+
# Required. Names of one or more parent resources from which to retrieve log
|
1213
|
+
# entries:
|
1214
|
+
# "projects/[PROJECT_ID]"
|
1215
|
+
# "organizations/[ORGANIZATION_ID]"
|
1216
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
1217
|
+
# "folders/[FOLDER_ID]"
|
1218
|
+
# Projects listed in the project_ids field are added to this list.
|
1219
|
+
# Corresponds to the JSON property `resourceNames`
|
1220
|
+
# @return [Array<String>]
|
1221
|
+
attr_accessor :resource_names
|
1222
|
+
|
1223
|
+
# Optional. A filter that chooses which log entries to return. See Advanced Logs
|
1224
|
+
# Filters. Only log entries that match the filter are returned. An empty filter
|
1225
|
+
# matches all log entries in the resources listed in resource_names. Referencing
|
1226
|
+
# a parent resource that is not listed in resource_names will cause the filter
|
1227
|
+
# to return no results. The maximum length of the filter is 20000 characters.
|
1228
|
+
# Corresponds to the JSON property `filter`
|
1256
1229
|
# @return [String]
|
1257
|
-
attr_accessor :
|
1230
|
+
attr_accessor :filter
|
1231
|
+
|
1232
|
+
# Deprecated. Use resource_names instead. One or more project identifiers or
|
1233
|
+
# project numbers from which to retrieve log entries. Example: "my-project-1A".
|
1234
|
+
# If present, these project identifiers are converted to resource name format
|
1235
|
+
# and added to the list of resources in resource_names.
|
1236
|
+
# Corresponds to the JSON property `projectIds`
|
1237
|
+
# @return [Array<String>]
|
1238
|
+
attr_accessor :project_ids
|
1239
|
+
|
1240
|
+
# Optional. If present, then retrieve the next batch of results from the
|
1241
|
+
# preceding call to this method. page_token must be the value of next_page_token
|
1242
|
+
# from the previous response. The values of other method parameters should be
|
1243
|
+
# identical to those in the previous call.
|
1244
|
+
# Corresponds to the JSON property `pageToken`
|
1245
|
+
# @return [String]
|
1246
|
+
attr_accessor :page_token
|
1247
|
+
|
1248
|
+
# Optional. The maximum number of results to return from this request. Non-
|
1249
|
+
# positive values are ignored. The presence of next_page_token in the response
|
1250
|
+
# indicates that more results might be available.
|
1251
|
+
# Corresponds to the JSON property `pageSize`
|
1252
|
+
# @return [Fixnum]
|
1253
|
+
attr_accessor :page_size
|
1258
1254
|
|
1259
1255
|
def initialize(**args)
|
1260
1256
|
update!(**args)
|
@@ -1262,8 +1258,12 @@ module Google
|
|
1262
1258
|
|
1263
1259
|
# Update properties of this object
|
1264
1260
|
def update!(**args)
|
1265
|
-
@
|
1266
|
-
@
|
1261
|
+
@order_by = args[:order_by] if args.key?(:order_by)
|
1262
|
+
@resource_names = args[:resource_names] if args.key?(:resource_names)
|
1263
|
+
@filter = args[:filter] if args.key?(:filter)
|
1264
|
+
@project_ids = args[:project_ids] if args.key?(:project_ids)
|
1265
|
+
@page_token = args[:page_token] if args.key?(:page_token)
|
1266
|
+
@page_size = args[:page_size] if args.key?(:page_size)
|
1267
1267
|
end
|
1268
1268
|
end
|
1269
1269
|
end
|