google-api-client 0.13.4 → 0.13.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +43 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +4 -3
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +33 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +16 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +10 -1
- data/generated/google/apis/bigquery_v2/representations.rb +1 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +6 -253
- data/generated/google/apis/cloudkms_v1/representations.rb +1 -99
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +1 -1
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +12 -6
- data/generated/google/apis/cloudtrace_v2/representations.rb +2 -1
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +72 -15
- data/generated/google/apis/container_v1/representations.rb +7 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +58 -15
- data/generated/google/apis/container_v1beta1/representations.rb +5 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +16 -0
- data/generated/google/apis/content_v2/representations.rb +3 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +87 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +46 -0
- data/generated/google/apis/datastore_v1beta1.rb +38 -0
- data/generated/google/apis/datastore_v1beta1/classes.rb +567 -0
- data/generated/google/apis/datastore_v1beta1/representations.rb +191 -0
- data/generated/google/apis/datastore_v1beta1/service.rb +137 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +1 -1
- data/generated/google/apis/dlp_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/classes.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/service.rb +142 -7
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +6 -0
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v2/service.rb +6 -6
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +6 -0
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/drive_v3/service.rb +6 -6
- data/generated/google/apis/firebaseremoteconfig_v1.rb +32 -0
- data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +180 -0
- data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +87 -0
- data/generated/google/apis/firebaseremoteconfig_v1/service.rb +153 -0
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +444 -18
- data/generated/google/apis/logging_v2/representations.rb +119 -0
- data/generated/google/apis/logging_v2/service.rb +808 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +367 -18
- data/generated/google/apis/logging_v2beta1/representations.rb +88 -0
- data/generated/google/apis/logging_v2beta1/service.rb +4 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1 -254
- data/generated/google/apis/ml_v1/representations.rb +0 -99
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +213 -0
- data/generated/google/apis/monitoring_v3/representations.rb +61 -0
- data/generated/google/apis/monitoring_v3/service.rb +4 -4
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +37 -0
- data/generated/google/apis/people_v1/representations.rb +18 -0
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +4 -4
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +13 -3
- data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +10 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +1 -1
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +5 -3
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/service.rb +48 -0
- data/generated/google/apis/toolresults_v1beta3firstparty.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +48 -0
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +2 -2
- data/generated/google/apis/vault_v1/service.rb +2 -2
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +137 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +62 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +80 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +10 -2
|
@@ -22,12 +22,30 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module LoggingV2
|
|
24
24
|
|
|
25
|
+
class BucketOptions
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
|
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
+
end
|
|
30
|
+
|
|
25
31
|
class Empty
|
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
33
|
|
|
28
34
|
include Google::Apis::Core::JsonObjectSupport
|
|
29
35
|
end
|
|
30
36
|
|
|
37
|
+
class Explicit
|
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
+
|
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class Exponential
|
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
+
|
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
+
end
|
|
48
|
+
|
|
31
49
|
class HttpRequest
|
|
32
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
51
|
|
|
@@ -40,6 +58,18 @@ module Google
|
|
|
40
58
|
include Google::Apis::Core::JsonObjectSupport
|
|
41
59
|
end
|
|
42
60
|
|
|
61
|
+
class Linear
|
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
+
|
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
class ListExclusionsResponse
|
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
+
|
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
+
end
|
|
72
|
+
|
|
43
73
|
class ListLogEntriesRequest
|
|
44
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
75
|
|
|
@@ -94,6 +124,12 @@ module Google
|
|
|
94
124
|
include Google::Apis::Core::JsonObjectSupport
|
|
95
125
|
end
|
|
96
126
|
|
|
127
|
+
class LogExclusion
|
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
129
|
+
|
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
131
|
+
end
|
|
132
|
+
|
|
97
133
|
class LogLine
|
|
98
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
135
|
|
|
@@ -112,6 +148,12 @@ module Google
|
|
|
112
148
|
include Google::Apis::Core::JsonObjectSupport
|
|
113
149
|
end
|
|
114
150
|
|
|
151
|
+
class MetricDescriptor
|
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
153
|
+
|
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
155
|
+
end
|
|
156
|
+
|
|
115
157
|
class MonitoredResource
|
|
116
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
117
159
|
|
|
@@ -154,12 +196,40 @@ module Google
|
|
|
154
196
|
include Google::Apis::Core::JsonObjectSupport
|
|
155
197
|
end
|
|
156
198
|
|
|
199
|
+
class BucketOptions
|
|
200
|
+
# @private
|
|
201
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
202
|
+
property :explicit_buckets, as: 'explicitBuckets', class: Google::Apis::LoggingV2::Explicit, decorator: Google::Apis::LoggingV2::Explicit::Representation
|
|
203
|
+
|
|
204
|
+
property :exponential_buckets, as: 'exponentialBuckets', class: Google::Apis::LoggingV2::Exponential, decorator: Google::Apis::LoggingV2::Exponential::Representation
|
|
205
|
+
|
|
206
|
+
property :linear_buckets, as: 'linearBuckets', class: Google::Apis::LoggingV2::Linear, decorator: Google::Apis::LoggingV2::Linear::Representation
|
|
207
|
+
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
|
|
157
211
|
class Empty
|
|
158
212
|
# @private
|
|
159
213
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
160
214
|
end
|
|
161
215
|
end
|
|
162
216
|
|
|
217
|
+
class Explicit
|
|
218
|
+
# @private
|
|
219
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
220
|
+
collection :bounds, as: 'bounds'
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
class Exponential
|
|
225
|
+
# @private
|
|
226
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
227
|
+
property :growth_factor, as: 'growthFactor'
|
|
228
|
+
property :num_finite_buckets, as: 'numFiniteBuckets'
|
|
229
|
+
property :scale, as: 'scale'
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
|
|
163
233
|
class HttpRequest
|
|
164
234
|
# @private
|
|
165
235
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -190,6 +260,24 @@ module Google
|
|
|
190
260
|
end
|
|
191
261
|
end
|
|
192
262
|
|
|
263
|
+
class Linear
|
|
264
|
+
# @private
|
|
265
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
266
|
+
property :num_finite_buckets, as: 'numFiniteBuckets'
|
|
267
|
+
property :offset, as: 'offset'
|
|
268
|
+
property :width, as: 'width'
|
|
269
|
+
end
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
class ListExclusionsResponse
|
|
273
|
+
# @private
|
|
274
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
275
|
+
collection :exclusions, as: 'exclusions', class: Google::Apis::LoggingV2::LogExclusion, decorator: Google::Apis::LoggingV2::LogExclusion::Representation
|
|
276
|
+
|
|
277
|
+
property :next_page_token, as: 'nextPageToken'
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
|
|
193
281
|
class ListLogEntriesRequest
|
|
194
282
|
# @private
|
|
195
283
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -289,6 +377,16 @@ module Google
|
|
|
289
377
|
end
|
|
290
378
|
end
|
|
291
379
|
|
|
380
|
+
class LogExclusion
|
|
381
|
+
# @private
|
|
382
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
383
|
+
property :description, as: 'description'
|
|
384
|
+
property :disabled, as: 'disabled'
|
|
385
|
+
property :filter, as: 'filter'
|
|
386
|
+
property :name, as: 'name'
|
|
387
|
+
end
|
|
388
|
+
end
|
|
389
|
+
|
|
292
390
|
class LogLine
|
|
293
391
|
# @private
|
|
294
392
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -303,9 +401,15 @@ module Google
|
|
|
303
401
|
class LogMetric
|
|
304
402
|
# @private
|
|
305
403
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
404
|
+
property :bucket_options, as: 'bucketOptions', class: Google::Apis::LoggingV2::BucketOptions, decorator: Google::Apis::LoggingV2::BucketOptions::Representation
|
|
405
|
+
|
|
306
406
|
property :description, as: 'description'
|
|
307
407
|
property :filter, as: 'filter'
|
|
408
|
+
hash :label_extractors, as: 'labelExtractors'
|
|
409
|
+
property :metric_descriptor, as: 'metricDescriptor', class: Google::Apis::LoggingV2::MetricDescriptor, decorator: Google::Apis::LoggingV2::MetricDescriptor::Representation
|
|
410
|
+
|
|
308
411
|
property :name, as: 'name'
|
|
412
|
+
property :value_extractor, as: 'valueExtractor'
|
|
309
413
|
property :version, as: 'version'
|
|
310
414
|
end
|
|
311
415
|
end
|
|
@@ -324,6 +428,21 @@ module Google
|
|
|
324
428
|
end
|
|
325
429
|
end
|
|
326
430
|
|
|
431
|
+
class MetricDescriptor
|
|
432
|
+
# @private
|
|
433
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
434
|
+
property :description, as: 'description'
|
|
435
|
+
property :display_name, as: 'displayName'
|
|
436
|
+
collection :labels, as: 'labels', class: Google::Apis::LoggingV2::LabelDescriptor, decorator: Google::Apis::LoggingV2::LabelDescriptor::Representation
|
|
437
|
+
|
|
438
|
+
property :metric_kind, as: 'metricKind'
|
|
439
|
+
property :name, as: 'name'
|
|
440
|
+
property :type, as: 'type'
|
|
441
|
+
property :unit, as: 'unit'
|
|
442
|
+
property :value_type, as: 'valueType'
|
|
443
|
+
end
|
|
444
|
+
end
|
|
445
|
+
|
|
327
446
|
class MonitoredResource
|
|
328
447
|
# @private
|
|
329
448
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -47,6 +47,207 @@ module Google
|
|
|
47
47
|
@batch_path = 'batch'
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
# Creates a new exclusion in a specified parent resource. Only log entries
|
|
51
|
+
# belonging to that resource can be excluded. You can have up to 10 exclusions
|
|
52
|
+
# in a resource.
|
|
53
|
+
# @param [String] parent
|
|
54
|
+
# Required. The parent resource in which to create the exclusion:
|
|
55
|
+
# "projects/[PROJECT_ID]"
|
|
56
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
57
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
58
|
+
# "folders/[FOLDER_ID]"
|
|
59
|
+
# Examples: "projects/my-logging-project", "organizations/123456789".
|
|
60
|
+
# @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
|
|
61
|
+
# @param [String] fields
|
|
62
|
+
# Selector specifying which fields to include in a partial response.
|
|
63
|
+
# @param [String] quota_user
|
|
64
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
65
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
66
|
+
# @param [Google::Apis::RequestOptions] options
|
|
67
|
+
# Request-specific options
|
|
68
|
+
#
|
|
69
|
+
# @yield [result, err] Result & error if block supplied
|
|
70
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
|
|
71
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
72
|
+
#
|
|
73
|
+
# @return [Google::Apis::LoggingV2::LogExclusion]
|
|
74
|
+
#
|
|
75
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
76
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
77
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
78
|
+
def create_billing_account_exclusion(parent, log_exclusion_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
79
|
+
command = make_simple_command(:post, 'v2/{+parent}/exclusions', options)
|
|
80
|
+
command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
81
|
+
command.request_object = log_exclusion_object
|
|
82
|
+
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
83
|
+
command.response_class = Google::Apis::LoggingV2::LogExclusion
|
|
84
|
+
command.params['parent'] = parent unless parent.nil?
|
|
85
|
+
command.query['fields'] = fields unless fields.nil?
|
|
86
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
87
|
+
execute_or_queue_command(command, &block)
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Deletes an exclusion.
|
|
91
|
+
# @param [String] name
|
|
92
|
+
# Required. The resource name of an existing exclusion to delete:
|
|
93
|
+
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
|
|
94
|
+
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
|
|
95
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
|
|
96
|
+
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
|
|
97
|
+
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
|
|
98
|
+
# @param [String] fields
|
|
99
|
+
# Selector specifying which fields to include in a partial response.
|
|
100
|
+
# @param [String] quota_user
|
|
101
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
102
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
103
|
+
# @param [Google::Apis::RequestOptions] options
|
|
104
|
+
# Request-specific options
|
|
105
|
+
#
|
|
106
|
+
# @yield [result, err] Result & error if block supplied
|
|
107
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
108
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
109
|
+
#
|
|
110
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
111
|
+
#
|
|
112
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
113
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
114
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
115
|
+
def delete_billing_account_exclusion(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
116
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
117
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
118
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
119
|
+
command.params['name'] = name unless name.nil?
|
|
120
|
+
command.query['fields'] = fields unless fields.nil?
|
|
121
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
122
|
+
execute_or_queue_command(command, &block)
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Gets the description of an exclusion.
|
|
126
|
+
# @param [String] name
|
|
127
|
+
# Required. The resource name of an existing exclusion:
|
|
128
|
+
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
|
|
129
|
+
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
|
|
130
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
|
|
131
|
+
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
|
|
132
|
+
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
|
|
133
|
+
# @param [String] fields
|
|
134
|
+
# Selector specifying which fields to include in a partial response.
|
|
135
|
+
# @param [String] quota_user
|
|
136
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
137
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
138
|
+
# @param [Google::Apis::RequestOptions] options
|
|
139
|
+
# Request-specific options
|
|
140
|
+
#
|
|
141
|
+
# @yield [result, err] Result & error if block supplied
|
|
142
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
|
|
143
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
144
|
+
#
|
|
145
|
+
# @return [Google::Apis::LoggingV2::LogExclusion]
|
|
146
|
+
#
|
|
147
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
148
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
149
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
150
|
+
def get_billing_account_exclusion(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
151
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
152
|
+
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
153
|
+
command.response_class = Google::Apis::LoggingV2::LogExclusion
|
|
154
|
+
command.params['name'] = name unless name.nil?
|
|
155
|
+
command.query['fields'] = fields unless fields.nil?
|
|
156
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
157
|
+
execute_or_queue_command(command, &block)
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Lists all the exclusions in a parent resource.
|
|
161
|
+
# @param [String] parent
|
|
162
|
+
# Required. The parent resource whose exclusions are to be listed.
|
|
163
|
+
# "projects/[PROJECT_ID]"
|
|
164
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
165
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
166
|
+
# "folders/[FOLDER_ID]"
|
|
167
|
+
# @param [Fixnum] page_size
|
|
168
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
169
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
170
|
+
# indicates that more results might be available.
|
|
171
|
+
# @param [String] page_token
|
|
172
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
173
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
174
|
+
# from the previous response. The values of other method parameters should be
|
|
175
|
+
# identical to those in the previous call.
|
|
176
|
+
# @param [String] fields
|
|
177
|
+
# Selector specifying which fields to include in a partial response.
|
|
178
|
+
# @param [String] quota_user
|
|
179
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
180
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
181
|
+
# @param [Google::Apis::RequestOptions] options
|
|
182
|
+
# Request-specific options
|
|
183
|
+
#
|
|
184
|
+
# @yield [result, err] Result & error if block supplied
|
|
185
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListExclusionsResponse] parsed result object
|
|
186
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
187
|
+
#
|
|
188
|
+
# @return [Google::Apis::LoggingV2::ListExclusionsResponse]
|
|
189
|
+
#
|
|
190
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
191
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
192
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
193
|
+
def list_billing_account_exclusions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
194
|
+
command = make_simple_command(:get, 'v2/{+parent}/exclusions', options)
|
|
195
|
+
command.response_representation = Google::Apis::LoggingV2::ListExclusionsResponse::Representation
|
|
196
|
+
command.response_class = Google::Apis::LoggingV2::ListExclusionsResponse
|
|
197
|
+
command.params['parent'] = parent unless parent.nil?
|
|
198
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
199
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
200
|
+
command.query['fields'] = fields unless fields.nil?
|
|
201
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
202
|
+
execute_or_queue_command(command, &block)
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Changes one or more properties of an existing exclusion.
|
|
206
|
+
# @param [String] name
|
|
207
|
+
# Required. The resource name of the exclusion to update:
|
|
208
|
+
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
|
|
209
|
+
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
|
|
210
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
|
|
211
|
+
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
|
|
212
|
+
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
|
|
213
|
+
# @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
|
|
214
|
+
# @param [String] update_mask
|
|
215
|
+
# Required. A nonempty list of fields to change in the existing exclusion. New
|
|
216
|
+
# values for the fields are taken from the corresponding fields in the
|
|
217
|
+
# LogExclusion included in this request. Fields not mentioned in update_mask are
|
|
218
|
+
# not changed and are ignored in the request.For example, to change the filter
|
|
219
|
+
# and description of an exclusion, specify an update_mask of "filter,description"
|
|
220
|
+
# .
|
|
221
|
+
# @param [String] fields
|
|
222
|
+
# Selector specifying which fields to include in a partial response.
|
|
223
|
+
# @param [String] quota_user
|
|
224
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
225
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
226
|
+
# @param [Google::Apis::RequestOptions] options
|
|
227
|
+
# Request-specific options
|
|
228
|
+
#
|
|
229
|
+
# @yield [result, err] Result & error if block supplied
|
|
230
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
|
|
231
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
232
|
+
#
|
|
233
|
+
# @return [Google::Apis::LoggingV2::LogExclusion]
|
|
234
|
+
#
|
|
235
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
236
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
237
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
238
|
+
def patch_billing_account_exclusion(name, log_exclusion_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
239
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
240
|
+
command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
241
|
+
command.request_object = log_exclusion_object
|
|
242
|
+
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
243
|
+
command.response_class = Google::Apis::LoggingV2::LogExclusion
|
|
244
|
+
command.params['name'] = name unless name.nil?
|
|
245
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
246
|
+
command.query['fields'] = fields unless fields.nil?
|
|
247
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
248
|
+
execute_or_queue_command(command, &block)
|
|
249
|
+
end
|
|
250
|
+
|
|
50
251
|
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
51
252
|
# entries. Log entries written shortly before the delete operation might not be
|
|
52
253
|
# deleted.
|
|
@@ -439,7 +640,10 @@ module Google
|
|
|
439
640
|
execute_or_queue_command(command, &block)
|
|
440
641
|
end
|
|
441
642
|
|
|
442
|
-
#
|
|
643
|
+
# Log entry resourcesWrites log entries to Stackdriver Logging. This API method
|
|
644
|
+
# is the only way to send log entries to Stackdriver Logging. This method is
|
|
645
|
+
# used, directly or indirectly, by the Stackdriver Logging agent (fluentd) and
|
|
646
|
+
# all logging libraries configured to use Stackdriver Logging.
|
|
443
647
|
# @param [Google::Apis::LoggingV2::WriteLogEntriesRequest] write_log_entries_request_object
|
|
444
648
|
# @param [String] fields
|
|
445
649
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -469,6 +673,207 @@ module Google
|
|
|
469
673
|
execute_or_queue_command(command, &block)
|
|
470
674
|
end
|
|
471
675
|
|
|
676
|
+
# Creates a new exclusion in a specified parent resource. Only log entries
|
|
677
|
+
# belonging to that resource can be excluded. You can have up to 10 exclusions
|
|
678
|
+
# in a resource.
|
|
679
|
+
# @param [String] parent
|
|
680
|
+
# Required. The parent resource in which to create the exclusion:
|
|
681
|
+
# "projects/[PROJECT_ID]"
|
|
682
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
683
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
684
|
+
# "folders/[FOLDER_ID]"
|
|
685
|
+
# Examples: "projects/my-logging-project", "organizations/123456789".
|
|
686
|
+
# @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
|
|
687
|
+
# @param [String] fields
|
|
688
|
+
# Selector specifying which fields to include in a partial response.
|
|
689
|
+
# @param [String] quota_user
|
|
690
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
691
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
692
|
+
# @param [Google::Apis::RequestOptions] options
|
|
693
|
+
# Request-specific options
|
|
694
|
+
#
|
|
695
|
+
# @yield [result, err] Result & error if block supplied
|
|
696
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
|
|
697
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
698
|
+
#
|
|
699
|
+
# @return [Google::Apis::LoggingV2::LogExclusion]
|
|
700
|
+
#
|
|
701
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
702
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
703
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
704
|
+
def create_folder_exclusion(parent, log_exclusion_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
705
|
+
command = make_simple_command(:post, 'v2/{+parent}/exclusions', options)
|
|
706
|
+
command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
707
|
+
command.request_object = log_exclusion_object
|
|
708
|
+
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
709
|
+
command.response_class = Google::Apis::LoggingV2::LogExclusion
|
|
710
|
+
command.params['parent'] = parent unless parent.nil?
|
|
711
|
+
command.query['fields'] = fields unless fields.nil?
|
|
712
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
713
|
+
execute_or_queue_command(command, &block)
|
|
714
|
+
end
|
|
715
|
+
|
|
716
|
+
# Deletes an exclusion.
|
|
717
|
+
# @param [String] name
|
|
718
|
+
# Required. The resource name of an existing exclusion to delete:
|
|
719
|
+
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
|
|
720
|
+
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
|
|
721
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
|
|
722
|
+
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
|
|
723
|
+
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
|
|
724
|
+
# @param [String] fields
|
|
725
|
+
# Selector specifying which fields to include in a partial response.
|
|
726
|
+
# @param [String] quota_user
|
|
727
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
728
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
729
|
+
# @param [Google::Apis::RequestOptions] options
|
|
730
|
+
# Request-specific options
|
|
731
|
+
#
|
|
732
|
+
# @yield [result, err] Result & error if block supplied
|
|
733
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
734
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
735
|
+
#
|
|
736
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
737
|
+
#
|
|
738
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
739
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
740
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
741
|
+
def delete_folder_exclusion(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
742
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
743
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
744
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
745
|
+
command.params['name'] = name unless name.nil?
|
|
746
|
+
command.query['fields'] = fields unless fields.nil?
|
|
747
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
748
|
+
execute_or_queue_command(command, &block)
|
|
749
|
+
end
|
|
750
|
+
|
|
751
|
+
# Gets the description of an exclusion.
|
|
752
|
+
# @param [String] name
|
|
753
|
+
# Required. The resource name of an existing exclusion:
|
|
754
|
+
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
|
|
755
|
+
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
|
|
756
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
|
|
757
|
+
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
|
|
758
|
+
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
|
|
759
|
+
# @param [String] fields
|
|
760
|
+
# Selector specifying which fields to include in a partial response.
|
|
761
|
+
# @param [String] quota_user
|
|
762
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
763
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
764
|
+
# @param [Google::Apis::RequestOptions] options
|
|
765
|
+
# Request-specific options
|
|
766
|
+
#
|
|
767
|
+
# @yield [result, err] Result & error if block supplied
|
|
768
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
|
|
769
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
770
|
+
#
|
|
771
|
+
# @return [Google::Apis::LoggingV2::LogExclusion]
|
|
772
|
+
#
|
|
773
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
774
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
775
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
776
|
+
def get_folder_exclusion(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
777
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
778
|
+
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
779
|
+
command.response_class = Google::Apis::LoggingV2::LogExclusion
|
|
780
|
+
command.params['name'] = name unless name.nil?
|
|
781
|
+
command.query['fields'] = fields unless fields.nil?
|
|
782
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
783
|
+
execute_or_queue_command(command, &block)
|
|
784
|
+
end
|
|
785
|
+
|
|
786
|
+
# Lists all the exclusions in a parent resource.
|
|
787
|
+
# @param [String] parent
|
|
788
|
+
# Required. The parent resource whose exclusions are to be listed.
|
|
789
|
+
# "projects/[PROJECT_ID]"
|
|
790
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
791
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
792
|
+
# "folders/[FOLDER_ID]"
|
|
793
|
+
# @param [Fixnum] page_size
|
|
794
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
795
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
796
|
+
# indicates that more results might be available.
|
|
797
|
+
# @param [String] page_token
|
|
798
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
799
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
800
|
+
# from the previous response. The values of other method parameters should be
|
|
801
|
+
# identical to those in the previous call.
|
|
802
|
+
# @param [String] fields
|
|
803
|
+
# Selector specifying which fields to include in a partial response.
|
|
804
|
+
# @param [String] quota_user
|
|
805
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
806
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
807
|
+
# @param [Google::Apis::RequestOptions] options
|
|
808
|
+
# Request-specific options
|
|
809
|
+
#
|
|
810
|
+
# @yield [result, err] Result & error if block supplied
|
|
811
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListExclusionsResponse] parsed result object
|
|
812
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
813
|
+
#
|
|
814
|
+
# @return [Google::Apis::LoggingV2::ListExclusionsResponse]
|
|
815
|
+
#
|
|
816
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
817
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
818
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
819
|
+
def list_folder_exclusions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
820
|
+
command = make_simple_command(:get, 'v2/{+parent}/exclusions', options)
|
|
821
|
+
command.response_representation = Google::Apis::LoggingV2::ListExclusionsResponse::Representation
|
|
822
|
+
command.response_class = Google::Apis::LoggingV2::ListExclusionsResponse
|
|
823
|
+
command.params['parent'] = parent unless parent.nil?
|
|
824
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
825
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
826
|
+
command.query['fields'] = fields unless fields.nil?
|
|
827
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
828
|
+
execute_or_queue_command(command, &block)
|
|
829
|
+
end
|
|
830
|
+
|
|
831
|
+
# Changes one or more properties of an existing exclusion.
|
|
832
|
+
# @param [String] name
|
|
833
|
+
# Required. The resource name of the exclusion to update:
|
|
834
|
+
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
|
|
835
|
+
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
|
|
836
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
|
|
837
|
+
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
|
|
838
|
+
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
|
|
839
|
+
# @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
|
|
840
|
+
# @param [String] update_mask
|
|
841
|
+
# Required. A nonempty list of fields to change in the existing exclusion. New
|
|
842
|
+
# values for the fields are taken from the corresponding fields in the
|
|
843
|
+
# LogExclusion included in this request. Fields not mentioned in update_mask are
|
|
844
|
+
# not changed and are ignored in the request.For example, to change the filter
|
|
845
|
+
# and description of an exclusion, specify an update_mask of "filter,description"
|
|
846
|
+
# .
|
|
847
|
+
# @param [String] fields
|
|
848
|
+
# Selector specifying which fields to include in a partial response.
|
|
849
|
+
# @param [String] quota_user
|
|
850
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
851
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
852
|
+
# @param [Google::Apis::RequestOptions] options
|
|
853
|
+
# Request-specific options
|
|
854
|
+
#
|
|
855
|
+
# @yield [result, err] Result & error if block supplied
|
|
856
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
|
|
857
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
858
|
+
#
|
|
859
|
+
# @return [Google::Apis::LoggingV2::LogExclusion]
|
|
860
|
+
#
|
|
861
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
862
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
863
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
864
|
+
def patch_folder_exclusion(name, log_exclusion_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
865
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
866
|
+
command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
867
|
+
command.request_object = log_exclusion_object
|
|
868
|
+
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
869
|
+
command.response_class = Google::Apis::LoggingV2::LogExclusion
|
|
870
|
+
command.params['name'] = name unless name.nil?
|
|
871
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
872
|
+
command.query['fields'] = fields unless fields.nil?
|
|
873
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
874
|
+
execute_or_queue_command(command, &block)
|
|
875
|
+
end
|
|
876
|
+
|
|
472
877
|
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
473
878
|
# entries. Log entries written shortly before the delete operation might not be
|
|
474
879
|
# deleted.
|
|
@@ -868,6 +1273,207 @@ module Google
|
|
|
868
1273
|
execute_or_queue_command(command, &block)
|
|
869
1274
|
end
|
|
870
1275
|
|
|
1276
|
+
# Creates a new exclusion in a specified parent resource. Only log entries
|
|
1277
|
+
# belonging to that resource can be excluded. You can have up to 10 exclusions
|
|
1278
|
+
# in a resource.
|
|
1279
|
+
# @param [String] parent
|
|
1280
|
+
# Required. The parent resource in which to create the exclusion:
|
|
1281
|
+
# "projects/[PROJECT_ID]"
|
|
1282
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
1283
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
1284
|
+
# "folders/[FOLDER_ID]"
|
|
1285
|
+
# Examples: "projects/my-logging-project", "organizations/123456789".
|
|
1286
|
+
# @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
|
|
1287
|
+
# @param [String] fields
|
|
1288
|
+
# Selector specifying which fields to include in a partial response.
|
|
1289
|
+
# @param [String] quota_user
|
|
1290
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1291
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1292
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1293
|
+
# Request-specific options
|
|
1294
|
+
#
|
|
1295
|
+
# @yield [result, err] Result & error if block supplied
|
|
1296
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
|
|
1297
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1298
|
+
#
|
|
1299
|
+
# @return [Google::Apis::LoggingV2::LogExclusion]
|
|
1300
|
+
#
|
|
1301
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1302
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1303
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1304
|
+
def create_organization_exclusion(parent, log_exclusion_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1305
|
+
command = make_simple_command(:post, 'v2/{+parent}/exclusions', options)
|
|
1306
|
+
command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
1307
|
+
command.request_object = log_exclusion_object
|
|
1308
|
+
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
1309
|
+
command.response_class = Google::Apis::LoggingV2::LogExclusion
|
|
1310
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1311
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1312
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1313
|
+
execute_or_queue_command(command, &block)
|
|
1314
|
+
end
|
|
1315
|
+
|
|
1316
|
+
# Deletes an exclusion.
|
|
1317
|
+
# @param [String] name
|
|
1318
|
+
# Required. The resource name of an existing exclusion to delete:
|
|
1319
|
+
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
|
|
1320
|
+
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
|
|
1321
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
|
|
1322
|
+
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
|
|
1323
|
+
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
|
|
1324
|
+
# @param [String] fields
|
|
1325
|
+
# Selector specifying which fields to include in a partial response.
|
|
1326
|
+
# @param [String] quota_user
|
|
1327
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1328
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1329
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1330
|
+
# Request-specific options
|
|
1331
|
+
#
|
|
1332
|
+
# @yield [result, err] Result & error if block supplied
|
|
1333
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
1334
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1335
|
+
#
|
|
1336
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
1337
|
+
#
|
|
1338
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1339
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1340
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1341
|
+
def delete_organization_exclusion(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1342
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
1343
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
1344
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
1345
|
+
command.params['name'] = name unless name.nil?
|
|
1346
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1347
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1348
|
+
execute_or_queue_command(command, &block)
|
|
1349
|
+
end
|
|
1350
|
+
|
|
1351
|
+
# Gets the description of an exclusion.
|
|
1352
|
+
# @param [String] name
|
|
1353
|
+
# Required. The resource name of an existing exclusion:
|
|
1354
|
+
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
|
|
1355
|
+
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
|
|
1356
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
|
|
1357
|
+
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
|
|
1358
|
+
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
|
|
1359
|
+
# @param [String] fields
|
|
1360
|
+
# Selector specifying which fields to include in a partial response.
|
|
1361
|
+
# @param [String] quota_user
|
|
1362
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1363
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1364
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1365
|
+
# Request-specific options
|
|
1366
|
+
#
|
|
1367
|
+
# @yield [result, err] Result & error if block supplied
|
|
1368
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
|
|
1369
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1370
|
+
#
|
|
1371
|
+
# @return [Google::Apis::LoggingV2::LogExclusion]
|
|
1372
|
+
#
|
|
1373
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1374
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1375
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1376
|
+
def get_organization_exclusion(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1377
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
1378
|
+
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
1379
|
+
command.response_class = Google::Apis::LoggingV2::LogExclusion
|
|
1380
|
+
command.params['name'] = name unless name.nil?
|
|
1381
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1382
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1383
|
+
execute_or_queue_command(command, &block)
|
|
1384
|
+
end
|
|
1385
|
+
|
|
1386
|
+
# Lists all the exclusions in a parent resource.
|
|
1387
|
+
# @param [String] parent
|
|
1388
|
+
# Required. The parent resource whose exclusions are to be listed.
|
|
1389
|
+
# "projects/[PROJECT_ID]"
|
|
1390
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
1391
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
1392
|
+
# "folders/[FOLDER_ID]"
|
|
1393
|
+
# @param [Fixnum] page_size
|
|
1394
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
1395
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
1396
|
+
# indicates that more results might be available.
|
|
1397
|
+
# @param [String] page_token
|
|
1398
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
1399
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
1400
|
+
# from the previous response. The values of other method parameters should be
|
|
1401
|
+
# identical to those in the previous call.
|
|
1402
|
+
# @param [String] fields
|
|
1403
|
+
# Selector specifying which fields to include in a partial response.
|
|
1404
|
+
# @param [String] quota_user
|
|
1405
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1406
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1407
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1408
|
+
# Request-specific options
|
|
1409
|
+
#
|
|
1410
|
+
# @yield [result, err] Result & error if block supplied
|
|
1411
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListExclusionsResponse] parsed result object
|
|
1412
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1413
|
+
#
|
|
1414
|
+
# @return [Google::Apis::LoggingV2::ListExclusionsResponse]
|
|
1415
|
+
#
|
|
1416
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1417
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1418
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1419
|
+
def list_organization_exclusions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1420
|
+
command = make_simple_command(:get, 'v2/{+parent}/exclusions', options)
|
|
1421
|
+
command.response_representation = Google::Apis::LoggingV2::ListExclusionsResponse::Representation
|
|
1422
|
+
command.response_class = Google::Apis::LoggingV2::ListExclusionsResponse
|
|
1423
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1424
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1425
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1426
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1427
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1428
|
+
execute_or_queue_command(command, &block)
|
|
1429
|
+
end
|
|
1430
|
+
|
|
1431
|
+
# Changes one or more properties of an existing exclusion.
|
|
1432
|
+
# @param [String] name
|
|
1433
|
+
# Required. The resource name of the exclusion to update:
|
|
1434
|
+
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
|
|
1435
|
+
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
|
|
1436
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
|
|
1437
|
+
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
|
|
1438
|
+
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
|
|
1439
|
+
# @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
|
|
1440
|
+
# @param [String] update_mask
|
|
1441
|
+
# Required. A nonempty list of fields to change in the existing exclusion. New
|
|
1442
|
+
# values for the fields are taken from the corresponding fields in the
|
|
1443
|
+
# LogExclusion included in this request. Fields not mentioned in update_mask are
|
|
1444
|
+
# not changed and are ignored in the request.For example, to change the filter
|
|
1445
|
+
# and description of an exclusion, specify an update_mask of "filter,description"
|
|
1446
|
+
# .
|
|
1447
|
+
# @param [String] fields
|
|
1448
|
+
# Selector specifying which fields to include in a partial response.
|
|
1449
|
+
# @param [String] quota_user
|
|
1450
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1451
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1452
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1453
|
+
# Request-specific options
|
|
1454
|
+
#
|
|
1455
|
+
# @yield [result, err] Result & error if block supplied
|
|
1456
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
|
|
1457
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1458
|
+
#
|
|
1459
|
+
# @return [Google::Apis::LoggingV2::LogExclusion]
|
|
1460
|
+
#
|
|
1461
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1462
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1463
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1464
|
+
def patch_organization_exclusion(name, log_exclusion_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1465
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
1466
|
+
command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
1467
|
+
command.request_object = log_exclusion_object
|
|
1468
|
+
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
1469
|
+
command.response_class = Google::Apis::LoggingV2::LogExclusion
|
|
1470
|
+
command.params['name'] = name unless name.nil?
|
|
1471
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
1472
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1473
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1474
|
+
execute_or_queue_command(command, &block)
|
|
1475
|
+
end
|
|
1476
|
+
|
|
871
1477
|
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
872
1478
|
# entries. Log entries written shortly before the delete operation might not be
|
|
873
1479
|
# deleted.
|
|
@@ -1229,6 +1835,207 @@ module Google
|
|
|
1229
1835
|
execute_or_queue_command(command, &block)
|
|
1230
1836
|
end
|
|
1231
1837
|
|
|
1838
|
+
# Creates a new exclusion in a specified parent resource. Only log entries
|
|
1839
|
+
# belonging to that resource can be excluded. You can have up to 10 exclusions
|
|
1840
|
+
# in a resource.
|
|
1841
|
+
# @param [String] parent
|
|
1842
|
+
# Required. The parent resource in which to create the exclusion:
|
|
1843
|
+
# "projects/[PROJECT_ID]"
|
|
1844
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
1845
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
1846
|
+
# "folders/[FOLDER_ID]"
|
|
1847
|
+
# Examples: "projects/my-logging-project", "organizations/123456789".
|
|
1848
|
+
# @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
|
|
1849
|
+
# @param [String] fields
|
|
1850
|
+
# Selector specifying which fields to include in a partial response.
|
|
1851
|
+
# @param [String] quota_user
|
|
1852
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1853
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1854
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1855
|
+
# Request-specific options
|
|
1856
|
+
#
|
|
1857
|
+
# @yield [result, err] Result & error if block supplied
|
|
1858
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
|
|
1859
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1860
|
+
#
|
|
1861
|
+
# @return [Google::Apis::LoggingV2::LogExclusion]
|
|
1862
|
+
#
|
|
1863
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1864
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1865
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1866
|
+
def create_project_exclusion(parent, log_exclusion_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1867
|
+
command = make_simple_command(:post, 'v2/{+parent}/exclusions', options)
|
|
1868
|
+
command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
1869
|
+
command.request_object = log_exclusion_object
|
|
1870
|
+
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
1871
|
+
command.response_class = Google::Apis::LoggingV2::LogExclusion
|
|
1872
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1873
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1874
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1875
|
+
execute_or_queue_command(command, &block)
|
|
1876
|
+
end
|
|
1877
|
+
|
|
1878
|
+
# Deletes an exclusion.
|
|
1879
|
+
# @param [String] name
|
|
1880
|
+
# Required. The resource name of an existing exclusion to delete:
|
|
1881
|
+
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
|
|
1882
|
+
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
|
|
1883
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
|
|
1884
|
+
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
|
|
1885
|
+
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
|
|
1886
|
+
# @param [String] fields
|
|
1887
|
+
# Selector specifying which fields to include in a partial response.
|
|
1888
|
+
# @param [String] quota_user
|
|
1889
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1890
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1891
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1892
|
+
# Request-specific options
|
|
1893
|
+
#
|
|
1894
|
+
# @yield [result, err] Result & error if block supplied
|
|
1895
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
1896
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1897
|
+
#
|
|
1898
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
1899
|
+
#
|
|
1900
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1901
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1902
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1903
|
+
def delete_project_exclusion(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1904
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
1905
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
1906
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
1907
|
+
command.params['name'] = name unless name.nil?
|
|
1908
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1909
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1910
|
+
execute_or_queue_command(command, &block)
|
|
1911
|
+
end
|
|
1912
|
+
|
|
1913
|
+
# Gets the description of an exclusion.
|
|
1914
|
+
# @param [String] name
|
|
1915
|
+
# Required. The resource name of an existing exclusion:
|
|
1916
|
+
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
|
|
1917
|
+
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
|
|
1918
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
|
|
1919
|
+
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
|
|
1920
|
+
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
|
|
1921
|
+
# @param [String] fields
|
|
1922
|
+
# Selector specifying which fields to include in a partial response.
|
|
1923
|
+
# @param [String] quota_user
|
|
1924
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1925
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1926
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1927
|
+
# Request-specific options
|
|
1928
|
+
#
|
|
1929
|
+
# @yield [result, err] Result & error if block supplied
|
|
1930
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
|
|
1931
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1932
|
+
#
|
|
1933
|
+
# @return [Google::Apis::LoggingV2::LogExclusion]
|
|
1934
|
+
#
|
|
1935
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1936
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1937
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1938
|
+
def get_project_exclusion(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1939
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
1940
|
+
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
1941
|
+
command.response_class = Google::Apis::LoggingV2::LogExclusion
|
|
1942
|
+
command.params['name'] = name unless name.nil?
|
|
1943
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1944
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1945
|
+
execute_or_queue_command(command, &block)
|
|
1946
|
+
end
|
|
1947
|
+
|
|
1948
|
+
# Lists all the exclusions in a parent resource.
|
|
1949
|
+
# @param [String] parent
|
|
1950
|
+
# Required. The parent resource whose exclusions are to be listed.
|
|
1951
|
+
# "projects/[PROJECT_ID]"
|
|
1952
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
1953
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
1954
|
+
# "folders/[FOLDER_ID]"
|
|
1955
|
+
# @param [Fixnum] page_size
|
|
1956
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
1957
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
1958
|
+
# indicates that more results might be available.
|
|
1959
|
+
# @param [String] page_token
|
|
1960
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
1961
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
1962
|
+
# from the previous response. The values of other method parameters should be
|
|
1963
|
+
# identical to those in the previous call.
|
|
1964
|
+
# @param [String] fields
|
|
1965
|
+
# Selector specifying which fields to include in a partial response.
|
|
1966
|
+
# @param [String] quota_user
|
|
1967
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1968
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1969
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1970
|
+
# Request-specific options
|
|
1971
|
+
#
|
|
1972
|
+
# @yield [result, err] Result & error if block supplied
|
|
1973
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListExclusionsResponse] parsed result object
|
|
1974
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1975
|
+
#
|
|
1976
|
+
# @return [Google::Apis::LoggingV2::ListExclusionsResponse]
|
|
1977
|
+
#
|
|
1978
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1979
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1980
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1981
|
+
def list_project_exclusions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1982
|
+
command = make_simple_command(:get, 'v2/{+parent}/exclusions', options)
|
|
1983
|
+
command.response_representation = Google::Apis::LoggingV2::ListExclusionsResponse::Representation
|
|
1984
|
+
command.response_class = Google::Apis::LoggingV2::ListExclusionsResponse
|
|
1985
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1986
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1987
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1988
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1989
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1990
|
+
execute_or_queue_command(command, &block)
|
|
1991
|
+
end
|
|
1992
|
+
|
|
1993
|
+
# Changes one or more properties of an existing exclusion.
|
|
1994
|
+
# @param [String] name
|
|
1995
|
+
# Required. The resource name of the exclusion to update:
|
|
1996
|
+
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
|
|
1997
|
+
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
|
|
1998
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
|
|
1999
|
+
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
|
|
2000
|
+
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
|
|
2001
|
+
# @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
|
|
2002
|
+
# @param [String] update_mask
|
|
2003
|
+
# Required. A nonempty list of fields to change in the existing exclusion. New
|
|
2004
|
+
# values for the fields are taken from the corresponding fields in the
|
|
2005
|
+
# LogExclusion included in this request. Fields not mentioned in update_mask are
|
|
2006
|
+
# not changed and are ignored in the request.For example, to change the filter
|
|
2007
|
+
# and description of an exclusion, specify an update_mask of "filter,description"
|
|
2008
|
+
# .
|
|
2009
|
+
# @param [String] fields
|
|
2010
|
+
# Selector specifying which fields to include in a partial response.
|
|
2011
|
+
# @param [String] quota_user
|
|
2012
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2013
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2014
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2015
|
+
# Request-specific options
|
|
2016
|
+
#
|
|
2017
|
+
# @yield [result, err] Result & error if block supplied
|
|
2018
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
|
|
2019
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2020
|
+
#
|
|
2021
|
+
# @return [Google::Apis::LoggingV2::LogExclusion]
|
|
2022
|
+
#
|
|
2023
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2024
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2025
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2026
|
+
def patch_project_exclusion(name, log_exclusion_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2027
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
2028
|
+
command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
2029
|
+
command.request_object = log_exclusion_object
|
|
2030
|
+
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
|
2031
|
+
command.response_class = Google::Apis::LoggingV2::LogExclusion
|
|
2032
|
+
command.params['name'] = name unless name.nil?
|
|
2033
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
2034
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2035
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2036
|
+
execute_or_queue_command(command, &block)
|
|
2037
|
+
end
|
|
2038
|
+
|
|
1232
2039
|
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
1233
2040
|
# entries. Log entries written shortly before the delete operation might not be
|
|
1234
2041
|
# deleted.
|