google-apis-logging_v2 0.39.0 → 0.40.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5535d0add255b018b8dfa8c868d3c11aab784cc8d699b4e36d3eb53fdaa5d789
|
4
|
+
data.tar.gz: 9574bb88d42d4c22b028968749adcc988063efba0847058357f36473e6a4825b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e546017d4040f510df71101bc6e04a7b3a3fce22afcf6027fac095df8517a3fa41e12e78b1b70b892c493a40e41b588d237b453844fe5160ad07175c4d55c458
|
7
|
+
data.tar.gz: 325ba9800c268907282683f3dfd26220a6a620076249da9644f3651033aaa15c67cece4a274ce57d27806776182777811df27424c0d0fe0a1d55bc668c8a0a4b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-logging_v2
|
2
2
|
|
3
|
+
### v0.40.0 (2023-02-15)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230211
|
6
|
+
* Regenerated using generator version 0.12.0
|
7
|
+
|
3
8
|
### v0.39.0 (2023-01-29)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20230120
|
@@ -59,6 +59,49 @@ module Google
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
+
# Metadata for LongRunningUpdateBucket Operations.
|
63
|
+
class BucketMetadata
|
64
|
+
include Google::Apis::Core::Hashable
|
65
|
+
|
66
|
+
# The parameters to CreateBucket.
|
67
|
+
# Corresponds to the JSON property `createBucketRequest`
|
68
|
+
# @return [Google::Apis::LoggingV2::CreateBucketRequest]
|
69
|
+
attr_accessor :create_bucket_request
|
70
|
+
|
71
|
+
# The end time of an operation.
|
72
|
+
# Corresponds to the JSON property `endTime`
|
73
|
+
# @return [String]
|
74
|
+
attr_accessor :end_time
|
75
|
+
|
76
|
+
# The create time of an operation.
|
77
|
+
# Corresponds to the JSON property `startTime`
|
78
|
+
# @return [String]
|
79
|
+
attr_accessor :start_time
|
80
|
+
|
81
|
+
# State of an operation.
|
82
|
+
# Corresponds to the JSON property `state`
|
83
|
+
# @return [String]
|
84
|
+
attr_accessor :state
|
85
|
+
|
86
|
+
# The parameters to UpdateBucket.
|
87
|
+
# Corresponds to the JSON property `updateBucketRequest`
|
88
|
+
# @return [Google::Apis::LoggingV2::UpdateBucketRequest]
|
89
|
+
attr_accessor :update_bucket_request
|
90
|
+
|
91
|
+
def initialize(**args)
|
92
|
+
update!(**args)
|
93
|
+
end
|
94
|
+
|
95
|
+
# Update properties of this object
|
96
|
+
def update!(**args)
|
97
|
+
@create_bucket_request = args[:create_bucket_request] if args.key?(:create_bucket_request)
|
98
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
99
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
100
|
+
@state = args[:state] if args.key?(:state)
|
101
|
+
@update_bucket_request = args[:update_bucket_request] if args.key?(:update_bucket_request)
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
62
105
|
# BucketOptions describes the bucket boundaries used to create a histogram for
|
63
106
|
# the distribution. The buckets can be in a linear sequence, an exponential
|
64
107
|
# sequence, or each bucket can be specified explicitly. BucketOptions does not
|
@@ -307,6 +350,41 @@ module Google
|
|
307
350
|
end
|
308
351
|
end
|
309
352
|
|
353
|
+
# The parameters to CreateBucket.
|
354
|
+
class CreateBucketRequest
|
355
|
+
include Google::Apis::Core::Hashable
|
356
|
+
|
357
|
+
# Describes a repository in which log entries are stored.
|
358
|
+
# Corresponds to the JSON property `bucket`
|
359
|
+
# @return [Google::Apis::LoggingV2::LogBucket]
|
360
|
+
attr_accessor :bucket
|
361
|
+
|
362
|
+
# Required. A client-assigned identifier such as "my-bucket". Identifiers are
|
363
|
+
# limited to 100 characters and can include only letters, digits, underscores,
|
364
|
+
# hyphens, and periods.
|
365
|
+
# Corresponds to the JSON property `bucketId`
|
366
|
+
# @return [String]
|
367
|
+
attr_accessor :bucket_id
|
368
|
+
|
369
|
+
# Required. The resource in which to create the log bucket: "projects/[
|
370
|
+
# PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/
|
371
|
+
# locations/global"
|
372
|
+
# Corresponds to the JSON property `parent`
|
373
|
+
# @return [String]
|
374
|
+
attr_accessor :parent
|
375
|
+
|
376
|
+
def initialize(**args)
|
377
|
+
update!(**args)
|
378
|
+
end
|
379
|
+
|
380
|
+
# Update properties of this object
|
381
|
+
def update!(**args)
|
382
|
+
@bucket = args[:bucket] if args.key?(:bucket)
|
383
|
+
@bucket_id = args[:bucket_id] if args.key?(:bucket_id)
|
384
|
+
@parent = args[:parent] if args.key?(:parent)
|
385
|
+
end
|
386
|
+
end
|
387
|
+
|
310
388
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
311
389
|
# messages in your APIs. A typical example is to use it as the request or the
|
312
390
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -1004,6 +1082,13 @@ module Google
|
|
1004
1082
|
class LogBucket
|
1005
1083
|
include Google::Apis::Core::Hashable
|
1006
1084
|
|
1085
|
+
# Whether log analytics is enabled for this bucket.Once enabled, log analytics
|
1086
|
+
# features cannot be disabled.
|
1087
|
+
# Corresponds to the JSON property `analyticsEnabled`
|
1088
|
+
# @return [Boolean]
|
1089
|
+
attr_accessor :analytics_enabled
|
1090
|
+
alias_method :analytics_enabled?, :analytics_enabled
|
1091
|
+
|
1007
1092
|
# Describes the customer-managed encryption key (CMEK) settings associated with
|
1008
1093
|
# a project, folder, organization, billing account, or flexible resource.Note:
|
1009
1094
|
# CMEK for the Log Router can currently only be configured for Google Cloud
|
@@ -1079,6 +1164,7 @@ module Google
|
|
1079
1164
|
|
1080
1165
|
# Update properties of this object
|
1081
1166
|
def update!(**args)
|
1167
|
+
@analytics_enabled = args[:analytics_enabled] if args.key?(:analytics_enabled)
|
1082
1168
|
@cmek_settings = args[:cmek_settings] if args.key?(:cmek_settings)
|
1083
1169
|
@create_time = args[:create_time] if args.key?(:create_time)
|
1084
1170
|
@description = args[:description] if args.key?(:description)
|
@@ -2746,6 +2832,47 @@ module Google
|
|
2746
2832
|
end
|
2747
2833
|
end
|
2748
2834
|
|
2835
|
+
# The parameters to UpdateBucket.
|
2836
|
+
class UpdateBucketRequest
|
2837
|
+
include Google::Apis::Core::Hashable
|
2838
|
+
|
2839
|
+
# Describes a repository in which log entries are stored.
|
2840
|
+
# Corresponds to the JSON property `bucket`
|
2841
|
+
# @return [Google::Apis::LoggingV2::LogBucket]
|
2842
|
+
attr_accessor :bucket
|
2843
|
+
|
2844
|
+
# Required. The full resource name of the bucket to update. "projects/[
|
2845
|
+
# PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
|
2846
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
|
2847
|
+
# [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
|
2848
|
+
# FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/
|
2849
|
+
# my-project/locations/global/buckets/my-bucket"
|
2850
|
+
# Corresponds to the JSON property `name`
|
2851
|
+
# @return [String]
|
2852
|
+
attr_accessor :name
|
2853
|
+
|
2854
|
+
# Required. Field mask that specifies the fields in bucket that need an update.
|
2855
|
+
# A bucket field will be overwritten if, and only if, it is in the update mask.
|
2856
|
+
# name and output only fields cannot be updated.For a detailed FieldMask
|
2857
|
+
# definition, see: https://developers.google.com/protocol-buffers/docs/reference/
|
2858
|
+
# google.protobuf#google.protobuf.FieldMaskFor example: updateMask=
|
2859
|
+
# retention_days
|
2860
|
+
# Corresponds to the JSON property `updateMask`
|
2861
|
+
# @return [String]
|
2862
|
+
attr_accessor :update_mask
|
2863
|
+
|
2864
|
+
def initialize(**args)
|
2865
|
+
update!(**args)
|
2866
|
+
end
|
2867
|
+
|
2868
|
+
# Update properties of this object
|
2869
|
+
def update!(**args)
|
2870
|
+
@bucket = args[:bucket] if args.key?(:bucket)
|
2871
|
+
@name = args[:name] if args.key?(:name)
|
2872
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
2873
|
+
end
|
2874
|
+
end
|
2875
|
+
|
2749
2876
|
# The parameters to WriteLogEntries.
|
2750
2877
|
class WriteLogEntriesRequest
|
2751
2878
|
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.40.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230211"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -28,6 +28,12 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
+
class BucketMetadata
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
31
37
|
class BucketOptions
|
32
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
39
|
|
@@ -64,6 +70,12 @@ module Google
|
|
64
70
|
include Google::Apis::Core::JsonObjectSupport
|
65
71
|
end
|
66
72
|
|
73
|
+
class CreateBucketRequest
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
67
79
|
class Empty
|
68
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
81
|
|
@@ -328,6 +340,12 @@ module Google
|
|
328
340
|
include Google::Apis::Core::JsonObjectSupport
|
329
341
|
end
|
330
342
|
|
343
|
+
class UpdateBucketRequest
|
344
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
345
|
+
|
346
|
+
include Google::Apis::Core::JsonObjectSupport
|
347
|
+
end
|
348
|
+
|
331
349
|
class WriteLogEntriesRequest
|
332
350
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
333
351
|
|
@@ -348,6 +366,19 @@ module Google
|
|
348
366
|
end
|
349
367
|
end
|
350
368
|
|
369
|
+
class BucketMetadata
|
370
|
+
# @private
|
371
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
372
|
+
property :create_bucket_request, as: 'createBucketRequest', class: Google::Apis::LoggingV2::CreateBucketRequest, decorator: Google::Apis::LoggingV2::CreateBucketRequest::Representation
|
373
|
+
|
374
|
+
property :end_time, as: 'endTime'
|
375
|
+
property :start_time, as: 'startTime'
|
376
|
+
property :state, as: 'state'
|
377
|
+
property :update_bucket_request, as: 'updateBucketRequest', class: Google::Apis::LoggingV2::UpdateBucketRequest, decorator: Google::Apis::LoggingV2::UpdateBucketRequest::Representation
|
378
|
+
|
379
|
+
end
|
380
|
+
end
|
381
|
+
|
351
382
|
class BucketOptions
|
352
383
|
# @private
|
353
384
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -406,6 +437,16 @@ module Google
|
|
406
437
|
end
|
407
438
|
end
|
408
439
|
|
440
|
+
class CreateBucketRequest
|
441
|
+
# @private
|
442
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
443
|
+
property :bucket, as: 'bucket', class: Google::Apis::LoggingV2::LogBucket, decorator: Google::Apis::LoggingV2::LogBucket::Representation
|
444
|
+
|
445
|
+
property :bucket_id, as: 'bucketId'
|
446
|
+
property :parent, as: 'parent'
|
447
|
+
end
|
448
|
+
end
|
449
|
+
|
409
450
|
class Empty
|
410
451
|
# @private
|
411
452
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -591,6 +632,7 @@ module Google
|
|
591
632
|
class LogBucket
|
592
633
|
# @private
|
593
634
|
class Representation < Google::Apis::Core::JsonRepresentation
|
635
|
+
property :analytics_enabled, as: 'analyticsEnabled'
|
594
636
|
property :cmek_settings, as: 'cmekSettings', class: Google::Apis::LoggingV2::CmekSettings, decorator: Google::Apis::LoggingV2::CmekSettings::Representation
|
595
637
|
|
596
638
|
property :create_time, as: 'createTime'
|
@@ -919,6 +961,16 @@ module Google
|
|
919
961
|
end
|
920
962
|
end
|
921
963
|
|
964
|
+
class UpdateBucketRequest
|
965
|
+
# @private
|
966
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
967
|
+
property :bucket, as: 'bucket', class: Google::Apis::LoggingV2::LogBucket, decorator: Google::Apis::LoggingV2::LogBucket::Representation
|
968
|
+
|
969
|
+
property :name, as: 'name'
|
970
|
+
property :update_mask, as: 'updateMask'
|
971
|
+
end
|
972
|
+
end
|
973
|
+
|
922
974
|
class WriteLogEntriesRequest
|
923
975
|
# @private
|
924
976
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -440,6 +440,47 @@ module Google
|
|
440
440
|
execute_or_queue_command(command, &block)
|
441
441
|
end
|
442
442
|
|
443
|
+
# Creates a log bucket asynchronously that can be used to store log entries.
|
444
|
+
# After a bucket has been created, the bucket's location cannot be changed.
|
445
|
+
# @param [String] parent
|
446
|
+
# Required. The resource in which to create the log bucket: "projects/[
|
447
|
+
# PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/
|
448
|
+
# locations/global"
|
449
|
+
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
450
|
+
# @param [String] bucket_id
|
451
|
+
# Required. A client-assigned identifier such as "my-bucket". Identifiers are
|
452
|
+
# limited to 100 characters and can include only letters, digits, underscores,
|
453
|
+
# hyphens, and periods.
|
454
|
+
# @param [String] fields
|
455
|
+
# Selector specifying which fields to include in a partial response.
|
456
|
+
# @param [String] quota_user
|
457
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
458
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
459
|
+
# @param [Google::Apis::RequestOptions] options
|
460
|
+
# Request-specific options
|
461
|
+
#
|
462
|
+
# @yield [result, err] Result & error if block supplied
|
463
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
464
|
+
# @yieldparam err [StandardError] error object if request failed
|
465
|
+
#
|
466
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
467
|
+
#
|
468
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
469
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
470
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
471
|
+
def create_billing_account_location_bucket_async(parent, log_bucket_object = nil, bucket_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
472
|
+
command = make_simple_command(:post, 'v2/{+parent}/buckets:createAsync', options)
|
473
|
+
command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
474
|
+
command.request_object = log_bucket_object
|
475
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
476
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
477
|
+
command.params['parent'] = parent unless parent.nil?
|
478
|
+
command.query['bucketId'] = bucket_id unless bucket_id.nil?
|
479
|
+
command.query['fields'] = fields unless fields.nil?
|
480
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
481
|
+
execute_or_queue_command(command, &block)
|
482
|
+
end
|
483
|
+
|
443
484
|
# Deletes a log bucket.Changes the bucket's lifecycle_state to the
|
444
485
|
# DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log
|
445
486
|
# entries in the bucket will be permanently deleted.
|
@@ -558,11 +599,8 @@ module Google
|
|
558
599
|
execute_or_queue_command(command, &block)
|
559
600
|
end
|
560
601
|
|
561
|
-
# Updates a log bucket.
|
562
|
-
#
|
563
|
-
# retention period is decreased and the bucket is locked, FAILED_PRECONDITION
|
564
|
-
# will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED, then
|
565
|
-
# FAILED_PRECONDITION will be returned.After a bucket has been created, the
|
602
|
+
# Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED,
|
603
|
+
# then FAILED_PRECONDITION will be returned.After a bucket has been created, the
|
566
604
|
# bucket's location cannot be changed.
|
567
605
|
# @param [String] name
|
568
606
|
# Required. The full resource name of the bucket to update. "projects/[
|
@@ -648,6 +686,54 @@ module Google
|
|
648
686
|
execute_or_queue_command(command, &block)
|
649
687
|
end
|
650
688
|
|
689
|
+
# Updates a log bucket asynchronously.If the bucket has a lifecycle_state of
|
690
|
+
# DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has
|
691
|
+
# been created, the bucket's location cannot be changed.
|
692
|
+
# @param [String] name
|
693
|
+
# Required. The full resource name of the bucket to update. "projects/[
|
694
|
+
# PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
|
695
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
|
696
|
+
# [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
|
697
|
+
# FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/
|
698
|
+
# my-project/locations/global/buckets/my-bucket"
|
699
|
+
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
700
|
+
# @param [String] update_mask
|
701
|
+
# Required. Field mask that specifies the fields in bucket that need an update.
|
702
|
+
# A bucket field will be overwritten if, and only if, it is in the update mask.
|
703
|
+
# name and output only fields cannot be updated.For a detailed FieldMask
|
704
|
+
# definition, see: https://developers.google.com/protocol-buffers/docs/reference/
|
705
|
+
# google.protobuf#google.protobuf.FieldMaskFor example: updateMask=
|
706
|
+
# retention_days
|
707
|
+
# @param [String] fields
|
708
|
+
# Selector specifying which fields to include in a partial response.
|
709
|
+
# @param [String] quota_user
|
710
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
711
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
712
|
+
# @param [Google::Apis::RequestOptions] options
|
713
|
+
# Request-specific options
|
714
|
+
#
|
715
|
+
# @yield [result, err] Result & error if block supplied
|
716
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
717
|
+
# @yieldparam err [StandardError] error object if request failed
|
718
|
+
#
|
719
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
720
|
+
#
|
721
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
722
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
723
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
724
|
+
def update_billing_account_location_bucket_async(name, log_bucket_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
725
|
+
command = make_simple_command(:post, 'v2/{+name}:updateAsync', options)
|
726
|
+
command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
727
|
+
command.request_object = log_bucket_object
|
728
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
729
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
730
|
+
command.params['name'] = name unless name.nil?
|
731
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
732
|
+
command.query['fields'] = fields unless fields.nil?
|
733
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
734
|
+
execute_or_queue_command(command, &block)
|
735
|
+
end
|
736
|
+
|
651
737
|
# Creates a view over log entries in a log bucket. A bucket may contain a
|
652
738
|
# maximum of 30 views.
|
653
739
|
# @param [String] parent
|
@@ -2149,6 +2235,47 @@ module Google
|
|
2149
2235
|
execute_or_queue_command(command, &block)
|
2150
2236
|
end
|
2151
2237
|
|
2238
|
+
# Creates a log bucket asynchronously that can be used to store log entries.
|
2239
|
+
# After a bucket has been created, the bucket's location cannot be changed.
|
2240
|
+
# @param [String] parent
|
2241
|
+
# Required. The resource in which to create the log bucket: "projects/[
|
2242
|
+
# PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/
|
2243
|
+
# locations/global"
|
2244
|
+
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
2245
|
+
# @param [String] bucket_id
|
2246
|
+
# Required. A client-assigned identifier such as "my-bucket". Identifiers are
|
2247
|
+
# limited to 100 characters and can include only letters, digits, underscores,
|
2248
|
+
# hyphens, and periods.
|
2249
|
+
# @param [String] fields
|
2250
|
+
# Selector specifying which fields to include in a partial response.
|
2251
|
+
# @param [String] quota_user
|
2252
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2253
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2254
|
+
# @param [Google::Apis::RequestOptions] options
|
2255
|
+
# Request-specific options
|
2256
|
+
#
|
2257
|
+
# @yield [result, err] Result & error if block supplied
|
2258
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
2259
|
+
# @yieldparam err [StandardError] error object if request failed
|
2260
|
+
#
|
2261
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
2262
|
+
#
|
2263
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2264
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2265
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2266
|
+
def create_folder_location_bucket_async(parent, log_bucket_object = nil, bucket_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2267
|
+
command = make_simple_command(:post, 'v2/{+parent}/buckets:createAsync', options)
|
2268
|
+
command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
2269
|
+
command.request_object = log_bucket_object
|
2270
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
2271
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
2272
|
+
command.params['parent'] = parent unless parent.nil?
|
2273
|
+
command.query['bucketId'] = bucket_id unless bucket_id.nil?
|
2274
|
+
command.query['fields'] = fields unless fields.nil?
|
2275
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2276
|
+
execute_or_queue_command(command, &block)
|
2277
|
+
end
|
2278
|
+
|
2152
2279
|
# Deletes a log bucket.Changes the bucket's lifecycle_state to the
|
2153
2280
|
# DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log
|
2154
2281
|
# entries in the bucket will be permanently deleted.
|
@@ -2267,11 +2394,8 @@ module Google
|
|
2267
2394
|
execute_or_queue_command(command, &block)
|
2268
2395
|
end
|
2269
2396
|
|
2270
|
-
# Updates a log bucket.
|
2271
|
-
#
|
2272
|
-
# retention period is decreased and the bucket is locked, FAILED_PRECONDITION
|
2273
|
-
# will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED, then
|
2274
|
-
# FAILED_PRECONDITION will be returned.After a bucket has been created, the
|
2397
|
+
# Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED,
|
2398
|
+
# then FAILED_PRECONDITION will be returned.After a bucket has been created, the
|
2275
2399
|
# bucket's location cannot be changed.
|
2276
2400
|
# @param [String] name
|
2277
2401
|
# Required. The full resource name of the bucket to update. "projects/[
|
@@ -2357,6 +2481,54 @@ module Google
|
|
2357
2481
|
execute_or_queue_command(command, &block)
|
2358
2482
|
end
|
2359
2483
|
|
2484
|
+
# Updates a log bucket asynchronously.If the bucket has a lifecycle_state of
|
2485
|
+
# DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has
|
2486
|
+
# been created, the bucket's location cannot be changed.
|
2487
|
+
# @param [String] name
|
2488
|
+
# Required. The full resource name of the bucket to update. "projects/[
|
2489
|
+
# PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
|
2490
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
|
2491
|
+
# [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
|
2492
|
+
# FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/
|
2493
|
+
# my-project/locations/global/buckets/my-bucket"
|
2494
|
+
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
2495
|
+
# @param [String] update_mask
|
2496
|
+
# Required. Field mask that specifies the fields in bucket that need an update.
|
2497
|
+
# A bucket field will be overwritten if, and only if, it is in the update mask.
|
2498
|
+
# name and output only fields cannot be updated.For a detailed FieldMask
|
2499
|
+
# definition, see: https://developers.google.com/protocol-buffers/docs/reference/
|
2500
|
+
# google.protobuf#google.protobuf.FieldMaskFor example: updateMask=
|
2501
|
+
# retention_days
|
2502
|
+
# @param [String] fields
|
2503
|
+
# Selector specifying which fields to include in a partial response.
|
2504
|
+
# @param [String] quota_user
|
2505
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2506
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2507
|
+
# @param [Google::Apis::RequestOptions] options
|
2508
|
+
# Request-specific options
|
2509
|
+
#
|
2510
|
+
# @yield [result, err] Result & error if block supplied
|
2511
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
2512
|
+
# @yieldparam err [StandardError] error object if request failed
|
2513
|
+
#
|
2514
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
2515
|
+
#
|
2516
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2517
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2518
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2519
|
+
def update_folder_location_bucket_async(name, log_bucket_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2520
|
+
command = make_simple_command(:post, 'v2/{+name}:updateAsync', options)
|
2521
|
+
command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
2522
|
+
command.request_object = log_bucket_object
|
2523
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
2524
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
2525
|
+
command.params['name'] = name unless name.nil?
|
2526
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2527
|
+
command.query['fields'] = fields unless fields.nil?
|
2528
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2529
|
+
execute_or_queue_command(command, &block)
|
2530
|
+
end
|
2531
|
+
|
2360
2532
|
# Creates a view over log entries in a log bucket. A bucket may contain a
|
2361
2533
|
# maximum of 30 views.
|
2362
2534
|
# @param [String] parent
|
@@ -3209,6 +3381,47 @@ module Google
|
|
3209
3381
|
execute_or_queue_command(command, &block)
|
3210
3382
|
end
|
3211
3383
|
|
3384
|
+
# Creates a log bucket asynchronously that can be used to store log entries.
|
3385
|
+
# After a bucket has been created, the bucket's location cannot be changed.
|
3386
|
+
# @param [String] parent
|
3387
|
+
# Required. The resource in which to create the log bucket: "projects/[
|
3388
|
+
# PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/
|
3389
|
+
# locations/global"
|
3390
|
+
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
3391
|
+
# @param [String] bucket_id
|
3392
|
+
# Required. A client-assigned identifier such as "my-bucket". Identifiers are
|
3393
|
+
# limited to 100 characters and can include only letters, digits, underscores,
|
3394
|
+
# hyphens, and periods.
|
3395
|
+
# @param [String] fields
|
3396
|
+
# Selector specifying which fields to include in a partial response.
|
3397
|
+
# @param [String] quota_user
|
3398
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3399
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3400
|
+
# @param [Google::Apis::RequestOptions] options
|
3401
|
+
# Request-specific options
|
3402
|
+
#
|
3403
|
+
# @yield [result, err] Result & error if block supplied
|
3404
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
3405
|
+
# @yieldparam err [StandardError] error object if request failed
|
3406
|
+
#
|
3407
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
3408
|
+
#
|
3409
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3410
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3411
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3412
|
+
def create_location_bucket_async(parent, log_bucket_object = nil, bucket_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3413
|
+
command = make_simple_command(:post, 'v2/{+parent}/buckets:createAsync', options)
|
3414
|
+
command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
3415
|
+
command.request_object = log_bucket_object
|
3416
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
3417
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
3418
|
+
command.params['parent'] = parent unless parent.nil?
|
3419
|
+
command.query['bucketId'] = bucket_id unless bucket_id.nil?
|
3420
|
+
command.query['fields'] = fields unless fields.nil?
|
3421
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3422
|
+
execute_or_queue_command(command, &block)
|
3423
|
+
end
|
3424
|
+
|
3212
3425
|
# Deletes a log bucket.Changes the bucket's lifecycle_state to the
|
3213
3426
|
# DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log
|
3214
3427
|
# entries in the bucket will be permanently deleted.
|
@@ -3327,11 +3540,8 @@ module Google
|
|
3327
3540
|
execute_or_queue_command(command, &block)
|
3328
3541
|
end
|
3329
3542
|
|
3330
|
-
# Updates a log bucket.
|
3331
|
-
#
|
3332
|
-
# retention period is decreased and the bucket is locked, FAILED_PRECONDITION
|
3333
|
-
# will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED, then
|
3334
|
-
# FAILED_PRECONDITION will be returned.After a bucket has been created, the
|
3543
|
+
# Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED,
|
3544
|
+
# then FAILED_PRECONDITION will be returned.After a bucket has been created, the
|
3335
3545
|
# bucket's location cannot be changed.
|
3336
3546
|
# @param [String] name
|
3337
3547
|
# Required. The full resource name of the bucket to update. "projects/[
|
@@ -3417,6 +3627,54 @@ module Google
|
|
3417
3627
|
execute_or_queue_command(command, &block)
|
3418
3628
|
end
|
3419
3629
|
|
3630
|
+
# Updates a log bucket asynchronously.If the bucket has a lifecycle_state of
|
3631
|
+
# DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has
|
3632
|
+
# been created, the bucket's location cannot be changed.
|
3633
|
+
# @param [String] name
|
3634
|
+
# Required. The full resource name of the bucket to update. "projects/[
|
3635
|
+
# PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
|
3636
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
|
3637
|
+
# [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
|
3638
|
+
# FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/
|
3639
|
+
# my-project/locations/global/buckets/my-bucket"
|
3640
|
+
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
3641
|
+
# @param [String] update_mask
|
3642
|
+
# Required. Field mask that specifies the fields in bucket that need an update.
|
3643
|
+
# A bucket field will be overwritten if, and only if, it is in the update mask.
|
3644
|
+
# name and output only fields cannot be updated.For a detailed FieldMask
|
3645
|
+
# definition, see: https://developers.google.com/protocol-buffers/docs/reference/
|
3646
|
+
# google.protobuf#google.protobuf.FieldMaskFor example: updateMask=
|
3647
|
+
# retention_days
|
3648
|
+
# @param [String] fields
|
3649
|
+
# Selector specifying which fields to include in a partial response.
|
3650
|
+
# @param [String] quota_user
|
3651
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3652
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3653
|
+
# @param [Google::Apis::RequestOptions] options
|
3654
|
+
# Request-specific options
|
3655
|
+
#
|
3656
|
+
# @yield [result, err] Result & error if block supplied
|
3657
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
3658
|
+
# @yieldparam err [StandardError] error object if request failed
|
3659
|
+
#
|
3660
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
3661
|
+
#
|
3662
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3663
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3664
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3665
|
+
def update_location_bucket_async(name, log_bucket_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3666
|
+
command = make_simple_command(:post, 'v2/{+name}:updateAsync', options)
|
3667
|
+
command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
3668
|
+
command.request_object = log_bucket_object
|
3669
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
3670
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
3671
|
+
command.params['name'] = name unless name.nil?
|
3672
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3673
|
+
command.query['fields'] = fields unless fields.nil?
|
3674
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3675
|
+
execute_or_queue_command(command, &block)
|
3676
|
+
end
|
3677
|
+
|
3420
3678
|
# Creates a view over log entries in a log bucket. A bucket may contain a
|
3421
3679
|
# maximum of 30 views.
|
3422
3680
|
# @param [String] parent
|
@@ -4352,6 +4610,47 @@ module Google
|
|
4352
4610
|
execute_or_queue_command(command, &block)
|
4353
4611
|
end
|
4354
4612
|
|
4613
|
+
# Creates a log bucket asynchronously that can be used to store log entries.
|
4614
|
+
# After a bucket has been created, the bucket's location cannot be changed.
|
4615
|
+
# @param [String] parent
|
4616
|
+
# Required. The resource in which to create the log bucket: "projects/[
|
4617
|
+
# PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/
|
4618
|
+
# locations/global"
|
4619
|
+
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
4620
|
+
# @param [String] bucket_id
|
4621
|
+
# Required. A client-assigned identifier such as "my-bucket". Identifiers are
|
4622
|
+
# limited to 100 characters and can include only letters, digits, underscores,
|
4623
|
+
# hyphens, and periods.
|
4624
|
+
# @param [String] fields
|
4625
|
+
# Selector specifying which fields to include in a partial response.
|
4626
|
+
# @param [String] quota_user
|
4627
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4628
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4629
|
+
# @param [Google::Apis::RequestOptions] options
|
4630
|
+
# Request-specific options
|
4631
|
+
#
|
4632
|
+
# @yield [result, err] Result & error if block supplied
|
4633
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
4634
|
+
# @yieldparam err [StandardError] error object if request failed
|
4635
|
+
#
|
4636
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
4637
|
+
#
|
4638
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4639
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4640
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4641
|
+
def create_organization_location_bucket_async(parent, log_bucket_object = nil, bucket_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4642
|
+
command = make_simple_command(:post, 'v2/{+parent}/buckets:createAsync', options)
|
4643
|
+
command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
4644
|
+
command.request_object = log_bucket_object
|
4645
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
4646
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
4647
|
+
command.params['parent'] = parent unless parent.nil?
|
4648
|
+
command.query['bucketId'] = bucket_id unless bucket_id.nil?
|
4649
|
+
command.query['fields'] = fields unless fields.nil?
|
4650
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4651
|
+
execute_or_queue_command(command, &block)
|
4652
|
+
end
|
4653
|
+
|
4355
4654
|
# Deletes a log bucket.Changes the bucket's lifecycle_state to the
|
4356
4655
|
# DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log
|
4357
4656
|
# entries in the bucket will be permanently deleted.
|
@@ -4470,11 +4769,8 @@ module Google
|
|
4470
4769
|
execute_or_queue_command(command, &block)
|
4471
4770
|
end
|
4472
4771
|
|
4473
|
-
# Updates a log bucket.
|
4474
|
-
#
|
4475
|
-
# retention period is decreased and the bucket is locked, FAILED_PRECONDITION
|
4476
|
-
# will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED, then
|
4477
|
-
# FAILED_PRECONDITION will be returned.After a bucket has been created, the
|
4772
|
+
# Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED,
|
4773
|
+
# then FAILED_PRECONDITION will be returned.After a bucket has been created, the
|
4478
4774
|
# bucket's location cannot be changed.
|
4479
4775
|
# @param [String] name
|
4480
4776
|
# Required. The full resource name of the bucket to update. "projects/[
|
@@ -4560,6 +4856,54 @@ module Google
|
|
4560
4856
|
execute_or_queue_command(command, &block)
|
4561
4857
|
end
|
4562
4858
|
|
4859
|
+
# Updates a log bucket asynchronously.If the bucket has a lifecycle_state of
|
4860
|
+
# DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has
|
4861
|
+
# been created, the bucket's location cannot be changed.
|
4862
|
+
# @param [String] name
|
4863
|
+
# Required. The full resource name of the bucket to update. "projects/[
|
4864
|
+
# PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
|
4865
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
|
4866
|
+
# [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
|
4867
|
+
# FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/
|
4868
|
+
# my-project/locations/global/buckets/my-bucket"
|
4869
|
+
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
4870
|
+
# @param [String] update_mask
|
4871
|
+
# Required. Field mask that specifies the fields in bucket that need an update.
|
4872
|
+
# A bucket field will be overwritten if, and only if, it is in the update mask.
|
4873
|
+
# name and output only fields cannot be updated.For a detailed FieldMask
|
4874
|
+
# definition, see: https://developers.google.com/protocol-buffers/docs/reference/
|
4875
|
+
# google.protobuf#google.protobuf.FieldMaskFor example: updateMask=
|
4876
|
+
# retention_days
|
4877
|
+
# @param [String] fields
|
4878
|
+
# Selector specifying which fields to include in a partial response.
|
4879
|
+
# @param [String] quota_user
|
4880
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4881
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4882
|
+
# @param [Google::Apis::RequestOptions] options
|
4883
|
+
# Request-specific options
|
4884
|
+
#
|
4885
|
+
# @yield [result, err] Result & error if block supplied
|
4886
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
4887
|
+
# @yieldparam err [StandardError] error object if request failed
|
4888
|
+
#
|
4889
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
4890
|
+
#
|
4891
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4892
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4893
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4894
|
+
def update_organization_location_bucket_async(name, log_bucket_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4895
|
+
command = make_simple_command(:post, 'v2/{+name}:updateAsync', options)
|
4896
|
+
command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
4897
|
+
command.request_object = log_bucket_object
|
4898
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
4899
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
4900
|
+
command.params['name'] = name unless name.nil?
|
4901
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
4902
|
+
command.query['fields'] = fields unless fields.nil?
|
4903
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4904
|
+
execute_or_queue_command(command, &block)
|
4905
|
+
end
|
4906
|
+
|
4563
4907
|
# Creates a view over log entries in a log bucket. A bucket may contain a
|
4564
4908
|
# maximum of 30 views.
|
4565
4909
|
# @param [String] parent
|
@@ -5689,6 +6033,47 @@ module Google
|
|
5689
6033
|
execute_or_queue_command(command, &block)
|
5690
6034
|
end
|
5691
6035
|
|
6036
|
+
# Creates a log bucket asynchronously that can be used to store log entries.
|
6037
|
+
# After a bucket has been created, the bucket's location cannot be changed.
|
6038
|
+
# @param [String] parent
|
6039
|
+
# Required. The resource in which to create the log bucket: "projects/[
|
6040
|
+
# PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/
|
6041
|
+
# locations/global"
|
6042
|
+
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
6043
|
+
# @param [String] bucket_id
|
6044
|
+
# Required. A client-assigned identifier such as "my-bucket". Identifiers are
|
6045
|
+
# limited to 100 characters and can include only letters, digits, underscores,
|
6046
|
+
# hyphens, and periods.
|
6047
|
+
# @param [String] fields
|
6048
|
+
# Selector specifying which fields to include in a partial response.
|
6049
|
+
# @param [String] quota_user
|
6050
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6051
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6052
|
+
# @param [Google::Apis::RequestOptions] options
|
6053
|
+
# Request-specific options
|
6054
|
+
#
|
6055
|
+
# @yield [result, err] Result & error if block supplied
|
6056
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
6057
|
+
# @yieldparam err [StandardError] error object if request failed
|
6058
|
+
#
|
6059
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
6060
|
+
#
|
6061
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6062
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6063
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6064
|
+
def create_project_location_bucket_async(parent, log_bucket_object = nil, bucket_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6065
|
+
command = make_simple_command(:post, 'v2/{+parent}/buckets:createAsync', options)
|
6066
|
+
command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
6067
|
+
command.request_object = log_bucket_object
|
6068
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
6069
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
6070
|
+
command.params['parent'] = parent unless parent.nil?
|
6071
|
+
command.query['bucketId'] = bucket_id unless bucket_id.nil?
|
6072
|
+
command.query['fields'] = fields unless fields.nil?
|
6073
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6074
|
+
execute_or_queue_command(command, &block)
|
6075
|
+
end
|
6076
|
+
|
5692
6077
|
# Deletes a log bucket.Changes the bucket's lifecycle_state to the
|
5693
6078
|
# DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log
|
5694
6079
|
# entries in the bucket will be permanently deleted.
|
@@ -5807,11 +6192,8 @@ module Google
|
|
5807
6192
|
execute_or_queue_command(command, &block)
|
5808
6193
|
end
|
5809
6194
|
|
5810
|
-
# Updates a log bucket.
|
5811
|
-
#
|
5812
|
-
# retention period is decreased and the bucket is locked, FAILED_PRECONDITION
|
5813
|
-
# will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED, then
|
5814
|
-
# FAILED_PRECONDITION will be returned.After a bucket has been created, the
|
6195
|
+
# Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED,
|
6196
|
+
# then FAILED_PRECONDITION will be returned.After a bucket has been created, the
|
5815
6197
|
# bucket's location cannot be changed.
|
5816
6198
|
# @param [String] name
|
5817
6199
|
# Required. The full resource name of the bucket to update. "projects/[
|
@@ -5897,6 +6279,54 @@ module Google
|
|
5897
6279
|
execute_or_queue_command(command, &block)
|
5898
6280
|
end
|
5899
6281
|
|
6282
|
+
# Updates a log bucket asynchronously.If the bucket has a lifecycle_state of
|
6283
|
+
# DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has
|
6284
|
+
# been created, the bucket's location cannot be changed.
|
6285
|
+
# @param [String] name
|
6286
|
+
# Required. The full resource name of the bucket to update. "projects/[
|
6287
|
+
# PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
|
6288
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
|
6289
|
+
# [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
|
6290
|
+
# FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/
|
6291
|
+
# my-project/locations/global/buckets/my-bucket"
|
6292
|
+
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
6293
|
+
# @param [String] update_mask
|
6294
|
+
# Required. Field mask that specifies the fields in bucket that need an update.
|
6295
|
+
# A bucket field will be overwritten if, and only if, it is in the update mask.
|
6296
|
+
# name and output only fields cannot be updated.For a detailed FieldMask
|
6297
|
+
# definition, see: https://developers.google.com/protocol-buffers/docs/reference/
|
6298
|
+
# google.protobuf#google.protobuf.FieldMaskFor example: updateMask=
|
6299
|
+
# retention_days
|
6300
|
+
# @param [String] fields
|
6301
|
+
# Selector specifying which fields to include in a partial response.
|
6302
|
+
# @param [String] quota_user
|
6303
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6304
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6305
|
+
# @param [Google::Apis::RequestOptions] options
|
6306
|
+
# Request-specific options
|
6307
|
+
#
|
6308
|
+
# @yield [result, err] Result & error if block supplied
|
6309
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
6310
|
+
# @yieldparam err [StandardError] error object if request failed
|
6311
|
+
#
|
6312
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
6313
|
+
#
|
6314
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6315
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6316
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6317
|
+
def update_project_location_bucket_async(name, log_bucket_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6318
|
+
command = make_simple_command(:post, 'v2/{+name}:updateAsync', options)
|
6319
|
+
command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
6320
|
+
command.request_object = log_bucket_object
|
6321
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
6322
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
6323
|
+
command.params['name'] = name unless name.nil?
|
6324
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
6325
|
+
command.query['fields'] = fields unless fields.nil?
|
6326
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6327
|
+
execute_or_queue_command(command, &block)
|
6328
|
+
end
|
6329
|
+
|
5900
6330
|
# Creates a view over log entries in a log bucket. A bucket may contain a
|
5901
6331
|
# maximum of 30 views.
|
5902
6332
|
# @param [String] parent
|
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.40.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: 2023-
|
11
|
+
date: 2023-02-19 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.11.0
|
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.11.0
|
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/main/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.40.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-logging_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|