google-api-client 0.12.0 → 0.13.0
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 +7 -0
- data/api_names.yaml +945 -41609
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +12 -12
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1437 -412
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +516 -71
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1098 -422
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
- data/generated/google/apis/admin_directory_v1/service.rb +26 -26
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
- data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
- data/generated/google/apis/adsense_v1_4/service.rb +44 -44
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
- data/generated/google/apis/analytics_v3/classes.rb +3 -3
- data/generated/google/apis/analytics_v3/representations.rb +3 -3
- data/generated/google/apis/analytics_v3/service.rb +82 -82
- data/generated/google/apis/analyticsreporting_v4/classes.rb +937 -937
- data/generated/google/apis/analyticsreporting_v4/representations.rb +128 -128
- data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
- data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
- data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
- data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
- data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1570 -1512
- data/generated/google/apis/appengine_v1/representations.rb +362 -343
- data/generated/google/apis/appengine_v1/service.rb +220 -220
- 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 +5 -5
- data/generated/google/apis/bigquery_v2/representations.rb +8 -8
- data/generated/google/apis/bigquery_v2/service.rb +13 -13
- data/generated/google/apis/blogger_v3/service.rb +3 -3
- data/generated/google/apis/books_v1/classes.rb +55 -55
- data/generated/google/apis/books_v1/representations.rb +67 -67
- data/generated/google/apis/books_v1/service.rb +82 -82
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +6 -6
- data/generated/google/apis/calendar_v3/representations.rb +3 -3
- data/generated/google/apis/calendar_v3/service.rb +2 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +2 -2
- data/generated/google/apis/civicinfo_v2/representations.rb +4 -4
- data/generated/google/apis/civicinfo_v2/service.rb +12 -12
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +1013 -991
- data/generated/google/apis/classroom_v1/representations.rb +207 -204
- data/generated/google/apis/classroom_v1/service.rb +709 -709
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +307 -307
- data/generated/google/apis/cloudbuild_v1/representations.rb +84 -84
- data/generated/google/apis/cloudbuild_v1/service.rb +125 -125
- data/generated/google/apis/clouddebugger_v2/classes.rb +673 -673
- data/generated/google/apis/clouddebugger_v2/representations.rb +152 -152
- data/generated/google/apis/clouddebugger_v2/service.rb +55 -55
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +121 -121
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +25 -25
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +74 -74
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +668 -613
- data/generated/google/apis/cloudkms_v1/representations.rb +151 -133
- data/generated/google/apis/cloudkms_v1/service.rb +267 -267
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1167 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +193 -193
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +470 -469
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +508 -509
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +94 -94
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +157 -156
- data/generated/google/apis/cloudtrace_v1/service.rb +34 -34
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +163 -15
- data/generated/google/apis/compute_beta/representations.rb +54 -14
- data/generated/google/apis/compute_beta/service.rb +2258 -482
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +465 -13
- data/generated/google/apis/compute_v1/representations.rb +202 -16
- data/generated/google/apis/compute_v1/service.rb +573 -309
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +635 -589
- data/generated/google/apis/container_v1/representations.rb +139 -111
- data/generated/google/apis/container_v1/service.rb +272 -227
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +86 -74
- data/generated/google/apis/content_v2/representations.rb +107 -105
- data/generated/google/apis/content_v2/service.rb +131 -130
- data/generated/google/apis/customsearch_v1.rb +2 -2
- data/generated/google/apis/customsearch_v1/classes.rb +0 -6
- data/generated/google/apis/customsearch_v1/representations.rb +0 -1
- data/generated/google/apis/customsearch_v1/service.rb +2 -5
- data/generated/google/apis/dataflow_v1b3.rb +7 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3405 -3405
- data/generated/google/apis/dataflow_v1b3/representations.rb +834 -834
- data/generated/google/apis/dataflow_v1b3/service.rb +244 -244
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +543 -691
- data/generated/google/apis/dataproc_v1/representations.rb +129 -185
- data/generated/google/apis/dataproc_v1/service.rb +347 -347
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +833 -833
- data/generated/google/apis/datastore_v1/representations.rb +182 -182
- data/generated/google/apis/datastore_v1/service.rb +45 -45
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
- data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
- data/generated/google/apis/discovery_v1/classes.rb +4 -4
- data/generated/google/apis/discovery_v1/representations.rb +2 -2
- data/generated/google/apis/discovery_v1/service.rb +1 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +3 -3
- data/generated/google/apis/dns_v1/representations.rb +6 -6
- data/generated/google/apis/dns_v1/service.rb +12 -12
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +160 -110
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +60 -31
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +38 -3
- data/generated/google/apis/firebaserules_v1/classes.rb +354 -354
- data/generated/google/apis/firebaserules_v1/representations.rb +87 -87
- data/generated/google/apis/firebaserules_v1/service.rb +103 -103
- data/generated/google/apis/fusiontables_v2/service.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
- data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +23 -23
- data/generated/google/apis/games_v1/representations.rb +43 -43
- data/generated/google/apis/games_v1/service.rb +72 -72
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2316 -2316
- data/generated/google/apis/genomics_v1/representations.rb +291 -291
- data/generated/google/apis/genomics_v1/service.rb +821 -821
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/groupsmigration_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +2 -2
- data/generated/google/apis/groupssettings_v1/service.rb +3 -0
- data/generated/google/apis/iam_v1/classes.rb +338 -338
- data/generated/google/apis/iam_v1/representations.rb +98 -98
- data/generated/google/apis/iam_v1/service.rb +35 -35
- data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
- data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
- data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
- data/generated/google/apis/kgsearch_v1/service.rb +13 -13
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +374 -374
- data/generated/google/apis/language_v1/representations.rb +97 -97
- data/generated/google/apis/language_v1/service.rb +16 -16
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +441 -441
- data/generated/google/apis/language_v1beta1/representations.rb +108 -108
- data/generated/google/apis/language_v1beta1/service.rb +30 -30
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +712 -712
- data/generated/google/apis/logging_v2/representations.rb +109 -109
- data/generated/google/apis/logging_v2/service.rb +543 -539
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +752 -752
- data/generated/google/apis/logging_v2beta1/representations.rb +94 -94
- data/generated/google/apis/logging_v2beta1/service.rb +257 -256
- data/generated/google/apis/manufacturers_v1/classes.rb +130 -130
- data/generated/google/apis/manufacturers_v1/representations.rb +28 -28
- data/generated/google/apis/mirror_v1/classes.rb +5 -5
- data/generated/google/apis/mirror_v1/representations.rb +10 -10
- data/generated/google/apis/mirror_v1/service.rb +20 -20
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1830 -1210
- data/generated/google/apis/ml_v1/representations.rb +342 -120
- data/generated/google/apis/ml_v1/service.rb +365 -258
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +889 -889
- data/generated/google/apis/monitoring_v3/representations.rb +174 -174
- data/generated/google/apis/monitoring_v3/service.rb +119 -119
- data/generated/google/apis/mybusiness_v3/service.rb +5 -5
- data/generated/google/apis/oauth2_v2/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
- data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +550 -536
- data/generated/google/apis/partners_v2/representations.rb +118 -116
- data/generated/google/apis/partners_v2/service.rb +439 -439
- data/generated/google/apis/people_v1.rb +4 -4
- data/generated/google/apis/people_v1/classes.rb +414 -413
- data/generated/google/apis/people_v1/representations.rb +85 -85
- data/generated/google/apis/people_v1/service.rb +111 -18
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +4 -4
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -8
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +443 -443
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +92 -92
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +152 -152
- data/generated/google/apis/pubsub_v1/classes.rb +249 -249
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +415 -415
- data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
- data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
- data/generated/google/apis/qpx_express_v1/service.rb +8 -8
- data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
- data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
- data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
- data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
- data/generated/google/apis/script_v1.rb +17 -17
- data/generated/google/apis/script_v1/classes.rb +27 -27
- data/generated/google/apis/script_v1/representations.rb +5 -5
- data/generated/google/apis/script_v1/service.rb +4 -4
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +53 -53
- data/generated/google/apis/searchconsole_v1/representations.rb +23 -23
- data/generated/google/apis/searchconsole_v1/service.rb +4 -4
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1175 -1175
- data/generated/google/apis/servicecontrol_v1/representations.rb +206 -206
- data/generated/google/apis/servicecontrol_v1/service.rb +116 -116
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1186 -1125
- data/generated/google/apis/servicemanagement_v1/representations.rb +241 -223
- data/generated/google/apis/servicemanagement_v1/service.rb +201 -201
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2645 -2641
- data/generated/google/apis/serviceuser_v1/representations.rb +234 -234
- data/generated/google/apis/serviceuser_v1/service.rb +37 -37
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +5042 -4111
- data/generated/google/apis/sheets_v4/representations.rb +994 -824
- data/generated/google/apis/sheets_v4/service.rb +80 -80
- data/generated/google/apis/site_verification_v1/classes.rb +6 -6
- data/generated/google/apis/site_verification_v1/representations.rb +8 -8
- data/generated/google/apis/site_verification_v1/service.rb +12 -12
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2885 -2885
- data/generated/google/apis/slides_v1/representations.rb +310 -310
- data/generated/google/apis/slides_v1/service.rb +54 -54
- data/generated/google/apis/sourcerepo_v1/classes.rb +206 -206
- data/generated/google/apis/sourcerepo_v1/representations.rb +52 -52
- data/generated/google/apis/sourcerepo_v1/service.rb +5 -5
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +2142 -2141
- data/generated/google/apis/spanner_v1/representations.rb +174 -174
- data/generated/google/apis/spanner_v1/service.rb +497 -497
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +227 -227
- data/generated/google/apis/speech_v1beta1/representations.rb +50 -50
- data/generated/google/apis/speech_v1beta1/service.rb +33 -33
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +21 -21
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -29
- data/generated/google/apis/sqladmin_v1beta4/service.rb +56 -56
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +40 -6
- data/generated/google/apis/storage_v1/representations.rb +20 -4
- data/generated/google/apis/storage_v1/service.rb +61 -46
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +184 -184
- data/generated/google/apis/storagetransfer_v1/representations.rb +35 -35
- data/generated/google/apis/storagetransfer_v1/service.rb +70 -70
- data/generated/google/apis/tagmanager_v1/service.rb +33 -33
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/translate_v2/classes.rb +12 -12
- data/generated/google/apis/translate_v2/representations.rb +10 -10
- data/generated/google/apis/translate_v2/service.rb +62 -62
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1267 -1267
- data/generated/google/apis/vision_v1/representations.rb +200 -200
- data/generated/google/apis/vision_v1/service.rb +10 -10
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/representations.rb +8 -8
- data/generated/google/apis/webmasters_v3/service.rb +21 -21
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
- data/generated/google/apis/youtube_v3/classes.rb +20 -20
- data/generated/google/apis/youtube_v3/representations.rb +40 -40
- data/generated/google/apis/youtube_v3/service.rb +80 -80
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +129 -129
- data/generated/google/apis/youtubereporting_v1/representations.rb +38 -38
- data/generated/google/apis/youtubereporting_v1/service.rb +97 -97
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/generator/model.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
|
@@ -206,7 +206,7 @@ module Google
|
|
|
206
206
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
207
207
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
208
208
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
209
|
-
def
|
|
209
|
+
def list_license_assignments_for_product(product_id, customer_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
210
210
|
command = make_simple_command(:get, '{productId}/users', options)
|
|
211
211
|
command.response_representation = Google::Apis::LicensingV1::LicenseAssignmentList::Representation
|
|
212
212
|
command.response_class = Google::Apis::LicensingV1::LicenseAssignmentList
|
|
@@ -254,7 +254,7 @@ module Google
|
|
|
254
254
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
255
255
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
256
256
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
257
|
-
def
|
|
257
|
+
def list_license_assignments_for_product_and_sku(product_id, sku_id, customer_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
258
258
|
command = make_simple_command(:get, '{productId}/sku/{skuId}/users', options)
|
|
259
259
|
command.response_representation = Google::Apis::LicensingV1::LicenseAssignmentList::Representation
|
|
260
260
|
command.response_class = Google::Apis::LicensingV1::LicenseAssignmentList
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/logging/docs/
|
|
26
26
|
module LoggingV2
|
|
27
27
|
VERSION = 'V2'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20170605'
|
|
29
29
|
|
|
30
30
|
# View your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
|
@@ -22,29 +22,94 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module LoggingV2
|
|
24
24
|
|
|
25
|
-
#
|
|
26
|
-
|
|
25
|
+
# A common proto for logging HTTP requests. Only contains semantics defined by
|
|
26
|
+
# the HTTP specification. Product-specific logging information MUST be defined
|
|
27
|
+
# in a separate message.
|
|
28
|
+
class HttpRequest
|
|
27
29
|
include Google::Apis::Core::Hashable
|
|
28
30
|
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
+
# The request processing latency on the server, from the time the request was
|
|
32
|
+
# received until the response was sent.
|
|
33
|
+
# Corresponds to the JSON property `latency`
|
|
31
34
|
# @return [String]
|
|
32
|
-
attr_accessor :
|
|
35
|
+
attr_accessor :latency
|
|
33
36
|
|
|
34
|
-
#
|
|
35
|
-
#
|
|
37
|
+
# The user agent sent by the client. Example: "Mozilla/4.0 (compatible; MSIE 6.0;
|
|
38
|
+
# Windows 98; Q312461; .NET CLR 1.0.3705)".
|
|
39
|
+
# Corresponds to the JSON property `userAgent`
|
|
36
40
|
# @return [String]
|
|
37
|
-
attr_accessor :
|
|
41
|
+
attr_accessor :user_agent
|
|
38
42
|
|
|
39
|
-
#
|
|
40
|
-
#
|
|
41
|
-
#
|
|
42
|
-
|
|
43
|
+
# The number of HTTP response bytes inserted into cache. Set only when a cache
|
|
44
|
+
# fill was attempted.
|
|
45
|
+
# Corresponds to the JSON property `cacheFillBytes`
|
|
46
|
+
# @return [Fixnum]
|
|
47
|
+
attr_accessor :cache_fill_bytes
|
|
43
48
|
|
|
44
|
-
#
|
|
45
|
-
# Corresponds to the JSON property `
|
|
49
|
+
# The request method. Examples: "GET", "HEAD", "PUT", "POST".
|
|
50
|
+
# Corresponds to the JSON property `requestMethod`
|
|
46
51
|
# @return [String]
|
|
47
|
-
attr_accessor :
|
|
52
|
+
attr_accessor :request_method
|
|
53
|
+
|
|
54
|
+
# The size of the HTTP request message in bytes, including the request headers
|
|
55
|
+
# and the request body.
|
|
56
|
+
# Corresponds to the JSON property `requestSize`
|
|
57
|
+
# @return [Fixnum]
|
|
58
|
+
attr_accessor :request_size
|
|
59
|
+
|
|
60
|
+
# The size of the HTTP response message sent back to the client, in bytes,
|
|
61
|
+
# including the response headers and the response body.
|
|
62
|
+
# Corresponds to the JSON property `responseSize`
|
|
63
|
+
# @return [Fixnum]
|
|
64
|
+
attr_accessor :response_size
|
|
65
|
+
|
|
66
|
+
# The scheme (http, https), the host name, the path and the query portion of the
|
|
67
|
+
# URL that was requested. Example: "http://example.com/some/info?color=red".
|
|
68
|
+
# Corresponds to the JSON property `requestUrl`
|
|
69
|
+
# @return [String]
|
|
70
|
+
attr_accessor :request_url
|
|
71
|
+
|
|
72
|
+
# The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
|
|
73
|
+
# Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329".
|
|
74
|
+
# Corresponds to the JSON property `remoteIp`
|
|
75
|
+
# @return [String]
|
|
76
|
+
attr_accessor :remote_ip
|
|
77
|
+
|
|
78
|
+
# The IP address (IPv4 or IPv6) of the origin server that the request was sent
|
|
79
|
+
# to.
|
|
80
|
+
# Corresponds to the JSON property `serverIp`
|
|
81
|
+
# @return [String]
|
|
82
|
+
attr_accessor :server_ip
|
|
83
|
+
|
|
84
|
+
# Whether or not a cache lookup was attempted.
|
|
85
|
+
# Corresponds to the JSON property `cacheLookup`
|
|
86
|
+
# @return [Boolean]
|
|
87
|
+
attr_accessor :cache_lookup
|
|
88
|
+
alias_method :cache_lookup?, :cache_lookup
|
|
89
|
+
|
|
90
|
+
# Whether or not an entity was served from cache (with or without validation).
|
|
91
|
+
# Corresponds to the JSON property `cacheHit`
|
|
92
|
+
# @return [Boolean]
|
|
93
|
+
attr_accessor :cache_hit
|
|
94
|
+
alias_method :cache_hit?, :cache_hit
|
|
95
|
+
|
|
96
|
+
# Whether or not the response was validated with the origin server before being
|
|
97
|
+
# served from cache. This field is only meaningful if cache_hit is True.
|
|
98
|
+
# Corresponds to the JSON property `cacheValidatedWithOriginServer`
|
|
99
|
+
# @return [Boolean]
|
|
100
|
+
attr_accessor :cache_validated_with_origin_server
|
|
101
|
+
alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
|
|
102
|
+
|
|
103
|
+
# The response code indicating the status of response. Examples: 200, 404.
|
|
104
|
+
# Corresponds to the JSON property `status`
|
|
105
|
+
# @return [Fixnum]
|
|
106
|
+
attr_accessor :status
|
|
107
|
+
|
|
108
|
+
# The referer URL of the request, as defined in HTTP/1.1 Header Field
|
|
109
|
+
# Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
|
110
|
+
# Corresponds to the JSON property `referer`
|
|
111
|
+
# @return [String]
|
|
112
|
+
attr_accessor :referer
|
|
48
113
|
|
|
49
114
|
def initialize(**args)
|
|
50
115
|
update!(**args)
|
|
@@ -52,106 +117,370 @@ module Google
|
|
|
52
117
|
|
|
53
118
|
# Update properties of this object
|
|
54
119
|
def update!(**args)
|
|
55
|
-
@
|
|
56
|
-
@
|
|
57
|
-
@
|
|
58
|
-
@
|
|
120
|
+
@latency = args[:latency] if args.key?(:latency)
|
|
121
|
+
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
|
122
|
+
@cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
|
|
123
|
+
@request_method = args[:request_method] if args.key?(:request_method)
|
|
124
|
+
@request_size = args[:request_size] if args.key?(:request_size)
|
|
125
|
+
@response_size = args[:response_size] if args.key?(:response_size)
|
|
126
|
+
@request_url = args[:request_url] if args.key?(:request_url)
|
|
127
|
+
@remote_ip = args[:remote_ip] if args.key?(:remote_ip)
|
|
128
|
+
@server_ip = args[:server_ip] if args.key?(:server_ip)
|
|
129
|
+
@cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup)
|
|
130
|
+
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
|
|
131
|
+
@cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server)
|
|
132
|
+
@status = args[:status] if args.key?(:status)
|
|
133
|
+
@referer = args[:referer] if args.key?(:referer)
|
|
59
134
|
end
|
|
60
135
|
end
|
|
61
136
|
|
|
62
|
-
# Result returned from
|
|
63
|
-
class
|
|
137
|
+
# Result returned from ListSinks.
|
|
138
|
+
class ListSinksResponse
|
|
64
139
|
include Google::Apis::Core::Hashable
|
|
65
140
|
|
|
66
|
-
# A list of logs-based metrics.
|
|
67
|
-
# Corresponds to the JSON property `metrics`
|
|
68
|
-
# @return [Array<Google::Apis::LoggingV2::LogMetric>]
|
|
69
|
-
attr_accessor :metrics
|
|
70
|
-
|
|
71
141
|
# If there might be more results than appear in this response, then
|
|
72
|
-
# nextPageToken is included. To get the next set of results, call
|
|
73
|
-
# again using the value of nextPageToken as pageToken.
|
|
142
|
+
# nextPageToken is included. To get the next set of results, call the same
|
|
143
|
+
# method again using the value of nextPageToken as pageToken.
|
|
74
144
|
# Corresponds to the JSON property `nextPageToken`
|
|
75
145
|
# @return [String]
|
|
76
146
|
attr_accessor :next_page_token
|
|
77
147
|
|
|
148
|
+
# A list of sinks.
|
|
149
|
+
# Corresponds to the JSON property `sinks`
|
|
150
|
+
# @return [Array<Google::Apis::LoggingV2::LogSink>]
|
|
151
|
+
attr_accessor :sinks
|
|
152
|
+
|
|
78
153
|
def initialize(**args)
|
|
79
154
|
update!(**args)
|
|
80
155
|
end
|
|
81
156
|
|
|
82
157
|
# Update properties of this object
|
|
83
158
|
def update!(**args)
|
|
84
|
-
@metrics = args[:metrics] if args.key?(:metrics)
|
|
85
159
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
160
|
+
@sinks = args[:sinks] if args.key?(:sinks)
|
|
86
161
|
end
|
|
87
162
|
end
|
|
88
163
|
|
|
89
|
-
# A
|
|
90
|
-
|
|
91
|
-
# response type of an API method. For instance:
|
|
92
|
-
# service Foo `
|
|
93
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
94
|
-
# `
|
|
95
|
-
# The JSON representation for Empty is empty JSON object ``.
|
|
96
|
-
class Empty
|
|
164
|
+
# A description of a label.
|
|
165
|
+
class LabelDescriptor
|
|
97
166
|
include Google::Apis::Core::Hashable
|
|
98
167
|
|
|
168
|
+
# The label key.
|
|
169
|
+
# Corresponds to the JSON property `key`
|
|
170
|
+
# @return [String]
|
|
171
|
+
attr_accessor :key
|
|
172
|
+
|
|
173
|
+
# A human-readable description for the label.
|
|
174
|
+
# Corresponds to the JSON property `description`
|
|
175
|
+
# @return [String]
|
|
176
|
+
attr_accessor :description
|
|
177
|
+
|
|
178
|
+
# The type of data that can be assigned to the label.
|
|
179
|
+
# Corresponds to the JSON property `valueType`
|
|
180
|
+
# @return [String]
|
|
181
|
+
attr_accessor :value_type
|
|
182
|
+
|
|
99
183
|
def initialize(**args)
|
|
100
184
|
update!(**args)
|
|
101
185
|
end
|
|
102
186
|
|
|
103
187
|
# Update properties of this object
|
|
104
188
|
def update!(**args)
|
|
189
|
+
@key = args[:key] if args.key?(:key)
|
|
190
|
+
@description = args[:description] if args.key?(:description)
|
|
191
|
+
@value_type = args[:value_type] if args.key?(:value_type)
|
|
105
192
|
end
|
|
106
193
|
end
|
|
107
194
|
|
|
108
|
-
# An
|
|
109
|
-
|
|
195
|
+
# An object that describes the schema of a MonitoredResource object using a type
|
|
196
|
+
# name and a set of labels. For example, the monitored resource descriptor for
|
|
197
|
+
# Google Compute Engine VM instances has a type of "gce_instance" and specifies
|
|
198
|
+
# the use of the labels "instance_id" and "zone" to identify particular VM
|
|
199
|
+
# instances.Different APIs can support different monitored resource types. APIs
|
|
200
|
+
# generally provide a list method that returns the monitored resource
|
|
201
|
+
# descriptors used by the API.
|
|
202
|
+
class MonitoredResourceDescriptor
|
|
110
203
|
include Google::Apis::Core::Hashable
|
|
111
204
|
|
|
112
|
-
# Optional.
|
|
113
|
-
#
|
|
114
|
-
#
|
|
115
|
-
#
|
|
116
|
-
#
|
|
205
|
+
# Optional. The resource name of the monitored resource descriptor: "projects/`
|
|
206
|
+
# project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of
|
|
207
|
+
# the type field in this object and `project_id` is a project ID that provides
|
|
208
|
+
# API-specific context for accessing the type. APIs that do not use project
|
|
209
|
+
# information can use the resource name format "monitoredResourceDescriptors/`
|
|
210
|
+
# type`".
|
|
211
|
+
# Corresponds to the JSON property `name`
|
|
117
212
|
# @return [String]
|
|
118
|
-
attr_accessor :
|
|
213
|
+
attr_accessor :name
|
|
119
214
|
|
|
120
|
-
# Optional. A
|
|
121
|
-
#
|
|
215
|
+
# Optional. A concise name for the monitored resource type that might be
|
|
216
|
+
# displayed in user interfaces. It should be a Title Cased Noun Phrase, without
|
|
217
|
+
# any article or other determiners. For example, "Google Cloud SQL Database".
|
|
218
|
+
# Corresponds to the JSON property `displayName`
|
|
219
|
+
# @return [String]
|
|
220
|
+
attr_accessor :display_name
|
|
221
|
+
|
|
222
|
+
# Optional. A detailed description of the monitored resource type that might be
|
|
223
|
+
# used in documentation.
|
|
224
|
+
# Corresponds to the JSON property `description`
|
|
225
|
+
# @return [String]
|
|
226
|
+
attr_accessor :description
|
|
227
|
+
|
|
228
|
+
# Required. The monitored resource type. For example, the type "
|
|
229
|
+
# cloudsql_database" represents databases in Google Cloud SQL. The maximum
|
|
230
|
+
# length of this value is 256 characters.
|
|
231
|
+
# Corresponds to the JSON property `type`
|
|
232
|
+
# @return [String]
|
|
233
|
+
attr_accessor :type
|
|
234
|
+
|
|
235
|
+
# Required. A set of labels used to describe instances of this monitored
|
|
236
|
+
# resource type. For example, an individual Google Cloud SQL database is
|
|
237
|
+
# identified by values for the labels "database_id" and "zone".
|
|
122
238
|
# Corresponds to the JSON property `labels`
|
|
123
|
-
# @return [
|
|
239
|
+
# @return [Array<Google::Apis::LoggingV2::LabelDescriptor>]
|
|
124
240
|
attr_accessor :labels
|
|
125
241
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
# @return [String]
|
|
130
|
-
attr_accessor :severity
|
|
242
|
+
def initialize(**args)
|
|
243
|
+
update!(**args)
|
|
244
|
+
end
|
|
131
245
|
|
|
132
|
-
#
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
246
|
+
# Update properties of this object
|
|
247
|
+
def update!(**args)
|
|
248
|
+
@name = args[:name] if args.key?(:name)
|
|
249
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
250
|
+
@description = args[:description] if args.key?(:description)
|
|
251
|
+
@type = args[:type] if args.key?(:type)
|
|
252
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
253
|
+
end
|
|
254
|
+
end
|
|
137
255
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
# past are accepted.
|
|
143
|
-
# Corresponds to the JSON property `timestamp`
|
|
144
|
-
# @return [String]
|
|
145
|
-
attr_accessor :timestamp
|
|
256
|
+
# Additional information about the source code location that produced the log
|
|
257
|
+
# entry.
|
|
258
|
+
class LogEntrySourceLocation
|
|
259
|
+
include Google::Apis::Core::Hashable
|
|
146
260
|
|
|
147
|
-
#
|
|
148
|
-
#
|
|
261
|
+
# Optional. Source file name. Depending on the runtime environment, this might
|
|
262
|
+
# be a simple name or a fully-qualified name.
|
|
263
|
+
# Corresponds to the JSON property `file`
|
|
149
264
|
# @return [String]
|
|
150
|
-
attr_accessor :
|
|
265
|
+
attr_accessor :file
|
|
151
266
|
|
|
152
|
-
#
|
|
153
|
-
#
|
|
154
|
-
#
|
|
267
|
+
# Optional. Human-readable name of the function or method being invoked, with
|
|
268
|
+
# optional context such as the class or package name. This information may be
|
|
269
|
+
# used in contexts such as the logs viewer, where a file and line number are
|
|
270
|
+
# less meaningful. The format can vary by language. For example: qual.if.ied.
|
|
271
|
+
# Class.method (Java), dir/package.func (Go), function (Python).
|
|
272
|
+
# Corresponds to the JSON property `function`
|
|
273
|
+
# @return [String]
|
|
274
|
+
attr_accessor :function
|
|
275
|
+
|
|
276
|
+
# Optional. Line within the source file. 1-based; 0 indicates no line number
|
|
277
|
+
# available.
|
|
278
|
+
# Corresponds to the JSON property `line`
|
|
279
|
+
# @return [Fixnum]
|
|
280
|
+
attr_accessor :line
|
|
281
|
+
|
|
282
|
+
def initialize(**args)
|
|
283
|
+
update!(**args)
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# Update properties of this object
|
|
287
|
+
def update!(**args)
|
|
288
|
+
@file = args[:file] if args.key?(:file)
|
|
289
|
+
@function = args[:function] if args.key?(:function)
|
|
290
|
+
@line = args[:line] if args.key?(:line)
|
|
291
|
+
end
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
# Result returned from ListLogEntries.
|
|
295
|
+
class ListLogEntriesResponse
|
|
296
|
+
include Google::Apis::Core::Hashable
|
|
297
|
+
|
|
298
|
+
# A list of log entries.
|
|
299
|
+
# Corresponds to the JSON property `entries`
|
|
300
|
+
# @return [Array<Google::Apis::LoggingV2::LogEntry>]
|
|
301
|
+
attr_accessor :entries
|
|
302
|
+
|
|
303
|
+
# If there might be more results than those appearing in this response, then
|
|
304
|
+
# nextPageToken is included. To get the next set of results, call this method
|
|
305
|
+
# again using the value of nextPageToken as pageToken.If a value for
|
|
306
|
+
# next_page_token appears and the entries field is empty, it means that the
|
|
307
|
+
# search found no log entries so far but it did not have time to search all the
|
|
308
|
+
# possible log entries. Retry the method with this value for page_token to
|
|
309
|
+
# continue the search. Alternatively, consider speeding up the search by
|
|
310
|
+
# changing your filter to specify a single log name or resource type, or to
|
|
311
|
+
# narrow the time range of the search.
|
|
312
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
313
|
+
# @return [String]
|
|
314
|
+
attr_accessor :next_page_token
|
|
315
|
+
|
|
316
|
+
def initialize(**args)
|
|
317
|
+
update!(**args)
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
# Update properties of this object
|
|
321
|
+
def update!(**args)
|
|
322
|
+
@entries = args[:entries] if args.key?(:entries)
|
|
323
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
324
|
+
end
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
# Application log line emitted while processing a request.
|
|
328
|
+
class LogLine
|
|
329
|
+
include Google::Apis::Core::Hashable
|
|
330
|
+
|
|
331
|
+
# Approximate time when this log entry was made.
|
|
332
|
+
# Corresponds to the JSON property `time`
|
|
333
|
+
# @return [String]
|
|
334
|
+
attr_accessor :time
|
|
335
|
+
|
|
336
|
+
# Severity of this log entry.
|
|
337
|
+
# Corresponds to the JSON property `severity`
|
|
338
|
+
# @return [String]
|
|
339
|
+
attr_accessor :severity
|
|
340
|
+
|
|
341
|
+
# App-provided log message.
|
|
342
|
+
# Corresponds to the JSON property `logMessage`
|
|
343
|
+
# @return [String]
|
|
344
|
+
attr_accessor :log_message
|
|
345
|
+
|
|
346
|
+
# Specifies a location in a source code file.
|
|
347
|
+
# Corresponds to the JSON property `sourceLocation`
|
|
348
|
+
# @return [Google::Apis::LoggingV2::SourceLocation]
|
|
349
|
+
attr_accessor :source_location
|
|
350
|
+
|
|
351
|
+
def initialize(**args)
|
|
352
|
+
update!(**args)
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
# Update properties of this object
|
|
356
|
+
def update!(**args)
|
|
357
|
+
@time = args[:time] if args.key?(:time)
|
|
358
|
+
@severity = args[:severity] if args.key?(:severity)
|
|
359
|
+
@log_message = args[:log_message] if args.key?(:log_message)
|
|
360
|
+
@source_location = args[:source_location] if args.key?(:source_location)
|
|
361
|
+
end
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
# Result returned from ListLogMetrics.
|
|
365
|
+
class ListLogMetricsResponse
|
|
366
|
+
include Google::Apis::Core::Hashable
|
|
367
|
+
|
|
368
|
+
# A list of logs-based metrics.
|
|
369
|
+
# Corresponds to the JSON property `metrics`
|
|
370
|
+
# @return [Array<Google::Apis::LoggingV2::LogMetric>]
|
|
371
|
+
attr_accessor :metrics
|
|
372
|
+
|
|
373
|
+
# If there might be more results than appear in this response, then
|
|
374
|
+
# nextPageToken is included. To get the next set of results, call this method
|
|
375
|
+
# again using the value of nextPageToken as pageToken.
|
|
376
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
377
|
+
# @return [String]
|
|
378
|
+
attr_accessor :next_page_token
|
|
379
|
+
|
|
380
|
+
def initialize(**args)
|
|
381
|
+
update!(**args)
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
# Update properties of this object
|
|
385
|
+
def update!(**args)
|
|
386
|
+
@metrics = args[:metrics] if args.key?(:metrics)
|
|
387
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
388
|
+
end
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
|
392
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
|
393
|
+
# response type of an API method. For instance:
|
|
394
|
+
# service Foo `
|
|
395
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
396
|
+
# `
|
|
397
|
+
# The JSON representation for Empty is empty JSON object ``.
|
|
398
|
+
class Empty
|
|
399
|
+
include Google::Apis::Core::Hashable
|
|
400
|
+
|
|
401
|
+
def initialize(**args)
|
|
402
|
+
update!(**args)
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# Update properties of this object
|
|
406
|
+
def update!(**args)
|
|
407
|
+
end
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
# An individual entry in a log.
|
|
411
|
+
class LogEntry
|
|
412
|
+
include Google::Apis::Core::Hashable
|
|
413
|
+
|
|
414
|
+
# Optional. A unique identifier for the log entry. If you provide a value, then
|
|
415
|
+
# Stackdriver Logging considers other log entries in the same project, with the
|
|
416
|
+
# same timestamp, and with the same insert_id to be duplicates which can be
|
|
417
|
+
# removed. If omitted in new log entries, then Stackdriver Logging will insert
|
|
418
|
+
# its own unique identifier. The insert_id is used to order log entries that
|
|
419
|
+
# have the same timestamp value.
|
|
420
|
+
# Corresponds to the JSON property `insertId`
|
|
421
|
+
# @return [String]
|
|
422
|
+
attr_accessor :insert_id
|
|
423
|
+
|
|
424
|
+
# Additional information about a potentially long-running operation with which a
|
|
425
|
+
# log entry is associated.
|
|
426
|
+
# Corresponds to the JSON property `operation`
|
|
427
|
+
# @return [Google::Apis::LoggingV2::LogEntryOperation]
|
|
428
|
+
attr_accessor :operation
|
|
429
|
+
|
|
430
|
+
# The log entry payload, represented as a Unicode string (UTF-8).
|
|
431
|
+
# Corresponds to the JSON property `textPayload`
|
|
432
|
+
# @return [String]
|
|
433
|
+
attr_accessor :text_payload
|
|
434
|
+
|
|
435
|
+
# The log entry payload, represented as a protocol buffer. Some Google Cloud
|
|
436
|
+
# Platform services use this field for their log entry payloads.
|
|
437
|
+
# Corresponds to the JSON property `protoPayload`
|
|
438
|
+
# @return [Hash<String,Object>]
|
|
439
|
+
attr_accessor :proto_payload
|
|
440
|
+
|
|
441
|
+
# Optional. Resource name of the trace associated with the log entry, if any. If
|
|
442
|
+
# it contains a relative resource name, the name is assumed to be relative to //
|
|
443
|
+
# tracing.googleapis.com. Example: projects/my-projectid/traces/
|
|
444
|
+
# 06796866738c859f2f19b7cfb3214824
|
|
445
|
+
# Corresponds to the JSON property `trace`
|
|
446
|
+
# @return [String]
|
|
447
|
+
attr_accessor :trace
|
|
448
|
+
|
|
449
|
+
# Optional. A set of user-defined (key, value) data that provides additional
|
|
450
|
+
# information about the log entry.
|
|
451
|
+
# Corresponds to the JSON property `labels`
|
|
452
|
+
# @return [Hash<String,String>]
|
|
453
|
+
attr_accessor :labels
|
|
454
|
+
|
|
455
|
+
# Optional. The severity of the log entry. The default value is LogSeverity.
|
|
456
|
+
# DEFAULT.
|
|
457
|
+
# Corresponds to the JSON property `severity`
|
|
458
|
+
# @return [String]
|
|
459
|
+
attr_accessor :severity
|
|
460
|
+
|
|
461
|
+
# Additional information about the source code location that produced the log
|
|
462
|
+
# entry.
|
|
463
|
+
# Corresponds to the JSON property `sourceLocation`
|
|
464
|
+
# @return [Google::Apis::LoggingV2::LogEntrySourceLocation]
|
|
465
|
+
attr_accessor :source_location
|
|
466
|
+
|
|
467
|
+
# Output only. The time the log entry was received by Stackdriver Logging.
|
|
468
|
+
# Corresponds to the JSON property `receiveTimestamp`
|
|
469
|
+
# @return [String]
|
|
470
|
+
attr_accessor :receive_timestamp
|
|
471
|
+
|
|
472
|
+
# Optional. The time the event described by the log entry occurred. If omitted
|
|
473
|
+
# in a new log entry, Stackdriver Logging will insert the time the log entry is
|
|
474
|
+
# received. Stackdriver Logging might reject log entries whose time stamps are
|
|
475
|
+
# more than a couple of hours in the future. Log entries with time stamps in the
|
|
476
|
+
# past are accepted.
|
|
477
|
+
# Corresponds to the JSON property `timestamp`
|
|
478
|
+
# @return [String]
|
|
479
|
+
attr_accessor :timestamp
|
|
480
|
+
|
|
481
|
+
# Required. The resource name of the log to which this log entry belongs:
|
|
482
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
483
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
155
484
|
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
|
156
485
|
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
|
157
486
|
# [LOG_ID] must be URL-encoded within log_name. Example: "organizations/
|
|
@@ -196,53 +525,26 @@ module Google
|
|
|
196
525
|
# @return [Hash<String,Object>]
|
|
197
526
|
attr_accessor :json_payload
|
|
198
527
|
|
|
199
|
-
# Optional. A unique identifier for the log entry. If you provide a value, then
|
|
200
|
-
# Stackdriver Logging considers other log entries in the same project, with the
|
|
201
|
-
# same timestamp, and with the same insert_id to be duplicates which can be
|
|
202
|
-
# removed. If omitted in new log entries, then Stackdriver Logging will insert
|
|
203
|
-
# its own unique identifier. The insert_id is used to order log entries that
|
|
204
|
-
# have the same timestamp value.
|
|
205
|
-
# Corresponds to the JSON property `insertId`
|
|
206
|
-
# @return [String]
|
|
207
|
-
attr_accessor :insert_id
|
|
208
|
-
|
|
209
|
-
# Additional information about a potentially long-running operation with which a
|
|
210
|
-
# log entry is associated.
|
|
211
|
-
# Corresponds to the JSON property `operation`
|
|
212
|
-
# @return [Google::Apis::LoggingV2::LogEntryOperation]
|
|
213
|
-
attr_accessor :operation
|
|
214
|
-
|
|
215
|
-
# The log entry payload, represented as a Unicode string (UTF-8).
|
|
216
|
-
# Corresponds to the JSON property `textPayload`
|
|
217
|
-
# @return [String]
|
|
218
|
-
attr_accessor :text_payload
|
|
219
|
-
|
|
220
|
-
# The log entry payload, represented as a protocol buffer. Some Google Cloud
|
|
221
|
-
# Platform services use this field for their log entry payloads.
|
|
222
|
-
# Corresponds to the JSON property `protoPayload`
|
|
223
|
-
# @return [Hash<String,Object>]
|
|
224
|
-
attr_accessor :proto_payload
|
|
225
|
-
|
|
226
528
|
def initialize(**args)
|
|
227
529
|
update!(**args)
|
|
228
530
|
end
|
|
229
531
|
|
|
230
532
|
# Update properties of this object
|
|
231
533
|
def update!(**args)
|
|
534
|
+
@insert_id = args[:insert_id] if args.key?(:insert_id)
|
|
535
|
+
@operation = args[:operation] if args.key?(:operation)
|
|
536
|
+
@text_payload = args[:text_payload] if args.key?(:text_payload)
|
|
537
|
+
@proto_payload = args[:proto_payload] if args.key?(:proto_payload)
|
|
232
538
|
@trace = args[:trace] if args.key?(:trace)
|
|
233
539
|
@labels = args[:labels] if args.key?(:labels)
|
|
234
540
|
@severity = args[:severity] if args.key?(:severity)
|
|
235
541
|
@source_location = args[:source_location] if args.key?(:source_location)
|
|
236
|
-
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
|
237
542
|
@receive_timestamp = args[:receive_timestamp] if args.key?(:receive_timestamp)
|
|
543
|
+
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
|
238
544
|
@log_name = args[:log_name] if args.key?(:log_name)
|
|
239
545
|
@http_request = args[:http_request] if args.key?(:http_request)
|
|
240
546
|
@resource = args[:resource] if args.key?(:resource)
|
|
241
547
|
@json_payload = args[:json_payload] if args.key?(:json_payload)
|
|
242
|
-
@insert_id = args[:insert_id] if args.key?(:insert_id)
|
|
243
|
-
@operation = args[:operation] if args.key?(:operation)
|
|
244
|
-
@text_payload = args[:text_payload] if args.key?(:text_payload)
|
|
245
|
-
@proto_payload = args[:proto_payload] if args.key?(:proto_payload)
|
|
246
548
|
end
|
|
247
549
|
end
|
|
248
550
|
|
|
@@ -250,8 +552,14 @@ module Google
|
|
|
250
552
|
class SourceLocation
|
|
251
553
|
include Google::Apis::Core::Hashable
|
|
252
554
|
|
|
253
|
-
#
|
|
254
|
-
#
|
|
555
|
+
# Source file name. Depending on the runtime environment, this might be a simple
|
|
556
|
+
# name or a fully-qualified name.
|
|
557
|
+
# Corresponds to the JSON property `file`
|
|
558
|
+
# @return [String]
|
|
559
|
+
attr_accessor :file
|
|
560
|
+
|
|
561
|
+
# Human-readable name of the function or method being invoked, with optional
|
|
562
|
+
# context such as the class or package name. This information is used in
|
|
255
563
|
# contexts such as the logs viewer, where a file and line number are less
|
|
256
564
|
# meaningful. The format can vary by language. For example: qual.if.ied.Class.
|
|
257
565
|
# method (Java), dir/package.func (Go), function (Python).
|
|
@@ -264,21 +572,15 @@ module Google
|
|
|
264
572
|
# @return [Fixnum]
|
|
265
573
|
attr_accessor :line
|
|
266
574
|
|
|
267
|
-
# Source file name. Depending on the runtime environment, this might be a simple
|
|
268
|
-
# name or a fully-qualified name.
|
|
269
|
-
# Corresponds to the JSON property `file`
|
|
270
|
-
# @return [String]
|
|
271
|
-
attr_accessor :file
|
|
272
|
-
|
|
273
575
|
def initialize(**args)
|
|
274
576
|
update!(**args)
|
|
275
577
|
end
|
|
276
578
|
|
|
277
579
|
# Update properties of this object
|
|
278
580
|
def update!(**args)
|
|
581
|
+
@file = args[:file] if args.key?(:file)
|
|
279
582
|
@function_name = args[:function_name] if args.key?(:function_name)
|
|
280
583
|
@line = args[:line] if args.key?(:line)
|
|
281
|
-
@file = args[:file] if args.key?(:file)
|
|
282
584
|
end
|
|
283
585
|
end
|
|
284
586
|
|
|
@@ -286,14 +588,6 @@ module Google
|
|
|
286
588
|
class ListLogEntriesRequest
|
|
287
589
|
include Google::Apis::Core::Hashable
|
|
288
590
|
|
|
289
|
-
# Optional. If present, then retrieve the next batch of results from the
|
|
290
|
-
# preceding call to this method. page_token must be the value of next_page_token
|
|
291
|
-
# from the previous response. The values of other method parameters should be
|
|
292
|
-
# identical to those in the previous call.
|
|
293
|
-
# Corresponds to the JSON property `pageToken`
|
|
294
|
-
# @return [String]
|
|
295
|
-
attr_accessor :page_token
|
|
296
|
-
|
|
297
591
|
# Optional. The maximum number of results to return from this request. Non-
|
|
298
592
|
# positive values are ignored. The presence of next_page_token in the response
|
|
299
593
|
# indicates that more results might be available.
|
|
@@ -339,18 +633,26 @@ module Google
|
|
|
339
633
|
# @return [String]
|
|
340
634
|
attr_accessor :filter
|
|
341
635
|
|
|
636
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
637
|
+
# preceding call to this method. page_token must be the value of next_page_token
|
|
638
|
+
# from the previous response. The values of other method parameters should be
|
|
639
|
+
# identical to those in the previous call.
|
|
640
|
+
# Corresponds to the JSON property `pageToken`
|
|
641
|
+
# @return [String]
|
|
642
|
+
attr_accessor :page_token
|
|
643
|
+
|
|
342
644
|
def initialize(**args)
|
|
343
645
|
update!(**args)
|
|
344
646
|
end
|
|
345
647
|
|
|
346
648
|
# Update properties of this object
|
|
347
649
|
def update!(**args)
|
|
348
|
-
@page_token = args[:page_token] if args.key?(:page_token)
|
|
349
650
|
@page_size = args[:page_size] if args.key?(:page_size)
|
|
350
651
|
@order_by = args[:order_by] if args.key?(:order_by)
|
|
351
652
|
@resource_names = args[:resource_names] if args.key?(:resource_names)
|
|
352
653
|
@project_ids = args[:project_ids] if args.key?(:project_ids)
|
|
353
654
|
@filter = args[:filter] if args.key?(:filter)
|
|
655
|
+
@page_token = args[:page_token] if args.key?(:page_token)
|
|
354
656
|
end
|
|
355
657
|
end
|
|
356
658
|
|
|
@@ -446,10 +748,10 @@ module Google
|
|
|
446
748
|
# @return [String]
|
|
447
749
|
attr_accessor :nickname
|
|
448
750
|
|
|
449
|
-
#
|
|
450
|
-
# Corresponds to the JSON property `
|
|
451
|
-
# @return [
|
|
452
|
-
attr_accessor :
|
|
751
|
+
# HTTP response status code. Example: 200, 404.
|
|
752
|
+
# Corresponds to the JSON property `status`
|
|
753
|
+
# @return [Fixnum]
|
|
754
|
+
attr_accessor :status
|
|
453
755
|
|
|
454
756
|
# Contains the path and query portion of the URL that was requested. For example,
|
|
455
757
|
# if the URL was "http://example.com/app?name=val", the resource would be "/app?
|
|
@@ -459,10 +761,10 @@ module Google
|
|
|
459
761
|
# @return [String]
|
|
460
762
|
attr_accessor :resource
|
|
461
763
|
|
|
462
|
-
#
|
|
463
|
-
# Corresponds to the JSON property `
|
|
464
|
-
# @return [
|
|
465
|
-
attr_accessor :
|
|
764
|
+
# Time this request spent in the pending request queue.
|
|
765
|
+
# Corresponds to the JSON property `pendingTime`
|
|
766
|
+
# @return [String]
|
|
767
|
+
attr_accessor :pending_time
|
|
466
768
|
|
|
467
769
|
# Task name of the request, in the case of an offline request.
|
|
468
770
|
# Corresponds to the JSON property `taskName`
|
|
@@ -557,9 +859,9 @@ module Google
|
|
|
557
859
|
@task_queue_name = args[:task_queue_name] if args.key?(:task_queue_name)
|
|
558
860
|
@request_id = args[:request_id] if args.key?(:request_id)
|
|
559
861
|
@nickname = args[:nickname] if args.key?(:nickname)
|
|
560
|
-
@pending_time = args[:pending_time] if args.key?(:pending_time)
|
|
561
|
-
@resource = args[:resource] if args.key?(:resource)
|
|
562
862
|
@status = args[:status] if args.key?(:status)
|
|
863
|
+
@resource = args[:resource] if args.key?(:resource)
|
|
864
|
+
@pending_time = args[:pending_time] if args.key?(:pending_time)
|
|
563
865
|
@task_name = args[:task_name] if args.key?(:task_name)
|
|
564
866
|
@url_map_entry = args[:url_map_entry] if args.key?(:url_map_entry)
|
|
565
867
|
@instance_index = args[:instance_index] if args.key?(:instance_index)
|
|
@@ -577,375 +879,21 @@ module Google
|
|
|
577
879
|
end
|
|
578
880
|
end
|
|
579
881
|
|
|
580
|
-
# Result returned from ListMonitoredResourceDescriptors.
|
|
581
|
-
class ListMonitoredResourceDescriptorsResponse
|
|
582
|
-
include Google::Apis::Core::Hashable
|
|
583
|
-
|
|
584
|
-
# If there might be more results than those appearing in this response, then
|
|
585
|
-
# nextPageToken is included. To get the next set of results, call this method
|
|
586
|
-
# again using the value of nextPageToken as pageToken.
|
|
587
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
588
|
-
# @return [String]
|
|
589
|
-
attr_accessor :next_page_token
|
|
590
|
-
|
|
591
|
-
# A list of resource descriptors.
|
|
592
|
-
# Corresponds to the JSON property `resourceDescriptors`
|
|
593
|
-
# @return [Array<Google::Apis::LoggingV2::MonitoredResourceDescriptor>]
|
|
594
|
-
attr_accessor :resource_descriptors
|
|
595
|
-
|
|
596
|
-
def initialize(**args)
|
|
597
|
-
update!(**args)
|
|
598
|
-
end
|
|
599
|
-
|
|
600
|
-
# Update properties of this object
|
|
601
|
-
def update!(**args)
|
|
602
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
603
|
-
@resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors)
|
|
604
|
-
end
|
|
605
|
-
end
|
|
606
|
-
|
|
607
|
-
# A reference to a particular snapshot of the source tree used to build and
|
|
608
|
-
# deploy an application.
|
|
609
|
-
class SourceReference
|
|
610
|
-
include Google::Apis::Core::Hashable
|
|
611
|
-
|
|
612
|
-
# Optional. A URI string identifying the repository. Example: "https://github.
|
|
613
|
-
# com/GoogleCloudPlatform/kubernetes.git"
|
|
614
|
-
# Corresponds to the JSON property `repository`
|
|
615
|
-
# @return [String]
|
|
616
|
-
attr_accessor :repository
|
|
617
|
-
|
|
618
|
-
# The canonical and persistent identifier of the deployed revision. Example (git)
|
|
619
|
-
# : "0035781c50ec7aa23385dc841529ce8a4b70db1b"
|
|
620
|
-
# Corresponds to the JSON property `revisionId`
|
|
621
|
-
# @return [String]
|
|
622
|
-
attr_accessor :revision_id
|
|
623
|
-
|
|
624
|
-
def initialize(**args)
|
|
625
|
-
update!(**args)
|
|
626
|
-
end
|
|
627
|
-
|
|
628
|
-
# Update properties of this object
|
|
629
|
-
def update!(**args)
|
|
630
|
-
@repository = args[:repository] if args.key?(:repository)
|
|
631
|
-
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
|
632
|
-
end
|
|
633
|
-
end
|
|
634
|
-
|
|
635
|
-
# Result returned from WriteLogEntries. empty
|
|
636
|
-
class WriteLogEntriesResponse
|
|
637
|
-
include Google::Apis::Core::Hashable
|
|
638
|
-
|
|
639
|
-
def initialize(**args)
|
|
640
|
-
update!(**args)
|
|
641
|
-
end
|
|
642
|
-
|
|
643
|
-
# Update properties of this object
|
|
644
|
-
def update!(**args)
|
|
645
|
-
end
|
|
646
|
-
end
|
|
647
|
-
|
|
648
|
-
# Describes a logs-based metric. The value of the metric is the number of log
|
|
649
|
-
# entries that match a logs filter in a given time interval.
|
|
650
|
-
class LogMetric
|
|
651
|
-
include Google::Apis::Core::Hashable
|
|
652
|
-
|
|
653
|
-
# Output only. The API version that created or updated this metric. The version
|
|
654
|
-
# also dictates the syntax of the filter expression. When a value for this field
|
|
655
|
-
# is missing, the default value of V2 should be assumed.
|
|
656
|
-
# Corresponds to the JSON property `version`
|
|
657
|
-
# @return [String]
|
|
658
|
-
attr_accessor :version
|
|
659
|
-
|
|
660
|
-
# Required. An advanced logs filter which is used to match log entries. Example:
|
|
661
|
-
# "resource.type=gae_app AND severity>=ERROR"
|
|
662
|
-
# The maximum length of the filter is 20000 characters.
|
|
663
|
-
# Corresponds to the JSON property `filter`
|
|
664
|
-
# @return [String]
|
|
665
|
-
attr_accessor :filter
|
|
666
|
-
|
|
667
|
-
# Required. The client-assigned metric identifier. Examples: "error_count", "
|
|
668
|
-
# nginx/requests".Metric identifiers are limited to 100 characters and can
|
|
669
|
-
# include only the following characters: A-Z, a-z, 0-9, and the special
|
|
670
|
-
# characters _-.,+!*',()%/. The forward-slash character (/) denotes a hierarchy
|
|
671
|
-
# of name pieces, and it cannot be the first character of the name.The metric
|
|
672
|
-
# identifier in this field must not be URL-encoded (https://en.wikipedia.org/
|
|
673
|
-
# wiki/Percent-encoding). However, when the metric identifier appears as the [
|
|
674
|
-
# METRIC_ID] part of a metric_name API parameter, then the metric identifier
|
|
675
|
-
# must be URL-encoded. Example: "projects/my-project/metrics/nginx%2Frequests".
|
|
676
|
-
# Corresponds to the JSON property `name`
|
|
677
|
-
# @return [String]
|
|
678
|
-
attr_accessor :name
|
|
679
|
-
|
|
680
|
-
# Optional. A description of this metric, which is used in documentation.
|
|
681
|
-
# Corresponds to the JSON property `description`
|
|
682
|
-
# @return [String]
|
|
683
|
-
attr_accessor :description
|
|
684
|
-
|
|
685
|
-
def initialize(**args)
|
|
686
|
-
update!(**args)
|
|
687
|
-
end
|
|
688
|
-
|
|
689
|
-
# Update properties of this object
|
|
690
|
-
def update!(**args)
|
|
691
|
-
@version = args[:version] if args.key?(:version)
|
|
692
|
-
@filter = args[:filter] if args.key?(:filter)
|
|
693
|
-
@name = args[:name] if args.key?(:name)
|
|
694
|
-
@description = args[:description] if args.key?(:description)
|
|
695
|
-
end
|
|
696
|
-
end
|
|
697
|
-
|
|
698
|
-
# Additional information about a potentially long-running operation with which a
|
|
699
|
-
# log entry is associated.
|
|
700
|
-
class LogEntryOperation
|
|
701
|
-
include Google::Apis::Core::Hashable
|
|
702
|
-
|
|
703
|
-
# Optional. An arbitrary operation identifier. Log entries with the same
|
|
704
|
-
# identifier are assumed to be part of the same operation.
|
|
705
|
-
# Corresponds to the JSON property `id`
|
|
706
|
-
# @return [String]
|
|
707
|
-
attr_accessor :id
|
|
708
|
-
|
|
709
|
-
# Optional. An arbitrary producer identifier. The combination of id and producer
|
|
710
|
-
# must be globally unique. Examples for producer: "MyDivision.MyBigCompany.com",
|
|
711
|
-
# "github.com/MyProject/MyApplication".
|
|
712
|
-
# Corresponds to the JSON property `producer`
|
|
713
|
-
# @return [String]
|
|
714
|
-
attr_accessor :producer
|
|
715
|
-
|
|
716
|
-
# Optional. Set this to True if this is the first log entry in the operation.
|
|
717
|
-
# Corresponds to the JSON property `first`
|
|
718
|
-
# @return [Boolean]
|
|
719
|
-
attr_accessor :first
|
|
720
|
-
alias_method :first?, :first
|
|
721
|
-
|
|
722
|
-
# Optional. Set this to True if this is the last log entry in the operation.
|
|
723
|
-
# Corresponds to the JSON property `last`
|
|
724
|
-
# @return [Boolean]
|
|
725
|
-
attr_accessor :last
|
|
726
|
-
alias_method :last?, :last
|
|
727
|
-
|
|
728
|
-
def initialize(**args)
|
|
729
|
-
update!(**args)
|
|
730
|
-
end
|
|
731
|
-
|
|
732
|
-
# Update properties of this object
|
|
733
|
-
def update!(**args)
|
|
734
|
-
@id = args[:id] if args.key?(:id)
|
|
735
|
-
@producer = args[:producer] if args.key?(:producer)
|
|
736
|
-
@first = args[:first] if args.key?(:first)
|
|
737
|
-
@last = args[:last] if args.key?(:last)
|
|
738
|
-
end
|
|
739
|
-
end
|
|
740
|
-
|
|
741
|
-
# An object representing a resource that can be used for monitoring, logging,
|
|
742
|
-
# billing, or other purposes. Examples include virtual machine instances,
|
|
743
|
-
# databases, and storage devices such as disks. The type field identifies a
|
|
744
|
-
# MonitoredResourceDescriptor object that describes the resource's schema.
|
|
745
|
-
# Information in the labels field identifies the actual resource and its
|
|
746
|
-
# attributes according to the schema. For example, a particular Compute Engine
|
|
747
|
-
# VM instance could be represented by the following object, because the
|
|
748
|
-
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
|
749
|
-
# zone":
|
|
750
|
-
# ` "type": "gce_instance",
|
|
751
|
-
# "labels": ` "instance_id": "12345678901234",
|
|
752
|
-
# "zone": "us-central1-a" ``
|
|
753
|
-
class MonitoredResource
|
|
754
|
-
include Google::Apis::Core::Hashable
|
|
755
|
-
|
|
756
|
-
# Required. The monitored resource type. This field must match the type field of
|
|
757
|
-
# a MonitoredResourceDescriptor object. For example, the type of a Compute
|
|
758
|
-
# Engine VM instance is gce_instance.
|
|
759
|
-
# Corresponds to the JSON property `type`
|
|
760
|
-
# @return [String]
|
|
761
|
-
attr_accessor :type
|
|
762
|
-
|
|
763
|
-
# Required. Values for all of the labels listed in the associated monitored
|
|
764
|
-
# resource descriptor. For example, Compute Engine VM instances use the labels "
|
|
765
|
-
# project_id", "instance_id", and "zone".
|
|
766
|
-
# Corresponds to the JSON property `labels`
|
|
767
|
-
# @return [Hash<String,String>]
|
|
768
|
-
attr_accessor :labels
|
|
769
|
-
|
|
770
|
-
def initialize(**args)
|
|
771
|
-
update!(**args)
|
|
772
|
-
end
|
|
773
|
-
|
|
774
|
-
# Update properties of this object
|
|
775
|
-
def update!(**args)
|
|
776
|
-
@type = args[:type] if args.key?(:type)
|
|
777
|
-
@labels = args[:labels] if args.key?(:labels)
|
|
778
|
-
end
|
|
779
|
-
end
|
|
780
|
-
|
|
781
|
-
# Describes a sink used to export log entries to one of the following
|
|
782
|
-
# destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
|
|
783
|
-
# Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
|
|
784
|
-
# The sink must be created within a project, organization, billing account, or
|
|
785
|
-
# folder.
|
|
786
|
-
class LogSink
|
|
787
|
-
include Google::Apis::Core::Hashable
|
|
788
|
-
|
|
789
|
-
# Required. The client-assigned sink identifier, unique within the project.
|
|
790
|
-
# Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100
|
|
791
|
-
# characters and can include only the following characters: upper and lower-case
|
|
792
|
-
# alphanumeric characters, underscores, hyphens, and periods.
|
|
793
|
-
# Corresponds to the JSON property `name`
|
|
794
|
-
# @return [String]
|
|
795
|
-
attr_accessor :name
|
|
796
|
-
|
|
797
|
-
# Optional. This field applies only to sinks owned by organizations and folders.
|
|
798
|
-
# If the field is false, the default, only the logs owned by the sink's parent
|
|
799
|
-
# resource are available for export. If the field is true, then logs from all
|
|
800
|
-
# the projects, folders, and billing accounts contained in the sink's parent
|
|
801
|
-
# resource are also available for export. Whether a particular log entry from
|
|
802
|
-
# the children is exported depends on the sink's filter expression. For example,
|
|
803
|
-
# if this field is true, then the filter resource.type=gce_instance would export
|
|
804
|
-
# all Compute Engine VM instance log entries from all projects in the sink's
|
|
805
|
-
# parent. To only export entries from certain child projects, filter on the
|
|
806
|
-
# project part of the log name:
|
|
807
|
-
# logName:("projects/test-project1/" OR "projects/test-project2/") AND
|
|
808
|
-
# resource.type=gce_instance
|
|
809
|
-
# Corresponds to the JSON property `includeChildren`
|
|
810
|
-
# @return [Boolean]
|
|
811
|
-
attr_accessor :include_children
|
|
812
|
-
alias_method :include_children?, :include_children
|
|
813
|
-
|
|
814
|
-
# Required. The export destination:
|
|
815
|
-
# "storage.googleapis.com/[GCS_BUCKET]"
|
|
816
|
-
# "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
|
|
817
|
-
# "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
|
|
818
|
-
# The sink's writer_identity, set when the sink is created, must have permission
|
|
819
|
-
# to write to the destination or else the log entries are not exported. For more
|
|
820
|
-
# information, see Exporting Logs With Sinks.
|
|
821
|
-
# Corresponds to the JSON property `destination`
|
|
822
|
-
# @return [String]
|
|
823
|
-
attr_accessor :destination
|
|
824
|
-
|
|
825
|
-
# Optional. An advanced logs filter. The only exported log entries are those
|
|
826
|
-
# that are in the resource owning the sink and that match the filter. The filter
|
|
827
|
-
# must use the log entry format specified by the output_version_format parameter.
|
|
828
|
-
# For example, in the v2 format:
|
|
829
|
-
# logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
|
|
830
|
-
# Corresponds to the JSON property `filter`
|
|
831
|
-
# @return [String]
|
|
832
|
-
attr_accessor :filter
|
|
833
|
-
|
|
834
|
-
# Optional. The time at which this sink will stop exporting log entries. Log
|
|
835
|
-
# entries are exported only if their timestamp is earlier than the end time. If
|
|
836
|
-
# this field is not supplied, there is no end time. If both a start time and an
|
|
837
|
-
# end time are provided, then the end time must be later than the start time.
|
|
838
|
-
# Corresponds to the JSON property `endTime`
|
|
839
|
-
# @return [String]
|
|
840
|
-
attr_accessor :end_time
|
|
841
|
-
|
|
842
|
-
# Output only. An IAM identity—a service account or group—under
|
|
843
|
-
# which Stackdriver Logging writes the exported log entries to the sink's
|
|
844
|
-
# destination. This field is set by sinks.create and sinks.update, based on the
|
|
845
|
-
# setting of unique_writer_identity in those methods.Until you grant this
|
|
846
|
-
# identity write-access to the destination, log entry exports from this sink
|
|
847
|
-
# will fail. For more information, see Granting access for a resource. Consult
|
|
848
|
-
# the destination service's documentation to determine the appropriate IAM roles
|
|
849
|
-
# to assign to the identity.
|
|
850
|
-
# Corresponds to the JSON property `writerIdentity`
|
|
851
|
-
# @return [String]
|
|
852
|
-
attr_accessor :writer_identity
|
|
853
|
-
|
|
854
|
-
# Optional. The time at which this sink will begin exporting log entries. Log
|
|
855
|
-
# entries are exported only if their timestamp is not earlier than the start
|
|
856
|
-
# time. The default value of this field is the time the sink is created or
|
|
857
|
-
# updated.
|
|
858
|
-
# Corresponds to the JSON property `startTime`
|
|
859
|
-
# @return [String]
|
|
860
|
-
attr_accessor :start_time
|
|
861
|
-
|
|
862
|
-
# Optional. The log entry format to use for this sink's exported log entries.
|
|
863
|
-
# The v2 format is used by default. The v1 format is deprecated and should be
|
|
864
|
-
# used only as part of a migration effort to v2. See Migration to the v2 API.
|
|
865
|
-
# Corresponds to the JSON property `outputVersionFormat`
|
|
866
|
-
# @return [String]
|
|
867
|
-
attr_accessor :output_version_format
|
|
868
|
-
|
|
869
|
-
def initialize(**args)
|
|
870
|
-
update!(**args)
|
|
871
|
-
end
|
|
872
|
-
|
|
873
|
-
# Update properties of this object
|
|
874
|
-
def update!(**args)
|
|
875
|
-
@name = args[:name] if args.key?(:name)
|
|
876
|
-
@include_children = args[:include_children] if args.key?(:include_children)
|
|
877
|
-
@destination = args[:destination] if args.key?(:destination)
|
|
878
|
-
@filter = args[:filter] if args.key?(:filter)
|
|
879
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
|
880
|
-
@writer_identity = args[:writer_identity] if args.key?(:writer_identity)
|
|
881
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
|
882
|
-
@output_version_format = args[:output_version_format] if args.key?(:output_version_format)
|
|
883
|
-
end
|
|
884
|
-
end
|
|
885
|
-
|
|
886
|
-
# The parameters to WriteLogEntries.
|
|
887
|
-
class WriteLogEntriesRequest
|
|
888
|
-
include Google::Apis::Core::Hashable
|
|
889
|
-
|
|
890
|
-
# Optional. A default log resource name that is assigned to all log entries in
|
|
891
|
-
# entries that do not specify a value for log_name:
|
|
892
|
-
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
893
|
-
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
894
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
|
895
|
-
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
|
896
|
-
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
897
|
-
# or "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
898
|
-
# 2Factivity". For more information about log names, see LogEntry.
|
|
899
|
-
# Corresponds to the JSON property `logName`
|
|
900
|
-
# @return [String]
|
|
901
|
-
attr_accessor :log_name
|
|
902
|
-
|
|
903
|
-
# Required. The log entries to write. Values supplied for the fields log_name,
|
|
904
|
-
# resource, and labels in this entries.write request are inserted into those log
|
|
905
|
-
# entries in this list that do not provide their own values.Stackdriver Logging
|
|
906
|
-
# also creates and inserts values for timestamp and insert_id if the entries do
|
|
907
|
-
# not provide them. The created insert_id for the N'th entry in this list will
|
|
908
|
-
# be greater than earlier entries and less than later entries. Otherwise, the
|
|
909
|
-
# order of log entries in this list does not matter.To improve throughput and to
|
|
910
|
-
# avoid exceeding the quota limit for calls to entries.write, you should write
|
|
911
|
-
# multiple log entries at once rather than calling this method for each
|
|
912
|
-
# individual log entry.
|
|
913
|
-
# Corresponds to the JSON property `entries`
|
|
914
|
-
# @return [Array<Google::Apis::LoggingV2::LogEntry>]
|
|
915
|
-
attr_accessor :entries
|
|
916
|
-
|
|
917
|
-
# Optional. Whether valid entries should be written even if some other entries
|
|
918
|
-
# fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any entry is not
|
|
919
|
-
# written, then the response status is the error associated with one of the
|
|
920
|
-
# failed entries and the response includes error details keyed by the entries'
|
|
921
|
-
# zero-based index in the entries.write method.
|
|
922
|
-
# Corresponds to the JSON property `partialSuccess`
|
|
923
|
-
# @return [Boolean]
|
|
924
|
-
attr_accessor :partial_success
|
|
925
|
-
alias_method :partial_success?, :partial_success
|
|
882
|
+
# Result returned from ListMonitoredResourceDescriptors.
|
|
883
|
+
class ListMonitoredResourceDescriptorsResponse
|
|
884
|
+
include Google::Apis::Core::Hashable
|
|
926
885
|
|
|
927
|
-
#
|
|
928
|
-
#
|
|
929
|
-
#
|
|
930
|
-
# Corresponds to the JSON property `
|
|
931
|
-
# @return [
|
|
932
|
-
attr_accessor :
|
|
886
|
+
# If there might be more results than those appearing in this response, then
|
|
887
|
+
# nextPageToken is included. To get the next set of results, call this method
|
|
888
|
+
# again using the value of nextPageToken as pageToken.
|
|
889
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
890
|
+
# @return [String]
|
|
891
|
+
attr_accessor :next_page_token
|
|
933
892
|
|
|
934
|
-
#
|
|
935
|
-
#
|
|
936
|
-
#
|
|
937
|
-
|
|
938
|
-
# Information in the labels field identifies the actual resource and its
|
|
939
|
-
# attributes according to the schema. For example, a particular Compute Engine
|
|
940
|
-
# VM instance could be represented by the following object, because the
|
|
941
|
-
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
|
942
|
-
# zone":
|
|
943
|
-
# ` "type": "gce_instance",
|
|
944
|
-
# "labels": ` "instance_id": "12345678901234",
|
|
945
|
-
# "zone": "us-central1-a" ``
|
|
946
|
-
# Corresponds to the JSON property `resource`
|
|
947
|
-
# @return [Google::Apis::LoggingV2::MonitoredResource]
|
|
948
|
-
attr_accessor :resource
|
|
893
|
+
# A list of resource descriptors.
|
|
894
|
+
# Corresponds to the JSON property `resourceDescriptors`
|
|
895
|
+
# @return [Array<Google::Apis::LoggingV2::MonitoredResourceDescriptor>]
|
|
896
|
+
attr_accessor :resource_descriptors
|
|
949
897
|
|
|
950
898
|
def initialize(**args)
|
|
951
899
|
update!(**args)
|
|
@@ -953,30 +901,27 @@ module Google
|
|
|
953
901
|
|
|
954
902
|
# Update properties of this object
|
|
955
903
|
def update!(**args)
|
|
956
|
-
@
|
|
957
|
-
@
|
|
958
|
-
@partial_success = args[:partial_success] if args.key?(:partial_success)
|
|
959
|
-
@labels = args[:labels] if args.key?(:labels)
|
|
960
|
-
@resource = args[:resource] if args.key?(:resource)
|
|
904
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
905
|
+
@resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors)
|
|
961
906
|
end
|
|
962
907
|
end
|
|
963
908
|
|
|
964
|
-
#
|
|
965
|
-
|
|
909
|
+
# A reference to a particular snapshot of the source tree used to build and
|
|
910
|
+
# deploy an application.
|
|
911
|
+
class SourceReference
|
|
966
912
|
include Google::Apis::Core::Hashable
|
|
967
913
|
|
|
968
|
-
# A
|
|
969
|
-
#
|
|
970
|
-
# Corresponds to the JSON property `
|
|
971
|
-
# @return [
|
|
972
|
-
attr_accessor :
|
|
914
|
+
# Optional. A URI string identifying the repository. Example: "https://github.
|
|
915
|
+
# com/GoogleCloudPlatform/kubernetes.git"
|
|
916
|
+
# Corresponds to the JSON property `repository`
|
|
917
|
+
# @return [String]
|
|
918
|
+
attr_accessor :repository
|
|
973
919
|
|
|
974
|
-
#
|
|
975
|
-
#
|
|
976
|
-
#
|
|
977
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
920
|
+
# The canonical and persistent identifier of the deployed revision. Example (git)
|
|
921
|
+
# : "0035781c50ec7aa23385dc841529ce8a4b70db1b"
|
|
922
|
+
# Corresponds to the JSON property `revisionId`
|
|
978
923
|
# @return [String]
|
|
979
|
-
attr_accessor :
|
|
924
|
+
attr_accessor :revision_id
|
|
980
925
|
|
|
981
926
|
def initialize(**args)
|
|
982
927
|
update!(**args)
|
|
@@ -984,99 +929,90 @@ module Google
|
|
|
984
929
|
|
|
985
930
|
# Update properties of this object
|
|
986
931
|
def update!(**args)
|
|
987
|
-
@
|
|
988
|
-
@
|
|
932
|
+
@repository = args[:repository] if args.key?(:repository)
|
|
933
|
+
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
|
989
934
|
end
|
|
990
935
|
end
|
|
991
936
|
|
|
992
|
-
#
|
|
993
|
-
#
|
|
994
|
-
|
|
995
|
-
class HttpRequest
|
|
937
|
+
# Describes a logs-based metric. The value of the metric is the number of log
|
|
938
|
+
# entries that match a logs filter in a given time interval.
|
|
939
|
+
class LogMetric
|
|
996
940
|
include Google::Apis::Core::Hashable
|
|
997
941
|
|
|
998
|
-
#
|
|
999
|
-
#
|
|
1000
|
-
#
|
|
1001
|
-
#
|
|
1002
|
-
attr_accessor :cache_validated_with_origin_server
|
|
1003
|
-
alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
|
|
1004
|
-
|
|
1005
|
-
# The response code indicating the status of response. Examples: 200, 404.
|
|
1006
|
-
# Corresponds to the JSON property `status`
|
|
1007
|
-
# @return [Fixnum]
|
|
1008
|
-
attr_accessor :status
|
|
1009
|
-
|
|
1010
|
-
# The referer URL of the request, as defined in HTTP/1.1 Header Field
|
|
1011
|
-
# Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
|
1012
|
-
# Corresponds to the JSON property `referer`
|
|
942
|
+
# Required. An advanced logs filter which is used to match log entries. Example:
|
|
943
|
+
# "resource.type=gae_app AND severity>=ERROR"
|
|
944
|
+
# The maximum length of the filter is 20000 characters.
|
|
945
|
+
# Corresponds to the JSON property `filter`
|
|
1013
946
|
# @return [String]
|
|
1014
|
-
attr_accessor :
|
|
947
|
+
attr_accessor :filter
|
|
1015
948
|
|
|
1016
|
-
# The
|
|
1017
|
-
#
|
|
1018
|
-
#
|
|
949
|
+
# Required. The client-assigned metric identifier. Examples: "error_count", "
|
|
950
|
+
# nginx/requests".Metric identifiers are limited to 100 characters and can
|
|
951
|
+
# include only the following characters: A-Z, a-z, 0-9, and the special
|
|
952
|
+
# characters _-.,+!*',()%/. The forward-slash character (/) denotes a hierarchy
|
|
953
|
+
# of name pieces, and it cannot be the first character of the name.The metric
|
|
954
|
+
# identifier in this field must not be URL-encoded (https://en.wikipedia.org/
|
|
955
|
+
# wiki/Percent-encoding). However, when the metric identifier appears as the [
|
|
956
|
+
# METRIC_ID] part of a metric_name API parameter, then the metric identifier
|
|
957
|
+
# must be URL-encoded. Example: "projects/my-project/metrics/nginx%2Frequests".
|
|
958
|
+
# Corresponds to the JSON property `name`
|
|
1019
959
|
# @return [String]
|
|
1020
|
-
attr_accessor :
|
|
960
|
+
attr_accessor :name
|
|
1021
961
|
|
|
1022
|
-
#
|
|
1023
|
-
#
|
|
1024
|
-
# Corresponds to the JSON property `latency`
|
|
962
|
+
# Optional. A description of this metric, which is used in documentation.
|
|
963
|
+
# Corresponds to the JSON property `description`
|
|
1025
964
|
# @return [String]
|
|
1026
|
-
attr_accessor :
|
|
1027
|
-
|
|
1028
|
-
# The number of HTTP response bytes inserted into cache. Set only when a cache
|
|
1029
|
-
# fill was attempted.
|
|
1030
|
-
# Corresponds to the JSON property `cacheFillBytes`
|
|
1031
|
-
# @return [Fixnum]
|
|
1032
|
-
attr_accessor :cache_fill_bytes
|
|
965
|
+
attr_accessor :description
|
|
1033
966
|
|
|
1034
|
-
# The
|
|
1035
|
-
#
|
|
967
|
+
# Output only. The API version that created or updated this metric. The version
|
|
968
|
+
# also dictates the syntax of the filter expression. When a value for this field
|
|
969
|
+
# is missing, the default value of V2 should be assumed.
|
|
970
|
+
# Corresponds to the JSON property `version`
|
|
1036
971
|
# @return [String]
|
|
1037
|
-
attr_accessor :
|
|
972
|
+
attr_accessor :version
|
|
1038
973
|
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
# @return [Fixnum]
|
|
1043
|
-
attr_accessor :response_size
|
|
974
|
+
def initialize(**args)
|
|
975
|
+
update!(**args)
|
|
976
|
+
end
|
|
1044
977
|
|
|
1045
|
-
#
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
978
|
+
# Update properties of this object
|
|
979
|
+
def update!(**args)
|
|
980
|
+
@filter = args[:filter] if args.key?(:filter)
|
|
981
|
+
@name = args[:name] if args.key?(:name)
|
|
982
|
+
@description = args[:description] if args.key?(:description)
|
|
983
|
+
@version = args[:version] if args.key?(:version)
|
|
984
|
+
end
|
|
985
|
+
end
|
|
1050
986
|
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
attr_accessor :request_url
|
|
987
|
+
# Additional information about a potentially long-running operation with which a
|
|
988
|
+
# log entry is associated.
|
|
989
|
+
class LogEntryOperation
|
|
990
|
+
include Google::Apis::Core::Hashable
|
|
1056
991
|
|
|
1057
|
-
#
|
|
1058
|
-
# to
|
|
1059
|
-
#
|
|
1060
|
-
|
|
1061
|
-
|
|
992
|
+
# Optional. Set this to True if this is the last log entry in the operation.
|
|
993
|
+
# Corresponds to the JSON property `last`
|
|
994
|
+
# @return [Boolean]
|
|
995
|
+
attr_accessor :last
|
|
996
|
+
alias_method :last?, :last
|
|
1062
997
|
|
|
1063
|
-
#
|
|
1064
|
-
#
|
|
1065
|
-
# Corresponds to the JSON property `
|
|
998
|
+
# Optional. An arbitrary operation identifier. Log entries with the same
|
|
999
|
+
# identifier are assumed to be part of the same operation.
|
|
1000
|
+
# Corresponds to the JSON property `id`
|
|
1066
1001
|
# @return [String]
|
|
1067
|
-
attr_accessor :
|
|
1002
|
+
attr_accessor :id
|
|
1068
1003
|
|
|
1069
|
-
#
|
|
1070
|
-
#
|
|
1071
|
-
#
|
|
1072
|
-
|
|
1073
|
-
|
|
1004
|
+
# Optional. An arbitrary producer identifier. The combination of id and producer
|
|
1005
|
+
# must be globally unique. Examples for producer: "MyDivision.MyBigCompany.com",
|
|
1006
|
+
# "github.com/MyProject/MyApplication".
|
|
1007
|
+
# Corresponds to the JSON property `producer`
|
|
1008
|
+
# @return [String]
|
|
1009
|
+
attr_accessor :producer
|
|
1074
1010
|
|
|
1075
|
-
#
|
|
1076
|
-
# Corresponds to the JSON property `
|
|
1011
|
+
# Optional. Set this to True if this is the first log entry in the operation.
|
|
1012
|
+
# Corresponds to the JSON property `first`
|
|
1077
1013
|
# @return [Boolean]
|
|
1078
|
-
attr_accessor :
|
|
1079
|
-
alias_method :
|
|
1014
|
+
attr_accessor :first
|
|
1015
|
+
alias_method :first?, :first
|
|
1080
1016
|
|
|
1081
1017
|
def initialize(**args)
|
|
1082
1018
|
update!(**args)
|
|
@@ -1084,68 +1020,54 @@ module Google
|
|
|
1084
1020
|
|
|
1085
1021
|
# Update properties of this object
|
|
1086
1022
|
def update!(**args)
|
|
1087
|
-
@
|
|
1088
|
-
@
|
|
1089
|
-
@
|
|
1090
|
-
@
|
|
1091
|
-
@latency = args[:latency] if args.key?(:latency)
|
|
1092
|
-
@cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
|
|
1093
|
-
@request_method = args[:request_method] if args.key?(:request_method)
|
|
1094
|
-
@response_size = args[:response_size] if args.key?(:response_size)
|
|
1095
|
-
@request_size = args[:request_size] if args.key?(:request_size)
|
|
1096
|
-
@request_url = args[:request_url] if args.key?(:request_url)
|
|
1097
|
-
@server_ip = args[:server_ip] if args.key?(:server_ip)
|
|
1098
|
-
@remote_ip = args[:remote_ip] if args.key?(:remote_ip)
|
|
1099
|
-
@cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup)
|
|
1100
|
-
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
|
|
1023
|
+
@last = args[:last] if args.key?(:last)
|
|
1024
|
+
@id = args[:id] if args.key?(:id)
|
|
1025
|
+
@producer = args[:producer] if args.key?(:producer)
|
|
1026
|
+
@first = args[:first] if args.key?(:first)
|
|
1101
1027
|
end
|
|
1102
1028
|
end
|
|
1103
1029
|
|
|
1104
|
-
# Result returned from
|
|
1105
|
-
class
|
|
1030
|
+
# Result returned from WriteLogEntries. empty
|
|
1031
|
+
class WriteLogEntriesResponse
|
|
1106
1032
|
include Google::Apis::Core::Hashable
|
|
1107
1033
|
|
|
1108
|
-
# If there might be more results than appear in this response, then
|
|
1109
|
-
# nextPageToken is included. To get the next set of results, call the same
|
|
1110
|
-
# method again using the value of nextPageToken as pageToken.
|
|
1111
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
1112
|
-
# @return [String]
|
|
1113
|
-
attr_accessor :next_page_token
|
|
1114
|
-
|
|
1115
|
-
# A list of sinks.
|
|
1116
|
-
# Corresponds to the JSON property `sinks`
|
|
1117
|
-
# @return [Array<Google::Apis::LoggingV2::LogSink>]
|
|
1118
|
-
attr_accessor :sinks
|
|
1119
|
-
|
|
1120
1034
|
def initialize(**args)
|
|
1121
1035
|
update!(**args)
|
|
1122
1036
|
end
|
|
1123
1037
|
|
|
1124
1038
|
# Update properties of this object
|
|
1125
1039
|
def update!(**args)
|
|
1126
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1127
|
-
@sinks = args[:sinks] if args.key?(:sinks)
|
|
1128
1040
|
end
|
|
1129
1041
|
end
|
|
1130
1042
|
|
|
1131
|
-
#
|
|
1132
|
-
|
|
1043
|
+
# An object representing a resource that can be used for monitoring, logging,
|
|
1044
|
+
# billing, or other purposes. Examples include virtual machine instances,
|
|
1045
|
+
# databases, and storage devices such as disks. The type field identifies a
|
|
1046
|
+
# MonitoredResourceDescriptor object that describes the resource's schema.
|
|
1047
|
+
# Information in the labels field identifies the actual resource and its
|
|
1048
|
+
# attributes according to the schema. For example, a particular Compute Engine
|
|
1049
|
+
# VM instance could be represented by the following object, because the
|
|
1050
|
+
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
|
1051
|
+
# zone":
|
|
1052
|
+
# ` "type": "gce_instance",
|
|
1053
|
+
# "labels": ` "instance_id": "12345678901234",
|
|
1054
|
+
# "zone": "us-central1-a" ``
|
|
1055
|
+
class MonitoredResource
|
|
1133
1056
|
include Google::Apis::Core::Hashable
|
|
1134
1057
|
|
|
1135
|
-
# The
|
|
1136
|
-
#
|
|
1137
|
-
#
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
# A human-readable description for the label.
|
|
1141
|
-
# Corresponds to the JSON property `description`
|
|
1058
|
+
# Required. The monitored resource type. This field must match the type field of
|
|
1059
|
+
# a MonitoredResourceDescriptor object. For example, the type of a Compute
|
|
1060
|
+
# Engine VM instance is gce_instance.
|
|
1061
|
+
# Corresponds to the JSON property `type`
|
|
1142
1062
|
# @return [String]
|
|
1143
|
-
attr_accessor :
|
|
1063
|
+
attr_accessor :type
|
|
1144
1064
|
|
|
1145
|
-
#
|
|
1146
|
-
#
|
|
1147
|
-
#
|
|
1148
|
-
|
|
1065
|
+
# Required. Values for all of the labels listed in the associated monitored
|
|
1066
|
+
# resource descriptor. For example, Compute Engine VM instances use the labels "
|
|
1067
|
+
# project_id", "instance_id", and "zone".
|
|
1068
|
+
# Corresponds to the JSON property `labels`
|
|
1069
|
+
# @return [Hash<String,String>]
|
|
1070
|
+
attr_accessor :labels
|
|
1149
1071
|
|
|
1150
1072
|
def initialize(**args)
|
|
1151
1073
|
update!(**args)
|
|
@@ -1153,58 +1075,98 @@ module Google
|
|
|
1153
1075
|
|
|
1154
1076
|
# Update properties of this object
|
|
1155
1077
|
def update!(**args)
|
|
1156
|
-
@
|
|
1157
|
-
@
|
|
1158
|
-
@value_type = args[:value_type] if args.key?(:value_type)
|
|
1078
|
+
@type = args[:type] if args.key?(:type)
|
|
1079
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
1159
1080
|
end
|
|
1160
1081
|
end
|
|
1161
1082
|
|
|
1162
|
-
#
|
|
1163
|
-
#
|
|
1164
|
-
#
|
|
1165
|
-
#
|
|
1166
|
-
#
|
|
1167
|
-
|
|
1168
|
-
# descriptors used by the API.
|
|
1169
|
-
class MonitoredResourceDescriptor
|
|
1083
|
+
# Describes a sink used to export log entries to one of the following
|
|
1084
|
+
# destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
|
|
1085
|
+
# Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
|
|
1086
|
+
# The sink must be created within a project, organization, billing account, or
|
|
1087
|
+
# folder.
|
|
1088
|
+
class LogSink
|
|
1170
1089
|
include Google::Apis::Core::Hashable
|
|
1171
1090
|
|
|
1172
|
-
# Optional.
|
|
1173
|
-
#
|
|
1174
|
-
#
|
|
1175
|
-
#
|
|
1176
|
-
#
|
|
1177
|
-
#
|
|
1178
|
-
#
|
|
1091
|
+
# Optional. This field applies only to sinks owned by organizations and folders.
|
|
1092
|
+
# If the field is false, the default, only the logs owned by the sink's parent
|
|
1093
|
+
# resource are available for export. If the field is true, then logs from all
|
|
1094
|
+
# the projects, folders, and billing accounts contained in the sink's parent
|
|
1095
|
+
# resource are also available for export. Whether a particular log entry from
|
|
1096
|
+
# the children is exported depends on the sink's filter expression. For example,
|
|
1097
|
+
# if this field is true, then the filter resource.type=gce_instance would export
|
|
1098
|
+
# all Compute Engine VM instance log entries from all projects in the sink's
|
|
1099
|
+
# parent. To only export entries from certain child projects, filter on the
|
|
1100
|
+
# project part of the log name:
|
|
1101
|
+
# logName:("projects/test-project1/" OR "projects/test-project2/") AND
|
|
1102
|
+
# resource.type=gce_instance
|
|
1103
|
+
# Corresponds to the JSON property `includeChildren`
|
|
1104
|
+
# @return [Boolean]
|
|
1105
|
+
attr_accessor :include_children
|
|
1106
|
+
alias_method :include_children?, :include_children
|
|
1107
|
+
|
|
1108
|
+
# Optional. An advanced logs filter. The only exported log entries are those
|
|
1109
|
+
# that are in the resource owning the sink and that match the filter. The filter
|
|
1110
|
+
# must use the log entry format specified by the output_version_format parameter.
|
|
1111
|
+
# For example, in the v2 format:
|
|
1112
|
+
# logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
|
|
1113
|
+
# Corresponds to the JSON property `filter`
|
|
1179
1114
|
# @return [String]
|
|
1180
|
-
attr_accessor :
|
|
1115
|
+
attr_accessor :filter
|
|
1181
1116
|
|
|
1182
|
-
#
|
|
1183
|
-
#
|
|
1184
|
-
#
|
|
1185
|
-
#
|
|
1117
|
+
# Required. The export destination:
|
|
1118
|
+
# "storage.googleapis.com/[GCS_BUCKET]"
|
|
1119
|
+
# "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
|
|
1120
|
+
# "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
|
|
1121
|
+
# The sink's writer_identity, set when the sink is created, must have permission
|
|
1122
|
+
# to write to the destination or else the log entries are not exported. For more
|
|
1123
|
+
# information, see Exporting Logs With Sinks.
|
|
1124
|
+
# Corresponds to the JSON property `destination`
|
|
1186
1125
|
# @return [String]
|
|
1187
|
-
attr_accessor :
|
|
1126
|
+
attr_accessor :destination
|
|
1188
1127
|
|
|
1189
|
-
# Optional.
|
|
1190
|
-
#
|
|
1191
|
-
#
|
|
1128
|
+
# Optional. The time at which this sink will stop exporting log entries. Log
|
|
1129
|
+
# entries are exported only if their timestamp is earlier than the end time. If
|
|
1130
|
+
# this field is not supplied, there is no end time. If both a start time and an
|
|
1131
|
+
# end time are provided, then the end time must be later than the start time.
|
|
1132
|
+
# Corresponds to the JSON property `endTime`
|
|
1192
1133
|
# @return [String]
|
|
1193
|
-
attr_accessor :
|
|
1134
|
+
attr_accessor :end_time
|
|
1194
1135
|
|
|
1195
|
-
#
|
|
1196
|
-
#
|
|
1197
|
-
#
|
|
1198
|
-
#
|
|
1136
|
+
# Optional. The time at which this sink will begin exporting log entries. Log
|
|
1137
|
+
# entries are exported only if their timestamp is not earlier than the start
|
|
1138
|
+
# time. The default value of this field is the time the sink is created or
|
|
1139
|
+
# updated.
|
|
1140
|
+
# Corresponds to the JSON property `startTime`
|
|
1199
1141
|
# @return [String]
|
|
1200
|
-
attr_accessor :
|
|
1142
|
+
attr_accessor :start_time
|
|
1201
1143
|
|
|
1202
|
-
#
|
|
1203
|
-
#
|
|
1204
|
-
#
|
|
1205
|
-
#
|
|
1206
|
-
#
|
|
1207
|
-
|
|
1144
|
+
# Output only. An IAM identity—a service account or group—under
|
|
1145
|
+
# which Stackdriver Logging writes the exported log entries to the sink's
|
|
1146
|
+
# destination. This field is set by sinks.create and sinks.update, based on the
|
|
1147
|
+
# setting of unique_writer_identity in those methods.Until you grant this
|
|
1148
|
+
# identity write-access to the destination, log entry exports from this sink
|
|
1149
|
+
# will fail. For more information, see Granting access for a resource. Consult
|
|
1150
|
+
# the destination service's documentation to determine the appropriate IAM roles
|
|
1151
|
+
# to assign to the identity.
|
|
1152
|
+
# Corresponds to the JSON property `writerIdentity`
|
|
1153
|
+
# @return [String]
|
|
1154
|
+
attr_accessor :writer_identity
|
|
1155
|
+
|
|
1156
|
+
# Optional. The log entry format to use for this sink's exported log entries.
|
|
1157
|
+
# The v2 format is used by default. The v1 format is deprecated and should be
|
|
1158
|
+
# used only as part of a migration effort to v2. See Migration to the v2 API.
|
|
1159
|
+
# Corresponds to the JSON property `outputVersionFormat`
|
|
1160
|
+
# @return [String]
|
|
1161
|
+
attr_accessor :output_version_format
|
|
1162
|
+
|
|
1163
|
+
# Required. The client-assigned sink identifier, unique within the project.
|
|
1164
|
+
# Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100
|
|
1165
|
+
# characters and can include only the following characters: upper and lower-case
|
|
1166
|
+
# alphanumeric characters, underscores, hyphens, and periods.
|
|
1167
|
+
# Corresponds to the JSON property `name`
|
|
1168
|
+
# @return [String]
|
|
1169
|
+
attr_accessor :name
|
|
1208
1170
|
|
|
1209
1171
|
def initialize(**args)
|
|
1210
1172
|
update!(**args)
|
|
@@ -1212,39 +1174,80 @@ module Google
|
|
|
1212
1174
|
|
|
1213
1175
|
# Update properties of this object
|
|
1214
1176
|
def update!(**args)
|
|
1177
|
+
@include_children = args[:include_children] if args.key?(:include_children)
|
|
1178
|
+
@filter = args[:filter] if args.key?(:filter)
|
|
1179
|
+
@destination = args[:destination] if args.key?(:destination)
|
|
1180
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
|
1181
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
|
1182
|
+
@writer_identity = args[:writer_identity] if args.key?(:writer_identity)
|
|
1183
|
+
@output_version_format = args[:output_version_format] if args.key?(:output_version_format)
|
|
1215
1184
|
@name = args[:name] if args.key?(:name)
|
|
1216
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
|
1217
|
-
@description = args[:description] if args.key?(:description)
|
|
1218
|
-
@type = args[:type] if args.key?(:type)
|
|
1219
|
-
@labels = args[:labels] if args.key?(:labels)
|
|
1220
1185
|
end
|
|
1221
1186
|
end
|
|
1222
1187
|
|
|
1223
|
-
#
|
|
1224
|
-
|
|
1225
|
-
class LogEntrySourceLocation
|
|
1188
|
+
# The parameters to WriteLogEntries.
|
|
1189
|
+
class WriteLogEntriesRequest
|
|
1226
1190
|
include Google::Apis::Core::Hashable
|
|
1227
1191
|
|
|
1228
|
-
# Optional.
|
|
1229
|
-
#
|
|
1230
|
-
#
|
|
1192
|
+
# Optional. A default log resource name that is assigned to all log entries in
|
|
1193
|
+
# entries that do not specify a value for log_name:
|
|
1194
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
1195
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
1196
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
|
1197
|
+
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
|
1198
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
1199
|
+
# or "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
1200
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
|
1201
|
+
# Corresponds to the JSON property `logName`
|
|
1231
1202
|
# @return [String]
|
|
1232
|
-
attr_accessor :
|
|
1203
|
+
attr_accessor :log_name
|
|
1233
1204
|
|
|
1234
|
-
#
|
|
1235
|
-
#
|
|
1236
|
-
#
|
|
1237
|
-
#
|
|
1238
|
-
#
|
|
1239
|
-
#
|
|
1240
|
-
#
|
|
1241
|
-
|
|
1205
|
+
# Required. The log entries to write. Values supplied for the fields log_name,
|
|
1206
|
+
# resource, and labels in this entries.write request are inserted into those log
|
|
1207
|
+
# entries in this list that do not provide their own values.Stackdriver Logging
|
|
1208
|
+
# also creates and inserts values for timestamp and insert_id if the entries do
|
|
1209
|
+
# not provide them. The created insert_id for the N'th entry in this list will
|
|
1210
|
+
# be greater than earlier entries and less than later entries. Otherwise, the
|
|
1211
|
+
# order of log entries in this list does not matter.To improve throughput and to
|
|
1212
|
+
# avoid exceeding the quota limit for calls to entries.write, you should write
|
|
1213
|
+
# multiple log entries at once rather than calling this method for each
|
|
1214
|
+
# individual log entry.
|
|
1215
|
+
# Corresponds to the JSON property `entries`
|
|
1216
|
+
# @return [Array<Google::Apis::LoggingV2::LogEntry>]
|
|
1217
|
+
attr_accessor :entries
|
|
1242
1218
|
|
|
1243
|
-
# Optional.
|
|
1244
|
-
#
|
|
1245
|
-
#
|
|
1246
|
-
#
|
|
1247
|
-
|
|
1219
|
+
# Optional. Whether valid entries should be written even if some other entries
|
|
1220
|
+
# fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any entry is not
|
|
1221
|
+
# written, then the response status is the error associated with one of the
|
|
1222
|
+
# failed entries and the response includes error details keyed by the entries'
|
|
1223
|
+
# zero-based index in the entries.write method.
|
|
1224
|
+
# Corresponds to the JSON property `partialSuccess`
|
|
1225
|
+
# @return [Boolean]
|
|
1226
|
+
attr_accessor :partial_success
|
|
1227
|
+
alias_method :partial_success?, :partial_success
|
|
1228
|
+
|
|
1229
|
+
# Optional. Default labels that are added to the labels field of all log entries
|
|
1230
|
+
# in entries. If a log entry already has a label with the same key as a label in
|
|
1231
|
+
# this parameter, then the log entry's label is not changed. See LogEntry.
|
|
1232
|
+
# Corresponds to the JSON property `labels`
|
|
1233
|
+
# @return [Hash<String,String>]
|
|
1234
|
+
attr_accessor :labels
|
|
1235
|
+
|
|
1236
|
+
# An object representing a resource that can be used for monitoring, logging,
|
|
1237
|
+
# billing, or other purposes. Examples include virtual machine instances,
|
|
1238
|
+
# databases, and storage devices such as disks. The type field identifies a
|
|
1239
|
+
# MonitoredResourceDescriptor object that describes the resource's schema.
|
|
1240
|
+
# Information in the labels field identifies the actual resource and its
|
|
1241
|
+
# attributes according to the schema. For example, a particular Compute Engine
|
|
1242
|
+
# VM instance could be represented by the following object, because the
|
|
1243
|
+
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
|
1244
|
+
# zone":
|
|
1245
|
+
# ` "type": "gce_instance",
|
|
1246
|
+
# "labels": ` "instance_id": "12345678901234",
|
|
1247
|
+
# "zone": "us-central1-a" ``
|
|
1248
|
+
# Corresponds to the JSON property `resource`
|
|
1249
|
+
# @return [Google::Apis::LoggingV2::MonitoredResource]
|
|
1250
|
+
attr_accessor :resource
|
|
1248
1251
|
|
|
1249
1252
|
def initialize(**args)
|
|
1250
1253
|
update!(**args)
|
|
@@ -1252,33 +1255,30 @@ module Google
|
|
|
1252
1255
|
|
|
1253
1256
|
# Update properties of this object
|
|
1254
1257
|
def update!(**args)
|
|
1255
|
-
@
|
|
1256
|
-
@
|
|
1257
|
-
@
|
|
1258
|
+
@log_name = args[:log_name] if args.key?(:log_name)
|
|
1259
|
+
@entries = args[:entries] if args.key?(:entries)
|
|
1260
|
+
@partial_success = args[:partial_success] if args.key?(:partial_success)
|
|
1261
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
1262
|
+
@resource = args[:resource] if args.key?(:resource)
|
|
1258
1263
|
end
|
|
1259
1264
|
end
|
|
1260
1265
|
|
|
1261
|
-
# Result returned from
|
|
1262
|
-
class
|
|
1266
|
+
# Result returned from ListLogs.
|
|
1267
|
+
class ListLogsResponse
|
|
1263
1268
|
include Google::Apis::Core::Hashable
|
|
1264
1269
|
|
|
1265
1270
|
# If there might be more results than those appearing in this response, then
|
|
1266
1271
|
# nextPageToken is included. To get the next set of results, call this method
|
|
1267
|
-
# again using the value of nextPageToken as pageToken.
|
|
1268
|
-
# next_page_token appears and the entries field is empty, it means that the
|
|
1269
|
-
# search found no log entries so far but it did not have time to search all the
|
|
1270
|
-
# possible log entries. Retry the method with this value for page_token to
|
|
1271
|
-
# continue the search. Alternatively, consider speeding up the search by
|
|
1272
|
-
# changing your filter to specify a single log name or resource type, or to
|
|
1273
|
-
# narrow the time range of the search.
|
|
1272
|
+
# again using the value of nextPageToken as pageToken.
|
|
1274
1273
|
# Corresponds to the JSON property `nextPageToken`
|
|
1275
1274
|
# @return [String]
|
|
1276
1275
|
attr_accessor :next_page_token
|
|
1277
1276
|
|
|
1278
|
-
# A list of log
|
|
1279
|
-
#
|
|
1280
|
-
#
|
|
1281
|
-
|
|
1277
|
+
# A list of log names. For example, "projects/my-project/syslog" or "
|
|
1278
|
+
# organizations/123/cloudresourcemanager.googleapis.com%2Factivity".
|
|
1279
|
+
# Corresponds to the JSON property `logNames`
|
|
1280
|
+
# @return [Array<String>]
|
|
1281
|
+
attr_accessor :log_names
|
|
1282
1282
|
|
|
1283
1283
|
def initialize(**args)
|
|
1284
1284
|
update!(**args)
|
|
@@ -1287,7 +1287,7 @@ module Google
|
|
|
1287
1287
|
# Update properties of this object
|
|
1288
1288
|
def update!(**args)
|
|
1289
1289
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1290
|
-
@
|
|
1290
|
+
@log_names = args[:log_names] if args.key?(:log_names)
|
|
1291
1291
|
end
|
|
1292
1292
|
end
|
|
1293
1293
|
end
|