google-api-client 0.9.pre3 → 0.9.pre4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +14 -2
- data/Gemfile +4 -0
- data/MIGRATING.md +1 -1
- data/README.md +17 -3
- data/api_names.yaml +127 -14
- data/api_names_out.yaml +5442 -710
- data/bin/generate-api +16 -14
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
- data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
- data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
- data/generated/google/apis/admin_directory_v1.rb +25 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
- data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +5 -10
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
- data/generated/google/apis/adsense_v1_4/service.rb +40 -78
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +11 -13
- data/generated/google/apis/analytics_v3/service.rb +84 -158
- data/generated/google/apis/androidenterprise_v1.rb +2 -2
- data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
- data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
- data/generated/google/apis/appengine_v1beta4.rb +35 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -2
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +6 -11
- data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
- data/generated/google/apis/bigquery_v2.rb +4 -1
- data/generated/google/apis/bigquery_v2/classes.rb +231 -16
- data/generated/google/apis/bigquery_v2/representations.rb +62 -0
- data/generated/google/apis/bigquery_v2/service.rb +24 -45
- data/generated/google/apis/blogger_v3/service.rb +33 -66
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +441 -0
- data/generated/google/apis/books_v1/representations.rb +177 -0
- data/generated/google/apis/books_v1/service.rb +210 -90
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +34 -18
- data/generated/google/apis/calendar_v3/service.rb +118 -103
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +5 -10
- data/generated/google/apis/classroom_v1.rb +49 -0
- data/generated/google/apis/classroom_v1/classes.rb +512 -0
- data/generated/google/apis/classroom_v1/representations.rb +217 -0
- data/generated/google/apis/classroom_v1/service.rb +970 -0
- data/generated/google/apis/cloudbilling_v1.rb +35 -0
- data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
- data/generated/google/apis/clouddebugger_v2.rb +41 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
- data/generated/google/apis/cloudtrace_v1.rb +35 -0
- data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
- data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
- data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
- data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
- data/generated/google/apis/compute_beta.rb +49 -0
- data/generated/google/apis/compute_beta/classes.rb +9128 -0
- data/generated/google/apis/compute_beta/representations.rb +3048 -0
- data/generated/google/apis/compute_beta/service.rb +10154 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1305 -520
- data/generated/google/apis/compute_v1/representations.rb +122 -15
- data/generated/google/apis/compute_v1/service.rb +2202 -1085
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +56 -31
- data/generated/google/apis/container_v1/representations.rb +12 -0
- data/generated/google/apis/container_v1/service.rb +62 -41
- data/generated/google/apis/content_v2.rb +2 -2
- data/generated/google/apis/content_v2/classes.rb +2252 -56
- data/generated/google/apis/content_v2/representations.rb +917 -87
- data/generated/google/apis/content_v2/service.rb +680 -85
- data/generated/google/apis/coordinate_v1.rb +1 -1
- data/generated/google/apis/coordinate_v1/service.rb +16 -25
- data/generated/google/apis/customsearch_v1/service.rb +1 -2
- data/generated/google/apis/datastore_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
- data/generated/google/apis/deploymentmanager_v2.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
- data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
- data/generated/google/apis/dfareporting_v2_1.rb +1 -1
- data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
- data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
- data/generated/google/apis/discovery_v1/classes.rb +7 -0
- data/generated/google/apis/discovery_v1/representations.rb +1 -0
- data/generated/google/apis/discovery_v1/service.rb +2 -4
- data/generated/google/apis/dns_v1.rb +4 -1
- data/generated/google/apis/dns_v1/service.rb +9 -18
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +73 -30
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +139 -135
- data/generated/google/apis/drive_v3.rb +55 -0
- data/generated/google/apis/drive_v3/classes.rb +1534 -0
- data/generated/google/apis/drive_v3/representations.rb +497 -0
- data/generated/google/apis/drive_v3/service.rb +1541 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +14 -27
- data/generated/google/apis/fusiontables_v2/service.rb +40 -73
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
- data/generated/google/apis/games_management_v1management.rb +37 -0
- data/generated/google/apis/games_management_v1management/classes.rb +524 -0
- data/generated/google/apis/games_management_v1management/representations.rb +231 -0
- data/generated/google/apis/games_management_v1management/service.rb +994 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +39 -0
- data/generated/google/apis/games_v1/representations.rb +14 -0
- data/generated/google/apis/games_v1/service.rb +93 -109
- data/generated/google/apis/gan_v1beta1/service.rb +10 -20
- data/generated/google/apis/genomics_v1.rb +5 -3
- data/generated/google/apis/genomics_v1/classes.rb +519 -200
- data/generated/google/apis/genomics_v1/representations.rb +126 -13
- data/generated/google/apis/genomics_v1/service.rb +392 -236
- data/generated/google/apis/gmail_v1.rb +4 -1
- data/generated/google/apis/gmail_v1/service.rb +39 -71
- data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
- data/generated/google/apis/groupssettings_v1/service.rb +3 -6
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
- data/generated/google/apis/kgsearch_v1.rb +32 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
- data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
- data/generated/google/apis/kgsearch_v1/service.rb +111 -0
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +7 -14
- data/generated/google/apis/logging_v1beta3.rb +16 -4
- data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
- data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
- data/generated/google/apis/logging_v1beta3/service.rb +435 -104
- data/generated/google/apis/manager_v1beta2.rb +3 -0
- data/generated/google/apis/manager_v1beta2/service.rb +8 -16
- data/generated/google/apis/mapsengine_v1.rb +1 -1
- data/generated/google/apis/mapsengine_v1/service.rb +85 -162
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +28 -52
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +4 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
- data/generated/google/apis/partners_v2.rb +32 -0
- data/generated/google/apis/partners_v2/classes.rb +942 -0
- data/generated/google/apis/partners_v2/representations.rb +402 -0
- data/generated/google/apis/partners_v2/service.rb +400 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
- data/generated/google/apis/plus_domains_v1/service.rb +21 -41
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/classes.rb +207 -0
- data/generated/google/apis/plus_v1/representations.rb +114 -0
- data/generated/google/apis/plus_v1/service.rb +11 -56
- data/generated/google/apis/prediction_v1_6.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -16
- data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
- data/generated/google/apis/pubsub_v1.rb +37 -0
- data/generated/google/apis/pubsub_v1/classes.rb +614 -0
- data/generated/google/apis/pubsub_v1/representations.rb +281 -0
- data/generated/google/apis/pubsub_v1/service.rb +774 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
- data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
- data/generated/google/apis/qpx_express_v1/service.rb +1 -2
- data/generated/google/apis/replicapool_v1beta2.rb +3 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +19 -1
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/reseller_v1/service.rb +16 -30
- data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
- data/generated/google/apis/script_v1.rb +61 -0
- data/generated/google/apis/script_v1/classes.rb +259 -0
- data/generated/google/apis/script_v1/representations.rb +106 -0
- data/generated/google/apis/script_v1/service.rb +98 -0
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/site_verification_v1/service.rb +8 -15
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
- data/generated/google/apis/storage_v1.rb +5 -2
- data/generated/google/apis/storage_v1/classes.rb +47 -4
- data/generated/google/apis/storage_v1/representations.rb +18 -0
- data/generated/google/apis/storage_v1/service.rb +77 -94
- data/generated/google/apis/storagetransfer_v1.rb +35 -0
- data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
- data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
- data/generated/google/apis/tagmanager_v1/service.rb +114 -275
- data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
- data/generated/google/apis/tasks_v1/service.rb +14 -28
- data/generated/google/apis/translate_v2/service.rb +3 -6
- data/generated/google/apis/urlshortener_v1/service.rb +3 -6
- data/generated/google/apis/webmasters_v3.rb +3 -3
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/service.rb +16 -30
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +111 -78
- data/generated/google/apis/youtube_v3/representations.rb +2 -0
- data/generated/google/apis/youtube_v3/service.rb +78 -246
- data/generated/google/apis/youtubereporting_v1.rb +38 -0
- data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
- data/google-api-client.gemspec +3 -3
- data/lib/google/api_client/auth/installed_app.rb +2 -2
- data/lib/google/api_client/auth/key_utils.rb +1 -0
- data/lib/google/api_client/auth/storage.rb +1 -0
- data/lib/google/api_client/auth/storages/file_store.rb +1 -0
- data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
- data/lib/google/api_client/client_secrets.rb +4 -5
- data/lib/google/apis/core/api_command.rb +2 -2
- data/lib/google/apis/core/base_service.rb +1 -0
- data/lib/google/apis/core/batch.rb +25 -8
- data/lib/google/apis/core/download.rb +1 -1
- data/lib/google/apis/core/http_command.rb +24 -12
- data/lib/google/apis/core/multipart.rb +20 -6
- data/lib/google/apis/core/upload.rb +11 -4
- data/lib/google/apis/generator/annotator.rb +29 -10
- data/lib/google/apis/generator/helpers.rb +1 -1
- data/lib/google/apis/generator/templates/_method.tmpl +5 -6
- data/lib/google/apis/options.rb +7 -3
- data/lib/google/apis/version.rb +1 -1
- data/samples/calendar/calendar.rb +1 -1
- data/samples/drive/drive.rb +9 -2
- data/samples/pubsub/pubsub.rb +5 -6
- data/samples/translate/translate.rb +1 -5
- data/script/generate +20 -5
- data/spec/fixtures/files/child/.gitignore +0 -0
- data/spec/fixtures/files/invalid.json +1 -0
- data/spec/google/api_client/client_secrets_spec.rb +38 -1
- data/spec/google/apis/core/batch_spec.rb +22 -8
- data/spec/google/apis/core/download_spec.rb +13 -0
- data/spec/google/apis/core/http_command_spec.rb +26 -9
- data/spec/google/apis/core/upload_spec.rb +65 -17
- data/spec/google/apis/options_spec.rb +8 -0
- data/spec/integration_tests/adsense_spec.rb +28 -0
- data/spec/integration_tests/pubsub_spec.rb +3 -3
- data/spec/spec_helper.rb +5 -1
- data/third_party/hurley_patches.rb +103 -0
- metadata +87 -7
|
@@ -46,6 +46,10 @@ module Google
|
|
|
46
46
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
+
class HttpRequest
|
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
+
end
|
|
52
|
+
|
|
49
53
|
class WriteLogEntriesResponse
|
|
50
54
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
55
|
end
|
|
@@ -82,6 +86,34 @@ module Google
|
|
|
82
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
83
87
|
end
|
|
84
88
|
|
|
89
|
+
class ListSinksResponse
|
|
90
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
class ListLogMetricsResponse
|
|
94
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
class LogMetric
|
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
class RequestLog
|
|
102
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
class LogLine
|
|
106
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
class SourceLocation
|
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
class SourceReference
|
|
114
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
115
|
+
end
|
|
116
|
+
|
|
85
117
|
class ListLogsResponse
|
|
86
118
|
# @private
|
|
87
119
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -125,6 +157,8 @@ module Google
|
|
|
125
157
|
hash :struct_payload, as: 'structPayload'
|
|
126
158
|
property :insert_id, as: 'insertId'
|
|
127
159
|
property :log, as: 'log'
|
|
160
|
+
property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV1beta3::HttpRequest, decorator: Google::Apis::LoggingV1beta3::HttpRequest::Representation
|
|
161
|
+
|
|
128
162
|
end
|
|
129
163
|
end
|
|
130
164
|
|
|
@@ -142,6 +176,22 @@ module Google
|
|
|
142
176
|
end
|
|
143
177
|
end
|
|
144
178
|
|
|
179
|
+
class HttpRequest
|
|
180
|
+
# @private
|
|
181
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
182
|
+
property :request_method, as: 'requestMethod'
|
|
183
|
+
property :request_url, as: 'requestUrl'
|
|
184
|
+
property :request_size, as: 'requestSize'
|
|
185
|
+
property :status, as: 'status'
|
|
186
|
+
property :response_size, as: 'responseSize'
|
|
187
|
+
property :user_agent, as: 'userAgent'
|
|
188
|
+
property :remote_ip, as: 'remoteIp'
|
|
189
|
+
property :referer, as: 'referer'
|
|
190
|
+
property :cache_hit, as: 'cacheHit'
|
|
191
|
+
property :validated_with_origin_server, as: 'validatedWithOriginServer'
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
145
195
|
class WriteLogEntriesResponse
|
|
146
196
|
# @private
|
|
147
197
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -186,6 +236,7 @@ module Google
|
|
|
186
236
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
187
237
|
property :name, as: 'name'
|
|
188
238
|
property :destination, as: 'destination'
|
|
239
|
+
property :filter, as: 'filter'
|
|
189
240
|
collection :errors, as: 'errors', class: Google::Apis::LoggingV1beta3::LogError, decorator: Google::Apis::LoggingV1beta3::LogError::Representation
|
|
190
241
|
|
|
191
242
|
end
|
|
@@ -217,6 +268,99 @@ module Google
|
|
|
217
268
|
|
|
218
269
|
end
|
|
219
270
|
end
|
|
271
|
+
|
|
272
|
+
class ListSinksResponse
|
|
273
|
+
# @private
|
|
274
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
275
|
+
collection :sinks, as: 'sinks', class: Google::Apis::LoggingV1beta3::LogSink, decorator: Google::Apis::LoggingV1beta3::LogSink::Representation
|
|
276
|
+
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
class ListLogMetricsResponse
|
|
281
|
+
# @private
|
|
282
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
283
|
+
collection :metrics, as: 'metrics', class: Google::Apis::LoggingV1beta3::LogMetric, decorator: Google::Apis::LoggingV1beta3::LogMetric::Representation
|
|
284
|
+
|
|
285
|
+
property :next_page_token, as: 'nextPageToken'
|
|
286
|
+
end
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
class LogMetric
|
|
290
|
+
# @private
|
|
291
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
292
|
+
property :name, as: 'name'
|
|
293
|
+
property :description, as: 'description'
|
|
294
|
+
property :filter, as: 'filter'
|
|
295
|
+
end
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
class RequestLog
|
|
299
|
+
# @private
|
|
300
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
301
|
+
property :app_id, as: 'appId'
|
|
302
|
+
property :module_id, as: 'moduleId'
|
|
303
|
+
property :version_id, as: 'versionId'
|
|
304
|
+
property :request_id, as: 'requestId'
|
|
305
|
+
property :ip, as: 'ip'
|
|
306
|
+
property :start_time, as: 'startTime'
|
|
307
|
+
property :end_time, as: 'endTime'
|
|
308
|
+
property :latency, as: 'latency'
|
|
309
|
+
property :mega_cycles, as: 'megaCycles'
|
|
310
|
+
property :method_prop, as: 'method'
|
|
311
|
+
property :resource, as: 'resource'
|
|
312
|
+
property :http_version, as: 'httpVersion'
|
|
313
|
+
property :status, as: 'status'
|
|
314
|
+
property :response_size, as: 'responseSize'
|
|
315
|
+
property :referrer, as: 'referrer'
|
|
316
|
+
property :user_agent, as: 'userAgent'
|
|
317
|
+
property :nickname, as: 'nickname'
|
|
318
|
+
property :url_map_entry, as: 'urlMapEntry'
|
|
319
|
+
property :host, as: 'host'
|
|
320
|
+
property :cost, as: 'cost'
|
|
321
|
+
property :task_queue_name, as: 'taskQueueName'
|
|
322
|
+
property :task_name, as: 'taskName'
|
|
323
|
+
property :was_loading_request, as: 'wasLoadingRequest'
|
|
324
|
+
property :pending_time, as: 'pendingTime'
|
|
325
|
+
property :instance_index, as: 'instanceIndex'
|
|
326
|
+
property :finished, as: 'finished'
|
|
327
|
+
property :instance_id, as: 'instanceId'
|
|
328
|
+
collection :line, as: 'line', class: Google::Apis::LoggingV1beta3::LogLine, decorator: Google::Apis::LoggingV1beta3::LogLine::Representation
|
|
329
|
+
|
|
330
|
+
property :app_engine_release, as: 'appEngineRelease'
|
|
331
|
+
property :trace_id, as: 'traceId'
|
|
332
|
+
collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV1beta3::SourceReference, decorator: Google::Apis::LoggingV1beta3::SourceReference::Representation
|
|
333
|
+
|
|
334
|
+
end
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
class LogLine
|
|
338
|
+
# @private
|
|
339
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
340
|
+
property :time, as: 'time'
|
|
341
|
+
property :severity, as: 'severity'
|
|
342
|
+
property :log_message, as: 'logMessage'
|
|
343
|
+
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV1beta3::SourceLocation, decorator: Google::Apis::LoggingV1beta3::SourceLocation::Representation
|
|
344
|
+
|
|
345
|
+
end
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
class SourceLocation
|
|
349
|
+
# @private
|
|
350
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
351
|
+
property :file, as: 'file'
|
|
352
|
+
property :line, as: 'line'
|
|
353
|
+
property :function_name, as: 'functionName'
|
|
354
|
+
end
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
class SourceReference
|
|
358
|
+
# @private
|
|
359
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
360
|
+
property :repository, as: 'repository'
|
|
361
|
+
property :revision_id, as: 'revisionId'
|
|
362
|
+
end
|
|
363
|
+
end
|
|
220
364
|
end
|
|
221
365
|
end
|
|
222
366
|
end
|
|
@@ -22,8 +22,8 @@ module Google
|
|
|
22
22
|
module LoggingV1beta3
|
|
23
23
|
# Google Cloud Logging API
|
|
24
24
|
#
|
|
25
|
-
# Google Cloud Logging API lets you
|
|
26
|
-
# log sinks.
|
|
25
|
+
# The Google Cloud Logging API lets you write log entries and manage your logs,
|
|
26
|
+
# log sinks and logs-based metrics.
|
|
27
27
|
#
|
|
28
28
|
# @example
|
|
29
29
|
# require 'google/apis/logging_v1beta3'
|
|
@@ -31,7 +31,7 @@ module Google
|
|
|
31
31
|
# Logging = Google::Apis::LoggingV1beta3 # Alias the module
|
|
32
32
|
# service = Logging::LoggingService.new
|
|
33
33
|
#
|
|
34
|
-
# @see
|
|
34
|
+
# @see https://cloud.google.com/logging/docs/
|
|
35
35
|
class LoggingService < Google::Apis::Core::BaseService
|
|
36
36
|
# @return [String]
|
|
37
37
|
# API key. Your API key identifies your project and provides you with API access,
|
|
@@ -47,23 +47,22 @@ module Google
|
|
|
47
47
|
super('https://logging.googleapis.com/', '')
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
# Lists
|
|
50
|
+
# Lists the logs in the project. Only logs that have entries are listed.
|
|
51
51
|
# @param [String] projects_id
|
|
52
|
-
# Part of `projectName`. The
|
|
52
|
+
# Part of `projectName`. The resource name of the project whose logs are
|
|
53
|
+
# requested. If both `serviceName` and `serviceIndexPrefix` are empty, then all
|
|
54
|
+
# logs with entries in this project are listed.
|
|
53
55
|
# @param [String] service_name
|
|
54
|
-
#
|
|
55
|
-
#
|
|
56
|
-
# serviceIndexPrefix` are both empty, then all log names are returned. To list
|
|
57
|
-
# all log names, regardless of service, leave both the `serviceName` and `
|
|
58
|
-
# serviceIndexPrefix` empty. To list log names containing entries with a
|
|
59
|
-
# particular service name (or explicitly empty service name) set `serviceName`
|
|
60
|
-
# to the desired value and `serviceIndexPrefix` to `"/"`.
|
|
56
|
+
# If not empty, this field must be a log service name such as `"compute.
|
|
57
|
+
# googleapis.com"`. Only logs associated with that that log service are listed.
|
|
61
58
|
# @param [String] service_index_prefix
|
|
62
|
-
#
|
|
63
|
-
#
|
|
64
|
-
#
|
|
65
|
-
#
|
|
66
|
-
#
|
|
59
|
+
# The purpose of this field is to restrict the listed logs to those with entries
|
|
60
|
+
# of a certain kind. If `serviceName` is the name of a log service, then this
|
|
61
|
+
# field may contain values for the log service's indexes. Only logs that have
|
|
62
|
+
# entries whose indexes include the values are listed. The format for this field
|
|
63
|
+
# is `"/val1/val2.../valN"`, where `val1` is a value for the first index, `val2`
|
|
64
|
+
# for the second index, etc. An empty value (a single slash) for an index
|
|
65
|
+
# matches all values, and you can omit values for later indexes entirely.
|
|
67
66
|
# @param [Fixnum] page_size
|
|
68
67
|
# The maximum number of results to return.
|
|
69
68
|
# @param [String] page_token
|
|
@@ -88,8 +87,7 @@ module Google
|
|
|
88
87
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
89
88
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
90
89
|
def list_logs(projects_id, service_name: nil, service_index_prefix: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
91
|
-
|
|
92
|
-
command = make_simple_command(:get, path, options)
|
|
90
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logs', options)
|
|
93
91
|
command.response_representation = Google::Apis::LoggingV1beta3::ListLogsResponse::Representation
|
|
94
92
|
command.response_class = Google::Apis::LoggingV1beta3::ListLogsResponse
|
|
95
93
|
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
@@ -102,9 +100,10 @@ module Google
|
|
|
102
100
|
execute_or_queue_command(command, &block)
|
|
103
101
|
end
|
|
104
102
|
|
|
105
|
-
# Deletes
|
|
103
|
+
# Deletes a log and all its log entries. The log will reappear if it receives
|
|
104
|
+
# new entries.
|
|
106
105
|
# @param [String] projects_id
|
|
107
|
-
# Part of `logName`. The log
|
|
106
|
+
# Part of `logName`. The resource name of the log to be deleted.
|
|
108
107
|
# @param [String] logs_id
|
|
109
108
|
# Part of `logName`. See documentation of `projectsId`.
|
|
110
109
|
# @param [String] fields
|
|
@@ -125,8 +124,7 @@ module Google
|
|
|
125
124
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
126
125
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
127
126
|
def delete_log(projects_id, logs_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
128
|
-
|
|
129
|
-
command = make_simple_command(:delete, path, options)
|
|
127
|
+
command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/logs/{logsId}', options)
|
|
130
128
|
command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation
|
|
131
129
|
command.response_class = Google::Apis::LoggingV1beta3::Empty
|
|
132
130
|
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
@@ -136,15 +134,13 @@ module Google
|
|
|
136
134
|
execute_or_queue_command(command, &block)
|
|
137
135
|
end
|
|
138
136
|
|
|
139
|
-
#
|
|
140
|
-
#
|
|
141
|
-
#
|
|
142
|
-
#
|
|
143
|
-
#
|
|
144
|
-
# metadata.labels` maps, saving you the trouble of creating identical copies for
|
|
145
|
-
# each entry.
|
|
137
|
+
# Writes log entries to Cloud Logging. Each entry consists of a `LogEntry`
|
|
138
|
+
# object. You must fill in all the fields of the object, including one of the
|
|
139
|
+
# payload fields. You may supply a map, `commonLabels`, that holds default (key,
|
|
140
|
+
# value) data for the `entries[].metadata.labels` map in each entry, saving you
|
|
141
|
+
# the trouble of creating identical copies for each entry.
|
|
146
142
|
# @param [String] projects_id
|
|
147
|
-
# Part of `logName`. The name of the log
|
|
143
|
+
# Part of `logName`. The resource name of the log that will receive the log
|
|
148
144
|
# entries.
|
|
149
145
|
# @param [String] logs_id
|
|
150
146
|
# Part of `logName`. See documentation of `projectsId`.
|
|
@@ -167,8 +163,7 @@ module Google
|
|
|
167
163
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
168
164
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
169
165
|
def write_log_entries(projects_id, logs_id, write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
170
|
-
|
|
171
|
-
command = make_simple_command(:post, path, options)
|
|
166
|
+
command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/logs/{logsId}/entries:write', options)
|
|
172
167
|
command.request_representation = Google::Apis::LoggingV1beta3::WriteLogEntriesRequest::Representation
|
|
173
168
|
command.request_object = write_log_entries_request_object
|
|
174
169
|
command.response_representation = Google::Apis::LoggingV1beta3::WriteLogEntriesResponse::Representation
|
|
@@ -180,9 +175,10 @@ module Google
|
|
|
180
175
|
execute_or_queue_command(command, &block)
|
|
181
176
|
end
|
|
182
177
|
|
|
183
|
-
# Lists log sinks associated with
|
|
178
|
+
# Lists log sinks associated with a log.
|
|
184
179
|
# @param [String] projects_id
|
|
185
|
-
# Part of `logName`. The log
|
|
180
|
+
# Part of `logName`. The log whose sinks are wanted. For example, `"compute.
|
|
181
|
+
# google.com/syslog"`.
|
|
186
182
|
# @param [String] logs_id
|
|
187
183
|
# Part of `logName`. See documentation of `projectsId`.
|
|
188
184
|
# @param [String] fields
|
|
@@ -203,8 +199,7 @@ module Google
|
|
|
203
199
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
204
200
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
205
201
|
def list_log_sinks(projects_id, logs_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
206
|
-
|
|
207
|
-
command = make_simple_command(:get, path, options)
|
|
202
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks', options)
|
|
208
203
|
command.response_representation = Google::Apis::LoggingV1beta3::ListLogSinksResponse::Representation
|
|
209
204
|
command.response_class = Google::Apis::LoggingV1beta3::ListLogSinksResponse
|
|
210
205
|
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
@@ -214,9 +209,9 @@ module Google
|
|
|
214
209
|
execute_or_queue_command(command, &block)
|
|
215
210
|
end
|
|
216
211
|
|
|
217
|
-
# Gets
|
|
212
|
+
# Gets a log sink.
|
|
218
213
|
# @param [String] projects_id
|
|
219
|
-
# Part of `sinkName`. The name of the sink
|
|
214
|
+
# Part of `sinkName`. The resource name of the log sink to return.
|
|
220
215
|
# @param [String] logs_id
|
|
221
216
|
# Part of `sinkName`. See documentation of `projectsId`.
|
|
222
217
|
# @param [String] sinks_id
|
|
@@ -239,8 +234,7 @@ module Google
|
|
|
239
234
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
240
235
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
241
236
|
def get_log_sink(projects_id, logs_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
242
|
-
|
|
243
|
-
command = make_simple_command(:get, path, options)
|
|
237
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', options)
|
|
244
238
|
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
|
245
239
|
command.response_class = Google::Apis::LoggingV1beta3::LogSink
|
|
246
240
|
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
@@ -251,9 +245,10 @@ module Google
|
|
|
251
245
|
execute_or_queue_command(command, &block)
|
|
252
246
|
end
|
|
253
247
|
|
|
254
|
-
# Creates
|
|
248
|
+
# Creates a log sink. All log entries for a specified log are written to the
|
|
249
|
+
# destination.
|
|
255
250
|
# @param [String] projects_id
|
|
256
|
-
# Part of `logName`. The log
|
|
251
|
+
# Part of `logName`. The resource name of the log to which to the sink is bound.
|
|
257
252
|
# @param [String] logs_id
|
|
258
253
|
# Part of `logName`. See documentation of `projectsId`.
|
|
259
254
|
# @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object
|
|
@@ -275,8 +270,7 @@ module Google
|
|
|
275
270
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
276
271
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
277
272
|
def create_log_sink(projects_id, logs_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
278
|
-
|
|
279
|
-
command = make_simple_command(:post, path, options)
|
|
273
|
+
command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks', options)
|
|
280
274
|
command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
|
281
275
|
command.request_object = log_sink_object
|
|
282
276
|
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
|
@@ -288,9 +282,9 @@ module Google
|
|
|
288
282
|
execute_or_queue_command(command, &block)
|
|
289
283
|
end
|
|
290
284
|
|
|
291
|
-
#
|
|
285
|
+
# Updates a log sink. If the sink does not exist, it is created.
|
|
292
286
|
# @param [String] projects_id
|
|
293
|
-
# Part of `sinkName`. The name of the sink to update.
|
|
287
|
+
# Part of `sinkName`. The resource name of the sink to update.
|
|
294
288
|
# @param [String] logs_id
|
|
295
289
|
# Part of `sinkName`. See documentation of `projectsId`.
|
|
296
290
|
# @param [String] sinks_id
|
|
@@ -314,8 +308,7 @@ module Google
|
|
|
314
308
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
315
309
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
316
310
|
def update_log_sink(projects_id, logs_id, sinks_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
317
|
-
|
|
318
|
-
command = make_simple_command(:put, path, options)
|
|
311
|
+
command = make_simple_command(:put, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', options)
|
|
319
312
|
command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
|
320
313
|
command.request_object = log_sink_object
|
|
321
314
|
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
|
@@ -328,9 +321,10 @@ module Google
|
|
|
328
321
|
execute_or_queue_command(command, &block)
|
|
329
322
|
end
|
|
330
323
|
|
|
331
|
-
# Deletes
|
|
324
|
+
# Deletes a log sink. After deletion, no new log entries are written to the
|
|
325
|
+
# destination.
|
|
332
326
|
# @param [String] projects_id
|
|
333
|
-
# Part of `sinkName`. The name of the sink to delete.
|
|
327
|
+
# Part of `sinkName`. The resource name of the log sink to delete.
|
|
334
328
|
# @param [String] logs_id
|
|
335
329
|
# Part of `sinkName`. See documentation of `projectsId`.
|
|
336
330
|
# @param [String] sinks_id
|
|
@@ -353,8 +347,7 @@ module Google
|
|
|
353
347
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
354
348
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
355
349
|
def delete_log_sink(projects_id, logs_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
356
|
-
|
|
357
|
-
command = make_simple_command(:delete, path, options)
|
|
350
|
+
command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', options)
|
|
358
351
|
command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation
|
|
359
352
|
command.response_class = Google::Apis::LoggingV1beta3::Empty
|
|
360
353
|
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
@@ -365,12 +358,10 @@ module Google
|
|
|
365
358
|
execute_or_queue_command(command, &block)
|
|
366
359
|
end
|
|
367
360
|
|
|
368
|
-
# Lists log services
|
|
361
|
+
# Lists the log services that have log entries in this project.
|
|
369
362
|
# @param [String] projects_id
|
|
370
|
-
# Part of `projectName`. The project
|
|
371
|
-
#
|
|
372
|
-
# The name of the log resource whose services are to be listed. log for which to
|
|
373
|
-
# list services. When empty, all services are listed.
|
|
363
|
+
# Part of `projectName`. The resource name of the project whose services are to
|
|
364
|
+
# be listed.
|
|
374
365
|
# @param [Fixnum] page_size
|
|
375
366
|
# The maximum number of `LogService` objects to return in one operation.
|
|
376
367
|
# @param [String] page_token
|
|
@@ -394,13 +385,11 @@ module Google
|
|
|
394
385
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
395
386
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
396
387
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
397
|
-
def list_log_services(projects_id,
|
|
398
|
-
|
|
399
|
-
command = make_simple_command(:get, path, options)
|
|
388
|
+
def list_log_services(projects_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
389
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logServices', options)
|
|
400
390
|
command.response_representation = Google::Apis::LoggingV1beta3::ListLogServicesResponse::Representation
|
|
401
391
|
command.response_class = Google::Apis::LoggingV1beta3::ListLogServicesResponse
|
|
402
392
|
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
403
|
-
command.query['log'] = log unless log.nil?
|
|
404
393
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
405
394
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
406
395
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -408,30 +397,32 @@ module Google
|
|
|
408
397
|
execute_or_queue_command(command, &block)
|
|
409
398
|
end
|
|
410
399
|
|
|
411
|
-
# Lists
|
|
400
|
+
# Lists the current index values for a log service.
|
|
412
401
|
# @param [String] projects_id
|
|
413
|
-
# Part of `serviceName`.
|
|
414
|
-
#
|
|
415
|
-
#
|
|
402
|
+
# Part of `serviceName`. The resource name of a log service whose service
|
|
403
|
+
# indexes are requested. Example: `"projects/my-project-id/logServices/appengine.
|
|
404
|
+
# googleapis.com"`.
|
|
416
405
|
# @param [String] log_services_id
|
|
417
406
|
# Part of `serviceName`. See documentation of `projectsId`.
|
|
418
407
|
# @param [String] index_prefix
|
|
419
|
-
# Restricts the
|
|
420
|
-
# has the form `"/
|
|
421
|
-
#
|
|
422
|
-
#
|
|
423
|
-
#
|
|
424
|
-
#
|
|
425
|
-
#
|
|
408
|
+
# Restricts the index values returned to be those with a specified prefix for
|
|
409
|
+
# each index key. This field has the form `"/prefix1/prefix2/..."`, in order
|
|
410
|
+
# corresponding to the `LogService indexKeys`. Non-empty prefixes must begin
|
|
411
|
+
# with `/`. For example, App Engine's two keys are the module ID and the version
|
|
412
|
+
# ID. Following is the effect of using various values for `indexPrefix`: + `"/
|
|
413
|
+
# Mod/"` retrieves `/Mod/10` and `/Mod/11` but not `/ModA/10`. + `"/Mod`
|
|
414
|
+
# retrieves `/Mod/10`, `/Mod/11` and `/ModA/10` but not `/XXX/33`. + `"/Mod/1"`
|
|
415
|
+
# retrieves `/Mod/10` and `/Mod/11` but not `/ModA/10`. + `"/Mod/10/"` retrieves
|
|
416
|
+
# `/Mod/10` only. + An empty prefix or `"/"` retrieves all values.
|
|
426
417
|
# @param [Fixnum] depth
|
|
427
|
-
# A
|
|
428
|
-
# depth` is
|
|
429
|
-
#
|
|
430
|
-
#
|
|
418
|
+
# A non-negative integer that limits the number of levels of the index hierarchy
|
|
419
|
+
# that are returned. If `depth` is 1 (default), only the first index key value
|
|
420
|
+
# is returned. If `depth` is 2, both primary and secondary key values are
|
|
421
|
+
# returned. If `depth` is 0, the depth is the number of slash-separators in the `
|
|
422
|
+
# indexPrefix` field, not counting a slash appearing as the last character of
|
|
423
|
+
# the prefix. If the `indexPrefix` field is empty, the default depth is 1. It is
|
|
424
|
+
# an error for `depth` to be any positive value less than the number of
|
|
431
425
|
# components in `indexPrefix`.
|
|
432
|
-
# @param [String] log
|
|
433
|
-
# A log resource like `/projects/project_id/logs/log_name`, identifying the log
|
|
434
|
-
# for which to list service indexes.
|
|
435
426
|
# @param [Fixnum] page_size
|
|
436
427
|
# The maximum number of log service index resources to return in one operation.
|
|
437
428
|
# @param [String] page_token
|
|
@@ -456,16 +447,14 @@ module Google
|
|
|
456
447
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
457
448
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
458
449
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
459
|
-
def list_log_service_indexes(projects_id, log_services_id, index_prefix: nil, depth: nil,
|
|
460
|
-
|
|
461
|
-
command = make_simple_command(:get, path, options)
|
|
450
|
+
def list_log_service_indexes(projects_id, log_services_id, index_prefix: nil, depth: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
451
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/indexes', options)
|
|
462
452
|
command.response_representation = Google::Apis::LoggingV1beta3::ListLogServiceIndexesResponse::Representation
|
|
463
453
|
command.response_class = Google::Apis::LoggingV1beta3::ListLogServiceIndexesResponse
|
|
464
454
|
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
465
455
|
command.params['logServicesId'] = log_services_id unless log_services_id.nil?
|
|
466
456
|
command.query['indexPrefix'] = index_prefix unless index_prefix.nil?
|
|
467
457
|
command.query['depth'] = depth unless depth.nil?
|
|
468
|
-
command.query['log'] = log unless log.nil?
|
|
469
458
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
470
459
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
471
460
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -473,9 +462,9 @@ module Google
|
|
|
473
462
|
execute_or_queue_command(command, &block)
|
|
474
463
|
end
|
|
475
464
|
|
|
476
|
-
# Lists log service sinks associated with
|
|
465
|
+
# Lists log service sinks associated with a log service.
|
|
477
466
|
# @param [String] projects_id
|
|
478
|
-
# Part of `serviceName`. The
|
|
467
|
+
# Part of `serviceName`. The log service whose sinks are wanted.
|
|
479
468
|
# @param [String] log_services_id
|
|
480
469
|
# Part of `serviceName`. See documentation of `projectsId`.
|
|
481
470
|
# @param [String] fields
|
|
@@ -496,8 +485,7 @@ module Google
|
|
|
496
485
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
497
486
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
498
487
|
def list_log_service_sinks(projects_id, log_services_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
499
|
-
|
|
500
|
-
command = make_simple_command(:get, path, options)
|
|
488
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks', options)
|
|
501
489
|
command.response_representation = Google::Apis::LoggingV1beta3::ListLogServiceSinksResponse::Representation
|
|
502
490
|
command.response_class = Google::Apis::LoggingV1beta3::ListLogServiceSinksResponse
|
|
503
491
|
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
@@ -507,9 +495,9 @@ module Google
|
|
|
507
495
|
execute_or_queue_command(command, &block)
|
|
508
496
|
end
|
|
509
497
|
|
|
510
|
-
# Gets
|
|
498
|
+
# Gets a log service sink.
|
|
511
499
|
# @param [String] projects_id
|
|
512
|
-
# Part of `sinkName`. The name of the sink to return.
|
|
500
|
+
# Part of `sinkName`. The resource name of the log service sink to return.
|
|
513
501
|
# @param [String] log_services_id
|
|
514
502
|
# Part of `sinkName`. See documentation of `projectsId`.
|
|
515
503
|
# @param [String] sinks_id
|
|
@@ -532,8 +520,7 @@ module Google
|
|
|
532
520
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
533
521
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
534
522
|
def get_log_service_sink(projects_id, log_services_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
535
|
-
|
|
536
|
-
command = make_simple_command(:get, path, options)
|
|
523
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', options)
|
|
537
524
|
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
|
538
525
|
command.response_class = Google::Apis::LoggingV1beta3::LogSink
|
|
539
526
|
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
@@ -544,9 +531,11 @@ module Google
|
|
|
544
531
|
execute_or_queue_command(command, &block)
|
|
545
532
|
end
|
|
546
533
|
|
|
547
|
-
# Creates
|
|
534
|
+
# Creates a log service sink. All log entries from a specified log service are
|
|
535
|
+
# written to the destination.
|
|
548
536
|
# @param [String] projects_id
|
|
549
|
-
# Part of `serviceName`. The name of the service
|
|
537
|
+
# Part of `serviceName`. The resource name of the log service to which the sink
|
|
538
|
+
# is bound.
|
|
550
539
|
# @param [String] log_services_id
|
|
551
540
|
# Part of `serviceName`. See documentation of `projectsId`.
|
|
552
541
|
# @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object
|
|
@@ -568,8 +557,7 @@ module Google
|
|
|
568
557
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
569
558
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
570
559
|
def create_log_service_sink(projects_id, log_services_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
571
|
-
|
|
572
|
-
command = make_simple_command(:post, path, options)
|
|
560
|
+
command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks', options)
|
|
573
561
|
command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
|
574
562
|
command.request_object = log_sink_object
|
|
575
563
|
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
|
@@ -581,9 +569,9 @@ module Google
|
|
|
581
569
|
execute_or_queue_command(command, &block)
|
|
582
570
|
end
|
|
583
571
|
|
|
584
|
-
#
|
|
572
|
+
# Updates a log service sink. If the sink does not exist, it is created.
|
|
585
573
|
# @param [String] projects_id
|
|
586
|
-
# Part of `sinkName`. The name of the sink to update.
|
|
574
|
+
# Part of `sinkName`. The resource name of the log service sink to update.
|
|
587
575
|
# @param [String] log_services_id
|
|
588
576
|
# Part of `sinkName`. See documentation of `projectsId`.
|
|
589
577
|
# @param [String] sinks_id
|
|
@@ -607,8 +595,7 @@ module Google
|
|
|
607
595
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
608
596
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
609
597
|
def update_log_service_sink(projects_id, log_services_id, sinks_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
610
|
-
|
|
611
|
-
command = make_simple_command(:put, path, options)
|
|
598
|
+
command = make_simple_command(:put, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', options)
|
|
612
599
|
command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
|
613
600
|
command.request_object = log_sink_object
|
|
614
601
|
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
|
@@ -621,9 +608,10 @@ module Google
|
|
|
621
608
|
execute_or_queue_command(command, &block)
|
|
622
609
|
end
|
|
623
610
|
|
|
624
|
-
# Deletes
|
|
611
|
+
# Deletes a log service sink. After deletion, no new log entries are written to
|
|
612
|
+
# the destination.
|
|
625
613
|
# @param [String] projects_id
|
|
626
|
-
# Part of `sinkName`. The name of the sink to delete.
|
|
614
|
+
# Part of `sinkName`. The resource name of the log service sink to delete.
|
|
627
615
|
# @param [String] log_services_id
|
|
628
616
|
# Part of `sinkName`. See documentation of `projectsId`.
|
|
629
617
|
# @param [String] sinks_id
|
|
@@ -646,8 +634,7 @@ module Google
|
|
|
646
634
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
647
635
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
648
636
|
def delete_log_service_sink(projects_id, log_services_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
649
|
-
|
|
650
|
-
command = make_simple_command(:delete, path, options)
|
|
637
|
+
command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', options)
|
|
651
638
|
command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation
|
|
652
639
|
command.response_class = Google::Apis::LoggingV1beta3::Empty
|
|
653
640
|
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
@@ -657,6 +644,350 @@ module Google
|
|
|
657
644
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
658
645
|
execute_or_queue_command(command, &block)
|
|
659
646
|
end
|
|
647
|
+
|
|
648
|
+
# Lists project sinks associated with a project.
|
|
649
|
+
# @param [String] projects_id
|
|
650
|
+
# Part of `projectName`. The project whose sinks are wanted.
|
|
651
|
+
# @param [String] fields
|
|
652
|
+
# Selector specifying which fields to include in a partial response.
|
|
653
|
+
# @param [String] quota_user
|
|
654
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
655
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
656
|
+
# @param [Google::Apis::RequestOptions] options
|
|
657
|
+
# Request-specific options
|
|
658
|
+
#
|
|
659
|
+
# @yield [result, err] Result & error if block supplied
|
|
660
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::ListSinksResponse] parsed result object
|
|
661
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
662
|
+
#
|
|
663
|
+
# @return [Google::Apis::LoggingV1beta3::ListSinksResponse]
|
|
664
|
+
#
|
|
665
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
666
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
667
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
668
|
+
def list_project_sinks(projects_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
669
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/sinks', options)
|
|
670
|
+
command.response_representation = Google::Apis::LoggingV1beta3::ListSinksResponse::Representation
|
|
671
|
+
command.response_class = Google::Apis::LoggingV1beta3::ListSinksResponse
|
|
672
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
673
|
+
command.query['fields'] = fields unless fields.nil?
|
|
674
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
675
|
+
execute_or_queue_command(command, &block)
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
# Gets a project sink.
|
|
679
|
+
# @param [String] projects_id
|
|
680
|
+
# Part of `sinkName`. The resource name of the project sink to return.
|
|
681
|
+
# @param [String] sinks_id
|
|
682
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
|
683
|
+
# @param [String] fields
|
|
684
|
+
# Selector specifying which fields to include in a partial response.
|
|
685
|
+
# @param [String] quota_user
|
|
686
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
687
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
688
|
+
# @param [Google::Apis::RequestOptions] options
|
|
689
|
+
# Request-specific options
|
|
690
|
+
#
|
|
691
|
+
# @yield [result, err] Result & error if block supplied
|
|
692
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
|
|
693
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
694
|
+
#
|
|
695
|
+
# @return [Google::Apis::LoggingV1beta3::LogSink]
|
|
696
|
+
#
|
|
697
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
698
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
699
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
700
|
+
def get_project_sink(projects_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
701
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/sinks/{sinksId}', options)
|
|
702
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
|
703
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogSink
|
|
704
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
705
|
+
command.params['sinksId'] = sinks_id unless sinks_id.nil?
|
|
706
|
+
command.query['fields'] = fields unless fields.nil?
|
|
707
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
708
|
+
execute_or_queue_command(command, &block)
|
|
709
|
+
end
|
|
710
|
+
|
|
711
|
+
# Creates a project sink. A logs filter determines which log entries are written
|
|
712
|
+
# to the destination.
|
|
713
|
+
# @param [String] projects_id
|
|
714
|
+
# Part of `projectName`. The resource name of the project to which the sink is
|
|
715
|
+
# bound.
|
|
716
|
+
# @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object
|
|
717
|
+
# @param [String] fields
|
|
718
|
+
# Selector specifying which fields to include in a partial response.
|
|
719
|
+
# @param [String] quota_user
|
|
720
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
721
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
722
|
+
# @param [Google::Apis::RequestOptions] options
|
|
723
|
+
# Request-specific options
|
|
724
|
+
#
|
|
725
|
+
# @yield [result, err] Result & error if block supplied
|
|
726
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
|
|
727
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
728
|
+
#
|
|
729
|
+
# @return [Google::Apis::LoggingV1beta3::LogSink]
|
|
730
|
+
#
|
|
731
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
732
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
733
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
734
|
+
def create_project_sink(projects_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
735
|
+
command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/sinks', options)
|
|
736
|
+
command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
|
737
|
+
command.request_object = log_sink_object
|
|
738
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
|
739
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogSink
|
|
740
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
741
|
+
command.query['fields'] = fields unless fields.nil?
|
|
742
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
743
|
+
execute_or_queue_command(command, &block)
|
|
744
|
+
end
|
|
745
|
+
|
|
746
|
+
# Updates a project sink. If the sink does not exist, it is created. The
|
|
747
|
+
# destination, filter, or both may be updated.
|
|
748
|
+
# @param [String] projects_id
|
|
749
|
+
# Part of `sinkName`. The resource name of the project sink to update.
|
|
750
|
+
# @param [String] sinks_id
|
|
751
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
|
752
|
+
# @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object
|
|
753
|
+
# @param [String] fields
|
|
754
|
+
# Selector specifying which fields to include in a partial response.
|
|
755
|
+
# @param [String] quota_user
|
|
756
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
757
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
758
|
+
# @param [Google::Apis::RequestOptions] options
|
|
759
|
+
# Request-specific options
|
|
760
|
+
#
|
|
761
|
+
# @yield [result, err] Result & error if block supplied
|
|
762
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
|
|
763
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
764
|
+
#
|
|
765
|
+
# @return [Google::Apis::LoggingV1beta3::LogSink]
|
|
766
|
+
#
|
|
767
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
768
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
769
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
770
|
+
def update_project_sink(projects_id, sinks_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
771
|
+
command = make_simple_command(:put, 'v1beta3/projects/{projectsId}/sinks/{sinksId}', options)
|
|
772
|
+
command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
|
773
|
+
command.request_object = log_sink_object
|
|
774
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
|
|
775
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogSink
|
|
776
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
777
|
+
command.params['sinksId'] = sinks_id unless sinks_id.nil?
|
|
778
|
+
command.query['fields'] = fields unless fields.nil?
|
|
779
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
780
|
+
execute_or_queue_command(command, &block)
|
|
781
|
+
end
|
|
782
|
+
|
|
783
|
+
# Deletes a project sink. After deletion, no new log entries are written to the
|
|
784
|
+
# destination.
|
|
785
|
+
# @param [String] projects_id
|
|
786
|
+
# Part of `sinkName`. The resource name of the project sink to delete.
|
|
787
|
+
# @param [String] sinks_id
|
|
788
|
+
# Part of `sinkName`. See documentation of `projectsId`.
|
|
789
|
+
# @param [String] fields
|
|
790
|
+
# Selector specifying which fields to include in a partial response.
|
|
791
|
+
# @param [String] quota_user
|
|
792
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
793
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
794
|
+
# @param [Google::Apis::RequestOptions] options
|
|
795
|
+
# Request-specific options
|
|
796
|
+
#
|
|
797
|
+
# @yield [result, err] Result & error if block supplied
|
|
798
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::Empty] parsed result object
|
|
799
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
800
|
+
#
|
|
801
|
+
# @return [Google::Apis::LoggingV1beta3::Empty]
|
|
802
|
+
#
|
|
803
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
804
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
805
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
806
|
+
def delete_project_sink(projects_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
807
|
+
command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/sinks/{sinksId}', options)
|
|
808
|
+
command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation
|
|
809
|
+
command.response_class = Google::Apis::LoggingV1beta3::Empty
|
|
810
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
811
|
+
command.params['sinksId'] = sinks_id unless sinks_id.nil?
|
|
812
|
+
command.query['fields'] = fields unless fields.nil?
|
|
813
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
814
|
+
execute_or_queue_command(command, &block)
|
|
815
|
+
end
|
|
816
|
+
|
|
817
|
+
# Lists the logs-based metrics associated with a project.
|
|
818
|
+
# @param [String] projects_id
|
|
819
|
+
# Part of `projectName`. The resource name for the project whose metrics are
|
|
820
|
+
# wanted.
|
|
821
|
+
# @param [String] page_token
|
|
822
|
+
# An opaque token, returned as `nextPageToken` by a prior `ListLogMetrics`
|
|
823
|
+
# operation. If `pageToken` is supplied, then the other fields of this request
|
|
824
|
+
# are ignored, and instead the previous `ListLogMetrics` operation is continued.
|
|
825
|
+
# @param [Fixnum] page_size
|
|
826
|
+
# The maximum number of `LogMetric` objects to return in one operation.
|
|
827
|
+
# @param [String] fields
|
|
828
|
+
# Selector specifying which fields to include in a partial response.
|
|
829
|
+
# @param [String] quota_user
|
|
830
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
831
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
832
|
+
# @param [Google::Apis::RequestOptions] options
|
|
833
|
+
# Request-specific options
|
|
834
|
+
#
|
|
835
|
+
# @yield [result, err] Result & error if block supplied
|
|
836
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::ListLogMetricsResponse] parsed result object
|
|
837
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
838
|
+
#
|
|
839
|
+
# @return [Google::Apis::LoggingV1beta3::ListLogMetricsResponse]
|
|
840
|
+
#
|
|
841
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
842
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
843
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
844
|
+
def list_project_metrics(projects_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
845
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/metrics', options)
|
|
846
|
+
command.response_representation = Google::Apis::LoggingV1beta3::ListLogMetricsResponse::Representation
|
|
847
|
+
command.response_class = Google::Apis::LoggingV1beta3::ListLogMetricsResponse
|
|
848
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
849
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
850
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
851
|
+
command.query['fields'] = fields unless fields.nil?
|
|
852
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
853
|
+
execute_or_queue_command(command, &block)
|
|
854
|
+
end
|
|
855
|
+
|
|
856
|
+
# Gets a logs-based metric.
|
|
857
|
+
# @param [String] projects_id
|
|
858
|
+
# Part of `metricName`. The resource name of the desired metric.
|
|
859
|
+
# @param [String] metrics_id
|
|
860
|
+
# Part of `metricName`. See documentation of `projectsId`.
|
|
861
|
+
# @param [String] fields
|
|
862
|
+
# Selector specifying which fields to include in a partial response.
|
|
863
|
+
# @param [String] quota_user
|
|
864
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
865
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
866
|
+
# @param [Google::Apis::RequestOptions] options
|
|
867
|
+
# Request-specific options
|
|
868
|
+
#
|
|
869
|
+
# @yield [result, err] Result & error if block supplied
|
|
870
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogMetric] parsed result object
|
|
871
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
872
|
+
#
|
|
873
|
+
# @return [Google::Apis::LoggingV1beta3::LogMetric]
|
|
874
|
+
#
|
|
875
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
876
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
877
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
878
|
+
def get_project_metric(projects_id, metrics_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
879
|
+
command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/metrics/{metricsId}', options)
|
|
880
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation
|
|
881
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogMetric
|
|
882
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
883
|
+
command.params['metricsId'] = metrics_id unless metrics_id.nil?
|
|
884
|
+
command.query['fields'] = fields unless fields.nil?
|
|
885
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
886
|
+
execute_or_queue_command(command, &block)
|
|
887
|
+
end
|
|
888
|
+
|
|
889
|
+
# Creates a logs-based metric.
|
|
890
|
+
# @param [String] projects_id
|
|
891
|
+
# Part of `projectName`. The resource name of the project in which to create the
|
|
892
|
+
# metric.
|
|
893
|
+
# @param [Google::Apis::LoggingV1beta3::LogMetric] log_metric_object
|
|
894
|
+
# @param [String] fields
|
|
895
|
+
# Selector specifying which fields to include in a partial response.
|
|
896
|
+
# @param [String] quota_user
|
|
897
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
898
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
899
|
+
# @param [Google::Apis::RequestOptions] options
|
|
900
|
+
# Request-specific options
|
|
901
|
+
#
|
|
902
|
+
# @yield [result, err] Result & error if block supplied
|
|
903
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogMetric] parsed result object
|
|
904
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
905
|
+
#
|
|
906
|
+
# @return [Google::Apis::LoggingV1beta3::LogMetric]
|
|
907
|
+
#
|
|
908
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
909
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
910
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
911
|
+
def create_project_metric(projects_id, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
912
|
+
command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/metrics', options)
|
|
913
|
+
command.request_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation
|
|
914
|
+
command.request_object = log_metric_object
|
|
915
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation
|
|
916
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogMetric
|
|
917
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
918
|
+
command.query['fields'] = fields unless fields.nil?
|
|
919
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
920
|
+
execute_or_queue_command(command, &block)
|
|
921
|
+
end
|
|
922
|
+
|
|
923
|
+
# Creates or updates a logs-based metric.
|
|
924
|
+
# @param [String] projects_id
|
|
925
|
+
# Part of `metricName`. The resource name of the metric to update.
|
|
926
|
+
# @param [String] metrics_id
|
|
927
|
+
# Part of `metricName`. See documentation of `projectsId`.
|
|
928
|
+
# @param [Google::Apis::LoggingV1beta3::LogMetric] log_metric_object
|
|
929
|
+
# @param [String] fields
|
|
930
|
+
# Selector specifying which fields to include in a partial response.
|
|
931
|
+
# @param [String] quota_user
|
|
932
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
933
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
934
|
+
# @param [Google::Apis::RequestOptions] options
|
|
935
|
+
# Request-specific options
|
|
936
|
+
#
|
|
937
|
+
# @yield [result, err] Result & error if block supplied
|
|
938
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::LogMetric] parsed result object
|
|
939
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
940
|
+
#
|
|
941
|
+
# @return [Google::Apis::LoggingV1beta3::LogMetric]
|
|
942
|
+
#
|
|
943
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
944
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
945
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
946
|
+
def update_project_metric(projects_id, metrics_id, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
947
|
+
command = make_simple_command(:put, 'v1beta3/projects/{projectsId}/metrics/{metricsId}', options)
|
|
948
|
+
command.request_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation
|
|
949
|
+
command.request_object = log_metric_object
|
|
950
|
+
command.response_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation
|
|
951
|
+
command.response_class = Google::Apis::LoggingV1beta3::LogMetric
|
|
952
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
953
|
+
command.params['metricsId'] = metrics_id unless metrics_id.nil?
|
|
954
|
+
command.query['fields'] = fields unless fields.nil?
|
|
955
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
956
|
+
execute_or_queue_command(command, &block)
|
|
957
|
+
end
|
|
958
|
+
|
|
959
|
+
# Deletes a logs-based metric.
|
|
960
|
+
# @param [String] projects_id
|
|
961
|
+
# Part of `metricName`. The resource name of the metric to delete.
|
|
962
|
+
# @param [String] metrics_id
|
|
963
|
+
# Part of `metricName`. See documentation of `projectsId`.
|
|
964
|
+
# @param [String] fields
|
|
965
|
+
# Selector specifying which fields to include in a partial response.
|
|
966
|
+
# @param [String] quota_user
|
|
967
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
968
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
969
|
+
# @param [Google::Apis::RequestOptions] options
|
|
970
|
+
# Request-specific options
|
|
971
|
+
#
|
|
972
|
+
# @yield [result, err] Result & error if block supplied
|
|
973
|
+
# @yieldparam result [Google::Apis::LoggingV1beta3::Empty] parsed result object
|
|
974
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
975
|
+
#
|
|
976
|
+
# @return [Google::Apis::LoggingV1beta3::Empty]
|
|
977
|
+
#
|
|
978
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
979
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
980
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
981
|
+
def delete_project_metric(projects_id, metrics_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
982
|
+
command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/metrics/{metricsId}', options)
|
|
983
|
+
command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation
|
|
984
|
+
command.response_class = Google::Apis::LoggingV1beta3::Empty
|
|
985
|
+
command.params['projectsId'] = projects_id unless projects_id.nil?
|
|
986
|
+
command.params['metricsId'] = metrics_id unless metrics_id.nil?
|
|
987
|
+
command.query['fields'] = fields unless fields.nil?
|
|
988
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
989
|
+
execute_or_queue_command(command, &block)
|
|
990
|
+
end
|
|
660
991
|
|
|
661
992
|
protected
|
|
662
993
|
|