google-api-client 0.13.2 → 0.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +149 -0
- data/bin/generate-api +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
- data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
- data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
- data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
- data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
- data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
- data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
- data/generated/google/apis/adexperiencereport_v1.rb +35 -0
- data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
- data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
- data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
- data/generated/google/apis/admin_directory_v1/service.rb +39 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v2_4.rb +37 -0
- data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
- data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
- data/generated/google/apis/analytics_v2_4/service.rb +345 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +15 -2
- data/generated/google/apis/analytics_v3/representations.rb +3 -0
- data/generated/google/apis/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
- data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
- data/generated/google/apis/androidmanagement_v1.rb +35 -0
- data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
- data/generated/google/apis/androidpublisher_v1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
- data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
- data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
- data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
- data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
- data/generated/google/apis/appengine_v1/representations.rb +351 -335
- data/generated/google/apis/appengine_v1/service.rb +255 -239
- data/generated/google/apis/appengine_v1alpha.rb +41 -0
- data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
- data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
- data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
- data/generated/google/apis/appengine_v1beta.rb +41 -0
- data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
- data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
- data/generated/google/apis/appengine_v1beta4.rb +41 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
- data/generated/google/apis/appengine_v1beta5.rb +41 -0
- data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
- data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +106 -18
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
- data/generated/google/apis/blogger_v2.rb +34 -0
- data/generated/google/apis/blogger_v2/classes.rb +947 -0
- data/generated/google/apis/blogger_v2/representations.rb +465 -0
- data/generated/google/apis/blogger_v2/service.rb +424 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +4 -207
- data/generated/google/apis/calendar_v3/representations.rb +0 -97
- data/generated/google/apis/calendar_v3/service.rb +8 -4
- data/generated/google/apis/classroom_v1.rb +27 -27
- data/generated/google/apis/classroom_v1/classes.rb +1037 -926
- data/generated/google/apis/classroom_v1/representations.rb +294 -244
- data/generated/google/apis/classroom_v1/service.rb +1114 -1109
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
- data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
- data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
- data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
- data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
- data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
- data/generated/google/apis/cloudfunctions_v1.rb +4 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
- data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
- data/generated/google/apis/cloudkms_v1/service.rb +320 -320
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
- data/generated/google/apis/cloudtrace_v1.rb +5 -5
- data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
- data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
- data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
- data/generated/google/apis/cloudtrace_v2.rb +43 -0
- data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
- data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
- data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
- data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
- data/generated/google/apis/compute_alpha.rb +49 -0
- data/generated/google/apis/compute_alpha/classes.rb +23796 -0
- data/generated/google/apis/compute_alpha/representations.rb +9391 -0
- data/generated/google/apis/compute_alpha/service.rb +24188 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1597 -235
- data/generated/google/apis/compute_beta/representations.rb +477 -0
- data/generated/google/apis/compute_beta/service.rb +2875 -1677
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +319 -197
- data/generated/google/apis/compute_v1/representations.rb +51 -0
- data/generated/google/apis/compute_v1/service.rb +2057 -172
- data/generated/google/apis/consumersurveys_v2.rb +40 -0
- data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
- data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
- data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1072 -936
- data/generated/google/apis/container_v1/representations.rb +266 -202
- data/generated/google/apis/container_v1/service.rb +243 -243
- data/generated/google/apis/container_v1beta1.rb +35 -0
- data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
- data/generated/google/apis/container_v1beta1/representations.rb +662 -0
- data/generated/google/apis/container_v1beta1/service.rb +1875 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +72 -3
- data/generated/google/apis/content_v2/representations.rb +23 -0
- data/generated/google/apis/content_v2/service.rb +23 -18
- data/generated/google/apis/content_v2sandbox.rb +35 -0
- data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
- data/generated/google/apis/content_v2sandbox/service.rb +709 -0
- data/generated/google/apis/dataflow_v1b3.rb +5 -5
- data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
- data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
- data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
- data/generated/google/apis/dataproc_v1/representations.rb +227 -227
- data/generated/google/apis/dataproc_v1/service.rb +254 -254
- data/generated/google/apis/dataproc_v1beta2.rb +34 -0
- data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +1311 -773
- data/generated/google/apis/datastore_v1/representations.rb +351 -148
- data/generated/google/apis/datastore_v1/service.rb +206 -55
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
- data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
- data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8.rb +1 -1
- data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
- data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
- data/generated/google/apis/dlp_v2beta1.rb +36 -0
- data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
- data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
- data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
- data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
- data/generated/google/apis/firebaserules_v1/service.rb +113 -113
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/fusiontables_v1.rb +37 -0
- data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
- data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
- data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +8 -8
- data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
- data/generated/google/apis/genomics_v1/representations.rb +482 -482
- data/generated/google/apis/genomics_v1/service.rb +966 -966
- data/generated/google/apis/genomics_v1alpha2.rb +40 -0
- data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
- data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +664 -395
- data/generated/google/apis/iam_v1/representations.rb +194 -81
- data/generated/google/apis/iam_v1/service.rb +657 -92
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +8 -8
- data/generated/google/apis/language_v1.rb +4 -1
- data/generated/google/apis/language_v1/classes.rb +393 -393
- data/generated/google/apis/language_v1/representations.rb +95 -95
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +4 -1
- data/generated/google/apis/language_v1beta1/classes.rb +457 -457
- data/generated/google/apis/language_v1beta1/representations.rb +114 -114
- data/generated/google/apis/language_v1beta1/service.rb +48 -48
- data/generated/google/apis/language_v1beta2.rb +39 -0
- data/generated/google/apis/language_v1beta2/classes.rb +824 -0
- data/generated/google/apis/language_v1beta2/representations.rb +373 -0
- data/generated/google/apis/language_v1beta2/service.rb +217 -0
- data/generated/google/apis/logging_v2.rb +9 -9
- data/generated/google/apis/logging_v2/classes.rb +840 -834
- data/generated/google/apis/logging_v2/representations.rb +168 -167
- data/generated/google/apis/logging_v2/service.rb +667 -463
- data/generated/google/apis/logging_v2beta1.rb +9 -9
- data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
- data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
- data/generated/google/apis/logging_v2beta1/service.rb +253 -255
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
- data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
- data/generated/google/apis/manufacturers_v1/service.rb +8 -7
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1487 -1676
- data/generated/google/apis/ml_v1/representations.rb +229 -299
- data/generated/google/apis/ml_v1/service.rb +359 -253
- data/generated/google/apis/ml_v1beta1.rb +34 -0
- data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
- data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
- data/generated/google/apis/ml_v1beta1/service.rb +975 -0
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +834 -834
- data/generated/google/apis/monitoring_v3/representations.rb +168 -168
- data/generated/google/apis/monitoring_v3/service.rb +330 -330
- data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
- data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
- data/generated/google/apis/mybusiness_v3/service.rb +241 -241
- data/generated/google/apis/oauth2_v1.rb +43 -0
- data/generated/google/apis/oauth2_v1/classes.rb +321 -0
- data/generated/google/apis/oauth2_v1/representations.rb +135 -0
- data/generated/google/apis/oauth2_v1/service.rb +337 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +37 -0
- data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
- data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
- data/generated/google/apis/pagespeedonline_v1.rb +32 -0
- data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
- data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
- data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1512 -1512
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +596 -596
- data/generated/google/apis/people_v1.rb +15 -15
- data/generated/google/apis/people_v1/classes.rb +1384 -1383
- data/generated/google/apis/people_v1/representations.rb +311 -311
- data/generated/google/apis/people_v1/service.rb +208 -202
- data/generated/google/apis/playcustomapp_v1.rb +34 -0
- data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
- data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
- data/generated/google/apis/playmoviespartner_v1.rb +34 -0
- data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
- data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
- data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/prediction_v1_2.rb +44 -0
- data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
- data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
- data/generated/google/apis/prediction_v1_2/service.rb +287 -0
- data/generated/google/apis/prediction_v1_3.rb +44 -0
- data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
- data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
- data/generated/google/apis/prediction_v1_3/service.rb +284 -0
- data/generated/google/apis/prediction_v1_4.rb +44 -0
- data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
- data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
- data/generated/google/apis/prediction_v1_4/service.rb +284 -0
- data/generated/google/apis/prediction_v1_5.rb +44 -0
- data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
- data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
- data/generated/google/apis/prediction_v1_5/service.rb +357 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +352 -352
- data/generated/google/apis/pubsub_v1/representations.rb +77 -77
- data/generated/google/apis/pubsub_v1/service.rb +346 -346
- data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
- data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
- data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
- data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
- data/generated/google/apis/pubsub_v1beta2.rb +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
- data/generated/google/apis/replicapool_v1beta1.rb +50 -0
- data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
- data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
- data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
- data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
- data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
- data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
- data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
- data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
- data/generated/google/apis/safebrowsing_v4.rb +32 -0
- data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
- data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
- data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +99 -157
- data/generated/google/apis/script_v1/representations.rb +17 -47
- data/generated/google/apis/script_v1/service.rb +12 -12
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
- data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
- data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
- data/generated/google/apis/servicemanagement_v1.rb +7 -7
- data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
- data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
- data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
- data/generated/google/apis/serviceuser_v1.rb +5 -5
- data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
- data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
- data/generated/google/apis/serviceuser_v1/service.rb +43 -43
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
- data/generated/google/apis/sheets_v4/representations.rb +931 -930
- data/generated/google/apis/sheets_v4/service.rb +244 -244
- data/generated/google/apis/slides_v1.rb +10 -10
- data/generated/google/apis/slides_v1/classes.rb +2915 -2915
- data/generated/google/apis/slides_v1/representations.rb +698 -698
- data/generated/google/apis/slides_v1/service.rb +35 -35
- data/generated/google/apis/sourcerepo_v1.rb +3 -3
- data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
- data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
- data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
- data/generated/google/apis/spanner_v1.rb +4 -4
- data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
- data/generated/google/apis/spanner_v1/representations.rb +338 -323
- data/generated/google/apis/spanner_v1/service.rb +689 -689
- data/generated/google/apis/spectrum_v1explorer.rb +31 -0
- data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
- data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
- data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
- data/generated/google/apis/speech_v1.rb +34 -0
- data/generated/google/apis/speech_v1/classes.rb +572 -0
- data/generated/google/apis/speech_v1/representations.rb +236 -0
- data/generated/google/apis/speech_v1/service.rb +277 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
- data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
- data/generated/google/apis/speech_v1beta1/service.rb +46 -46
- data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
- data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
- data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
- data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -6
- data/generated/google/apis/storage_v1/service.rb +51 -29
- data/generated/google/apis/storage_v1beta1.rb +40 -0
- data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
- data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
- data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
- data/generated/google/apis/storage_v1beta2.rb +40 -0
- data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
- data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
- data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
- data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
- data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
- data/generated/google/apis/streetviewpublish_v1.rb +36 -0
- data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
- data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
- data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
- data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
- data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
- data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
- data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
- data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
- data/generated/google/apis/translate_v2/classes.rb +111 -111
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +94 -94
- data/generated/google/apis/vault_v1.rb +31 -0
- data/generated/google/apis/vault_v1/classes.rb +554 -0
- data/generated/google/apis/vault_v1/representations.rb +318 -0
- data/generated/google/apis/vault_v1/service.rb +677 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
- data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
- data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
- data/generated/google/apis/vision_v1.rb +4 -4
- data/generated/google/apis/vision_v1/classes.rb +1176 -1178
- data/generated/google/apis/vision_v1/representations.rb +235 -235
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
- data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
- data/lib/google/apis/version.rb +1 -1
- metadata +246 -2
|
@@ -47,14 +47,18 @@ module Google
|
|
|
47
47
|
@batch_path = 'batch'
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
#
|
|
53
|
-
#
|
|
54
|
-
#
|
|
55
|
-
# "
|
|
56
|
-
# "
|
|
57
|
-
#
|
|
50
|
+
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
51
|
+
# entries. Log entries written shortly before the delete operation might not be
|
|
52
|
+
# deleted.
|
|
53
|
+
# @param [String] log_name
|
|
54
|
+
# Required. The resource name of the log to delete:
|
|
55
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
56
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
57
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
|
58
|
+
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
|
59
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
60
|
+
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
61
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
|
58
62
|
# @param [String] fields
|
|
59
63
|
# Selector specifying which fields to include in a partial response.
|
|
60
64
|
# @param [String] quota_user
|
|
@@ -64,40 +68,41 @@ module Google
|
|
|
64
68
|
# Request-specific options
|
|
65
69
|
#
|
|
66
70
|
# @yield [result, err] Result & error if block supplied
|
|
67
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
71
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
68
72
|
# @yieldparam err [StandardError] error object if request failed
|
|
69
73
|
#
|
|
70
|
-
# @return [Google::Apis::LoggingV2::
|
|
74
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
71
75
|
#
|
|
72
76
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
73
77
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
74
78
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
75
|
-
def
|
|
76
|
-
command = make_simple_command(:
|
|
77
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
78
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
79
|
-
command.params['
|
|
79
|
+
def delete_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
80
|
+
command = make_simple_command(:delete, 'v2/{+logName}', options)
|
|
81
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
82
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
83
|
+
command.params['logName'] = log_name unless log_name.nil?
|
|
80
84
|
command.query['fields'] = fields unless fields.nil?
|
|
81
85
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
82
86
|
execute_or_queue_command(command, &block)
|
|
83
87
|
end
|
|
84
88
|
|
|
85
|
-
# Lists
|
|
89
|
+
# Lists the logs in projects, organizations, folders, or billing accounts. Only
|
|
90
|
+
# logs that have entries are listed.
|
|
86
91
|
# @param [String] parent
|
|
87
|
-
# Required. The
|
|
92
|
+
# Required. The resource name that owns the logs:
|
|
88
93
|
# "projects/[PROJECT_ID]"
|
|
89
94
|
# "organizations/[ORGANIZATION_ID]"
|
|
90
95
|
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
91
96
|
# "folders/[FOLDER_ID]"
|
|
97
|
+
# @param [Fixnum] page_size
|
|
98
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
99
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
100
|
+
# indicates that more results might be available.
|
|
92
101
|
# @param [String] page_token
|
|
93
102
|
# Optional. If present, then retrieve the next batch of results from the
|
|
94
103
|
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
95
104
|
# from the previous response. The values of other method parameters should be
|
|
96
105
|
# identical to those in the previous call.
|
|
97
|
-
# @param [Fixnum] page_size
|
|
98
|
-
# Optional. The maximum number of results to return from this request. Non-
|
|
99
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
|
100
|
-
# indicates that more results might be available.
|
|
101
106
|
# @param [String] fields
|
|
102
107
|
# Selector specifying which fields to include in a partial response.
|
|
103
108
|
# @param [String] quota_user
|
|
@@ -107,76 +112,21 @@ module Google
|
|
|
107
112
|
# Request-specific options
|
|
108
113
|
#
|
|
109
114
|
# @yield [result, err] Result & error if block supplied
|
|
110
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
115
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
|
|
111
116
|
# @yieldparam err [StandardError] error object if request failed
|
|
112
117
|
#
|
|
113
|
-
# @return [Google::Apis::LoggingV2::
|
|
118
|
+
# @return [Google::Apis::LoggingV2::ListLogsResponse]
|
|
114
119
|
#
|
|
115
120
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
116
121
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
117
122
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
118
|
-
def
|
|
119
|
-
command = make_simple_command(:get, 'v2/{+parent}/
|
|
120
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
121
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
123
|
+
def list_billing_account_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
124
|
+
command = make_simple_command(:get, 'v2/{+parent}/logs', options)
|
|
125
|
+
command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
|
|
126
|
+
command.response_class = Google::Apis::LoggingV2::ListLogsResponse
|
|
122
127
|
command.params['parent'] = parent unless parent.nil?
|
|
123
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
124
128
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
125
|
-
command.query['
|
|
126
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
127
|
-
execute_or_queue_command(command, &block)
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
# Updates a sink. If the named sink doesn't exist, then this method is identical
|
|
131
|
-
# to sinks.create. If the named sink does exist, then this method replaces the
|
|
132
|
-
# following fields in the existing sink with values from the new sink:
|
|
133
|
-
# destination, filter, output_version_format, start_time, and end_time. The
|
|
134
|
-
# updated filter might also have a new writer_identity; see the
|
|
135
|
-
# unique_writer_identity field.
|
|
136
|
-
# @param [String] sink_name
|
|
137
|
-
# Required. The full resource name of the sink to update, including the parent
|
|
138
|
-
# resource and the sink identifier:
|
|
139
|
-
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
140
|
-
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
141
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
142
|
-
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
143
|
-
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
144
|
-
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
|
145
|
-
# @param [Boolean] unique_writer_identity
|
|
146
|
-
# Optional. See sinks.create for a description of this field. When updating a
|
|
147
|
-
# sink, the effect of this field on the value of writer_identity in the updated
|
|
148
|
-
# sink depends on both the old and new values of this field:
|
|
149
|
-
# If the old and new values of this field are both false or both true, then
|
|
150
|
-
# there is no change to the sink's writer_identity.
|
|
151
|
-
# If the old value is false and the new value is true, then writer_identity is
|
|
152
|
-
# changed to a unique service account.
|
|
153
|
-
# It is an error if the old value is true and the new value is set to false or
|
|
154
|
-
# defaulted to false.
|
|
155
|
-
# @param [String] fields
|
|
156
|
-
# Selector specifying which fields to include in a partial response.
|
|
157
|
-
# @param [String] quota_user
|
|
158
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
159
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
160
|
-
# @param [Google::Apis::RequestOptions] options
|
|
161
|
-
# Request-specific options
|
|
162
|
-
#
|
|
163
|
-
# @yield [result, err] Result & error if block supplied
|
|
164
|
-
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
|
165
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
166
|
-
#
|
|
167
|
-
# @return [Google::Apis::LoggingV2::LogSink]
|
|
168
|
-
#
|
|
169
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
170
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
171
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
172
|
-
def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
173
|
-
command = make_simple_command(:put, 'v2/{+sinkName}', options)
|
|
174
|
-
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
175
|
-
command.request_object = log_sink_object
|
|
176
|
-
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
177
|
-
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
178
|
-
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
179
|
-
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
|
129
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
180
130
|
command.query['fields'] = fields unless fields.nil?
|
|
181
131
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
182
132
|
execute_or_queue_command(command, &block)
|
|
@@ -222,7 +172,7 @@ module Google
|
|
|
222
172
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
223
173
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
224
174
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
225
|
-
def
|
|
175
|
+
def create_billing_account_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
226
176
|
command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
|
|
227
177
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
228
178
|
command.request_object = log_sink_object
|
|
@@ -262,7 +212,7 @@ module Google
|
|
|
262
212
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
263
213
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
264
214
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
265
|
-
def
|
|
215
|
+
def delete_billing_account_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
266
216
|
command = make_simple_command(:delete, 'v2/{+sinkName}', options)
|
|
267
217
|
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
268
218
|
command.response_class = Google::Apis::LoggingV2::Empty
|
|
@@ -272,18 +222,14 @@ module Google
|
|
|
272
222
|
execute_or_queue_command(command, &block)
|
|
273
223
|
end
|
|
274
224
|
|
|
275
|
-
#
|
|
276
|
-
#
|
|
277
|
-
#
|
|
278
|
-
#
|
|
279
|
-
#
|
|
280
|
-
# "
|
|
281
|
-
# "
|
|
282
|
-
# "
|
|
283
|
-
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
|
284
|
-
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
285
|
-
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
286
|
-
# 2Factivity". For more information about log names, see LogEntry.
|
|
225
|
+
# Gets a sink.
|
|
226
|
+
# @param [String] sink_name
|
|
227
|
+
# Required. The resource name of the sink:
|
|
228
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
229
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
230
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
231
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
232
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
287
233
|
# @param [String] fields
|
|
288
234
|
# Selector specifying which fields to include in a partial response.
|
|
289
235
|
# @param [String] quota_user
|
|
@@ -293,41 +239,40 @@ module Google
|
|
|
293
239
|
# Request-specific options
|
|
294
240
|
#
|
|
295
241
|
# @yield [result, err] Result & error if block supplied
|
|
296
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
242
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
|
297
243
|
# @yieldparam err [StandardError] error object if request failed
|
|
298
244
|
#
|
|
299
|
-
# @return [Google::Apis::LoggingV2::
|
|
245
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
|
300
246
|
#
|
|
301
247
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
302
248
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
303
249
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
304
|
-
def
|
|
305
|
-
command = make_simple_command(:
|
|
306
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
307
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
308
|
-
command.params['
|
|
250
|
+
def get_billing_account_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
251
|
+
command = make_simple_command(:get, 'v2/{+sinkName}', options)
|
|
252
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
253
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
254
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
309
255
|
command.query['fields'] = fields unless fields.nil?
|
|
310
256
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
311
257
|
execute_or_queue_command(command, &block)
|
|
312
258
|
end
|
|
313
259
|
|
|
314
|
-
# Lists
|
|
315
|
-
# logs that have entries are listed.
|
|
260
|
+
# Lists sinks.
|
|
316
261
|
# @param [String] parent
|
|
317
|
-
# Required. The resource
|
|
262
|
+
# Required. The parent resource whose sinks are to be listed:
|
|
318
263
|
# "projects/[PROJECT_ID]"
|
|
319
264
|
# "organizations/[ORGANIZATION_ID]"
|
|
320
265
|
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
321
266
|
# "folders/[FOLDER_ID]"
|
|
267
|
+
# @param [Fixnum] page_size
|
|
268
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
269
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
270
|
+
# indicates that more results might be available.
|
|
322
271
|
# @param [String] page_token
|
|
323
272
|
# Optional. If present, then retrieve the next batch of results from the
|
|
324
273
|
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
325
274
|
# from the previous response. The values of other method parameters should be
|
|
326
275
|
# identical to those in the previous call.
|
|
327
|
-
# @param [Fixnum] page_size
|
|
328
|
-
# Optional. The maximum number of results to return from this request. Non-
|
|
329
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
|
330
|
-
# indicates that more results might be available.
|
|
331
276
|
# @param [String] fields
|
|
332
277
|
# Selector specifying which fields to include in a partial response.
|
|
333
278
|
# @param [String] quota_user
|
|
@@ -337,30 +282,49 @@ module Google
|
|
|
337
282
|
# Request-specific options
|
|
338
283
|
#
|
|
339
284
|
# @yield [result, err] Result & error if block supplied
|
|
340
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
285
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListSinksResponse] parsed result object
|
|
341
286
|
# @yieldparam err [StandardError] error object if request failed
|
|
342
287
|
#
|
|
343
|
-
# @return [Google::Apis::LoggingV2::
|
|
288
|
+
# @return [Google::Apis::LoggingV2::ListSinksResponse]
|
|
344
289
|
#
|
|
345
290
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
346
291
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
347
292
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
348
|
-
def
|
|
349
|
-
command = make_simple_command(:get, 'v2/{+parent}/
|
|
350
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
351
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
293
|
+
def list_billing_account_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
294
|
+
command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
|
|
295
|
+
command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
|
|
296
|
+
command.response_class = Google::Apis::LoggingV2::ListSinksResponse
|
|
352
297
|
command.params['parent'] = parent unless parent.nil?
|
|
353
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
354
298
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
299
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
355
300
|
command.query['fields'] = fields unless fields.nil?
|
|
356
301
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
357
302
|
execute_or_queue_command(command, &block)
|
|
358
303
|
end
|
|
359
304
|
|
|
360
|
-
#
|
|
361
|
-
#
|
|
362
|
-
#
|
|
363
|
-
#
|
|
305
|
+
# Updates a sink. This method replaces the following fields in the existing sink
|
|
306
|
+
# with values from the new sink: destination, filter, output_version_format,
|
|
307
|
+
# start_time, and end_time. The updated sink might also have a new
|
|
308
|
+
# writer_identity; see the unique_writer_identity field.
|
|
309
|
+
# @param [String] sink_name
|
|
310
|
+
# Required. The full resource name of the sink to update, including the parent
|
|
311
|
+
# resource and the sink identifier:
|
|
312
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
313
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
314
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
315
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
316
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
317
|
+
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
|
318
|
+
# @param [Boolean] unique_writer_identity
|
|
319
|
+
# Optional. See sinks.create for a description of this field. When updating a
|
|
320
|
+
# sink, the effect of this field on the value of writer_identity in the updated
|
|
321
|
+
# sink depends on both the old and new values of this field:
|
|
322
|
+
# If the old and new values of this field are both false or both true, then
|
|
323
|
+
# there is no change to the sink's writer_identity.
|
|
324
|
+
# If the old value is false and the new value is true, then writer_identity is
|
|
325
|
+
# changed to a unique service account.
|
|
326
|
+
# It is an error if the old value is true and the new value is set to false or
|
|
327
|
+
# defaulted to false.
|
|
364
328
|
# @param [String] fields
|
|
365
329
|
# Selector specifying which fields to include in a partial response.
|
|
366
330
|
# @param [String] quota_user
|
|
@@ -370,28 +334,50 @@ module Google
|
|
|
370
334
|
# Request-specific options
|
|
371
335
|
#
|
|
372
336
|
# @yield [result, err] Result & error if block supplied
|
|
373
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
337
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
|
374
338
|
# @yieldparam err [StandardError] error object if request failed
|
|
375
339
|
#
|
|
376
|
-
# @return [Google::Apis::LoggingV2::
|
|
340
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
|
377
341
|
#
|
|
378
342
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
379
343
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
380
344
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
381
|
-
def
|
|
382
|
-
command = make_simple_command(:
|
|
383
|
-
command.
|
|
384
|
-
command.
|
|
385
|
-
command.
|
|
345
|
+
def patch_billing_account_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
346
|
+
command = make_simple_command(:patch, 'v2/{+sinkName}', options)
|
|
347
|
+
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
348
|
+
command.request_object = log_sink_object
|
|
349
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
350
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
351
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
352
|
+
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
|
386
353
|
command.query['fields'] = fields unless fields.nil?
|
|
387
354
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
388
355
|
execute_or_queue_command(command, &block)
|
|
389
356
|
end
|
|
390
357
|
|
|
391
|
-
#
|
|
392
|
-
#
|
|
393
|
-
#
|
|
394
|
-
#
|
|
358
|
+
# Updates a sink. This method replaces the following fields in the existing sink
|
|
359
|
+
# with values from the new sink: destination, filter, output_version_format,
|
|
360
|
+
# start_time, and end_time. The updated sink might also have a new
|
|
361
|
+
# writer_identity; see the unique_writer_identity field.
|
|
362
|
+
# @param [String] sink_name
|
|
363
|
+
# Required. The full resource name of the sink to update, including the parent
|
|
364
|
+
# resource and the sink identifier:
|
|
365
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
366
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
367
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
368
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
369
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
370
|
+
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
|
371
|
+
# @param [Boolean] unique_writer_identity
|
|
372
|
+
# Optional. See sinks.create for a description of this field. When updating a
|
|
373
|
+
# sink, the effect of this field on the value of writer_identity in the updated
|
|
374
|
+
# sink depends on both the old and new values of this field:
|
|
375
|
+
# If the old and new values of this field are both false or both true, then
|
|
376
|
+
# there is no change to the sink's writer_identity.
|
|
377
|
+
# If the old value is false and the new value is true, then writer_identity is
|
|
378
|
+
# changed to a unique service account.
|
|
379
|
+
# It is an error if the old value is true and the new value is set to false or
|
|
380
|
+
# defaulted to false.
|
|
395
381
|
# @param [String] fields
|
|
396
382
|
# Selector specifying which fields to include in a partial response.
|
|
397
383
|
# @param [String] quota_user
|
|
@@ -401,37 +387,144 @@ module Google
|
|
|
401
387
|
# Request-specific options
|
|
402
388
|
#
|
|
403
389
|
# @yield [result, err] Result & error if block supplied
|
|
404
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
390
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
|
405
391
|
# @yieldparam err [StandardError] error object if request failed
|
|
406
392
|
#
|
|
407
|
-
# @return [Google::Apis::LoggingV2::
|
|
393
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
|
408
394
|
#
|
|
409
395
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
410
396
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
411
397
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
412
|
-
def
|
|
413
|
-
command = make_simple_command(:
|
|
414
|
-
command.
|
|
415
|
-
command.
|
|
416
|
-
command.
|
|
398
|
+
def update_billing_account_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
399
|
+
command = make_simple_command(:put, 'v2/{+sinkName}', options)
|
|
400
|
+
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
401
|
+
command.request_object = log_sink_object
|
|
402
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
403
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
404
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
405
|
+
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
|
417
406
|
command.query['fields'] = fields unless fields.nil?
|
|
418
407
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
419
408
|
execute_or_queue_command(command, &block)
|
|
420
409
|
end
|
|
421
410
|
|
|
422
|
-
# Lists
|
|
423
|
-
#
|
|
424
|
-
#
|
|
425
|
-
#
|
|
426
|
-
#
|
|
427
|
-
#
|
|
428
|
-
#
|
|
429
|
-
#
|
|
430
|
-
#
|
|
411
|
+
# Lists log entries. Use this method to retrieve log entries from Stackdriver
|
|
412
|
+
# Logging. For ways to export log entries, see Exporting Logs.
|
|
413
|
+
# @param [Google::Apis::LoggingV2::ListLogEntriesRequest] list_log_entries_request_object
|
|
414
|
+
# @param [String] fields
|
|
415
|
+
# Selector specifying which fields to include in a partial response.
|
|
416
|
+
# @param [String] quota_user
|
|
417
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
418
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
419
|
+
# @param [Google::Apis::RequestOptions] options
|
|
420
|
+
# Request-specific options
|
|
421
|
+
#
|
|
422
|
+
# @yield [result, err] Result & error if block supplied
|
|
423
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListLogEntriesResponse] parsed result object
|
|
424
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
425
|
+
#
|
|
426
|
+
# @return [Google::Apis::LoggingV2::ListLogEntriesResponse]
|
|
427
|
+
#
|
|
428
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
429
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
430
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
431
|
+
def list_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
432
|
+
command = make_simple_command(:post, 'v2/entries:list', options)
|
|
433
|
+
command.request_representation = Google::Apis::LoggingV2::ListLogEntriesRequest::Representation
|
|
434
|
+
command.request_object = list_log_entries_request_object
|
|
435
|
+
command.response_representation = Google::Apis::LoggingV2::ListLogEntriesResponse::Representation
|
|
436
|
+
command.response_class = Google::Apis::LoggingV2::ListLogEntriesResponse
|
|
437
|
+
command.query['fields'] = fields unless fields.nil?
|
|
438
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
439
|
+
execute_or_queue_command(command, &block)
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
# Writes log entries to Stackdriver Logging.
|
|
443
|
+
# @param [Google::Apis::LoggingV2::WriteLogEntriesRequest] write_log_entries_request_object
|
|
444
|
+
# @param [String] fields
|
|
445
|
+
# Selector specifying which fields to include in a partial response.
|
|
446
|
+
# @param [String] quota_user
|
|
447
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
448
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
449
|
+
# @param [Google::Apis::RequestOptions] options
|
|
450
|
+
# Request-specific options
|
|
451
|
+
#
|
|
452
|
+
# @yield [result, err] Result & error if block supplied
|
|
453
|
+
# @yieldparam result [Google::Apis::LoggingV2::WriteLogEntriesResponse] parsed result object
|
|
454
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
455
|
+
#
|
|
456
|
+
# @return [Google::Apis::LoggingV2::WriteLogEntriesResponse]
|
|
457
|
+
#
|
|
458
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
459
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
460
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
461
|
+
def write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
462
|
+
command = make_simple_command(:post, 'v2/entries:write', options)
|
|
463
|
+
command.request_representation = Google::Apis::LoggingV2::WriteLogEntriesRequest::Representation
|
|
464
|
+
command.request_object = write_log_entries_request_object
|
|
465
|
+
command.response_representation = Google::Apis::LoggingV2::WriteLogEntriesResponse::Representation
|
|
466
|
+
command.response_class = Google::Apis::LoggingV2::WriteLogEntriesResponse
|
|
467
|
+
command.query['fields'] = fields unless fields.nil?
|
|
468
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
469
|
+
execute_or_queue_command(command, &block)
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
473
|
+
# entries. Log entries written shortly before the delete operation might not be
|
|
474
|
+
# deleted.
|
|
475
|
+
# @param [String] log_name
|
|
476
|
+
# Required. The resource name of the log to delete:
|
|
477
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
478
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
479
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
|
480
|
+
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
|
481
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
482
|
+
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
483
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
|
484
|
+
# @param [String] fields
|
|
485
|
+
# Selector specifying which fields to include in a partial response.
|
|
486
|
+
# @param [String] quota_user
|
|
487
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
488
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
489
|
+
# @param [Google::Apis::RequestOptions] options
|
|
490
|
+
# Request-specific options
|
|
491
|
+
#
|
|
492
|
+
# @yield [result, err] Result & error if block supplied
|
|
493
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
494
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
495
|
+
#
|
|
496
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
497
|
+
#
|
|
498
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
499
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
500
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
501
|
+
def delete_folder_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
502
|
+
command = make_simple_command(:delete, 'v2/{+logName}', options)
|
|
503
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
504
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
505
|
+
command.params['logName'] = log_name unless log_name.nil?
|
|
506
|
+
command.query['fields'] = fields unless fields.nil?
|
|
507
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
508
|
+
execute_or_queue_command(command, &block)
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
# Lists the logs in projects, organizations, folders, or billing accounts. Only
|
|
512
|
+
# logs that have entries are listed.
|
|
513
|
+
# @param [String] parent
|
|
514
|
+
# Required. The resource name that owns the logs:
|
|
515
|
+
# "projects/[PROJECT_ID]"
|
|
516
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
517
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
518
|
+
# "folders/[FOLDER_ID]"
|
|
431
519
|
# @param [Fixnum] page_size
|
|
432
520
|
# Optional. The maximum number of results to return from this request. Non-
|
|
433
521
|
# positive values are ignored. The presence of nextPageToken in the response
|
|
434
522
|
# indicates that more results might be available.
|
|
523
|
+
# @param [String] page_token
|
|
524
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
525
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
526
|
+
# from the previous response. The values of other method parameters should be
|
|
527
|
+
# identical to those in the previous call.
|
|
435
528
|
# @param [String] fields
|
|
436
529
|
# Selector specifying which fields to include in a partial response.
|
|
437
530
|
# @param [String] quota_user
|
|
@@ -441,34 +534,49 @@ module Google
|
|
|
441
534
|
# Request-specific options
|
|
442
535
|
#
|
|
443
536
|
# @yield [result, err] Result & error if block supplied
|
|
444
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
537
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
|
|
445
538
|
# @yieldparam err [StandardError] error object if request failed
|
|
446
539
|
#
|
|
447
|
-
# @return [Google::Apis::LoggingV2::
|
|
540
|
+
# @return [Google::Apis::LoggingV2::ListLogsResponse]
|
|
448
541
|
#
|
|
449
542
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
450
543
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
451
544
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
452
|
-
def
|
|
453
|
-
command = make_simple_command(:get, 'v2/{+parent}/
|
|
454
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
455
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
545
|
+
def list_folder_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
546
|
+
command = make_simple_command(:get, 'v2/{+parent}/logs', options)
|
|
547
|
+
command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
|
|
548
|
+
command.response_class = Google::Apis::LoggingV2::ListLogsResponse
|
|
456
549
|
command.params['parent'] = parent unless parent.nil?
|
|
457
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
458
550
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
551
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
459
552
|
command.query['fields'] = fields unless fields.nil?
|
|
460
553
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
461
554
|
execute_or_queue_command(command, &block)
|
|
462
555
|
end
|
|
463
556
|
|
|
464
|
-
# Creates
|
|
465
|
-
#
|
|
466
|
-
#
|
|
467
|
-
#
|
|
468
|
-
#
|
|
469
|
-
#
|
|
470
|
-
#
|
|
471
|
-
#
|
|
557
|
+
# Creates a sink that exports specified log entries to a destination. The export
|
|
558
|
+
# of newly-ingested log entries begins immediately, unless the current time is
|
|
559
|
+
# outside the sink's start and end times or the sink's writer_identity is not
|
|
560
|
+
# permitted to write to the destination. A sink can export log entries only from
|
|
561
|
+
# the resource owning the sink.
|
|
562
|
+
# @param [String] parent
|
|
563
|
+
# Required. The resource in which to create the sink:
|
|
564
|
+
# "projects/[PROJECT_ID]"
|
|
565
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
566
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
567
|
+
# "folders/[FOLDER_ID]"
|
|
568
|
+
# Examples: "projects/my-logging-project", "organizations/123456789".
|
|
569
|
+
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
|
570
|
+
# @param [Boolean] unique_writer_identity
|
|
571
|
+
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
|
572
|
+
# the new sink. If this value is omitted or set to false, and if the sink's
|
|
573
|
+
# parent is a project, then the value returned as writer_identity is the same
|
|
574
|
+
# group or service account used by Stackdriver Logging before the addition of
|
|
575
|
+
# writer identities to this API. The sink's destination must be in the same
|
|
576
|
+
# project as the sink itself.If this field is set to true, or if the sink is
|
|
577
|
+
# owned by a non-project resource such as an organization, then the value of
|
|
578
|
+
# writer_identity will be a unique service account used only for exports from
|
|
579
|
+
# the new sink. For more information, see writer_identity in LogSink.
|
|
472
580
|
# @param [String] fields
|
|
473
581
|
# Selector specifying which fields to include in a partial response.
|
|
474
582
|
# @param [String] quota_user
|
|
@@ -478,32 +586,37 @@ module Google
|
|
|
478
586
|
# Request-specific options
|
|
479
587
|
#
|
|
480
588
|
# @yield [result, err] Result & error if block supplied
|
|
481
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
589
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
|
482
590
|
# @yieldparam err [StandardError] error object if request failed
|
|
483
591
|
#
|
|
484
|
-
# @return [Google::Apis::LoggingV2::
|
|
592
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
|
485
593
|
#
|
|
486
594
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
487
595
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
488
596
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
489
|
-
def
|
|
490
|
-
command = make_simple_command(:
|
|
491
|
-
command.request_representation = Google::Apis::LoggingV2::
|
|
492
|
-
command.request_object =
|
|
493
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
494
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
495
|
-
command.params['
|
|
597
|
+
def create_folder_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
598
|
+
command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
|
|
599
|
+
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
600
|
+
command.request_object = log_sink_object
|
|
601
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
602
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
603
|
+
command.params['parent'] = parent unless parent.nil?
|
|
604
|
+
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
|
496
605
|
command.query['fields'] = fields unless fields.nil?
|
|
497
606
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
498
607
|
execute_or_queue_command(command, &block)
|
|
499
608
|
end
|
|
500
609
|
|
|
501
|
-
#
|
|
502
|
-
#
|
|
503
|
-
#
|
|
504
|
-
#
|
|
505
|
-
#
|
|
506
|
-
#
|
|
610
|
+
# Deletes a sink. If the sink has a unique writer_identity, then that service
|
|
611
|
+
# account is also deleted.
|
|
612
|
+
# @param [String] sink_name
|
|
613
|
+
# Required. The full resource name of the sink to delete, including the parent
|
|
614
|
+
# resource and the sink identifier:
|
|
615
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
616
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
617
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
618
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
619
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
507
620
|
# @param [String] fields
|
|
508
621
|
# Selector specifying which fields to include in a partial response.
|
|
509
622
|
# @param [String] quota_user
|
|
@@ -513,21 +626,19 @@ module Google
|
|
|
513
626
|
# Request-specific options
|
|
514
627
|
#
|
|
515
628
|
# @yield [result, err] Result & error if block supplied
|
|
516
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
629
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
517
630
|
# @yieldparam err [StandardError] error object if request failed
|
|
518
631
|
#
|
|
519
|
-
# @return [Google::Apis::LoggingV2::
|
|
632
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
520
633
|
#
|
|
521
634
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
522
635
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
523
636
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
524
|
-
def
|
|
525
|
-
command = make_simple_command(:
|
|
526
|
-
command.
|
|
527
|
-
command.
|
|
528
|
-
command.
|
|
529
|
-
command.response_class = Google::Apis::LoggingV2::LogMetric
|
|
530
|
-
command.params['parent'] = parent unless parent.nil?
|
|
637
|
+
def delete_folder_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
638
|
+
command = make_simple_command(:delete, 'v2/{+sinkName}', options)
|
|
639
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
640
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
641
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
531
642
|
command.query['fields'] = fields unless fields.nil?
|
|
532
643
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
533
644
|
execute_or_queue_command(command, &block)
|
|
@@ -558,7 +669,7 @@ module Google
|
|
|
558
669
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
559
670
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
560
671
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
561
|
-
def
|
|
672
|
+
def get_folder_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
562
673
|
command = make_simple_command(:get, 'v2/{+sinkName}', options)
|
|
563
674
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
564
675
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
@@ -575,15 +686,15 @@ module Google
|
|
|
575
686
|
# "organizations/[ORGANIZATION_ID]"
|
|
576
687
|
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
577
688
|
# "folders/[FOLDER_ID]"
|
|
689
|
+
# @param [Fixnum] page_size
|
|
690
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
691
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
692
|
+
# indicates that more results might be available.
|
|
578
693
|
# @param [String] page_token
|
|
579
694
|
# Optional. If present, then retrieve the next batch of results from the
|
|
580
695
|
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
581
696
|
# from the previous response. The values of other method parameters should be
|
|
582
697
|
# identical to those in the previous call.
|
|
583
|
-
# @param [Fixnum] page_size
|
|
584
|
-
# Optional. The maximum number of results to return from this request. Non-
|
|
585
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
|
586
|
-
# indicates that more results might be available.
|
|
587
698
|
# @param [String] fields
|
|
588
699
|
# Selector specifying which fields to include in a partial response.
|
|
589
700
|
# @param [String] quota_user
|
|
@@ -601,24 +712,22 @@ module Google
|
|
|
601
712
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
602
713
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
603
714
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
604
|
-
def
|
|
715
|
+
def list_folder_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
605
716
|
command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
|
|
606
717
|
command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
|
|
607
718
|
command.response_class = Google::Apis::LoggingV2::ListSinksResponse
|
|
608
719
|
command.params['parent'] = parent unless parent.nil?
|
|
609
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
610
720
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
721
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
611
722
|
command.query['fields'] = fields unless fields.nil?
|
|
612
723
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
613
724
|
execute_or_queue_command(command, &block)
|
|
614
725
|
end
|
|
615
726
|
|
|
616
|
-
# Updates a sink.
|
|
617
|
-
#
|
|
618
|
-
#
|
|
619
|
-
#
|
|
620
|
-
# updated filter might also have a new writer_identity; see the
|
|
621
|
-
# unique_writer_identity field.
|
|
727
|
+
# Updates a sink. This method replaces the following fields in the existing sink
|
|
728
|
+
# with values from the new sink: destination, filter, output_version_format,
|
|
729
|
+
# start_time, and end_time. The updated sink might also have a new
|
|
730
|
+
# writer_identity; see the unique_writer_identity field.
|
|
622
731
|
# @param [String] sink_name
|
|
623
732
|
# Required. The full resource name of the sink to update, including the parent
|
|
624
733
|
# resource and the sink identifier:
|
|
@@ -655,8 +764,8 @@ module Google
|
|
|
655
764
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
656
765
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
657
766
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
658
|
-
def
|
|
659
|
-
command = make_simple_command(:
|
|
767
|
+
def patch_folder_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
768
|
+
command = make_simple_command(:patch, 'v2/{+sinkName}', options)
|
|
660
769
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
661
770
|
command.request_object = log_sink_object
|
|
662
771
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
@@ -668,29 +777,69 @@ module Google
|
|
|
668
777
|
execute_or_queue_command(command, &block)
|
|
669
778
|
end
|
|
670
779
|
|
|
671
|
-
#
|
|
672
|
-
#
|
|
673
|
-
#
|
|
674
|
-
#
|
|
675
|
-
#
|
|
676
|
-
#
|
|
677
|
-
#
|
|
678
|
-
# "projects/[PROJECT_ID]"
|
|
679
|
-
# "organizations/[ORGANIZATION_ID]"
|
|
680
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
681
|
-
# "folders/[FOLDER_ID]"
|
|
682
|
-
#
|
|
780
|
+
# Updates a sink. This method replaces the following fields in the existing sink
|
|
781
|
+
# with values from the new sink: destination, filter, output_version_format,
|
|
782
|
+
# start_time, and end_time. The updated sink might also have a new
|
|
783
|
+
# writer_identity; see the unique_writer_identity field.
|
|
784
|
+
# @param [String] sink_name
|
|
785
|
+
# Required. The full resource name of the sink to update, including the parent
|
|
786
|
+
# resource and the sink identifier:
|
|
787
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
788
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
789
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
790
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
791
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
683
792
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
|
684
793
|
# @param [Boolean] unique_writer_identity
|
|
685
|
-
# Optional.
|
|
686
|
-
# the
|
|
687
|
-
#
|
|
688
|
-
#
|
|
689
|
-
#
|
|
690
|
-
#
|
|
691
|
-
#
|
|
692
|
-
#
|
|
693
|
-
#
|
|
794
|
+
# Optional. See sinks.create for a description of this field. When updating a
|
|
795
|
+
# sink, the effect of this field on the value of writer_identity in the updated
|
|
796
|
+
# sink depends on both the old and new values of this field:
|
|
797
|
+
# If the old and new values of this field are both false or both true, then
|
|
798
|
+
# there is no change to the sink's writer_identity.
|
|
799
|
+
# If the old value is false and the new value is true, then writer_identity is
|
|
800
|
+
# changed to a unique service account.
|
|
801
|
+
# It is an error if the old value is true and the new value is set to false or
|
|
802
|
+
# defaulted to false.
|
|
803
|
+
# @param [String] fields
|
|
804
|
+
# Selector specifying which fields to include in a partial response.
|
|
805
|
+
# @param [String] quota_user
|
|
806
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
807
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
808
|
+
# @param [Google::Apis::RequestOptions] options
|
|
809
|
+
# Request-specific options
|
|
810
|
+
#
|
|
811
|
+
# @yield [result, err] Result & error if block supplied
|
|
812
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
|
813
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
814
|
+
#
|
|
815
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
|
816
|
+
#
|
|
817
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
818
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
819
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
820
|
+
def update_folder_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
821
|
+
command = make_simple_command(:put, 'v2/{+sinkName}', options)
|
|
822
|
+
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
823
|
+
command.request_object = log_sink_object
|
|
824
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
825
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
826
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
827
|
+
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
|
828
|
+
command.query['fields'] = fields unless fields.nil?
|
|
829
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
830
|
+
execute_or_queue_command(command, &block)
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
# Lists the descriptors for monitored resource types used by Stackdriver Logging.
|
|
834
|
+
# @param [Fixnum] page_size
|
|
835
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
836
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
837
|
+
# indicates that more results might be available.
|
|
838
|
+
# @param [String] page_token
|
|
839
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
840
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
841
|
+
# from the previous response. The values of other method parameters should be
|
|
842
|
+
# identical to those in the previous call.
|
|
694
843
|
# @param [String] fields
|
|
695
844
|
# Selector specifying which fields to include in a partial response.
|
|
696
845
|
# @param [String] quota_user
|
|
@@ -700,37 +849,37 @@ module Google
|
|
|
700
849
|
# Request-specific options
|
|
701
850
|
#
|
|
702
851
|
# @yield [result, err] Result & error if block supplied
|
|
703
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
852
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse] parsed result object
|
|
704
853
|
# @yieldparam err [StandardError] error object if request failed
|
|
705
854
|
#
|
|
706
|
-
# @return [Google::Apis::LoggingV2::
|
|
855
|
+
# @return [Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse]
|
|
707
856
|
#
|
|
708
857
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
709
858
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
710
859
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
711
|
-
def
|
|
712
|
-
command = make_simple_command(:
|
|
713
|
-
command.
|
|
714
|
-
command.
|
|
715
|
-
command.
|
|
716
|
-
command.
|
|
717
|
-
command.params['parent'] = parent unless parent.nil?
|
|
718
|
-
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
|
860
|
+
def list_monitored_resource_descriptors(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
861
|
+
command = make_simple_command(:get, 'v2/monitoredResourceDescriptors', options)
|
|
862
|
+
command.response_representation = Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse::Representation
|
|
863
|
+
command.response_class = Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse
|
|
864
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
865
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
719
866
|
command.query['fields'] = fields unless fields.nil?
|
|
720
867
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
721
868
|
execute_or_queue_command(command, &block)
|
|
722
869
|
end
|
|
723
870
|
|
|
724
|
-
# Deletes
|
|
725
|
-
#
|
|
726
|
-
#
|
|
727
|
-
#
|
|
728
|
-
# resource
|
|
729
|
-
# "projects/[PROJECT_ID]/
|
|
730
|
-
# "organizations/[ORGANIZATION_ID]/
|
|
731
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/
|
|
732
|
-
# "folders/[FOLDER_ID]/
|
|
733
|
-
#
|
|
871
|
+
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
872
|
+
# entries. Log entries written shortly before the delete operation might not be
|
|
873
|
+
# deleted.
|
|
874
|
+
# @param [String] log_name
|
|
875
|
+
# Required. The resource name of the log to delete:
|
|
876
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
877
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
878
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
|
879
|
+
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
|
880
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
881
|
+
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
882
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
|
734
883
|
# @param [String] fields
|
|
735
884
|
# Selector specifying which fields to include in a partial response.
|
|
736
885
|
# @param [String] quota_user
|
|
@@ -748,11 +897,11 @@ module Google
|
|
|
748
897
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
749
898
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
750
899
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
751
|
-
def
|
|
752
|
-
command = make_simple_command(:delete, 'v2/{+
|
|
900
|
+
def delete_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
901
|
+
command = make_simple_command(:delete, 'v2/{+logName}', options)
|
|
753
902
|
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
754
903
|
command.response_class = Google::Apis::LoggingV2::Empty
|
|
755
|
-
command.params['
|
|
904
|
+
command.params['logName'] = log_name unless log_name.nil?
|
|
756
905
|
command.query['fields'] = fields unless fields.nil?
|
|
757
906
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
758
907
|
execute_or_queue_command(command, &block)
|
|
@@ -766,15 +915,15 @@ module Google
|
|
|
766
915
|
# "organizations/[ORGANIZATION_ID]"
|
|
767
916
|
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
768
917
|
# "folders/[FOLDER_ID]"
|
|
918
|
+
# @param [Fixnum] page_size
|
|
919
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
920
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
921
|
+
# indicates that more results might be available.
|
|
769
922
|
# @param [String] page_token
|
|
770
923
|
# Optional. If present, then retrieve the next batch of results from the
|
|
771
924
|
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
772
925
|
# from the previous response. The values of other method parameters should be
|
|
773
926
|
# identical to those in the previous call.
|
|
774
|
-
# @param [Fixnum] page_size
|
|
775
|
-
# Optional. The maximum number of results to return from this request. Non-
|
|
776
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
|
777
|
-
# indicates that more results might be available.
|
|
778
927
|
# @param [String] fields
|
|
779
928
|
# Selector specifying which fields to include in a partial response.
|
|
780
929
|
# @param [String] quota_user
|
|
@@ -792,30 +941,41 @@ module Google
|
|
|
792
941
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
793
942
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
794
943
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
795
|
-
def
|
|
944
|
+
def list_organization_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
796
945
|
command = make_simple_command(:get, 'v2/{+parent}/logs', options)
|
|
797
946
|
command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
|
|
798
947
|
command.response_class = Google::Apis::LoggingV2::ListLogsResponse
|
|
799
948
|
command.params['parent'] = parent unless parent.nil?
|
|
800
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
801
949
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
950
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
802
951
|
command.query['fields'] = fields unless fields.nil?
|
|
803
952
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
804
953
|
execute_or_queue_command(command, &block)
|
|
805
954
|
end
|
|
806
955
|
|
|
807
|
-
#
|
|
808
|
-
#
|
|
809
|
-
#
|
|
810
|
-
#
|
|
811
|
-
#
|
|
812
|
-
#
|
|
813
|
-
#
|
|
814
|
-
# "
|
|
815
|
-
# "
|
|
816
|
-
# [
|
|
817
|
-
#
|
|
818
|
-
#
|
|
956
|
+
# Creates a sink that exports specified log entries to a destination. The export
|
|
957
|
+
# of newly-ingested log entries begins immediately, unless the current time is
|
|
958
|
+
# outside the sink's start and end times or the sink's writer_identity is not
|
|
959
|
+
# permitted to write to the destination. A sink can export log entries only from
|
|
960
|
+
# the resource owning the sink.
|
|
961
|
+
# @param [String] parent
|
|
962
|
+
# Required. The resource in which to create the sink:
|
|
963
|
+
# "projects/[PROJECT_ID]"
|
|
964
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
965
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
966
|
+
# "folders/[FOLDER_ID]"
|
|
967
|
+
# Examples: "projects/my-logging-project", "organizations/123456789".
|
|
968
|
+
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
|
969
|
+
# @param [Boolean] unique_writer_identity
|
|
970
|
+
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
|
971
|
+
# the new sink. If this value is omitted or set to false, and if the sink's
|
|
972
|
+
# parent is a project, then the value returned as writer_identity is the same
|
|
973
|
+
# group or service account used by Stackdriver Logging before the addition of
|
|
974
|
+
# writer identities to this API. The sink's destination must be in the same
|
|
975
|
+
# project as the sink itself.If this field is set to true, or if the sink is
|
|
976
|
+
# owned by a non-project resource such as an organization, then the value of
|
|
977
|
+
# writer_identity will be a unique service account used only for exports from
|
|
978
|
+
# the new sink. For more information, see writer_identity in LogSink.
|
|
819
979
|
# @param [String] fields
|
|
820
980
|
# Selector specifying which fields to include in a partial response.
|
|
821
981
|
# @param [String] quota_user
|
|
@@ -825,19 +985,22 @@ module Google
|
|
|
825
985
|
# Request-specific options
|
|
826
986
|
#
|
|
827
987
|
# @yield [result, err] Result & error if block supplied
|
|
828
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
988
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
|
829
989
|
# @yieldparam err [StandardError] error object if request failed
|
|
830
990
|
#
|
|
831
|
-
# @return [Google::Apis::LoggingV2::
|
|
991
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
|
832
992
|
#
|
|
833
993
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
834
994
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
835
995
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
836
|
-
def
|
|
837
|
-
command = make_simple_command(:
|
|
838
|
-
command.
|
|
839
|
-
command.
|
|
840
|
-
command.
|
|
996
|
+
def create_organization_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
997
|
+
command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
|
|
998
|
+
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
999
|
+
command.request_object = log_sink_object
|
|
1000
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
1001
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
1002
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1003
|
+
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
|
841
1004
|
command.query['fields'] = fields unless fields.nil?
|
|
842
1005
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
843
1006
|
execute_or_queue_command(command, &block)
|
|
@@ -870,7 +1033,7 @@ module Google
|
|
|
870
1033
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
871
1034
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
872
1035
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
873
|
-
def
|
|
1036
|
+
def delete_organization_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
874
1037
|
command = make_simple_command(:delete, 'v2/{+sinkName}', options)
|
|
875
1038
|
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
876
1039
|
command.response_class = Google::Apis::LoggingV2::Empty
|
|
@@ -905,7 +1068,7 @@ module Google
|
|
|
905
1068
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
906
1069
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
907
1070
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
908
|
-
def
|
|
1071
|
+
def get_organization_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
909
1072
|
command = make_simple_command(:get, 'v2/{+sinkName}', options)
|
|
910
1073
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
911
1074
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
@@ -948,7 +1111,7 @@ module Google
|
|
|
948
1111
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
949
1112
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
950
1113
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
951
|
-
def
|
|
1114
|
+
def list_organization_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
952
1115
|
command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
|
|
953
1116
|
command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
|
|
954
1117
|
command.response_class = Google::Apis::LoggingV2::ListSinksResponse
|
|
@@ -960,12 +1123,10 @@ module Google
|
|
|
960
1123
|
execute_or_queue_command(command, &block)
|
|
961
1124
|
end
|
|
962
1125
|
|
|
963
|
-
# Updates a sink.
|
|
964
|
-
#
|
|
965
|
-
#
|
|
966
|
-
#
|
|
967
|
-
# updated filter might also have a new writer_identity; see the
|
|
968
|
-
# unique_writer_identity field.
|
|
1126
|
+
# Updates a sink. This method replaces the following fields in the existing sink
|
|
1127
|
+
# with values from the new sink: destination, filter, output_version_format,
|
|
1128
|
+
# start_time, and end_time. The updated sink might also have a new
|
|
1129
|
+
# writer_identity; see the unique_writer_identity field.
|
|
969
1130
|
# @param [String] sink_name
|
|
970
1131
|
# Required. The full resource name of the sink to update, including the parent
|
|
971
1132
|
# resource and the sink identifier:
|
|
@@ -1002,8 +1163,8 @@ module Google
|
|
|
1002
1163
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1003
1164
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1004
1165
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1005
|
-
def
|
|
1006
|
-
command = make_simple_command(:
|
|
1166
|
+
def patch_organization_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1167
|
+
command = make_simple_command(:patch, 'v2/{+sinkName}', options)
|
|
1007
1168
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
1008
1169
|
command.request_object = log_sink_object
|
|
1009
1170
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
@@ -1015,29 +1176,29 @@ module Google
|
|
|
1015
1176
|
execute_or_queue_command(command, &block)
|
|
1016
1177
|
end
|
|
1017
1178
|
|
|
1018
|
-
#
|
|
1019
|
-
#
|
|
1020
|
-
#
|
|
1021
|
-
#
|
|
1022
|
-
#
|
|
1023
|
-
#
|
|
1024
|
-
#
|
|
1025
|
-
# "projects/[PROJECT_ID]"
|
|
1026
|
-
# "organizations/[ORGANIZATION_ID]"
|
|
1027
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
1028
|
-
# "folders/[FOLDER_ID]"
|
|
1029
|
-
#
|
|
1179
|
+
# Updates a sink. This method replaces the following fields in the existing sink
|
|
1180
|
+
# with values from the new sink: destination, filter, output_version_format,
|
|
1181
|
+
# start_time, and end_time. The updated sink might also have a new
|
|
1182
|
+
# writer_identity; see the unique_writer_identity field.
|
|
1183
|
+
# @param [String] sink_name
|
|
1184
|
+
# Required. The full resource name of the sink to update, including the parent
|
|
1185
|
+
# resource and the sink identifier:
|
|
1186
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
1187
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
1188
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
1189
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
1190
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
1030
1191
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
|
1031
1192
|
# @param [Boolean] unique_writer_identity
|
|
1032
|
-
# Optional.
|
|
1033
|
-
# the
|
|
1034
|
-
#
|
|
1035
|
-
#
|
|
1036
|
-
#
|
|
1037
|
-
#
|
|
1038
|
-
#
|
|
1039
|
-
#
|
|
1040
|
-
#
|
|
1193
|
+
# Optional. See sinks.create for a description of this field. When updating a
|
|
1194
|
+
# sink, the effect of this field on the value of writer_identity in the updated
|
|
1195
|
+
# sink depends on both the old and new values of this field:
|
|
1196
|
+
# If the old and new values of this field are both false or both true, then
|
|
1197
|
+
# there is no change to the sink's writer_identity.
|
|
1198
|
+
# If the old value is false and the new value is true, then writer_identity is
|
|
1199
|
+
# changed to a unique service account.
|
|
1200
|
+
# It is an error if the old value is true and the new value is set to false or
|
|
1201
|
+
# defaulted to false.
|
|
1041
1202
|
# @param [String] fields
|
|
1042
1203
|
# Selector specifying which fields to include in a partial response.
|
|
1043
1204
|
# @param [String] quota_user
|
|
@@ -1055,13 +1216,13 @@ module Google
|
|
|
1055
1216
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1056
1217
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1057
1218
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1058
|
-
def
|
|
1059
|
-
command = make_simple_command(:
|
|
1219
|
+
def update_organization_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1220
|
+
command = make_simple_command(:put, 'v2/{+sinkName}', options)
|
|
1060
1221
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
1061
1222
|
command.request_object = log_sink_object
|
|
1062
1223
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
1063
1224
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
1064
|
-
command.params['
|
|
1225
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
1065
1226
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
|
1066
1227
|
command.query['fields'] = fields unless fields.nil?
|
|
1067
1228
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1097,7 +1258,7 @@ module Google
|
|
|
1097
1258
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1098
1259
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1099
1260
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1100
|
-
def
|
|
1261
|
+
def delete_project_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1101
1262
|
command = make_simple_command(:delete, 'v2/{+logName}', options)
|
|
1102
1263
|
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
1103
1264
|
command.response_class = Google::Apis::LoggingV2::Empty
|
|
@@ -1115,15 +1276,15 @@ module Google
|
|
|
1115
1276
|
# "organizations/[ORGANIZATION_ID]"
|
|
1116
1277
|
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
1117
1278
|
# "folders/[FOLDER_ID]"
|
|
1279
|
+
# @param [Fixnum] page_size
|
|
1280
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
1281
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
1282
|
+
# indicates that more results might be available.
|
|
1118
1283
|
# @param [String] page_token
|
|
1119
1284
|
# Optional. If present, then retrieve the next batch of results from the
|
|
1120
1285
|
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
1121
1286
|
# from the previous response. The values of other method parameters should be
|
|
1122
1287
|
# identical to those in the previous call.
|
|
1123
|
-
# @param [Fixnum] page_size
|
|
1124
|
-
# Optional. The maximum number of results to return from this request. Non-
|
|
1125
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
|
1126
|
-
# indicates that more results might be available.
|
|
1127
1288
|
# @param [String] fields
|
|
1128
1289
|
# Selector specifying which fields to include in a partial response.
|
|
1129
1290
|
# @param [String] quota_user
|
|
@@ -1141,28 +1302,24 @@ module Google
|
|
|
1141
1302
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1142
1303
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1143
1304
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1144
|
-
def
|
|
1305
|
+
def list_project_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1145
1306
|
command = make_simple_command(:get, 'v2/{+parent}/logs', options)
|
|
1146
1307
|
command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
|
|
1147
1308
|
command.response_class = Google::Apis::LoggingV2::ListLogsResponse
|
|
1148
1309
|
command.params['parent'] = parent unless parent.nil?
|
|
1149
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1150
1310
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1311
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1151
1312
|
command.query['fields'] = fields unless fields.nil?
|
|
1152
1313
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1153
1314
|
execute_or_queue_command(command, &block)
|
|
1154
1315
|
end
|
|
1155
1316
|
|
|
1156
|
-
#
|
|
1157
|
-
# @param [String]
|
|
1158
|
-
#
|
|
1159
|
-
#
|
|
1160
|
-
#
|
|
1161
|
-
#
|
|
1162
|
-
# @param [Fixnum] page_size
|
|
1163
|
-
# Optional. The maximum number of results to return from this request. Non-
|
|
1164
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
|
1165
|
-
# indicates that more results might be available.
|
|
1317
|
+
# Creates a logs-based metric.
|
|
1318
|
+
# @param [String] parent
|
|
1319
|
+
# The resource name of the project in which to create the metric:
|
|
1320
|
+
# "projects/[PROJECT_ID]"
|
|
1321
|
+
# The new metric must be provided in the request.
|
|
1322
|
+
# @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
|
|
1166
1323
|
# @param [String] fields
|
|
1167
1324
|
# Selector specifying which fields to include in a partial response.
|
|
1168
1325
|
# @param [String] quota_user
|
|
@@ -1172,35 +1329,30 @@ module Google
|
|
|
1172
1329
|
# Request-specific options
|
|
1173
1330
|
#
|
|
1174
1331
|
# @yield [result, err] Result & error if block supplied
|
|
1175
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
1332
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object
|
|
1176
1333
|
# @yieldparam err [StandardError] error object if request failed
|
|
1177
1334
|
#
|
|
1178
|
-
# @return [Google::Apis::LoggingV2::
|
|
1335
|
+
# @return [Google::Apis::LoggingV2::LogMetric]
|
|
1179
1336
|
#
|
|
1180
1337
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1181
1338
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1182
1339
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1183
|
-
def
|
|
1184
|
-
command = make_simple_command(:
|
|
1185
|
-
command.
|
|
1186
|
-
command.
|
|
1187
|
-
command.
|
|
1188
|
-
command.
|
|
1340
|
+
def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1341
|
+
command = make_simple_command(:post, 'v2/{+parent}/metrics', options)
|
|
1342
|
+
command.request_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
|
1343
|
+
command.request_object = log_metric_object
|
|
1344
|
+
command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
|
1345
|
+
command.response_class = Google::Apis::LoggingV2::LogMetric
|
|
1346
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1189
1347
|
command.query['fields'] = fields unless fields.nil?
|
|
1190
1348
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1191
1349
|
execute_or_queue_command(command, &block)
|
|
1192
1350
|
end
|
|
1193
1351
|
|
|
1194
|
-
# Deletes a
|
|
1195
|
-
#
|
|
1196
|
-
#
|
|
1197
|
-
#
|
|
1198
|
-
# resource and the sink identifier:
|
|
1199
|
-
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
1200
|
-
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
1201
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
1202
|
-
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
1203
|
-
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
1352
|
+
# Deletes a logs-based metric.
|
|
1353
|
+
# @param [String] metric_name
|
|
1354
|
+
# The resource name of the metric to delete:
|
|
1355
|
+
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
|
1204
1356
|
# @param [String] fields
|
|
1205
1357
|
# Selector specifying which fields to include in a partial response.
|
|
1206
1358
|
# @param [String] quota_user
|
|
@@ -1218,24 +1370,20 @@ module Google
|
|
|
1218
1370
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1219
1371
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1220
1372
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1221
|
-
def
|
|
1222
|
-
command = make_simple_command(:delete, 'v2/{+
|
|
1373
|
+
def delete_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1374
|
+
command = make_simple_command(:delete, 'v2/{+metricName}', options)
|
|
1223
1375
|
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
1224
|
-
command.response_class = Google::Apis::LoggingV2::Empty
|
|
1225
|
-
command.params['
|
|
1226
|
-
command.query['fields'] = fields unless fields.nil?
|
|
1227
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1228
|
-
execute_or_queue_command(command, &block)
|
|
1229
|
-
end
|
|
1230
|
-
|
|
1231
|
-
# Gets a
|
|
1232
|
-
# @param [String]
|
|
1233
|
-
#
|
|
1234
|
-
# "projects/[PROJECT_ID]/
|
|
1235
|
-
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
1236
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
1237
|
-
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
1238
|
-
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
1376
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
1377
|
+
command.params['metricName'] = metric_name unless metric_name.nil?
|
|
1378
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1379
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1380
|
+
execute_or_queue_command(command, &block)
|
|
1381
|
+
end
|
|
1382
|
+
|
|
1383
|
+
# Gets a logs-based metric.
|
|
1384
|
+
# @param [String] metric_name
|
|
1385
|
+
# The resource name of the desired metric:
|
|
1386
|
+
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
|
1239
1387
|
# @param [String] fields
|
|
1240
1388
|
# Selector specifying which fields to include in a partial response.
|
|
1241
1389
|
# @param [String] quota_user
|
|
@@ -1245,31 +1393,28 @@ module Google
|
|
|
1245
1393
|
# Request-specific options
|
|
1246
1394
|
#
|
|
1247
1395
|
# @yield [result, err] Result & error if block supplied
|
|
1248
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
1396
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object
|
|
1249
1397
|
# @yieldparam err [StandardError] error object if request failed
|
|
1250
1398
|
#
|
|
1251
|
-
# @return [Google::Apis::LoggingV2::
|
|
1399
|
+
# @return [Google::Apis::LoggingV2::LogMetric]
|
|
1252
1400
|
#
|
|
1253
1401
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1254
1402
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1255
1403
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1256
|
-
def
|
|
1257
|
-
command = make_simple_command(:get, 'v2/{+
|
|
1258
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
1259
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
1260
|
-
command.params['
|
|
1404
|
+
def get_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1405
|
+
command = make_simple_command(:get, 'v2/{+metricName}', options)
|
|
1406
|
+
command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
|
1407
|
+
command.response_class = Google::Apis::LoggingV2::LogMetric
|
|
1408
|
+
command.params['metricName'] = metric_name unless metric_name.nil?
|
|
1261
1409
|
command.query['fields'] = fields unless fields.nil?
|
|
1262
1410
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1263
1411
|
execute_or_queue_command(command, &block)
|
|
1264
1412
|
end
|
|
1265
1413
|
|
|
1266
|
-
# Lists
|
|
1414
|
+
# Lists logs-based metrics.
|
|
1267
1415
|
# @param [String] parent
|
|
1268
|
-
# Required. The
|
|
1416
|
+
# Required. The name of the project containing the metrics:
|
|
1269
1417
|
# "projects/[PROJECT_ID]"
|
|
1270
|
-
# "organizations/[ORGANIZATION_ID]"
|
|
1271
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
1272
|
-
# "folders/[FOLDER_ID]"
|
|
1273
1418
|
# @param [Fixnum] page_size
|
|
1274
1419
|
# Optional. The maximum number of results to return from this request. Non-
|
|
1275
1420
|
# positive values are ignored. The presence of nextPageToken in the response
|
|
@@ -1288,18 +1433,18 @@ module Google
|
|
|
1288
1433
|
# Request-specific options
|
|
1289
1434
|
#
|
|
1290
1435
|
# @yield [result, err] Result & error if block supplied
|
|
1291
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
1436
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListLogMetricsResponse] parsed result object
|
|
1292
1437
|
# @yieldparam err [StandardError] error object if request failed
|
|
1293
1438
|
#
|
|
1294
|
-
# @return [Google::Apis::LoggingV2::
|
|
1439
|
+
# @return [Google::Apis::LoggingV2::ListLogMetricsResponse]
|
|
1295
1440
|
#
|
|
1296
1441
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1297
1442
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1298
1443
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1299
|
-
def
|
|
1300
|
-
command = make_simple_command(:get, 'v2/{+parent}/
|
|
1301
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
1302
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
1444
|
+
def list_project_metrics(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1445
|
+
command = make_simple_command(:get, 'v2/{+parent}/metrics', options)
|
|
1446
|
+
command.response_representation = Google::Apis::LoggingV2::ListLogMetricsResponse::Representation
|
|
1447
|
+
command.response_class = Google::Apis::LoggingV2::ListLogMetricsResponse
|
|
1303
1448
|
command.params['parent'] = parent unless parent.nil?
|
|
1304
1449
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1305
1450
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -1308,31 +1453,14 @@ module Google
|
|
|
1308
1453
|
execute_or_queue_command(command, &block)
|
|
1309
1454
|
end
|
|
1310
1455
|
|
|
1311
|
-
#
|
|
1312
|
-
#
|
|
1313
|
-
#
|
|
1314
|
-
#
|
|
1315
|
-
# updated
|
|
1316
|
-
#
|
|
1317
|
-
#
|
|
1318
|
-
#
|
|
1319
|
-
# resource and the sink identifier:
|
|
1320
|
-
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
1321
|
-
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
1322
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
1323
|
-
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
1324
|
-
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
1325
|
-
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
|
1326
|
-
# @param [Boolean] unique_writer_identity
|
|
1327
|
-
# Optional. See sinks.create for a description of this field. When updating a
|
|
1328
|
-
# sink, the effect of this field on the value of writer_identity in the updated
|
|
1329
|
-
# sink depends on both the old and new values of this field:
|
|
1330
|
-
# If the old and new values of this field are both false or both true, then
|
|
1331
|
-
# there is no change to the sink's writer_identity.
|
|
1332
|
-
# If the old value is false and the new value is true, then writer_identity is
|
|
1333
|
-
# changed to a unique service account.
|
|
1334
|
-
# It is an error if the old value is true and the new value is set to false or
|
|
1335
|
-
# defaulted to false.
|
|
1456
|
+
# Creates or updates a logs-based metric.
|
|
1457
|
+
# @param [String] metric_name
|
|
1458
|
+
# The resource name of the metric to update:
|
|
1459
|
+
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
|
1460
|
+
# The updated metric must be provided in the request and it's name field must be
|
|
1461
|
+
# the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
|
|
1462
|
+
# new metric is created.
|
|
1463
|
+
# @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
|
|
1336
1464
|
# @param [String] fields
|
|
1337
1465
|
# Selector specifying which fields to include in a partial response.
|
|
1338
1466
|
# @param [String] quota_user
|
|
@@ -1342,22 +1470,21 @@ module Google
|
|
|
1342
1470
|
# Request-specific options
|
|
1343
1471
|
#
|
|
1344
1472
|
# @yield [result, err] Result & error if block supplied
|
|
1345
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
1473
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object
|
|
1346
1474
|
# @yieldparam err [StandardError] error object if request failed
|
|
1347
1475
|
#
|
|
1348
|
-
# @return [Google::Apis::LoggingV2::
|
|
1476
|
+
# @return [Google::Apis::LoggingV2::LogMetric]
|
|
1349
1477
|
#
|
|
1350
1478
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1351
1479
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1352
1480
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1353
|
-
def
|
|
1354
|
-
command = make_simple_command(:put, 'v2/{+
|
|
1355
|
-
command.request_representation = Google::Apis::LoggingV2::
|
|
1356
|
-
command.request_object =
|
|
1357
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
1358
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
1359
|
-
command.params['
|
|
1360
|
-
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
|
1481
|
+
def update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1482
|
+
command = make_simple_command(:put, 'v2/{+metricName}', options)
|
|
1483
|
+
command.request_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
|
1484
|
+
command.request_object = log_metric_object
|
|
1485
|
+
command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
|
1486
|
+
command.response_class = Google::Apis::LoggingV2::LogMetric
|
|
1487
|
+
command.params['metricName'] = metric_name unless metric_name.nil?
|
|
1361
1488
|
command.query['fields'] = fields unless fields.nil?
|
|
1362
1489
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1363
1490
|
execute_or_queue_command(command, &block)
|
|
@@ -1403,7 +1530,7 @@ module Google
|
|
|
1403
1530
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1404
1531
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1405
1532
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1406
|
-
def
|
|
1533
|
+
def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1407
1534
|
command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
|
|
1408
1535
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
1409
1536
|
command.request_object = log_sink_object
|
|
@@ -1416,18 +1543,16 @@ module Google
|
|
|
1416
1543
|
execute_or_queue_command(command, &block)
|
|
1417
1544
|
end
|
|
1418
1545
|
|
|
1419
|
-
# Deletes
|
|
1420
|
-
#
|
|
1421
|
-
#
|
|
1422
|
-
#
|
|
1423
|
-
#
|
|
1424
|
-
# "projects/[PROJECT_ID]/
|
|
1425
|
-
# "organizations/[ORGANIZATION_ID]/
|
|
1426
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/
|
|
1427
|
-
# "folders/[FOLDER_ID]/
|
|
1428
|
-
#
|
|
1429
|
-
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
1430
|
-
# 2Factivity". For more information about log names, see LogEntry.
|
|
1546
|
+
# Deletes a sink. If the sink has a unique writer_identity, then that service
|
|
1547
|
+
# account is also deleted.
|
|
1548
|
+
# @param [String] sink_name
|
|
1549
|
+
# Required. The full resource name of the sink to delete, including the parent
|
|
1550
|
+
# resource and the sink identifier:
|
|
1551
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
1552
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
1553
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
1554
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
1555
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
1431
1556
|
# @param [String] fields
|
|
1432
1557
|
# Selector specifying which fields to include in a partial response.
|
|
1433
1558
|
# @param [String] quota_user
|
|
@@ -1445,33 +1570,67 @@ module Google
|
|
|
1445
1570
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1446
1571
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1447
1572
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1448
|
-
def
|
|
1449
|
-
command = make_simple_command(:delete, 'v2/{+
|
|
1573
|
+
def delete_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1574
|
+
command = make_simple_command(:delete, 'v2/{+sinkName}', options)
|
|
1450
1575
|
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
1451
1576
|
command.response_class = Google::Apis::LoggingV2::Empty
|
|
1452
|
-
command.params['
|
|
1577
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
1453
1578
|
command.query['fields'] = fields unless fields.nil?
|
|
1454
1579
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1455
1580
|
execute_or_queue_command(command, &block)
|
|
1456
1581
|
end
|
|
1457
1582
|
|
|
1458
|
-
#
|
|
1459
|
-
#
|
|
1583
|
+
# Gets a sink.
|
|
1584
|
+
# @param [String] sink_name
|
|
1585
|
+
# Required. The resource name of the sink:
|
|
1586
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
1587
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
1588
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
1589
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
1590
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
1591
|
+
# @param [String] fields
|
|
1592
|
+
# Selector specifying which fields to include in a partial response.
|
|
1593
|
+
# @param [String] quota_user
|
|
1594
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1595
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1596
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1597
|
+
# Request-specific options
|
|
1598
|
+
#
|
|
1599
|
+
# @yield [result, err] Result & error if block supplied
|
|
1600
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
|
1601
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1602
|
+
#
|
|
1603
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
|
1604
|
+
#
|
|
1605
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1606
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1607
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1608
|
+
def get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1609
|
+
command = make_simple_command(:get, 'v2/{+sinkName}', options)
|
|
1610
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
1611
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
1612
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
1613
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1614
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1615
|
+
execute_or_queue_command(command, &block)
|
|
1616
|
+
end
|
|
1617
|
+
|
|
1618
|
+
# Lists sinks.
|
|
1460
1619
|
# @param [String] parent
|
|
1461
|
-
# Required. The resource
|
|
1620
|
+
# Required. The parent resource whose sinks are to be listed:
|
|
1462
1621
|
# "projects/[PROJECT_ID]"
|
|
1463
1622
|
# "organizations/[ORGANIZATION_ID]"
|
|
1464
1623
|
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
1465
1624
|
# "folders/[FOLDER_ID]"
|
|
1625
|
+
# @param [Fixnum] page_size
|
|
1626
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
1627
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
1628
|
+
# indicates that more results might be available.
|
|
1466
1629
|
# @param [String] page_token
|
|
1467
1630
|
# Optional. If present, then retrieve the next batch of results from the
|
|
1468
1631
|
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
1469
1632
|
# from the previous response. The values of other method parameters should be
|
|
1470
1633
|
# identical to those in the previous call.
|
|
1471
|
-
# @param [Fixnum] page_size
|
|
1472
|
-
# Optional. The maximum number of results to return from this request. Non-
|
|
1473
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
|
1474
|
-
# indicates that more results might be available.
|
|
1475
1634
|
# @param [String] fields
|
|
1476
1635
|
# Selector specifying which fields to include in a partial response.
|
|
1477
1636
|
# @param [String] quota_user
|
|
@@ -1481,29 +1640,49 @@ module Google
|
|
|
1481
1640
|
# Request-specific options
|
|
1482
1641
|
#
|
|
1483
1642
|
# @yield [result, err] Result & error if block supplied
|
|
1484
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
1643
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListSinksResponse] parsed result object
|
|
1485
1644
|
# @yieldparam err [StandardError] error object if request failed
|
|
1486
1645
|
#
|
|
1487
|
-
# @return [Google::Apis::LoggingV2::
|
|
1646
|
+
# @return [Google::Apis::LoggingV2::ListSinksResponse]
|
|
1488
1647
|
#
|
|
1489
1648
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1490
1649
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1491
1650
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1492
|
-
def
|
|
1493
|
-
command = make_simple_command(:get, 'v2/{+parent}/
|
|
1494
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
1495
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
1651
|
+
def list_project_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1652
|
+
command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
|
|
1653
|
+
command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
|
|
1654
|
+
command.response_class = Google::Apis::LoggingV2::ListSinksResponse
|
|
1496
1655
|
command.params['parent'] = parent unless parent.nil?
|
|
1497
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1498
1656
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1657
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1499
1658
|
command.query['fields'] = fields unless fields.nil?
|
|
1500
1659
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1501
1660
|
execute_or_queue_command(command, &block)
|
|
1502
1661
|
end
|
|
1503
1662
|
|
|
1504
|
-
#
|
|
1505
|
-
#
|
|
1506
|
-
#
|
|
1663
|
+
# Updates a sink. This method replaces the following fields in the existing sink
|
|
1664
|
+
# with values from the new sink: destination, filter, output_version_format,
|
|
1665
|
+
# start_time, and end_time. The updated sink might also have a new
|
|
1666
|
+
# writer_identity; see the unique_writer_identity field.
|
|
1667
|
+
# @param [String] sink_name
|
|
1668
|
+
# Required. The full resource name of the sink to update, including the parent
|
|
1669
|
+
# resource and the sink identifier:
|
|
1670
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
1671
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
1672
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
1673
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
1674
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
1675
|
+
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
|
1676
|
+
# @param [Boolean] unique_writer_identity
|
|
1677
|
+
# Optional. See sinks.create for a description of this field. When updating a
|
|
1678
|
+
# sink, the effect of this field on the value of writer_identity in the updated
|
|
1679
|
+
# sink depends on both the old and new values of this field:
|
|
1680
|
+
# If the old and new values of this field are both false or both true, then
|
|
1681
|
+
# there is no change to the sink's writer_identity.
|
|
1682
|
+
# If the old value is false and the new value is true, then writer_identity is
|
|
1683
|
+
# changed to a unique service account.
|
|
1684
|
+
# It is an error if the old value is true and the new value is set to false or
|
|
1685
|
+
# defaulted to false.
|
|
1507
1686
|
# @param [String] fields
|
|
1508
1687
|
# Selector specifying which fields to include in a partial response.
|
|
1509
1688
|
# @param [String] quota_user
|
|
@@ -1513,27 +1692,50 @@ module Google
|
|
|
1513
1692
|
# Request-specific options
|
|
1514
1693
|
#
|
|
1515
1694
|
# @yield [result, err] Result & error if block supplied
|
|
1516
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
1695
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
|
1517
1696
|
# @yieldparam err [StandardError] error object if request failed
|
|
1518
1697
|
#
|
|
1519
|
-
# @return [Google::Apis::LoggingV2::
|
|
1698
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
|
1520
1699
|
#
|
|
1521
1700
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1522
1701
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1523
1702
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1524
|
-
def
|
|
1525
|
-
command = make_simple_command(:
|
|
1526
|
-
command.request_representation = Google::Apis::LoggingV2::
|
|
1527
|
-
command.request_object =
|
|
1528
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
1529
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
1703
|
+
def patch_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1704
|
+
command = make_simple_command(:patch, 'v2/{+sinkName}', options)
|
|
1705
|
+
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
1706
|
+
command.request_object = log_sink_object
|
|
1707
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
1708
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
1709
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
1710
|
+
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
|
1530
1711
|
command.query['fields'] = fields unless fields.nil?
|
|
1531
1712
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1532
1713
|
execute_or_queue_command(command, &block)
|
|
1533
1714
|
end
|
|
1534
1715
|
|
|
1535
|
-
#
|
|
1536
|
-
#
|
|
1716
|
+
# Updates a sink. This method replaces the following fields in the existing sink
|
|
1717
|
+
# with values from the new sink: destination, filter, output_version_format,
|
|
1718
|
+
# start_time, and end_time. The updated sink might also have a new
|
|
1719
|
+
# writer_identity; see the unique_writer_identity field.
|
|
1720
|
+
# @param [String] sink_name
|
|
1721
|
+
# Required. The full resource name of the sink to update, including the parent
|
|
1722
|
+
# resource and the sink identifier:
|
|
1723
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
1724
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
1725
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
1726
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
1727
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
1728
|
+
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
|
1729
|
+
# @param [Boolean] unique_writer_identity
|
|
1730
|
+
# Optional. See sinks.create for a description of this field. When updating a
|
|
1731
|
+
# sink, the effect of this field on the value of writer_identity in the updated
|
|
1732
|
+
# sink depends on both the old and new values of this field:
|
|
1733
|
+
# If the old and new values of this field are both false or both true, then
|
|
1734
|
+
# there is no change to the sink's writer_identity.
|
|
1735
|
+
# If the old value is false and the new value is true, then writer_identity is
|
|
1736
|
+
# changed to a unique service account.
|
|
1737
|
+
# It is an error if the old value is true and the new value is set to false or
|
|
1738
|
+
# defaulted to false.
|
|
1537
1739
|
# @param [String] fields
|
|
1538
1740
|
# Selector specifying which fields to include in a partial response.
|
|
1539
1741
|
# @param [String] quota_user
|
|
@@ -1543,20 +1745,22 @@ module Google
|
|
|
1543
1745
|
# Request-specific options
|
|
1544
1746
|
#
|
|
1545
1747
|
# @yield [result, err] Result & error if block supplied
|
|
1546
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
1748
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
|
1547
1749
|
# @yieldparam err [StandardError] error object if request failed
|
|
1548
1750
|
#
|
|
1549
|
-
# @return [Google::Apis::LoggingV2::
|
|
1751
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
|
1550
1752
|
#
|
|
1551
1753
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1552
1754
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1553
1755
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1554
|
-
def
|
|
1555
|
-
command = make_simple_command(:
|
|
1556
|
-
command.request_representation = Google::Apis::LoggingV2::
|
|
1557
|
-
command.request_object =
|
|
1558
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
1559
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
1756
|
+
def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1757
|
+
command = make_simple_command(:put, 'v2/{+sinkName}', options)
|
|
1758
|
+
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
1759
|
+
command.request_object = log_sink_object
|
|
1760
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
1761
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
1762
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
1763
|
+
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
|
1560
1764
|
command.query['fields'] = fields unless fields.nil?
|
|
1561
1765
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1562
1766
|
execute_or_queue_command(command, &block)
|