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