google-apis-logging_v2 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55b199883db01d70157f8f5bd0ddc7534861bea400787bdb8544be01afdb4b9b
|
4
|
+
data.tar.gz: 849a86e953170a461e4ddaa9da1c71bdb88840da75f089968d1fd4f7c6357370
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8df843efa8f63d75a76d2720c801d9f469f52395abb963874d5c5b3a39cc01a985bd637f7e1131068a2d6073b2f5bcf42794a7eea1a4286bc9f7ea110ca025f
|
7
|
+
data.tar.gz: 0d1faab5cfd6c2edf1e67983176d2978890c14f03f4fe640af6ae562c755fd4ad93344b45b5185538f9c456608cae4eb8bd44517a4a49ad669b0d2d5d16d7c85
|
data/CHANGELOG.md
CHANGED
@@ -115,6 +115,19 @@ module Google
|
|
115
115
|
end
|
116
116
|
end
|
117
117
|
|
118
|
+
# The request message for Operations.CancelOperation.
|
119
|
+
class CancelOperationRequest
|
120
|
+
include Google::Apis::Core::Hashable
|
121
|
+
|
122
|
+
def initialize(**args)
|
123
|
+
update!(**args)
|
124
|
+
end
|
125
|
+
|
126
|
+
# Update properties of this object
|
127
|
+
def update!(**args)
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
118
131
|
# Describes the customer-managed encryption key (CMEK) settings associated with
|
119
132
|
# a project, folder, organization, billing account, or flexible resource.Note:
|
120
133
|
# CMEK for the Logs Router can currently only be configured for GCP
|
@@ -170,6 +183,117 @@ module Google
|
|
170
183
|
end
|
171
184
|
end
|
172
185
|
|
186
|
+
# Metadata for CopyLogEntries long running operations.
|
187
|
+
class CopyLogEntriesMetadata
|
188
|
+
include Google::Apis::Core::Hashable
|
189
|
+
|
190
|
+
# Identifies whether the user has requested cancellation of the operation.
|
191
|
+
# Corresponds to the JSON property `cancellationRequested`
|
192
|
+
# @return [Boolean]
|
193
|
+
attr_accessor :cancellation_requested
|
194
|
+
alias_method :cancellation_requested?, :cancellation_requested
|
195
|
+
|
196
|
+
# The end time of an operation.
|
197
|
+
# Corresponds to the JSON property `endTime`
|
198
|
+
# @return [String]
|
199
|
+
attr_accessor :end_time
|
200
|
+
|
201
|
+
# Estimated progress of the operation (0 - 100%).
|
202
|
+
# Corresponds to the JSON property `progress`
|
203
|
+
# @return [Fixnum]
|
204
|
+
attr_accessor :progress
|
205
|
+
|
206
|
+
# The parameters to CopyLogEntries.
|
207
|
+
# Corresponds to the JSON property `request`
|
208
|
+
# @return [Google::Apis::LoggingV2::CopyLogEntriesRequest]
|
209
|
+
attr_accessor :request
|
210
|
+
|
211
|
+
# The create time of an operation.
|
212
|
+
# Corresponds to the JSON property `startTime`
|
213
|
+
# @return [String]
|
214
|
+
attr_accessor :start_time
|
215
|
+
|
216
|
+
# State of an operation.
|
217
|
+
# Corresponds to the JSON property `state`
|
218
|
+
# @return [String]
|
219
|
+
attr_accessor :state
|
220
|
+
|
221
|
+
# The IAM identity of a service account that must be granted access to the
|
222
|
+
# destination. If the service account is not granted permission to the
|
223
|
+
# destination within an hour, the operation will be cancelled. Example: "
|
224
|
+
# serviceAccount:foo@bar.com"
|
225
|
+
# Corresponds to the JSON property `writerIdentity`
|
226
|
+
# @return [String]
|
227
|
+
attr_accessor :writer_identity
|
228
|
+
|
229
|
+
def initialize(**args)
|
230
|
+
update!(**args)
|
231
|
+
end
|
232
|
+
|
233
|
+
# Update properties of this object
|
234
|
+
def update!(**args)
|
235
|
+
@cancellation_requested = args[:cancellation_requested] if args.key?(:cancellation_requested)
|
236
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
237
|
+
@progress = args[:progress] if args.key?(:progress)
|
238
|
+
@request = args[:request] if args.key?(:request)
|
239
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
240
|
+
@state = args[:state] if args.key?(:state)
|
241
|
+
@writer_identity = args[:writer_identity] if args.key?(:writer_identity)
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
# The parameters to CopyLogEntries.
|
246
|
+
class CopyLogEntriesRequest
|
247
|
+
include Google::Apis::Core::Hashable
|
248
|
+
|
249
|
+
# Required. Destination to which to copy logs.
|
250
|
+
# Corresponds to the JSON property `destination`
|
251
|
+
# @return [String]
|
252
|
+
attr_accessor :destination
|
253
|
+
|
254
|
+
# Optional. A filter specifying which log entries to copy. The filter must be no
|
255
|
+
# more than 20k characters. An empty filter matches all log entries.
|
256
|
+
# Corresponds to the JSON property `filter`
|
257
|
+
# @return [String]
|
258
|
+
attr_accessor :filter
|
259
|
+
|
260
|
+
# Required. Bucket from which to copy logs. e.g. "projects/my-project/locations/
|
261
|
+
# my-location/buckets/my-source-bucket
|
262
|
+
# Corresponds to the JSON property `name`
|
263
|
+
# @return [String]
|
264
|
+
attr_accessor :name
|
265
|
+
|
266
|
+
def initialize(**args)
|
267
|
+
update!(**args)
|
268
|
+
end
|
269
|
+
|
270
|
+
# Update properties of this object
|
271
|
+
def update!(**args)
|
272
|
+
@destination = args[:destination] if args.key?(:destination)
|
273
|
+
@filter = args[:filter] if args.key?(:filter)
|
274
|
+
@name = args[:name] if args.key?(:name)
|
275
|
+
end
|
276
|
+
end
|
277
|
+
|
278
|
+
# Response type for CopyLogEntries long running operations.
|
279
|
+
class CopyLogEntriesResponse
|
280
|
+
include Google::Apis::Core::Hashable
|
281
|
+
|
282
|
+
# Number of log entries copied.
|
283
|
+
# Corresponds to the JSON property `logEntriesCopiedCount`
|
284
|
+
# @return [Fixnum]
|
285
|
+
attr_accessor :log_entries_copied_count
|
286
|
+
|
287
|
+
def initialize(**args)
|
288
|
+
update!(**args)
|
289
|
+
end
|
290
|
+
|
291
|
+
# Update properties of this object
|
292
|
+
def update!(**args)
|
293
|
+
@log_entries_copied_count = args[:log_entries_copied_count] if args.key?(:log_entries_copied_count)
|
294
|
+
end
|
295
|
+
end
|
296
|
+
|
173
297
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
174
298
|
# messages in your APIs. A typical example is to use it as the request or the
|
175
299
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -704,6 +828,31 @@ module Google
|
|
704
828
|
end
|
705
829
|
end
|
706
830
|
|
831
|
+
# The response message for Operations.ListOperations.
|
832
|
+
class ListOperationsResponse
|
833
|
+
include Google::Apis::Core::Hashable
|
834
|
+
|
835
|
+
# The standard List next-page token.
|
836
|
+
# Corresponds to the JSON property `nextPageToken`
|
837
|
+
# @return [String]
|
838
|
+
attr_accessor :next_page_token
|
839
|
+
|
840
|
+
# A list of operations that matches the specified filter in the request.
|
841
|
+
# Corresponds to the JSON property `operations`
|
842
|
+
# @return [Array<Google::Apis::LoggingV2::Operation>]
|
843
|
+
attr_accessor :operations
|
844
|
+
|
845
|
+
def initialize(**args)
|
846
|
+
update!(**args)
|
847
|
+
end
|
848
|
+
|
849
|
+
# Update properties of this object
|
850
|
+
def update!(**args)
|
851
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
852
|
+
@operations = args[:operations] if args.key?(:operations)
|
853
|
+
end
|
854
|
+
end
|
855
|
+
|
707
856
|
# Result returned from ListSinks.
|
708
857
|
class ListSinksResponse
|
709
858
|
include Google::Apis::Core::Hashable
|
@@ -1874,6 +2023,68 @@ module Google
|
|
1874
2023
|
end
|
1875
2024
|
end
|
1876
2025
|
|
2026
|
+
# This resource represents a long-running operation that is the result of a
|
2027
|
+
# network API call.
|
2028
|
+
class Operation
|
2029
|
+
include Google::Apis::Core::Hashable
|
2030
|
+
|
2031
|
+
# If the value is false, it means the operation is still in progress. If true,
|
2032
|
+
# the operation is completed, and either error or response is available.
|
2033
|
+
# Corresponds to the JSON property `done`
|
2034
|
+
# @return [Boolean]
|
2035
|
+
attr_accessor :done
|
2036
|
+
alias_method :done?, :done
|
2037
|
+
|
2038
|
+
# The Status type defines a logical error model that is suitable for different
|
2039
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
2040
|
+
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
2041
|
+
# error code, error message, and error details.You can find out more about this
|
2042
|
+
# error model and how to work with it in the API Design Guide (https://cloud.
|
2043
|
+
# google.com/apis/design/errors).
|
2044
|
+
# Corresponds to the JSON property `error`
|
2045
|
+
# @return [Google::Apis::LoggingV2::Status]
|
2046
|
+
attr_accessor :error
|
2047
|
+
|
2048
|
+
# Service-specific metadata associated with the operation. It typically contains
|
2049
|
+
# progress information and common metadata such as create time. Some services
|
2050
|
+
# might not provide such metadata. Any method that returns a long-running
|
2051
|
+
# operation should document the metadata type, if any.
|
2052
|
+
# Corresponds to the JSON property `metadata`
|
2053
|
+
# @return [Hash<String,Object>]
|
2054
|
+
attr_accessor :metadata
|
2055
|
+
|
2056
|
+
# The server-assigned name, which is only unique within the same service that
|
2057
|
+
# originally returns it. If you use the default HTTP mapping, the name should be
|
2058
|
+
# a resource name ending with operations/`unique_id`.
|
2059
|
+
# Corresponds to the JSON property `name`
|
2060
|
+
# @return [String]
|
2061
|
+
attr_accessor :name
|
2062
|
+
|
2063
|
+
# The normal response of the operation in case of success. If the original
|
2064
|
+
# method returns no data on success, such as Delete, the response is google.
|
2065
|
+
# protobuf.Empty. If the original method is standard Get/Create/Update, the
|
2066
|
+
# response should be the resource. For other methods, the response should have
|
2067
|
+
# the type XxxResponse, where Xxx is the original method name. For example, if
|
2068
|
+
# the original method name is TakeSnapshot(), the inferred response type is
|
2069
|
+
# TakeSnapshotResponse.
|
2070
|
+
# Corresponds to the JSON property `response`
|
2071
|
+
# @return [Hash<String,Object>]
|
2072
|
+
attr_accessor :response
|
2073
|
+
|
2074
|
+
def initialize(**args)
|
2075
|
+
update!(**args)
|
2076
|
+
end
|
2077
|
+
|
2078
|
+
# Update properties of this object
|
2079
|
+
def update!(**args)
|
2080
|
+
@done = args[:done] if args.key?(:done)
|
2081
|
+
@error = args[:error] if args.key?(:error)
|
2082
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
2083
|
+
@name = args[:name] if args.key?(:name)
|
2084
|
+
@response = args[:response] if args.key?(:response)
|
2085
|
+
end
|
2086
|
+
end
|
2087
|
+
|
1877
2088
|
# Complete log information about a single HTTP request to an App Engine
|
1878
2089
|
# application.
|
1879
2090
|
class RequestLog
|
@@ -2169,6 +2380,45 @@ module Google
|
|
2169
2380
|
end
|
2170
2381
|
end
|
2171
2382
|
|
2383
|
+
# The Status type defines a logical error model that is suitable for different
|
2384
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
2385
|
+
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
2386
|
+
# error code, error message, and error details.You can find out more about this
|
2387
|
+
# error model and how to work with it in the API Design Guide (https://cloud.
|
2388
|
+
# google.com/apis/design/errors).
|
2389
|
+
class Status
|
2390
|
+
include Google::Apis::Core::Hashable
|
2391
|
+
|
2392
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
2393
|
+
# Corresponds to the JSON property `code`
|
2394
|
+
# @return [Fixnum]
|
2395
|
+
attr_accessor :code
|
2396
|
+
|
2397
|
+
# A list of messages that carry the error details. There is a common set of
|
2398
|
+
# message types for APIs to use.
|
2399
|
+
# Corresponds to the JSON property `details`
|
2400
|
+
# @return [Array<Hash<String,Object>>]
|
2401
|
+
attr_accessor :details
|
2402
|
+
|
2403
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
2404
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
2405
|
+
# field, or localized by the client.
|
2406
|
+
# Corresponds to the JSON property `message`
|
2407
|
+
# @return [String]
|
2408
|
+
attr_accessor :message
|
2409
|
+
|
2410
|
+
def initialize(**args)
|
2411
|
+
update!(**args)
|
2412
|
+
end
|
2413
|
+
|
2414
|
+
# Update properties of this object
|
2415
|
+
def update!(**args)
|
2416
|
+
@code = args[:code] if args.key?(:code)
|
2417
|
+
@details = args[:details] if args.key?(:details)
|
2418
|
+
@message = args[:message] if args.key?(:message)
|
2419
|
+
end
|
2420
|
+
end
|
2421
|
+
|
2172
2422
|
# Information about entries that were omitted from the session.
|
2173
2423
|
class SuppressionInfo
|
2174
2424
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module LoggingV2
|
18
18
|
# Version of the google-apis-logging_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210625"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,12 +34,36 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class CancelOperationRequest
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
37
43
|
class CmekSettings
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
45
|
|
40
46
|
include Google::Apis::Core::JsonObjectSupport
|
41
47
|
end
|
42
48
|
|
49
|
+
class CopyLogEntriesMetadata
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class CopyLogEntriesRequest
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class CopyLogEntriesResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
43
67
|
class Empty
|
44
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
69
|
|
@@ -124,6 +148,12 @@ module Google
|
|
124
148
|
include Google::Apis::Core::JsonObjectSupport
|
125
149
|
end
|
126
150
|
|
151
|
+
class ListOperationsResponse
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
127
157
|
class ListSinksResponse
|
128
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
159
|
|
@@ -226,6 +256,12 @@ module Google
|
|
226
256
|
include Google::Apis::Core::JsonObjectSupport
|
227
257
|
end
|
228
258
|
|
259
|
+
class Operation
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
|
+
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
263
|
+
end
|
264
|
+
|
229
265
|
class RequestLog
|
230
266
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
267
|
|
@@ -244,6 +280,12 @@ module Google
|
|
244
280
|
include Google::Apis::Core::JsonObjectSupport
|
245
281
|
end
|
246
282
|
|
283
|
+
class Status
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
|
+
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
287
|
+
end
|
288
|
+
|
247
289
|
class SuppressionInfo
|
248
290
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
291
|
|
@@ -300,6 +342,12 @@ module Google
|
|
300
342
|
end
|
301
343
|
end
|
302
344
|
|
345
|
+
class CancelOperationRequest
|
346
|
+
# @private
|
347
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
348
|
+
end
|
349
|
+
end
|
350
|
+
|
303
351
|
class CmekSettings
|
304
352
|
# @private
|
305
353
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -309,6 +357,36 @@ module Google
|
|
309
357
|
end
|
310
358
|
end
|
311
359
|
|
360
|
+
class CopyLogEntriesMetadata
|
361
|
+
# @private
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
363
|
+
property :cancellation_requested, as: 'cancellationRequested'
|
364
|
+
property :end_time, as: 'endTime'
|
365
|
+
property :progress, as: 'progress'
|
366
|
+
property :request, as: 'request', class: Google::Apis::LoggingV2::CopyLogEntriesRequest, decorator: Google::Apis::LoggingV2::CopyLogEntriesRequest::Representation
|
367
|
+
|
368
|
+
property :start_time, as: 'startTime'
|
369
|
+
property :state, as: 'state'
|
370
|
+
property :writer_identity, as: 'writerIdentity'
|
371
|
+
end
|
372
|
+
end
|
373
|
+
|
374
|
+
class CopyLogEntriesRequest
|
375
|
+
# @private
|
376
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
377
|
+
property :destination, as: 'destination'
|
378
|
+
property :filter, as: 'filter'
|
379
|
+
property :name, as: 'name'
|
380
|
+
end
|
381
|
+
end
|
382
|
+
|
383
|
+
class CopyLogEntriesResponse
|
384
|
+
# @private
|
385
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
386
|
+
property :log_entries_copied_count, :numeric_string => true, as: 'logEntriesCopiedCount'
|
387
|
+
end
|
388
|
+
end
|
389
|
+
|
312
390
|
class Empty
|
313
391
|
# @private
|
314
392
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -444,6 +522,15 @@ module Google
|
|
444
522
|
end
|
445
523
|
end
|
446
524
|
|
525
|
+
class ListOperationsResponse
|
526
|
+
# @private
|
527
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
528
|
+
property :next_page_token, as: 'nextPageToken'
|
529
|
+
collection :operations, as: 'operations', class: Google::Apis::LoggingV2::Operation, decorator: Google::Apis::LoggingV2::Operation::Representation
|
530
|
+
|
531
|
+
end
|
532
|
+
end
|
533
|
+
|
447
534
|
class ListSinksResponse
|
448
535
|
# @private
|
449
536
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -664,6 +751,18 @@ module Google
|
|
664
751
|
end
|
665
752
|
end
|
666
753
|
|
754
|
+
class Operation
|
755
|
+
# @private
|
756
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
757
|
+
property :done, as: 'done'
|
758
|
+
property :error, as: 'error', class: Google::Apis::LoggingV2::Status, decorator: Google::Apis::LoggingV2::Status::Representation
|
759
|
+
|
760
|
+
hash :metadata, as: 'metadata'
|
761
|
+
property :name, as: 'name'
|
762
|
+
hash :response, as: 'response'
|
763
|
+
end
|
764
|
+
end
|
765
|
+
|
667
766
|
class RequestLog
|
668
767
|
# @private
|
669
768
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -722,6 +821,15 @@ module Google
|
|
722
821
|
end
|
723
822
|
end
|
724
823
|
|
824
|
+
class Status
|
825
|
+
# @private
|
826
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
827
|
+
property :code, as: 'code'
|
828
|
+
collection :details, as: 'details'
|
829
|
+
property :message, as: 'message'
|
830
|
+
end
|
831
|
+
end
|
832
|
+
|
725
833
|
class SuppressionInfo
|
726
834
|
# @private
|
727
835
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -758,6 +758,92 @@ module Google
|
|
758
758
|
execute_or_queue_command(command, &block)
|
759
759
|
end
|
760
760
|
|
761
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
762
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
763
|
+
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
764
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
765
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
766
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
767
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
768
|
+
# corresponding to Code.CANCELLED.
|
769
|
+
# @param [String] name
|
770
|
+
# The name of the operation resource to be cancelled.
|
771
|
+
# @param [Google::Apis::LoggingV2::CancelOperationRequest] cancel_operation_request_object
|
772
|
+
# @param [String] fields
|
773
|
+
# Selector specifying which fields to include in a partial response.
|
774
|
+
# @param [String] quota_user
|
775
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
776
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
777
|
+
# @param [Google::Apis::RequestOptions] options
|
778
|
+
# Request-specific options
|
779
|
+
#
|
780
|
+
# @yield [result, err] Result & error if block supplied
|
781
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
782
|
+
# @yieldparam err [StandardError] error object if request failed
|
783
|
+
#
|
784
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
785
|
+
#
|
786
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
787
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
788
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
789
|
+
def cancel_billing_account_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
790
|
+
command = make_simple_command(:post, 'v2/{+name}:cancel', options)
|
791
|
+
command.request_representation = Google::Apis::LoggingV2::CancelOperationRequest::Representation
|
792
|
+
command.request_object = cancel_operation_request_object
|
793
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
794
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
795
|
+
command.params['name'] = name unless name.nil?
|
796
|
+
command.query['fields'] = fields unless fields.nil?
|
797
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
798
|
+
execute_or_queue_command(command, &block)
|
799
|
+
end
|
800
|
+
|
801
|
+
# Lists operations that match the specified filter in the request. If the server
|
802
|
+
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
|
803
|
+
# allows API services to override the binding to use different resource name
|
804
|
+
# schemes, such as users/*/operations. To override the binding, API services can
|
805
|
+
# add a binding such as "/v1/`name=users/*`/operations" to their service
|
806
|
+
# configuration. For backwards compatibility, the default name includes the
|
807
|
+
# operations collection id, however overriding users must ensure the name
|
808
|
+
# binding is the parent resource, without the operations collection id.
|
809
|
+
# @param [String] name
|
810
|
+
# The name of the operation's parent resource.
|
811
|
+
# @param [String] filter
|
812
|
+
# The standard list filter.
|
813
|
+
# @param [Fixnum] page_size
|
814
|
+
# The standard list page size.
|
815
|
+
# @param [String] page_token
|
816
|
+
# The standard list page token.
|
817
|
+
# @param [String] fields
|
818
|
+
# Selector specifying which fields to include in a partial response.
|
819
|
+
# @param [String] quota_user
|
820
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
821
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
822
|
+
# @param [Google::Apis::RequestOptions] options
|
823
|
+
# Request-specific options
|
824
|
+
#
|
825
|
+
# @yield [result, err] Result & error if block supplied
|
826
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListOperationsResponse] parsed result object
|
827
|
+
# @yieldparam err [StandardError] error object if request failed
|
828
|
+
#
|
829
|
+
# @return [Google::Apis::LoggingV2::ListOperationsResponse]
|
830
|
+
#
|
831
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
832
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
833
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
834
|
+
def list_billing_account_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
835
|
+
command = make_simple_command(:get, 'v2/{+name}/operations', options)
|
836
|
+
command.response_representation = Google::Apis::LoggingV2::ListOperationsResponse::Representation
|
837
|
+
command.response_class = Google::Apis::LoggingV2::ListOperationsResponse
|
838
|
+
command.params['name'] = name unless name.nil?
|
839
|
+
command.query['filter'] = filter unless filter.nil?
|
840
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
841
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
842
|
+
command.query['fields'] = fields unless fields.nil?
|
843
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
844
|
+
execute_or_queue_command(command, &block)
|
845
|
+
end
|
846
|
+
|
761
847
|
# Deletes all the log entries in a log for the _Default Log Bucket. The log
|
762
848
|
# reappears if it receives new entries. Log entries written shortly before the
|
763
849
|
# delete operation might not be deleted. Entries received after the delete
|
@@ -850,6 +936,37 @@ module Google
|
|
850
936
|
execute_or_queue_command(command, &block)
|
851
937
|
end
|
852
938
|
|
939
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
940
|
+
# to poll the operation result at intervals as recommended by the API service.
|
941
|
+
# @param [String] name
|
942
|
+
# The name of the operation resource.
|
943
|
+
# @param [String] fields
|
944
|
+
# Selector specifying which fields to include in a partial response.
|
945
|
+
# @param [String] quota_user
|
946
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
947
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
948
|
+
# @param [Google::Apis::RequestOptions] options
|
949
|
+
# Request-specific options
|
950
|
+
#
|
951
|
+
# @yield [result, err] Result & error if block supplied
|
952
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
953
|
+
# @yieldparam err [StandardError] error object if request failed
|
954
|
+
#
|
955
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
956
|
+
#
|
957
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
958
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
959
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
960
|
+
def get_billing_account_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
961
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
962
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
963
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
964
|
+
command.params['name'] = name unless name.nil?
|
965
|
+
command.query['fields'] = fields unless fields.nil?
|
966
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
967
|
+
execute_or_queue_command(command, &block)
|
968
|
+
end
|
969
|
+
|
853
970
|
# Creates a sink that exports specified log entries to a destination. The export
|
854
971
|
# of newly-ingested log entries begins immediately, unless the sink's
|
855
972
|
# writer_identity is not permitted to write to the destination. A sink can
|
@@ -1129,6 +1246,36 @@ module Google
|
|
1129
1246
|
execute_or_queue_command(command, &block)
|
1130
1247
|
end
|
1131
1248
|
|
1249
|
+
# Copies a set of log entries from a logging bucket to a Cloud Storage bucket.
|
1250
|
+
# @param [Google::Apis::LoggingV2::CopyLogEntriesRequest] copy_log_entries_request_object
|
1251
|
+
# @param [String] fields
|
1252
|
+
# Selector specifying which fields to include in a partial response.
|
1253
|
+
# @param [String] quota_user
|
1254
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1255
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1256
|
+
# @param [Google::Apis::RequestOptions] options
|
1257
|
+
# Request-specific options
|
1258
|
+
#
|
1259
|
+
# @yield [result, err] Result & error if block supplied
|
1260
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
1261
|
+
# @yieldparam err [StandardError] error object if request failed
|
1262
|
+
#
|
1263
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
1264
|
+
#
|
1265
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1266
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1267
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1268
|
+
def copy_entry_log_entries(copy_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1269
|
+
command = make_simple_command(:post, 'v2/entries:copy', options)
|
1270
|
+
command.request_representation = Google::Apis::LoggingV2::CopyLogEntriesRequest::Representation
|
1271
|
+
command.request_object = copy_log_entries_request_object
|
1272
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
1273
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
1274
|
+
command.query['fields'] = fields unless fields.nil?
|
1275
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1276
|
+
execute_or_queue_command(command, &block)
|
1277
|
+
end
|
1278
|
+
|
1132
1279
|
# Lists log entries. Use this method to retrieve log entries that originated
|
1133
1280
|
# from a project/folder/organization/billing account. For ways to export log
|
1134
1281
|
# entries, see Exporting Logs (https://cloud.google.com/logging/docs/export).
|
@@ -2126,6 +2273,123 @@ module Google
|
|
2126
2273
|
execute_or_queue_command(command, &block)
|
2127
2274
|
end
|
2128
2275
|
|
2276
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
2277
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
2278
|
+
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
2279
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
2280
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
2281
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
2282
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
2283
|
+
# corresponding to Code.CANCELLED.
|
2284
|
+
# @param [String] name
|
2285
|
+
# The name of the operation resource to be cancelled.
|
2286
|
+
# @param [Google::Apis::LoggingV2::CancelOperationRequest] cancel_operation_request_object
|
2287
|
+
# @param [String] fields
|
2288
|
+
# Selector specifying which fields to include in a partial response.
|
2289
|
+
# @param [String] quota_user
|
2290
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2291
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2292
|
+
# @param [Google::Apis::RequestOptions] options
|
2293
|
+
# Request-specific options
|
2294
|
+
#
|
2295
|
+
# @yield [result, err] Result & error if block supplied
|
2296
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
2297
|
+
# @yieldparam err [StandardError] error object if request failed
|
2298
|
+
#
|
2299
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
2300
|
+
#
|
2301
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2302
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2303
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2304
|
+
def cancel_folder_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2305
|
+
command = make_simple_command(:post, 'v2/{+name}:cancel', options)
|
2306
|
+
command.request_representation = Google::Apis::LoggingV2::CancelOperationRequest::Representation
|
2307
|
+
command.request_object = cancel_operation_request_object
|
2308
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
2309
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
2310
|
+
command.params['name'] = name unless name.nil?
|
2311
|
+
command.query['fields'] = fields unless fields.nil?
|
2312
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2313
|
+
execute_or_queue_command(command, &block)
|
2314
|
+
end
|
2315
|
+
|
2316
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
2317
|
+
# to poll the operation result at intervals as recommended by the API service.
|
2318
|
+
# @param [String] name
|
2319
|
+
# The name of the operation resource.
|
2320
|
+
# @param [String] fields
|
2321
|
+
# Selector specifying which fields to include in a partial response.
|
2322
|
+
# @param [String] quota_user
|
2323
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2324
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2325
|
+
# @param [Google::Apis::RequestOptions] options
|
2326
|
+
# Request-specific options
|
2327
|
+
#
|
2328
|
+
# @yield [result, err] Result & error if block supplied
|
2329
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
2330
|
+
# @yieldparam err [StandardError] error object if request failed
|
2331
|
+
#
|
2332
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
2333
|
+
#
|
2334
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2335
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2336
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2337
|
+
def get_folder_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
2338
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
2339
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
2340
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
2341
|
+
command.params['name'] = name unless name.nil?
|
2342
|
+
command.query['fields'] = fields unless fields.nil?
|
2343
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2344
|
+
execute_or_queue_command(command, &block)
|
2345
|
+
end
|
2346
|
+
|
2347
|
+
# Lists operations that match the specified filter in the request. If the server
|
2348
|
+
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
|
2349
|
+
# allows API services to override the binding to use different resource name
|
2350
|
+
# schemes, such as users/*/operations. To override the binding, API services can
|
2351
|
+
# add a binding such as "/v1/`name=users/*`/operations" to their service
|
2352
|
+
# configuration. For backwards compatibility, the default name includes the
|
2353
|
+
# operations collection id, however overriding users must ensure the name
|
2354
|
+
# binding is the parent resource, without the operations collection id.
|
2355
|
+
# @param [String] name
|
2356
|
+
# The name of the operation's parent resource.
|
2357
|
+
# @param [String] filter
|
2358
|
+
# The standard list filter.
|
2359
|
+
# @param [Fixnum] page_size
|
2360
|
+
# The standard list page size.
|
2361
|
+
# @param [String] page_token
|
2362
|
+
# The standard list page token.
|
2363
|
+
# @param [String] fields
|
2364
|
+
# Selector specifying which fields to include in a partial response.
|
2365
|
+
# @param [String] quota_user
|
2366
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2367
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2368
|
+
# @param [Google::Apis::RequestOptions] options
|
2369
|
+
# Request-specific options
|
2370
|
+
#
|
2371
|
+
# @yield [result, err] Result & error if block supplied
|
2372
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListOperationsResponse] parsed result object
|
2373
|
+
# @yieldparam err [StandardError] error object if request failed
|
2374
|
+
#
|
2375
|
+
# @return [Google::Apis::LoggingV2::ListOperationsResponse]
|
2376
|
+
#
|
2377
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2378
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2379
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2380
|
+
def list_folder_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2381
|
+
command = make_simple_command(:get, 'v2/{+name}/operations', options)
|
2382
|
+
command.response_representation = Google::Apis::LoggingV2::ListOperationsResponse::Representation
|
2383
|
+
command.response_class = Google::Apis::LoggingV2::ListOperationsResponse
|
2384
|
+
command.params['name'] = name unless name.nil?
|
2385
|
+
command.query['filter'] = filter unless filter.nil?
|
2386
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2387
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2388
|
+
command.query['fields'] = fields unless fields.nil?
|
2389
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2390
|
+
execute_or_queue_command(command, &block)
|
2391
|
+
end
|
2392
|
+
|
2129
2393
|
# Deletes all the log entries in a log for the _Default Log Bucket. The log
|
2130
2394
|
# reappears if it receives new entries. Log entries written shortly before the
|
2131
2395
|
# delete operation might not be deleted. Entries received after the delete
|
@@ -3009,6 +3273,123 @@ module Google
|
|
3009
3273
|
execute_or_queue_command(command, &block)
|
3010
3274
|
end
|
3011
3275
|
|
3276
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
3277
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
3278
|
+
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
3279
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
3280
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
3281
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
3282
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
3283
|
+
# corresponding to Code.CANCELLED.
|
3284
|
+
# @param [String] name
|
3285
|
+
# The name of the operation resource to be cancelled.
|
3286
|
+
# @param [Google::Apis::LoggingV2::CancelOperationRequest] cancel_operation_request_object
|
3287
|
+
# @param [String] fields
|
3288
|
+
# Selector specifying which fields to include in a partial response.
|
3289
|
+
# @param [String] quota_user
|
3290
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3291
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3292
|
+
# @param [Google::Apis::RequestOptions] options
|
3293
|
+
# Request-specific options
|
3294
|
+
#
|
3295
|
+
# @yield [result, err] Result & error if block supplied
|
3296
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
3297
|
+
# @yieldparam err [StandardError] error object if request failed
|
3298
|
+
#
|
3299
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
3300
|
+
#
|
3301
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3302
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3303
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3304
|
+
def cancel_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3305
|
+
command = make_simple_command(:post, 'v2/{+name}:cancel', options)
|
3306
|
+
command.request_representation = Google::Apis::LoggingV2::CancelOperationRequest::Representation
|
3307
|
+
command.request_object = cancel_operation_request_object
|
3308
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
3309
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
3310
|
+
command.params['name'] = name unless name.nil?
|
3311
|
+
command.query['fields'] = fields unless fields.nil?
|
3312
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3313
|
+
execute_or_queue_command(command, &block)
|
3314
|
+
end
|
3315
|
+
|
3316
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
3317
|
+
# to poll the operation result at intervals as recommended by the API service.
|
3318
|
+
# @param [String] name
|
3319
|
+
# The name of the operation resource.
|
3320
|
+
# @param [String] fields
|
3321
|
+
# Selector specifying which fields to include in a partial response.
|
3322
|
+
# @param [String] quota_user
|
3323
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3324
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3325
|
+
# @param [Google::Apis::RequestOptions] options
|
3326
|
+
# Request-specific options
|
3327
|
+
#
|
3328
|
+
# @yield [result, err] Result & error if block supplied
|
3329
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
3330
|
+
# @yieldparam err [StandardError] error object if request failed
|
3331
|
+
#
|
3332
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
3333
|
+
#
|
3334
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3335
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3336
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3337
|
+
def get_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
3338
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
3339
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
3340
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
3341
|
+
command.params['name'] = name unless name.nil?
|
3342
|
+
command.query['fields'] = fields unless fields.nil?
|
3343
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3344
|
+
execute_or_queue_command(command, &block)
|
3345
|
+
end
|
3346
|
+
|
3347
|
+
# Lists operations that match the specified filter in the request. If the server
|
3348
|
+
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
|
3349
|
+
# allows API services to override the binding to use different resource name
|
3350
|
+
# schemes, such as users/*/operations. To override the binding, API services can
|
3351
|
+
# add a binding such as "/v1/`name=users/*`/operations" to their service
|
3352
|
+
# configuration. For backwards compatibility, the default name includes the
|
3353
|
+
# operations collection id, however overriding users must ensure the name
|
3354
|
+
# binding is the parent resource, without the operations collection id.
|
3355
|
+
# @param [String] name
|
3356
|
+
# The name of the operation's parent resource.
|
3357
|
+
# @param [String] filter
|
3358
|
+
# The standard list filter.
|
3359
|
+
# @param [Fixnum] page_size
|
3360
|
+
# The standard list page size.
|
3361
|
+
# @param [String] page_token
|
3362
|
+
# The standard list page token.
|
3363
|
+
# @param [String] fields
|
3364
|
+
# Selector specifying which fields to include in a partial response.
|
3365
|
+
# @param [String] quota_user
|
3366
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3367
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3368
|
+
# @param [Google::Apis::RequestOptions] options
|
3369
|
+
# Request-specific options
|
3370
|
+
#
|
3371
|
+
# @yield [result, err] Result & error if block supplied
|
3372
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListOperationsResponse] parsed result object
|
3373
|
+
# @yieldparam err [StandardError] error object if request failed
|
3374
|
+
#
|
3375
|
+
# @return [Google::Apis::LoggingV2::ListOperationsResponse]
|
3376
|
+
#
|
3377
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3378
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3379
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3380
|
+
def list_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3381
|
+
command = make_simple_command(:get, 'v2/{+name}/operations', options)
|
3382
|
+
command.response_representation = Google::Apis::LoggingV2::ListOperationsResponse::Representation
|
3383
|
+
command.response_class = Google::Apis::LoggingV2::ListOperationsResponse
|
3384
|
+
command.params['name'] = name unless name.nil?
|
3385
|
+
command.query['filter'] = filter unless filter.nil?
|
3386
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3387
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3388
|
+
command.query['fields'] = fields unless fields.nil?
|
3389
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3390
|
+
execute_or_queue_command(command, &block)
|
3391
|
+
end
|
3392
|
+
|
3012
3393
|
# Deletes all the log entries in a log for the _Default Log Bucket. The log
|
3013
3394
|
# reappears if it receives new entries. Log entries written shortly before the
|
3014
3395
|
# delete operation might not be deleted. Entries received after the delete
|
@@ -3935,6 +4316,123 @@ module Google
|
|
3935
4316
|
execute_or_queue_command(command, &block)
|
3936
4317
|
end
|
3937
4318
|
|
4319
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
4320
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
4321
|
+
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
4322
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
4323
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
4324
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
4325
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
4326
|
+
# corresponding to Code.CANCELLED.
|
4327
|
+
# @param [String] name
|
4328
|
+
# The name of the operation resource to be cancelled.
|
4329
|
+
# @param [Google::Apis::LoggingV2::CancelOperationRequest] cancel_operation_request_object
|
4330
|
+
# @param [String] fields
|
4331
|
+
# Selector specifying which fields to include in a partial response.
|
4332
|
+
# @param [String] quota_user
|
4333
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4334
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4335
|
+
# @param [Google::Apis::RequestOptions] options
|
4336
|
+
# Request-specific options
|
4337
|
+
#
|
4338
|
+
# @yield [result, err] Result & error if block supplied
|
4339
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
4340
|
+
# @yieldparam err [StandardError] error object if request failed
|
4341
|
+
#
|
4342
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
4343
|
+
#
|
4344
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4345
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4346
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4347
|
+
def cancel_organization_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4348
|
+
command = make_simple_command(:post, 'v2/{+name}:cancel', options)
|
4349
|
+
command.request_representation = Google::Apis::LoggingV2::CancelOperationRequest::Representation
|
4350
|
+
command.request_object = cancel_operation_request_object
|
4351
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
4352
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
4353
|
+
command.params['name'] = name unless name.nil?
|
4354
|
+
command.query['fields'] = fields unless fields.nil?
|
4355
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4356
|
+
execute_or_queue_command(command, &block)
|
4357
|
+
end
|
4358
|
+
|
4359
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
4360
|
+
# to poll the operation result at intervals as recommended by the API service.
|
4361
|
+
# @param [String] name
|
4362
|
+
# The name of the operation resource.
|
4363
|
+
# @param [String] fields
|
4364
|
+
# Selector specifying which fields to include in a partial response.
|
4365
|
+
# @param [String] quota_user
|
4366
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4367
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4368
|
+
# @param [Google::Apis::RequestOptions] options
|
4369
|
+
# Request-specific options
|
4370
|
+
#
|
4371
|
+
# @yield [result, err] Result & error if block supplied
|
4372
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
4373
|
+
# @yieldparam err [StandardError] error object if request failed
|
4374
|
+
#
|
4375
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
4376
|
+
#
|
4377
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4378
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4379
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4380
|
+
def get_organization_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
4381
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
4382
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
4383
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
4384
|
+
command.params['name'] = name unless name.nil?
|
4385
|
+
command.query['fields'] = fields unless fields.nil?
|
4386
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4387
|
+
execute_or_queue_command(command, &block)
|
4388
|
+
end
|
4389
|
+
|
4390
|
+
# Lists operations that match the specified filter in the request. If the server
|
4391
|
+
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
|
4392
|
+
# allows API services to override the binding to use different resource name
|
4393
|
+
# schemes, such as users/*/operations. To override the binding, API services can
|
4394
|
+
# add a binding such as "/v1/`name=users/*`/operations" to their service
|
4395
|
+
# configuration. For backwards compatibility, the default name includes the
|
4396
|
+
# operations collection id, however overriding users must ensure the name
|
4397
|
+
# binding is the parent resource, without the operations collection id.
|
4398
|
+
# @param [String] name
|
4399
|
+
# The name of the operation's parent resource.
|
4400
|
+
# @param [String] filter
|
4401
|
+
# The standard list filter.
|
4402
|
+
# @param [Fixnum] page_size
|
4403
|
+
# The standard list page size.
|
4404
|
+
# @param [String] page_token
|
4405
|
+
# The standard list page token.
|
4406
|
+
# @param [String] fields
|
4407
|
+
# Selector specifying which fields to include in a partial response.
|
4408
|
+
# @param [String] quota_user
|
4409
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4410
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4411
|
+
# @param [Google::Apis::RequestOptions] options
|
4412
|
+
# Request-specific options
|
4413
|
+
#
|
4414
|
+
# @yield [result, err] Result & error if block supplied
|
4415
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListOperationsResponse] parsed result object
|
4416
|
+
# @yieldparam err [StandardError] error object if request failed
|
4417
|
+
#
|
4418
|
+
# @return [Google::Apis::LoggingV2::ListOperationsResponse]
|
4419
|
+
#
|
4420
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4421
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4422
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4423
|
+
def list_organization_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4424
|
+
command = make_simple_command(:get, 'v2/{+name}/operations', options)
|
4425
|
+
command.response_representation = Google::Apis::LoggingV2::ListOperationsResponse::Representation
|
4426
|
+
command.response_class = Google::Apis::LoggingV2::ListOperationsResponse
|
4427
|
+
command.params['name'] = name unless name.nil?
|
4428
|
+
command.query['filter'] = filter unless filter.nil?
|
4429
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
4430
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
4431
|
+
command.query['fields'] = fields unless fields.nil?
|
4432
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4433
|
+
execute_or_queue_command(command, &block)
|
4434
|
+
end
|
4435
|
+
|
3938
4436
|
# Deletes all the log entries in a log for the _Default Log Bucket. The log
|
3939
4437
|
# reappears if it receives new entries. Log entries written shortly before the
|
3940
4438
|
# delete operation might not be deleted. Entries received after the delete
|
@@ -5012,6 +5510,123 @@ module Google
|
|
5012
5510
|
execute_or_queue_command(command, &block)
|
5013
5511
|
end
|
5014
5512
|
|
5513
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
5514
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
5515
|
+
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
5516
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
5517
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
5518
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
5519
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
5520
|
+
# corresponding to Code.CANCELLED.
|
5521
|
+
# @param [String] name
|
5522
|
+
# The name of the operation resource to be cancelled.
|
5523
|
+
# @param [Google::Apis::LoggingV2::CancelOperationRequest] cancel_operation_request_object
|
5524
|
+
# @param [String] fields
|
5525
|
+
# Selector specifying which fields to include in a partial response.
|
5526
|
+
# @param [String] quota_user
|
5527
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5528
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5529
|
+
# @param [Google::Apis::RequestOptions] options
|
5530
|
+
# Request-specific options
|
5531
|
+
#
|
5532
|
+
# @yield [result, err] Result & error if block supplied
|
5533
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
5534
|
+
# @yieldparam err [StandardError] error object if request failed
|
5535
|
+
#
|
5536
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
5537
|
+
#
|
5538
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5539
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5540
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5541
|
+
def cancel_project_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5542
|
+
command = make_simple_command(:post, 'v2/{+name}:cancel', options)
|
5543
|
+
command.request_representation = Google::Apis::LoggingV2::CancelOperationRequest::Representation
|
5544
|
+
command.request_object = cancel_operation_request_object
|
5545
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
5546
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
5547
|
+
command.params['name'] = name unless name.nil?
|
5548
|
+
command.query['fields'] = fields unless fields.nil?
|
5549
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5550
|
+
execute_or_queue_command(command, &block)
|
5551
|
+
end
|
5552
|
+
|
5553
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
5554
|
+
# to poll the operation result at intervals as recommended by the API service.
|
5555
|
+
# @param [String] name
|
5556
|
+
# The name of the operation resource.
|
5557
|
+
# @param [String] fields
|
5558
|
+
# Selector specifying which fields to include in a partial response.
|
5559
|
+
# @param [String] quota_user
|
5560
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5561
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5562
|
+
# @param [Google::Apis::RequestOptions] options
|
5563
|
+
# Request-specific options
|
5564
|
+
#
|
5565
|
+
# @yield [result, err] Result & error if block supplied
|
5566
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
5567
|
+
# @yieldparam err [StandardError] error object if request failed
|
5568
|
+
#
|
5569
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
5570
|
+
#
|
5571
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5572
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5573
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5574
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
5575
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
5576
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
5577
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
5578
|
+
command.params['name'] = name unless name.nil?
|
5579
|
+
command.query['fields'] = fields unless fields.nil?
|
5580
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5581
|
+
execute_or_queue_command(command, &block)
|
5582
|
+
end
|
5583
|
+
|
5584
|
+
# Lists operations that match the specified filter in the request. If the server
|
5585
|
+
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
|
5586
|
+
# allows API services to override the binding to use different resource name
|
5587
|
+
# schemes, such as users/*/operations. To override the binding, API services can
|
5588
|
+
# add a binding such as "/v1/`name=users/*`/operations" to their service
|
5589
|
+
# configuration. For backwards compatibility, the default name includes the
|
5590
|
+
# operations collection id, however overriding users must ensure the name
|
5591
|
+
# binding is the parent resource, without the operations collection id.
|
5592
|
+
# @param [String] name
|
5593
|
+
# The name of the operation's parent resource.
|
5594
|
+
# @param [String] filter
|
5595
|
+
# The standard list filter.
|
5596
|
+
# @param [Fixnum] page_size
|
5597
|
+
# The standard list page size.
|
5598
|
+
# @param [String] page_token
|
5599
|
+
# The standard list page token.
|
5600
|
+
# @param [String] fields
|
5601
|
+
# Selector specifying which fields to include in a partial response.
|
5602
|
+
# @param [String] quota_user
|
5603
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5604
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5605
|
+
# @param [Google::Apis::RequestOptions] options
|
5606
|
+
# Request-specific options
|
5607
|
+
#
|
5608
|
+
# @yield [result, err] Result & error if block supplied
|
5609
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListOperationsResponse] parsed result object
|
5610
|
+
# @yieldparam err [StandardError] error object if request failed
|
5611
|
+
#
|
5612
|
+
# @return [Google::Apis::LoggingV2::ListOperationsResponse]
|
5613
|
+
#
|
5614
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5615
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5616
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5617
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5618
|
+
command = make_simple_command(:get, 'v2/{+name}/operations', options)
|
5619
|
+
command.response_representation = Google::Apis::LoggingV2::ListOperationsResponse::Representation
|
5620
|
+
command.response_class = Google::Apis::LoggingV2::ListOperationsResponse
|
5621
|
+
command.params['name'] = name unless name.nil?
|
5622
|
+
command.query['filter'] = filter unless filter.nil?
|
5623
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
5624
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
5625
|
+
command.query['fields'] = fields unless fields.nil?
|
5626
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5627
|
+
execute_or_queue_command(command, &block)
|
5628
|
+
end
|
5629
|
+
|
5015
5630
|
# Deletes all the log entries in a log for the _Default Log Bucket. The log
|
5016
5631
|
# reappears if it receives new entries. Log entries written shortly before the
|
5017
5632
|
# delete operation might not be deleted. Entries received after the delete
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-logging_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.4'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-logging_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-logging_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-logging_v2/v0.12.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-logging_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|