google-api-client 0.8.7 → 0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +20 -0
- data/.rspec +2 -0
- data/.rubocop.yml +7 -0
- data/.rubocop_todo.yml +63 -0
- data/.travis.yml +22 -0
- data/.yardopts +12 -0
- data/CHANGELOG.md +40 -4
- data/CONTRIBUTING.md +31 -0
- data/Gemfile +32 -2
- data/MIGRATING.md +171 -0
- data/README.md +181 -148
- data/Rakefile +1 -40
- data/api_names.yaml +1036 -0
- data/api_names_out.yaml +26053 -0
- data/bin/generate-api +95 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +668 -0
- data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
- data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
- data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1029 -0
- data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
- data/generated/google/apis/admin_directory_v1.rb +113 -0
- data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
- data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
- data/generated/google/apis/admin_reports_v1/service.rb +336 -0
- data/generated/google/apis/admin_reports_v1.rb +38 -0
- data/generated/google/apis/adsense_v1_4/classes.rb +1285 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +494 -0
- data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
- data/generated/google/apis/adsense_v1_4.rb +38 -0
- data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
- data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
- data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
- data/generated/google/apis/adsensehost_v4_1.rb +35 -0
- data/generated/google/apis/analytics_v3/classes.rb +5118 -0
- data/generated/google/apis/analytics_v3/representations.rb +1662 -0
- data/generated/google/apis/analytics_v3/service.rb +3568 -0
- data/generated/google/apis/analytics_v3.rb +49 -0
- data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +538 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +2602 -0
- data/generated/google/apis/androidenterprise_v1.rb +35 -0
- data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +646 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
- data/generated/google/apis/androidpublisher_v2.rb +34 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
- data/generated/google/apis/appengine_v1beta4.rb +35 -0
- data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
- data/generated/google/apis/appsactivity_v1/service.rb +128 -0
- data/generated/google/apis/appsactivity_v1.rb +46 -0
- data/generated/google/apis/appstate_v1/classes.rb +154 -0
- data/generated/google/apis/appstate_v1/representations.rb +79 -0
- data/generated/google/apis/appstate_v1/service.rb +260 -0
- data/generated/google/apis/appstate_v1.rb +34 -0
- data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
- data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
- data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
- data/generated/google/apis/bigquery_v2/classes.rb +2471 -0
- data/generated/google/apis/bigquery_v2/representations.rb +816 -0
- data/generated/google/apis/bigquery_v2/service.rb +982 -0
- data/generated/google/apis/bigquery_v2.rb +52 -0
- data/generated/google/apis/blogger_v3/classes.rb +1354 -0
- data/generated/google/apis/blogger_v3/representations.rb +562 -0
- data/generated/google/apis/blogger_v3/service.rb +1587 -0
- data/generated/google/apis/blogger_v3.rb +37 -0
- data/generated/google/apis/books_v1/classes.rb +3956 -0
- data/generated/google/apis/books_v1/representations.rb +1538 -0
- data/generated/google/apis/books_v1/service.rb +2290 -0
- data/generated/google/apis/books_v1.rb +34 -0
- data/generated/google/apis/calendar_v3/classes.rb +1742 -0
- data/generated/google/apis/calendar_v3/representations.rb +567 -0
- data/generated/google/apis/calendar_v3/service.rb +1968 -0
- data/generated/google/apis/calendar_v3.rb +37 -0
- data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +383 -0
- data/generated/google/apis/civicinfo_v2/service.rb +279 -0
- data/{lib/google/api_client/service_account.rb → generated/google/apis/civicinfo_v2.rb} +18 -8
- data/generated/google/apis/classroom_v1/classes.rb +512 -0
- data/generated/google/apis/classroom_v1/representations.rb +217 -0
- data/generated/google/apis/classroom_v1/service.rb +970 -0
- data/generated/google/apis/classroom_v1.rb +49 -0
- data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
- data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
- data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
- data/generated/google/apis/classroom_v1beta1.rb +49 -0
- data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
- data/generated/google/apis/cloudbilling_v1.rb +35 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
- data/generated/google/apis/clouddebugger_v2.rb +41 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +437 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +188 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +623 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
- data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
- data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
- data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
- data/generated/google/apis/cloudtrace_v1.rb +35 -0
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
- data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
- data/generated/google/apis/compute_beta/classes.rb +9128 -0
- data/generated/google/apis/compute_beta/representations.rb +3048 -0
- data/generated/google/apis/compute_beta/service.rb +10154 -0
- data/generated/google/apis/compute_beta.rb +49 -0
- data/generated/google/apis/compute_v1/classes.rb +8681 -0
- data/generated/google/apis/compute_v1/representations.rb +2895 -0
- data/generated/google/apis/compute_v1/service.rb +9252 -0
- data/generated/google/apis/compute_v1.rb +49 -0
- data/generated/google/apis/container_v1/classes.rb +463 -0
- data/generated/google/apis/container_v1/representations.rb +175 -0
- data/generated/google/apis/container_v1/service.rb +367 -0
- data/generated/google/apis/container_v1.rb +35 -0
- data/generated/google/apis/container_v1beta1/classes.rb +466 -0
- data/generated/google/apis/container_v1beta1/representations.rb +177 -0
- data/generated/google/apis/container_v1beta1/service.rb +394 -0
- data/generated/google/apis/container_v1beta1.rb +35 -0
- data/generated/google/apis/content_v2/classes.rb +5986 -0
- data/generated/google/apis/content_v2/representations.rb +2288 -0
- data/generated/google/apis/content_v2/service.rb +2338 -0
- data/generated/google/apis/content_v2.rb +35 -0
- data/generated/google/apis/coordinate_v1/classes.rb +669 -0
- data/generated/google/apis/coordinate_v1/representations.rb +285 -0
- data/generated/google/apis/coordinate_v1/service.rb +678 -0
- data/generated/google/apis/coordinate_v1.rb +37 -0
- data/generated/google/apis/customsearch_v1/classes.rb +771 -0
- data/generated/google/apis/customsearch_v1/representations.rb +276 -0
- data/generated/google/apis/customsearch_v1/service.rb +207 -0
- data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
- data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
- data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
- data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
- data/generated/google/apis/datastore_v1beta2.rb +40 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1091 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
- data/generated/google/apis/deploymentmanager_v2.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
- data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
- data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
- data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
- data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
- data/generated/google/apis/dfareporting_v2_1.rb +37 -0
- data/generated/google/apis/discovery_v1/classes.rb +961 -0
- data/generated/google/apis/discovery_v1/representations.rb +357 -0
- data/generated/google/apis/discovery_v1/service.rb +142 -0
- data/generated/google/apis/discovery_v1.rb +32 -0
- data/generated/google/apis/dns_v1/classes.rb +406 -0
- data/generated/google/apis/dns_v1/representations.rb +151 -0
- data/generated/google/apis/dns_v1/service.rb +454 -0
- data/generated/google/apis/dns_v1.rb +44 -0
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +716 -0
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +298 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +341 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +956 -0
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +316 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
- data/generated/google/apis/drive_v2/classes.rb +2562 -0
- data/generated/google/apis/drive_v2/representations.rb +795 -0
- data/generated/google/apis/drive_v2/service.rb +2696 -0
- data/generated/google/apis/drive_v2.rb +58 -0
- data/generated/google/apis/drive_v3/classes.rb +1534 -0
- data/generated/google/apis/drive_v3/representations.rb +497 -0
- data/generated/google/apis/drive_v3/service.rb +1541 -0
- data/generated/google/apis/drive_v3.rb +55 -0
- data/generated/google/apis/fitness_v1/classes.rb +885 -0
- data/generated/google/apis/fitness_v1/representations.rb +320 -0
- data/generated/google/apis/fitness_v1/service.rb +675 -0
- data/generated/google/apis/fitness_v1.rb +49 -0
- data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
- data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
- data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
- data/generated/google/apis/fusiontables_v2.rb +37 -0
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
- data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
- data/generated/google/apis/games_management_v1management/classes.rb +524 -0
- data/generated/google/apis/games_management_v1management/representations.rb +231 -0
- data/generated/google/apis/games_management_v1management/service.rb +994 -0
- data/generated/google/apis/games_management_v1management.rb +37 -0
- data/generated/google/apis/games_v1/classes.rb +4617 -0
- data/generated/google/apis/games_v1/representations.rb +1584 -0
- data/generated/google/apis/games_v1/service.rb +2290 -0
- data/generated/google/apis/games_v1.rb +40 -0
- data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
- data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
- data/generated/google/apis/gan_v1beta1/service.rb +682 -0
- data/generated/google/apis/gan_v1beta1.rb +31 -0
- data/generated/google/apis/genomics_v1/classes.rb +2609 -0
- data/generated/google/apis/genomics_v1/representations.rb +909 -0
- data/generated/google/apis/genomics_v1/service.rb +1676 -0
- data/generated/google/apis/genomics_v1.rb +49 -0
- data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
- data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
- data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
- data/generated/google/apis/genomics_v1beta2.rb +46 -0
- data/generated/google/apis/gmail_v1/classes.rb +794 -0
- data/generated/google/apis/gmail_v1/representations.rb +339 -0
- data/generated/google/apis/gmail_v1/service.rb +1470 -0
- data/generated/google/apis/gmail_v1.rb +52 -0
- data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
- data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
- data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
- data/generated/google/apis/groupsmigration_v1.rb +34 -0
- data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
- data/generated/google/apis/groupssettings_v1/service.rb +179 -0
- data/generated/google/apis/groupssettings_v1.rb +34 -0
- data/generated/google/apis/identitytoolkit_v3/classes.rb +1466 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +509 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +581 -0
- data/generated/google/apis/identitytoolkit_v3.rb +31 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
- data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
- data/generated/google/apis/kgsearch_v1/service.rb +111 -0
- data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
- data/generated/google/apis/licensing_v1/classes.rb +132 -0
- data/generated/google/apis/licensing_v1/representations.rb +68 -0
- data/generated/google/apis/licensing_v1/service.rb +369 -0
- data/generated/google/apis/licensing_v1.rb +34 -0
- data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
- data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
- data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
- data/generated/google/apis/logging_v1beta3.rb +47 -0
- data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
- data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
- data/generated/google/apis/manager_v1beta2/service.rb +372 -0
- data/generated/google/apis/manager_v1beta2.rb +53 -0
- data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
- data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
- data/generated/google/apis/mapsengine_v1/service.rb +3388 -0
- data/generated/google/apis/mapsengine_v1.rb +38 -0
- data/generated/google/apis/mirror_v1/classes.rb +1072 -0
- data/generated/google/apis/mirror_v1/representations.rb +350 -0
- data/generated/google/apis/mirror_v1/service.rb +977 -0
- data/generated/google/apis/mirror_v1.rb +37 -0
- data/generated/google/apis/oauth2_v2/classes.rb +245 -0
- data/generated/google/apis/oauth2_v2/representations.rb +94 -0
- data/generated/google/apis/oauth2_v2/service.rb +199 -0
- data/generated/google/apis/oauth2_v2.rb +43 -0
- data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
- data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
- data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
- data/generated/google/apis/pagespeedonline_v2.rb +32 -0
- data/generated/google/apis/partners_v2/classes.rb +942 -0
- data/generated/google/apis/partners_v2/representations.rb +402 -0
- data/generated/google/apis/partners_v2/service.rb +400 -0
- data/generated/google/apis/partners_v2.rb +32 -0
- data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +987 -0
- data/generated/google/apis/plus_domains_v1/service.rb +904 -0
- data/generated/google/apis/plus_domains_v1.rb +61 -0
- data/generated/google/apis/plus_v1/classes.rb +2094 -0
- data/generated/google/apis/plus_v1/representations.rb +805 -0
- data/generated/google/apis/plus_v1/service.rb +470 -0
- data/generated/google/apis/plus_v1.rb +43 -0
- data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
- data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
- data/generated/google/apis/prediction_v1_6/service.rb +380 -0
- data/generated/google/apis/prediction_v1_6.rb +44 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
- data/generated/google/apis/pubsub_v1/classes.rb +614 -0
- data/generated/google/apis/pubsub_v1/representations.rb +281 -0
- data/generated/google/apis/pubsub_v1/service.rb +774 -0
- data/generated/google/apis/pubsub_v1.rb +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
- data/generated/google/apis/pubsub_v1beta2.rb +37 -0
- data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
- data/generated/google/apis/qpx_express_v1/service.rb +100 -0
- data/generated/google/apis/qpx_express_v1.rb +31 -0
- data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
- data/generated/google/apis/replicapool_v1beta2/representations.rb +236 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
- data/generated/google/apis/replicapool_v1beta2.rb +44 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +264 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
- data/generated/google/apis/reseller_v1/classes.rb +520 -0
- data/generated/google/apis/reseller_v1/representations.rb +200 -0
- data/generated/google/apis/reseller_v1/service.rb +623 -0
- data/generated/google/apis/reseller_v1.rb +37 -0
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
- data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
- data/generated/google/apis/script_v1/classes.rb +259 -0
- data/generated/google/apis/script_v1/representations.rb +106 -0
- data/generated/google/apis/script_v1/service.rb +98 -0
- data/generated/google/apis/script_v1.rb +61 -0
- data/generated/google/apis/site_verification_v1/classes.rb +185 -0
- data/generated/google/apis/site_verification_v1/representations.rb +101 -0
- data/generated/google/apis/site_verification_v1/service.rb +315 -0
- data/generated/google/apis/site_verification_v1.rb +37 -0
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +2001 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +758 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
- data/generated/google/apis/storage_v1/classes.rb +1222 -0
- data/generated/google/apis/storage_v1/representations.rb +445 -0
- data/generated/google/apis/storage_v1/service.rb +1903 -0
- data/generated/google/apis/storage_v1.rb +46 -0
- data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
- data/generated/google/apis/storagetransfer_v1.rb +35 -0
- data/generated/google/apis/tagmanager_v1/classes.rb +1384 -0
- data/generated/google/apis/tagmanager_v1/representations.rb +515 -0
- data/generated/google/apis/tagmanager_v1/service.rb +1817 -0
- data/generated/google/apis/tagmanager_v1.rb +52 -0
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
- data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
- data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
- data/generated/google/apis/tasks_v1/classes.rb +296 -0
- data/generated/google/apis/tasks_v1/representations.rb +115 -0
- data/generated/google/apis/tasks_v1/service.rb +643 -0
- data/generated/google/apis/tasks_v1.rb +37 -0
- data/generated/google/apis/translate_v2/classes.rb +168 -0
- data/generated/google/apis/translate_v2/representations.rb +109 -0
- data/generated/google/apis/translate_v2/service.rb +182 -0
- data/generated/google/apis/translate_v2.rb +31 -0
- data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
- data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
- data/generated/google/apis/urlshortener_v1/service.rb +176 -0
- data/generated/google/apis/urlshortener_v1.rb +34 -0
- data/generated/google/apis/webmasters_v3/classes.rb +563 -0
- data/generated/google/apis/webmasters_v3/representations.rb +250 -0
- data/generated/google/apis/webmasters_v3/service.rb +573 -0
- data/generated/google/apis/webmasters_v3.rb +37 -0
- data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +243 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
- data/generated/google/apis/youtube_analytics_v1.rb +46 -0
- data/generated/google/apis/youtube_v3/classes.rb +8136 -0
- data/generated/google/apis/youtube_v3/representations.rb +2838 -0
- data/generated/google/apis/youtube_v3/service.rb +4403 -0
- data/generated/google/apis/youtube_v3.rb +49 -0
- data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
- data/generated/google/apis/youtubereporting_v1.rb +38 -0
- data/google-api-client.gemspec +27 -39
- data/lib/google/api_client/auth/installed_app.rb +7 -5
- data/lib/google/api_client/auth/key_utils.rb +1 -0
- data/lib/google/api_client/auth/storage.rb +4 -2
- data/lib/google/api_client/auth/storages/file_store.rb +2 -3
- data/lib/google/api_client/auth/storages/redis_store.rb +7 -2
- data/lib/google/api_client/client_secrets.rb +4 -5
- data/lib/google/apis/core/api_command.rb +135 -0
- data/lib/google/apis/core/base_service.rb +317 -0
- data/lib/google/apis/core/batch.rb +239 -0
- data/lib/google/apis/core/download.rb +94 -0
- data/lib/google/apis/core/hashable.rb +44 -0
- data/lib/google/apis/core/http_client_adapter.rb +82 -0
- data/lib/google/apis/core/http_command.rb +312 -0
- data/lib/google/apis/core/json_representation.rb +127 -0
- data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
- data/lib/google/apis/core/multipart.rb +187 -0
- data/lib/google/apis/core/upload.rb +288 -0
- data/lib/google/{api_client → apis}/errors.rb +39 -28
- data/lib/google/apis/generator/annotator.rb +295 -0
- data/lib/google/apis/generator/helpers.rb +74 -0
- data/lib/google/apis/generator/model.rb +143 -0
- data/lib/google/apis/generator/template.rb +124 -0
- data/lib/google/apis/generator/templates/_class.tmpl +40 -0
- data/lib/google/apis/generator/templates/_method.tmpl +92 -0
- data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
- data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
- data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
- data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
- data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
- data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
- data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
- data/lib/google/apis/generator.rb +70 -0
- data/lib/google/apis/options.rb +85 -0
- data/lib/google/apis/version.rb +39 -0
- data/lib/google/apis.rb +48 -0
- data/rakelib/metrics.rake +22 -0
- data/rakelib/rubocop.rake +10 -0
- data/rakelib/spec.rake +11 -0
- data/rakelib/yard.rake +11 -0
- data/samples/Gemfile +7 -0
- data/samples/README.md +51 -0
- data/samples/google-api-samples +32 -0
- data/samples/lib/base_cli.rb +94 -0
- data/samples/lib/samples/analytics.rb +62 -0
- data/samples/lib/samples/calendar.rb +83 -0
- data/samples/lib/samples/drive.rb +82 -0
- data/samples/lib/samples/gmail.rb +50 -0
- data/samples/lib/samples/pubsub.rb +114 -0
- data/samples/lib/samples/translate.rb +44 -0
- data/samples/lib/samples/you_tube.rb +44 -0
- data/script/generate +95 -0
- data/script/package +8 -0
- data/script/release +15 -0
- data/spec/fixtures/files/api_names.yaml +3 -0
- data/spec/fixtures/files/auth_stored_credentials.json +8 -0
- data/spec/fixtures/files/child/.gitignore +0 -0
- data/spec/fixtures/files/client_secrets.json +1 -0
- data/spec/fixtures/files/invalid.json +1 -0
- data/spec/fixtures/files/test.blah +1 -0
- data/spec/fixtures/files/test.txt +1 -0
- data/spec/fixtures/files/test_api.json +440 -0
- data/spec/google/api_client/auth/storage_spec.rb +1 -3
- data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
- data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
- data/spec/google/api_client/client_secrets_spec.rb +38 -1
- data/spec/google/apis/core/api_command_spec.rb +209 -0
- data/spec/google/apis/core/batch_spec.rb +142 -0
- data/spec/google/apis/core/download_spec.rb +103 -0
- data/spec/google/apis/core/hashable_spec.rb +60 -0
- data/spec/google/apis/core/http_command_spec.rb +284 -0
- data/spec/google/apis/core/json_representation_spec.rb +192 -0
- data/spec/google/apis/core/service_spec.rb +247 -0
- data/spec/google/apis/core/upload_spec.rb +300 -0
- data/{lib/google/api_client/discovery.rb → spec/google/apis/generated_spec.rb} +13 -5
- data/spec/google/apis/generator/generator_spec.rb +272 -0
- data/spec/google/apis/logging_spec.rb +45 -0
- data/spec/google/apis/options_spec.rb +40 -0
- data/spec/integration_tests/adsense_spec.rb +29 -0
- data/spec/integration_tests/drive_spec.rb +35 -0
- data/spec/integration_tests/pubsub_spec.rb +48 -0
- data/spec/integration_tests/url_shortener_spec.rb +45 -0
- data/spec/spec_helper/load_path_spec.rb +33 -0
- data/spec/spec_helper.rb +131 -44
- data/third_party/hurley_patches.rb +103 -0
- metadata +533 -175
- data/lib/compat/multi_json.rb +0 -19
- data/lib/google/api_client/auth/file_storage.rb +0 -59
- data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
- data/lib/google/api_client/auth/pkcs12.rb +0 -41
- data/lib/google/api_client/batch.rb +0 -326
- data/lib/google/api_client/charset.rb +0 -33
- data/lib/google/api_client/discovery/api.rb +0 -310
- data/lib/google/api_client/discovery/media.rb +0 -77
- data/lib/google/api_client/discovery/method.rb +0 -363
- data/lib/google/api_client/discovery/resource.rb +0 -156
- data/lib/google/api_client/discovery/schema.rb +0 -117
- data/lib/google/api_client/environment.rb +0 -42
- data/lib/google/api_client/gzip.rb +0 -28
- data/lib/google/api_client/logging.rb +0 -32
- data/lib/google/api_client/media.rb +0 -259
- data/lib/google/api_client/railtie.rb +0 -18
- data/lib/google/api_client/request.rb +0 -350
- data/lib/google/api_client/result.rb +0 -255
- data/lib/google/api_client/service/batch.rb +0 -110
- data/lib/google/api_client/service/request.rb +0 -144
- data/lib/google/api_client/service/resource.rb +0 -40
- data/lib/google/api_client/service/result.rb +0 -162
- data/lib/google/api_client/service/simple_file_store.rb +0 -151
- data/lib/google/api_client/service/stub_generator.rb +0 -61
- data/lib/google/api_client/service.rb +0 -233
- data/lib/google/api_client.rb +0 -750
- data/spec/google/api_client/batch_spec.rb +0 -248
- data/spec/google/api_client/discovery_spec.rb +0 -708
- data/spec/google/api_client/gzip_spec.rb +0 -98
- data/spec/google/api_client/media_spec.rb +0 -178
- data/spec/google/api_client/result_spec.rb +0 -207
- data/spec/google/api_client/service_account_spec.rb +0 -169
- data/spec/google/api_client/service_spec.rb +0 -618
- data/spec/google/api_client/simple_file_store_spec.rb +0 -133
- data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,1001 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module LoggingV1beta3
|
23
|
+
# Google Cloud Logging API
|
24
|
+
#
|
25
|
+
# The Google Cloud Logging API lets you write log entries and manage your logs,
|
26
|
+
# log sinks and logs-based metrics.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/logging_v1beta3'
|
30
|
+
#
|
31
|
+
# Logging = Google::Apis::LoggingV1beta3 # Alias the module
|
32
|
+
# service = Logging::LoggingService.new
|
33
|
+
#
|
34
|
+
# @see https://cloud.google.com/logging/docs/
|
35
|
+
class LoggingService < Google::Apis::Core::BaseService
|
36
|
+
# @return [String]
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
+
attr_accessor :key
|
40
|
+
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
def initialize
|
47
|
+
super('https://logging.googleapis.com/', '')
|
48
|
+
end
|
49
|
+
|
50
|
+
# Lists the logs in the project. Only logs that have entries are listed.
|
51
|
+
# @param [String] projects_id
|
52
|
+
# Part of `projectName`. The resource name of the project whose logs are
|
53
|
+
# requested. If both `serviceName` and `serviceIndexPrefix` are empty, then all
|
54
|
+
# logs with entries in this project are listed.
|
55
|
+
# @param [String] service_name
|
56
|
+
# If not empty, this field must be a log service name such as `"compute.
|
57
|
+
# googleapis.com"`. Only logs associated with that that log service are listed.
|
58
|
+
# @param [String] service_index_prefix
|
59
|
+
# The purpose of this field is to restrict the listed logs to those with entries
|
60
|
+
# of a certain kind. If `serviceName` is the name of a log service, then this
|
61
|
+
# field may contain values for the log service's indexes. Only logs that have
|
62
|
+
# entries whose indexes include the values are listed. The format for this field
|
63
|
+
# is `"/val1/val2.../valN"`, where `val1` is a value for the first index, `val2`
|
64
|
+
# for the second index, etc. An empty value (a single slash) for an index
|
65
|
+
# matches all values, and you can omit values for later indexes entirely.
|
66
|
+
# @param [Fixnum] page_size
|
67
|
+
# The maximum number of results to return.
|
68
|
+
# @param [String] page_token
|
69
|
+
# An opaque token, returned as `nextPageToken` by a prior `ListLogs` operation.
|
70
|
+
# If `pageToken` is supplied, then the other fields of this request are ignored,
|
71
|
+
# and instead the previous `ListLogs` operation is continued.
|
72
|
+
# @param [String] fields
|
73
|
+
# Selector specifying which fields to include in a partial response.
|
74
|
+
# @param [String] quota_user
|
75
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
76
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
77
|
+
# @param [Google::Apis::RequestOptions] options
|
78
|
+
# Request-specific options
|
79
|
+
#
|
80
|
+
# @yield [result, err] Result & error if block supplied
|
81
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::ListLogsResponse] parsed result object
|
82
|
+
# @yieldparam err [StandardError] error object if request failed
|
83
|
+
#
|
84
|
+
# @return [Google::Apis::LoggingV1beta3::ListLogsResponse]
|
85
|
+
#
|
86
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
87
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
88
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
89
|
+
def list_logs(projects_id, service_name: nil, service_index_prefix: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
90
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logs', options)
|
91
|
+
command.response_representation = Google::Apis::LoggingV1beta3::ListLogsResponse::Representation
|
92
|
+
command.response_class = Google::Apis::LoggingV1beta3::ListLogsResponse
|
93
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
94
|
+
command.query['serviceName'] = service_name unless service_name.nil?
|
95
|
+
command.query['serviceIndexPrefix'] = service_index_prefix unless service_index_prefix.nil?
|
96
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
97
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
98
|
+
command.query['fields'] = fields unless fields.nil?
|
99
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
100
|
+
execute_or_queue_command(command, &block)
|
101
|
+
end
|
102
|
+
|
103
|
+
# Deletes a log and all its log entries. The log will reappear if it receives
|
104
|
+
# new entries.
|
105
|
+
# @param [String] projects_id
|
106
|
+
# Part of `logName`. The resource name of the log to be deleted.
|
107
|
+
# @param [String] logs_id
|
108
|
+
# Part of `logName`. See documentation of `projectsId`.
|
109
|
+
# @param [String] fields
|
110
|
+
# Selector specifying which fields to include in a partial response.
|
111
|
+
# @param [String] quota_user
|
112
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
113
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
114
|
+
# @param [Google::Apis::RequestOptions] options
|
115
|
+
# Request-specific options
|
116
|
+
#
|
117
|
+
# @yield [result, err] Result & error if block supplied
|
118
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::Empty] parsed result object
|
119
|
+
# @yieldparam err [StandardError] error object if request failed
|
120
|
+
#
|
121
|
+
# @return [Google::Apis::LoggingV1beta3::Empty]
|
122
|
+
#
|
123
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
124
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
125
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
126
|
+
def delete_log(projects_id, logs_id, fields: nil, quota_user: nil, options: nil, &block)
|
127
|
+
command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/logs/{logsId}', options)
|
128
|
+
command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation
|
129
|
+
command.response_class = Google::Apis::LoggingV1beta3::Empty
|
130
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
131
|
+
command.params['logsId'] = logs_id unless logs_id.nil?
|
132
|
+
command.query['fields'] = fields unless fields.nil?
|
133
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
134
|
+
execute_or_queue_command(command, &block)
|
135
|
+
end
|
136
|
+
|
137
|
+
# Writes log entries to Cloud Logging. Each entry consists of a `LogEntry`
|
138
|
+
# object. You must fill in all the fields of the object, including one of the
|
139
|
+
# payload fields. You may supply a map, `commonLabels`, that holds default (key,
|
140
|
+
# value) data for the `entries[].metadata.labels` map in each entry, saving you
|
141
|
+
# the trouble of creating identical copies for each entry.
|
142
|
+
# @param [String] projects_id
|
143
|
+
# Part of `logName`. The resource name of the log that will receive the log
|
144
|
+
# entries.
|
145
|
+
# @param [String] logs_id
|
146
|
+
# Part of `logName`. See documentation of `projectsId`.
|
147
|
+
# @param [Google::Apis::LoggingV1beta3::WriteLogEntriesRequest] write_log_entries_request_object
|
148
|
+
# @param [String] fields
|
149
|
+
# Selector specifying which fields to include in a partial response.
|
150
|
+
# @param [String] quota_user
|
151
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
152
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
153
|
+
# @param [Google::Apis::RequestOptions] options
|
154
|
+
# Request-specific options
|
155
|
+
#
|
156
|
+
# @yield [result, err] Result & error if block supplied
|
157
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::WriteLogEntriesResponse] parsed result object
|
158
|
+
# @yieldparam err [StandardError] error object if request failed
|
159
|
+
#
|
160
|
+
# @return [Google::Apis::LoggingV1beta3::WriteLogEntriesResponse]
|
161
|
+
#
|
162
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
163
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
164
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
165
|
+
def write_log_entries(projects_id, logs_id, write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
166
|
+
command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/logs/{logsId}/entries:write', options)
|
167
|
+
command.request_representation = Google::Apis::LoggingV1beta3::WriteLogEntriesRequest::Representation
|
168
|
+
command.request_object = write_log_entries_request_object
|
169
|
+
command.response_representation = Google::Apis::LoggingV1beta3::WriteLogEntriesResponse::Representation
|
170
|
+
command.response_class = Google::Apis::LoggingV1beta3::WriteLogEntriesResponse
|
171
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
172
|
+
command.params['logsId'] = logs_id unless logs_id.nil?
|
173
|
+
command.query['fields'] = fields unless fields.nil?
|
174
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
175
|
+
execute_or_queue_command(command, &block)
|
176
|
+
end
|
177
|
+
|
178
|
+
# Lists log sinks associated with a log.
|
179
|
+
# @param [String] projects_id
|
180
|
+
# Part of `logName`. The log whose sinks are wanted. For example, `"compute.
|
181
|
+
# google.com/syslog"`.
|
182
|
+
# @param [String] logs_id
|
183
|
+
# Part of `logName`. See documentation of `projectsId`.
|
184
|
+
# @param [String] fields
|
185
|
+
# Selector specifying which fields to include in a partial response.
|
186
|
+
# @param [String] quota_user
|
187
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
188
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
189
|
+
# @param [Google::Apis::RequestOptions] options
|
190
|
+
# Request-specific options
|
191
|
+
#
|
192
|
+
# @yield [result, err] Result & error if block supplied
|
193
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::ListLogSinksResponse] parsed result object
|
194
|
+
# @yieldparam err [StandardError] error object if request failed
|
195
|
+
#
|
196
|
+
# @return [Google::Apis::LoggingV1beta3::ListLogSinksResponse]
|
197
|
+
#
|
198
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
199
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
200
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
201
|
+
def list_log_sinks(projects_id, logs_id, fields: nil, quota_user: nil, options: nil, &block)
|
202
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks', options)
|
203
|
+
command.response_representation = Google::Apis::LoggingV1beta3::ListLogSinksResponse::Representation
|
204
|
+
command.response_class = Google::Apis::LoggingV1beta3::ListLogSinksResponse
|
205
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
206
|
+
command.params['logsId'] = logs_id unless logs_id.nil?
|
207
|
+
command.query['fields'] = fields unless fields.nil?
|
208
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
209
|
+
execute_or_queue_command(command, &block)
|
210
|
+
end
|
211
|
+
|
212
|
+
# Gets a log sink.
|
213
|
+
# @param [String] projects_id
|
214
|
+
# Part of `sinkName`. The resource name of the log sink to return.
|
215
|
+
# @param [String] logs_id
|
216
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
217
|
+
# @param [String] sinks_id
|
218
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
219
|
+
# @param [String] fields
|
220
|
+
# Selector specifying which fields to include in a partial response.
|
221
|
+
# @param [String] quota_user
|
222
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
223
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
224
|
+
# @param [Google::Apis::RequestOptions] options
|
225
|
+
# Request-specific options
|
226
|
+
#
|
227
|
+
# @yield [result, err] Result & error if block supplied
|
228
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
|
229
|
+
# @yieldparam err [StandardError] error object if request failed
|
230
|
+
#
|
231
|
+
# @return [Google::Apis::LoggingV1beta3::LogSink]
|
232
|
+
#
|
233
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
234
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
235
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
236
|
+
def get_log_sink(projects_id, logs_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
|
237
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', options)
|
238
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
239
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogSink
|
240
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
241
|
+
command.params['logsId'] = logs_id unless logs_id.nil?
|
242
|
+
command.params['sinksId'] = sinks_id unless sinks_id.nil?
|
243
|
+
command.query['fields'] = fields unless fields.nil?
|
244
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
245
|
+
execute_or_queue_command(command, &block)
|
246
|
+
end
|
247
|
+
|
248
|
+
# Creates a log sink. All log entries for a specified log are written to the
|
249
|
+
# destination.
|
250
|
+
# @param [String] projects_id
|
251
|
+
# Part of `logName`. The resource name of the log to which to the sink is bound.
|
252
|
+
# @param [String] logs_id
|
253
|
+
# Part of `logName`. See documentation of `projectsId`.
|
254
|
+
# @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object
|
255
|
+
# @param [String] fields
|
256
|
+
# Selector specifying which fields to include in a partial response.
|
257
|
+
# @param [String] quota_user
|
258
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
259
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
260
|
+
# @param [Google::Apis::RequestOptions] options
|
261
|
+
# Request-specific options
|
262
|
+
#
|
263
|
+
# @yield [result, err] Result & error if block supplied
|
264
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
|
265
|
+
# @yieldparam err [StandardError] error object if request failed
|
266
|
+
#
|
267
|
+
# @return [Google::Apis::LoggingV1beta3::LogSink]
|
268
|
+
#
|
269
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
270
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
271
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
272
|
+
def create_log_sink(projects_id, logs_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
273
|
+
command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks', options)
|
274
|
+
command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
275
|
+
command.request_object = log_sink_object
|
276
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
277
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogSink
|
278
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
279
|
+
command.params['logsId'] = logs_id unless logs_id.nil?
|
280
|
+
command.query['fields'] = fields unless fields.nil?
|
281
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
282
|
+
execute_or_queue_command(command, &block)
|
283
|
+
end
|
284
|
+
|
285
|
+
# Updates a log sink. If the sink does not exist, it is created.
|
286
|
+
# @param [String] projects_id
|
287
|
+
# Part of `sinkName`. The resource name of the sink to update.
|
288
|
+
# @param [String] logs_id
|
289
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
290
|
+
# @param [String] sinks_id
|
291
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
292
|
+
# @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object
|
293
|
+
# @param [String] fields
|
294
|
+
# Selector specifying which fields to include in a partial response.
|
295
|
+
# @param [String] quota_user
|
296
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
297
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
298
|
+
# @param [Google::Apis::RequestOptions] options
|
299
|
+
# Request-specific options
|
300
|
+
#
|
301
|
+
# @yield [result, err] Result & error if block supplied
|
302
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
|
303
|
+
# @yieldparam err [StandardError] error object if request failed
|
304
|
+
#
|
305
|
+
# @return [Google::Apis::LoggingV1beta3::LogSink]
|
306
|
+
#
|
307
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
308
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
309
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
310
|
+
def update_log_sink(projects_id, logs_id, sinks_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
311
|
+
command = make_simple_command(:put, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', options)
|
312
|
+
command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
313
|
+
command.request_object = log_sink_object
|
314
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
315
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogSink
|
316
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
317
|
+
command.params['logsId'] = logs_id unless logs_id.nil?
|
318
|
+
command.params['sinksId'] = sinks_id unless sinks_id.nil?
|
319
|
+
command.query['fields'] = fields unless fields.nil?
|
320
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
321
|
+
execute_or_queue_command(command, &block)
|
322
|
+
end
|
323
|
+
|
324
|
+
# Deletes a log sink. After deletion, no new log entries are written to the
|
325
|
+
# destination.
|
326
|
+
# @param [String] projects_id
|
327
|
+
# Part of `sinkName`. The resource name of the log sink to delete.
|
328
|
+
# @param [String] logs_id
|
329
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
330
|
+
# @param [String] sinks_id
|
331
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
332
|
+
# @param [String] fields
|
333
|
+
# Selector specifying which fields to include in a partial response.
|
334
|
+
# @param [String] quota_user
|
335
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
336
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
337
|
+
# @param [Google::Apis::RequestOptions] options
|
338
|
+
# Request-specific options
|
339
|
+
#
|
340
|
+
# @yield [result, err] Result & error if block supplied
|
341
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::Empty] parsed result object
|
342
|
+
# @yieldparam err [StandardError] error object if request failed
|
343
|
+
#
|
344
|
+
# @return [Google::Apis::LoggingV1beta3::Empty]
|
345
|
+
#
|
346
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
347
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
348
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
349
|
+
def delete_log_sink(projects_id, logs_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
|
350
|
+
command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', options)
|
351
|
+
command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation
|
352
|
+
command.response_class = Google::Apis::LoggingV1beta3::Empty
|
353
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
354
|
+
command.params['logsId'] = logs_id unless logs_id.nil?
|
355
|
+
command.params['sinksId'] = sinks_id unless sinks_id.nil?
|
356
|
+
command.query['fields'] = fields unless fields.nil?
|
357
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
358
|
+
execute_or_queue_command(command, &block)
|
359
|
+
end
|
360
|
+
|
361
|
+
# Lists the log services that have log entries in this project.
|
362
|
+
# @param [String] projects_id
|
363
|
+
# Part of `projectName`. The resource name of the project whose services are to
|
364
|
+
# be listed.
|
365
|
+
# @param [Fixnum] page_size
|
366
|
+
# The maximum number of `LogService` objects to return in one operation.
|
367
|
+
# @param [String] page_token
|
368
|
+
# An opaque token, returned as `nextPageToken` by a prior `ListLogServices`
|
369
|
+
# operation. If `pageToken` is supplied, then the other fields of this request
|
370
|
+
# are ignored, and instead the previous `ListLogServices` operation is continued.
|
371
|
+
# @param [String] fields
|
372
|
+
# Selector specifying which fields to include in a partial response.
|
373
|
+
# @param [String] quota_user
|
374
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
375
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
376
|
+
# @param [Google::Apis::RequestOptions] options
|
377
|
+
# Request-specific options
|
378
|
+
#
|
379
|
+
# @yield [result, err] Result & error if block supplied
|
380
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::ListLogServicesResponse] parsed result object
|
381
|
+
# @yieldparam err [StandardError] error object if request failed
|
382
|
+
#
|
383
|
+
# @return [Google::Apis::LoggingV1beta3::ListLogServicesResponse]
|
384
|
+
#
|
385
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
386
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
387
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
388
|
+
def list_log_services(projects_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
389
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logServices', options)
|
390
|
+
command.response_representation = Google::Apis::LoggingV1beta3::ListLogServicesResponse::Representation
|
391
|
+
command.response_class = Google::Apis::LoggingV1beta3::ListLogServicesResponse
|
392
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
393
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
394
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
395
|
+
command.query['fields'] = fields unless fields.nil?
|
396
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
397
|
+
execute_or_queue_command(command, &block)
|
398
|
+
end
|
399
|
+
|
400
|
+
# Lists the current index values for a log service.
|
401
|
+
# @param [String] projects_id
|
402
|
+
# Part of `serviceName`. The resource name of a log service whose service
|
403
|
+
# indexes are requested. Example: `"projects/my-project-id/logServices/appengine.
|
404
|
+
# googleapis.com"`.
|
405
|
+
# @param [String] log_services_id
|
406
|
+
# Part of `serviceName`. See documentation of `projectsId`.
|
407
|
+
# @param [String] index_prefix
|
408
|
+
# Restricts the index values returned to be those with a specified prefix for
|
409
|
+
# each index key. This field has the form `"/prefix1/prefix2/..."`, in order
|
410
|
+
# corresponding to the `LogService indexKeys`. Non-empty prefixes must begin
|
411
|
+
# with `/`. For example, App Engine's two keys are the module ID and the version
|
412
|
+
# ID. Following is the effect of using various values for `indexPrefix`: + `"/
|
413
|
+
# Mod/"` retrieves `/Mod/10` and `/Mod/11` but not `/ModA/10`. + `"/Mod`
|
414
|
+
# retrieves `/Mod/10`, `/Mod/11` and `/ModA/10` but not `/XXX/33`. + `"/Mod/1"`
|
415
|
+
# retrieves `/Mod/10` and `/Mod/11` but not `/ModA/10`. + `"/Mod/10/"` retrieves
|
416
|
+
# `/Mod/10` only. + An empty prefix or `"/"` retrieves all values.
|
417
|
+
# @param [Fixnum] depth
|
418
|
+
# A non-negative integer that limits the number of levels of the index hierarchy
|
419
|
+
# that are returned. If `depth` is 1 (default), only the first index key value
|
420
|
+
# is returned. If `depth` is 2, both primary and secondary key values are
|
421
|
+
# returned. If `depth` is 0, the depth is the number of slash-separators in the `
|
422
|
+
# indexPrefix` field, not counting a slash appearing as the last character of
|
423
|
+
# the prefix. If the `indexPrefix` field is empty, the default depth is 1. It is
|
424
|
+
# an error for `depth` to be any positive value less than the number of
|
425
|
+
# components in `indexPrefix`.
|
426
|
+
# @param [Fixnum] page_size
|
427
|
+
# The maximum number of log service index resources to return in one operation.
|
428
|
+
# @param [String] page_token
|
429
|
+
# An opaque token, returned as `nextPageToken` by a prior `ListLogServiceIndexes`
|
430
|
+
# operation. If `pageToken` is supplied, then the other fields of this request
|
431
|
+
# are ignored, and instead the previous `ListLogServiceIndexes` operation is
|
432
|
+
# continued.
|
433
|
+
# @param [String] fields
|
434
|
+
# Selector specifying which fields to include in a partial response.
|
435
|
+
# @param [String] quota_user
|
436
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
437
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
438
|
+
# @param [Google::Apis::RequestOptions] options
|
439
|
+
# Request-specific options
|
440
|
+
#
|
441
|
+
# @yield [result, err] Result & error if block supplied
|
442
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::ListLogServiceIndexesResponse] parsed result object
|
443
|
+
# @yieldparam err [StandardError] error object if request failed
|
444
|
+
#
|
445
|
+
# @return [Google::Apis::LoggingV1beta3::ListLogServiceIndexesResponse]
|
446
|
+
#
|
447
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
448
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
449
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
450
|
+
def list_log_service_indexes(projects_id, log_services_id, index_prefix: nil, depth: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
451
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/indexes', options)
|
452
|
+
command.response_representation = Google::Apis::LoggingV1beta3::ListLogServiceIndexesResponse::Representation
|
453
|
+
command.response_class = Google::Apis::LoggingV1beta3::ListLogServiceIndexesResponse
|
454
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
455
|
+
command.params['logServicesId'] = log_services_id unless log_services_id.nil?
|
456
|
+
command.query['indexPrefix'] = index_prefix unless index_prefix.nil?
|
457
|
+
command.query['depth'] = depth unless depth.nil?
|
458
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
459
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
460
|
+
command.query['fields'] = fields unless fields.nil?
|
461
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
462
|
+
execute_or_queue_command(command, &block)
|
463
|
+
end
|
464
|
+
|
465
|
+
# Lists log service sinks associated with a log service.
|
466
|
+
# @param [String] projects_id
|
467
|
+
# Part of `serviceName`. The log service whose sinks are wanted.
|
468
|
+
# @param [String] log_services_id
|
469
|
+
# Part of `serviceName`. See documentation of `projectsId`.
|
470
|
+
# @param [String] fields
|
471
|
+
# Selector specifying which fields to include in a partial response.
|
472
|
+
# @param [String] quota_user
|
473
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
474
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
475
|
+
# @param [Google::Apis::RequestOptions] options
|
476
|
+
# Request-specific options
|
477
|
+
#
|
478
|
+
# @yield [result, err] Result & error if block supplied
|
479
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::ListLogServiceSinksResponse] parsed result object
|
480
|
+
# @yieldparam err [StandardError] error object if request failed
|
481
|
+
#
|
482
|
+
# @return [Google::Apis::LoggingV1beta3::ListLogServiceSinksResponse]
|
483
|
+
#
|
484
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
485
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
486
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
487
|
+
def list_log_service_sinks(projects_id, log_services_id, fields: nil, quota_user: nil, options: nil, &block)
|
488
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks', options)
|
489
|
+
command.response_representation = Google::Apis::LoggingV1beta3::ListLogServiceSinksResponse::Representation
|
490
|
+
command.response_class = Google::Apis::LoggingV1beta3::ListLogServiceSinksResponse
|
491
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
492
|
+
command.params['logServicesId'] = log_services_id unless log_services_id.nil?
|
493
|
+
command.query['fields'] = fields unless fields.nil?
|
494
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
495
|
+
execute_or_queue_command(command, &block)
|
496
|
+
end
|
497
|
+
|
498
|
+
# Gets a log service sink.
|
499
|
+
# @param [String] projects_id
|
500
|
+
# Part of `sinkName`. The resource name of the log service sink to return.
|
501
|
+
# @param [String] log_services_id
|
502
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
503
|
+
# @param [String] sinks_id
|
504
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
505
|
+
# @param [String] fields
|
506
|
+
# Selector specifying which fields to include in a partial response.
|
507
|
+
# @param [String] quota_user
|
508
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
509
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
510
|
+
# @param [Google::Apis::RequestOptions] options
|
511
|
+
# Request-specific options
|
512
|
+
#
|
513
|
+
# @yield [result, err] Result & error if block supplied
|
514
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
|
515
|
+
# @yieldparam err [StandardError] error object if request failed
|
516
|
+
#
|
517
|
+
# @return [Google::Apis::LoggingV1beta3::LogSink]
|
518
|
+
#
|
519
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
520
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
521
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
522
|
+
def get_log_service_sink(projects_id, log_services_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
|
523
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', options)
|
524
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
525
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogSink
|
526
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
527
|
+
command.params['logServicesId'] = log_services_id unless log_services_id.nil?
|
528
|
+
command.params['sinksId'] = sinks_id unless sinks_id.nil?
|
529
|
+
command.query['fields'] = fields unless fields.nil?
|
530
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
531
|
+
execute_or_queue_command(command, &block)
|
532
|
+
end
|
533
|
+
|
534
|
+
# Creates a log service sink. All log entries from a specified log service are
|
535
|
+
# written to the destination.
|
536
|
+
# @param [String] projects_id
|
537
|
+
# Part of `serviceName`. The resource name of the log service to which the sink
|
538
|
+
# is bound.
|
539
|
+
# @param [String] log_services_id
|
540
|
+
# Part of `serviceName`. See documentation of `projectsId`.
|
541
|
+
# @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object
|
542
|
+
# @param [String] fields
|
543
|
+
# Selector specifying which fields to include in a partial response.
|
544
|
+
# @param [String] quota_user
|
545
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
546
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
547
|
+
# @param [Google::Apis::RequestOptions] options
|
548
|
+
# Request-specific options
|
549
|
+
#
|
550
|
+
# @yield [result, err] Result & error if block supplied
|
551
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
|
552
|
+
# @yieldparam err [StandardError] error object if request failed
|
553
|
+
#
|
554
|
+
# @return [Google::Apis::LoggingV1beta3::LogSink]
|
555
|
+
#
|
556
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
557
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
558
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
559
|
+
def create_log_service_sink(projects_id, log_services_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
560
|
+
command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks', options)
|
561
|
+
command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
562
|
+
command.request_object = log_sink_object
|
563
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
564
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogSink
|
565
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
566
|
+
command.params['logServicesId'] = log_services_id unless log_services_id.nil?
|
567
|
+
command.query['fields'] = fields unless fields.nil?
|
568
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
569
|
+
execute_or_queue_command(command, &block)
|
570
|
+
end
|
571
|
+
|
572
|
+
# Updates a log service sink. If the sink does not exist, it is created.
|
573
|
+
# @param [String] projects_id
|
574
|
+
# Part of `sinkName`. The resource name of the log service sink to update.
|
575
|
+
# @param [String] log_services_id
|
576
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
577
|
+
# @param [String] sinks_id
|
578
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
579
|
+
# @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object
|
580
|
+
# @param [String] fields
|
581
|
+
# Selector specifying which fields to include in a partial response.
|
582
|
+
# @param [String] quota_user
|
583
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
584
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
585
|
+
# @param [Google::Apis::RequestOptions] options
|
586
|
+
# Request-specific options
|
587
|
+
#
|
588
|
+
# @yield [result, err] Result & error if block supplied
|
589
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
|
590
|
+
# @yieldparam err [StandardError] error object if request failed
|
591
|
+
#
|
592
|
+
# @return [Google::Apis::LoggingV1beta3::LogSink]
|
593
|
+
#
|
594
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
595
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
596
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
597
|
+
def update_log_service_sink(projects_id, log_services_id, sinks_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
598
|
+
command = make_simple_command(:put, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', options)
|
599
|
+
command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
600
|
+
command.request_object = log_sink_object
|
601
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
602
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogSink
|
603
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
604
|
+
command.params['logServicesId'] = log_services_id unless log_services_id.nil?
|
605
|
+
command.params['sinksId'] = sinks_id unless sinks_id.nil?
|
606
|
+
command.query['fields'] = fields unless fields.nil?
|
607
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
608
|
+
execute_or_queue_command(command, &block)
|
609
|
+
end
|
610
|
+
|
611
|
+
# Deletes a log service sink. After deletion, no new log entries are written to
|
612
|
+
# the destination.
|
613
|
+
# @param [String] projects_id
|
614
|
+
# Part of `sinkName`. The resource name of the log service sink to delete.
|
615
|
+
# @param [String] log_services_id
|
616
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
617
|
+
# @param [String] sinks_id
|
618
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
619
|
+
# @param [String] fields
|
620
|
+
# Selector specifying which fields to include in a partial response.
|
621
|
+
# @param [String] quota_user
|
622
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
623
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
624
|
+
# @param [Google::Apis::RequestOptions] options
|
625
|
+
# Request-specific options
|
626
|
+
#
|
627
|
+
# @yield [result, err] Result & error if block supplied
|
628
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::Empty] parsed result object
|
629
|
+
# @yieldparam err [StandardError] error object if request failed
|
630
|
+
#
|
631
|
+
# @return [Google::Apis::LoggingV1beta3::Empty]
|
632
|
+
#
|
633
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
634
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
635
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
636
|
+
def delete_log_service_sink(projects_id, log_services_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
|
637
|
+
command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', options)
|
638
|
+
command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation
|
639
|
+
command.response_class = Google::Apis::LoggingV1beta3::Empty
|
640
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
641
|
+
command.params['logServicesId'] = log_services_id unless log_services_id.nil?
|
642
|
+
command.params['sinksId'] = sinks_id unless sinks_id.nil?
|
643
|
+
command.query['fields'] = fields unless fields.nil?
|
644
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
645
|
+
execute_or_queue_command(command, &block)
|
646
|
+
end
|
647
|
+
|
648
|
+
# Lists project sinks associated with a project.
|
649
|
+
# @param [String] projects_id
|
650
|
+
# Part of `projectName`. The project whose sinks are wanted.
|
651
|
+
# @param [String] fields
|
652
|
+
# Selector specifying which fields to include in a partial response.
|
653
|
+
# @param [String] quota_user
|
654
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
655
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
656
|
+
# @param [Google::Apis::RequestOptions] options
|
657
|
+
# Request-specific options
|
658
|
+
#
|
659
|
+
# @yield [result, err] Result & error if block supplied
|
660
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::ListSinksResponse] parsed result object
|
661
|
+
# @yieldparam err [StandardError] error object if request failed
|
662
|
+
#
|
663
|
+
# @return [Google::Apis::LoggingV1beta3::ListSinksResponse]
|
664
|
+
#
|
665
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
666
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
667
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
668
|
+
def list_project_sinks(projects_id, fields: nil, quota_user: nil, options: nil, &block)
|
669
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/sinks', options)
|
670
|
+
command.response_representation = Google::Apis::LoggingV1beta3::ListSinksResponse::Representation
|
671
|
+
command.response_class = Google::Apis::LoggingV1beta3::ListSinksResponse
|
672
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
673
|
+
command.query['fields'] = fields unless fields.nil?
|
674
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
675
|
+
execute_or_queue_command(command, &block)
|
676
|
+
end
|
677
|
+
|
678
|
+
# Gets a project sink.
|
679
|
+
# @param [String] projects_id
|
680
|
+
# Part of `sinkName`. The resource name of the project sink to return.
|
681
|
+
# @param [String] sinks_id
|
682
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
683
|
+
# @param [String] fields
|
684
|
+
# Selector specifying which fields to include in a partial response.
|
685
|
+
# @param [String] quota_user
|
686
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
687
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
688
|
+
# @param [Google::Apis::RequestOptions] options
|
689
|
+
# Request-specific options
|
690
|
+
#
|
691
|
+
# @yield [result, err] Result & error if block supplied
|
692
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
|
693
|
+
# @yieldparam err [StandardError] error object if request failed
|
694
|
+
#
|
695
|
+
# @return [Google::Apis::LoggingV1beta3::LogSink]
|
696
|
+
#
|
697
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
698
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
699
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
700
|
+
def get_project_sink(projects_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
|
701
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/sinks/{sinksId}', options)
|
702
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
703
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogSink
|
704
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
705
|
+
command.params['sinksId'] = sinks_id unless sinks_id.nil?
|
706
|
+
command.query['fields'] = fields unless fields.nil?
|
707
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
708
|
+
execute_or_queue_command(command, &block)
|
709
|
+
end
|
710
|
+
|
711
|
+
# Creates a project sink. A logs filter determines which log entries are written
|
712
|
+
# to the destination.
|
713
|
+
# @param [String] projects_id
|
714
|
+
# Part of `projectName`. The resource name of the project to which the sink is
|
715
|
+
# bound.
|
716
|
+
# @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object
|
717
|
+
# @param [String] fields
|
718
|
+
# Selector specifying which fields to include in a partial response.
|
719
|
+
# @param [String] quota_user
|
720
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
721
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
722
|
+
# @param [Google::Apis::RequestOptions] options
|
723
|
+
# Request-specific options
|
724
|
+
#
|
725
|
+
# @yield [result, err] Result & error if block supplied
|
726
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
|
727
|
+
# @yieldparam err [StandardError] error object if request failed
|
728
|
+
#
|
729
|
+
# @return [Google::Apis::LoggingV1beta3::LogSink]
|
730
|
+
#
|
731
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
732
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
733
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
734
|
+
def create_project_sink(projects_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
735
|
+
command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/sinks', options)
|
736
|
+
command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
737
|
+
command.request_object = log_sink_object
|
738
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
739
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogSink
|
740
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
741
|
+
command.query['fields'] = fields unless fields.nil?
|
742
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
743
|
+
execute_or_queue_command(command, &block)
|
744
|
+
end
|
745
|
+
|
746
|
+
# Updates a project sink. If the sink does not exist, it is created. The
|
747
|
+
# destination, filter, or both may be updated.
|
748
|
+
# @param [String] projects_id
|
749
|
+
# Part of `sinkName`. The resource name of the project sink to update.
|
750
|
+
# @param [String] sinks_id
|
751
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
752
|
+
# @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object
|
753
|
+
# @param [String] fields
|
754
|
+
# Selector specifying which fields to include in a partial response.
|
755
|
+
# @param [String] quota_user
|
756
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
757
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
758
|
+
# @param [Google::Apis::RequestOptions] options
|
759
|
+
# Request-specific options
|
760
|
+
#
|
761
|
+
# @yield [result, err] Result & error if block supplied
|
762
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
|
763
|
+
# @yieldparam err [StandardError] error object if request failed
|
764
|
+
#
|
765
|
+
# @return [Google::Apis::LoggingV1beta3::LogSink]
|
766
|
+
#
|
767
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
768
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
769
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
770
|
+
def update_project_sink(projects_id, sinks_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
771
|
+
command = make_simple_command(:put, 'v1beta3/projects/{projectsId}/sinks/{sinksId}', options)
|
772
|
+
command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
773
|
+
command.request_object = log_sink_object
|
774
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
775
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogSink
|
776
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
777
|
+
command.params['sinksId'] = sinks_id unless sinks_id.nil?
|
778
|
+
command.query['fields'] = fields unless fields.nil?
|
779
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
780
|
+
execute_or_queue_command(command, &block)
|
781
|
+
end
|
782
|
+
|
783
|
+
# Deletes a project sink. After deletion, no new log entries are written to the
|
784
|
+
# destination.
|
785
|
+
# @param [String] projects_id
|
786
|
+
# Part of `sinkName`. The resource name of the project sink to delete.
|
787
|
+
# @param [String] sinks_id
|
788
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
789
|
+
# @param [String] fields
|
790
|
+
# Selector specifying which fields to include in a partial response.
|
791
|
+
# @param [String] quota_user
|
792
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
793
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
794
|
+
# @param [Google::Apis::RequestOptions] options
|
795
|
+
# Request-specific options
|
796
|
+
#
|
797
|
+
# @yield [result, err] Result & error if block supplied
|
798
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::Empty] parsed result object
|
799
|
+
# @yieldparam err [StandardError] error object if request failed
|
800
|
+
#
|
801
|
+
# @return [Google::Apis::LoggingV1beta3::Empty]
|
802
|
+
#
|
803
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
804
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
805
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
806
|
+
def delete_project_sink(projects_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
|
807
|
+
command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/sinks/{sinksId}', options)
|
808
|
+
command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation
|
809
|
+
command.response_class = Google::Apis::LoggingV1beta3::Empty
|
810
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
811
|
+
command.params['sinksId'] = sinks_id unless sinks_id.nil?
|
812
|
+
command.query['fields'] = fields unless fields.nil?
|
813
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
814
|
+
execute_or_queue_command(command, &block)
|
815
|
+
end
|
816
|
+
|
817
|
+
# Lists the logs-based metrics associated with a project.
|
818
|
+
# @param [String] projects_id
|
819
|
+
# Part of `projectName`. The resource name for the project whose metrics are
|
820
|
+
# wanted.
|
821
|
+
# @param [String] page_token
|
822
|
+
# An opaque token, returned as `nextPageToken` by a prior `ListLogMetrics`
|
823
|
+
# operation. If `pageToken` is supplied, then the other fields of this request
|
824
|
+
# are ignored, and instead the previous `ListLogMetrics` operation is continued.
|
825
|
+
# @param [Fixnum] page_size
|
826
|
+
# The maximum number of `LogMetric` objects to return in one operation.
|
827
|
+
# @param [String] fields
|
828
|
+
# Selector specifying which fields to include in a partial response.
|
829
|
+
# @param [String] quota_user
|
830
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
831
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
832
|
+
# @param [Google::Apis::RequestOptions] options
|
833
|
+
# Request-specific options
|
834
|
+
#
|
835
|
+
# @yield [result, err] Result & error if block supplied
|
836
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::ListLogMetricsResponse] parsed result object
|
837
|
+
# @yieldparam err [StandardError] error object if request failed
|
838
|
+
#
|
839
|
+
# @return [Google::Apis::LoggingV1beta3::ListLogMetricsResponse]
|
840
|
+
#
|
841
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
842
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
843
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
844
|
+
def list_project_metrics(projects_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
845
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/metrics', options)
|
846
|
+
command.response_representation = Google::Apis::LoggingV1beta3::ListLogMetricsResponse::Representation
|
847
|
+
command.response_class = Google::Apis::LoggingV1beta3::ListLogMetricsResponse
|
848
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
849
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
850
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
851
|
+
command.query['fields'] = fields unless fields.nil?
|
852
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
853
|
+
execute_or_queue_command(command, &block)
|
854
|
+
end
|
855
|
+
|
856
|
+
# Gets a logs-based metric.
|
857
|
+
# @param [String] projects_id
|
858
|
+
# Part of `metricName`. The resource name of the desired metric.
|
859
|
+
# @param [String] metrics_id
|
860
|
+
# Part of `metricName`. See documentation of `projectsId`.
|
861
|
+
# @param [String] fields
|
862
|
+
# Selector specifying which fields to include in a partial response.
|
863
|
+
# @param [String] quota_user
|
864
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
865
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
866
|
+
# @param [Google::Apis::RequestOptions] options
|
867
|
+
# Request-specific options
|
868
|
+
#
|
869
|
+
# @yield [result, err] Result & error if block supplied
|
870
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogMetric] parsed result object
|
871
|
+
# @yieldparam err [StandardError] error object if request failed
|
872
|
+
#
|
873
|
+
# @return [Google::Apis::LoggingV1beta3::LogMetric]
|
874
|
+
#
|
875
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
876
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
877
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
878
|
+
def get_project_metric(projects_id, metrics_id, fields: nil, quota_user: nil, options: nil, &block)
|
879
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/metrics/{metricsId}', options)
|
880
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation
|
881
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogMetric
|
882
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
883
|
+
command.params['metricsId'] = metrics_id unless metrics_id.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
|
+
# Creates a logs-based metric.
|
890
|
+
# @param [String] projects_id
|
891
|
+
# Part of `projectName`. The resource name of the project in which to create the
|
892
|
+
# metric.
|
893
|
+
# @param [Google::Apis::LoggingV1beta3::LogMetric] log_metric_object
|
894
|
+
# @param [String] fields
|
895
|
+
# Selector specifying which fields to include in a partial response.
|
896
|
+
# @param [String] quota_user
|
897
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
898
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
899
|
+
# @param [Google::Apis::RequestOptions] options
|
900
|
+
# Request-specific options
|
901
|
+
#
|
902
|
+
# @yield [result, err] Result & error if block supplied
|
903
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogMetric] parsed result object
|
904
|
+
# @yieldparam err [StandardError] error object if request failed
|
905
|
+
#
|
906
|
+
# @return [Google::Apis::LoggingV1beta3::LogMetric]
|
907
|
+
#
|
908
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
909
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
910
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
911
|
+
def create_project_metric(projects_id, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
912
|
+
command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/metrics', options)
|
913
|
+
command.request_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation
|
914
|
+
command.request_object = log_metric_object
|
915
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation
|
916
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogMetric
|
917
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
918
|
+
command.query['fields'] = fields unless fields.nil?
|
919
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
920
|
+
execute_or_queue_command(command, &block)
|
921
|
+
end
|
922
|
+
|
923
|
+
# Creates or updates a logs-based metric.
|
924
|
+
# @param [String] projects_id
|
925
|
+
# Part of `metricName`. The resource name of the metric to update.
|
926
|
+
# @param [String] metrics_id
|
927
|
+
# Part of `metricName`. See documentation of `projectsId`.
|
928
|
+
# @param [Google::Apis::LoggingV1beta3::LogMetric] log_metric_object
|
929
|
+
# @param [String] fields
|
930
|
+
# Selector specifying which fields to include in a partial response.
|
931
|
+
# @param [String] quota_user
|
932
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
933
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
934
|
+
# @param [Google::Apis::RequestOptions] options
|
935
|
+
# Request-specific options
|
936
|
+
#
|
937
|
+
# @yield [result, err] Result & error if block supplied
|
938
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogMetric] parsed result object
|
939
|
+
# @yieldparam err [StandardError] error object if request failed
|
940
|
+
#
|
941
|
+
# @return [Google::Apis::LoggingV1beta3::LogMetric]
|
942
|
+
#
|
943
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
944
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
945
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
946
|
+
def update_project_metric(projects_id, metrics_id, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
947
|
+
command = make_simple_command(:put, 'v1beta3/projects/{projectsId}/metrics/{metricsId}', options)
|
948
|
+
command.request_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation
|
949
|
+
command.request_object = log_metric_object
|
950
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation
|
951
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogMetric
|
952
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
953
|
+
command.params['metricsId'] = metrics_id unless metrics_id.nil?
|
954
|
+
command.query['fields'] = fields unless fields.nil?
|
955
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
956
|
+
execute_or_queue_command(command, &block)
|
957
|
+
end
|
958
|
+
|
959
|
+
# Deletes a logs-based metric.
|
960
|
+
# @param [String] projects_id
|
961
|
+
# Part of `metricName`. The resource name of the metric to delete.
|
962
|
+
# @param [String] metrics_id
|
963
|
+
# Part of `metricName`. See documentation of `projectsId`.
|
964
|
+
# @param [String] fields
|
965
|
+
# Selector specifying which fields to include in a partial response.
|
966
|
+
# @param [String] quota_user
|
967
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
968
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
969
|
+
# @param [Google::Apis::RequestOptions] options
|
970
|
+
# Request-specific options
|
971
|
+
#
|
972
|
+
# @yield [result, err] Result & error if block supplied
|
973
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::Empty] parsed result object
|
974
|
+
# @yieldparam err [StandardError] error object if request failed
|
975
|
+
#
|
976
|
+
# @return [Google::Apis::LoggingV1beta3::Empty]
|
977
|
+
#
|
978
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
979
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
980
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
981
|
+
def delete_project_metric(projects_id, metrics_id, fields: nil, quota_user: nil, options: nil, &block)
|
982
|
+
command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/metrics/{metricsId}', options)
|
983
|
+
command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation
|
984
|
+
command.response_class = Google::Apis::LoggingV1beta3::Empty
|
985
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
986
|
+
command.params['metricsId'] = metrics_id unless metrics_id.nil?
|
987
|
+
command.query['fields'] = fields unless fields.nil?
|
988
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
989
|
+
execute_or_queue_command(command, &block)
|
990
|
+
end
|
991
|
+
|
992
|
+
protected
|
993
|
+
|
994
|
+
def apply_command_defaults(command)
|
995
|
+
command.query['key'] = key unless key.nil?
|
996
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
997
|
+
end
|
998
|
+
end
|
999
|
+
end
|
1000
|
+
end
|
1001
|
+
end
|