lemboy-google-api-client 0.9.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +20 -0
- data/.rspec +2 -0
- data/.rubocop.yml +7 -0
- data/.rubocop_todo.yml +63 -0
- data/.travis.yml +27 -0
- data/.yardopts +12 -0
- data/CHANGELOG.md +309 -0
- data/CONTRIBUTING.md +31 -0
- data/Gemfile +53 -0
- data/LICENSE +202 -0
- data/MIGRATING.md +171 -0
- data/README.md +327 -0
- data/Rakefile +2 -0
- data/api_names.yaml +36215 -0
- data/bin/generate-api +109 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -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_4.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
- data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
- data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
- data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
- data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
- data/generated/google/apis/admin_directory_v1.rb +113 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
- data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
- data/generated/google/apis/admin_reports_v1.rb +38 -0
- data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
- data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
- data/generated/google/apis/admin_reports_v1/service.rb +336 -0
- data/generated/google/apis/adsense_v1_4.rb +37 -0
- data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
- data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
- data/generated/google/apis/adsensehost_v4_1.rb +35 -0
- data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
- data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
- data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
- data/generated/google/apis/analytics_v3.rb +49 -0
- data/generated/google/apis/analytics_v3/classes.rb +5536 -0
- data/generated/google/apis/analytics_v3/representations.rb +1992 -0
- data/generated/google/apis/analytics_v3/service.rb +3785 -0
- data/generated/google/apis/analyticsreporting_v4.rb +37 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
- data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
- data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
- data/generated/google/apis/androidenterprise_v1.rb +34 -0
- data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
- data/generated/google/apis/androidpublisher_v2.rb +34 -0
- data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
- data/generated/google/apis/appengine_v1beta4.rb +35 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
- data/generated/google/apis/appengine_v1beta5.rb +40 -0
- data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
- data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
- data/generated/google/apis/appsactivity_v1.rb +46 -0
- data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
- data/generated/google/apis/appsactivity_v1/service.rb +128 -0
- data/generated/google/apis/appstate_v1.rb +34 -0
- data/generated/google/apis/appstate_v1/classes.rb +154 -0
- data/generated/google/apis/appstate_v1/representations.rb +87 -0
- data/generated/google/apis/appstate_v1/service.rb +260 -0
- data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
- data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
- data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
- data/generated/google/apis/bigquery_v2.rb +52 -0
- data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
- data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
- data/generated/google/apis/bigquery_v2/service.rb +988 -0
- data/generated/google/apis/blogger_v3.rb +37 -0
- data/generated/google/apis/blogger_v3/classes.rb +1354 -0
- data/generated/google/apis/blogger_v3/representations.rb +632 -0
- data/generated/google/apis/blogger_v3/service.rb +1587 -0
- data/generated/google/apis/books_v1.rb +34 -0
- data/generated/google/apis/books_v1/classes.rb +4160 -0
- data/generated/google/apis/books_v1/representations.rb +1799 -0
- data/generated/google/apis/books_v1/service.rb +2300 -0
- data/generated/google/apis/calendar_v3.rb +37 -0
- data/generated/google/apis/calendar_v3/classes.rb +1742 -0
- data/generated/google/apis/calendar_v3/representations.rb +631 -0
- data/generated/google/apis/calendar_v3/service.rb +1968 -0
- data/generated/google/apis/civicinfo_v2.rb +32 -0
- data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
- data/generated/google/apis/civicinfo_v2/service.rb +300 -0
- data/generated/google/apis/classroom_v1.rb +70 -0
- data/generated/google/apis/classroom_v1/classes.rb +1572 -0
- data/generated/google/apis/classroom_v1/representations.rb +729 -0
- data/generated/google/apis/classroom_v1/service.rb +1945 -0
- data/generated/google/apis/classroom_v1beta1.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/cloudbilling_v1.rb +35 -0
- data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
- data/generated/google/apis/cloudbuild_v1.rb +34 -0
- data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
- data/generated/google/apis/clouddebugger_v2.rb +38 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
- data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
- data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
- data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
- data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
- data/generated/google/apis/cloudtrace_v1.rb +43 -0
- data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
- data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
- data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
- data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
- data/generated/google/apis/compute_beta.rb +49 -0
- data/generated/google/apis/compute_beta/classes.rb +12261 -0
- data/generated/google/apis/compute_beta/representations.rb +4615 -0
- data/generated/google/apis/compute_beta/service.rb +15330 -0
- data/generated/google/apis/compute_v1.rb +49 -0
- data/generated/google/apis/compute_v1/classes.rb +11179 -0
- data/generated/google/apis/compute_v1/representations.rb +4203 -0
- data/generated/google/apis/compute_v1/service.rb +12937 -0
- data/generated/google/apis/container_v1.rb +35 -0
- data/generated/google/apis/container_v1/classes.rb +1040 -0
- data/generated/google/apis/container_v1/representations.rb +415 -0
- data/generated/google/apis/container_v1/service.rb +659 -0
- data/generated/google/apis/container_v1beta1.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/content_v2.rb +35 -0
- data/generated/google/apis/content_v2/classes.rb +6887 -0
- data/generated/google/apis/content_v2/representations.rb +2963 -0
- data/generated/google/apis/content_v2/service.rb +2653 -0
- data/generated/google/apis/coordinate_v1.rb +37 -0
- data/generated/google/apis/coordinate_v1/classes.rb +669 -0
- data/generated/google/apis/coordinate_v1/representations.rb +321 -0
- data/generated/google/apis/coordinate_v1/service.rb +678 -0
- data/generated/google/apis/customsearch_v1.rb +31 -0
- data/generated/google/apis/customsearch_v1/classes.rb +771 -0
- data/generated/google/apis/customsearch_v1/representations.rb +302 -0
- data/generated/google/apis/customsearch_v1/service.rb +207 -0
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
- data/generated/google/apis/dataproc_v1.rb +34 -0
- data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
- data/generated/google/apis/dataproc_v1/representations.rb +678 -0
- data/generated/google/apis/dataproc_v1/service.rb +670 -0
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta2.rb +40 -0
- data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
- data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
- data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +43 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
- data/generated/google/apis/deploymentmanager_v2beta2.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/dfareporting_v2_1.rb +37 -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_3.rb +37 -0
- data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
- data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
- data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/discovery_v1.rb +32 -0
- data/generated/google/apis/discovery_v1/classes.rb +961 -0
- data/generated/google/apis/discovery_v1/representations.rb +397 -0
- data/generated/google/apis/discovery_v1/service.rb +142 -0
- data/generated/google/apis/dns_v1.rb +43 -0
- data/generated/google/apis/dns_v1/classes.rb +406 -0
- data/generated/google/apis/dns_v1/representations.rb +167 -0
- data/generated/google/apis/dns_v1/service.rb +453 -0
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
- data/generated/google/apis/drive_v2.rb +59 -0
- data/generated/google/apis/drive_v2/classes.rb +2633 -0
- data/generated/google/apis/drive_v2/representations.rb +885 -0
- data/generated/google/apis/drive_v2/service.rb +2754 -0
- data/generated/google/apis/drive_v3.rb +56 -0
- data/generated/google/apis/drive_v3/classes.rb +1611 -0
- data/generated/google/apis/drive_v3/representations.rb +555 -0
- data/generated/google/apis/drive_v3/service.rb +1553 -0
- data/generated/google/apis/fitness_v1.rb +85 -0
- data/generated/google/apis/fitness_v1/classes.rb +943 -0
- data/generated/google/apis/fitness_v1/representations.rb +380 -0
- data/generated/google/apis/fitness_v1/service.rb +674 -0
- data/generated/google/apis/fusiontables_v2.rb +37 -0
- data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
- data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
- data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
- data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
- data/generated/google/apis/games_management_v1management.rb +37 -0
- data/generated/google/apis/games_management_v1management/classes.rb +567 -0
- data/generated/google/apis/games_management_v1management/representations.rb +278 -0
- data/generated/google/apis/games_management_v1management/service.rb +994 -0
- data/generated/google/apis/games_v1.rb +40 -0
- data/generated/google/apis/games_v1/classes.rb +4667 -0
- data/generated/google/apis/games_v1/representations.rb +1800 -0
- data/generated/google/apis/games_v1/service.rb +2449 -0
- data/generated/google/apis/gan_v1beta1.rb +31 -0
- data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
- data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
- data/generated/google/apis/gan_v1beta1/service.rb +682 -0
- data/generated/google/apis/genomics_v1.rb +46 -0
- data/generated/google/apis/genomics_v1/classes.rb +3477 -0
- data/generated/google/apis/genomics_v1/representations.rb +1284 -0
- data/generated/google/apis/genomics_v1/service.rb +2207 -0
- data/generated/google/apis/genomics_v1beta2.rb +46 -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/gmail_v1.rb +61 -0
- data/generated/google/apis/gmail_v1/classes.rb +1382 -0
- data/generated/google/apis/gmail_v1/representations.rb +624 -0
- data/generated/google/apis/gmail_v1/service.rb +2447 -0
- data/generated/google/apis/groupsmigration_v1.rb +34 -0
- data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
- data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
- data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
- data/generated/google/apis/groupssettings_v1.rb +34 -0
- data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
- data/generated/google/apis/groupssettings_v1/service.rb +179 -0
- data/generated/google/apis/iam_v1.rb +36 -0
- data/generated/google/apis/iam_v1/classes.rb +640 -0
- data/generated/google/apis/iam_v1/representations.rb +316 -0
- data/generated/google/apis/iam_v1/service.rb +554 -0
- data/generated/google/apis/identitytoolkit_v3.rb +37 -0
- data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
- data/generated/google/apis/kgsearch_v1.rb +31 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
- data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
- data/generated/google/apis/kgsearch_v1/service.rb +113 -0
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +184 -0
- data/generated/google/apis/licensing_v1.rb +34 -0
- data/generated/google/apis/licensing_v1/classes.rb +132 -0
- data/generated/google/apis/licensing_v1/representations.rb +74 -0
- data/generated/google/apis/licensing_v1/service.rb +369 -0
- data/generated/google/apis/logging_v1beta3.rb +47 -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_v2beta1.rb +46 -0
- data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
- data/generated/google/apis/logging_v2beta1/service.rb +788 -0
- data/generated/google/apis/manager_v1beta2.rb +53 -0
- data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
- data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
- data/generated/google/apis/manager_v1beta2/service.rb +372 -0
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/mirror_v1.rb +37 -0
- data/generated/google/apis/mirror_v1/classes.rb +1072 -0
- data/generated/google/apis/mirror_v1/representations.rb +390 -0
- data/generated/google/apis/mirror_v1/service.rb +977 -0
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/mybusiness_v3.rb +32 -0
- data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
- data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
- data/generated/google/apis/mybusiness_v3/service.rb +960 -0
- data/generated/google/apis/oauth2_v2.rb +43 -0
- data/generated/google/apis/oauth2_v2/classes.rb +245 -0
- data/generated/google/apis/oauth2_v2/representations.rb +102 -0
- data/generated/google/apis/oauth2_v2/service.rb +199 -0
- data/generated/google/apis/pagespeedonline_v2.rb +32 -0
- data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
- data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
- data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
- data/generated/google/apis/partners_v2.rb +32 -0
- data/generated/google/apis/partners_v2/classes.rb +942 -0
- data/generated/google/apis/partners_v2/representations.rb +454 -0
- data/generated/google/apis/partners_v2/service.rb +400 -0
- data/generated/google/apis/people_v1.rb +59 -0
- data/generated/google/apis/people_v1/classes.rb +1521 -0
- data/generated/google/apis/people_v1/representations.rb +663 -0
- data/generated/google/apis/people_v1/service.rb +189 -0
- data/generated/google/apis/plus_domains_v1.rb +61 -0
- data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
- data/generated/google/apis/plus_domains_v1/service.rb +904 -0
- data/generated/google/apis/plus_v1.rb +43 -0
- data/generated/google/apis/plus_v1/classes.rb +2094 -0
- data/generated/google/apis/plus_v1/representations.rb +907 -0
- data/generated/google/apis/plus_v1/service.rb +470 -0
- data/generated/google/apis/prediction_v1_6.rb +47 -0
- data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
- data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
- data/generated/google/apis/prediction_v1_6/service.rb +380 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
- data/generated/google/apis/pubsub_v1.rb +37 -0
- data/generated/google/apis/pubsub_v1/classes.rb +676 -0
- data/generated/google/apis/pubsub_v1/representations.rb +323 -0
- data/generated/google/apis/pubsub_v1/service.rb +900 -0
- data/generated/google/apis/pubsub_v1beta2.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/qpx_express_v1.rb +31 -0
- data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
- data/generated/google/apis/qpx_express_v1/service.rb +100 -0
- data/generated/google/apis/replicapool_v1beta2.rb +44 -0
- data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
- data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
- data/generated/google/apis/reseller_v1.rb +37 -0
- data/generated/google/apis/reseller_v1/classes.rb +540 -0
- data/generated/google/apis/reseller_v1/representations.rb +225 -0
- data/generated/google/apis/reseller_v1/service.rb +623 -0
- data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
- data/generated/google/apis/script_v1.rb +64 -0
- data/generated/google/apis/script_v1/classes.rb +265 -0
- data/generated/google/apis/script_v1/representations.rb +119 -0
- data/generated/google/apis/script_v1/service.rb +98 -0
- data/generated/google/apis/sheets_v4.rb +43 -0
- data/generated/google/apis/sheets_v4/classes.rb +6368 -0
- data/generated/google/apis/sheets_v4/representations.rb +2289 -0
- data/generated/google/apis/sheets_v4/service.rb +569 -0
- data/generated/google/apis/site_verification_v1.rb +37 -0
- data/generated/google/apis/site_verification_v1/classes.rb +185 -0
- data/generated/google/apis/site_verification_v1/representations.rb +113 -0
- data/generated/google/apis/site_verification_v1/service.rb +315 -0
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4044 -0
- data/generated/google/apis/slides_v1/representations.rb +1765 -0
- data/generated/google/apis/slides_v1/service.rb +202 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
- data/generated/google/apis/speech_v1beta1/service.rb +273 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
- data/generated/google/apis/storage_v1.rb +46 -0
- data/generated/google/apis/storage_v1/classes.rb +1255 -0
- data/generated/google/apis/storage_v1/representations.rb +502 -0
- data/generated/google/apis/storage_v1/service.rb +1906 -0
- data/generated/google/apis/storagetransfer_v1.rb +35 -0
- data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
- data/generated/google/apis/tagmanager_v1.rb +52 -0
- data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
- data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
- data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
- data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
- data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
- data/generated/google/apis/tasks_v1.rb +37 -0
- data/generated/google/apis/tasks_v1/classes.rb +296 -0
- data/generated/google/apis/tasks_v1/representations.rb +125 -0
- data/generated/google/apis/tasks_v1/service.rb +643 -0
- data/generated/google/apis/translate_v2.rb +31 -0
- data/generated/google/apis/translate_v2/classes.rb +168 -0
- data/generated/google/apis/translate_v2/representations.rb +121 -0
- data/generated/google/apis/translate_v2/service.rb +182 -0
- data/generated/google/apis/urlshortener_v1.rb +34 -0
- data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
- data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
- data/generated/google/apis/urlshortener_v1/service.rb +176 -0
- data/generated/google/apis/vision_v1.rb +36 -0
- data/generated/google/apis/vision_v1/classes.rb +1267 -0
- data/generated/google/apis/vision_v1/representations.rb +418 -0
- data/generated/google/apis/vision_v1/service.rb +90 -0
- data/generated/google/apis/webmasters_v3.rb +37 -0
- data/generated/google/apis/webmasters_v3/classes.rb +570 -0
- data/generated/google/apis/webmasters_v3/representations.rb +283 -0
- data/generated/google/apis/webmasters_v3/service.rb +573 -0
- data/generated/google/apis/youtube_analytics_v1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
- data/generated/google/apis/youtube_partner_v1.rb +37 -0
- data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
- data/generated/google/apis/youtube_v3.rb +50 -0
- data/generated/google/apis/youtube_v3/classes.rb +8375 -0
- data/generated/google/apis/youtube_v3/representations.rb +3273 -0
- data/generated/google/apis/youtube_v3/service.rb +4440 -0
- data/generated/google/apis/youtubereporting_v1.rb +38 -0
- data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
- data/google-api-client.gemspec +33 -0
- data/lib/cacerts.pem +2183 -0
- data/lib/google/api_client/auth/installed_app.rb +128 -0
- data/lib/google/api_client/auth/key_utils.rb +94 -0
- data/lib/google/api_client/auth/storage.rb +104 -0
- data/lib/google/api_client/auth/storages/file_store.rb +57 -0
- data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
- data/lib/google/api_client/client_secrets.rb +177 -0
- data/lib/google/apis.rb +58 -0
- data/lib/google/apis/core/api_command.rb +146 -0
- data/lib/google/apis/core/base_service.rb +401 -0
- data/lib/google/apis/core/batch.rb +239 -0
- data/lib/google/apis/core/download.rb +108 -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 +332 -0
- data/lib/google/apis/core/json_representation.rb +145 -0
- data/lib/google/apis/core/logging.rb +30 -0
- data/lib/google/apis/core/multipart.rb +187 -0
- data/lib/google/apis/core/upload.rb +295 -0
- data/lib/google/apis/errors.rb +80 -0
- data/lib/google/apis/generator.rb +70 -0
- data/lib/google/apis/generator/annotator.rb +301 -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 +17 -0
- data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
- data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
- 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/options.rb +85 -0
- data/lib/google/apis/version.rb +39 -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/cli/.env +4 -0
- data/samples/cli/Gemfile +7 -0
- data/samples/cli/README.md +51 -0
- data/samples/cli/google-api-samples +32 -0
- data/samples/cli/lib/base_cli.rb +95 -0
- data/samples/cli/lib/samples/analytics.rb +62 -0
- data/samples/cli/lib/samples/androidpublisher.rb +47 -0
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +83 -0
- data/samples/cli/lib/samples/drive.rb +82 -0
- data/samples/cli/lib/samples/gmail.rb +124 -0
- data/samples/cli/lib/samples/pubsub.rb +114 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/translate.rb +44 -0
- data/samples/cli/lib/samples/you_tube.rb +44 -0
- data/samples/web/.env +2 -0
- data/samples/web/Gemfile +7 -0
- data/samples/web/README.md +44 -0
- data/samples/web/app.rb +120 -0
- data/samples/web/views/calendar.erb +34 -0
- data/samples/web/views/drive.erb +33 -0
- data/samples/web/views/home.erb +34 -0
- data/samples/web/views/layout.erb +40 -0
- data/sync.rb +71 -0
- data/third_party/hurley_patches.rb +103 -0
- metadata +735 -0
@@ -0,0 +1,366 @@
|
|
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 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module LoggingV1beta3
|
24
|
+
|
25
|
+
class ListLogsResponse
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
end
|
28
|
+
|
29
|
+
class Log
|
30
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
31
|
+
end
|
32
|
+
|
33
|
+
class Empty
|
34
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
35
|
+
end
|
36
|
+
|
37
|
+
class WriteLogEntriesRequest
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
end
|
40
|
+
|
41
|
+
class LogEntry
|
42
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
43
|
+
end
|
44
|
+
|
45
|
+
class LogEntryMetadata
|
46
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
47
|
+
end
|
48
|
+
|
49
|
+
class HttpRequest
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
end
|
52
|
+
|
53
|
+
class WriteLogEntriesResponse
|
54
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
55
|
+
end
|
56
|
+
|
57
|
+
class ListLogServicesResponse
|
58
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
59
|
+
end
|
60
|
+
|
61
|
+
class LogService
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
end
|
64
|
+
|
65
|
+
class ListLogServiceIndexesResponse
|
66
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
67
|
+
end
|
68
|
+
|
69
|
+
class ListLogSinksResponse
|
70
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
71
|
+
end
|
72
|
+
|
73
|
+
class LogSink
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
end
|
76
|
+
|
77
|
+
class LogError
|
78
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
79
|
+
end
|
80
|
+
|
81
|
+
class Status
|
82
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
83
|
+
end
|
84
|
+
|
85
|
+
class ListLogServiceSinksResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
end
|
88
|
+
|
89
|
+
class ListSinksResponse
|
90
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
91
|
+
end
|
92
|
+
|
93
|
+
class ListLogMetricsResponse
|
94
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
95
|
+
end
|
96
|
+
|
97
|
+
class LogMetric
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
end
|
100
|
+
|
101
|
+
class RequestLog
|
102
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
103
|
+
end
|
104
|
+
|
105
|
+
class LogLine
|
106
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
107
|
+
end
|
108
|
+
|
109
|
+
class SourceLocation
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
end
|
112
|
+
|
113
|
+
class SourceReference
|
114
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
115
|
+
end
|
116
|
+
|
117
|
+
class ListLogsResponse
|
118
|
+
# @private
|
119
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
120
|
+
collection :logs, as: 'logs', class: Google::Apis::LoggingV1beta3::Log, decorator: Google::Apis::LoggingV1beta3::Log::Representation
|
121
|
+
|
122
|
+
property :next_page_token, as: 'nextPageToken'
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
class Log
|
127
|
+
# @private
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
129
|
+
property :name, as: 'name'
|
130
|
+
property :display_name, as: 'displayName'
|
131
|
+
property :payload_type, as: 'payloadType'
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
class Empty
|
136
|
+
# @private
|
137
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
class WriteLogEntriesRequest
|
142
|
+
# @private
|
143
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
144
|
+
hash :common_labels, as: 'commonLabels'
|
145
|
+
collection :entries, as: 'entries', class: Google::Apis::LoggingV1beta3::LogEntry, decorator: Google::Apis::LoggingV1beta3::LogEntry::Representation
|
146
|
+
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
class LogEntry
|
151
|
+
# @private
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
153
|
+
property :metadata, as: 'metadata', class: Google::Apis::LoggingV1beta3::LogEntryMetadata, decorator: Google::Apis::LoggingV1beta3::LogEntryMetadata::Representation
|
154
|
+
|
155
|
+
hash :proto_payload, as: 'protoPayload'
|
156
|
+
property :text_payload, as: 'textPayload'
|
157
|
+
hash :struct_payload, as: 'structPayload'
|
158
|
+
property :insert_id, as: 'insertId'
|
159
|
+
property :log, as: 'log'
|
160
|
+
property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV1beta3::HttpRequest, decorator: Google::Apis::LoggingV1beta3::HttpRequest::Representation
|
161
|
+
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
class LogEntryMetadata
|
166
|
+
# @private
|
167
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
168
|
+
property :timestamp, as: 'timestamp'
|
169
|
+
property :severity, as: 'severity'
|
170
|
+
property :project_id, as: 'projectId'
|
171
|
+
property :service_name, as: 'serviceName'
|
172
|
+
property :region, as: 'region'
|
173
|
+
property :zone, as: 'zone'
|
174
|
+
property :user_id, as: 'userId'
|
175
|
+
hash :labels, as: 'labels'
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
class HttpRequest
|
180
|
+
# @private
|
181
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
182
|
+
property :request_method, as: 'requestMethod'
|
183
|
+
property :request_url, as: 'requestUrl'
|
184
|
+
property :request_size, as: 'requestSize'
|
185
|
+
property :status, as: 'status'
|
186
|
+
property :response_size, as: 'responseSize'
|
187
|
+
property :user_agent, as: 'userAgent'
|
188
|
+
property :remote_ip, as: 'remoteIp'
|
189
|
+
property :referer, as: 'referer'
|
190
|
+
property :cache_hit, as: 'cacheHit'
|
191
|
+
property :validated_with_origin_server, as: 'validatedWithOriginServer'
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
class WriteLogEntriesResponse
|
196
|
+
# @private
|
197
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
class ListLogServicesResponse
|
202
|
+
# @private
|
203
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
204
|
+
collection :log_services, as: 'logServices', class: Google::Apis::LoggingV1beta3::LogService, decorator: Google::Apis::LoggingV1beta3::LogService::Representation
|
205
|
+
|
206
|
+
property :next_page_token, as: 'nextPageToken'
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
class LogService
|
211
|
+
# @private
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
213
|
+
property :name, as: 'name'
|
214
|
+
collection :index_keys, as: 'indexKeys'
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
class ListLogServiceIndexesResponse
|
219
|
+
# @private
|
220
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
221
|
+
collection :service_index_prefixes, as: 'serviceIndexPrefixes'
|
222
|
+
property :next_page_token, as: 'nextPageToken'
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
class ListLogSinksResponse
|
227
|
+
# @private
|
228
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
229
|
+
collection :sinks, as: 'sinks', class: Google::Apis::LoggingV1beta3::LogSink, decorator: Google::Apis::LoggingV1beta3::LogSink::Representation
|
230
|
+
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
class LogSink
|
235
|
+
# @private
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
237
|
+
property :name, as: 'name'
|
238
|
+
property :destination, as: 'destination'
|
239
|
+
property :filter, as: 'filter'
|
240
|
+
collection :errors, as: 'errors', class: Google::Apis::LoggingV1beta3::LogError, decorator: Google::Apis::LoggingV1beta3::LogError::Representation
|
241
|
+
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
class LogError
|
246
|
+
# @private
|
247
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
248
|
+
property :resource, as: 'resource'
|
249
|
+
property :status, as: 'status', class: Google::Apis::LoggingV1beta3::Status, decorator: Google::Apis::LoggingV1beta3::Status::Representation
|
250
|
+
|
251
|
+
property :time_nanos, as: 'timeNanos'
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
class Status
|
256
|
+
# @private
|
257
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
258
|
+
property :code, as: 'code'
|
259
|
+
property :message, as: 'message'
|
260
|
+
collection :details, as: 'details'
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
class ListLogServiceSinksResponse
|
265
|
+
# @private
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
267
|
+
collection :sinks, as: 'sinks', class: Google::Apis::LoggingV1beta3::LogSink, decorator: Google::Apis::LoggingV1beta3::LogSink::Representation
|
268
|
+
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
class ListSinksResponse
|
273
|
+
# @private
|
274
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
275
|
+
collection :sinks, as: 'sinks', class: Google::Apis::LoggingV1beta3::LogSink, decorator: Google::Apis::LoggingV1beta3::LogSink::Representation
|
276
|
+
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
class ListLogMetricsResponse
|
281
|
+
# @private
|
282
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
283
|
+
collection :metrics, as: 'metrics', class: Google::Apis::LoggingV1beta3::LogMetric, decorator: Google::Apis::LoggingV1beta3::LogMetric::Representation
|
284
|
+
|
285
|
+
property :next_page_token, as: 'nextPageToken'
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
class LogMetric
|
290
|
+
# @private
|
291
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
292
|
+
property :name, as: 'name'
|
293
|
+
property :description, as: 'description'
|
294
|
+
property :filter, as: 'filter'
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
298
|
+
class RequestLog
|
299
|
+
# @private
|
300
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
301
|
+
property :app_id, as: 'appId'
|
302
|
+
property :module_id, as: 'moduleId'
|
303
|
+
property :version_id, as: 'versionId'
|
304
|
+
property :request_id, as: 'requestId'
|
305
|
+
property :ip, as: 'ip'
|
306
|
+
property :start_time, as: 'startTime'
|
307
|
+
property :end_time, as: 'endTime'
|
308
|
+
property :latency, as: 'latency'
|
309
|
+
property :mega_cycles, as: 'megaCycles'
|
310
|
+
property :method_prop, as: 'method'
|
311
|
+
property :resource, as: 'resource'
|
312
|
+
property :http_version, as: 'httpVersion'
|
313
|
+
property :status, as: 'status'
|
314
|
+
property :response_size, as: 'responseSize'
|
315
|
+
property :referrer, as: 'referrer'
|
316
|
+
property :user_agent, as: 'userAgent'
|
317
|
+
property :nickname, as: 'nickname'
|
318
|
+
property :url_map_entry, as: 'urlMapEntry'
|
319
|
+
property :host, as: 'host'
|
320
|
+
property :cost, as: 'cost'
|
321
|
+
property :task_queue_name, as: 'taskQueueName'
|
322
|
+
property :task_name, as: 'taskName'
|
323
|
+
property :was_loading_request, as: 'wasLoadingRequest'
|
324
|
+
property :pending_time, as: 'pendingTime'
|
325
|
+
property :instance_index, as: 'instanceIndex'
|
326
|
+
property :finished, as: 'finished'
|
327
|
+
property :instance_id, as: 'instanceId'
|
328
|
+
collection :line, as: 'line', class: Google::Apis::LoggingV1beta3::LogLine, decorator: Google::Apis::LoggingV1beta3::LogLine::Representation
|
329
|
+
|
330
|
+
property :app_engine_release, as: 'appEngineRelease'
|
331
|
+
property :trace_id, as: 'traceId'
|
332
|
+
collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV1beta3::SourceReference, decorator: Google::Apis::LoggingV1beta3::SourceReference::Representation
|
333
|
+
|
334
|
+
end
|
335
|
+
end
|
336
|
+
|
337
|
+
class LogLine
|
338
|
+
# @private
|
339
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
340
|
+
property :time, as: 'time'
|
341
|
+
property :severity, as: 'severity'
|
342
|
+
property :log_message, as: 'logMessage'
|
343
|
+
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV1beta3::SourceLocation, decorator: Google::Apis::LoggingV1beta3::SourceLocation::Representation
|
344
|
+
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
348
|
+
class SourceLocation
|
349
|
+
# @private
|
350
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
351
|
+
property :file, as: 'file'
|
352
|
+
property :line, as: 'line'
|
353
|
+
property :function_name, as: 'functionName'
|
354
|
+
end
|
355
|
+
end
|
356
|
+
|
357
|
+
class SourceReference
|
358
|
+
# @private
|
359
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
360
|
+
property :repository, as: 'repository'
|
361
|
+
property :revision_id, as: 'revisionId'
|
362
|
+
end
|
363
|
+
end
|
364
|
+
end
|
365
|
+
end
|
366
|
+
end
|
@@ -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
|