google-api-client 0.9.23 → 0.9.24
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/Gemfile +1 -1
- data/api_names.yaml +2556 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.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/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +0 -46
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +578 -578
- data/generated/google/apis/cloudbuild_v1/representations.rb +113 -113
- data/generated/google/apis/cloudbuild_v1/service.rb +182 -182
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +837 -837
- data/generated/google/apis/logging_v2beta1/representations.rb +165 -165
- data/generated/google/apis/logging_v2beta1/service.rb +208 -208
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/sheets_v4.rb +3 -3
- data/generated/google/apis/sheets_v4/classes.rb +4203 -4203
- data/generated/google/apis/sheets_v4/representations.rb +835 -835
- data/generated/google/apis/sheets_v4/service.rb +195 -195
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -2
@@ -32,135 +32,91 @@ module Google
|
|
32
32
|
#
|
33
33
|
# @see https://cloud.google.com/logging/docs/
|
34
34
|
class LoggingService < Google::Apis::Core::BaseService
|
35
|
-
# @return [String]
|
36
|
-
# API key. Your API key identifies your project and provides you with API access,
|
37
|
-
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
-
attr_accessor :key
|
39
|
-
|
40
35
|
# @return [String]
|
41
36
|
# Available to use for quota purposes for server-side applications. Can be any
|
42
37
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
38
|
attr_accessor :quota_user
|
44
39
|
|
40
|
+
# @return [String]
|
41
|
+
# API key. Your API key identifies your project and provides you with API access,
|
42
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
43
|
+
attr_accessor :key
|
44
|
+
|
45
45
|
def initialize
|
46
46
|
super('https://logging.googleapis.com/', '')
|
47
47
|
end
|
48
48
|
|
49
|
-
#
|
50
|
-
# entries.
|
51
|
-
# @param [String] log_name
|
52
|
-
# Required. The resource name of the log to delete:
|
53
|
-
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
54
|
-
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
55
|
-
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
56
|
-
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
57
|
-
# 2Factivity". For more information about log names, see LogEntry.
|
58
|
-
# @param [String] fields
|
59
|
-
# Selector specifying which fields to include in a partial response.
|
60
|
-
# @param [String] quota_user
|
61
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
62
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
63
|
-
# @param [Google::Apis::RequestOptions] options
|
64
|
-
# Request-specific options
|
65
|
-
#
|
66
|
-
# @yield [result, err] Result & error if block supplied
|
67
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
|
68
|
-
# @yieldparam err [StandardError] error object if request failed
|
69
|
-
#
|
70
|
-
# @return [Google::Apis::LoggingV2beta1::Empty]
|
71
|
-
#
|
72
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
73
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
74
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
75
|
-
def delete_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
76
|
-
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
77
|
-
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
78
|
-
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
79
|
-
command.params['logName'] = log_name unless log_name.nil?
|
80
|
-
command.query['fields'] = fields unless fields.nil?
|
81
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
82
|
-
execute_or_queue_command(command, &block)
|
83
|
-
end
|
84
|
-
|
85
|
-
# Lists the logs in projects or organizations. Only logs that have entries are
|
86
|
-
# listed.
|
87
|
-
# @param [String] parent
|
88
|
-
# Required. The resource name that owns the logs:
|
89
|
-
# "projects/[PROJECT_ID]"
|
90
|
-
# "organizations/[ORGANIZATION_ID]"
|
91
|
-
# @param [Fixnum] page_size
|
92
|
-
# Optional. The maximum number of results to return from this request. Non-
|
93
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
94
|
-
# indicates that more results might be available.
|
49
|
+
# Lists the descriptors for monitored resource types used by Stackdriver Logging.
|
95
50
|
# @param [String] page_token
|
96
51
|
# Optional. If present, then retrieve the next batch of results from the
|
97
52
|
# preceding call to this method. pageToken must be the value of nextPageToken
|
98
53
|
# from the previous response. The values of other method parameters should be
|
99
54
|
# identical to those in the previous call.
|
100
|
-
# @param [
|
101
|
-
#
|
55
|
+
# @param [Fixnum] page_size
|
56
|
+
# Optional. The maximum number of results to return from this request. Non-
|
57
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
58
|
+
# indicates that more results might be available.
|
102
59
|
# @param [String] quota_user
|
103
60
|
# Available to use for quota purposes for server-side applications. Can be any
|
104
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.
|
105
64
|
# @param [Google::Apis::RequestOptions] options
|
106
65
|
# Request-specific options
|
107
66
|
#
|
108
67
|
# @yield [result, err] Result & error if block supplied
|
109
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::
|
68
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse] parsed result object
|
110
69
|
# @yieldparam err [StandardError] error object if request failed
|
111
70
|
#
|
112
|
-
# @return [Google::Apis::LoggingV2beta1::
|
71
|
+
# @return [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse]
|
113
72
|
#
|
114
73
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
115
74
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
116
75
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
117
|
-
def
|
118
|
-
command = make_simple_command(:get, 'v2beta1/
|
119
|
-
command.response_representation = Google::Apis::LoggingV2beta1::
|
120
|
-
command.response_class = Google::Apis::LoggingV2beta1::
|
121
|
-
command.params['parent'] = parent unless parent.nil?
|
122
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
76
|
+
def list_monitored_resource_descriptors(page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
77
|
+
command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
|
78
|
+
command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
|
79
|
+
command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
|
123
80
|
command.query['pageToken'] = page_token unless page_token.nil?
|
124
|
-
command.query['
|
81
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
125
82
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
83
|
+
command.query['fields'] = fields unless fields.nil?
|
126
84
|
execute_or_queue_command(command, &block)
|
127
85
|
end
|
128
86
|
|
129
|
-
#
|
130
|
-
#
|
131
|
-
#
|
132
|
-
#
|
133
|
-
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
# indicates that more results might be available.
|
139
|
-
# @param [String] fields
|
140
|
-
# Selector specifying which fields to include in a partial response.
|
87
|
+
# Deletes all the log entries in a log. The log reappears if it receives new
|
88
|
+
# entries.
|
89
|
+
# @param [String] log_name
|
90
|
+
# Required. The resource name of the log to delete:
|
91
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
92
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
93
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
94
|
+
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
95
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
141
96
|
# @param [String] quota_user
|
142
97
|
# Available to use for quota purposes for server-side applications. Can be any
|
143
98
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
99
|
+
# @param [String] fields
|
100
|
+
# Selector specifying which fields to include in a partial response.
|
144
101
|
# @param [Google::Apis::RequestOptions] options
|
145
102
|
# Request-specific options
|
146
103
|
#
|
147
104
|
# @yield [result, err] Result & error if block supplied
|
148
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::
|
105
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
|
149
106
|
# @yieldparam err [StandardError] error object if request failed
|
150
107
|
#
|
151
|
-
# @return [Google::Apis::LoggingV2beta1::
|
108
|
+
# @return [Google::Apis::LoggingV2beta1::Empty]
|
152
109
|
#
|
153
110
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
154
111
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
155
112
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
156
|
-
def
|
157
|
-
command = make_simple_command(:
|
158
|
-
command.response_representation = Google::Apis::LoggingV2beta1::
|
159
|
-
command.response_class = Google::Apis::LoggingV2beta1::
|
160
|
-
command.
|
161
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
162
|
-
command.query['fields'] = fields unless fields.nil?
|
113
|
+
def delete_organization_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
|
114
|
+
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
115
|
+
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
116
|
+
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
117
|
+
command.params['logName'] = log_name unless log_name.nil?
|
163
118
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
119
|
+
command.query['fields'] = fields unless fields.nil?
|
164
120
|
execute_or_queue_command(command, &block)
|
165
121
|
end
|
166
122
|
|
@@ -179,11 +135,11 @@ module Google
|
|
179
135
|
# Optional. The maximum number of results to return from this request. Non-
|
180
136
|
# positive values are ignored. The presence of nextPageToken in the response
|
181
137
|
# indicates that more results might be available.
|
182
|
-
# @param [String] fields
|
183
|
-
# Selector specifying which fields to include in a partial response.
|
184
138
|
# @param [String] quota_user
|
185
139
|
# Available to use for quota purposes for server-side applications. Can be any
|
186
140
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
141
|
+
# @param [String] fields
|
142
|
+
# Selector specifying which fields to include in a partial response.
|
187
143
|
# @param [Google::Apis::RequestOptions] options
|
188
144
|
# Request-specific options
|
189
145
|
#
|
@@ -196,62 +152,26 @@ module Google
|
|
196
152
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
197
153
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
198
154
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
199
|
-
def list_organization_logs(parent, page_token: nil, page_size: nil,
|
155
|
+
def list_organization_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
200
156
|
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
|
201
157
|
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
|
202
158
|
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
|
203
159
|
command.params['parent'] = parent unless parent.nil?
|
204
160
|
command.query['pageToken'] = page_token unless page_token.nil?
|
205
161
|
command.query['pageSize'] = page_size unless page_size.nil?
|
206
|
-
command.query['fields'] = fields unless fields.nil?
|
207
162
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
208
|
-
execute_or_queue_command(command, &block)
|
209
|
-
end
|
210
|
-
|
211
|
-
# Deletes all the log entries in a log. The log reappears if it receives new
|
212
|
-
# entries.
|
213
|
-
# @param [String] log_name
|
214
|
-
# Required. The resource name of the log to delete:
|
215
|
-
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
216
|
-
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
217
|
-
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
218
|
-
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
219
|
-
# 2Factivity". For more information about log names, see LogEntry.
|
220
|
-
# @param [String] fields
|
221
|
-
# Selector specifying which fields to include in a partial response.
|
222
|
-
# @param [String] quota_user
|
223
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
224
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
225
|
-
# @param [Google::Apis::RequestOptions] options
|
226
|
-
# Request-specific options
|
227
|
-
#
|
228
|
-
# @yield [result, err] Result & error if block supplied
|
229
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
|
230
|
-
# @yieldparam err [StandardError] error object if request failed
|
231
|
-
#
|
232
|
-
# @return [Google::Apis::LoggingV2beta1::Empty]
|
233
|
-
#
|
234
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
235
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
236
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
237
|
-
def delete_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
238
|
-
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
239
|
-
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
240
|
-
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
241
|
-
command.params['logName'] = log_name unless log_name.nil?
|
242
163
|
command.query['fields'] = fields unless fields.nil?
|
243
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
244
164
|
execute_or_queue_command(command, &block)
|
245
165
|
end
|
246
166
|
|
247
167
|
# Lists log entries. Use this method to retrieve log entries from Stackdriver
|
248
168
|
# Logging. For ways to export log entries, see Exporting Logs.
|
249
169
|
# @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object
|
250
|
-
# @param [String] fields
|
251
|
-
# Selector specifying which fields to include in a partial response.
|
252
170
|
# @param [String] quota_user
|
253
171
|
# Available to use for quota purposes for server-side applications. Can be any
|
254
172
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
173
|
+
# @param [String] fields
|
174
|
+
# Selector specifying which fields to include in a partial response.
|
255
175
|
# @param [Google::Apis::RequestOptions] options
|
256
176
|
# Request-specific options
|
257
177
|
#
|
@@ -264,25 +184,25 @@ module Google
|
|
264
184
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
265
185
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
266
186
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
267
|
-
def list_entry_log_entries(list_log_entries_request_object = nil,
|
187
|
+
def list_entry_log_entries(list_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
268
188
|
command = make_simple_command(:post, 'v2beta1/entries:list', options)
|
269
189
|
command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
|
270
190
|
command.request_object = list_log_entries_request_object
|
271
191
|
command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
|
272
192
|
command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
|
273
|
-
command.query['fields'] = fields unless fields.nil?
|
274
193
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
194
|
+
command.query['fields'] = fields unless fields.nil?
|
275
195
|
execute_or_queue_command(command, &block)
|
276
196
|
end
|
277
197
|
|
278
198
|
# Writes log entries to Stackdriver Logging. All log entries are written by this
|
279
199
|
# method.
|
280
200
|
# @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object
|
281
|
-
# @param [String] fields
|
282
|
-
# Selector specifying which fields to include in a partial response.
|
283
201
|
# @param [String] quota_user
|
284
202
|
# Available to use for quota purposes for server-side applications. Can be any
|
285
203
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
204
|
+
# @param [String] fields
|
205
|
+
# Selector specifying which fields to include in a partial response.
|
286
206
|
# @param [Google::Apis::RequestOptions] options
|
287
207
|
# Request-specific options
|
288
208
|
#
|
@@ -295,14 +215,50 @@ module Google
|
|
295
215
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
296
216
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
297
217
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
298
|
-
def write_entry_log_entries(write_log_entries_request_object = nil,
|
218
|
+
def write_entry_log_entries(write_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
299
219
|
command = make_simple_command(:post, 'v2beta1/entries:write', options)
|
300
220
|
command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
|
301
221
|
command.request_object = write_log_entries_request_object
|
302
222
|
command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
|
303
223
|
command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
|
224
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
304
225
|
command.query['fields'] = fields unless fields.nil?
|
226
|
+
execute_or_queue_command(command, &block)
|
227
|
+
end
|
228
|
+
|
229
|
+
# Deletes all the log entries in a log. The log reappears if it receives new
|
230
|
+
# entries.
|
231
|
+
# @param [String] log_name
|
232
|
+
# Required. The resource name of the log to delete:
|
233
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
234
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
235
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
236
|
+
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
237
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
238
|
+
# @param [String] quota_user
|
239
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
240
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
241
|
+
# @param [String] fields
|
242
|
+
# Selector specifying which fields to include in a partial response.
|
243
|
+
# @param [Google::Apis::RequestOptions] options
|
244
|
+
# Request-specific options
|
245
|
+
#
|
246
|
+
# @yield [result, err] Result & error if block supplied
|
247
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
|
248
|
+
# @yieldparam err [StandardError] error object if request failed
|
249
|
+
#
|
250
|
+
# @return [Google::Apis::LoggingV2beta1::Empty]
|
251
|
+
#
|
252
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
253
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
254
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
255
|
+
def delete_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
|
256
|
+
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
257
|
+
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
258
|
+
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
259
|
+
command.params['logName'] = log_name unless log_name.nil?
|
305
260
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
261
|
+
command.query['fields'] = fields unless fields.nil?
|
306
262
|
execute_or_queue_command(command, &block)
|
307
263
|
end
|
308
264
|
|
@@ -321,11 +277,11 @@ module Google
|
|
321
277
|
# Optional. The maximum number of results to return from this request. Non-
|
322
278
|
# positive values are ignored. The presence of nextPageToken in the response
|
323
279
|
# indicates that more results might be available.
|
324
|
-
# @param [String] fields
|
325
|
-
# Selector specifying which fields to include in a partial response.
|
326
280
|
# @param [String] quota_user
|
327
281
|
# Available to use for quota purposes for server-side applications. Can be any
|
328
282
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
283
|
+
# @param [String] fields
|
284
|
+
# Selector specifying which fields to include in a partial response.
|
329
285
|
# @param [Google::Apis::RequestOptions] options
|
330
286
|
# Request-specific options
|
331
287
|
#
|
@@ -338,51 +294,15 @@ module Google
|
|
338
294
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
339
295
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
340
296
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
341
|
-
def list_logs(parent, page_token: nil, page_size: nil,
|
297
|
+
def list_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
342
298
|
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
|
343
299
|
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
|
344
300
|
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
|
345
301
|
command.params['parent'] = parent unless parent.nil?
|
346
302
|
command.query['pageToken'] = page_token unless page_token.nil?
|
347
303
|
command.query['pageSize'] = page_size unless page_size.nil?
|
348
|
-
command.query['fields'] = fields unless fields.nil?
|
349
304
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
350
|
-
execute_or_queue_command(command, &block)
|
351
|
-
end
|
352
|
-
|
353
|
-
# Deletes all the log entries in a log. The log reappears if it receives new
|
354
|
-
# entries.
|
355
|
-
# @param [String] log_name
|
356
|
-
# Required. The resource name of the log to delete:
|
357
|
-
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
358
|
-
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
359
|
-
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
360
|
-
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
361
|
-
# 2Factivity". For more information about log names, see LogEntry.
|
362
|
-
# @param [String] fields
|
363
|
-
# Selector specifying which fields to include in a partial response.
|
364
|
-
# @param [String] quota_user
|
365
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
366
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
367
|
-
# @param [Google::Apis::RequestOptions] options
|
368
|
-
# Request-specific options
|
369
|
-
#
|
370
|
-
# @yield [result, err] Result & error if block supplied
|
371
|
-
# @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
|
372
|
-
# @yieldparam err [StandardError] error object if request failed
|
373
|
-
#
|
374
|
-
# @return [Google::Apis::LoggingV2beta1::Empty]
|
375
|
-
#
|
376
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
377
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
378
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
379
|
-
def delete_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
380
|
-
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
381
|
-
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
382
|
-
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
383
|
-
command.params['logName'] = log_name unless log_name.nil?
|
384
305
|
command.query['fields'] = fields unless fields.nil?
|
385
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
386
306
|
execute_or_queue_command(command, &block)
|
387
307
|
end
|
388
308
|
|
@@ -395,11 +315,11 @@ module Google
|
|
395
315
|
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
396
316
|
# It is an error if the sink does not exist. Example: "projects/my-project-id/
|
397
317
|
# sinks/my-sink-id". It is an error if the sink does not exist.
|
398
|
-
# @param [String] fields
|
399
|
-
# Selector specifying which fields to include in a partial response.
|
400
318
|
# @param [String] quota_user
|
401
319
|
# Available to use for quota purposes for server-side applications. Can be any
|
402
320
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
321
|
+
# @param [String] fields
|
322
|
+
# Selector specifying which fields to include in a partial response.
|
403
323
|
# @param [Google::Apis::RequestOptions] options
|
404
324
|
# Request-specific options
|
405
325
|
#
|
@@ -412,13 +332,13 @@ module Google
|
|
412
332
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
413
333
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
414
334
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
415
|
-
def delete_project_sink(sink_name,
|
335
|
+
def delete_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
|
416
336
|
command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
|
417
337
|
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
418
338
|
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
419
339
|
command.params['sinkName'] = sink_name unless sink_name.nil?
|
420
|
-
command.query['fields'] = fields unless fields.nil?
|
421
340
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
341
|
+
command.query['fields'] = fields unless fields.nil?
|
422
342
|
execute_or_queue_command(command, &block)
|
423
343
|
end
|
424
344
|
|
@@ -435,11 +355,11 @@ module Google
|
|
435
355
|
# Optional. The maximum number of results to return from this request. Non-
|
436
356
|
# positive values are ignored. The presence of nextPageToken in the response
|
437
357
|
# indicates that more results might be available.
|
438
|
-
# @param [String] fields
|
439
|
-
# Selector specifying which fields to include in a partial response.
|
440
358
|
# @param [String] quota_user
|
441
359
|
# Available to use for quota purposes for server-side applications. Can be any
|
442
360
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
361
|
+
# @param [String] fields
|
362
|
+
# Selector specifying which fields to include in a partial response.
|
443
363
|
# @param [Google::Apis::RequestOptions] options
|
444
364
|
# Request-specific options
|
445
365
|
#
|
@@ -452,15 +372,15 @@ module Google
|
|
452
372
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
453
373
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
454
374
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
455
|
-
def list_project_sinks(parent, page_token: nil, page_size: nil,
|
375
|
+
def list_project_sinks(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
456
376
|
command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options)
|
457
377
|
command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
|
458
378
|
command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
|
459
379
|
command.params['parent'] = parent unless parent.nil?
|
460
380
|
command.query['pageToken'] = page_token unless page_token.nil?
|
461
381
|
command.query['pageSize'] = page_size unless page_size.nil?
|
462
|
-
command.query['fields'] = fields unless fields.nil?
|
463
382
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
383
|
+
command.query['fields'] = fields unless fields.nil?
|
464
384
|
execute_or_queue_command(command, &block)
|
465
385
|
end
|
466
386
|
|
@@ -470,11 +390,11 @@ module Google
|
|
470
390
|
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
471
391
|
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
472
392
|
# Example: "projects/my-project-id/sinks/my-sink-id".
|
473
|
-
# @param [String] fields
|
474
|
-
# Selector specifying which fields to include in a partial response.
|
475
393
|
# @param [String] quota_user
|
476
394
|
# Available to use for quota purposes for server-side applications. Can be any
|
477
395
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
396
|
+
# @param [String] fields
|
397
|
+
# Selector specifying which fields to include in a partial response.
|
478
398
|
# @param [Google::Apis::RequestOptions] options
|
479
399
|
# Request-specific options
|
480
400
|
#
|
@@ -487,13 +407,13 @@ module Google
|
|
487
407
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
488
408
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
489
409
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
490
|
-
def get_project_sink(sink_name,
|
410
|
+
def get_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
|
491
411
|
command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
|
492
412
|
command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
|
493
413
|
command.response_class = Google::Apis::LoggingV2beta1::LogSink
|
494
414
|
command.params['sinkName'] = sink_name unless sink_name.nil?
|
495
|
-
command.query['fields'] = fields unless fields.nil?
|
496
415
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
416
|
+
command.query['fields'] = fields unless fields.nil?
|
497
417
|
execute_or_queue_command(command, &block)
|
498
418
|
end
|
499
419
|
|
@@ -519,11 +439,11 @@ module Google
|
|
519
439
|
# If the old value was false and the new value is true, then writer_identity is
|
520
440
|
# changed to a unique service account.
|
521
441
|
# It is an error if the old value was true and the new value is false.
|
522
|
-
# @param [String] fields
|
523
|
-
# Selector specifying which fields to include in a partial response.
|
524
442
|
# @param [String] quota_user
|
525
443
|
# Available to use for quota purposes for server-side applications. Can be any
|
526
444
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
445
|
+
# @param [String] fields
|
446
|
+
# Selector specifying which fields to include in a partial response.
|
527
447
|
# @param [Google::Apis::RequestOptions] options
|
528
448
|
# Request-specific options
|
529
449
|
#
|
@@ -536,7 +456,7 @@ module Google
|
|
536
456
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
537
457
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
538
458
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
539
|
-
def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil,
|
459
|
+
def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
|
540
460
|
command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
|
541
461
|
command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
|
542
462
|
command.request_object = log_sink_object
|
@@ -544,8 +464,8 @@ module Google
|
|
544
464
|
command.response_class = Google::Apis::LoggingV2beta1::LogSink
|
545
465
|
command.params['sinkName'] = sink_name unless sink_name.nil?
|
546
466
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
547
|
-
command.query['fields'] = fields unless fields.nil?
|
548
467
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
468
|
+
command.query['fields'] = fields unless fields.nil?
|
549
469
|
execute_or_queue_command(command, &block)
|
550
470
|
end
|
551
471
|
|
@@ -570,11 +490,11 @@ module Google
|
|
570
490
|
# resource such as an organization, then the value of writer_identity will be a
|
571
491
|
# unique service account used only for exports from the new sink. For more
|
572
492
|
# information, see writer_identity in LogSink.
|
573
|
-
# @param [String] fields
|
574
|
-
# Selector specifying which fields to include in a partial response.
|
575
493
|
# @param [String] quota_user
|
576
494
|
# Available to use for quota purposes for server-side applications. Can be any
|
577
495
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
496
|
+
# @param [String] fields
|
497
|
+
# Selector specifying which fields to include in a partial response.
|
578
498
|
# @param [Google::Apis::RequestOptions] options
|
579
499
|
# Request-specific options
|
580
500
|
#
|
@@ -587,7 +507,7 @@ module Google
|
|
587
507
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
588
508
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
589
509
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
590
|
-
def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil,
|
510
|
+
def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
|
591
511
|
command = make_simple_command(:post, 'v2beta1/{+parent}/sinks', options)
|
592
512
|
command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
|
593
513
|
command.request_object = log_sink_object
|
@@ -595,8 +515,8 @@ module Google
|
|
595
515
|
command.response_class = Google::Apis::LoggingV2beta1::LogSink
|
596
516
|
command.params['parent'] = parent unless parent.nil?
|
597
517
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
598
|
-
command.query['fields'] = fields unless fields.nil?
|
599
518
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
519
|
+
command.query['fields'] = fields unless fields.nil?
|
600
520
|
execute_or_queue_command(command, &block)
|
601
521
|
end
|
602
522
|
|
@@ -604,11 +524,11 @@ module Google
|
|
604
524
|
# @param [String] metric_name
|
605
525
|
# The resource name of the metric to delete:
|
606
526
|
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
607
|
-
# @param [String] fields
|
608
|
-
# Selector specifying which fields to include in a partial response.
|
609
527
|
# @param [String] quota_user
|
610
528
|
# Available to use for quota purposes for server-side applications. Can be any
|
611
529
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
530
|
+
# @param [String] fields
|
531
|
+
# Selector specifying which fields to include in a partial response.
|
612
532
|
# @param [Google::Apis::RequestOptions] options
|
613
533
|
# Request-specific options
|
614
534
|
#
|
@@ -621,13 +541,13 @@ module Google
|
|
621
541
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
622
542
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
623
543
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
624
|
-
def delete_project_metric(metric_name,
|
544
|
+
def delete_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
|
625
545
|
command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
|
626
546
|
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
627
547
|
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
628
548
|
command.params['metricName'] = metric_name unless metric_name.nil?
|
629
|
-
command.query['fields'] = fields unless fields.nil?
|
630
549
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
550
|
+
command.query['fields'] = fields unless fields.nil?
|
631
551
|
execute_or_queue_command(command, &block)
|
632
552
|
end
|
633
553
|
|
@@ -644,11 +564,11 @@ module Google
|
|
644
564
|
# Optional. The maximum number of results to return from this request. Non-
|
645
565
|
# positive values are ignored. The presence of nextPageToken in the response
|
646
566
|
# indicates that more results might be available.
|
647
|
-
# @param [String] fields
|
648
|
-
# Selector specifying which fields to include in a partial response.
|
649
567
|
# @param [String] quota_user
|
650
568
|
# Available to use for quota purposes for server-side applications. Can be any
|
651
569
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
570
|
+
# @param [String] fields
|
571
|
+
# Selector specifying which fields to include in a partial response.
|
652
572
|
# @param [Google::Apis::RequestOptions] options
|
653
573
|
# Request-specific options
|
654
574
|
#
|
@@ -661,15 +581,15 @@ module Google
|
|
661
581
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
662
582
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
663
583
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
664
|
-
def list_project_metrics(parent, page_token: nil, page_size: nil,
|
584
|
+
def list_project_metrics(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
665
585
|
command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options)
|
666
586
|
command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
|
667
587
|
command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
|
668
588
|
command.params['parent'] = parent unless parent.nil?
|
669
589
|
command.query['pageToken'] = page_token unless page_token.nil?
|
670
590
|
command.query['pageSize'] = page_size unless page_size.nil?
|
671
|
-
command.query['fields'] = fields unless fields.nil?
|
672
591
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
592
|
+
command.query['fields'] = fields unless fields.nil?
|
673
593
|
execute_or_queue_command(command, &block)
|
674
594
|
end
|
675
595
|
|
@@ -677,11 +597,11 @@ module Google
|
|
677
597
|
# @param [String] metric_name
|
678
598
|
# The resource name of the desired metric:
|
679
599
|
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
680
|
-
# @param [String] fields
|
681
|
-
# Selector specifying which fields to include in a partial response.
|
682
600
|
# @param [String] quota_user
|
683
601
|
# Available to use for quota purposes for server-side applications. Can be any
|
684
602
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
603
|
+
# @param [String] fields
|
604
|
+
# Selector specifying which fields to include in a partial response.
|
685
605
|
# @param [Google::Apis::RequestOptions] options
|
686
606
|
# Request-specific options
|
687
607
|
#
|
@@ -694,13 +614,13 @@ module Google
|
|
694
614
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
695
615
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
696
616
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
697
|
-
def get_project_metric(metric_name,
|
617
|
+
def get_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
|
698
618
|
command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
|
699
619
|
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
700
620
|
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
|
701
621
|
command.params['metricName'] = metric_name unless metric_name.nil?
|
702
|
-
command.query['fields'] = fields unless fields.nil?
|
703
622
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
623
|
+
command.query['fields'] = fields unless fields.nil?
|
704
624
|
execute_or_queue_command(command, &block)
|
705
625
|
end
|
706
626
|
|
@@ -712,11 +632,11 @@ module Google
|
|
712
632
|
# the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
|
713
633
|
# new metric is created.
|
714
634
|
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
|
715
|
-
# @param [String] fields
|
716
|
-
# Selector specifying which fields to include in a partial response.
|
717
635
|
# @param [String] quota_user
|
718
636
|
# Available to use for quota purposes for server-side applications. Can be any
|
719
637
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
638
|
+
# @param [String] fields
|
639
|
+
# Selector specifying which fields to include in a partial response.
|
720
640
|
# @param [Google::Apis::RequestOptions] options
|
721
641
|
# Request-specific options
|
722
642
|
#
|
@@ -729,15 +649,15 @@ module Google
|
|
729
649
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
730
650
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
731
651
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
732
|
-
def update_project_metric(metric_name, log_metric_object = nil,
|
652
|
+
def update_project_metric(metric_name, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
733
653
|
command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
|
734
654
|
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
735
655
|
command.request_object = log_metric_object
|
736
656
|
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
737
657
|
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
|
738
658
|
command.params['metricName'] = metric_name unless metric_name.nil?
|
739
|
-
command.query['fields'] = fields unless fields.nil?
|
740
659
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
660
|
+
command.query['fields'] = fields unless fields.nil?
|
741
661
|
execute_or_queue_command(command, &block)
|
742
662
|
end
|
743
663
|
|
@@ -747,11 +667,11 @@ module Google
|
|
747
667
|
# "projects/[PROJECT_ID]"
|
748
668
|
# The new metric must be provided in the request.
|
749
669
|
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
|
750
|
-
# @param [String] fields
|
751
|
-
# Selector specifying which fields to include in a partial response.
|
752
670
|
# @param [String] quota_user
|
753
671
|
# Available to use for quota purposes for server-side applications. Can be any
|
754
672
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
673
|
+
# @param [String] fields
|
674
|
+
# Selector specifying which fields to include in a partial response.
|
755
675
|
# @param [Google::Apis::RequestOptions] options
|
756
676
|
# Request-specific options
|
757
677
|
#
|
@@ -764,23 +684,103 @@ module Google
|
|
764
684
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
765
685
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
766
686
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
767
|
-
def create_project_metric(parent, log_metric_object = nil,
|
687
|
+
def create_project_metric(parent, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
768
688
|
command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
|
769
689
|
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
770
690
|
command.request_object = log_metric_object
|
771
691
|
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
772
692
|
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
|
773
693
|
command.params['parent'] = parent unless parent.nil?
|
694
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
695
|
+
command.query['fields'] = fields unless fields.nil?
|
696
|
+
execute_or_queue_command(command, &block)
|
697
|
+
end
|
698
|
+
|
699
|
+
# Deletes all the log entries in a log. The log reappears if it receives new
|
700
|
+
# entries.
|
701
|
+
# @param [String] log_name
|
702
|
+
# Required. The resource name of the log to delete:
|
703
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
704
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
705
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
706
|
+
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
707
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
708
|
+
# @param [String] quota_user
|
709
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
710
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
711
|
+
# @param [String] fields
|
712
|
+
# Selector specifying which fields to include in a partial response.
|
713
|
+
# @param [Google::Apis::RequestOptions] options
|
714
|
+
# Request-specific options
|
715
|
+
#
|
716
|
+
# @yield [result, err] Result & error if block supplied
|
717
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
|
718
|
+
# @yieldparam err [StandardError] error object if request failed
|
719
|
+
#
|
720
|
+
# @return [Google::Apis::LoggingV2beta1::Empty]
|
721
|
+
#
|
722
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
723
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
724
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
725
|
+
def delete_billing_account_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
|
726
|
+
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
727
|
+
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
728
|
+
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
729
|
+
command.params['logName'] = log_name unless log_name.nil?
|
730
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
774
731
|
command.query['fields'] = fields unless fields.nil?
|
732
|
+
execute_or_queue_command(command, &block)
|
733
|
+
end
|
734
|
+
|
735
|
+
# Lists the logs in projects or organizations. Only logs that have entries are
|
736
|
+
# listed.
|
737
|
+
# @param [String] parent
|
738
|
+
# Required. The resource name that owns the logs:
|
739
|
+
# "projects/[PROJECT_ID]"
|
740
|
+
# "organizations/[ORGANIZATION_ID]"
|
741
|
+
# @param [String] page_token
|
742
|
+
# Optional. If present, then retrieve the next batch of results from the
|
743
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
744
|
+
# from the previous response. The values of other method parameters should be
|
745
|
+
# identical to those in the previous call.
|
746
|
+
# @param [Fixnum] page_size
|
747
|
+
# Optional. The maximum number of results to return from this request. Non-
|
748
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
749
|
+
# indicates that more results might be available.
|
750
|
+
# @param [String] quota_user
|
751
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
752
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
753
|
+
# @param [String] fields
|
754
|
+
# Selector specifying which fields to include in a partial response.
|
755
|
+
# @param [Google::Apis::RequestOptions] options
|
756
|
+
# Request-specific options
|
757
|
+
#
|
758
|
+
# @yield [result, err] Result & error if block supplied
|
759
|
+
# @yieldparam result [Google::Apis::LoggingV2beta1::ListLogsResponse] parsed result object
|
760
|
+
# @yieldparam err [StandardError] error object if request failed
|
761
|
+
#
|
762
|
+
# @return [Google::Apis::LoggingV2beta1::ListLogsResponse]
|
763
|
+
#
|
764
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
765
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
766
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
767
|
+
def list_billing_account_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
768
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
|
769
|
+
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
|
770
|
+
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
|
771
|
+
command.params['parent'] = parent unless parent.nil?
|
772
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
773
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
775
774
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
775
|
+
command.query['fields'] = fields unless fields.nil?
|
776
776
|
execute_or_queue_command(command, &block)
|
777
777
|
end
|
778
778
|
|
779
779
|
protected
|
780
780
|
|
781
781
|
def apply_command_defaults(command)
|
782
|
-
command.query['key'] = key unless key.nil?
|
783
782
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
783
|
+
command.query['key'] = key unless key.nil?
|
784
784
|
end
|
785
785
|
end
|
786
786
|
end
|