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,13 +22,25 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module LoggingV2
|
24
24
|
|
25
|
-
class
|
25
|
+
class MonitoredResource
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
27
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
-
class
|
31
|
+
class WriteLogEntriesRequest
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class LogSink
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class ListLogsResponse
|
32
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
45
|
|
34
46
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -40,6 +52,12 @@ module Google
|
|
40
52
|
include Google::Apis::Core::JsonObjectSupport
|
41
53
|
end
|
42
54
|
|
55
|
+
class ListSinksResponse
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
43
61
|
class LabelDescriptor
|
44
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
63
|
|
@@ -118,76 +136,92 @@ module Google
|
|
118
136
|
include Google::Apis::Core::JsonObjectSupport
|
119
137
|
end
|
120
138
|
|
121
|
-
class
|
139
|
+
class WriteLogEntriesResponse
|
122
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
141
|
|
124
142
|
include Google::Apis::Core::JsonObjectSupport
|
125
143
|
end
|
126
144
|
|
127
|
-
class
|
145
|
+
class LogMetric
|
128
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
147
|
|
130
148
|
include Google::Apis::Core::JsonObjectSupport
|
131
149
|
end
|
132
150
|
|
133
|
-
class
|
151
|
+
class LogEntryOperation
|
134
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
153
|
|
136
154
|
include Google::Apis::Core::JsonObjectSupport
|
137
155
|
end
|
138
156
|
|
139
157
|
class MonitoredResource
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
class LogSink
|
146
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
-
|
148
|
-
include Google::Apis::Core::JsonObjectSupport
|
158
|
+
# @private
|
159
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
160
|
+
property :type, as: 'type'
|
161
|
+
hash :labels, as: 'labels'
|
162
|
+
end
|
149
163
|
end
|
150
164
|
|
151
165
|
class WriteLogEntriesRequest
|
152
|
-
|
166
|
+
# @private
|
167
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
168
|
+
hash :labels, as: 'labels'
|
169
|
+
property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::Representation
|
153
170
|
|
154
|
-
|
171
|
+
property :log_name, as: 'logName'
|
172
|
+
collection :entries, as: 'entries', class: Google::Apis::LoggingV2::LogEntry, decorator: Google::Apis::LoggingV2::LogEntry::Representation
|
173
|
+
|
174
|
+
property :partial_success, as: 'partialSuccess'
|
175
|
+
end
|
155
176
|
end
|
156
177
|
|
157
|
-
class
|
178
|
+
class LogSink
|
158
179
|
# @private
|
159
180
|
class Representation < Google::Apis::Core::JsonRepresentation
|
160
|
-
|
161
|
-
property :
|
181
|
+
property :name, as: 'name'
|
182
|
+
property :filter, as: 'filter'
|
183
|
+
property :destination, as: 'destination'
|
184
|
+
property :end_time, as: 'endTime'
|
185
|
+
property :start_time, as: 'startTime'
|
186
|
+
property :writer_identity, as: 'writerIdentity'
|
187
|
+
property :output_version_format, as: 'outputVersionFormat'
|
162
188
|
end
|
163
189
|
end
|
164
190
|
|
165
|
-
class
|
191
|
+
class ListLogsResponse
|
166
192
|
# @private
|
167
193
|
class Representation < Google::Apis::Core::JsonRepresentation
|
168
|
-
collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2::LogSink, decorator: Google::Apis::LoggingV2::LogSink::Representation
|
169
|
-
|
170
194
|
property :next_page_token, as: 'nextPageToken'
|
195
|
+
collection :log_names, as: 'logNames'
|
171
196
|
end
|
172
197
|
end
|
173
198
|
|
174
199
|
class HttpRequest
|
175
200
|
# @private
|
176
201
|
class Representation < Google::Apis::Core::JsonRepresentation
|
177
|
-
property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
|
178
|
-
property :status, as: 'status'
|
179
|
-
property :referer, as: 'referer'
|
180
202
|
property :user_agent, as: 'userAgent'
|
181
203
|
property :latency, as: 'latency'
|
182
|
-
property :cache_fill_bytes, as: 'cacheFillBytes'
|
204
|
+
property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes'
|
183
205
|
property :request_method, as: 'requestMethod'
|
184
|
-
property :response_size, as: 'responseSize'
|
185
|
-
property :request_size, as: 'requestSize'
|
206
|
+
property :response_size, :numeric_string => true, as: 'responseSize'
|
207
|
+
property :request_size, :numeric_string => true, as: 'requestSize'
|
186
208
|
property :request_url, as: 'requestUrl'
|
187
|
-
property :remote_ip, as: 'remoteIp'
|
188
209
|
property :server_ip, as: 'serverIp'
|
210
|
+
property :remote_ip, as: 'remoteIp'
|
189
211
|
property :cache_lookup, as: 'cacheLookup'
|
190
212
|
property :cache_hit, as: 'cacheHit'
|
213
|
+
property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
|
214
|
+
property :status, as: 'status'
|
215
|
+
property :referer, as: 'referer'
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
class ListSinksResponse
|
220
|
+
# @private
|
221
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
222
|
+
collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2::LogSink, decorator: Google::Apis::LoggingV2::LogSink::Representation
|
223
|
+
|
224
|
+
property :next_page_token, as: 'nextPageToken'
|
191
225
|
end
|
192
226
|
end
|
193
227
|
|
@@ -215,9 +249,9 @@ module Google
|
|
215
249
|
class LogEntrySourceLocation
|
216
250
|
# @private
|
217
251
|
class Representation < Google::Apis::Core::JsonRepresentation
|
218
|
-
property :file, as: 'file'
|
219
252
|
property :function, as: 'function'
|
220
|
-
property :line, as: 'line'
|
253
|
+
property :line, :numeric_string => true, as: 'line'
|
254
|
+
property :file, as: 'file'
|
221
255
|
end
|
222
256
|
end
|
223
257
|
|
@@ -233,11 +267,11 @@ module Google
|
|
233
267
|
class LogLine
|
234
268
|
# @private
|
235
269
|
class Representation < Google::Apis::Core::JsonRepresentation
|
270
|
+
property :time, as: 'time'
|
236
271
|
property :severity, as: 'severity'
|
237
272
|
property :log_message, as: 'logMessage'
|
238
273
|
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::SourceLocation, decorator: Google::Apis::LoggingV2::SourceLocation::Representation
|
239
274
|
|
240
|
-
property :time, as: 'time'
|
241
275
|
end
|
242
276
|
end
|
243
277
|
|
@@ -259,57 +293,58 @@ module Google
|
|
259
293
|
class LogEntry
|
260
294
|
# @private
|
261
295
|
class Representation < Google::Apis::Core::JsonRepresentation
|
262
|
-
property :text_payload, as: 'textPayload'
|
263
|
-
hash :proto_payload, as: 'protoPayload'
|
264
|
-
property :trace, as: 'trace'
|
265
|
-
hash :labels, as: 'labels'
|
266
|
-
property :severity, as: 'severity'
|
267
|
-
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2::LogEntrySourceLocation::Representation
|
268
|
-
|
269
296
|
property :timestamp, as: 'timestamp'
|
270
297
|
property :log_name, as: 'logName'
|
271
|
-
property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2::HttpRequest, decorator: Google::Apis::LoggingV2::HttpRequest::Representation
|
272
|
-
|
273
298
|
property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::Representation
|
274
299
|
|
300
|
+
property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2::HttpRequest, decorator: Google::Apis::LoggingV2::HttpRequest::Representation
|
301
|
+
|
275
302
|
hash :json_payload, as: 'jsonPayload'
|
276
|
-
property :insert_id, as: 'insertId'
|
277
303
|
property :operation, as: 'operation', class: Google::Apis::LoggingV2::LogEntryOperation, decorator: Google::Apis::LoggingV2::LogEntryOperation::Representation
|
278
304
|
|
305
|
+
property :insert_id, as: 'insertId'
|
306
|
+
property :text_payload, as: 'textPayload'
|
307
|
+
hash :proto_payload, as: 'protoPayload'
|
308
|
+
hash :labels, as: 'labels'
|
309
|
+
property :trace, as: 'trace'
|
310
|
+
property :severity, as: 'severity'
|
311
|
+
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2::LogEntrySourceLocation::Representation
|
312
|
+
|
279
313
|
end
|
280
314
|
end
|
281
315
|
|
282
316
|
class SourceLocation
|
283
317
|
# @private
|
284
318
|
class Representation < Google::Apis::Core::JsonRepresentation
|
285
|
-
property :file, as: 'file'
|
286
319
|
property :function_name, as: 'functionName'
|
287
|
-
property :line, as: 'line'
|
320
|
+
property :line, :numeric_string => true, as: 'line'
|
321
|
+
property :file, as: 'file'
|
288
322
|
end
|
289
323
|
end
|
290
324
|
|
291
325
|
class ListLogEntriesRequest
|
292
326
|
# @private
|
293
327
|
class Representation < Google::Apis::Core::JsonRepresentation
|
294
|
-
collection :project_ids, as: 'projectIds'
|
295
|
-
property :filter, as: 'filter'
|
296
328
|
property :page_token, as: 'pageToken'
|
297
329
|
property :page_size, as: 'pageSize'
|
298
330
|
property :order_by, as: 'orderBy'
|
299
331
|
collection :resource_names, as: 'resourceNames'
|
332
|
+
collection :project_ids, as: 'projectIds'
|
333
|
+
property :filter, as: 'filter'
|
300
334
|
end
|
301
335
|
end
|
302
336
|
|
303
337
|
class RequestLog
|
304
338
|
# @private
|
305
339
|
class Representation < Google::Apis::Core::JsonRepresentation
|
340
|
+
property :version_id, as: 'versionId'
|
306
341
|
property :module_id, as: 'moduleId'
|
307
342
|
property :end_time, as: 'endTime'
|
308
343
|
property :user_agent, as: 'userAgent'
|
309
344
|
property :was_loading_request, as: 'wasLoadingRequest'
|
310
345
|
collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV2::SourceReference, decorator: Google::Apis::LoggingV2::SourceReference::Representation
|
311
346
|
|
312
|
-
property :response_size, as: 'responseSize'
|
347
|
+
property :response_size, :numeric_string => true, as: 'responseSize'
|
313
348
|
property :trace_id, as: 'traceId'
|
314
349
|
collection :line, as: 'line', class: Google::Apis::LoggingV2::LogLine, decorator: Google::Apis::LoggingV2::LogLine::Representation
|
315
350
|
|
@@ -323,8 +358,8 @@ module Google
|
|
323
358
|
property :task_name, as: 'taskName'
|
324
359
|
property :url_map_entry, as: 'urlMapEntry'
|
325
360
|
property :instance_index, as: 'instanceIndex'
|
326
|
-
property :host, as: 'host'
|
327
361
|
property :finished, as: 'finished'
|
362
|
+
property :host, as: 'host'
|
328
363
|
property :http_version, as: 'httpVersion'
|
329
364
|
property :start_time, as: 'startTime'
|
330
365
|
property :latency, as: 'latency'
|
@@ -334,9 +369,8 @@ module Google
|
|
334
369
|
property :method_prop, as: 'method'
|
335
370
|
property :cost, as: 'cost'
|
336
371
|
property :instance_id, as: 'instanceId'
|
337
|
-
property :mega_cycles, as: 'megaCycles'
|
372
|
+
property :mega_cycles, :numeric_string => true, as: 'megaCycles'
|
338
373
|
property :first, as: 'first'
|
339
|
-
property :version_id, as: 'versionId'
|
340
374
|
end
|
341
375
|
end
|
342
376
|
|
@@ -352,28 +386,8 @@ module Google
|
|
352
386
|
class SourceReference
|
353
387
|
# @private
|
354
388
|
class Representation < Google::Apis::Core::JsonRepresentation
|
355
|
-
property :repository, as: 'repository'
|
356
389
|
property :revision_id, as: 'revisionId'
|
357
|
-
|
358
|
-
end
|
359
|
-
|
360
|
-
class LogMetric
|
361
|
-
# @private
|
362
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
363
|
-
property :version, as: 'version'
|
364
|
-
property :filter, as: 'filter'
|
365
|
-
property :name, as: 'name'
|
366
|
-
property :description, as: 'description'
|
367
|
-
end
|
368
|
-
end
|
369
|
-
|
370
|
-
class LogEntryOperation
|
371
|
-
# @private
|
372
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
373
|
-
property :last, as: 'last'
|
374
|
-
property :id, as: 'id'
|
375
|
-
property :producer, as: 'producer'
|
376
|
-
property :first, as: 'first'
|
390
|
+
property :repository, as: 'repository'
|
377
391
|
end
|
378
392
|
end
|
379
393
|
|
@@ -383,37 +397,23 @@ module Google
|
|
383
397
|
end
|
384
398
|
end
|
385
399
|
|
386
|
-
class
|
387
|
-
# @private
|
388
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
389
|
-
property :type, as: 'type'
|
390
|
-
hash :labels, as: 'labels'
|
391
|
-
end
|
392
|
-
end
|
393
|
-
|
394
|
-
class LogSink
|
400
|
+
class LogMetric
|
395
401
|
# @private
|
396
402
|
class Representation < Google::Apis::Core::JsonRepresentation
|
397
403
|
property :name, as: 'name'
|
404
|
+
property :description, as: 'description'
|
405
|
+
property :version, as: 'version'
|
398
406
|
property :filter, as: 'filter'
|
399
|
-
property :destination, as: 'destination'
|
400
|
-
property :end_time, as: 'endTime'
|
401
|
-
property :writer_identity, as: 'writerIdentity'
|
402
|
-
property :start_time, as: 'startTime'
|
403
|
-
property :output_version_format, as: 'outputVersionFormat'
|
404
407
|
end
|
405
408
|
end
|
406
409
|
|
407
|
-
class
|
410
|
+
class LogEntryOperation
|
408
411
|
# @private
|
409
412
|
class Representation < Google::Apis::Core::JsonRepresentation
|
410
|
-
property :
|
411
|
-
|
412
|
-
|
413
|
-
property :
|
414
|
-
hash :labels, as: 'labels'
|
415
|
-
property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::Representation
|
416
|
-
|
413
|
+
property :last, as: 'last'
|
414
|
+
property :id, as: 'id'
|
415
|
+
property :producer, as: 'producer'
|
416
|
+
property :first, as: 'first'
|
417
417
|
end
|
418
418
|
end
|
419
419
|
end
|
@@ -44,182 +44,7 @@ module Google
|
|
44
44
|
|
45
45
|
def initialize
|
46
46
|
super('https://logging.googleapis.com/', '')
|
47
|
-
|
48
|
-
|
49
|
-
# Lists logs-based metrics.
|
50
|
-
# @param [String] parent
|
51
|
-
# Required. The name of the project containing the metrics:
|
52
|
-
# "projects/[PROJECT_ID]"
|
53
|
-
# @param [String] page_token
|
54
|
-
# Optional. If present, then retrieve the next batch of results from the
|
55
|
-
# preceding call to this method. pageToken must be the value of nextPageToken
|
56
|
-
# from the previous response. The values of other method parameters should be
|
57
|
-
# identical to those in the previous call.
|
58
|
-
# @param [Fixnum] page_size
|
59
|
-
# Optional. The maximum number of results to return from this request. Non-
|
60
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
61
|
-
# indicates that more results might be available.
|
62
|
-
# @param [String] fields
|
63
|
-
# Selector specifying which fields to include in a partial response.
|
64
|
-
# @param [String] quota_user
|
65
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
66
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
67
|
-
# @param [Google::Apis::RequestOptions] options
|
68
|
-
# Request-specific options
|
69
|
-
#
|
70
|
-
# @yield [result, err] Result & error if block supplied
|
71
|
-
# @yieldparam result [Google::Apis::LoggingV2::ListLogMetricsResponse] parsed result object
|
72
|
-
# @yieldparam err [StandardError] error object if request failed
|
73
|
-
#
|
74
|
-
# @return [Google::Apis::LoggingV2::ListLogMetricsResponse]
|
75
|
-
#
|
76
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
77
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
78
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
79
|
-
def list_project_metrics(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
80
|
-
command = make_simple_command(:get, 'v2/{+parent}/metrics', options)
|
81
|
-
command.response_representation = Google::Apis::LoggingV2::ListLogMetricsResponse::Representation
|
82
|
-
command.response_class = Google::Apis::LoggingV2::ListLogMetricsResponse
|
83
|
-
command.params['parent'] = parent unless parent.nil?
|
84
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
85
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
86
|
-
command.query['fields'] = fields unless fields.nil?
|
87
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
88
|
-
execute_or_queue_command(command, &block)
|
89
|
-
end
|
90
|
-
|
91
|
-
# Gets a logs-based metric.
|
92
|
-
# @param [String] metric_name
|
93
|
-
# The resource name of the desired metric:
|
94
|
-
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
95
|
-
# @param [String] fields
|
96
|
-
# Selector specifying which fields to include in a partial response.
|
97
|
-
# @param [String] quota_user
|
98
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
99
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
100
|
-
# @param [Google::Apis::RequestOptions] options
|
101
|
-
# Request-specific options
|
102
|
-
#
|
103
|
-
# @yield [result, err] Result & error if block supplied
|
104
|
-
# @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object
|
105
|
-
# @yieldparam err [StandardError] error object if request failed
|
106
|
-
#
|
107
|
-
# @return [Google::Apis::LoggingV2::LogMetric]
|
108
|
-
#
|
109
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
110
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
111
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
112
|
-
def get_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
|
113
|
-
command = make_simple_command(:get, 'v2/{+metricName}', options)
|
114
|
-
command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
115
|
-
command.response_class = Google::Apis::LoggingV2::LogMetric
|
116
|
-
command.params['metricName'] = metric_name unless metric_name.nil?
|
117
|
-
command.query['fields'] = fields unless fields.nil?
|
118
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
119
|
-
execute_or_queue_command(command, &block)
|
120
|
-
end
|
121
|
-
|
122
|
-
# Creates or updates a logs-based metric.
|
123
|
-
# @param [String] metric_name
|
124
|
-
# The resource name of the metric to update:
|
125
|
-
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
126
|
-
# The updated metric must be provided in the request and it's name field must be
|
127
|
-
# the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
|
128
|
-
# new metric is created.
|
129
|
-
# @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
|
130
|
-
# @param [String] fields
|
131
|
-
# Selector specifying which fields to include in a partial response.
|
132
|
-
# @param [String] quota_user
|
133
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
134
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
135
|
-
# @param [Google::Apis::RequestOptions] options
|
136
|
-
# Request-specific options
|
137
|
-
#
|
138
|
-
# @yield [result, err] Result & error if block supplied
|
139
|
-
# @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object
|
140
|
-
# @yieldparam err [StandardError] error object if request failed
|
141
|
-
#
|
142
|
-
# @return [Google::Apis::LoggingV2::LogMetric]
|
143
|
-
#
|
144
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
145
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
146
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
147
|
-
def update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
148
|
-
command = make_simple_command(:put, 'v2/{+metricName}', options)
|
149
|
-
command.request_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
150
|
-
command.request_object = log_metric_object
|
151
|
-
command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
152
|
-
command.response_class = Google::Apis::LoggingV2::LogMetric
|
153
|
-
command.params['metricName'] = metric_name unless metric_name.nil?
|
154
|
-
command.query['fields'] = fields unless fields.nil?
|
155
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
156
|
-
execute_or_queue_command(command, &block)
|
157
|
-
end
|
158
|
-
|
159
|
-
# Creates a logs-based metric.
|
160
|
-
# @param [String] parent
|
161
|
-
# The resource name of the project in which to create the metric:
|
162
|
-
# "projects/[PROJECT_ID]"
|
163
|
-
# The new metric must be provided in the request.
|
164
|
-
# @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
|
165
|
-
# @param [String] fields
|
166
|
-
# Selector specifying which fields to include in a partial response.
|
167
|
-
# @param [String] quota_user
|
168
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
169
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
170
|
-
# @param [Google::Apis::RequestOptions] options
|
171
|
-
# Request-specific options
|
172
|
-
#
|
173
|
-
# @yield [result, err] Result & error if block supplied
|
174
|
-
# @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object
|
175
|
-
# @yieldparam err [StandardError] error object if request failed
|
176
|
-
#
|
177
|
-
# @return [Google::Apis::LoggingV2::LogMetric]
|
178
|
-
#
|
179
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
180
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
181
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
182
|
-
def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
183
|
-
command = make_simple_command(:post, 'v2/{+parent}/metrics', options)
|
184
|
-
command.request_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
185
|
-
command.request_object = log_metric_object
|
186
|
-
command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
187
|
-
command.response_class = Google::Apis::LoggingV2::LogMetric
|
188
|
-
command.params['parent'] = parent unless parent.nil?
|
189
|
-
command.query['fields'] = fields unless fields.nil?
|
190
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
191
|
-
execute_or_queue_command(command, &block)
|
192
|
-
end
|
193
|
-
|
194
|
-
# Deletes a logs-based metric.
|
195
|
-
# @param [String] metric_name
|
196
|
-
# The resource name of the metric to delete:
|
197
|
-
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
198
|
-
# @param [String] fields
|
199
|
-
# Selector specifying which fields to include in a partial response.
|
200
|
-
# @param [String] quota_user
|
201
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
202
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
203
|
-
# @param [Google::Apis::RequestOptions] options
|
204
|
-
# Request-specific options
|
205
|
-
#
|
206
|
-
# @yield [result, err] Result & error if block supplied
|
207
|
-
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
208
|
-
# @yieldparam err [StandardError] error object if request failed
|
209
|
-
#
|
210
|
-
# @return [Google::Apis::LoggingV2::Empty]
|
211
|
-
#
|
212
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
213
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
214
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
215
|
-
def delete_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
|
216
|
-
command = make_simple_command(:delete, 'v2/{+metricName}', options)
|
217
|
-
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
218
|
-
command.response_class = Google::Apis::LoggingV2::Empty
|
219
|
-
command.params['metricName'] = metric_name unless metric_name.nil?
|
220
|
-
command.query['fields'] = fields unless fields.nil?
|
221
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
222
|
-
execute_or_queue_command(command, &block)
|
47
|
+
@batch_path = 'batch'
|
223
48
|
end
|
224
49
|
|
225
50
|
# Deletes all the log entries in a log. The log reappears if it receives new
|
@@ -251,7 +76,7 @@ module Google
|
|
251
76
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
252
77
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
253
78
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
254
|
-
def
|
79
|
+
def delete_folder_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
255
80
|
command = make_simple_command(:delete, 'v2/{+logName}', options)
|
256
81
|
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
257
82
|
command.response_class = Google::Apis::LoggingV2::Empty
|
@@ -295,7 +120,7 @@ module Google
|
|
295
120
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
296
121
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
297
122
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
298
|
-
def
|
123
|
+
def list_folder_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
299
124
|
command = make_simple_command(:get, 'v2/{+parent}/logs', options)
|
300
125
|
command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
|
301
126
|
command.response_class = Google::Apis::LoggingV2::ListLogsResponse
|
@@ -334,7 +159,7 @@ module Google
|
|
334
159
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
335
160
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
336
161
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
337
|
-
def
|
162
|
+
def delete_folder_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
338
163
|
command = make_simple_command(:delete, 'v2/{+sinkName}', options)
|
339
164
|
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
340
165
|
command.response_class = Google::Apis::LoggingV2::Empty
|
@@ -377,7 +202,7 @@ module Google
|
|
377
202
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
378
203
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
379
204
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
380
|
-
def
|
205
|
+
def list_folder_sinks(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
381
206
|
command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
|
382
207
|
command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
|
383
208
|
command.response_class = Google::Apis::LoggingV2::ListSinksResponse
|
@@ -414,7 +239,7 @@ module Google
|
|
414
239
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
415
240
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
416
241
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
417
|
-
def
|
242
|
+
def get_folder_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
418
243
|
command = make_simple_command(:get, 'v2/{+sinkName}', options)
|
419
244
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
420
245
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
@@ -465,7 +290,7 @@ module Google
|
|
465
290
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
466
291
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
467
292
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
468
|
-
def
|
293
|
+
def update_folder_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
469
294
|
command = make_simple_command(:put, 'v2/{+sinkName}', options)
|
470
295
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
471
296
|
command.request_object = log_sink_object
|
@@ -518,7 +343,7 @@ module Google
|
|
518
343
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
519
344
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
520
345
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
521
|
-
def
|
346
|
+
def create_folder_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
522
347
|
command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
|
523
348
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
524
349
|
command.request_object = log_sink_object
|
@@ -531,6 +356,44 @@ module Google
|
|
531
356
|
execute_or_queue_command(command, &block)
|
532
357
|
end
|
533
358
|
|
359
|
+
# Lists the descriptors for monitored resource types used by Stackdriver Logging.
|
360
|
+
# @param [String] page_token
|
361
|
+
# Optional. If present, then retrieve the next batch of results from the
|
362
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
363
|
+
# from the previous response. The values of other method parameters should be
|
364
|
+
# identical to those in the previous call.
|
365
|
+
# @param [Fixnum] page_size
|
366
|
+
# Optional. The maximum number of results to return from this request. Non-
|
367
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
368
|
+
# indicates that more results might be available.
|
369
|
+
# @param [String] fields
|
370
|
+
# Selector specifying which fields to include in a partial response.
|
371
|
+
# @param [String] quota_user
|
372
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
373
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
374
|
+
# @param [Google::Apis::RequestOptions] options
|
375
|
+
# Request-specific options
|
376
|
+
#
|
377
|
+
# @yield [result, err] Result & error if block supplied
|
378
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse] parsed result object
|
379
|
+
# @yieldparam err [StandardError] error object if request failed
|
380
|
+
#
|
381
|
+
# @return [Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse]
|
382
|
+
#
|
383
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
384
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
385
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
386
|
+
def list_monitored_resource_descriptors(page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
387
|
+
command = make_simple_command(:get, 'v2/monitoredResourceDescriptors', options)
|
388
|
+
command.response_representation = Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse::Representation
|
389
|
+
command.response_class = Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse
|
390
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
391
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
392
|
+
command.query['fields'] = fields unless fields.nil?
|
393
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
394
|
+
execute_or_queue_command(command, &block)
|
395
|
+
end
|
396
|
+
|
534
397
|
# Deletes all the log entries in a log. The log reappears if it receives new
|
535
398
|
# entries. Log entries written shortly before the delete operation might not be
|
536
399
|
# deleted.
|
@@ -560,7 +423,7 @@ module Google
|
|
560
423
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
561
424
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
562
425
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
563
|
-
def
|
426
|
+
def delete_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
564
427
|
command = make_simple_command(:delete, 'v2/{+logName}', options)
|
565
428
|
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
566
429
|
command.response_class = Google::Apis::LoggingV2::Empty
|
@@ -604,7 +467,7 @@ module Google
|
|
604
467
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
605
468
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
606
469
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
607
|
-
def
|
470
|
+
def list_organization_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
608
471
|
command = make_simple_command(:get, 'v2/{+parent}/logs', options)
|
609
472
|
command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
|
610
473
|
command.response_class = Google::Apis::LoggingV2::ListLogsResponse
|
@@ -616,16 +479,30 @@ module Google
|
|
616
479
|
execute_or_queue_command(command, &block)
|
617
480
|
end
|
618
481
|
|
619
|
-
#
|
620
|
-
#
|
482
|
+
# Updates a sink. If the named sink doesn't exist, then this method is identical
|
483
|
+
# to sinks.create. If the named sink does exist, then this method replaces the
|
484
|
+
# following fields in the existing sink with values from the new sink:
|
485
|
+
# destination, filter, output_version_format, start_time, and end_time. The
|
486
|
+
# updated filter might also have a new writer_identity; see the
|
487
|
+
# unique_writer_identity field.
|
621
488
|
# @param [String] sink_name
|
622
|
-
# Required. The full resource name of the sink to
|
489
|
+
# Required. The full resource name of the sink to update, including the parent
|
623
490
|
# resource and the sink identifier:
|
624
491
|
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
625
492
|
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
626
493
|
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
627
494
|
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
628
495
|
# Example: "projects/my-project-id/sinks/my-sink-id".
|
496
|
+
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
497
|
+
# @param [Boolean] unique_writer_identity
|
498
|
+
# Optional. See sinks.create for a description of this field. When updating a
|
499
|
+
# sink, the effect of this field on the value of writer_identity in the updated
|
500
|
+
# sink depends on both the old and new values of this field:
|
501
|
+
# If the old and new values of this field are both false or both true, then
|
502
|
+
# there is no change to the sink's writer_identity.
|
503
|
+
# If the old value is false and the new value is true, then writer_identity is
|
504
|
+
# changed to a unique service account.
|
505
|
+
# It is an error if the old value is true and the new value is false.
|
629
506
|
# @param [String] fields
|
630
507
|
# Selector specifying which fields to include in a partial response.
|
631
508
|
# @param [String] quota_user
|
@@ -635,15 +512,108 @@ module Google
|
|
635
512
|
# Request-specific options
|
636
513
|
#
|
637
514
|
# @yield [result, err] Result & error if block supplied
|
638
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
515
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
639
516
|
# @yieldparam err [StandardError] error object if request failed
|
640
517
|
#
|
641
|
-
# @return [Google::Apis::LoggingV2::
|
518
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
642
519
|
#
|
643
520
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
644
521
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
645
522
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
646
|
-
def
|
523
|
+
def update_organization_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
524
|
+
command = make_simple_command(:put, 'v2/{+sinkName}', options)
|
525
|
+
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
526
|
+
command.request_object = log_sink_object
|
527
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
528
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
529
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
530
|
+
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
531
|
+
command.query['fields'] = fields unless fields.nil?
|
532
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
533
|
+
execute_or_queue_command(command, &block)
|
534
|
+
end
|
535
|
+
|
536
|
+
# Creates a sink that exports specified log entries to a destination. The export
|
537
|
+
# of newly-ingested log entries begins immediately, unless the current time is
|
538
|
+
# outside the sink's start and end times or the sink's writer_identity is not
|
539
|
+
# permitted to write to the destination. A sink can export log entries only from
|
540
|
+
# the resource owning the sink.
|
541
|
+
# @param [String] parent
|
542
|
+
# Required. The resource in which to create the sink:
|
543
|
+
# "projects/[PROJECT_ID]"
|
544
|
+
# "organizations/[ORGANIZATION_ID]"
|
545
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
546
|
+
# "folders/[FOLDER_ID]"
|
547
|
+
# Examples: "projects/my-logging-project", "organizations/123456789".
|
548
|
+
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
549
|
+
# @param [Boolean] unique_writer_identity
|
550
|
+
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
551
|
+
# the new sink. If this value is omitted or set to false, and if the sink's
|
552
|
+
# parent is a project, then the value returned as writer_identity is the same
|
553
|
+
# group or service account used by Stackdriver Logging before the addition of
|
554
|
+
# writer identities to this API. The sink's destination must be in the same
|
555
|
+
# project as the sink itself.If this field is set to true, or if the sink is
|
556
|
+
# owned by a non-project resource such as an organization, then the value of
|
557
|
+
# writer_identity will be a unique service account used only for exports from
|
558
|
+
# the new sink. For more information, see writer_identity in LogSink.
|
559
|
+
# @param [String] fields
|
560
|
+
# Selector specifying which fields to include in a partial response.
|
561
|
+
# @param [String] quota_user
|
562
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
563
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
564
|
+
# @param [Google::Apis::RequestOptions] options
|
565
|
+
# Request-specific options
|
566
|
+
#
|
567
|
+
# @yield [result, err] Result & error if block supplied
|
568
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
569
|
+
# @yieldparam err [StandardError] error object if request failed
|
570
|
+
#
|
571
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
572
|
+
#
|
573
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
574
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
575
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
576
|
+
def create_organization_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
577
|
+
command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
|
578
|
+
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
579
|
+
command.request_object = log_sink_object
|
580
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
581
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
582
|
+
command.params['parent'] = parent unless parent.nil?
|
583
|
+
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
584
|
+
command.query['fields'] = fields unless fields.nil?
|
585
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
586
|
+
execute_or_queue_command(command, &block)
|
587
|
+
end
|
588
|
+
|
589
|
+
# Deletes a sink. If the sink has a unique writer_identity, then that service
|
590
|
+
# account is also deleted.
|
591
|
+
# @param [String] sink_name
|
592
|
+
# Required. The full resource name of the sink to delete, including the parent
|
593
|
+
# resource and the sink identifier:
|
594
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
595
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
596
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
597
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
598
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
599
|
+
# @param [String] fields
|
600
|
+
# Selector specifying which fields to include in a partial response.
|
601
|
+
# @param [String] quota_user
|
602
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
603
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
604
|
+
# @param [Google::Apis::RequestOptions] options
|
605
|
+
# Request-specific options
|
606
|
+
#
|
607
|
+
# @yield [result, err] Result & error if block supplied
|
608
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
609
|
+
# @yieldparam err [StandardError] error object if request failed
|
610
|
+
#
|
611
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
612
|
+
#
|
613
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
614
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
615
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
616
|
+
def delete_organization_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
647
617
|
command = make_simple_command(:delete, 'v2/{+sinkName}', options)
|
648
618
|
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
649
619
|
command.response_class = Google::Apis::LoggingV2::Empty
|
@@ -660,15 +630,15 @@ module Google
|
|
660
630
|
# "organizations/[ORGANIZATION_ID]"
|
661
631
|
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
662
632
|
# "folders/[FOLDER_ID]"
|
633
|
+
# @param [Fixnum] page_size
|
634
|
+
# Optional. The maximum number of results to return from this request. Non-
|
635
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
636
|
+
# indicates that more results might be available.
|
663
637
|
# @param [String] page_token
|
664
638
|
# Optional. If present, then retrieve the next batch of results from the
|
665
639
|
# preceding call to this method. pageToken must be the value of nextPageToken
|
666
640
|
# from the previous response. The values of other method parameters should be
|
667
641
|
# identical to those in the previous call.
|
668
|
-
# @param [Fixnum] page_size
|
669
|
-
# Optional. The maximum number of results to return from this request. Non-
|
670
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
671
|
-
# indicates that more results might be available.
|
672
642
|
# @param [String] fields
|
673
643
|
# Selector specifying which fields to include in a partial response.
|
674
644
|
# @param [String] quota_user
|
@@ -686,13 +656,13 @@ module Google
|
|
686
656
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
687
657
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
688
658
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
689
|
-
def
|
659
|
+
def list_organization_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
690
660
|
command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
|
691
661
|
command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
|
692
662
|
command.response_class = Google::Apis::LoggingV2::ListSinksResponse
|
693
663
|
command.params['parent'] = parent unless parent.nil?
|
694
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
695
664
|
command.query['pageSize'] = page_size unless page_size.nil?
|
665
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
696
666
|
command.query['fields'] = fields unless fields.nil?
|
697
667
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
698
668
|
execute_or_queue_command(command, &block)
|
@@ -723,7 +693,7 @@ module Google
|
|
723
693
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
724
694
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
725
695
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
726
|
-
def
|
696
|
+
def get_organization_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
727
697
|
command = make_simple_command(:get, 'v2/{+sinkName}', options)
|
728
698
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
729
699
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
@@ -733,30 +703,9 @@ module Google
|
|
733
703
|
execute_or_queue_command(command, &block)
|
734
704
|
end
|
735
705
|
|
736
|
-
#
|
737
|
-
#
|
738
|
-
#
|
739
|
-
# destination, filter, output_version_format, start_time, and end_time. The
|
740
|
-
# updated filter might also have a new writer_identity; see the
|
741
|
-
# unique_writer_identity field.
|
742
|
-
# @param [String] sink_name
|
743
|
-
# Required. The full resource name of the sink to update, including the parent
|
744
|
-
# resource and the sink identifier:
|
745
|
-
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
746
|
-
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
747
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
748
|
-
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
749
|
-
# Example: "projects/my-project-id/sinks/my-sink-id".
|
750
|
-
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
751
|
-
# @param [Boolean] unique_writer_identity
|
752
|
-
# Optional. See sinks.create for a description of this field. When updating a
|
753
|
-
# sink, the effect of this field on the value of writer_identity in the updated
|
754
|
-
# sink depends on both the old and new values of this field:
|
755
|
-
# If the old and new values of this field are both false or both true, then
|
756
|
-
# there is no change to the sink's writer_identity.
|
757
|
-
# If the old value is false and the new value is true, then writer_identity is
|
758
|
-
# changed to a unique service account.
|
759
|
-
# It is an error if the old value is true and the new value is false.
|
706
|
+
# Lists log entries. Use this method to retrieve log entries from Stackdriver
|
707
|
+
# Logging. For ways to export log entries, see Exporting Logs.
|
708
|
+
# @param [Google::Apis::LoggingV2::ListLogEntriesRequest] list_log_entries_request_object
|
760
709
|
# @param [String] fields
|
761
710
|
# Selector specifying which fields to include in a partial response.
|
762
711
|
# @param [String] quota_user
|
@@ -766,50 +715,27 @@ module Google
|
|
766
715
|
# Request-specific options
|
767
716
|
#
|
768
717
|
# @yield [result, err] Result & error if block supplied
|
769
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
718
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListLogEntriesResponse] parsed result object
|
770
719
|
# @yieldparam err [StandardError] error object if request failed
|
771
720
|
#
|
772
|
-
# @return [Google::Apis::LoggingV2::
|
721
|
+
# @return [Google::Apis::LoggingV2::ListLogEntriesResponse]
|
773
722
|
#
|
774
723
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
775
724
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
776
725
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
777
|
-
def
|
778
|
-
command = make_simple_command(:
|
779
|
-
command.request_representation = Google::Apis::LoggingV2::
|
780
|
-
command.request_object =
|
781
|
-
command.response_representation = Google::Apis::LoggingV2::
|
782
|
-
command.response_class = Google::Apis::LoggingV2::
|
783
|
-
command.params['sinkName'] = sink_name unless sink_name.nil?
|
784
|
-
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
726
|
+
def list_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
727
|
+
command = make_simple_command(:post, 'v2/entries:list', options)
|
728
|
+
command.request_representation = Google::Apis::LoggingV2::ListLogEntriesRequest::Representation
|
729
|
+
command.request_object = list_log_entries_request_object
|
730
|
+
command.response_representation = Google::Apis::LoggingV2::ListLogEntriesResponse::Representation
|
731
|
+
command.response_class = Google::Apis::LoggingV2::ListLogEntriesResponse
|
785
732
|
command.query['fields'] = fields unless fields.nil?
|
786
733
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
787
734
|
execute_or_queue_command(command, &block)
|
788
735
|
end
|
789
736
|
|
790
|
-
#
|
791
|
-
#
|
792
|
-
# outside the sink's start and end times or the sink's writer_identity is not
|
793
|
-
# permitted to write to the destination. A sink can export log entries only from
|
794
|
-
# the resource owning the sink.
|
795
|
-
# @param [String] parent
|
796
|
-
# Required. The resource in which to create the sink:
|
797
|
-
# "projects/[PROJECT_ID]"
|
798
|
-
# "organizations/[ORGANIZATION_ID]"
|
799
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
800
|
-
# "folders/[FOLDER_ID]"
|
801
|
-
# Examples: "projects/my-logging-project", "organizations/123456789".
|
802
|
-
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
803
|
-
# @param [Boolean] unique_writer_identity
|
804
|
-
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
805
|
-
# the new sink. If this value is omitted or set to false, and if the sink's
|
806
|
-
# parent is a project, then the value returned as writer_identity is the same
|
807
|
-
# group or service account used by Stackdriver Logging before the addition of
|
808
|
-
# writer identities to this API. The sink's destination must be in the same
|
809
|
-
# project as the sink itself.If this field is set to true, or if the sink is
|
810
|
-
# owned by a non-project resource such as an organization, then the value of
|
811
|
-
# writer_identity will be a unique service account used only for exports from
|
812
|
-
# the new sink. For more information, see writer_identity in LogSink.
|
737
|
+
# Writes log entries to Stackdriver Logging.
|
738
|
+
# @param [Google::Apis::LoggingV2::WriteLogEntriesRequest] write_log_entries_request_object
|
813
739
|
# @param [String] fields
|
814
740
|
# Selector specifying which fields to include in a partial response.
|
815
741
|
# @param [String] quota_user
|
@@ -819,22 +745,20 @@ module Google
|
|
819
745
|
# Request-specific options
|
820
746
|
#
|
821
747
|
# @yield [result, err] Result & error if block supplied
|
822
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
748
|
+
# @yieldparam result [Google::Apis::LoggingV2::WriteLogEntriesResponse] parsed result object
|
823
749
|
# @yieldparam err [StandardError] error object if request failed
|
824
750
|
#
|
825
|
-
# @return [Google::Apis::LoggingV2::
|
751
|
+
# @return [Google::Apis::LoggingV2::WriteLogEntriesResponse]
|
826
752
|
#
|
827
753
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
828
754
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
829
755
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
830
|
-
def
|
831
|
-
command = make_simple_command(:post, 'v2/
|
832
|
-
command.request_representation = Google::Apis::LoggingV2::
|
833
|
-
command.request_object =
|
834
|
-
command.response_representation = Google::Apis::LoggingV2::
|
835
|
-
command.response_class = Google::Apis::LoggingV2::
|
836
|
-
command.params['parent'] = parent unless parent.nil?
|
837
|
-
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
756
|
+
def write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
757
|
+
command = make_simple_command(:post, 'v2/entries:write', options)
|
758
|
+
command.request_representation = Google::Apis::LoggingV2::WriteLogEntriesRequest::Representation
|
759
|
+
command.request_object = write_log_entries_request_object
|
760
|
+
command.response_representation = Google::Apis::LoggingV2::WriteLogEntriesResponse::Representation
|
761
|
+
command.response_class = Google::Apis::LoggingV2::WriteLogEntriesResponse
|
838
762
|
command.query['fields'] = fields unless fields.nil?
|
839
763
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
840
764
|
execute_or_queue_command(command, &block)
|
@@ -869,7 +793,7 @@ module Google
|
|
869
793
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
870
794
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
871
795
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
872
|
-
def
|
796
|
+
def delete_project_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
873
797
|
command = make_simple_command(:delete, 'v2/{+logName}', options)
|
874
798
|
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
875
799
|
command.response_class = Google::Apis::LoggingV2::Empty
|
@@ -905,21 +829,138 @@ module Google
|
|
905
829
|
# Request-specific options
|
906
830
|
#
|
907
831
|
# @yield [result, err] Result & error if block supplied
|
908
|
-
# @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
|
832
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
|
833
|
+
# @yieldparam err [StandardError] error object if request failed
|
834
|
+
#
|
835
|
+
# @return [Google::Apis::LoggingV2::ListLogsResponse]
|
836
|
+
#
|
837
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
838
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
839
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
840
|
+
def list_project_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
841
|
+
command = make_simple_command(:get, 'v2/{+parent}/logs', options)
|
842
|
+
command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
|
843
|
+
command.response_class = Google::Apis::LoggingV2::ListLogsResponse
|
844
|
+
command.params['parent'] = parent unless parent.nil?
|
845
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
846
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
847
|
+
command.query['fields'] = fields unless fields.nil?
|
848
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
849
|
+
execute_or_queue_command(command, &block)
|
850
|
+
end
|
851
|
+
|
852
|
+
# Deletes a sink. If the sink has a unique writer_identity, then that service
|
853
|
+
# account is also deleted.
|
854
|
+
# @param [String] sink_name
|
855
|
+
# Required. The full resource name of the sink to delete, including the parent
|
856
|
+
# resource and the sink identifier:
|
857
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
858
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
859
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
860
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
861
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
862
|
+
# @param [String] fields
|
863
|
+
# Selector specifying which fields to include in a partial response.
|
864
|
+
# @param [String] quota_user
|
865
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
866
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
867
|
+
# @param [Google::Apis::RequestOptions] options
|
868
|
+
# Request-specific options
|
869
|
+
#
|
870
|
+
# @yield [result, err] Result & error if block supplied
|
871
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
872
|
+
# @yieldparam err [StandardError] error object if request failed
|
873
|
+
#
|
874
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
875
|
+
#
|
876
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
877
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
878
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
879
|
+
def delete_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
880
|
+
command = make_simple_command(:delete, 'v2/{+sinkName}', options)
|
881
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
882
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
883
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
884
|
+
command.query['fields'] = fields unless fields.nil?
|
885
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
886
|
+
execute_or_queue_command(command, &block)
|
887
|
+
end
|
888
|
+
|
889
|
+
# Lists sinks.
|
890
|
+
# @param [String] parent
|
891
|
+
# Required. The parent resource whose sinks are to be listed:
|
892
|
+
# "projects/[PROJECT_ID]"
|
893
|
+
# "organizations/[ORGANIZATION_ID]"
|
894
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
895
|
+
# "folders/[FOLDER_ID]"
|
896
|
+
# @param [String] page_token
|
897
|
+
# Optional. If present, then retrieve the next batch of results from the
|
898
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
899
|
+
# from the previous response. The values of other method parameters should be
|
900
|
+
# identical to those in the previous call.
|
901
|
+
# @param [Fixnum] page_size
|
902
|
+
# Optional. The maximum number of results to return from this request. Non-
|
903
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
904
|
+
# indicates that more results might be available.
|
905
|
+
# @param [String] fields
|
906
|
+
# Selector specifying which fields to include in a partial response.
|
907
|
+
# @param [String] quota_user
|
908
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
909
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
910
|
+
# @param [Google::Apis::RequestOptions] options
|
911
|
+
# Request-specific options
|
912
|
+
#
|
913
|
+
# @yield [result, err] Result & error if block supplied
|
914
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListSinksResponse] parsed result object
|
915
|
+
# @yieldparam err [StandardError] error object if request failed
|
916
|
+
#
|
917
|
+
# @return [Google::Apis::LoggingV2::ListSinksResponse]
|
918
|
+
#
|
919
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
920
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
921
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
922
|
+
def list_project_sinks(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
923
|
+
command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
|
924
|
+
command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
|
925
|
+
command.response_class = Google::Apis::LoggingV2::ListSinksResponse
|
926
|
+
command.params['parent'] = parent unless parent.nil?
|
927
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
928
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
929
|
+
command.query['fields'] = fields unless fields.nil?
|
930
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
931
|
+
execute_or_queue_command(command, &block)
|
932
|
+
end
|
933
|
+
|
934
|
+
# Gets a sink.
|
935
|
+
# @param [String] sink_name
|
936
|
+
# Required. The resource name of the sink:
|
937
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
938
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
939
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
940
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
941
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
942
|
+
# @param [String] fields
|
943
|
+
# Selector specifying which fields to include in a partial response.
|
944
|
+
# @param [String] quota_user
|
945
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
946
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
947
|
+
# @param [Google::Apis::RequestOptions] options
|
948
|
+
# Request-specific options
|
949
|
+
#
|
950
|
+
# @yield [result, err] Result & error if block supplied
|
951
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
909
952
|
# @yieldparam err [StandardError] error object if request failed
|
910
953
|
#
|
911
|
-
# @return [Google::Apis::LoggingV2::
|
954
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
912
955
|
#
|
913
956
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
914
957
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
915
958
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
916
|
-
def
|
917
|
-
command = make_simple_command(:get, 'v2/{+
|
918
|
-
command.response_representation = Google::Apis::LoggingV2::
|
919
|
-
command.response_class = Google::Apis::LoggingV2::
|
920
|
-
command.params['
|
921
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
922
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
959
|
+
def get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
960
|
+
command = make_simple_command(:get, 'v2/{+sinkName}', options)
|
961
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
962
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
963
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
923
964
|
command.query['fields'] = fields unless fields.nil?
|
924
965
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
925
966
|
execute_or_queue_command(command, &block)
|
@@ -966,7 +1007,7 @@ module Google
|
|
966
1007
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
967
1008
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
968
1009
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
969
|
-
def
|
1010
|
+
def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
970
1011
|
command = make_simple_command(:put, 'v2/{+sinkName}', options)
|
971
1012
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
972
1013
|
command.request_object = log_sink_object
|
@@ -1019,7 +1060,7 @@ module Google
|
|
1019
1060
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1020
1061
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1021
1062
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1022
|
-
def
|
1063
|
+
def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1023
1064
|
command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
|
1024
1065
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
1025
1066
|
command.request_object = log_sink_object
|
@@ -1032,16 +1073,10 @@ module Google
|
|
1032
1073
|
execute_or_queue_command(command, &block)
|
1033
1074
|
end
|
1034
1075
|
|
1035
|
-
# Deletes a
|
1036
|
-
#
|
1037
|
-
#
|
1038
|
-
#
|
1039
|
-
# resource and the sink identifier:
|
1040
|
-
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
1041
|
-
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
1042
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
1043
|
-
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
1044
|
-
# Example: "projects/my-project-id/sinks/my-sink-id".
|
1076
|
+
# Deletes a logs-based metric.
|
1077
|
+
# @param [String] metric_name
|
1078
|
+
# The resource name of the metric to delete:
|
1079
|
+
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
1045
1080
|
# @param [String] fields
|
1046
1081
|
# Selector specifying which fields to include in a partial response.
|
1047
1082
|
# @param [String] quota_user
|
@@ -1059,23 +1094,20 @@ module Google
|
|
1059
1094
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1060
1095
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1061
1096
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1062
|
-
def
|
1063
|
-
command = make_simple_command(:delete, 'v2/{+
|
1097
|
+
def delete_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
|
1098
|
+
command = make_simple_command(:delete, 'v2/{+metricName}', options)
|
1064
1099
|
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
1065
1100
|
command.response_class = Google::Apis::LoggingV2::Empty
|
1066
|
-
command.params['
|
1101
|
+
command.params['metricName'] = metric_name unless metric_name.nil?
|
1067
1102
|
command.query['fields'] = fields unless fields.nil?
|
1068
1103
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1069
1104
|
execute_or_queue_command(command, &block)
|
1070
1105
|
end
|
1071
1106
|
|
1072
|
-
# Lists
|
1107
|
+
# Lists logs-based metrics.
|
1073
1108
|
# @param [String] parent
|
1074
|
-
# Required. The
|
1109
|
+
# Required. The name of the project containing the metrics:
|
1075
1110
|
# "projects/[PROJECT_ID]"
|
1076
|
-
# "organizations/[ORGANIZATION_ID]"
|
1077
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
1078
|
-
# "folders/[FOLDER_ID]"
|
1079
1111
|
# @param [String] page_token
|
1080
1112
|
# Optional. If present, then retrieve the next batch of results from the
|
1081
1113
|
# preceding call to this method. pageToken must be the value of nextPageToken
|
@@ -1094,18 +1126,18 @@ module Google
|
|
1094
1126
|
# Request-specific options
|
1095
1127
|
#
|
1096
1128
|
# @yield [result, err] Result & error if block supplied
|
1097
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
1129
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListLogMetricsResponse] parsed result object
|
1098
1130
|
# @yieldparam err [StandardError] error object if request failed
|
1099
1131
|
#
|
1100
|
-
# @return [Google::Apis::LoggingV2::
|
1132
|
+
# @return [Google::Apis::LoggingV2::ListLogMetricsResponse]
|
1101
1133
|
#
|
1102
1134
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1103
1135
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1104
1136
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1105
|
-
def
|
1106
|
-
command = make_simple_command(:get, 'v2/{+parent}/
|
1107
|
-
command.response_representation = Google::Apis::LoggingV2::
|
1108
|
-
command.response_class = Google::Apis::LoggingV2::
|
1137
|
+
def list_project_metrics(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1138
|
+
command = make_simple_command(:get, 'v2/{+parent}/metrics', options)
|
1139
|
+
command.response_representation = Google::Apis::LoggingV2::ListLogMetricsResponse::Representation
|
1140
|
+
command.response_class = Google::Apis::LoggingV2::ListLogMetricsResponse
|
1109
1141
|
command.params['parent'] = parent unless parent.nil?
|
1110
1142
|
command.query['pageToken'] = page_token unless page_token.nil?
|
1111
1143
|
command.query['pageSize'] = page_size unless page_size.nil?
|
@@ -1114,14 +1146,10 @@ module Google
|
|
1114
1146
|
execute_or_queue_command(command, &block)
|
1115
1147
|
end
|
1116
1148
|
|
1117
|
-
# Gets a
|
1118
|
-
# @param [String]
|
1119
|
-
#
|
1120
|
-
# "projects/[PROJECT_ID]/
|
1121
|
-
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
1122
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
1123
|
-
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
1124
|
-
# Example: "projects/my-project-id/sinks/my-sink-id".
|
1149
|
+
# Gets a logs-based metric.
|
1150
|
+
# @param [String] metric_name
|
1151
|
+
# The resource name of the desired metric:
|
1152
|
+
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
1125
1153
|
# @param [String] fields
|
1126
1154
|
# Selector specifying which fields to include in a partial response.
|
1127
1155
|
# @param [String] quota_user
|
@@ -1131,34 +1159,32 @@ module Google
|
|
1131
1159
|
# Request-specific options
|
1132
1160
|
#
|
1133
1161
|
# @yield [result, err] Result & error if block supplied
|
1134
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
1162
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object
|
1135
1163
|
# @yieldparam err [StandardError] error object if request failed
|
1136
1164
|
#
|
1137
|
-
# @return [Google::Apis::LoggingV2::
|
1165
|
+
# @return [Google::Apis::LoggingV2::LogMetric]
|
1138
1166
|
#
|
1139
1167
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1140
1168
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1141
1169
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1142
|
-
def
|
1143
|
-
command = make_simple_command(:get, 'v2/{+
|
1144
|
-
command.response_representation = Google::Apis::LoggingV2::
|
1145
|
-
command.response_class = Google::Apis::LoggingV2::
|
1146
|
-
command.params['
|
1170
|
+
def get_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
|
1171
|
+
command = make_simple_command(:get, 'v2/{+metricName}', options)
|
1172
|
+
command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
1173
|
+
command.response_class = Google::Apis::LoggingV2::LogMetric
|
1174
|
+
command.params['metricName'] = metric_name unless metric_name.nil?
|
1147
1175
|
command.query['fields'] = fields unless fields.nil?
|
1148
1176
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1149
1177
|
execute_or_queue_command(command, &block)
|
1150
1178
|
end
|
1151
1179
|
|
1152
|
-
#
|
1153
|
-
# @param [String]
|
1154
|
-
#
|
1155
|
-
#
|
1156
|
-
#
|
1157
|
-
#
|
1158
|
-
#
|
1159
|
-
#
|
1160
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
1161
|
-
# indicates that more results might be available.
|
1180
|
+
# Creates or updates a logs-based metric.
|
1181
|
+
# @param [String] metric_name
|
1182
|
+
# The resource name of the metric to update:
|
1183
|
+
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
1184
|
+
# The updated metric must be provided in the request and it's name field must be
|
1185
|
+
# the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
|
1186
|
+
# new metric is created.
|
1187
|
+
# @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
|
1162
1188
|
# @param [String] fields
|
1163
1189
|
# Selector specifying which fields to include in a partial response.
|
1164
1190
|
# @param [String] quota_user
|
@@ -1168,20 +1194,56 @@ module Google
|
|
1168
1194
|
# Request-specific options
|
1169
1195
|
#
|
1170
1196
|
# @yield [result, err] Result & error if block supplied
|
1171
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
1197
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object
|
1172
1198
|
# @yieldparam err [StandardError] error object if request failed
|
1173
1199
|
#
|
1174
|
-
# @return [Google::Apis::LoggingV2::
|
1200
|
+
# @return [Google::Apis::LoggingV2::LogMetric]
|
1175
1201
|
#
|
1176
1202
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1177
1203
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1178
1204
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1179
|
-
def
|
1180
|
-
command = make_simple_command(:
|
1181
|
-
command.
|
1182
|
-
command.
|
1183
|
-
command.
|
1184
|
-
command.
|
1205
|
+
def update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1206
|
+
command = make_simple_command(:put, 'v2/{+metricName}', options)
|
1207
|
+
command.request_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
1208
|
+
command.request_object = log_metric_object
|
1209
|
+
command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
1210
|
+
command.response_class = Google::Apis::LoggingV2::LogMetric
|
1211
|
+
command.params['metricName'] = metric_name unless metric_name.nil?
|
1212
|
+
command.query['fields'] = fields unless fields.nil?
|
1213
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1214
|
+
execute_or_queue_command(command, &block)
|
1215
|
+
end
|
1216
|
+
|
1217
|
+
# Creates a logs-based metric.
|
1218
|
+
# @param [String] parent
|
1219
|
+
# The resource name of the project in which to create the metric:
|
1220
|
+
# "projects/[PROJECT_ID]"
|
1221
|
+
# The new metric must be provided in the request.
|
1222
|
+
# @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
|
1223
|
+
# @param [String] fields
|
1224
|
+
# Selector specifying which fields to include in a partial response.
|
1225
|
+
# @param [String] quota_user
|
1226
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1227
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1228
|
+
# @param [Google::Apis::RequestOptions] options
|
1229
|
+
# Request-specific options
|
1230
|
+
#
|
1231
|
+
# @yield [result, err] Result & error if block supplied
|
1232
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object
|
1233
|
+
# @yieldparam err [StandardError] error object if request failed
|
1234
|
+
#
|
1235
|
+
# @return [Google::Apis::LoggingV2::LogMetric]
|
1236
|
+
#
|
1237
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1238
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1239
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1240
|
+
def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1241
|
+
command = make_simple_command(:post, 'v2/{+parent}/metrics', options)
|
1242
|
+
command.request_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
1243
|
+
command.request_object = log_metric_object
|
1244
|
+
command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
1245
|
+
command.response_class = Google::Apis::LoggingV2::LogMetric
|
1246
|
+
command.params['parent'] = parent unless parent.nil?
|
1185
1247
|
command.query['fields'] = fields unless fields.nil?
|
1186
1248
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1187
1249
|
execute_or_queue_command(command, &block)
|
@@ -1216,7 +1278,7 @@ module Google
|
|
1216
1278
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1217
1279
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1218
1280
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1219
|
-
def
|
1281
|
+
def delete_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
1220
1282
|
command = make_simple_command(:delete, 'v2/{+logName}', options)
|
1221
1283
|
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
1222
1284
|
command.response_class = Google::Apis::LoggingV2::Empty
|
@@ -1234,15 +1296,15 @@ module Google
|
|
1234
1296
|
# "organizations/[ORGANIZATION_ID]"
|
1235
1297
|
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
1236
1298
|
# "folders/[FOLDER_ID]"
|
1299
|
+
# @param [Fixnum] page_size
|
1300
|
+
# Optional. The maximum number of results to return from this request. Non-
|
1301
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
1302
|
+
# indicates that more results might be available.
|
1237
1303
|
# @param [String] page_token
|
1238
1304
|
# Optional. If present, then retrieve the next batch of results from the
|
1239
1305
|
# preceding call to this method. pageToken must be the value of nextPageToken
|
1240
1306
|
# from the previous response. The values of other method parameters should be
|
1241
1307
|
# identical to those in the previous call.
|
1242
|
-
# @param [Fixnum] page_size
|
1243
|
-
# Optional. The maximum number of results to return from this request. Non-
|
1244
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
1245
|
-
# indicates that more results might be available.
|
1246
1308
|
# @param [String] fields
|
1247
1309
|
# Selector specifying which fields to include in a partial response.
|
1248
1310
|
# @param [String] quota_user
|
@@ -1260,13 +1322,13 @@ module Google
|
|
1260
1322
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1261
1323
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1262
1324
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1263
|
-
def
|
1325
|
+
def list_billing_account_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1264
1326
|
command = make_simple_command(:get, 'v2/{+parent}/logs', options)
|
1265
1327
|
command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
|
1266
1328
|
command.response_class = Google::Apis::LoggingV2::ListLogsResponse
|
1267
1329
|
command.params['parent'] = parent unless parent.nil?
|
1268
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1269
1330
|
command.query['pageSize'] = page_size unless page_size.nil?
|
1331
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1270
1332
|
command.query['fields'] = fields unless fields.nil?
|
1271
1333
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1272
1334
|
execute_or_queue_command(command, &block)
|
@@ -1299,7 +1361,7 @@ module Google
|
|
1299
1361
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1300
1362
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1301
1363
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1302
|
-
def
|
1364
|
+
def delete_billing_account_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
1303
1365
|
command = make_simple_command(:delete, 'v2/{+sinkName}', options)
|
1304
1366
|
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
1305
1367
|
command.response_class = Google::Apis::LoggingV2::Empty
|
@@ -1342,7 +1404,7 @@ module Google
|
|
1342
1404
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1343
1405
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1344
1406
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1345
|
-
def
|
1407
|
+
def list_billing_account_sinks(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1346
1408
|
command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
|
1347
1409
|
command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
|
1348
1410
|
command.response_class = Google::Apis::LoggingV2::ListSinksResponse
|
@@ -1379,7 +1441,7 @@ module Google
|
|
1379
1441
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1380
1442
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1381
1443
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1382
|
-
def
|
1444
|
+
def get_billing_account_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
1383
1445
|
command = make_simple_command(:get, 'v2/{+sinkName}', options)
|
1384
1446
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
1385
1447
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
@@ -1430,7 +1492,7 @@ module Google
|
|
1430
1492
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1431
1493
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1432
1494
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1433
|
-
def
|
1495
|
+
def update_billing_account_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1434
1496
|
command = make_simple_command(:put, 'v2/{+sinkName}', options)
|
1435
1497
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
1436
1498
|
command.request_object = log_sink_object
|
@@ -1483,7 +1545,7 @@ module Google
|
|
1483
1545
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1484
1546
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1485
1547
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1486
|
-
def
|
1548
|
+
def create_billing_account_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1487
1549
|
command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
|
1488
1550
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
1489
1551
|
command.request_object = log_sink_object
|
@@ -1495,67 +1557,6 @@ module Google
|
|
1495
1557
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1496
1558
|
execute_or_queue_command(command, &block)
|
1497
1559
|
end
|
1498
|
-
|
1499
|
-
# Lists log entries. Use this method to retrieve log entries from Stackdriver
|
1500
|
-
# Logging. For ways to export log entries, see Exporting Logs.
|
1501
|
-
# @param [Google::Apis::LoggingV2::ListLogEntriesRequest] list_log_entries_request_object
|
1502
|
-
# @param [String] fields
|
1503
|
-
# Selector specifying which fields to include in a partial response.
|
1504
|
-
# @param [String] quota_user
|
1505
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1506
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1507
|
-
# @param [Google::Apis::RequestOptions] options
|
1508
|
-
# Request-specific options
|
1509
|
-
#
|
1510
|
-
# @yield [result, err] Result & error if block supplied
|
1511
|
-
# @yieldparam result [Google::Apis::LoggingV2::ListLogEntriesResponse] parsed result object
|
1512
|
-
# @yieldparam err [StandardError] error object if request failed
|
1513
|
-
#
|
1514
|
-
# @return [Google::Apis::LoggingV2::ListLogEntriesResponse]
|
1515
|
-
#
|
1516
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1517
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1518
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1519
|
-
def list_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1520
|
-
command = make_simple_command(:post, 'v2/entries:list', options)
|
1521
|
-
command.request_representation = Google::Apis::LoggingV2::ListLogEntriesRequest::Representation
|
1522
|
-
command.request_object = list_log_entries_request_object
|
1523
|
-
command.response_representation = Google::Apis::LoggingV2::ListLogEntriesResponse::Representation
|
1524
|
-
command.response_class = Google::Apis::LoggingV2::ListLogEntriesResponse
|
1525
|
-
command.query['fields'] = fields unless fields.nil?
|
1526
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1527
|
-
execute_or_queue_command(command, &block)
|
1528
|
-
end
|
1529
|
-
|
1530
|
-
# Writes log entries to Stackdriver Logging.
|
1531
|
-
# @param [Google::Apis::LoggingV2::WriteLogEntriesRequest] write_log_entries_request_object
|
1532
|
-
# @param [String] fields
|
1533
|
-
# Selector specifying which fields to include in a partial response.
|
1534
|
-
# @param [String] quota_user
|
1535
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1536
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1537
|
-
# @param [Google::Apis::RequestOptions] options
|
1538
|
-
# Request-specific options
|
1539
|
-
#
|
1540
|
-
# @yield [result, err] Result & error if block supplied
|
1541
|
-
# @yieldparam result [Google::Apis::LoggingV2::WriteLogEntriesResponse] parsed result object
|
1542
|
-
# @yieldparam err [StandardError] error object if request failed
|
1543
|
-
#
|
1544
|
-
# @return [Google::Apis::LoggingV2::WriteLogEntriesResponse]
|
1545
|
-
#
|
1546
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1547
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1548
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1549
|
-
def write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1550
|
-
command = make_simple_command(:post, 'v2/entries:write', options)
|
1551
|
-
command.request_representation = Google::Apis::LoggingV2::WriteLogEntriesRequest::Representation
|
1552
|
-
command.request_object = write_log_entries_request_object
|
1553
|
-
command.response_representation = Google::Apis::LoggingV2::WriteLogEntriesResponse::Representation
|
1554
|
-
command.response_class = Google::Apis::LoggingV2::WriteLogEntriesResponse
|
1555
|
-
command.query['fields'] = fields unless fields.nil?
|
1556
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1557
|
-
execute_or_queue_command(command, &block)
|
1558
|
-
end
|
1559
1560
|
|
1560
1561
|
protected
|
1561
1562
|
|