google-api-client 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/MIGRATING.md +22 -7
- data/README.md +4 -8
- data/api_names.yaml +1210 -37815
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
- data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
- data/generated/google/apis/appengine_v1.rb +40 -0
- data/generated/google/apis/appengine_v1/classes.rb +2251 -0
- data/generated/google/apis/appengine_v1/representations.rb +858 -0
- data/generated/google/apis/appengine_v1/service.rb +894 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +11 -6
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +26 -0
- data/generated/google/apis/books_v1/representations.rb +15 -0
- data/generated/google/apis/books_v1/service.rb +4 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
- data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
- data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
- data/generated/google/apis/clouddebugger_v2.rb +3 -3
- data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
- data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
- data/generated/google/apis/cloudfunctions_v1.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
- data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
- data/generated/google/apis/cloudkms_v1/service.rb +194 -194
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
- data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +32 -7
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_beta/service.rb +11 -11
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +95 -2
- data/generated/google/apis/compute_v1/representations.rb +33 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
- data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
- data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
- data/generated/google/apis/dataproc_v1/representations.rb +200 -200
- data/generated/google/apis/dataproc_v1/service.rb +356 -356
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +701 -690
- data/generated/google/apis/datastore_v1/representations.rb +160 -160
- data/generated/google/apis/datastore_v1/service.rb +52 -52
- data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
- 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 +158 -35
- data/generated/google/apis/drive_v2/representations.rb +39 -0
- data/generated/google/apis/drive_v2/service.rb +4 -4
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +162 -33
- data/generated/google/apis/drive_v3/representations.rb +39 -0
- data/generated/google/apis/drive_v3/service.rb +4 -4
- data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
- data/generated/google/apis/firebaserules_v1.rb +41 -0
- data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
- data/generated/google/apis/firebaserules_v1/service.rb +495 -0
- data/generated/google/apis/games_v1/classes.rb +4 -0
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
- data/generated/google/apis/genomics_v1/representations.rb +387 -387
- data/generated/google/apis/genomics_v1/service.rb +1187 -1187
- data/generated/google/apis/gmail_v1/classes.rb +3 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +123 -117
- data/generated/google/apis/iam_v1/representations.rb +33 -33
- data/generated/google/apis/iam_v1/service.rb +109 -109
- data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +36 -0
- data/generated/google/apis/language_v1/classes.rb +757 -0
- data/generated/google/apis/language_v1/representations.rb +338 -0
- data/generated/google/apis/language_v1/service.rb +185 -0
- data/generated/google/apis/language_v1beta1/classes.rb +407 -407
- data/generated/google/apis/language_v1beta1/representations.rb +103 -103
- data/generated/google/apis/language_v1beta1/service.rb +45 -45
- data/generated/google/apis/logging_v2.rb +46 -0
- data/generated/google/apis/logging_v2/classes.rb +1271 -0
- data/generated/google/apis/logging_v2/representations.rb +421 -0
- data/generated/google/apis/logging_v2/service.rb +1569 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
- data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
- data/generated/google/apis/logging_v2beta1/service.rb +235 -235
- data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
- data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
- data/generated/google/apis/ml_v1.rb +34 -0
- data/generated/google/apis/ml_v1/classes.rb +1617 -0
- data/generated/google/apis/ml_v1/representations.rb +498 -0
- data/generated/google/apis/ml_v1/service.rb +769 -0
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +630 -630
- data/generated/google/apis/monitoring_v3/representations.rb +134 -134
- data/generated/google/apis/monitoring_v3/service.rb +240 -240
- data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +639 -639
- data/generated/google/apis/partners_v2/representations.rb +168 -168
- data/generated/google/apis/partners_v2/service.rb +381 -381
- data/generated/google/apis/people_v1.rb +10 -10
- data/generated/google/apis/people_v1/classes.rb +524 -524
- data/generated/google/apis/people_v1/representations.rb +143 -143
- data/generated/google/apis/people_v1/service.rb +30 -30
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
- data/generated/google/apis/pubsub_v1/classes.rb +175 -173
- data/generated/google/apis/pubsub_v1/representations.rb +53 -53
- data/generated/google/apis/pubsub_v1/service.rb +210 -210
- data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
- data/generated/google/apis/runtimeconfig_v1.rb +38 -0
- data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
- data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
- data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -6
- data/generated/google/apis/script_v1/representations.rb +1 -1
- data/generated/google/apis/searchconsole_v1.rb +31 -0
- data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
- data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
- data/generated/google/apis/searchconsole_v1/service.rb +88 -0
- data/generated/google/apis/servicecontrol_v1.rb +38 -0
- data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
- data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
- data/generated/google/apis/servicemanagement_v1.rb +45 -0
- data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
- data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
- data/generated/google/apis/serviceuser_v1.rb +42 -0
- data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
- data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
- data/generated/google/apis/serviceuser_v1/service.rb +214 -0
- data/generated/google/apis/sheets_v4.rb +3 -3
- data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
- data/generated/google/apis/sheets_v4/representations.rb +381 -381
- data/generated/google/apis/sheets_v4/service.rb +48 -48
- data/generated/google/apis/slides_v1.rb +3 -3
- data/generated/google/apis/slides_v1/classes.rb +2860 -2860
- data/generated/google/apis/slides_v1/representations.rb +693 -693
- data/generated/google/apis/slides_v1/service.rb +30 -30
- data/generated/google/apis/sourcerepo_v1.rb +34 -0
- data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
- data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
- data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
- data/generated/google/apis/spanner_v1.rb +35 -0
- data/generated/google/apis/spanner_v1/classes.rb +3294 -0
- data/generated/google/apis/spanner_v1/representations.rb +984 -0
- data/generated/google/apis/spanner_v1/service.rb +1504 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
- data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
- data/generated/google/apis/speech_v1beta1/service.rb +27 -27
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +131 -0
- data/generated/google/apis/storage_v1/representations.rb +51 -0
- data/generated/google/apis/storage_v1/service.rb +182 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
- data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
- data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
- data/generated/google/apis/surveys_v2.rb +40 -0
- data/generated/google/apis/surveys_v2/classes.rb +806 -0
- data/generated/google/apis/surveys_v2/representations.rb +347 -0
- data/generated/google/apis/surveys_v2/service.rb +477 -0
- data/generated/google/apis/tagmanager_v2.rb +52 -0
- data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
- data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
- data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
- data/generated/google/apis/toolresults_v1beta3.rb +34 -0
- data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
- data/generated/google/apis/tracing_v1.rb +40 -0
- data/generated/google/apis/tracing_v1/classes.rb +664 -0
- data/generated/google/apis/tracing_v1/representations.rb +279 -0
- data/generated/google/apis/tracing_v1/service.rb +225 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1223 -1222
- data/generated/google/apis/vision_v1/representations.rb +234 -234
- data/generated/google/apis/vision_v1/service.rb +10 -10
- data/generated/google/apis/webfonts_v1.rb +33 -0
- data/generated/google/apis/webfonts_v1/classes.rb +113 -0
- data/generated/google/apis/webfonts_v1/representations.rb +62 -0
- data/generated/google/apis/webfonts_v1/service.rb +102 -0
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
- data/generated/google/apis/youtube_v3/classes.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
- data/lib/google/apis/generator/annotator.rb +5 -4
- data/lib/google/apis/generator/templates/_class.tmpl +3 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/adsense.rb +99 -0
- data/samples/cli/lib/samples/analytics.rb +18 -0
- data/samples/cli/lib/samples/gmail.rb +33 -0
- data/samples/cli/lib/samples/vision.rb +69 -0
- metadata +89 -4
- data/sync.rb +0 -71
@@ -56,11 +56,11 @@ module Google
|
|
56
56
|
# Optional. The maximum number of results to return from this request. Non-
|
57
57
|
# positive values are ignored. The presence of nextPageToken in the response
|
58
58
|
# indicates that more results might be available.
|
59
|
-
# @param [String] fields
|
60
|
-
# Selector specifying which fields to include in a partial response.
|
61
59
|
# @param [String] quota_user
|
62
60
|
# Available to use for quota purposes for server-side applications. Can be any
|
63
61
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
62
|
+
# @param [String] fields
|
63
|
+
# Selector specifying which fields to include in a partial response.
|
64
64
|
# @param [Google::Apis::RequestOptions] options
|
65
65
|
# Request-specific options
|
66
66
|
#
|
@@ -73,53 +73,14 @@ module Google
|
|
73
73
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
74
74
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
75
75
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
76
|
-
def list_monitored_resource_descriptors(page_token: nil, page_size: nil,
|
76
|
+
def list_monitored_resource_descriptors(page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
77
77
|
command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
|
78
78
|
command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
|
79
79
|
command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
|
80
80
|
command.query['pageToken'] = page_token unless page_token.nil?
|
81
81
|
command.query['pageSize'] = page_size unless page_size.nil?
|
82
|
-
command.query['fields'] = fields unless fields.nil?
|
83
82
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
84
|
-
execute_or_queue_command(command, &block)
|
85
|
-
end
|
86
|
-
|
87
|
-
# Deletes all the log entries in a log. The log reappears if it receives new
|
88
|
-
# entries. Log entries written shortly before the delete operation might not be
|
89
|
-
# deleted.
|
90
|
-
# @param [String] log_name
|
91
|
-
# Required. The resource name of the log to delete:
|
92
|
-
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
93
|
-
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
94
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
95
|
-
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
96
|
-
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
97
|
-
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
98
|
-
# 2Factivity". For more information about log names, see LogEntry.
|
99
|
-
# @param [String] fields
|
100
|
-
# Selector specifying which fields to include in a partial response.
|
101
|
-
# @param [String] quota_user
|
102
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
103
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
104
|
-
# @param [Google::Apis::RequestOptions] options
|
105
|
-
# Request-specific options
|
106
|
-
#
|
107
|
-
# @yield [result, err] Result & error if block supplied
|
108
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
|
109
|
-
# @yieldparam err [StandardError] error object if request failed
|
110
|
-
#
|
111
|
-
# @return [Google::Apis::LoggingV2beta1::Empty]
|
112
|
-
#
|
113
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
114
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
115
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
116
|
-
def delete_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
117
|
-
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
118
|
-
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
119
|
-
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
120
|
-
command.params['logName'] = log_name unless log_name.nil?
|
121
83
|
command.query['fields'] = fields unless fields.nil?
|
122
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
123
84
|
execute_or_queue_command(command, &block)
|
124
85
|
end
|
125
86
|
|
@@ -140,11 +101,11 @@ module Google
|
|
140
101
|
# Optional. The maximum number of results to return from this request. Non-
|
141
102
|
# positive values are ignored. The presence of nextPageToken in the response
|
142
103
|
# indicates that more results might be available.
|
143
|
-
# @param [String] fields
|
144
|
-
# Selector specifying which fields to include in a partial response.
|
145
104
|
# @param [String] quota_user
|
146
105
|
# Available to use for quota purposes for server-side applications. Can be any
|
147
106
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
107
|
+
# @param [String] fields
|
108
|
+
# Selector specifying which fields to include in a partial response.
|
148
109
|
# @param [Google::Apis::RequestOptions] options
|
149
110
|
# Request-specific options
|
150
111
|
#
|
@@ -157,56 +118,65 @@ module Google
|
|
157
118
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
158
119
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
159
120
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
160
|
-
def list_organization_logs(parent, page_token: nil, page_size: nil,
|
121
|
+
def list_organization_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
161
122
|
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
|
162
123
|
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
|
163
124
|
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
|
164
125
|
command.params['parent'] = parent unless parent.nil?
|
165
126
|
command.query['pageToken'] = page_token unless page_token.nil?
|
166
127
|
command.query['pageSize'] = page_size unless page_size.nil?
|
167
|
-
command.query['fields'] = fields unless fields.nil?
|
168
128
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
129
|
+
command.query['fields'] = fields unless fields.nil?
|
169
130
|
execute_or_queue_command(command, &block)
|
170
131
|
end
|
171
132
|
|
172
|
-
#
|
173
|
-
#
|
174
|
-
#
|
175
|
-
#
|
133
|
+
# Deletes all the log entries in a log. The log reappears if it receives new
|
134
|
+
# entries. Log entries written shortly before the delete operation might not be
|
135
|
+
# deleted.
|
136
|
+
# @param [String] log_name
|
137
|
+
# Required. The resource name of the log to delete:
|
138
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
139
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
140
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
141
|
+
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
142
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
143
|
+
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
144
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
176
145
|
# @param [String] quota_user
|
177
146
|
# Available to use for quota purposes for server-side applications. Can be any
|
178
147
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
148
|
+
# @param [String] fields
|
149
|
+
# Selector specifying which fields to include in a partial response.
|
179
150
|
# @param [Google::Apis::RequestOptions] options
|
180
151
|
# Request-specific options
|
181
152
|
#
|
182
153
|
# @yield [result, err] Result & error if block supplied
|
183
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::
|
154
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
|
184
155
|
# @yieldparam err [StandardError] error object if request failed
|
185
156
|
#
|
186
|
-
# @return [Google::Apis::LoggingV2beta1::
|
157
|
+
# @return [Google::Apis::LoggingV2beta1::Empty]
|
187
158
|
#
|
188
159
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
189
160
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
190
161
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
191
|
-
def
|
192
|
-
command = make_simple_command(:
|
193
|
-
command.
|
194
|
-
command.
|
195
|
-
command.
|
196
|
-
command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
|
197
|
-
command.query['fields'] = fields unless fields.nil?
|
162
|
+
def delete_organization_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
|
163
|
+
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
164
|
+
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
165
|
+
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
166
|
+
command.params['logName'] = log_name unless log_name.nil?
|
198
167
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
168
|
+
command.query['fields'] = fields unless fields.nil?
|
199
169
|
execute_or_queue_command(command, &block)
|
200
170
|
end
|
201
171
|
|
202
172
|
# Lists log entries. Use this method to retrieve log entries from Stackdriver
|
203
173
|
# Logging. For ways to export log entries, see Exporting Logs.
|
204
174
|
# @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object
|
205
|
-
# @param [String] fields
|
206
|
-
# Selector specifying which fields to include in a partial response.
|
207
175
|
# @param [String] quota_user
|
208
176
|
# Available to use for quota purposes for server-side applications. Can be any
|
209
177
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
178
|
+
# @param [String] fields
|
179
|
+
# Selector specifying which fields to include in a partial response.
|
210
180
|
# @param [Google::Apis::RequestOptions] options
|
211
181
|
# Request-specific options
|
212
182
|
#
|
@@ -219,14 +189,44 @@ module Google
|
|
219
189
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
220
190
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
221
191
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
222
|
-
def list_entry_log_entries(list_log_entries_request_object = nil,
|
192
|
+
def list_entry_log_entries(list_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
223
193
|
command = make_simple_command(:post, 'v2beta1/entries:list', options)
|
224
194
|
command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
|
225
195
|
command.request_object = list_log_entries_request_object
|
226
196
|
command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
|
227
197
|
command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
|
198
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
228
199
|
command.query['fields'] = fields unless fields.nil?
|
200
|
+
execute_or_queue_command(command, &block)
|
201
|
+
end
|
202
|
+
|
203
|
+
# Writes log entries to Stackdriver Logging.
|
204
|
+
# @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object
|
205
|
+
# @param [String] quota_user
|
206
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
207
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
208
|
+
# @param [String] fields
|
209
|
+
# Selector specifying which fields to include in a partial response.
|
210
|
+
# @param [Google::Apis::RequestOptions] options
|
211
|
+
# Request-specific options
|
212
|
+
#
|
213
|
+
# @yield [result, err] Result & error if block supplied
|
214
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse] parsed result object
|
215
|
+
# @yieldparam err [StandardError] error object if request failed
|
216
|
+
#
|
217
|
+
# @return [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse]
|
218
|
+
#
|
219
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
220
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
221
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
222
|
+
def write_entry_log_entries(write_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
223
|
+
command = make_simple_command(:post, 'v2beta1/entries:write', options)
|
224
|
+
command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
|
225
|
+
command.request_object = write_log_entries_request_object
|
226
|
+
command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
|
227
|
+
command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
|
229
228
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
229
|
+
command.query['fields'] = fields unless fields.nil?
|
230
230
|
execute_or_queue_command(command, &block)
|
231
231
|
end
|
232
232
|
|
@@ -242,11 +242,11 @@ module Google
|
|
242
242
|
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
243
243
|
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
244
244
|
# 2Factivity". For more information about log names, see LogEntry.
|
245
|
-
# @param [String] fields
|
246
|
-
# Selector specifying which fields to include in a partial response.
|
247
245
|
# @param [String] quota_user
|
248
246
|
# Available to use for quota purposes for server-side applications. Can be any
|
249
247
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
248
|
+
# @param [String] fields
|
249
|
+
# Selector specifying which fields to include in a partial response.
|
250
250
|
# @param [Google::Apis::RequestOptions] options
|
251
251
|
# Request-specific options
|
252
252
|
#
|
@@ -259,13 +259,13 @@ module Google
|
|
259
259
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
260
260
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
261
261
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
262
|
-
def delete_log(log_name,
|
262
|
+
def delete_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
|
263
263
|
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
264
264
|
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
265
265
|
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
266
266
|
command.params['logName'] = log_name unless log_name.nil?
|
267
|
-
command.query['fields'] = fields unless fields.nil?
|
268
267
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
268
|
+
command.query['fields'] = fields unless fields.nil?
|
269
269
|
execute_or_queue_command(command, &block)
|
270
270
|
end
|
271
271
|
|
@@ -286,11 +286,11 @@ module Google
|
|
286
286
|
# Optional. The maximum number of results to return from this request. Non-
|
287
287
|
# positive values are ignored. The presence of nextPageToken in the response
|
288
288
|
# indicates that more results might be available.
|
289
|
-
# @param [String] fields
|
290
|
-
# Selector specifying which fields to include in a partial response.
|
291
289
|
# @param [String] quota_user
|
292
290
|
# Available to use for quota purposes for server-side applications. Can be any
|
293
291
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
292
|
+
# @param [String] fields
|
293
|
+
# Selector specifying which fields to include in a partial response.
|
294
294
|
# @param [Google::Apis::RequestOptions] options
|
295
295
|
# Request-specific options
|
296
296
|
#
|
@@ -303,15 +303,132 @@ module Google
|
|
303
303
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
304
304
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
305
305
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
306
|
-
def list_logs(parent, page_token: nil, page_size: nil,
|
306
|
+
def list_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
307
307
|
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
|
308
308
|
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
|
309
309
|
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
|
310
310
|
command.params['parent'] = parent unless parent.nil?
|
311
311
|
command.query['pageToken'] = page_token unless page_token.nil?
|
312
312
|
command.query['pageSize'] = page_size unless page_size.nil?
|
313
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
314
|
+
command.query['fields'] = fields unless fields.nil?
|
315
|
+
execute_or_queue_command(command, &block)
|
316
|
+
end
|
317
|
+
|
318
|
+
# Deletes a sink. If the sink has a unique writer_identity, then that service
|
319
|
+
# account is also deleted.
|
320
|
+
# @param [String] sink_name
|
321
|
+
# Required. The full resource name of the sink to delete, including the parent
|
322
|
+
# resource and the sink identifier:
|
323
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
324
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
325
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
326
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
327
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
328
|
+
# @param [String] quota_user
|
329
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
330
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
331
|
+
# @param [String] fields
|
332
|
+
# Selector specifying which fields to include in a partial response.
|
333
|
+
# @param [Google::Apis::RequestOptions] options
|
334
|
+
# Request-specific options
|
335
|
+
#
|
336
|
+
# @yield [result, err] Result & error if block supplied
|
337
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
|
338
|
+
# @yieldparam err [StandardError] error object if request failed
|
339
|
+
#
|
340
|
+
# @return [Google::Apis::LoggingV2beta1::Empty]
|
341
|
+
#
|
342
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
343
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
344
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
345
|
+
def delete_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
|
346
|
+
command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
|
347
|
+
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
348
|
+
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
349
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
350
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
351
|
+
command.query['fields'] = fields unless fields.nil?
|
352
|
+
execute_or_queue_command(command, &block)
|
353
|
+
end
|
354
|
+
|
355
|
+
# Lists sinks.
|
356
|
+
# @param [String] parent
|
357
|
+
# Required. The parent resource whose sinks are to be listed:
|
358
|
+
# "projects/[PROJECT_ID]"
|
359
|
+
# "organizations/[ORGANIZATION_ID]"
|
360
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
361
|
+
# "folders/[FOLDER_ID]"
|
362
|
+
# @param [String] page_token
|
363
|
+
# Optional. If present, then retrieve the next batch of results from the
|
364
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
365
|
+
# from the previous response. The values of other method parameters should be
|
366
|
+
# identical to those in the previous call.
|
367
|
+
# @param [Fixnum] page_size
|
368
|
+
# Optional. The maximum number of results to return from this request. Non-
|
369
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
370
|
+
# indicates that more results might be available.
|
371
|
+
# @param [String] quota_user
|
372
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
373
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
374
|
+
# @param [String] fields
|
375
|
+
# Selector specifying which fields to include in a partial response.
|
376
|
+
# @param [Google::Apis::RequestOptions] options
|
377
|
+
# Request-specific options
|
378
|
+
#
|
379
|
+
# @yield [result, err] Result & error if block supplied
|
380
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::ListSinksResponse] parsed result object
|
381
|
+
# @yieldparam err [StandardError] error object if request failed
|
382
|
+
#
|
383
|
+
# @return [Google::Apis::LoggingV2beta1::ListSinksResponse]
|
384
|
+
#
|
385
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
386
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
387
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
388
|
+
def list_project_sinks(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
389
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options)
|
390
|
+
command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
|
391
|
+
command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
|
392
|
+
command.params['parent'] = parent unless parent.nil?
|
393
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
394
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
395
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
313
396
|
command.query['fields'] = fields unless fields.nil?
|
397
|
+
execute_or_queue_command(command, &block)
|
398
|
+
end
|
399
|
+
|
400
|
+
# Gets a sink.
|
401
|
+
# @param [String] sink_name
|
402
|
+
# Required. The resource name of the sink:
|
403
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
404
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
405
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
406
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
407
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
408
|
+
# @param [String] quota_user
|
409
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
410
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
411
|
+
# @param [String] fields
|
412
|
+
# Selector specifying which fields to include in a partial response.
|
413
|
+
# @param [Google::Apis::RequestOptions] options
|
414
|
+
# Request-specific options
|
415
|
+
#
|
416
|
+
# @yield [result, err] Result & error if block supplied
|
417
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
|
418
|
+
# @yieldparam err [StandardError] error object if request failed
|
419
|
+
#
|
420
|
+
# @return [Google::Apis::LoggingV2beta1::LogSink]
|
421
|
+
#
|
422
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
423
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
424
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
425
|
+
def get_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
|
426
|
+
command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
|
427
|
+
command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
|
428
|
+
command.response_class = Google::Apis::LoggingV2beta1::LogSink
|
429
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
314
430
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
431
|
+
command.query['fields'] = fields unless fields.nil?
|
315
432
|
execute_or_queue_command(command, &block)
|
316
433
|
end
|
317
434
|
|
@@ -339,11 +456,11 @@ module Google
|
|
339
456
|
# If the old value is false and the new value is true, then writer_identity is
|
340
457
|
# changed to a unique service account.
|
341
458
|
# It is an error if the old value is true and the new value is false.
|
342
|
-
# @param [String] fields
|
343
|
-
# Selector specifying which fields to include in a partial response.
|
344
459
|
# @param [String] quota_user
|
345
460
|
# Available to use for quota purposes for server-side applications. Can be any
|
346
461
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
462
|
+
# @param [String] fields
|
463
|
+
# Selector specifying which fields to include in a partial response.
|
347
464
|
# @param [Google::Apis::RequestOptions] options
|
348
465
|
# Request-specific options
|
349
466
|
#
|
@@ -356,7 +473,7 @@ module Google
|
|
356
473
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
357
474
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
358
475
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
359
|
-
def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil,
|
476
|
+
def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
|
360
477
|
command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
|
361
478
|
command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
|
362
479
|
command.request_object = log_sink_object
|
@@ -364,8 +481,8 @@ module Google
|
|
364
481
|
command.response_class = Google::Apis::LoggingV2beta1::LogSink
|
365
482
|
command.params['sinkName'] = sink_name unless sink_name.nil?
|
366
483
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
367
|
-
command.query['fields'] = fields unless fields.nil?
|
368
484
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
485
|
+
command.query['fields'] = fields unless fields.nil?
|
369
486
|
execute_or_queue_command(command, &block)
|
370
487
|
end
|
371
488
|
|
@@ -392,11 +509,11 @@ module Google
|
|
392
509
|
# owned by a non-project resource such as an organization, then the value of
|
393
510
|
# writer_identity will be a unique service account used only for exports from
|
394
511
|
# the new sink. For more information, see writer_identity in LogSink.
|
395
|
-
# @param [String] fields
|
396
|
-
# Selector specifying which fields to include in a partial response.
|
397
512
|
# @param [String] quota_user
|
398
513
|
# Available to use for quota purposes for server-side applications. Can be any
|
399
514
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
515
|
+
# @param [String] fields
|
516
|
+
# Selector specifying which fields to include in a partial response.
|
400
517
|
# @param [Google::Apis::RequestOptions] options
|
401
518
|
# Request-specific options
|
402
519
|
#
|
@@ -409,7 +526,7 @@ module Google
|
|
409
526
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
410
527
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
411
528
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
412
|
-
def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil,
|
529
|
+
def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
|
413
530
|
command = make_simple_command(:post, 'v2beta1/{+parent}/sinks', options)
|
414
531
|
command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
|
415
532
|
command.request_object = log_sink_object
|
@@ -417,125 +534,43 @@ module Google
|
|
417
534
|
command.response_class = Google::Apis::LoggingV2beta1::LogSink
|
418
535
|
command.params['parent'] = parent unless parent.nil?
|
419
536
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
420
|
-
command.query['fields'] = fields unless fields.nil?
|
421
537
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
422
|
-
execute_or_queue_command(command, &block)
|
423
|
-
end
|
424
|
-
|
425
|
-
# Deletes a sink. If the sink has a unique writer_identity, then that service
|
426
|
-
# account is also deleted.
|
427
|
-
# @param [String] sink_name
|
428
|
-
# Required. The full resource name of the sink to delete, including the parent
|
429
|
-
# resource and the sink identifier:
|
430
|
-
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
431
|
-
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
432
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
433
|
-
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
434
|
-
# Example: "projects/my-project-id/sinks/my-sink-id".
|
435
|
-
# @param [String] fields
|
436
|
-
# Selector specifying which fields to include in a partial response.
|
437
|
-
# @param [String] quota_user
|
438
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
439
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
440
|
-
# @param [Google::Apis::RequestOptions] options
|
441
|
-
# Request-specific options
|
442
|
-
#
|
443
|
-
# @yield [result, err] Result & error if block supplied
|
444
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
|
445
|
-
# @yieldparam err [StandardError] error object if request failed
|
446
|
-
#
|
447
|
-
# @return [Google::Apis::LoggingV2beta1::Empty]
|
448
|
-
#
|
449
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
450
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
451
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
452
|
-
def delete_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
453
|
-
command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
|
454
|
-
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
455
|
-
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
456
|
-
command.params['sinkName'] = sink_name unless sink_name.nil?
|
457
538
|
command.query['fields'] = fields unless fields.nil?
|
458
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
459
539
|
execute_or_queue_command(command, &block)
|
460
540
|
end
|
461
541
|
|
462
|
-
#
|
542
|
+
# Creates a logs-based metric.
|
463
543
|
# @param [String] parent
|
464
|
-
#
|
544
|
+
# The resource name of the project in which to create the metric:
|
465
545
|
# "projects/[PROJECT_ID]"
|
466
|
-
#
|
467
|
-
#
|
468
|
-
# "folders/[FOLDER_ID]"
|
469
|
-
# @param [String] page_token
|
470
|
-
# Optional. If present, then retrieve the next batch of results from the
|
471
|
-
# preceding call to this method. pageToken must be the value of nextPageToken
|
472
|
-
# from the previous response. The values of other method parameters should be
|
473
|
-
# identical to those in the previous call.
|
474
|
-
# @param [Fixnum] page_size
|
475
|
-
# Optional. The maximum number of results to return from this request. Non-
|
476
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
477
|
-
# indicates that more results might be available.
|
478
|
-
# @param [String] fields
|
479
|
-
# Selector specifying which fields to include in a partial response.
|
546
|
+
# The new metric must be provided in the request.
|
547
|
+
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
|
480
548
|
# @param [String] quota_user
|
481
549
|
# Available to use for quota purposes for server-side applications. Can be any
|
482
550
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
483
|
-
# @param [Google::Apis::RequestOptions] options
|
484
|
-
# Request-specific options
|
485
|
-
#
|
486
|
-
# @yield [result, err] Result & error if block supplied
|
487
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::ListSinksResponse] parsed result object
|
488
|
-
# @yieldparam err [StandardError] error object if request failed
|
489
|
-
#
|
490
|
-
# @return [Google::Apis::LoggingV2beta1::ListSinksResponse]
|
491
|
-
#
|
492
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
493
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
494
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
495
|
-
def list_project_sinks(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
496
|
-
command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options)
|
497
|
-
command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
|
498
|
-
command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
|
499
|
-
command.params['parent'] = parent unless parent.nil?
|
500
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
501
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
502
|
-
command.query['fields'] = fields unless fields.nil?
|
503
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
504
|
-
execute_or_queue_command(command, &block)
|
505
|
-
end
|
506
|
-
|
507
|
-
# Gets a sink.
|
508
|
-
# @param [String] sink_name
|
509
|
-
# Required. The resource name of the sink:
|
510
|
-
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
511
|
-
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
512
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
513
|
-
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
514
|
-
# Example: "projects/my-project-id/sinks/my-sink-id".
|
515
551
|
# @param [String] fields
|
516
552
|
# Selector specifying which fields to include in a partial response.
|
517
|
-
# @param [String] quota_user
|
518
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
519
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
520
553
|
# @param [Google::Apis::RequestOptions] options
|
521
554
|
# Request-specific options
|
522
555
|
#
|
523
556
|
# @yield [result, err] Result & error if block supplied
|
524
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::
|
557
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
|
525
558
|
# @yieldparam err [StandardError] error object if request failed
|
526
559
|
#
|
527
|
-
# @return [Google::Apis::LoggingV2beta1::
|
560
|
+
# @return [Google::Apis::LoggingV2beta1::LogMetric]
|
528
561
|
#
|
529
562
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
530
563
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
531
564
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
532
|
-
def
|
533
|
-
command = make_simple_command(:
|
534
|
-
command.
|
535
|
-
command.
|
536
|
-
command.
|
537
|
-
command.
|
565
|
+
def create_project_metric(parent, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
566
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
|
567
|
+
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
568
|
+
command.request_object = log_metric_object
|
569
|
+
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
570
|
+
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
|
571
|
+
command.params['parent'] = parent unless parent.nil?
|
538
572
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
573
|
+
command.query['fields'] = fields unless fields.nil?
|
539
574
|
execute_or_queue_command(command, &block)
|
540
575
|
end
|
541
576
|
|
@@ -543,11 +578,11 @@ module Google
|
|
543
578
|
# @param [String] metric_name
|
544
579
|
# The resource name of the metric to delete:
|
545
580
|
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
546
|
-
# @param [String] fields
|
547
|
-
# Selector specifying which fields to include in a partial response.
|
548
581
|
# @param [String] quota_user
|
549
582
|
# Available to use for quota purposes for server-side applications. Can be any
|
550
583
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
584
|
+
# @param [String] fields
|
585
|
+
# Selector specifying which fields to include in a partial response.
|
551
586
|
# @param [Google::Apis::RequestOptions] options
|
552
587
|
# Request-specific options
|
553
588
|
#
|
@@ -560,13 +595,13 @@ module Google
|
|
560
595
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
561
596
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
562
597
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
563
|
-
def delete_project_metric(metric_name,
|
598
|
+
def delete_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
|
564
599
|
command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
|
565
600
|
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
566
601
|
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
567
602
|
command.params['metricName'] = metric_name unless metric_name.nil?
|
568
|
-
command.query['fields'] = fields unless fields.nil?
|
569
603
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
604
|
+
command.query['fields'] = fields unless fields.nil?
|
570
605
|
execute_or_queue_command(command, &block)
|
571
606
|
end
|
572
607
|
|
@@ -583,11 +618,11 @@ module Google
|
|
583
618
|
# Optional. The maximum number of results to return from this request. Non-
|
584
619
|
# positive values are ignored. The presence of nextPageToken in the response
|
585
620
|
# indicates that more results might be available.
|
586
|
-
# @param [String] fields
|
587
|
-
# Selector specifying which fields to include in a partial response.
|
588
621
|
# @param [String] quota_user
|
589
622
|
# Available to use for quota purposes for server-side applications. Can be any
|
590
623
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
624
|
+
# @param [String] fields
|
625
|
+
# Selector specifying which fields to include in a partial response.
|
591
626
|
# @param [Google::Apis::RequestOptions] options
|
592
627
|
# Request-specific options
|
593
628
|
#
|
@@ -600,15 +635,15 @@ module Google
|
|
600
635
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
601
636
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
602
637
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
603
|
-
def list_project_metrics(parent, page_token: nil, page_size: nil,
|
638
|
+
def list_project_metrics(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
604
639
|
command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options)
|
605
640
|
command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
|
606
641
|
command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
|
607
642
|
command.params['parent'] = parent unless parent.nil?
|
608
643
|
command.query['pageToken'] = page_token unless page_token.nil?
|
609
644
|
command.query['pageSize'] = page_size unless page_size.nil?
|
610
|
-
command.query['fields'] = fields unless fields.nil?
|
611
645
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
646
|
+
command.query['fields'] = fields unless fields.nil?
|
612
647
|
execute_or_queue_command(command, &block)
|
613
648
|
end
|
614
649
|
|
@@ -616,11 +651,11 @@ module Google
|
|
616
651
|
# @param [String] metric_name
|
617
652
|
# The resource name of the desired metric:
|
618
653
|
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
619
|
-
# @param [String] fields
|
620
|
-
# Selector specifying which fields to include in a partial response.
|
621
654
|
# @param [String] quota_user
|
622
655
|
# Available to use for quota purposes for server-side applications. Can be any
|
623
656
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
657
|
+
# @param [String] fields
|
658
|
+
# Selector specifying which fields to include in a partial response.
|
624
659
|
# @param [Google::Apis::RequestOptions] options
|
625
660
|
# Request-specific options
|
626
661
|
#
|
@@ -633,13 +668,13 @@ module Google
|
|
633
668
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
634
669
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
635
670
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
636
|
-
def get_project_metric(metric_name,
|
671
|
+
def get_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
|
637
672
|
command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
|
638
673
|
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
639
674
|
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
|
640
675
|
command.params['metricName'] = metric_name unless metric_name.nil?
|
641
|
-
command.query['fields'] = fields unless fields.nil?
|
642
676
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
677
|
+
command.query['fields'] = fields unless fields.nil?
|
643
678
|
execute_or_queue_command(command, &block)
|
644
679
|
end
|
645
680
|
|
@@ -651,11 +686,11 @@ module Google
|
|
651
686
|
# the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
|
652
687
|
# new metric is created.
|
653
688
|
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
|
654
|
-
# @param [String] fields
|
655
|
-
# Selector specifying which fields to include in a partial response.
|
656
689
|
# @param [String] quota_user
|
657
690
|
# Available to use for quota purposes for server-side applications. Can be any
|
658
691
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
692
|
+
# @param [String] fields
|
693
|
+
# Selector specifying which fields to include in a partial response.
|
659
694
|
# @param [Google::Apis::RequestOptions] options
|
660
695
|
# Request-specific options
|
661
696
|
#
|
@@ -668,50 +703,15 @@ module Google
|
|
668
703
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
669
704
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
670
705
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
671
|
-
def update_project_metric(metric_name, log_metric_object = nil,
|
706
|
+
def update_project_metric(metric_name, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
672
707
|
command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
|
673
708
|
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
674
709
|
command.request_object = log_metric_object
|
675
710
|
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
676
711
|
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
|
677
712
|
command.params['metricName'] = metric_name unless metric_name.nil?
|
678
|
-
command.query['fields'] = fields unless fields.nil?
|
679
713
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
680
|
-
execute_or_queue_command(command, &block)
|
681
|
-
end
|
682
|
-
|
683
|
-
# Creates a logs-based metric.
|
684
|
-
# @param [String] parent
|
685
|
-
# The resource name of the project in which to create the metric:
|
686
|
-
# "projects/[PROJECT_ID]"
|
687
|
-
# The new metric must be provided in the request.
|
688
|
-
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
|
689
|
-
# @param [String] fields
|
690
|
-
# Selector specifying which fields to include in a partial response.
|
691
|
-
# @param [String] quota_user
|
692
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
693
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
694
|
-
# @param [Google::Apis::RequestOptions] options
|
695
|
-
# Request-specific options
|
696
|
-
#
|
697
|
-
# @yield [result, err] Result & error if block supplied
|
698
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
|
699
|
-
# @yieldparam err [StandardError] error object if request failed
|
700
|
-
#
|
701
|
-
# @return [Google::Apis::LoggingV2beta1::LogMetric]
|
702
|
-
#
|
703
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
704
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
705
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
706
|
-
def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
707
|
-
command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
|
708
|
-
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
709
|
-
command.request_object = log_metric_object
|
710
|
-
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
711
|
-
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
|
712
|
-
command.params['parent'] = parent unless parent.nil?
|
713
714
|
command.query['fields'] = fields unless fields.nil?
|
714
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
715
715
|
execute_or_queue_command(command, &block)
|
716
716
|
end
|
717
717
|
|
@@ -727,11 +727,11 @@ module Google
|
|
727
727
|
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
728
728
|
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
729
729
|
# 2Factivity". For more information about log names, see LogEntry.
|
730
|
-
# @param [String] fields
|
731
|
-
# Selector specifying which fields to include in a partial response.
|
732
730
|
# @param [String] quota_user
|
733
731
|
# Available to use for quota purposes for server-side applications. Can be any
|
734
732
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
733
|
+
# @param [String] fields
|
734
|
+
# Selector specifying which fields to include in a partial response.
|
735
735
|
# @param [Google::Apis::RequestOptions] options
|
736
736
|
# Request-specific options
|
737
737
|
#
|
@@ -744,13 +744,13 @@ module Google
|
|
744
744
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
745
745
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
746
746
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
747
|
-
def delete_billing_account_log(log_name,
|
747
|
+
def delete_billing_account_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
|
748
748
|
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
749
749
|
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
750
750
|
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
751
751
|
command.params['logName'] = log_name unless log_name.nil?
|
752
|
-
command.query['fields'] = fields unless fields.nil?
|
753
752
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
753
|
+
command.query['fields'] = fields unless fields.nil?
|
754
754
|
execute_or_queue_command(command, &block)
|
755
755
|
end
|
756
756
|
|
@@ -762,20 +762,20 @@ module Google
|
|
762
762
|
# "organizations/[ORGANIZATION_ID]"
|
763
763
|
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
764
764
|
# "folders/[FOLDER_ID]"
|
765
|
+
# @param [Fixnum] page_size
|
766
|
+
# Optional. The maximum number of results to return from this request. Non-
|
767
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
768
|
+
# indicates that more results might be available.
|
765
769
|
# @param [String] page_token
|
766
770
|
# Optional. If present, then retrieve the next batch of results from the
|
767
771
|
# preceding call to this method. pageToken must be the value of nextPageToken
|
768
772
|
# from the previous response. The values of other method parameters should be
|
769
773
|
# identical to those in the previous call.
|
770
|
-
# @param [Fixnum] page_size
|
771
|
-
# Optional. The maximum number of results to return from this request. Non-
|
772
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
773
|
-
# indicates that more results might be available.
|
774
|
-
# @param [String] fields
|
775
|
-
# Selector specifying which fields to include in a partial response.
|
776
774
|
# @param [String] quota_user
|
777
775
|
# Available to use for quota purposes for server-side applications. Can be any
|
778
776
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
777
|
+
# @param [String] fields
|
778
|
+
# Selector specifying which fields to include in a partial response.
|
779
779
|
# @param [Google::Apis::RequestOptions] options
|
780
780
|
# Request-specific options
|
781
781
|
#
|
@@ -788,15 +788,15 @@ module Google
|
|
788
788
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
789
789
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
790
790
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
791
|
-
def list_billing_account_logs(parent,
|
791
|
+
def list_billing_account_logs(parent, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
792
792
|
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
|
793
793
|
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
|
794
794
|
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
|
795
795
|
command.params['parent'] = parent unless parent.nil?
|
796
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
797
796
|
command.query['pageSize'] = page_size unless page_size.nil?
|
798
|
-
command.query['
|
797
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
799
798
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
799
|
+
command.query['fields'] = fields unless fields.nil?
|
800
800
|
execute_or_queue_command(command, &block)
|
801
801
|
end
|
802
802
|
|