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
@@ -22,6 +22,30 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module LanguageV1beta1
|
24
24
|
|
25
|
+
class EntityMention
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class Features
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class Document
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class Sentence
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
25
49
|
class AnalyzeEntitiesRequest
|
26
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
51
|
|
@@ -58,13 +82,13 @@ module Google
|
|
58
82
|
include Google::Apis::Core::JsonObjectSupport
|
59
83
|
end
|
60
84
|
|
61
|
-
class
|
85
|
+
class AnalyzeSyntaxResponse
|
62
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
87
|
|
64
88
|
include Google::Apis::Core::JsonObjectSupport
|
65
89
|
end
|
66
90
|
|
67
|
-
class
|
91
|
+
class Entity
|
68
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
93
|
|
70
94
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -94,13 +118,13 @@ module Google
|
|
94
118
|
include Google::Apis::Core::JsonObjectSupport
|
95
119
|
end
|
96
120
|
|
97
|
-
class
|
121
|
+
class TextSpan
|
98
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
123
|
|
100
124
|
include Google::Apis::Core::JsonObjectSupport
|
101
125
|
end
|
102
126
|
|
103
|
-
class
|
127
|
+
class Token
|
104
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
129
|
|
106
130
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -113,27 +137,41 @@ module Google
|
|
113
137
|
end
|
114
138
|
|
115
139
|
class EntityMention
|
116
|
-
|
140
|
+
# @private
|
141
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
142
|
+
property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
|
117
143
|
|
118
|
-
|
144
|
+
property :type, as: 'type'
|
145
|
+
end
|
119
146
|
end
|
120
147
|
|
121
148
|
class Features
|
122
|
-
|
149
|
+
# @private
|
150
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
151
|
+
property :extract_syntax, as: 'extractSyntax'
|
152
|
+
property :extract_document_sentiment, as: 'extractDocumentSentiment'
|
153
|
+
property :extract_entities, as: 'extractEntities'
|
154
|
+
end
|
155
|
+
end
|
123
156
|
|
124
|
-
|
157
|
+
class Document
|
158
|
+
# @private
|
159
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
160
|
+
property :language, as: 'language'
|
161
|
+
property :type, as: 'type'
|
162
|
+
property :content, as: 'content'
|
163
|
+
property :gcs_content_uri, as: 'gcsContentUri'
|
164
|
+
end
|
125
165
|
end
|
126
166
|
|
127
167
|
class Sentence
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
end
|
168
|
+
# @private
|
169
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
170
|
+
property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
|
132
171
|
|
133
|
-
|
134
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
172
|
+
property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
|
135
173
|
|
136
|
-
|
174
|
+
end
|
137
175
|
end
|
138
176
|
|
139
177
|
class AnalyzeEntitiesRequest
|
@@ -157,6 +195,9 @@ module Google
|
|
157
195
|
class PartOfSpeech
|
158
196
|
# @private
|
159
197
|
class Representation < Google::Apis::Core::JsonRepresentation
|
198
|
+
property :case, as: 'case'
|
199
|
+
property :tense, as: 'tense'
|
200
|
+
property :reciprocity, as: 'reciprocity'
|
160
201
|
property :form, as: 'form'
|
161
202
|
property :number, as: 'number'
|
162
203
|
property :voice, as: 'voice'
|
@@ -166,38 +207,46 @@ module Google
|
|
166
207
|
property :gender, as: 'gender'
|
167
208
|
property :person, as: 'person'
|
168
209
|
property :proper, as: 'proper'
|
169
|
-
property :case, as: 'case'
|
170
|
-
property :tense, as: 'tense'
|
171
|
-
property :reciprocity, as: 'reciprocity'
|
172
210
|
end
|
173
211
|
end
|
174
212
|
|
175
213
|
class AnalyzeSyntaxRequest
|
176
214
|
# @private
|
177
215
|
class Representation < Google::Apis::Core::JsonRepresentation
|
216
|
+
property :encoding_type, as: 'encodingType'
|
178
217
|
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
179
218
|
|
180
|
-
property :encoding_type, as: 'encodingType'
|
181
219
|
end
|
182
220
|
end
|
183
221
|
|
184
222
|
class AnalyzeSentimentResponse
|
185
223
|
# @private
|
186
224
|
class Representation < Google::Apis::Core::JsonRepresentation
|
225
|
+
property :language, as: 'language'
|
187
226
|
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
|
188
227
|
|
189
228
|
property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
|
190
229
|
|
191
|
-
property :language, as: 'language'
|
192
230
|
end
|
193
231
|
end
|
194
232
|
|
195
233
|
class AnalyzeEntitiesResponse
|
196
234
|
# @private
|
197
235
|
class Representation < Google::Apis::Core::JsonRepresentation
|
236
|
+
property :language, as: 'language'
|
198
237
|
collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
|
199
238
|
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
class AnalyzeSyntaxResponse
|
243
|
+
# @private
|
244
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
200
245
|
property :language, as: 'language'
|
246
|
+
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
|
247
|
+
|
248
|
+
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
|
249
|
+
|
201
250
|
end
|
202
251
|
end
|
203
252
|
|
@@ -213,17 +262,6 @@ module Google
|
|
213
262
|
end
|
214
263
|
end
|
215
264
|
|
216
|
-
class AnalyzeSyntaxResponse
|
217
|
-
# @private
|
218
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
219
|
-
property :language, as: 'language'
|
220
|
-
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
|
221
|
-
|
222
|
-
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
|
223
|
-
|
224
|
-
end
|
225
|
-
end
|
226
|
-
|
227
265
|
class AnnotateTextRequest
|
228
266
|
# @private
|
229
267
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -238,45 +276,32 @@ module Google
|
|
238
276
|
class AnnotateTextResponse
|
239
277
|
# @private
|
240
278
|
class Representation < Google::Apis::Core::JsonRepresentation
|
241
|
-
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
|
242
|
-
|
243
|
-
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
|
244
|
-
|
245
279
|
collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
|
246
280
|
|
247
281
|
property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
|
248
282
|
|
249
283
|
property :language, as: 'language'
|
284
|
+
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
|
285
|
+
|
286
|
+
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
|
287
|
+
|
250
288
|
end
|
251
289
|
end
|
252
290
|
|
253
291
|
class AnalyzeSentimentRequest
|
254
292
|
# @private
|
255
293
|
class Representation < Google::Apis::Core::JsonRepresentation
|
294
|
+
property :encoding_type, as: 'encodingType'
|
256
295
|
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
257
296
|
|
258
|
-
property :encoding_type, as: 'encodingType'
|
259
297
|
end
|
260
298
|
end
|
261
299
|
|
262
300
|
class DependencyEdge
|
263
301
|
# @private
|
264
302
|
class Representation < Google::Apis::Core::JsonRepresentation
|
265
|
-
property :head_token_index, as: 'headTokenIndex'
|
266
303
|
property :label, as: 'label'
|
267
|
-
|
268
|
-
end
|
269
|
-
|
270
|
-
class Token
|
271
|
-
# @private
|
272
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
273
|
-
property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
|
274
|
-
|
275
|
-
property :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1beta1::DependencyEdge, decorator: Google::Apis::LanguageV1beta1::DependencyEdge::Representation
|
276
|
-
|
277
|
-
property :lemma, as: 'lemma'
|
278
|
-
property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1beta1::PartOfSpeech, decorator: Google::Apis::LanguageV1beta1::PartOfSpeech::Representation
|
279
|
-
|
304
|
+
property :head_token_index, as: 'headTokenIndex'
|
280
305
|
end
|
281
306
|
end
|
282
307
|
|
@@ -288,50 +313,25 @@ module Google
|
|
288
313
|
end
|
289
314
|
end
|
290
315
|
|
291
|
-
class
|
292
|
-
# @private
|
293
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
294
|
-
property :code, as: 'code'
|
295
|
-
property :message, as: 'message'
|
296
|
-
collection :details, as: 'details'
|
297
|
-
end
|
298
|
-
end
|
299
|
-
|
300
|
-
class EntityMention
|
301
|
-
# @private
|
302
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
303
|
-
property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
|
304
|
-
|
305
|
-
property :type, as: 'type'
|
306
|
-
end
|
307
|
-
end
|
308
|
-
|
309
|
-
class Features
|
316
|
+
class Token
|
310
317
|
# @private
|
311
318
|
class Representation < Google::Apis::Core::JsonRepresentation
|
312
|
-
property :
|
313
|
-
property :extract_syntax, as: 'extractSyntax'
|
314
|
-
property :extract_document_sentiment, as: 'extractDocumentSentiment'
|
315
|
-
end
|
316
|
-
end
|
319
|
+
property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1beta1::PartOfSpeech, decorator: Google::Apis::LanguageV1beta1::PartOfSpeech::Representation
|
317
320
|
|
318
|
-
class Sentence
|
319
|
-
# @private
|
320
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
321
321
|
property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
|
322
322
|
|
323
|
-
property :
|
323
|
+
property :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1beta1::DependencyEdge, decorator: Google::Apis::LanguageV1beta1::DependencyEdge::Representation
|
324
324
|
|
325
|
+
property :lemma, as: 'lemma'
|
325
326
|
end
|
326
327
|
end
|
327
328
|
|
328
|
-
class
|
329
|
+
class Status
|
329
330
|
# @private
|
330
331
|
class Representation < Google::Apis::Core::JsonRepresentation
|
331
|
-
property :
|
332
|
-
|
333
|
-
property :
|
334
|
-
property :language, as: 'language'
|
332
|
+
property :message, as: 'message'
|
333
|
+
collection :details, as: 'details'
|
334
|
+
property :code, as: 'code'
|
335
335
|
end
|
336
336
|
end
|
337
337
|
end
|
@@ -46,6 +46,37 @@ module Google
|
|
46
46
|
|
47
47
|
def initialize
|
48
48
|
super('https://language.googleapis.com/', '')
|
49
|
+
@batch_path = 'batch'
|
50
|
+
end
|
51
|
+
|
52
|
+
# Analyzes the sentiment of the provided text.
|
53
|
+
# @param [Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest] analyze_sentiment_request_object
|
54
|
+
# @param [String] fields
|
55
|
+
# Selector specifying which fields to include in a partial response.
|
56
|
+
# @param [String] quota_user
|
57
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
58
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
59
|
+
# @param [Google::Apis::RequestOptions] options
|
60
|
+
# Request-specific options
|
61
|
+
#
|
62
|
+
# @yield [result, err] Result & error if block supplied
|
63
|
+
# @yieldparam result [Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse] parsed result object
|
64
|
+
# @yieldparam err [StandardError] error object if request failed
|
65
|
+
#
|
66
|
+
# @return [Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse]
|
67
|
+
#
|
68
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
69
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
70
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
71
|
+
def analyze_document_sentiment(analyze_sentiment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
72
|
+
command = make_simple_command(:post, 'v1beta1/documents:analyzeSentiment', options)
|
73
|
+
command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest::Representation
|
74
|
+
command.request_object = analyze_sentiment_request_object
|
75
|
+
command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse::Representation
|
76
|
+
command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse
|
77
|
+
command.query['fields'] = fields unless fields.nil?
|
78
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
79
|
+
execute_or_queue_command(command, &block)
|
49
80
|
end
|
50
81
|
|
51
82
|
# A convenience method that provides all the features that analyzeSentiment,
|
@@ -142,36 +173,6 @@ module Google
|
|
142
173
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
143
174
|
execute_or_queue_command(command, &block)
|
144
175
|
end
|
145
|
-
|
146
|
-
# Analyzes the sentiment of the provided text.
|
147
|
-
# @param [Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest] analyze_sentiment_request_object
|
148
|
-
# @param [String] fields
|
149
|
-
# Selector specifying which fields to include in a partial response.
|
150
|
-
# @param [String] quota_user
|
151
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
152
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
153
|
-
# @param [Google::Apis::RequestOptions] options
|
154
|
-
# Request-specific options
|
155
|
-
#
|
156
|
-
# @yield [result, err] Result & error if block supplied
|
157
|
-
# @yieldparam result [Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse] parsed result object
|
158
|
-
# @yieldparam err [StandardError] error object if request failed
|
159
|
-
#
|
160
|
-
# @return [Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse]
|
161
|
-
#
|
162
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
163
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
164
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
165
|
-
def analyze_document_sentiment(analyze_sentiment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
166
|
-
command = make_simple_command(:post, 'v1beta1/documents:analyzeSentiment', options)
|
167
|
-
command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest::Representation
|
168
|
-
command.request_object = analyze_sentiment_request_object
|
169
|
-
command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse::Representation
|
170
|
-
command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse
|
171
|
-
command.query['fields'] = fields unless fields.nil?
|
172
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
173
|
-
execute_or_queue_command(command, &block)
|
174
|
-
end
|
175
176
|
|
176
177
|
protected
|
177
178
|
|
@@ -22,22 +22,109 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module LoggingV2
|
24
24
|
|
25
|
-
#
|
26
|
-
|
25
|
+
# An object representing a resource that can be used for monitoring, logging,
|
26
|
+
# billing, or other purposes. Examples include virtual machine instances,
|
27
|
+
# databases, and storage devices such as disks. The type field identifies a
|
28
|
+
# MonitoredResourceDescriptor object that describes the resource's schema.
|
29
|
+
# Information in the labels field identifies the actual resource and its
|
30
|
+
# attributes according to the schema. For example, a particular Compute Engine
|
31
|
+
# VM instance could be represented by the following object, because the
|
32
|
+
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
33
|
+
# zone":
|
34
|
+
# ` "type": "gce_instance",
|
35
|
+
# "labels": ` "instance_id": "12345678901234",
|
36
|
+
# "zone": "us-central1-a" ``
|
37
|
+
class MonitoredResource
|
27
38
|
include Google::Apis::Core::Hashable
|
28
39
|
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
#
|
33
|
-
|
40
|
+
# Required. The monitored resource type. This field must match the type field of
|
41
|
+
# a MonitoredResourceDescriptor object. For example, the type of a Cloud SQL
|
42
|
+
# database is "cloudsql_database".
|
43
|
+
# Corresponds to the JSON property `type`
|
44
|
+
# @return [String]
|
45
|
+
attr_accessor :type
|
34
46
|
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
# Corresponds to the JSON property `
|
47
|
+
# Required. Values for all of the labels listed in the associated monitored
|
48
|
+
# resource descriptor. For example, Cloud SQL databases use the labels "
|
49
|
+
# database_id" and "zone".
|
50
|
+
# Corresponds to the JSON property `labels`
|
51
|
+
# @return [Hash<String,String>]
|
52
|
+
attr_accessor :labels
|
53
|
+
|
54
|
+
def initialize(**args)
|
55
|
+
update!(**args)
|
56
|
+
end
|
57
|
+
|
58
|
+
# Update properties of this object
|
59
|
+
def update!(**args)
|
60
|
+
@type = args[:type] if args.key?(:type)
|
61
|
+
@labels = args[:labels] if args.key?(:labels)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# The parameters to WriteLogEntries.
|
66
|
+
class WriteLogEntriesRequest
|
67
|
+
include Google::Apis::Core::Hashable
|
68
|
+
|
69
|
+
# Optional. Default labels that are added to the labels field of all log entries
|
70
|
+
# in entries. If a log entry already has a label with the same key as a label in
|
71
|
+
# this parameter, then the log entry's label is not changed. See LogEntry.
|
72
|
+
# Corresponds to the JSON property `labels`
|
73
|
+
# @return [Hash<String,String>]
|
74
|
+
attr_accessor :labels
|
75
|
+
|
76
|
+
# An object representing a resource that can be used for monitoring, logging,
|
77
|
+
# billing, or other purposes. Examples include virtual machine instances,
|
78
|
+
# databases, and storage devices such as disks. The type field identifies a
|
79
|
+
# MonitoredResourceDescriptor object that describes the resource's schema.
|
80
|
+
# Information in the labels field identifies the actual resource and its
|
81
|
+
# attributes according to the schema. For example, a particular Compute Engine
|
82
|
+
# VM instance could be represented by the following object, because the
|
83
|
+
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
84
|
+
# zone":
|
85
|
+
# ` "type": "gce_instance",
|
86
|
+
# "labels": ` "instance_id": "12345678901234",
|
87
|
+
# "zone": "us-central1-a" ``
|
88
|
+
# Corresponds to the JSON property `resource`
|
89
|
+
# @return [Google::Apis::LoggingV2::MonitoredResource]
|
90
|
+
attr_accessor :resource
|
91
|
+
|
92
|
+
# Optional. A default log resource name that is assigned to all log entries in
|
93
|
+
# entries that do not specify a value for log_name:
|
94
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
95
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
96
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
97
|
+
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
98
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
99
|
+
# or "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
100
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
101
|
+
# Corresponds to the JSON property `logName`
|
39
102
|
# @return [String]
|
40
|
-
attr_accessor :
|
103
|
+
attr_accessor :log_name
|
104
|
+
|
105
|
+
# Required. The log entries to write. Values supplied for the fields log_name,
|
106
|
+
# resource, and labels in this entries.write request are inserted into those log
|
107
|
+
# entries in this list that do not provide their own values.Stackdriver Logging
|
108
|
+
# also creates and inserts values for timestamp and insert_id if the entries do
|
109
|
+
# not provide them. The created insert_id for the N'th entry in this list will
|
110
|
+
# be greater than earlier entries and less than later entries. Otherwise, the
|
111
|
+
# order of log entries in this list does not matter.To improve throughput and to
|
112
|
+
# avoid exceeding the quota limit for calls to entries.write, you should write
|
113
|
+
# multiple log entries at once rather than calling this method for each
|
114
|
+
# individual log entry.
|
115
|
+
# Corresponds to the JSON property `entries`
|
116
|
+
# @return [Array<Google::Apis::LoggingV2::LogEntry>]
|
117
|
+
attr_accessor :entries
|
118
|
+
|
119
|
+
# Optional. Whether valid entries should be written even if some other entries
|
120
|
+
# fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any entry is not
|
121
|
+
# written, then the response status is the error associated with one of the
|
122
|
+
# failed entries and the response includes error details keyed by the entries'
|
123
|
+
# zero-based index in the entries.write method.
|
124
|
+
# Corresponds to the JSON property `partialSuccess`
|
125
|
+
# @return [Boolean]
|
126
|
+
attr_accessor :partial_success
|
127
|
+
alias_method :partial_success?, :partial_success
|
41
128
|
|
42
129
|
def initialize(**args)
|
43
130
|
update!(**args)
|
@@ -45,35 +132,126 @@ module Google
|
|
45
132
|
|
46
133
|
# Update properties of this object
|
47
134
|
def update!(**args)
|
48
|
-
@
|
49
|
-
@
|
135
|
+
@labels = args[:labels] if args.key?(:labels)
|
136
|
+
@resource = args[:resource] if args.key?(:resource)
|
137
|
+
@log_name = args[:log_name] if args.key?(:log_name)
|
138
|
+
@entries = args[:entries] if args.key?(:entries)
|
139
|
+
@partial_success = args[:partial_success] if args.key?(:partial_success)
|
50
140
|
end
|
51
141
|
end
|
52
142
|
|
53
|
-
#
|
54
|
-
|
143
|
+
# Describes a sink used to export log entries to one of the following
|
144
|
+
# destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
|
145
|
+
# Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
|
146
|
+
# The sink must be created within a project, organization, billing account, or
|
147
|
+
# folder.
|
148
|
+
class LogSink
|
55
149
|
include Google::Apis::Core::Hashable
|
56
150
|
|
57
|
-
#
|
58
|
-
#
|
59
|
-
#
|
60
|
-
|
151
|
+
# Required. The client-assigned sink identifier, unique within the project.
|
152
|
+
# Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100
|
153
|
+
# characters and can include only the following characters: upper and lower-case
|
154
|
+
# alphanumeric characters, underscores, hyphens, and periods.
|
155
|
+
# Corresponds to the JSON property `name`
|
156
|
+
# @return [String]
|
157
|
+
attr_accessor :name
|
61
158
|
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
159
|
+
# Optional. An advanced logs filter. The only exported log entries are those
|
160
|
+
# that are in the resource owning the sink and that match the filter. The filter
|
161
|
+
# must use the log entry format specified by the output_version_format parameter.
|
162
|
+
# For example, in the v2 format:
|
163
|
+
# logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
|
164
|
+
# Corresponds to the JSON property `filter`
|
165
|
+
# @return [String]
|
166
|
+
attr_accessor :filter
|
167
|
+
|
168
|
+
# Required. The export destination:
|
169
|
+
# "storage.googleapis.com/[GCS_BUCKET]"
|
170
|
+
# "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
|
171
|
+
# "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
|
172
|
+
# The sink's writer_identity, set when the sink is created, must have permission
|
173
|
+
# to write to the destination or else the log entries are not exported. For more
|
174
|
+
# information, see Exporting Logs With Sinks.
|
175
|
+
# Corresponds to the JSON property `destination`
|
176
|
+
# @return [String]
|
177
|
+
attr_accessor :destination
|
178
|
+
|
179
|
+
# Optional. The time at which this sink will stop exporting log entries. Log
|
180
|
+
# entries are exported only if their timestamp is earlier than the end time. If
|
181
|
+
# this field is not supplied, there is no end time. If both a start time and an
|
182
|
+
# end time are provided, then the end time must be later than the start time.
|
183
|
+
# Corresponds to the JSON property `endTime`
|
184
|
+
# @return [String]
|
185
|
+
attr_accessor :end_time
|
186
|
+
|
187
|
+
# Optional. The time at which this sink will begin exporting log entries. Log
|
188
|
+
# entries are exported only if their timestamp is not earlier than the start
|
189
|
+
# time. The default value of this field is the time the sink is created or
|
190
|
+
# updated.
|
191
|
+
# Corresponds to the JSON property `startTime`
|
192
|
+
# @return [String]
|
193
|
+
attr_accessor :start_time
|
194
|
+
|
195
|
+
# Output only. An IAM identity—a service account or group—under
|
196
|
+
# which Stackdriver Logging writes the exported log entries to the sink's
|
197
|
+
# destination. This field is set by sinks.create and sinks.update, based on the
|
198
|
+
# setting of unique_writer_identity in those methods.Until you grant this
|
199
|
+
# identity write-access to the destination, log entry exports from this sink
|
200
|
+
# will fail. For more information, see Granting access for a resource. Consult
|
201
|
+
# the destination service's documentation to determine the appropriate IAM roles
|
202
|
+
# to assign to the identity.
|
203
|
+
# Corresponds to the JSON property `writerIdentity`
|
204
|
+
# @return [String]
|
205
|
+
attr_accessor :writer_identity
|
206
|
+
|
207
|
+
# Optional. The log entry format to use for this sink's exported log entries.
|
208
|
+
# The v2 format is used by default. The v1 format is deprecated and should be
|
209
|
+
# used only as part of a migration effort to v2. See Migration to the v2 API.
|
210
|
+
# Corresponds to the JSON property `outputVersionFormat`
|
211
|
+
# @return [String]
|
212
|
+
attr_accessor :output_version_format
|
213
|
+
|
214
|
+
def initialize(**args)
|
215
|
+
update!(**args)
|
216
|
+
end
|
217
|
+
|
218
|
+
# Update properties of this object
|
219
|
+
def update!(**args)
|
220
|
+
@name = args[:name] if args.key?(:name)
|
221
|
+
@filter = args[:filter] if args.key?(:filter)
|
222
|
+
@destination = args[:destination] if args.key?(:destination)
|
223
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
224
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
225
|
+
@writer_identity = args[:writer_identity] if args.key?(:writer_identity)
|
226
|
+
@output_version_format = args[:output_version_format] if args.key?(:output_version_format)
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
# Result returned from ListLogs.
|
231
|
+
class ListLogsResponse
|
232
|
+
include Google::Apis::Core::Hashable
|
233
|
+
|
234
|
+
# If there might be more results than those appearing in this response, then
|
235
|
+
# nextPageToken is included. To get the next set of results, call this method
|
236
|
+
# again using the value of nextPageToken as pageToken.
|
65
237
|
# Corresponds to the JSON property `nextPageToken`
|
66
238
|
# @return [String]
|
67
239
|
attr_accessor :next_page_token
|
68
240
|
|
241
|
+
# A list of log names. For example, "projects/my-project/syslog" or "
|
242
|
+
# organizations/123/cloudresourcemanager.googleapis.com%2Factivity".
|
243
|
+
# Corresponds to the JSON property `logNames`
|
244
|
+
# @return [Array<String>]
|
245
|
+
attr_accessor :log_names
|
246
|
+
|
69
247
|
def initialize(**args)
|
70
248
|
update!(**args)
|
71
249
|
end
|
72
250
|
|
73
251
|
# Update properties of this object
|
74
252
|
def update!(**args)
|
75
|
-
@sinks = args[:sinks] if args.key?(:sinks)
|
76
253
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
254
|
+
@log_names = args[:log_names] if args.key?(:log_names)
|
77
255
|
end
|
78
256
|
end
|
79
257
|
|
@@ -83,24 +261,6 @@ module Google
|
|
83
261
|
class HttpRequest
|
84
262
|
include Google::Apis::Core::Hashable
|
85
263
|
|
86
|
-
# Whether or not the response was validated with the origin server before being
|
87
|
-
# served from cache. This field is only meaningful if cache_hit is True.
|
88
|
-
# Corresponds to the JSON property `cacheValidatedWithOriginServer`
|
89
|
-
# @return [Boolean]
|
90
|
-
attr_accessor :cache_validated_with_origin_server
|
91
|
-
alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
|
92
|
-
|
93
|
-
# The response code indicating the status of response. Examples: 200, 404.
|
94
|
-
# Corresponds to the JSON property `status`
|
95
|
-
# @return [Fixnum]
|
96
|
-
attr_accessor :status
|
97
|
-
|
98
|
-
# The referer URL of the request, as defined in HTTP/1.1 Header Field
|
99
|
-
# Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
100
|
-
# Corresponds to the JSON property `referer`
|
101
|
-
# @return [String]
|
102
|
-
attr_accessor :referer
|
103
|
-
|
104
264
|
# The user agent sent by the client. Example: "Mozilla/4.0 (compatible; MSIE 6.0;
|
105
265
|
# Windows 98; Q312461; .NET CLR 1.0.3705)".
|
106
266
|
# Corresponds to the JSON property `userAgent`
|
@@ -116,7 +276,7 @@ module Google
|
|
116
276
|
# The number of HTTP response bytes inserted into cache. Set only when a cache
|
117
277
|
# fill was attempted.
|
118
278
|
# Corresponds to the JSON property `cacheFillBytes`
|
119
|
-
# @return [
|
279
|
+
# @return [Fixnum]
|
120
280
|
attr_accessor :cache_fill_bytes
|
121
281
|
|
122
282
|
# The request method. Examples: "GET", "HEAD", "PUT", "POST".
|
@@ -127,13 +287,13 @@ module Google
|
|
127
287
|
# The size of the HTTP response message sent back to the client, in bytes,
|
128
288
|
# including the response headers and the response body.
|
129
289
|
# Corresponds to the JSON property `responseSize`
|
130
|
-
# @return [
|
290
|
+
# @return [Fixnum]
|
131
291
|
attr_accessor :response_size
|
132
292
|
|
133
293
|
# The size of the HTTP request message in bytes, including the request headers
|
134
294
|
# and the request body.
|
135
295
|
# Corresponds to the JSON property `requestSize`
|
136
|
-
# @return [
|
296
|
+
# @return [Fixnum]
|
137
297
|
attr_accessor :request_size
|
138
298
|
|
139
299
|
# The scheme (http, https), the host name, the path and the query portion of the
|
@@ -142,18 +302,18 @@ module Google
|
|
142
302
|
# @return [String]
|
143
303
|
attr_accessor :request_url
|
144
304
|
|
145
|
-
# The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
|
146
|
-
# Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329".
|
147
|
-
# Corresponds to the JSON property `remoteIp`
|
148
|
-
# @return [String]
|
149
|
-
attr_accessor :remote_ip
|
150
|
-
|
151
305
|
# The IP address (IPv4 or IPv6) of the origin server that the request was sent
|
152
306
|
# to.
|
153
307
|
# Corresponds to the JSON property `serverIp`
|
154
308
|
# @return [String]
|
155
309
|
attr_accessor :server_ip
|
156
310
|
|
311
|
+
# The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
|
312
|
+
# Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329".
|
313
|
+
# Corresponds to the JSON property `remoteIp`
|
314
|
+
# @return [String]
|
315
|
+
attr_accessor :remote_ip
|
316
|
+
|
157
317
|
# Whether or not a cache lookup was attempted.
|
158
318
|
# Corresponds to the JSON property `cacheLookup`
|
159
319
|
# @return [Boolean]
|
@@ -166,15 +326,30 @@ module Google
|
|
166
326
|
attr_accessor :cache_hit
|
167
327
|
alias_method :cache_hit?, :cache_hit
|
168
328
|
|
329
|
+
# Whether or not the response was validated with the origin server before being
|
330
|
+
# served from cache. This field is only meaningful if cache_hit is True.
|
331
|
+
# Corresponds to the JSON property `cacheValidatedWithOriginServer`
|
332
|
+
# @return [Boolean]
|
333
|
+
attr_accessor :cache_validated_with_origin_server
|
334
|
+
alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
|
335
|
+
|
336
|
+
# The response code indicating the status of response. Examples: 200, 404.
|
337
|
+
# Corresponds to the JSON property `status`
|
338
|
+
# @return [Fixnum]
|
339
|
+
attr_accessor :status
|
340
|
+
|
341
|
+
# The referer URL of the request, as defined in HTTP/1.1 Header Field
|
342
|
+
# Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
343
|
+
# Corresponds to the JSON property `referer`
|
344
|
+
# @return [String]
|
345
|
+
attr_accessor :referer
|
346
|
+
|
169
347
|
def initialize(**args)
|
170
348
|
update!(**args)
|
171
349
|
end
|
172
350
|
|
173
351
|
# Update properties of this object
|
174
352
|
def update!(**args)
|
175
|
-
@cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server)
|
176
|
-
@status = args[:status] if args.key?(:status)
|
177
|
-
@referer = args[:referer] if args.key?(:referer)
|
178
353
|
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
179
354
|
@latency = args[:latency] if args.key?(:latency)
|
180
355
|
@cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
|
@@ -182,10 +357,40 @@ module Google
|
|
182
357
|
@response_size = args[:response_size] if args.key?(:response_size)
|
183
358
|
@request_size = args[:request_size] if args.key?(:request_size)
|
184
359
|
@request_url = args[:request_url] if args.key?(:request_url)
|
185
|
-
@remote_ip = args[:remote_ip] if args.key?(:remote_ip)
|
186
360
|
@server_ip = args[:server_ip] if args.key?(:server_ip)
|
361
|
+
@remote_ip = args[:remote_ip] if args.key?(:remote_ip)
|
187
362
|
@cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup)
|
188
363
|
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
|
364
|
+
@cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server)
|
365
|
+
@status = args[:status] if args.key?(:status)
|
366
|
+
@referer = args[:referer] if args.key?(:referer)
|
367
|
+
end
|
368
|
+
end
|
369
|
+
|
370
|
+
# Result returned from ListSinks.
|
371
|
+
class ListSinksResponse
|
372
|
+
include Google::Apis::Core::Hashable
|
373
|
+
|
374
|
+
# A list of sinks.
|
375
|
+
# Corresponds to the JSON property `sinks`
|
376
|
+
# @return [Array<Google::Apis::LoggingV2::LogSink>]
|
377
|
+
attr_accessor :sinks
|
378
|
+
|
379
|
+
# If there might be more results than appear in this response, then
|
380
|
+
# nextPageToken is included. To get the next set of results, call the same
|
381
|
+
# method again using the value of nextPageToken as pageToken.
|
382
|
+
# Corresponds to the JSON property `nextPageToken`
|
383
|
+
# @return [String]
|
384
|
+
attr_accessor :next_page_token
|
385
|
+
|
386
|
+
def initialize(**args)
|
387
|
+
update!(**args)
|
388
|
+
end
|
389
|
+
|
390
|
+
# Update properties of this object
|
391
|
+
def update!(**args)
|
392
|
+
@sinks = args[:sinks] if args.key?(:sinks)
|
393
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
189
394
|
end
|
190
395
|
end
|
191
396
|
|
@@ -286,12 +491,6 @@ module Google
|
|
286
491
|
class LogEntrySourceLocation
|
287
492
|
include Google::Apis::Core::Hashable
|
288
493
|
|
289
|
-
# Optional. Source file name. Depending on the runtime environment, this might
|
290
|
-
# be a simple name or a fully-qualified name.
|
291
|
-
# Corresponds to the JSON property `file`
|
292
|
-
# @return [String]
|
293
|
-
attr_accessor :file
|
294
|
-
|
295
494
|
# Optional. Human-readable name of the function or method being invoked, with
|
296
495
|
# optional context such as the class or package name. This information may be
|
297
496
|
# used in contexts such as the logs viewer, where a file and line number are
|
@@ -304,18 +503,24 @@ module Google
|
|
304
503
|
# Optional. Line within the source file. 1-based; 0 indicates no line number
|
305
504
|
# available.
|
306
505
|
# Corresponds to the JSON property `line`
|
307
|
-
# @return [
|
506
|
+
# @return [Fixnum]
|
308
507
|
attr_accessor :line
|
309
508
|
|
509
|
+
# Optional. Source file name. Depending on the runtime environment, this might
|
510
|
+
# be a simple name or a fully-qualified name.
|
511
|
+
# Corresponds to the JSON property `file`
|
512
|
+
# @return [String]
|
513
|
+
attr_accessor :file
|
514
|
+
|
310
515
|
def initialize(**args)
|
311
516
|
update!(**args)
|
312
517
|
end
|
313
518
|
|
314
519
|
# Update properties of this object
|
315
520
|
def update!(**args)
|
316
|
-
@file = args[:file] if args.key?(:file)
|
317
521
|
@function = args[:function] if args.key?(:function)
|
318
522
|
@line = args[:line] if args.key?(:line)
|
523
|
+
@file = args[:file] if args.key?(:file)
|
319
524
|
end
|
320
525
|
end
|
321
526
|
|
@@ -356,6 +561,11 @@ module Google
|
|
356
561
|
class LogLine
|
357
562
|
include Google::Apis::Core::Hashable
|
358
563
|
|
564
|
+
# Approximate time when this log entry was made.
|
565
|
+
# Corresponds to the JSON property `time`
|
566
|
+
# @return [String]
|
567
|
+
attr_accessor :time
|
568
|
+
|
359
569
|
# Severity of this log entry.
|
360
570
|
# Corresponds to the JSON property `severity`
|
361
571
|
# @return [String]
|
@@ -371,21 +581,16 @@ module Google
|
|
371
581
|
# @return [Google::Apis::LoggingV2::SourceLocation]
|
372
582
|
attr_accessor :source_location
|
373
583
|
|
374
|
-
# Approximate time when this log entry was made.
|
375
|
-
# Corresponds to the JSON property `time`
|
376
|
-
# @return [String]
|
377
|
-
attr_accessor :time
|
378
|
-
|
379
584
|
def initialize(**args)
|
380
585
|
update!(**args)
|
381
586
|
end
|
382
587
|
|
383
588
|
# Update properties of this object
|
384
589
|
def update!(**args)
|
590
|
+
@time = args[:time] if args.key?(:time)
|
385
591
|
@severity = args[:severity] if args.key?(:severity)
|
386
592
|
@log_message = args[:log_message] if args.key?(:log_message)
|
387
593
|
@source_location = args[:source_location] if args.key?(:source_location)
|
388
|
-
@time = args[:time] if args.key?(:time)
|
389
594
|
end
|
390
595
|
end
|
391
596
|
|
@@ -439,43 +644,6 @@ module Google
|
|
439
644
|
class LogEntry
|
440
645
|
include Google::Apis::Core::Hashable
|
441
646
|
|
442
|
-
# The log entry payload, represented as a Unicode string (UTF-8).
|
443
|
-
# Corresponds to the JSON property `textPayload`
|
444
|
-
# @return [String]
|
445
|
-
attr_accessor :text_payload
|
446
|
-
|
447
|
-
# The log entry payload, represented as a protocol buffer. Some Google Cloud
|
448
|
-
# Platform services use this field for their log entry payloads.
|
449
|
-
# Corresponds to the JSON property `protoPayload`
|
450
|
-
# @return [Hash<String,Object>]
|
451
|
-
attr_accessor :proto_payload
|
452
|
-
|
453
|
-
# Optional. Resource name of the trace associated with the log entry, if any. If
|
454
|
-
# it contains a relative resource name, the name is assumed to be relative to //
|
455
|
-
# tracing.googleapis.com. Example: projects/my-projectid/traces/
|
456
|
-
# 06796866738c859f2f19b7cfb3214824
|
457
|
-
# Corresponds to the JSON property `trace`
|
458
|
-
# @return [String]
|
459
|
-
attr_accessor :trace
|
460
|
-
|
461
|
-
# Optional. A set of user-defined (key, value) data that provides additional
|
462
|
-
# information about the log entry.
|
463
|
-
# Corresponds to the JSON property `labels`
|
464
|
-
# @return [Hash<String,String>]
|
465
|
-
attr_accessor :labels
|
466
|
-
|
467
|
-
# Optional. The severity of the log entry. The default value is LogSeverity.
|
468
|
-
# DEFAULT.
|
469
|
-
# Corresponds to the JSON property `severity`
|
470
|
-
# @return [String]
|
471
|
-
attr_accessor :severity
|
472
|
-
|
473
|
-
# Additional information about the source code location that produced the log
|
474
|
-
# entry.
|
475
|
-
# Corresponds to the JSON property `sourceLocation`
|
476
|
-
# @return [Google::Apis::LoggingV2::LogEntrySourceLocation]
|
477
|
-
attr_accessor :source_location
|
478
|
-
|
479
647
|
# Optional. The time the event described by the log entry occurred. If omitted
|
480
648
|
# in a new log entry, Stackdriver Logging will insert the time the log entry is
|
481
649
|
# received. Stackdriver Logging might reject log entries whose time stamps are
|
@@ -503,13 +671,6 @@ module Google
|
|
503
671
|
# @return [String]
|
504
672
|
attr_accessor :log_name
|
505
673
|
|
506
|
-
# A common proto for logging HTTP requests. Only contains semantics defined by
|
507
|
-
# the HTTP specification. Product-specific logging information MUST be defined
|
508
|
-
# in a separate message.
|
509
|
-
# Corresponds to the JSON property `httpRequest`
|
510
|
-
# @return [Google::Apis::LoggingV2::HttpRequest]
|
511
|
-
attr_accessor :http_request
|
512
|
-
|
513
674
|
# An object representing a resource that can be used for monitoring, logging,
|
514
675
|
# billing, or other purposes. Examples include virtual machine instances,
|
515
676
|
# databases, and storage devices such as disks. The type field identifies a
|
@@ -526,12 +687,25 @@ module Google
|
|
526
687
|
# @return [Google::Apis::LoggingV2::MonitoredResource]
|
527
688
|
attr_accessor :resource
|
528
689
|
|
690
|
+
# A common proto for logging HTTP requests. Only contains semantics defined by
|
691
|
+
# the HTTP specification. Product-specific logging information MUST be defined
|
692
|
+
# in a separate message.
|
693
|
+
# Corresponds to the JSON property `httpRequest`
|
694
|
+
# @return [Google::Apis::LoggingV2::HttpRequest]
|
695
|
+
attr_accessor :http_request
|
696
|
+
|
529
697
|
# The log entry payload, represented as a structure that is expressed as a JSON
|
530
698
|
# object.
|
531
699
|
# Corresponds to the JSON property `jsonPayload`
|
532
700
|
# @return [Hash<String,Object>]
|
533
701
|
attr_accessor :json_payload
|
534
702
|
|
703
|
+
# Additional information about a potentially long-running operation with which a
|
704
|
+
# log entry is associated.
|
705
|
+
# Corresponds to the JSON property `operation`
|
706
|
+
# @return [Google::Apis::LoggingV2::LogEntryOperation]
|
707
|
+
attr_accessor :operation
|
708
|
+
|
535
709
|
# Optional. A unique identifier for the log entry. If you provide a value, then
|
536
710
|
# Stackdriver Logging considers other log entries in the same project, with the
|
537
711
|
# same timestamp, and with the same insert_id to be duplicates which can be
|
@@ -542,11 +716,42 @@ module Google
|
|
542
716
|
# @return [String]
|
543
717
|
attr_accessor :insert_id
|
544
718
|
|
545
|
-
#
|
546
|
-
#
|
547
|
-
#
|
548
|
-
|
549
|
-
|
719
|
+
# The log entry payload, represented as a Unicode string (UTF-8).
|
720
|
+
# Corresponds to the JSON property `textPayload`
|
721
|
+
# @return [String]
|
722
|
+
attr_accessor :text_payload
|
723
|
+
|
724
|
+
# The log entry payload, represented as a protocol buffer. Some Google Cloud
|
725
|
+
# Platform services use this field for their log entry payloads.
|
726
|
+
# Corresponds to the JSON property `protoPayload`
|
727
|
+
# @return [Hash<String,Object>]
|
728
|
+
attr_accessor :proto_payload
|
729
|
+
|
730
|
+
# Optional. A set of user-defined (key, value) data that provides additional
|
731
|
+
# information about the log entry.
|
732
|
+
# Corresponds to the JSON property `labels`
|
733
|
+
# @return [Hash<String,String>]
|
734
|
+
attr_accessor :labels
|
735
|
+
|
736
|
+
# Optional. Resource name of the trace associated with the log entry, if any. If
|
737
|
+
# it contains a relative resource name, the name is assumed to be relative to //
|
738
|
+
# tracing.googleapis.com. Example: projects/my-projectid/traces/
|
739
|
+
# 06796866738c859f2f19b7cfb3214824
|
740
|
+
# Corresponds to the JSON property `trace`
|
741
|
+
# @return [String]
|
742
|
+
attr_accessor :trace
|
743
|
+
|
744
|
+
# Optional. The severity of the log entry. The default value is LogSeverity.
|
745
|
+
# DEFAULT.
|
746
|
+
# Corresponds to the JSON property `severity`
|
747
|
+
# @return [String]
|
748
|
+
attr_accessor :severity
|
749
|
+
|
750
|
+
# Additional information about the source code location that produced the log
|
751
|
+
# entry.
|
752
|
+
# Corresponds to the JSON property `sourceLocation`
|
753
|
+
# @return [Google::Apis::LoggingV2::LogEntrySourceLocation]
|
754
|
+
attr_accessor :source_location
|
550
755
|
|
551
756
|
def initialize(**args)
|
552
757
|
update!(**args)
|
@@ -554,19 +759,19 @@ module Google
|
|
554
759
|
|
555
760
|
# Update properties of this object
|
556
761
|
def update!(**args)
|
557
|
-
@text_payload = args[:text_payload] if args.key?(:text_payload)
|
558
|
-
@proto_payload = args[:proto_payload] if args.key?(:proto_payload)
|
559
|
-
@trace = args[:trace] if args.key?(:trace)
|
560
|
-
@labels = args[:labels] if args.key?(:labels)
|
561
|
-
@severity = args[:severity] if args.key?(:severity)
|
562
|
-
@source_location = args[:source_location] if args.key?(:source_location)
|
563
762
|
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
564
763
|
@log_name = args[:log_name] if args.key?(:log_name)
|
565
|
-
@http_request = args[:http_request] if args.key?(:http_request)
|
566
764
|
@resource = args[:resource] if args.key?(:resource)
|
765
|
+
@http_request = args[:http_request] if args.key?(:http_request)
|
567
766
|
@json_payload = args[:json_payload] if args.key?(:json_payload)
|
568
|
-
@insert_id = args[:insert_id] if args.key?(:insert_id)
|
569
767
|
@operation = args[:operation] if args.key?(:operation)
|
768
|
+
@insert_id = args[:insert_id] if args.key?(:insert_id)
|
769
|
+
@text_payload = args[:text_payload] if args.key?(:text_payload)
|
770
|
+
@proto_payload = args[:proto_payload] if args.key?(:proto_payload)
|
771
|
+
@labels = args[:labels] if args.key?(:labels)
|
772
|
+
@trace = args[:trace] if args.key?(:trace)
|
773
|
+
@severity = args[:severity] if args.key?(:severity)
|
774
|
+
@source_location = args[:source_location] if args.key?(:source_location)
|
570
775
|
end
|
571
776
|
end
|
572
777
|
|
@@ -574,12 +779,6 @@ module Google
|
|
574
779
|
class SourceLocation
|
575
780
|
include Google::Apis::Core::Hashable
|
576
781
|
|
577
|
-
# Source file name. Depending on the runtime environment, this might be a simple
|
578
|
-
# name or a fully-qualified name.
|
579
|
-
# Corresponds to the JSON property `file`
|
580
|
-
# @return [String]
|
581
|
-
attr_accessor :file
|
582
|
-
|
583
782
|
# Human-readable name of the function or method being invoked, with optional
|
584
783
|
# context such as the class or package name. This information is used in
|
585
784
|
# contexts such as the logs viewer, where a file and line number are less
|
@@ -591,18 +790,24 @@ module Google
|
|
591
790
|
|
592
791
|
# Line within the source file.
|
593
792
|
# Corresponds to the JSON property `line`
|
594
|
-
# @return [
|
793
|
+
# @return [Fixnum]
|
595
794
|
attr_accessor :line
|
596
795
|
|
796
|
+
# Source file name. Depending on the runtime environment, this might be a simple
|
797
|
+
# name or a fully-qualified name.
|
798
|
+
# Corresponds to the JSON property `file`
|
799
|
+
# @return [String]
|
800
|
+
attr_accessor :file
|
801
|
+
|
597
802
|
def initialize(**args)
|
598
803
|
update!(**args)
|
599
804
|
end
|
600
805
|
|
601
806
|
# Update properties of this object
|
602
807
|
def update!(**args)
|
603
|
-
@file = args[:file] if args.key?(:file)
|
604
808
|
@function_name = args[:function_name] if args.key?(:function_name)
|
605
809
|
@line = args[:line] if args.key?(:line)
|
810
|
+
@file = args[:file] if args.key?(:file)
|
606
811
|
end
|
607
812
|
end
|
608
813
|
|
@@ -610,23 +815,6 @@ module Google
|
|
610
815
|
class ListLogEntriesRequest
|
611
816
|
include Google::Apis::Core::Hashable
|
612
817
|
|
613
|
-
# Deprecated. Use resource_names instead. One or more project identifiers or
|
614
|
-
# project numbers from which to retrieve log entries. Example: "my-project-1A".
|
615
|
-
# If present, these project identifiers are converted to resource name format
|
616
|
-
# and added to the list of resources in resource_names.
|
617
|
-
# Corresponds to the JSON property `projectIds`
|
618
|
-
# @return [Array<String>]
|
619
|
-
attr_accessor :project_ids
|
620
|
-
|
621
|
-
# Optional. A filter that chooses which log entries to return. See Advanced Logs
|
622
|
-
# Filters. Only log entries that match the filter are returned. An empty filter
|
623
|
-
# matches all log entries in the resources listed in resource_names. Referencing
|
624
|
-
# a parent resource that is not listed in resource_names will cause the filter
|
625
|
-
# to return no results. The maximum length of the filter is 20000 characters.
|
626
|
-
# Corresponds to the JSON property `filter`
|
627
|
-
# @return [String]
|
628
|
-
attr_accessor :filter
|
629
|
-
|
630
818
|
# Optional. If present, then retrieve the next batch of results from the
|
631
819
|
# preceding call to this method. page_token must be the value of next_page_token
|
632
820
|
# from the previous response. The values of other method parameters should be
|
@@ -663,18 +851,35 @@ module Google
|
|
663
851
|
# @return [Array<String>]
|
664
852
|
attr_accessor :resource_names
|
665
853
|
|
854
|
+
# Deprecated. Use resource_names instead. One or more project identifiers or
|
855
|
+
# project numbers from which to retrieve log entries. Example: "my-project-1A".
|
856
|
+
# If present, these project identifiers are converted to resource name format
|
857
|
+
# and added to the list of resources in resource_names.
|
858
|
+
# Corresponds to the JSON property `projectIds`
|
859
|
+
# @return [Array<String>]
|
860
|
+
attr_accessor :project_ids
|
861
|
+
|
862
|
+
# Optional. A filter that chooses which log entries to return. See Advanced Logs
|
863
|
+
# Filters. Only log entries that match the filter are returned. An empty filter
|
864
|
+
# matches all log entries in the resources listed in resource_names. Referencing
|
865
|
+
# a parent resource that is not listed in resource_names will cause the filter
|
866
|
+
# to return no results. The maximum length of the filter is 20000 characters.
|
867
|
+
# Corresponds to the JSON property `filter`
|
868
|
+
# @return [String]
|
869
|
+
attr_accessor :filter
|
870
|
+
|
666
871
|
def initialize(**args)
|
667
872
|
update!(**args)
|
668
873
|
end
|
669
874
|
|
670
875
|
# Update properties of this object
|
671
876
|
def update!(**args)
|
672
|
-
@project_ids = args[:project_ids] if args.key?(:project_ids)
|
673
|
-
@filter = args[:filter] if args.key?(:filter)
|
674
877
|
@page_token = args[:page_token] if args.key?(:page_token)
|
675
878
|
@page_size = args[:page_size] if args.key?(:page_size)
|
676
879
|
@order_by = args[:order_by] if args.key?(:order_by)
|
677
880
|
@resource_names = args[:resource_names] if args.key?(:resource_names)
|
881
|
+
@project_ids = args[:project_ids] if args.key?(:project_ids)
|
882
|
+
@filter = args[:filter] if args.key?(:filter)
|
678
883
|
end
|
679
884
|
end
|
680
885
|
|
@@ -683,6 +888,11 @@ module Google
|
|
683
888
|
class RequestLog
|
684
889
|
include Google::Apis::Core::Hashable
|
685
890
|
|
891
|
+
# Version of the application that handled this request.
|
892
|
+
# Corresponds to the JSON property `versionId`
|
893
|
+
# @return [String]
|
894
|
+
attr_accessor :version_id
|
895
|
+
|
686
896
|
# Module of the application that handled this request.
|
687
897
|
# Corresponds to the JSON property `moduleId`
|
688
898
|
# @return [String]
|
@@ -713,7 +923,7 @@ module Google
|
|
713
923
|
|
714
924
|
# Size in bytes sent back to client by request.
|
715
925
|
# Corresponds to the JSON property `responseSize`
|
716
|
-
# @return [
|
926
|
+
# @return [Fixnum]
|
717
927
|
attr_accessor :response_size
|
718
928
|
|
719
929
|
# Stackdriver Trace identifier for this request.
|
@@ -786,17 +996,17 @@ module Google
|
|
786
996
|
# @return [Fixnum]
|
787
997
|
attr_accessor :instance_index
|
788
998
|
|
789
|
-
# Internet host and port number of the resource being requested.
|
790
|
-
# Corresponds to the JSON property `host`
|
791
|
-
# @return [String]
|
792
|
-
attr_accessor :host
|
793
|
-
|
794
999
|
# Whether this request is finished or active.
|
795
1000
|
# Corresponds to the JSON property `finished`
|
796
1001
|
# @return [Boolean]
|
797
1002
|
attr_accessor :finished
|
798
1003
|
alias_method :finished?, :finished
|
799
1004
|
|
1005
|
+
# Internet host and port number of the resource being requested.
|
1006
|
+
# Corresponds to the JSON property `host`
|
1007
|
+
# @return [String]
|
1008
|
+
attr_accessor :host
|
1009
|
+
|
800
1010
|
# HTTP version of request. Example: "HTTP/1.1".
|
801
1011
|
# Corresponds to the JSON property `httpVersion`
|
802
1012
|
# @return [String]
|
@@ -844,7 +1054,7 @@ module Google
|
|
844
1054
|
|
845
1055
|
# Number of CPU megacycles used to process request.
|
846
1056
|
# Corresponds to the JSON property `megaCycles`
|
847
|
-
# @return [
|
1057
|
+
# @return [Fixnum]
|
848
1058
|
attr_accessor :mega_cycles
|
849
1059
|
|
850
1060
|
# Whether this is the first RequestLog entry for this request. If an active
|
@@ -855,17 +1065,13 @@ module Google
|
|
855
1065
|
attr_accessor :first
|
856
1066
|
alias_method :first?, :first
|
857
1067
|
|
858
|
-
# Version of the application that handled this request.
|
859
|
-
# Corresponds to the JSON property `versionId`
|
860
|
-
# @return [String]
|
861
|
-
attr_accessor :version_id
|
862
|
-
|
863
1068
|
def initialize(**args)
|
864
1069
|
update!(**args)
|
865
1070
|
end
|
866
1071
|
|
867
1072
|
# Update properties of this object
|
868
1073
|
def update!(**args)
|
1074
|
+
@version_id = args[:version_id] if args.key?(:version_id)
|
869
1075
|
@module_id = args[:module_id] if args.key?(:module_id)
|
870
1076
|
@end_time = args[:end_time] if args.key?(:end_time)
|
871
1077
|
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
@@ -884,8 +1090,8 @@ module Google
|
|
884
1090
|
@task_name = args[:task_name] if args.key?(:task_name)
|
885
1091
|
@url_map_entry = args[:url_map_entry] if args.key?(:url_map_entry)
|
886
1092
|
@instance_index = args[:instance_index] if args.key?(:instance_index)
|
887
|
-
@host = args[:host] if args.key?(:host)
|
888
1093
|
@finished = args[:finished] if args.key?(:finished)
|
1094
|
+
@host = args[:host] if args.key?(:host)
|
889
1095
|
@http_version = args[:http_version] if args.key?(:http_version)
|
890
1096
|
@start_time = args[:start_time] if args.key?(:start_time)
|
891
1097
|
@latency = args[:latency] if args.key?(:latency)
|
@@ -897,7 +1103,6 @@ module Google
|
|
897
1103
|
@instance_id = args[:instance_id] if args.key?(:instance_id)
|
898
1104
|
@mega_cycles = args[:mega_cycles] if args.key?(:mega_cycles)
|
899
1105
|
@first = args[:first] if args.key?(:first)
|
900
|
-
@version_id = args[:version_id] if args.key?(:version_id)
|
901
1106
|
end
|
902
1107
|
end
|
903
1108
|
|
@@ -933,17 +1138,32 @@ module Google
|
|
933
1138
|
class SourceReference
|
934
1139
|
include Google::Apis::Core::Hashable
|
935
1140
|
|
1141
|
+
# The canonical and persistent identifier of the deployed revision. Example (git)
|
1142
|
+
# : "0035781c50ec7aa23385dc841529ce8a4b70db1b"
|
1143
|
+
# Corresponds to the JSON property `revisionId`
|
1144
|
+
# @return [String]
|
1145
|
+
attr_accessor :revision_id
|
1146
|
+
|
936
1147
|
# Optional. A URI string identifying the repository. Example: "https://github.
|
937
1148
|
# com/GoogleCloudPlatform/kubernetes.git"
|
938
1149
|
# Corresponds to the JSON property `repository`
|
939
1150
|
# @return [String]
|
940
1151
|
attr_accessor :repository
|
941
1152
|
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
1153
|
+
def initialize(**args)
|
1154
|
+
update!(**args)
|
1155
|
+
end
|
1156
|
+
|
1157
|
+
# Update properties of this object
|
1158
|
+
def update!(**args)
|
1159
|
+
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
1160
|
+
@repository = args[:repository] if args.key?(:repository)
|
1161
|
+
end
|
1162
|
+
end
|
1163
|
+
|
1164
|
+
# Result returned from WriteLogEntries. empty
|
1165
|
+
class WriteLogEntriesResponse
|
1166
|
+
include Google::Apis::Core::Hashable
|
947
1167
|
|
948
1168
|
def initialize(**args)
|
949
1169
|
update!(**args)
|
@@ -951,8 +1171,6 @@ module Google
|
|
951
1171
|
|
952
1172
|
# Update properties of this object
|
953
1173
|
def update!(**args)
|
954
|
-
@repository = args[:repository] if args.key?(:repository)
|
955
|
-
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
956
1174
|
end
|
957
1175
|
end
|
958
1176
|
|
@@ -961,20 +1179,6 @@ module Google
|
|
961
1179
|
class LogMetric
|
962
1180
|
include Google::Apis::Core::Hashable
|
963
1181
|
|
964
|
-
# Output only. The API version that created or updated this metric. The version
|
965
|
-
# also dictates the syntax of the filter expression. When a value for this field
|
966
|
-
# is missing, the default value of V2 should be assumed.
|
967
|
-
# Corresponds to the JSON property `version`
|
968
|
-
# @return [String]
|
969
|
-
attr_accessor :version
|
970
|
-
|
971
|
-
# Required. An advanced logs filter which is used to match log entries. Example:
|
972
|
-
# "resource.type=gae_app AND severity>=ERROR"
|
973
|
-
# The maximum length of the filter is 20000 characters.
|
974
|
-
# Corresponds to the JSON property `filter`
|
975
|
-
# @return [String]
|
976
|
-
attr_accessor :filter
|
977
|
-
|
978
1182
|
# Required. The client-assigned metric identifier. Examples: "error_count", "
|
979
1183
|
# nginx/requests".Metric identifiers are limited to 100 characters and can
|
980
1184
|
# include only the following characters: A-Z, a-z, 0-9, and the special
|
@@ -993,16 +1197,30 @@ module Google
|
|
993
1197
|
# @return [String]
|
994
1198
|
attr_accessor :description
|
995
1199
|
|
1200
|
+
# Output only. The API version that created or updated this metric. The version
|
1201
|
+
# also dictates the syntax of the filter expression. When a value for this field
|
1202
|
+
# is missing, the default value of V2 should be assumed.
|
1203
|
+
# Corresponds to the JSON property `version`
|
1204
|
+
# @return [String]
|
1205
|
+
attr_accessor :version
|
1206
|
+
|
1207
|
+
# Required. An advanced logs filter which is used to match log entries. Example:
|
1208
|
+
# "resource.type=gae_app AND severity>=ERROR"
|
1209
|
+
# The maximum length of the filter is 20000 characters.
|
1210
|
+
# Corresponds to the JSON property `filter`
|
1211
|
+
# @return [String]
|
1212
|
+
attr_accessor :filter
|
1213
|
+
|
996
1214
|
def initialize(**args)
|
997
1215
|
update!(**args)
|
998
1216
|
end
|
999
1217
|
|
1000
1218
|
# Update properties of this object
|
1001
1219
|
def update!(**args)
|
1002
|
-
@version = args[:version] if args.key?(:version)
|
1003
|
-
@filter = args[:filter] if args.key?(:filter)
|
1004
1220
|
@name = args[:name] if args.key?(:name)
|
1005
1221
|
@description = args[:description] if args.key?(:description)
|
1222
|
+
@version = args[:version] if args.key?(:version)
|
1223
|
+
@filter = args[:filter] if args.key?(:filter)
|
1006
1224
|
end
|
1007
1225
|
end
|
1008
1226
|
|
@@ -1048,224 +1266,6 @@ module Google
|
|
1048
1266
|
@first = args[:first] if args.key?(:first)
|
1049
1267
|
end
|
1050
1268
|
end
|
1051
|
-
|
1052
|
-
# Result returned from WriteLogEntries. empty
|
1053
|
-
class WriteLogEntriesResponse
|
1054
|
-
include Google::Apis::Core::Hashable
|
1055
|
-
|
1056
|
-
def initialize(**args)
|
1057
|
-
update!(**args)
|
1058
|
-
end
|
1059
|
-
|
1060
|
-
# Update properties of this object
|
1061
|
-
def update!(**args)
|
1062
|
-
end
|
1063
|
-
end
|
1064
|
-
|
1065
|
-
# An object representing a resource that can be used for monitoring, logging,
|
1066
|
-
# billing, or other purposes. Examples include virtual machine instances,
|
1067
|
-
# databases, and storage devices such as disks. The type field identifies a
|
1068
|
-
# MonitoredResourceDescriptor object that describes the resource's schema.
|
1069
|
-
# Information in the labels field identifies the actual resource and its
|
1070
|
-
# attributes according to the schema. For example, a particular Compute Engine
|
1071
|
-
# VM instance could be represented by the following object, because the
|
1072
|
-
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
1073
|
-
# zone":
|
1074
|
-
# ` "type": "gce_instance",
|
1075
|
-
# "labels": ` "instance_id": "12345678901234",
|
1076
|
-
# "zone": "us-central1-a" ``
|
1077
|
-
class MonitoredResource
|
1078
|
-
include Google::Apis::Core::Hashable
|
1079
|
-
|
1080
|
-
# Required. The monitored resource type. This field must match the type field of
|
1081
|
-
# a MonitoredResourceDescriptor object. For example, the type of a Cloud SQL
|
1082
|
-
# database is "cloudsql_database".
|
1083
|
-
# Corresponds to the JSON property `type`
|
1084
|
-
# @return [String]
|
1085
|
-
attr_accessor :type
|
1086
|
-
|
1087
|
-
# Required. Values for all of the labels listed in the associated monitored
|
1088
|
-
# resource descriptor. For example, Cloud SQL databases use the labels "
|
1089
|
-
# database_id" and "zone".
|
1090
|
-
# Corresponds to the JSON property `labels`
|
1091
|
-
# @return [Hash<String,String>]
|
1092
|
-
attr_accessor :labels
|
1093
|
-
|
1094
|
-
def initialize(**args)
|
1095
|
-
update!(**args)
|
1096
|
-
end
|
1097
|
-
|
1098
|
-
# Update properties of this object
|
1099
|
-
def update!(**args)
|
1100
|
-
@type = args[:type] if args.key?(:type)
|
1101
|
-
@labels = args[:labels] if args.key?(:labels)
|
1102
|
-
end
|
1103
|
-
end
|
1104
|
-
|
1105
|
-
# Describes a sink used to export log entries to one of the following
|
1106
|
-
# destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
|
1107
|
-
# Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
|
1108
|
-
# The sink must be created within a project, organization, billing account, or
|
1109
|
-
# folder.
|
1110
|
-
class LogSink
|
1111
|
-
include Google::Apis::Core::Hashable
|
1112
|
-
|
1113
|
-
# Required. The client-assigned sink identifier, unique within the project.
|
1114
|
-
# Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100
|
1115
|
-
# characters and can include only the following characters: upper and lower-case
|
1116
|
-
# alphanumeric characters, underscores, hyphens, and periods.
|
1117
|
-
# Corresponds to the JSON property `name`
|
1118
|
-
# @return [String]
|
1119
|
-
attr_accessor :name
|
1120
|
-
|
1121
|
-
# Optional. An advanced logs filter. The only exported log entries are those
|
1122
|
-
# that are in the resource owning the sink and that match the filter. The filter
|
1123
|
-
# must use the log entry format specified by the output_version_format parameter.
|
1124
|
-
# For example, in the v2 format:
|
1125
|
-
# logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
|
1126
|
-
# Corresponds to the JSON property `filter`
|
1127
|
-
# @return [String]
|
1128
|
-
attr_accessor :filter
|
1129
|
-
|
1130
|
-
# Required. The export destination:
|
1131
|
-
# "storage.googleapis.com/[GCS_BUCKET]"
|
1132
|
-
# "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
|
1133
|
-
# "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
|
1134
|
-
# The sink's writer_identity, set when the sink is created, must have permission
|
1135
|
-
# to write to the destination or else the log entries are not exported. For more
|
1136
|
-
# information, see Exporting Logs With Sinks.
|
1137
|
-
# Corresponds to the JSON property `destination`
|
1138
|
-
# @return [String]
|
1139
|
-
attr_accessor :destination
|
1140
|
-
|
1141
|
-
# Optional. The time at which this sink will stop exporting log entries. Log
|
1142
|
-
# entries are exported only if their timestamp is earlier than the end time. If
|
1143
|
-
# this field is not supplied, there is no end time. If both a start time and an
|
1144
|
-
# end time are provided, then the end time must be later than the start time.
|
1145
|
-
# Corresponds to the JSON property `endTime`
|
1146
|
-
# @return [String]
|
1147
|
-
attr_accessor :end_time
|
1148
|
-
|
1149
|
-
# Output only. An IAM identity—a service account or group—under
|
1150
|
-
# which Stackdriver Logging writes the exported log entries to the sink's
|
1151
|
-
# destination. This field is set by sinks.create and sinks.update, based on the
|
1152
|
-
# setting of unique_writer_identity in those methods.Until you grant this
|
1153
|
-
# identity write-access to the destination, log entry exports from this sink
|
1154
|
-
# will fail. For more information, see Granting access for a resource. Consult
|
1155
|
-
# the destination service's documentation to determine the appropriate IAM roles
|
1156
|
-
# to assign to the identity.
|
1157
|
-
# Corresponds to the JSON property `writerIdentity`
|
1158
|
-
# @return [String]
|
1159
|
-
attr_accessor :writer_identity
|
1160
|
-
|
1161
|
-
# Optional. The time at which this sink will begin exporting log entries. Log
|
1162
|
-
# entries are exported only if their timestamp is not earlier than the start
|
1163
|
-
# time. The default value of this field is the time the sink is created or
|
1164
|
-
# updated.
|
1165
|
-
# Corresponds to the JSON property `startTime`
|
1166
|
-
# @return [String]
|
1167
|
-
attr_accessor :start_time
|
1168
|
-
|
1169
|
-
# Optional. The log entry format to use for this sink's exported log entries.
|
1170
|
-
# The v2 format is used by default. The v1 format is deprecated and should be
|
1171
|
-
# used only as part of a migration effort to v2. See Migration to the v2 API.
|
1172
|
-
# Corresponds to the JSON property `outputVersionFormat`
|
1173
|
-
# @return [String]
|
1174
|
-
attr_accessor :output_version_format
|
1175
|
-
|
1176
|
-
def initialize(**args)
|
1177
|
-
update!(**args)
|
1178
|
-
end
|
1179
|
-
|
1180
|
-
# Update properties of this object
|
1181
|
-
def update!(**args)
|
1182
|
-
@name = args[:name] if args.key?(:name)
|
1183
|
-
@filter = args[:filter] if args.key?(:filter)
|
1184
|
-
@destination = args[:destination] if args.key?(:destination)
|
1185
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
1186
|
-
@writer_identity = args[:writer_identity] if args.key?(:writer_identity)
|
1187
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
1188
|
-
@output_version_format = args[:output_version_format] if args.key?(:output_version_format)
|
1189
|
-
end
|
1190
|
-
end
|
1191
|
-
|
1192
|
-
# The parameters to WriteLogEntries.
|
1193
|
-
class WriteLogEntriesRequest
|
1194
|
-
include Google::Apis::Core::Hashable
|
1195
|
-
|
1196
|
-
# Optional. A default log resource name that is assigned to all log entries in
|
1197
|
-
# entries that do not specify a value for log_name:
|
1198
|
-
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
1199
|
-
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
1200
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
1201
|
-
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
1202
|
-
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
1203
|
-
# or "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
1204
|
-
# 2Factivity". For more information about log names, see LogEntry.
|
1205
|
-
# Corresponds to the JSON property `logName`
|
1206
|
-
# @return [String]
|
1207
|
-
attr_accessor :log_name
|
1208
|
-
|
1209
|
-
# Required. The log entries to write. Values supplied for the fields log_name,
|
1210
|
-
# resource, and labels in this entries.write request are inserted into those log
|
1211
|
-
# entries in this list that do not provide their own values.Stackdriver Logging
|
1212
|
-
# also creates and inserts values for timestamp and insert_id if the entries do
|
1213
|
-
# not provide them. The created insert_id for the N'th entry in this list will
|
1214
|
-
# be greater than earlier entries and less than later entries. Otherwise, the
|
1215
|
-
# order of log entries in this list does not matter.To improve throughput and to
|
1216
|
-
# avoid exceeding the quota limit for calls to entries.write, you should write
|
1217
|
-
# multiple log entries at once rather than calling this method for each
|
1218
|
-
# individual log entry.
|
1219
|
-
# Corresponds to the JSON property `entries`
|
1220
|
-
# @return [Array<Google::Apis::LoggingV2::LogEntry>]
|
1221
|
-
attr_accessor :entries
|
1222
|
-
|
1223
|
-
# Optional. Whether valid entries should be written even if some other entries
|
1224
|
-
# fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any entry is not
|
1225
|
-
# written, then the response status is the error associated with one of the
|
1226
|
-
# failed entries and the response includes error details keyed by the entries'
|
1227
|
-
# zero-based index in the entries.write method.
|
1228
|
-
# Corresponds to the JSON property `partialSuccess`
|
1229
|
-
# @return [Boolean]
|
1230
|
-
attr_accessor :partial_success
|
1231
|
-
alias_method :partial_success?, :partial_success
|
1232
|
-
|
1233
|
-
# Optional. Default labels that are added to the labels field of all log entries
|
1234
|
-
# in entries. If a log entry already has a label with the same key as a label in
|
1235
|
-
# this parameter, then the log entry's label is not changed. See LogEntry.
|
1236
|
-
# Corresponds to the JSON property `labels`
|
1237
|
-
# @return [Hash<String,String>]
|
1238
|
-
attr_accessor :labels
|
1239
|
-
|
1240
|
-
# An object representing a resource that can be used for monitoring, logging,
|
1241
|
-
# billing, or other purposes. Examples include virtual machine instances,
|
1242
|
-
# databases, and storage devices such as disks. The type field identifies a
|
1243
|
-
# MonitoredResourceDescriptor object that describes the resource's schema.
|
1244
|
-
# Information in the labels field identifies the actual resource and its
|
1245
|
-
# attributes according to the schema. For example, a particular Compute Engine
|
1246
|
-
# VM instance could be represented by the following object, because the
|
1247
|
-
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
1248
|
-
# zone":
|
1249
|
-
# ` "type": "gce_instance",
|
1250
|
-
# "labels": ` "instance_id": "12345678901234",
|
1251
|
-
# "zone": "us-central1-a" ``
|
1252
|
-
# Corresponds to the JSON property `resource`
|
1253
|
-
# @return [Google::Apis::LoggingV2::MonitoredResource]
|
1254
|
-
attr_accessor :resource
|
1255
|
-
|
1256
|
-
def initialize(**args)
|
1257
|
-
update!(**args)
|
1258
|
-
end
|
1259
|
-
|
1260
|
-
# Update properties of this object
|
1261
|
-
def update!(**args)
|
1262
|
-
@log_name = args[:log_name] if args.key?(:log_name)
|
1263
|
-
@entries = args[:entries] if args.key?(:entries)
|
1264
|
-
@partial_success = args[:partial_success] if args.key?(:partial_success)
|
1265
|
-
@labels = args[:labels] if args.key?(:labels)
|
1266
|
-
@resource = args[:resource] if args.key?(:resource)
|
1267
|
-
end
|
1268
|
-
end
|
1269
1269
|
end
|
1270
1270
|
end
|
1271
1271
|
end
|