google-api-client 0.9.8 → 0.10.2
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/.travis.yml +15 -8
- data/CHANGELOG.md +84 -0
- data/Gemfile +10 -2
- data/README.md +10 -2
- data/api_names.yaml +37172 -135
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +5 -5
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +256 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
- data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
- data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
- data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
- data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appsactivity_v1/service.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 +360 -38
- data/generated/google/apis/bigquery_v2/representations.rb +106 -0
- data/generated/google/apis/bigquery_v2/service.rb +18 -4
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +83 -0
- data/generated/google/apis/books_v1/representations.rb +35 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +208 -5
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -761
- data/generated/google/apis/classroom_v1/representations.rb +263 -198
- data/generated/google/apis/classroom_v1/service.rb +1349 -672
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
- data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
- data/generated/google/apis/clouddebugger_v2.rb +5 -8
- data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
- data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
- data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
- 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 +1529 -167
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
- data/generated/google/apis/cloudtrace_v1.rb +9 -9
- data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
- data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +7007 -3648
- data/generated/google/apis/compute_beta/representations.rb +1459 -120
- data/generated/google/apis/compute_beta/service.rb +7943 -3726
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2567 -370
- data/generated/google/apis/compute_v1/representations.rb +855 -0
- data/generated/google/apis/compute_v1/service.rb +6388 -2908
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +778 -10
- data/generated/google/apis/content_v2/representations.rb +339 -0
- data/generated/google/apis/content_v2/service.rb +364 -49
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
- data/generated/google/apis/dataproc_v1/representations.rb +299 -225
- data/generated/google/apis/dataproc_v1/service.rb +277 -192
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +595 -37
- data/generated/google/apis/drive_v2/representations.rb +140 -0
- data/generated/google/apis/drive_v2/service.rb +406 -40
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +507 -40
- data/generated/google/apis/drive_v3/representations.rb +105 -0
- data/generated/google/apis/drive_v3/service.rb +326 -29
- data/generated/google/apis/fitness_v1.rb +38 -2
- data/generated/google/apis/fitness_v1/classes.rb +65 -7
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- 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 +10 -12
- data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
- data/generated/google/apis/genomics_v1/representations.rb +468 -496
- data/generated/google/apis/genomics_v1/service.rb +978 -882
- data/generated/google/apis/gmail_v1.rb +11 -2
- data/generated/google/apis/gmail_v1/classes.rb +655 -5
- data/generated/google/apis/gmail_v1/representations.rb +261 -0
- data/generated/google/apis/gmail_v1/service.rb +1211 -48
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +446 -368
- data/generated/google/apis/iam_v1/representations.rb +109 -91
- data/generated/google/apis/iam_v1/service.rb +249 -162
- data/generated/google/apis/identitytoolkit_v3.rb +7 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
- data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +26 -24
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +185 -0
- data/generated/google/apis/licensing_v1.rb +3 -3
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
- data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
- data/generated/google/apis/logging_v2beta1/service.rb +427 -155
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1831 -477
- data/generated/google/apis/partners_v2/representations.rb +571 -114
- data/generated/google/apis/partners_v2/service.rb +898 -167
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +1047 -859
- data/generated/google/apis/people_v1/representations.rb +252 -213
- data/generated/google/apis/people_v1/service.rb +75 -62
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +363 -310
- data/generated/google/apis/pubsub_v1/representations.rb +76 -76
- data/generated/google/apis/pubsub_v1/service.rb +464 -335
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +222 -61
- data/generated/google/apis/reseller_v1/representations.rb +28 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +151 -137
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
- data/generated/google/apis/sheets_v4/representations.rb +988 -737
- data/generated/google/apis/sheets_v4/service.rb +266 -99
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4480 -0
- data/generated/google/apis/slides_v1/representations.rb +1926 -0
- data/generated/google/apis/slides_v1/service.rb +245 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
- data/generated/google/apis/speech_v1beta1/service.rb +270 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +205 -21
- data/generated/google/apis/storage_v1/representations.rb +51 -1
- data/generated/google/apis/storage_v1/service.rb +263 -9
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1275 -731
- data/generated/google/apis/vision_v1/representations.rb +378 -111
- data/generated/google/apis/vision_v1/service.rb +4 -4
- 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_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +430 -22
- data/generated/google/apis/youtube_v3/representations.rb +171 -4
- data/generated/google/apis/youtube_v3/service.rb +100 -9
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
- data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
- data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
- data/google-api-client.gemspec +4 -3
- data/lib/google/apis/core/api_command.rb +16 -6
- data/lib/google/apis/core/base_service.rb +17 -9
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +6 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- data/sync.rb +71 -0
- metadata +86 -18
|
@@ -20,9 +20,9 @@ require 'google/apis/errors'
|
|
|
20
20
|
module Google
|
|
21
21
|
module Apis
|
|
22
22
|
module LoggingV2beta1
|
|
23
|
-
#
|
|
23
|
+
# Stackdriver Logging API
|
|
24
24
|
#
|
|
25
|
-
# Writes log entries and manages your
|
|
25
|
+
# Writes log entries and manages your Stackdriver Logging configuration.
|
|
26
26
|
#
|
|
27
27
|
# @example
|
|
28
28
|
# require 'google/apis/logging_v2beta1'
|
|
@@ -46,11 +46,56 @@ module Google
|
|
|
46
46
|
super('https://logging.googleapis.com/', '')
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
#
|
|
50
|
-
#
|
|
49
|
+
# Lists the descriptors for monitored resource types used by Stackdriver Logging.
|
|
50
|
+
# @param [String] page_token
|
|
51
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
52
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
53
|
+
# from the previous response. The values of other method parameters should be
|
|
54
|
+
# identical to those in the previous call.
|
|
55
|
+
# @param [Fixnum] page_size
|
|
56
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
57
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
58
|
+
# indicates that more results might be available.
|
|
59
|
+
# @param [String] fields
|
|
60
|
+
# Selector specifying which fields to include in a partial response.
|
|
61
|
+
# @param [String] quota_user
|
|
62
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
63
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
64
|
+
# @param [Google::Apis::RequestOptions] options
|
|
65
|
+
# Request-specific options
|
|
66
|
+
#
|
|
67
|
+
# @yield [result, err] Result & error if block supplied
|
|
68
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse] parsed result object
|
|
69
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
70
|
+
#
|
|
71
|
+
# @return [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse]
|
|
72
|
+
#
|
|
73
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
74
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
75
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
76
|
+
def list_monitored_resource_descriptors(page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
77
|
+
command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
|
|
78
|
+
command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
|
|
79
|
+
command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
|
|
80
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
81
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
82
|
+
command.query['fields'] = fields unless fields.nil?
|
|
83
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
84
|
+
execute_or_queue_command(command, &block)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
88
|
+
# entries. Log entries written shortly before the delete operation might not be
|
|
89
|
+
# deleted.
|
|
51
90
|
# @param [String] log_name
|
|
52
|
-
# Required. The resource name of the log to delete
|
|
53
|
-
#
|
|
91
|
+
# Required. The resource name of the log to delete:
|
|
92
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
93
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
94
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
|
95
|
+
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
|
96
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
97
|
+
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
98
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
|
54
99
|
# @param [String] fields
|
|
55
100
|
# Selector specifying which fields to include in a partial response.
|
|
56
101
|
# @param [String] quota_user
|
|
@@ -68,7 +113,7 @@ module Google
|
|
|
68
113
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
69
114
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
70
115
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
71
|
-
def
|
|
116
|
+
def delete_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
72
117
|
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
|
73
118
|
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
|
74
119
|
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
|
@@ -78,20 +123,23 @@ module Google
|
|
|
78
123
|
execute_or_queue_command(command, &block)
|
|
79
124
|
end
|
|
80
125
|
|
|
81
|
-
# Lists
|
|
82
|
-
#
|
|
83
|
-
#
|
|
84
|
-
#
|
|
126
|
+
# Lists the logs in projects, organizations, folders, or billing accounts. Only
|
|
127
|
+
# logs that have entries are listed.
|
|
128
|
+
# @param [String] parent
|
|
129
|
+
# Required. The resource name that owns the logs:
|
|
130
|
+
# "projects/[PROJECT_ID]"
|
|
131
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
132
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
133
|
+
# "folders/[FOLDER_ID]"
|
|
85
134
|
# @param [String] page_token
|
|
86
|
-
# Optional. If
|
|
87
|
-
#
|
|
88
|
-
#
|
|
89
|
-
#
|
|
135
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
136
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
137
|
+
# from the previous response. The values of other method parameters should be
|
|
138
|
+
# identical to those in the previous call.
|
|
90
139
|
# @param [Fixnum] page_size
|
|
91
|
-
# Optional. The maximum number of results to return from this request.
|
|
92
|
-
#
|
|
93
|
-
#
|
|
94
|
-
# pageToken` parameter in the next request.
|
|
140
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
141
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
142
|
+
# indicates that more results might be available.
|
|
95
143
|
# @param [String] fields
|
|
96
144
|
# Selector specifying which fields to include in a partial response.
|
|
97
145
|
# @param [String] quota_user
|
|
@@ -101,19 +149,19 @@ module Google
|
|
|
101
149
|
# Request-specific options
|
|
102
150
|
#
|
|
103
151
|
# @yield [result, err] Result & error if block supplied
|
|
104
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::
|
|
152
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::ListLogsResponse] parsed result object
|
|
105
153
|
# @yieldparam err [StandardError] error object if request failed
|
|
106
154
|
#
|
|
107
|
-
# @return [Google::Apis::LoggingV2beta1::
|
|
155
|
+
# @return [Google::Apis::LoggingV2beta1::ListLogsResponse]
|
|
108
156
|
#
|
|
109
157
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
110
158
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
111
159
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
112
|
-
def
|
|
113
|
-
command = make_simple_command(:get, 'v2beta1/{+
|
|
114
|
-
command.response_representation = Google::Apis::LoggingV2beta1::
|
|
115
|
-
command.response_class = Google::Apis::LoggingV2beta1::
|
|
116
|
-
command.params['
|
|
160
|
+
def list_organization_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
161
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
|
|
162
|
+
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
|
|
163
|
+
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
|
|
164
|
+
command.params['parent'] = parent unless parent.nil?
|
|
117
165
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
118
166
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
119
167
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -121,10 +169,8 @@ module Google
|
|
|
121
169
|
execute_or_queue_command(command, &block)
|
|
122
170
|
end
|
|
123
171
|
|
|
124
|
-
#
|
|
125
|
-
# @param [
|
|
126
|
-
# The resource name of the sink to return. Example: `"projects/my-project-id/
|
|
127
|
-
# sinks/my-sink-id"`.
|
|
172
|
+
# Writes log entries to Stackdriver Logging.
|
|
173
|
+
# @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object
|
|
128
174
|
# @param [String] fields
|
|
129
175
|
# Selector specifying which fields to include in a partial response.
|
|
130
176
|
# @param [String] quota_user
|
|
@@ -134,29 +180,165 @@ module Google
|
|
|
134
180
|
# Request-specific options
|
|
135
181
|
#
|
|
136
182
|
# @yield [result, err] Result & error if block supplied
|
|
137
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::
|
|
183
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse] parsed result object
|
|
138
184
|
# @yieldparam err [StandardError] error object if request failed
|
|
139
185
|
#
|
|
140
|
-
# @return [Google::Apis::LoggingV2beta1::
|
|
186
|
+
# @return [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse]
|
|
141
187
|
#
|
|
142
188
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
143
189
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
144
190
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
145
|
-
def
|
|
146
|
-
command = make_simple_command(:
|
|
147
|
-
command.
|
|
148
|
-
command.
|
|
149
|
-
command.
|
|
191
|
+
def write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
192
|
+
command = make_simple_command(:post, 'v2beta1/entries:write', options)
|
|
193
|
+
command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
|
|
194
|
+
command.request_object = write_log_entries_request_object
|
|
195
|
+
command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
|
|
196
|
+
command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
|
|
150
197
|
command.query['fields'] = fields unless fields.nil?
|
|
151
198
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
152
199
|
execute_or_queue_command(command, &block)
|
|
153
200
|
end
|
|
154
201
|
|
|
155
|
-
#
|
|
156
|
-
#
|
|
157
|
-
#
|
|
158
|
-
#
|
|
202
|
+
# Lists log entries. Use this method to retrieve log entries from Stackdriver
|
|
203
|
+
# Logging. For ways to export log entries, see Exporting Logs.
|
|
204
|
+
# @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object
|
|
205
|
+
# @param [String] fields
|
|
206
|
+
# Selector specifying which fields to include in a partial response.
|
|
207
|
+
# @param [String] quota_user
|
|
208
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
209
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
210
|
+
# @param [Google::Apis::RequestOptions] options
|
|
211
|
+
# Request-specific options
|
|
212
|
+
#
|
|
213
|
+
# @yield [result, err] Result & error if block supplied
|
|
214
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::ListLogEntriesResponse] parsed result object
|
|
215
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
216
|
+
#
|
|
217
|
+
# @return [Google::Apis::LoggingV2beta1::ListLogEntriesResponse]
|
|
218
|
+
#
|
|
219
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
220
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
221
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
222
|
+
def list_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
223
|
+
command = make_simple_command(:post, 'v2beta1/entries:list', options)
|
|
224
|
+
command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
|
|
225
|
+
command.request_object = list_log_entries_request_object
|
|
226
|
+
command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
|
|
227
|
+
command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
|
|
228
|
+
command.query['fields'] = fields unless fields.nil?
|
|
229
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
230
|
+
execute_or_queue_command(command, &block)
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
234
|
+
# entries. Log entries written shortly before the delete operation might not be
|
|
235
|
+
# deleted.
|
|
236
|
+
# @param [String] log_name
|
|
237
|
+
# Required. The resource name of the log to delete:
|
|
238
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
239
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
240
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
|
241
|
+
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
|
242
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
243
|
+
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
244
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
|
245
|
+
# @param [String] fields
|
|
246
|
+
# Selector specifying which fields to include in a partial response.
|
|
247
|
+
# @param [String] quota_user
|
|
248
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
249
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
250
|
+
# @param [Google::Apis::RequestOptions] options
|
|
251
|
+
# Request-specific options
|
|
252
|
+
#
|
|
253
|
+
# @yield [result, err] Result & error if block supplied
|
|
254
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
|
|
255
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
256
|
+
#
|
|
257
|
+
# @return [Google::Apis::LoggingV2beta1::Empty]
|
|
258
|
+
#
|
|
259
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
260
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
261
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
262
|
+
def delete_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
263
|
+
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
|
264
|
+
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
|
265
|
+
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
|
266
|
+
command.params['logName'] = log_name unless log_name.nil?
|
|
267
|
+
command.query['fields'] = fields unless fields.nil?
|
|
268
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
269
|
+
execute_or_queue_command(command, &block)
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# Lists the logs in projects, organizations, folders, or billing accounts. Only
|
|
273
|
+
# logs that have entries are listed.
|
|
274
|
+
# @param [String] parent
|
|
275
|
+
# Required. The resource name that owns the logs:
|
|
276
|
+
# "projects/[PROJECT_ID]"
|
|
277
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
278
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
279
|
+
# "folders/[FOLDER_ID]"
|
|
280
|
+
# @param [String] page_token
|
|
281
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
282
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
283
|
+
# from the previous response. The values of other method parameters should be
|
|
284
|
+
# identical to those in the previous call.
|
|
285
|
+
# @param [Fixnum] page_size
|
|
286
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
287
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
288
|
+
# indicates that more results might be available.
|
|
289
|
+
# @param [String] fields
|
|
290
|
+
# Selector specifying which fields to include in a partial response.
|
|
291
|
+
# @param [String] quota_user
|
|
292
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
293
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
294
|
+
# @param [Google::Apis::RequestOptions] options
|
|
295
|
+
# Request-specific options
|
|
296
|
+
#
|
|
297
|
+
# @yield [result, err] Result & error if block supplied
|
|
298
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::ListLogsResponse] parsed result object
|
|
299
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
300
|
+
#
|
|
301
|
+
# @return [Google::Apis::LoggingV2beta1::ListLogsResponse]
|
|
302
|
+
#
|
|
303
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
304
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
305
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
306
|
+
def list_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
307
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
|
|
308
|
+
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
|
|
309
|
+
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
|
|
310
|
+
command.params['parent'] = parent unless parent.nil?
|
|
311
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
312
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
313
|
+
command.query['fields'] = fields unless fields.nil?
|
|
314
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
315
|
+
execute_or_queue_command(command, &block)
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# Updates a sink. If the named sink doesn't exist, then this method is identical
|
|
319
|
+
# to sinks.create. If the named sink does exist, then this method replaces the
|
|
320
|
+
# following fields in the existing sink with values from the new sink:
|
|
321
|
+
# destination, filter, output_version_format, start_time, and end_time. The
|
|
322
|
+
# updated filter might also have a new writer_identity; see the
|
|
323
|
+
# unique_writer_identity field.
|
|
324
|
+
# @param [String] sink_name
|
|
325
|
+
# Required. The full resource name of the sink to update, including the parent
|
|
326
|
+
# resource and the sink identifier:
|
|
327
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
328
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
329
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
330
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
331
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
159
332
|
# @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
|
|
333
|
+
# @param [Boolean] unique_writer_identity
|
|
334
|
+
# Optional. See sinks.create for a description of this field. When updating a
|
|
335
|
+
# sink, the effect of this field on the value of writer_identity in the updated
|
|
336
|
+
# sink depends on both the old and new values of this field:
|
|
337
|
+
# If the old and new values of this field are both false or both true, then
|
|
338
|
+
# there is no change to the sink's writer_identity.
|
|
339
|
+
# If the old value is false and the new value is true, then writer_identity is
|
|
340
|
+
# changed to a unique service account.
|
|
341
|
+
# It is an error if the old value is true and the new value is false.
|
|
160
342
|
# @param [String] fields
|
|
161
343
|
# Selector specifying which fields to include in a partial response.
|
|
162
344
|
# @param [String] quota_user
|
|
@@ -174,25 +356,42 @@ module Google
|
|
|
174
356
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
175
357
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
176
358
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
177
|
-
def
|
|
178
|
-
command = make_simple_command(:
|
|
359
|
+
def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
360
|
+
command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
|
|
179
361
|
command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
|
|
180
362
|
command.request_object = log_sink_object
|
|
181
363
|
command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
|
|
182
364
|
command.response_class = Google::Apis::LoggingV2beta1::LogSink
|
|
183
|
-
command.params['
|
|
365
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
366
|
+
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
|
184
367
|
command.query['fields'] = fields unless fields.nil?
|
|
185
368
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
186
369
|
execute_or_queue_command(command, &block)
|
|
187
370
|
end
|
|
188
371
|
|
|
189
|
-
# Creates
|
|
190
|
-
#
|
|
191
|
-
#
|
|
192
|
-
#
|
|
193
|
-
#
|
|
194
|
-
#
|
|
372
|
+
# Creates a sink that exports specified log entries to a destination. The export
|
|
373
|
+
# of newly-ingested log entries begins immediately, unless the current time is
|
|
374
|
+
# outside the sink's start and end times or the sink's writer_identity is not
|
|
375
|
+
# permitted to write to the destination. A sink can export log entries only from
|
|
376
|
+
# the resource owning the sink.
|
|
377
|
+
# @param [String] parent
|
|
378
|
+
# Required. The resource in which to create the sink:
|
|
379
|
+
# "projects/[PROJECT_ID]"
|
|
380
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
381
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
382
|
+
# "folders/[FOLDER_ID]"
|
|
383
|
+
# Examples: "projects/my-logging-project", "organizations/123456789".
|
|
195
384
|
# @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
|
|
385
|
+
# @param [Boolean] unique_writer_identity
|
|
386
|
+
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
|
387
|
+
# the new sink. If this value is omitted or set to false, and if the sink's
|
|
388
|
+
# parent is a project, then the value returned as writer_identity is the same
|
|
389
|
+
# group or service account used by Stackdriver Logging before the addition of
|
|
390
|
+
# writer identities to this API. The sink's destination must be in the same
|
|
391
|
+
# project as the sink itself.If this field is set to true, or if the sink is
|
|
392
|
+
# owned by a non-project resource such as an organization, then the value of
|
|
393
|
+
# writer_identity will be a unique service account used only for exports from
|
|
394
|
+
# the new sink. For more information, see writer_identity in LogSink.
|
|
196
395
|
# @param [String] fields
|
|
197
396
|
# Selector specifying which fields to include in a partial response.
|
|
198
397
|
# @param [String] quota_user
|
|
@@ -210,22 +409,29 @@ module Google
|
|
|
210
409
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
211
410
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
212
411
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
213
|
-
def
|
|
214
|
-
command = make_simple_command(:
|
|
412
|
+
def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
413
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/sinks', options)
|
|
215
414
|
command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
|
|
216
415
|
command.request_object = log_sink_object
|
|
217
416
|
command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
|
|
218
417
|
command.response_class = Google::Apis::LoggingV2beta1::LogSink
|
|
219
|
-
command.params['
|
|
418
|
+
command.params['parent'] = parent unless parent.nil?
|
|
419
|
+
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
|
220
420
|
command.query['fields'] = fields unless fields.nil?
|
|
221
421
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
222
422
|
execute_or_queue_command(command, &block)
|
|
223
423
|
end
|
|
224
424
|
|
|
225
|
-
# Deletes a sink.
|
|
425
|
+
# Deletes a sink. If the sink has a unique writer_identity, then that service
|
|
426
|
+
# account is also deleted.
|
|
226
427
|
# @param [String] sink_name
|
|
227
|
-
# The resource name of the sink to delete
|
|
228
|
-
#
|
|
428
|
+
# Required. The full resource name of the sink to delete, including the parent
|
|
429
|
+
# resource and the sink identifier:
|
|
430
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
431
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
432
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
433
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
434
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
229
435
|
# @param [String] fields
|
|
230
436
|
# Selector specifying which fields to include in a partial response.
|
|
231
437
|
# @param [String] quota_user
|
|
@@ -253,20 +459,22 @@ module Google
|
|
|
253
459
|
execute_or_queue_command(command, &block)
|
|
254
460
|
end
|
|
255
461
|
|
|
256
|
-
# Lists
|
|
257
|
-
# @param [String]
|
|
258
|
-
# Required. The resource
|
|
259
|
-
# projects/
|
|
462
|
+
# Lists sinks.
|
|
463
|
+
# @param [String] parent
|
|
464
|
+
# Required. The parent resource whose sinks are to be listed:
|
|
465
|
+
# "projects/[PROJECT_ID]"
|
|
466
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
467
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
468
|
+
# "folders/[FOLDER_ID]"
|
|
260
469
|
# @param [String] page_token
|
|
261
|
-
# Optional. If
|
|
262
|
-
#
|
|
263
|
-
#
|
|
264
|
-
#
|
|
470
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
471
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
472
|
+
# from the previous response. The values of other method parameters should be
|
|
473
|
+
# identical to those in the previous call.
|
|
265
474
|
# @param [Fixnum] page_size
|
|
266
|
-
# Optional. The maximum number of results to return from this request.
|
|
267
|
-
#
|
|
268
|
-
#
|
|
269
|
-
# pageToken` parameter in the next request.
|
|
475
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
476
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
477
|
+
# indicates that more results might be available.
|
|
270
478
|
# @param [String] fields
|
|
271
479
|
# Selector specifying which fields to include in a partial response.
|
|
272
480
|
# @param [String] quota_user
|
|
@@ -276,19 +484,19 @@ module Google
|
|
|
276
484
|
# Request-specific options
|
|
277
485
|
#
|
|
278
486
|
# @yield [result, err] Result & error if block supplied
|
|
279
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::
|
|
487
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::ListSinksResponse] parsed result object
|
|
280
488
|
# @yieldparam err [StandardError] error object if request failed
|
|
281
489
|
#
|
|
282
|
-
# @return [Google::Apis::LoggingV2beta1::
|
|
490
|
+
# @return [Google::Apis::LoggingV2beta1::ListSinksResponse]
|
|
283
491
|
#
|
|
284
492
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
285
493
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
286
494
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
287
|
-
def
|
|
288
|
-
command = make_simple_command(:get, 'v2beta1/{+
|
|
289
|
-
command.response_representation = Google::Apis::LoggingV2beta1::
|
|
290
|
-
command.response_class = Google::Apis::LoggingV2beta1::
|
|
291
|
-
command.params['
|
|
495
|
+
def list_project_sinks(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
496
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options)
|
|
497
|
+
command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
|
|
498
|
+
command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
|
|
499
|
+
command.params['parent'] = parent unless parent.nil?
|
|
292
500
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
293
501
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
294
502
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -296,10 +504,45 @@ module Google
|
|
|
296
504
|
execute_or_queue_command(command, &block)
|
|
297
505
|
end
|
|
298
506
|
|
|
299
|
-
# Gets a
|
|
507
|
+
# Gets a sink.
|
|
508
|
+
# @param [String] sink_name
|
|
509
|
+
# Required. The resource name of the sink:
|
|
510
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
511
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
512
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
513
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
514
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
515
|
+
# @param [String] fields
|
|
516
|
+
# Selector specifying which fields to include in a partial response.
|
|
517
|
+
# @param [String] quota_user
|
|
518
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
519
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
520
|
+
# @param [Google::Apis::RequestOptions] options
|
|
521
|
+
# Request-specific options
|
|
522
|
+
#
|
|
523
|
+
# @yield [result, err] Result & error if block supplied
|
|
524
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
|
|
525
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
526
|
+
#
|
|
527
|
+
# @return [Google::Apis::LoggingV2beta1::LogSink]
|
|
528
|
+
#
|
|
529
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
530
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
531
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
532
|
+
def get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
533
|
+
command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
|
|
534
|
+
command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
|
|
535
|
+
command.response_class = Google::Apis::LoggingV2beta1::LogSink
|
|
536
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
537
|
+
command.query['fields'] = fields unless fields.nil?
|
|
538
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
539
|
+
execute_or_queue_command(command, &block)
|
|
540
|
+
end
|
|
541
|
+
|
|
542
|
+
# Deletes a logs-based metric.
|
|
300
543
|
# @param [String] metric_name
|
|
301
|
-
# The resource name of the
|
|
302
|
-
# metrics/
|
|
544
|
+
# The resource name of the metric to delete:
|
|
545
|
+
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
|
303
546
|
# @param [String] fields
|
|
304
547
|
# Selector specifying which fields to include in a partial response.
|
|
305
548
|
# @param [String] quota_user
|
|
@@ -309,29 +552,37 @@ module Google
|
|
|
309
552
|
# Request-specific options
|
|
310
553
|
#
|
|
311
554
|
# @yield [result, err] Result & error if block supplied
|
|
312
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::
|
|
555
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
|
|
313
556
|
# @yieldparam err [StandardError] error object if request failed
|
|
314
557
|
#
|
|
315
|
-
# @return [Google::Apis::LoggingV2beta1::
|
|
558
|
+
# @return [Google::Apis::LoggingV2beta1::Empty]
|
|
316
559
|
#
|
|
317
560
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
318
561
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
319
562
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
320
|
-
def
|
|
321
|
-
command = make_simple_command(:
|
|
322
|
-
command.response_representation = Google::Apis::LoggingV2beta1::
|
|
323
|
-
command.response_class = Google::Apis::LoggingV2beta1::
|
|
563
|
+
def delete_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
564
|
+
command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
|
|
565
|
+
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
|
566
|
+
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
|
324
567
|
command.params['metricName'] = metric_name unless metric_name.nil?
|
|
325
568
|
command.query['fields'] = fields unless fields.nil?
|
|
326
569
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
327
570
|
execute_or_queue_command(command, &block)
|
|
328
571
|
end
|
|
329
572
|
|
|
330
|
-
#
|
|
331
|
-
# @param [String]
|
|
332
|
-
# The
|
|
333
|
-
# projects/
|
|
334
|
-
# @param [
|
|
573
|
+
# Lists logs-based metrics.
|
|
574
|
+
# @param [String] parent
|
|
575
|
+
# Required. The name of the project containing the metrics:
|
|
576
|
+
# "projects/[PROJECT_ID]"
|
|
577
|
+
# @param [String] page_token
|
|
578
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
579
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
580
|
+
# from the previous response. The values of other method parameters should be
|
|
581
|
+
# identical to those in the previous call.
|
|
582
|
+
# @param [Fixnum] page_size
|
|
583
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
584
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
585
|
+
# indicates that more results might be available.
|
|
335
586
|
# @param [String] fields
|
|
336
587
|
# Selector specifying which fields to include in a partial response.
|
|
337
588
|
# @param [String] quota_user
|
|
@@ -341,33 +592,30 @@ module Google
|
|
|
341
592
|
# Request-specific options
|
|
342
593
|
#
|
|
343
594
|
# @yield [result, err] Result & error if block supplied
|
|
344
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::
|
|
595
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] parsed result object
|
|
345
596
|
# @yieldparam err [StandardError] error object if request failed
|
|
346
597
|
#
|
|
347
|
-
# @return [Google::Apis::LoggingV2beta1::
|
|
598
|
+
# @return [Google::Apis::LoggingV2beta1::ListLogMetricsResponse]
|
|
348
599
|
#
|
|
349
600
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
350
601
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
351
602
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
352
|
-
def
|
|
353
|
-
command = make_simple_command(:
|
|
354
|
-
command.
|
|
355
|
-
command.
|
|
356
|
-
command.
|
|
357
|
-
command.
|
|
358
|
-
command.
|
|
603
|
+
def list_project_metrics(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
604
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options)
|
|
605
|
+
command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
|
|
606
|
+
command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
|
|
607
|
+
command.params['parent'] = parent unless parent.nil?
|
|
608
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
609
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
359
610
|
command.query['fields'] = fields unless fields.nil?
|
|
360
611
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
361
612
|
execute_or_queue_command(command, &block)
|
|
362
613
|
end
|
|
363
614
|
|
|
364
|
-
#
|
|
615
|
+
# Gets a logs-based metric.
|
|
365
616
|
# @param [String] metric_name
|
|
366
|
-
# The resource name of the metric
|
|
367
|
-
# metrics/
|
|
368
|
-
# have the same identifier that is specified in `metricName`. If the metric does
|
|
369
|
-
# not exist, it is created.
|
|
370
|
-
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
|
|
617
|
+
# The resource name of the desired metric:
|
|
618
|
+
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
|
371
619
|
# @param [String] fields
|
|
372
620
|
# Selector specifying which fields to include in a partial response.
|
|
373
621
|
# @param [String] quota_user
|
|
@@ -385,10 +633,8 @@ module Google
|
|
|
385
633
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
386
634
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
387
635
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
388
|
-
def
|
|
389
|
-
command = make_simple_command(:
|
|
390
|
-
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
|
391
|
-
command.request_object = log_metric_object
|
|
636
|
+
def get_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
637
|
+
command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
|
|
392
638
|
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
|
393
639
|
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
|
|
394
640
|
command.params['metricName'] = metric_name unless metric_name.nil?
|
|
@@ -397,10 +643,14 @@ module Google
|
|
|
397
643
|
execute_or_queue_command(command, &block)
|
|
398
644
|
end
|
|
399
645
|
|
|
400
|
-
#
|
|
646
|
+
# Creates or updates a logs-based metric.
|
|
401
647
|
# @param [String] metric_name
|
|
402
|
-
# The resource name of the metric to
|
|
403
|
-
# metrics/
|
|
648
|
+
# The resource name of the metric to update:
|
|
649
|
+
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
|
650
|
+
# The updated metric must be provided in the request and it's name field must be
|
|
651
|
+
# the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
|
|
652
|
+
# new metric is created.
|
|
653
|
+
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
|
|
404
654
|
# @param [String] fields
|
|
405
655
|
# Selector specifying which fields to include in a partial response.
|
|
406
656
|
# @param [String] quota_user
|
|
@@ -410,27 +660,32 @@ module Google
|
|
|
410
660
|
# Request-specific options
|
|
411
661
|
#
|
|
412
662
|
# @yield [result, err] Result & error if block supplied
|
|
413
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::
|
|
663
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
|
|
414
664
|
# @yieldparam err [StandardError] error object if request failed
|
|
415
665
|
#
|
|
416
|
-
# @return [Google::Apis::LoggingV2beta1::
|
|
666
|
+
# @return [Google::Apis::LoggingV2beta1::LogMetric]
|
|
417
667
|
#
|
|
418
668
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
419
669
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
420
670
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
421
|
-
def
|
|
422
|
-
command = make_simple_command(:
|
|
423
|
-
command.
|
|
424
|
-
command.
|
|
671
|
+
def update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
672
|
+
command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
|
|
673
|
+
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
|
674
|
+
command.request_object = log_metric_object
|
|
675
|
+
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
|
676
|
+
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
|
|
425
677
|
command.params['metricName'] = metric_name unless metric_name.nil?
|
|
426
678
|
command.query['fields'] = fields unless fields.nil?
|
|
427
679
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
428
680
|
execute_or_queue_command(command, &block)
|
|
429
681
|
end
|
|
430
682
|
|
|
431
|
-
#
|
|
432
|
-
#
|
|
433
|
-
#
|
|
683
|
+
# Creates a logs-based metric.
|
|
684
|
+
# @param [String] parent
|
|
685
|
+
# The resource name of the project in which to create the metric:
|
|
686
|
+
# "projects/[PROJECT_ID]"
|
|
687
|
+
# The new metric must be provided in the request.
|
|
688
|
+
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
|
|
434
689
|
# @param [String] fields
|
|
435
690
|
# Selector specifying which fields to include in a partial response.
|
|
436
691
|
# @param [String] quota_user
|
|
@@ -440,28 +695,38 @@ module Google
|
|
|
440
695
|
# Request-specific options
|
|
441
696
|
#
|
|
442
697
|
# @yield [result, err] Result & error if block supplied
|
|
443
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::
|
|
698
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
|
|
444
699
|
# @yieldparam err [StandardError] error object if request failed
|
|
445
700
|
#
|
|
446
|
-
# @return [Google::Apis::LoggingV2beta1::
|
|
701
|
+
# @return [Google::Apis::LoggingV2beta1::LogMetric]
|
|
447
702
|
#
|
|
448
703
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
449
704
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
450
705
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
451
|
-
def
|
|
452
|
-
command = make_simple_command(:post, 'v2beta1/
|
|
453
|
-
command.request_representation = Google::Apis::LoggingV2beta1::
|
|
454
|
-
command.request_object =
|
|
455
|
-
command.response_representation = Google::Apis::LoggingV2beta1::
|
|
456
|
-
command.response_class = Google::Apis::LoggingV2beta1::
|
|
706
|
+
def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
707
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
|
|
708
|
+
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
|
709
|
+
command.request_object = log_metric_object
|
|
710
|
+
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
|
711
|
+
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
|
|
712
|
+
command.params['parent'] = parent unless parent.nil?
|
|
457
713
|
command.query['fields'] = fields unless fields.nil?
|
|
458
714
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
459
715
|
execute_or_queue_command(command, &block)
|
|
460
716
|
end
|
|
461
717
|
|
|
462
|
-
#
|
|
463
|
-
#
|
|
464
|
-
#
|
|
718
|
+
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
719
|
+
# entries. Log entries written shortly before the delete operation might not be
|
|
720
|
+
# deleted.
|
|
721
|
+
# @param [String] log_name
|
|
722
|
+
# Required. The resource name of the log to delete:
|
|
723
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
724
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
725
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
|
726
|
+
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
|
727
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
728
|
+
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
729
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
|
465
730
|
# @param [String] fields
|
|
466
731
|
# Selector specifying which fields to include in a partial response.
|
|
467
732
|
# @param [String] quota_user
|
|
@@ -471,35 +736,41 @@ module Google
|
|
|
471
736
|
# Request-specific options
|
|
472
737
|
#
|
|
473
738
|
# @yield [result, err] Result & error if block supplied
|
|
474
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::
|
|
739
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
|
|
475
740
|
# @yieldparam err [StandardError] error object if request failed
|
|
476
741
|
#
|
|
477
|
-
# @return [Google::Apis::LoggingV2beta1::
|
|
742
|
+
# @return [Google::Apis::LoggingV2beta1::Empty]
|
|
478
743
|
#
|
|
479
744
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
480
745
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
481
746
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
482
|
-
def
|
|
483
|
-
command = make_simple_command(:
|
|
484
|
-
command.
|
|
485
|
-
command.
|
|
486
|
-
command.
|
|
487
|
-
command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
|
|
747
|
+
def delete_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
748
|
+
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
|
749
|
+
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
|
750
|
+
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
|
751
|
+
command.params['logName'] = log_name unless log_name.nil?
|
|
488
752
|
command.query['fields'] = fields unless fields.nil?
|
|
489
753
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
490
754
|
execute_or_queue_command(command, &block)
|
|
491
755
|
end
|
|
492
756
|
|
|
493
|
-
# Lists
|
|
494
|
-
#
|
|
495
|
-
#
|
|
496
|
-
#
|
|
497
|
-
#
|
|
498
|
-
#
|
|
757
|
+
# Lists the logs in projects, organizations, folders, or billing accounts. Only
|
|
758
|
+
# logs that have entries are listed.
|
|
759
|
+
# @param [String] parent
|
|
760
|
+
# Required. The resource name that owns the logs:
|
|
761
|
+
# "projects/[PROJECT_ID]"
|
|
762
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
763
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
764
|
+
# "folders/[FOLDER_ID]"
|
|
499
765
|
# @param [String] page_token
|
|
500
|
-
# Optional. If
|
|
501
|
-
#
|
|
502
|
-
#
|
|
766
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
767
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
768
|
+
# from the previous response. The values of other method parameters should be
|
|
769
|
+
# identical to those in the previous call.
|
|
770
|
+
# @param [Fixnum] page_size
|
|
771
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
772
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
773
|
+
# indicates that more results might be available.
|
|
503
774
|
# @param [String] fields
|
|
504
775
|
# Selector specifying which fields to include in a partial response.
|
|
505
776
|
# @param [String] quota_user
|
|
@@ -509,20 +780,21 @@ module Google
|
|
|
509
780
|
# Request-specific options
|
|
510
781
|
#
|
|
511
782
|
# @yield [result, err] Result & error if block supplied
|
|
512
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::
|
|
783
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::ListLogsResponse] parsed result object
|
|
513
784
|
# @yieldparam err [StandardError] error object if request failed
|
|
514
785
|
#
|
|
515
|
-
# @return [Google::Apis::LoggingV2beta1::
|
|
786
|
+
# @return [Google::Apis::LoggingV2beta1::ListLogsResponse]
|
|
516
787
|
#
|
|
517
788
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
518
789
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
519
790
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
520
|
-
def
|
|
521
|
-
command = make_simple_command(:get, 'v2beta1/
|
|
522
|
-
command.response_representation = Google::Apis::LoggingV2beta1::
|
|
523
|
-
command.response_class = Google::Apis::LoggingV2beta1::
|
|
524
|
-
command.
|
|
791
|
+
def list_billing_account_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
792
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
|
|
793
|
+
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
|
|
794
|
+
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
|
|
795
|
+
command.params['parent'] = parent unless parent.nil?
|
|
525
796
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
797
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
526
798
|
command.query['fields'] = fields unless fields.nil?
|
|
527
799
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
528
800
|
execute_or_queue_command(command, &block)
|