google-api-client 0.37.0 → 0.37.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +76 -0
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +236 -22
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +104 -0
- data/generated/google/apis/accesscontextmanager_v1/service.rb +135 -0
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +24 -22
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +64 -0
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +31 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +10 -1
- data/generated/google/apis/chat_v1/representations.rb +1 -0
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +98 -34
- data/generated/google/apis/cloudasset_v1/representations.rb +19 -0
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +152 -151
- data/generated/google/apis/cloudidentity_v1/representations.rb +72 -72
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +0 -560
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +0 -226
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtrace_v2beta1.rb +44 -0
- data/generated/google/apis/cloudtrace_v2beta1/classes.rb +144 -0
- data/generated/google/apis/cloudtrace_v2beta1/representations.rb +82 -0
- data/generated/google/apis/cloudtrace_v2beta1/service.rb +258 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +190 -46
- data/generated/google/apis/compute_alpha/representations.rb +35 -14
- data/generated/google/apis/compute_alpha/service.rb +40 -56
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +98 -24
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_beta/service.rb +1 -2
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +123 -19
- data/generated/google/apis/compute_v1/representations.rb +19 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +2 -2
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +2 -2
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +4 -3
- data/generated/google/apis/datacatalog_v1beta1/service.rb +190 -17
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +40 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +16 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +67 -0
- data/generated/google/apis/dataproc_v1/representations.rb +23 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +2 -1
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/domainsrdap_v1.rb +1 -1
- data/generated/google/apis/driveactivity_v2.rb +1 -1
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +6 -19
- data/generated/google/apis/file_v1/service.rb +1 -1
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +4 -17
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +10 -5
- data/generated/google/apis/fitness_v1/service.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +3 -3
- data/generated/google/apis/homegraph_v1.rb +1 -1
- data/generated/google/apis/indexing_v3.rb +1 -1
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +84 -0
- data/generated/google/apis/logging_v2/representations.rb +33 -0
- data/generated/google/apis/logging_v2/service.rb +680 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +21 -18
- data/generated/google/apis/monitoring_v3/service.rb +27 -18
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/secretmanager_v1.rb +35 -0
- data/generated/google/apis/secretmanager_v1/classes.rb +970 -0
- data/generated/google/apis/secretmanager_v1/representations.rb +388 -0
- data/generated/google/apis/secretmanager_v1/service.rb +675 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +36 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +19 -0
- data/generated/google/apis/servicenetworking_v1/representations.rb +2 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +94 -85
- data/generated/google/apis/storagetransfer_v1/service.rb +17 -11
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +29 -0
- data/generated/google/apis/testing_v1/representations.rb +15 -0
- data/generated/google/apis/toolresults_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +11 -3
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://firebase.google.com
|
27
27
|
module FirebaseV1beta1
|
28
28
|
VERSION = 'V1beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20200215'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://firebase.google.com/docs/dynamic-links/
|
26
26
|
module FirebasedynamiclinksV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20200218'
|
29
29
|
|
30
30
|
# View and administer all your Firebase data and settings
|
31
31
|
AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/fit/rest/
|
26
26
|
module FitnessV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20200213'
|
29
29
|
|
30
30
|
# Use Google Fit to see and store your physical activity data
|
31
31
|
AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read'
|
@@ -77,17 +77,22 @@ module Google
|
|
77
77
|
class AggregateBy
|
78
78
|
include Google::Apis::Core::Hashable
|
79
79
|
|
80
|
-
# A data source ID to aggregate.
|
81
|
-
#
|
82
|
-
#
|
80
|
+
# A data source ID to aggregate. Only data from the specified data source ID
|
81
|
+
# will be included in the aggregation. If specified, this data source must exist;
|
82
|
+
# the OAuth scopes in the supplied credentials must grant read access to this
|
83
|
+
# data type. The dataset in the response will have the same data source ID. Note:
|
84
|
+
# Data can be aggregated by either the dataTypeName or the dataSourceId, not
|
85
|
+
# both.
|
83
86
|
# Corresponds to the JSON property `dataSourceId`
|
84
87
|
# @return [String]
|
85
88
|
attr_accessor :data_source_id
|
86
89
|
|
87
90
|
# The data type to aggregate. All data sources providing this data type will
|
88
91
|
# contribute data to the aggregation. The response will contain a single dataset
|
89
|
-
# for this data type name. The dataset will have a data source ID of derived
|
90
|
-
#
|
92
|
+
# for this data type name. The dataset will have a data source ID of derived::
|
93
|
+
# com.google.android.gms:aggregated. If the user has no data for this data type,
|
94
|
+
# an empty data set will be returned. Note: Data can be aggregated by either the
|
95
|
+
# dataTypeName or the dataSourceId, not both.
|
91
96
|
# Corresponds to the JSON property `dataTypeName`
|
92
97
|
# @return [String]
|
93
98
|
attr_accessor :data_type_name
|
@@ -70,7 +70,7 @@ module Google
|
|
70
70
|
# generate. This format is a combination of some fields from the data source,
|
71
71
|
# and has a specific order. If it doesn't match, the request will fail with an
|
72
72
|
# error.
|
73
|
-
# In addition to the data source fields
|
73
|
+
# In addition to the data source fields included in the data source ID, the
|
74
74
|
# developer project number that is authenticated when creating the data source
|
75
75
|
# is included. This developer project number is obfuscated when read by any
|
76
76
|
# other developer reading public data types.
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/healthcare
|
26
26
|
module HealthcareV1beta1
|
27
27
|
VERSION = 'V1beta1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20200212'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -513,9 +513,9 @@ module Google
|
|
513
513
|
# * The destination dataset must exist.
|
514
514
|
# * The source dataset and destination dataset must both reside in the same
|
515
515
|
# project. De-identifying data across multiple projects is not supported.
|
516
|
-
# * The destination FHIR store must
|
517
|
-
# * The caller must have the
|
518
|
-
# FHIR store.
|
516
|
+
# * The destination FHIR store must exist.
|
517
|
+
# * The caller must have the healthcare.fhirResources.update permission to
|
518
|
+
# write to the destination FHIR store.
|
519
519
|
# Corresponds to the JSON property `destinationStore`
|
520
520
|
# @return [String]
|
521
521
|
attr_accessor :destination_store
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/search/apis/indexing-api/
|
26
26
|
module IndexingV3
|
27
27
|
VERSION = 'V3'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20200214'
|
29
29
|
|
30
30
|
# Submit data to Google for indexing
|
31
31
|
AUTH_INDEXING = 'https://www.googleapis.com/auth/indexing'
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/talent-solution/job-search/docs/
|
27
27
|
module JobsV2
|
28
28
|
VERSION = 'V2'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20200219'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/talent-solution/job-search/docs/
|
27
27
|
module JobsV3
|
28
28
|
VERSION = 'V3'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20200219'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/talent-solution/job-search/docs/
|
27
27
|
module JobsV3p1beta1
|
28
28
|
VERSION = 'V3p1beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20200219'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# @see https://cloud.google.com/logging/docs/
|
30
30
|
module LoggingV2
|
31
31
|
VERSION = 'V2'
|
32
|
-
REVISION = '
|
32
|
+
REVISION = '20200221'
|
33
33
|
|
34
34
|
# View and manage your data across Google Cloud Platform services
|
35
35
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -432,6 +432,33 @@ module Google
|
|
432
432
|
end
|
433
433
|
end
|
434
434
|
|
435
|
+
# The response from ListBuckets (Beta).
|
436
|
+
class ListBucketsResponse
|
437
|
+
include Google::Apis::Core::Hashable
|
438
|
+
|
439
|
+
# A list of buckets.
|
440
|
+
# Corresponds to the JSON property `buckets`
|
441
|
+
# @return [Array<Google::Apis::LoggingV2::LogBucket>]
|
442
|
+
attr_accessor :buckets
|
443
|
+
|
444
|
+
# If there might be more results than appear in this response, then
|
445
|
+
# nextPageToken is included. To get the next set of results, call the same
|
446
|
+
# method again using the value of nextPageToken as pageToken.
|
447
|
+
# Corresponds to the JSON property `nextPageToken`
|
448
|
+
# @return [String]
|
449
|
+
attr_accessor :next_page_token
|
450
|
+
|
451
|
+
def initialize(**args)
|
452
|
+
update!(**args)
|
453
|
+
end
|
454
|
+
|
455
|
+
# Update properties of this object
|
456
|
+
def update!(**args)
|
457
|
+
@buckets = args[:buckets] if args.key?(:buckets)
|
458
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
459
|
+
end
|
460
|
+
end
|
461
|
+
|
435
462
|
# Result returned from ListExclusions.
|
436
463
|
class ListExclusionsResponse
|
437
464
|
include Google::Apis::Core::Hashable
|
@@ -673,6 +700,63 @@ module Google
|
|
673
700
|
end
|
674
701
|
end
|
675
702
|
|
703
|
+
# Describes a repository of logs (Beta).
|
704
|
+
class LogBucket
|
705
|
+
include Google::Apis::Core::Hashable
|
706
|
+
|
707
|
+
# Output only. The creation timestamp of the bucket. This is not set for any of
|
708
|
+
# the default buckets.
|
709
|
+
# Corresponds to the JSON property `createTime`
|
710
|
+
# @return [String]
|
711
|
+
attr_accessor :create_time
|
712
|
+
|
713
|
+
# Describes this bucket.
|
714
|
+
# Corresponds to the JSON property `description`
|
715
|
+
# @return [String]
|
716
|
+
attr_accessor :description
|
717
|
+
|
718
|
+
# The bucket lifecycle state.Output only.
|
719
|
+
# Corresponds to the JSON property `lifecycleState`
|
720
|
+
# @return [String]
|
721
|
+
attr_accessor :lifecycle_state
|
722
|
+
|
723
|
+
# The resource name of the bucket. For example: "projects/my-project-id/
|
724
|
+
# locations/my-location/buckets/my-bucket-id The supported locations are: "
|
725
|
+
# global" "us-central1"For the location of global it is unspecified where logs
|
726
|
+
# are actually stored. Once a bucket has been created, the location can not be
|
727
|
+
# changed.
|
728
|
+
# Corresponds to the JSON property `name`
|
729
|
+
# @return [String]
|
730
|
+
attr_accessor :name
|
731
|
+
|
732
|
+
# Logs will be retained by default for this amount of time, after which they
|
733
|
+
# will automatically be deleted. The minimum retention period is 1 day. If this
|
734
|
+
# value is set to zero at bucket creation time, the default time of 30 days will
|
735
|
+
# be used.
|
736
|
+
# Corresponds to the JSON property `retentionDays`
|
737
|
+
# @return [Fixnum]
|
738
|
+
attr_accessor :retention_days
|
739
|
+
|
740
|
+
# Output only. The last update timestamp of the bucket.
|
741
|
+
# Corresponds to the JSON property `updateTime`
|
742
|
+
# @return [String]
|
743
|
+
attr_accessor :update_time
|
744
|
+
|
745
|
+
def initialize(**args)
|
746
|
+
update!(**args)
|
747
|
+
end
|
748
|
+
|
749
|
+
# Update properties of this object
|
750
|
+
def update!(**args)
|
751
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
752
|
+
@description = args[:description] if args.key?(:description)
|
753
|
+
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
754
|
+
@name = args[:name] if args.key?(:name)
|
755
|
+
@retention_days = args[:retention_days] if args.key?(:retention_days)
|
756
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
757
|
+
end
|
758
|
+
end
|
759
|
+
|
676
760
|
# An individual entry in a log.
|
677
761
|
class LogEntry
|
678
762
|
include Google::Apis::Core::Hashable
|
@@ -76,6 +76,12 @@ module Google
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
79
|
+
class ListBucketsResponse
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
79
85
|
class ListExclusionsResponse
|
80
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
87
|
|
@@ -118,6 +124,12 @@ module Google
|
|
118
124
|
include Google::Apis::Core::JsonObjectSupport
|
119
125
|
end
|
120
126
|
|
127
|
+
class LogBucket
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
121
133
|
class LogEntry
|
122
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
135
|
|
@@ -310,6 +322,15 @@ module Google
|
|
310
322
|
end
|
311
323
|
end
|
312
324
|
|
325
|
+
class ListBucketsResponse
|
326
|
+
# @private
|
327
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
328
|
+
collection :buckets, as: 'buckets', class: Google::Apis::LoggingV2::LogBucket, decorator: Google::Apis::LoggingV2::LogBucket::Representation
|
329
|
+
|
330
|
+
property :next_page_token, as: 'nextPageToken'
|
331
|
+
end
|
332
|
+
end
|
333
|
+
|
313
334
|
class ListExclusionsResponse
|
314
335
|
# @private
|
315
336
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -375,6 +396,18 @@ module Google
|
|
375
396
|
end
|
376
397
|
end
|
377
398
|
|
399
|
+
class LogBucket
|
400
|
+
# @private
|
401
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
402
|
+
property :create_time, as: 'createTime'
|
403
|
+
property :description, as: 'description'
|
404
|
+
property :lifecycle_state, as: 'lifecycleState'
|
405
|
+
property :name, as: 'name'
|
406
|
+
property :retention_days, as: 'retentionDays'
|
407
|
+
property :update_time, as: 'updateTime'
|
408
|
+
end
|
409
|
+
end
|
410
|
+
|
378
411
|
class LogEntry
|
379
412
|
# @private
|
380
413
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -51,6 +51,42 @@ module Google
|
|
51
51
|
@batch_path = 'batch'
|
52
52
|
end
|
53
53
|
|
54
|
+
# Gets a bucket (Beta).
|
55
|
+
# @param [String] name
|
56
|
+
# Required. The resource name of the bucket:
|
57
|
+
# "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
58
|
+
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
59
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
|
60
|
+
# BUCKET_ID]"
|
61
|
+
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
62
|
+
# Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
|
63
|
+
# @param [String] fields
|
64
|
+
# Selector specifying which fields to include in a partial response.
|
65
|
+
# @param [String] quota_user
|
66
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
67
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
68
|
+
# @param [Google::Apis::RequestOptions] options
|
69
|
+
# Request-specific options
|
70
|
+
#
|
71
|
+
# @yield [result, err] Result & error if block supplied
|
72
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
|
73
|
+
# @yieldparam err [StandardError] error object if request failed
|
74
|
+
#
|
75
|
+
# @return [Google::Apis::LoggingV2::LogBucket]
|
76
|
+
#
|
77
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
78
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
79
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
80
|
+
def get_billing_account_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
|
81
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
82
|
+
command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
83
|
+
command.response_class = Google::Apis::LoggingV2::LogBucket
|
84
|
+
command.params['name'] = name unless name.nil?
|
85
|
+
command.query['fields'] = fields unless fields.nil?
|
86
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
87
|
+
execute_or_queue_command(command, &block)
|
88
|
+
end
|
89
|
+
|
54
90
|
# Creates a new exclusion in a specified parent resource. Only log entries
|
55
91
|
# belonging to that resource can be excluded. You can have up to 10 exclusions
|
56
92
|
# in a resource.
|
@@ -252,6 +288,106 @@ module Google
|
|
252
288
|
execute_or_queue_command(command, &block)
|
253
289
|
end
|
254
290
|
|
291
|
+
# Lists buckets (Beta).
|
292
|
+
# @param [String] parent
|
293
|
+
# Required. The parent resource whose buckets are to be listed:
|
294
|
+
# "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
|
295
|
+
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
|
296
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
|
297
|
+
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]"
|
298
|
+
# Note: The locations portion of the resource is required, but supplying the
|
299
|
+
# character - in place of LOCATION_ID will return all buckets.
|
300
|
+
# @param [Fixnum] page_size
|
301
|
+
# Optional. The maximum number of results to return from this request. Non-
|
302
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
303
|
+
# indicates that more results might be available.
|
304
|
+
# @param [String] page_token
|
305
|
+
# Optional. If present, then retrieve the next batch of results from the
|
306
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
307
|
+
# from the previous response. The values of other method parameters should be
|
308
|
+
# identical to those in the previous call.
|
309
|
+
# @param [String] fields
|
310
|
+
# Selector specifying which fields to include in a partial response.
|
311
|
+
# @param [String] quota_user
|
312
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
313
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
314
|
+
# @param [Google::Apis::RequestOptions] options
|
315
|
+
# Request-specific options
|
316
|
+
#
|
317
|
+
# @yield [result, err] Result & error if block supplied
|
318
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListBucketsResponse] parsed result object
|
319
|
+
# @yieldparam err [StandardError] error object if request failed
|
320
|
+
#
|
321
|
+
# @return [Google::Apis::LoggingV2::ListBucketsResponse]
|
322
|
+
#
|
323
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
324
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
325
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
326
|
+
def list_billing_account_location_buckets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
327
|
+
command = make_simple_command(:get, 'v2/{+parent}/buckets', options)
|
328
|
+
command.response_representation = Google::Apis::LoggingV2::ListBucketsResponse::Representation
|
329
|
+
command.response_class = Google::Apis::LoggingV2::ListBucketsResponse
|
330
|
+
command.params['parent'] = parent unless parent.nil?
|
331
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
332
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
333
|
+
command.query['fields'] = fields unless fields.nil?
|
334
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
335
|
+
execute_or_queue_command(command, &block)
|
336
|
+
end
|
337
|
+
|
338
|
+
# Updates a bucket. This method replaces the following fields in the existing
|
339
|
+
# bucket with values from the new bucket: retention_periodIf the retention
|
340
|
+
# period is decreased and the bucket is locked, FAILED_PRECONDITION will be
|
341
|
+
# returned.If the bucket has a LifecycleState of DELETE_REQUESTED,
|
342
|
+
# FAILED_PRECONDITION will be returned.A buckets region may not be modified
|
343
|
+
# after it is created. This method is in Beta.
|
344
|
+
# @param [String] name
|
345
|
+
# Required. The full resource name of the bucket to update.
|
346
|
+
# "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
347
|
+
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
348
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
|
349
|
+
# BUCKET_ID]"
|
350
|
+
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
351
|
+
# Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
|
352
|
+
# Also requires permission "resourcemanager.projects.updateLiens" to set the
|
353
|
+
# locked property
|
354
|
+
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
355
|
+
# @param [String] update_mask
|
356
|
+
# Required. Field mask that specifies the fields in bucket that need an update.
|
357
|
+
# A bucket field will be overwritten if, and only if, it is in the update mask.
|
358
|
+
# name and output only fields cannot be updated.For a detailed FieldMask
|
359
|
+
# definition, see https://developers.google.com/protocol-buffers/docs/reference/
|
360
|
+
# google.protobuf#google.protobuf.FieldMaskExample: updateMask=retention_days.
|
361
|
+
# @param [String] fields
|
362
|
+
# Selector specifying which fields to include in a partial response.
|
363
|
+
# @param [String] quota_user
|
364
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
365
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
366
|
+
# @param [Google::Apis::RequestOptions] options
|
367
|
+
# Request-specific options
|
368
|
+
#
|
369
|
+
# @yield [result, err] Result & error if block supplied
|
370
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
|
371
|
+
# @yieldparam err [StandardError] error object if request failed
|
372
|
+
#
|
373
|
+
# @return [Google::Apis::LoggingV2::LogBucket]
|
374
|
+
#
|
375
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
376
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
377
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
378
|
+
def patch_billing_account_location_bucket(name, log_bucket_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
379
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
380
|
+
command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
381
|
+
command.request_object = log_bucket_object
|
382
|
+
command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
383
|
+
command.response_class = Google::Apis::LoggingV2::LogBucket
|
384
|
+
command.params['name'] = name unless name.nil?
|
385
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
386
|
+
command.query['fields'] = fields unless fields.nil?
|
387
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
388
|
+
execute_or_queue_command(command, &block)
|
389
|
+
end
|
390
|
+
|
255
391
|
# Deletes all the log entries in a log. The log reappears if it receives new
|
256
392
|
# entries. Log entries written shortly before the delete operation might not be
|
257
393
|
# deleted. Entries received after the delete operation with a timestamp before
|
@@ -1099,6 +1235,142 @@ module Google
|
|
1099
1235
|
execute_or_queue_command(command, &block)
|
1100
1236
|
end
|
1101
1237
|
|
1238
|
+
# Gets a bucket (Beta).
|
1239
|
+
# @param [String] name
|
1240
|
+
# Required. The resource name of the bucket:
|
1241
|
+
# "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
1242
|
+
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
1243
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
|
1244
|
+
# BUCKET_ID]"
|
1245
|
+
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
1246
|
+
# Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
|
1247
|
+
# @param [String] fields
|
1248
|
+
# Selector specifying which fields to include in a partial response.
|
1249
|
+
# @param [String] quota_user
|
1250
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1251
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1252
|
+
# @param [Google::Apis::RequestOptions] options
|
1253
|
+
# Request-specific options
|
1254
|
+
#
|
1255
|
+
# @yield [result, err] Result & error if block supplied
|
1256
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
|
1257
|
+
# @yieldparam err [StandardError] error object if request failed
|
1258
|
+
#
|
1259
|
+
# @return [Google::Apis::LoggingV2::LogBucket]
|
1260
|
+
#
|
1261
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1262
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1263
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1264
|
+
def get_folder_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
|
1265
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1266
|
+
command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
1267
|
+
command.response_class = Google::Apis::LoggingV2::LogBucket
|
1268
|
+
command.params['name'] = name unless name.nil?
|
1269
|
+
command.query['fields'] = fields unless fields.nil?
|
1270
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1271
|
+
execute_or_queue_command(command, &block)
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
# Lists buckets (Beta).
|
1275
|
+
# @param [String] parent
|
1276
|
+
# Required. The parent resource whose buckets are to be listed:
|
1277
|
+
# "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
|
1278
|
+
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
|
1279
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
|
1280
|
+
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]"
|
1281
|
+
# Note: The locations portion of the resource is required, but supplying the
|
1282
|
+
# character - in place of LOCATION_ID will return all buckets.
|
1283
|
+
# @param [Fixnum] page_size
|
1284
|
+
# Optional. The maximum number of results to return from this request. Non-
|
1285
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
1286
|
+
# indicates that more results might be available.
|
1287
|
+
# @param [String] page_token
|
1288
|
+
# Optional. If present, then retrieve the next batch of results from the
|
1289
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
1290
|
+
# from the previous response. The values of other method parameters should be
|
1291
|
+
# identical to those in the previous call.
|
1292
|
+
# @param [String] fields
|
1293
|
+
# Selector specifying which fields to include in a partial response.
|
1294
|
+
# @param [String] quota_user
|
1295
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1296
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1297
|
+
# @param [Google::Apis::RequestOptions] options
|
1298
|
+
# Request-specific options
|
1299
|
+
#
|
1300
|
+
# @yield [result, err] Result & error if block supplied
|
1301
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListBucketsResponse] parsed result object
|
1302
|
+
# @yieldparam err [StandardError] error object if request failed
|
1303
|
+
#
|
1304
|
+
# @return [Google::Apis::LoggingV2::ListBucketsResponse]
|
1305
|
+
#
|
1306
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1307
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1308
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1309
|
+
def list_folder_location_buckets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1310
|
+
command = make_simple_command(:get, 'v2/{+parent}/buckets', options)
|
1311
|
+
command.response_representation = Google::Apis::LoggingV2::ListBucketsResponse::Representation
|
1312
|
+
command.response_class = Google::Apis::LoggingV2::ListBucketsResponse
|
1313
|
+
command.params['parent'] = parent unless parent.nil?
|
1314
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1315
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1316
|
+
command.query['fields'] = fields unless fields.nil?
|
1317
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1318
|
+
execute_or_queue_command(command, &block)
|
1319
|
+
end
|
1320
|
+
|
1321
|
+
# Updates a bucket. This method replaces the following fields in the existing
|
1322
|
+
# bucket with values from the new bucket: retention_periodIf the retention
|
1323
|
+
# period is decreased and the bucket is locked, FAILED_PRECONDITION will be
|
1324
|
+
# returned.If the bucket has a LifecycleState of DELETE_REQUESTED,
|
1325
|
+
# FAILED_PRECONDITION will be returned.A buckets region may not be modified
|
1326
|
+
# after it is created. This method is in Beta.
|
1327
|
+
# @param [String] name
|
1328
|
+
# Required. The full resource name of the bucket to update.
|
1329
|
+
# "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
1330
|
+
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
1331
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
|
1332
|
+
# BUCKET_ID]"
|
1333
|
+
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
1334
|
+
# Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
|
1335
|
+
# Also requires permission "resourcemanager.projects.updateLiens" to set the
|
1336
|
+
# locked property
|
1337
|
+
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
1338
|
+
# @param [String] update_mask
|
1339
|
+
# Required. Field mask that specifies the fields in bucket that need an update.
|
1340
|
+
# A bucket field will be overwritten if, and only if, it is in the update mask.
|
1341
|
+
# name and output only fields cannot be updated.For a detailed FieldMask
|
1342
|
+
# definition, see https://developers.google.com/protocol-buffers/docs/reference/
|
1343
|
+
# google.protobuf#google.protobuf.FieldMaskExample: updateMask=retention_days.
|
1344
|
+
# @param [String] fields
|
1345
|
+
# Selector specifying which fields to include in a partial response.
|
1346
|
+
# @param [String] quota_user
|
1347
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1348
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1349
|
+
# @param [Google::Apis::RequestOptions] options
|
1350
|
+
# Request-specific options
|
1351
|
+
#
|
1352
|
+
# @yield [result, err] Result & error if block supplied
|
1353
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
|
1354
|
+
# @yieldparam err [StandardError] error object if request failed
|
1355
|
+
#
|
1356
|
+
# @return [Google::Apis::LoggingV2::LogBucket]
|
1357
|
+
#
|
1358
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1359
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1360
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1361
|
+
def patch_folder_location_bucket(name, log_bucket_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1362
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
1363
|
+
command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
1364
|
+
command.request_object = log_bucket_object
|
1365
|
+
command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
1366
|
+
command.response_class = Google::Apis::LoggingV2::LogBucket
|
1367
|
+
command.params['name'] = name unless name.nil?
|
1368
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1369
|
+
command.query['fields'] = fields unless fields.nil?
|
1370
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1371
|
+
execute_or_queue_command(command, &block)
|
1372
|
+
end
|
1373
|
+
|
1102
1374
|
# Deletes all the log entries in a log. The log reappears if it receives new
|
1103
1375
|
# entries. Log entries written shortly before the delete operation might not be
|
1104
1376
|
# deleted. Entries received after the delete operation with a timestamp before
|
@@ -1478,6 +1750,142 @@ module Google
|
|
1478
1750
|
execute_or_queue_command(command, &block)
|
1479
1751
|
end
|
1480
1752
|
|
1753
|
+
# Gets a bucket (Beta).
|
1754
|
+
# @param [String] name
|
1755
|
+
# Required. The resource name of the bucket:
|
1756
|
+
# "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
1757
|
+
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
1758
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
|
1759
|
+
# BUCKET_ID]"
|
1760
|
+
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
1761
|
+
# Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
|
1762
|
+
# @param [String] fields
|
1763
|
+
# Selector specifying which fields to include in a partial response.
|
1764
|
+
# @param [String] quota_user
|
1765
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1766
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1767
|
+
# @param [Google::Apis::RequestOptions] options
|
1768
|
+
# Request-specific options
|
1769
|
+
#
|
1770
|
+
# @yield [result, err] Result & error if block supplied
|
1771
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
|
1772
|
+
# @yieldparam err [StandardError] error object if request failed
|
1773
|
+
#
|
1774
|
+
# @return [Google::Apis::LoggingV2::LogBucket]
|
1775
|
+
#
|
1776
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1777
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1778
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1779
|
+
def get_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
|
1780
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1781
|
+
command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
1782
|
+
command.response_class = Google::Apis::LoggingV2::LogBucket
|
1783
|
+
command.params['name'] = name unless name.nil?
|
1784
|
+
command.query['fields'] = fields unless fields.nil?
|
1785
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1786
|
+
execute_or_queue_command(command, &block)
|
1787
|
+
end
|
1788
|
+
|
1789
|
+
# Lists buckets (Beta).
|
1790
|
+
# @param [String] parent
|
1791
|
+
# Required. The parent resource whose buckets are to be listed:
|
1792
|
+
# "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
|
1793
|
+
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
|
1794
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
|
1795
|
+
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]"
|
1796
|
+
# Note: The locations portion of the resource is required, but supplying the
|
1797
|
+
# character - in place of LOCATION_ID will return all buckets.
|
1798
|
+
# @param [Fixnum] page_size
|
1799
|
+
# Optional. The maximum number of results to return from this request. Non-
|
1800
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
1801
|
+
# indicates that more results might be available.
|
1802
|
+
# @param [String] page_token
|
1803
|
+
# Optional. If present, then retrieve the next batch of results from the
|
1804
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
1805
|
+
# from the previous response. The values of other method parameters should be
|
1806
|
+
# identical to those in the previous call.
|
1807
|
+
# @param [String] fields
|
1808
|
+
# Selector specifying which fields to include in a partial response.
|
1809
|
+
# @param [String] quota_user
|
1810
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1811
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1812
|
+
# @param [Google::Apis::RequestOptions] options
|
1813
|
+
# Request-specific options
|
1814
|
+
#
|
1815
|
+
# @yield [result, err] Result & error if block supplied
|
1816
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListBucketsResponse] parsed result object
|
1817
|
+
# @yieldparam err [StandardError] error object if request failed
|
1818
|
+
#
|
1819
|
+
# @return [Google::Apis::LoggingV2::ListBucketsResponse]
|
1820
|
+
#
|
1821
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1822
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1823
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1824
|
+
def list_location_buckets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1825
|
+
command = make_simple_command(:get, 'v2/{+parent}/buckets', options)
|
1826
|
+
command.response_representation = Google::Apis::LoggingV2::ListBucketsResponse::Representation
|
1827
|
+
command.response_class = Google::Apis::LoggingV2::ListBucketsResponse
|
1828
|
+
command.params['parent'] = parent unless parent.nil?
|
1829
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1830
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1831
|
+
command.query['fields'] = fields unless fields.nil?
|
1832
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1833
|
+
execute_or_queue_command(command, &block)
|
1834
|
+
end
|
1835
|
+
|
1836
|
+
# Updates a bucket. This method replaces the following fields in the existing
|
1837
|
+
# bucket with values from the new bucket: retention_periodIf the retention
|
1838
|
+
# period is decreased and the bucket is locked, FAILED_PRECONDITION will be
|
1839
|
+
# returned.If the bucket has a LifecycleState of DELETE_REQUESTED,
|
1840
|
+
# FAILED_PRECONDITION will be returned.A buckets region may not be modified
|
1841
|
+
# after it is created. This method is in Beta.
|
1842
|
+
# @param [String] name
|
1843
|
+
# Required. The full resource name of the bucket to update.
|
1844
|
+
# "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
1845
|
+
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
1846
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
|
1847
|
+
# BUCKET_ID]"
|
1848
|
+
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
1849
|
+
# Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
|
1850
|
+
# Also requires permission "resourcemanager.projects.updateLiens" to set the
|
1851
|
+
# locked property
|
1852
|
+
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
1853
|
+
# @param [String] update_mask
|
1854
|
+
# Required. Field mask that specifies the fields in bucket that need an update.
|
1855
|
+
# A bucket field will be overwritten if, and only if, it is in the update mask.
|
1856
|
+
# name and output only fields cannot be updated.For a detailed FieldMask
|
1857
|
+
# definition, see https://developers.google.com/protocol-buffers/docs/reference/
|
1858
|
+
# google.protobuf#google.protobuf.FieldMaskExample: updateMask=retention_days.
|
1859
|
+
# @param [String] fields
|
1860
|
+
# Selector specifying which fields to include in a partial response.
|
1861
|
+
# @param [String] quota_user
|
1862
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1863
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1864
|
+
# @param [Google::Apis::RequestOptions] options
|
1865
|
+
# Request-specific options
|
1866
|
+
#
|
1867
|
+
# @yield [result, err] Result & error if block supplied
|
1868
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
|
1869
|
+
# @yieldparam err [StandardError] error object if request failed
|
1870
|
+
#
|
1871
|
+
# @return [Google::Apis::LoggingV2::LogBucket]
|
1872
|
+
#
|
1873
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1874
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1875
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1876
|
+
def patch_location_bucket(name, log_bucket_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1877
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
1878
|
+
command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
1879
|
+
command.request_object = log_bucket_object
|
1880
|
+
command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
1881
|
+
command.response_class = Google::Apis::LoggingV2::LogBucket
|
1882
|
+
command.params['name'] = name unless name.nil?
|
1883
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1884
|
+
command.query['fields'] = fields unless fields.nil?
|
1885
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1886
|
+
execute_or_queue_command(command, &block)
|
1887
|
+
end
|
1888
|
+
|
1481
1889
|
# Deletes all the log entries in a log. The log reappears if it receives new
|
1482
1890
|
# entries. Log entries written shortly before the delete operation might not be
|
1483
1891
|
# deleted. Entries received after the delete operation with a timestamp before
|
@@ -1895,6 +2303,142 @@ module Google
|
|
1895
2303
|
execute_or_queue_command(command, &block)
|
1896
2304
|
end
|
1897
2305
|
|
2306
|
+
# Gets a bucket (Beta).
|
2307
|
+
# @param [String] name
|
2308
|
+
# Required. The resource name of the bucket:
|
2309
|
+
# "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
2310
|
+
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
2311
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
|
2312
|
+
# BUCKET_ID]"
|
2313
|
+
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
2314
|
+
# Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
|
2315
|
+
# @param [String] fields
|
2316
|
+
# Selector specifying which fields to include in a partial response.
|
2317
|
+
# @param [String] quota_user
|
2318
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2319
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2320
|
+
# @param [Google::Apis::RequestOptions] options
|
2321
|
+
# Request-specific options
|
2322
|
+
#
|
2323
|
+
# @yield [result, err] Result & error if block supplied
|
2324
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
|
2325
|
+
# @yieldparam err [StandardError] error object if request failed
|
2326
|
+
#
|
2327
|
+
# @return [Google::Apis::LoggingV2::LogBucket]
|
2328
|
+
#
|
2329
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2330
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2331
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2332
|
+
def get_organization_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
|
2333
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
2334
|
+
command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
2335
|
+
command.response_class = Google::Apis::LoggingV2::LogBucket
|
2336
|
+
command.params['name'] = name unless name.nil?
|
2337
|
+
command.query['fields'] = fields unless fields.nil?
|
2338
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2339
|
+
execute_or_queue_command(command, &block)
|
2340
|
+
end
|
2341
|
+
|
2342
|
+
# Lists buckets (Beta).
|
2343
|
+
# @param [String] parent
|
2344
|
+
# Required. The parent resource whose buckets are to be listed:
|
2345
|
+
# "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
|
2346
|
+
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
|
2347
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
|
2348
|
+
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]"
|
2349
|
+
# Note: The locations portion of the resource is required, but supplying the
|
2350
|
+
# character - in place of LOCATION_ID will return all buckets.
|
2351
|
+
# @param [Fixnum] page_size
|
2352
|
+
# Optional. The maximum number of results to return from this request. Non-
|
2353
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
2354
|
+
# indicates that more results might be available.
|
2355
|
+
# @param [String] page_token
|
2356
|
+
# Optional. If present, then retrieve the next batch of results from the
|
2357
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
2358
|
+
# from the previous response. The values of other method parameters should be
|
2359
|
+
# identical to those in the previous call.
|
2360
|
+
# @param [String] fields
|
2361
|
+
# Selector specifying which fields to include in a partial response.
|
2362
|
+
# @param [String] quota_user
|
2363
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2364
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2365
|
+
# @param [Google::Apis::RequestOptions] options
|
2366
|
+
# Request-specific options
|
2367
|
+
#
|
2368
|
+
# @yield [result, err] Result & error if block supplied
|
2369
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListBucketsResponse] parsed result object
|
2370
|
+
# @yieldparam err [StandardError] error object if request failed
|
2371
|
+
#
|
2372
|
+
# @return [Google::Apis::LoggingV2::ListBucketsResponse]
|
2373
|
+
#
|
2374
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2375
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2376
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2377
|
+
def list_organization_location_buckets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2378
|
+
command = make_simple_command(:get, 'v2/{+parent}/buckets', options)
|
2379
|
+
command.response_representation = Google::Apis::LoggingV2::ListBucketsResponse::Representation
|
2380
|
+
command.response_class = Google::Apis::LoggingV2::ListBucketsResponse
|
2381
|
+
command.params['parent'] = parent unless parent.nil?
|
2382
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2383
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2384
|
+
command.query['fields'] = fields unless fields.nil?
|
2385
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2386
|
+
execute_or_queue_command(command, &block)
|
2387
|
+
end
|
2388
|
+
|
2389
|
+
# Updates a bucket. This method replaces the following fields in the existing
|
2390
|
+
# bucket with values from the new bucket: retention_periodIf the retention
|
2391
|
+
# period is decreased and the bucket is locked, FAILED_PRECONDITION will be
|
2392
|
+
# returned.If the bucket has a LifecycleState of DELETE_REQUESTED,
|
2393
|
+
# FAILED_PRECONDITION will be returned.A buckets region may not be modified
|
2394
|
+
# after it is created. This method is in Beta.
|
2395
|
+
# @param [String] name
|
2396
|
+
# Required. The full resource name of the bucket to update.
|
2397
|
+
# "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
2398
|
+
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
2399
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
|
2400
|
+
# BUCKET_ID]"
|
2401
|
+
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
2402
|
+
# Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
|
2403
|
+
# Also requires permission "resourcemanager.projects.updateLiens" to set the
|
2404
|
+
# locked property
|
2405
|
+
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
2406
|
+
# @param [String] update_mask
|
2407
|
+
# Required. Field mask that specifies the fields in bucket that need an update.
|
2408
|
+
# A bucket field will be overwritten if, and only if, it is in the update mask.
|
2409
|
+
# name and output only fields cannot be updated.For a detailed FieldMask
|
2410
|
+
# definition, see https://developers.google.com/protocol-buffers/docs/reference/
|
2411
|
+
# google.protobuf#google.protobuf.FieldMaskExample: updateMask=retention_days.
|
2412
|
+
# @param [String] fields
|
2413
|
+
# Selector specifying which fields to include in a partial response.
|
2414
|
+
# @param [String] quota_user
|
2415
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2416
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2417
|
+
# @param [Google::Apis::RequestOptions] options
|
2418
|
+
# Request-specific options
|
2419
|
+
#
|
2420
|
+
# @yield [result, err] Result & error if block supplied
|
2421
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
|
2422
|
+
# @yieldparam err [StandardError] error object if request failed
|
2423
|
+
#
|
2424
|
+
# @return [Google::Apis::LoggingV2::LogBucket]
|
2425
|
+
#
|
2426
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2427
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2428
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2429
|
+
def patch_organization_location_bucket(name, log_bucket_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2430
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
2431
|
+
command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
2432
|
+
command.request_object = log_bucket_object
|
2433
|
+
command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
2434
|
+
command.response_class = Google::Apis::LoggingV2::LogBucket
|
2435
|
+
command.params['name'] = name unless name.nil?
|
2436
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2437
|
+
command.query['fields'] = fields unless fields.nil?
|
2438
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2439
|
+
execute_or_queue_command(command, &block)
|
2440
|
+
end
|
2441
|
+
|
1898
2442
|
# Deletes all the log entries in a log. The log reappears if it receives new
|
1899
2443
|
# entries. Log entries written shortly before the delete operation might not be
|
1900
2444
|
# deleted. Entries received after the delete operation with a timestamp before
|
@@ -2475,6 +3019,142 @@ module Google
|
|
2475
3019
|
execute_or_queue_command(command, &block)
|
2476
3020
|
end
|
2477
3021
|
|
3022
|
+
# Gets a bucket (Beta).
|
3023
|
+
# @param [String] name
|
3024
|
+
# Required. The resource name of the bucket:
|
3025
|
+
# "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
3026
|
+
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
3027
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
|
3028
|
+
# BUCKET_ID]"
|
3029
|
+
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
3030
|
+
# Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
|
3031
|
+
# @param [String] fields
|
3032
|
+
# Selector specifying which fields to include in a partial response.
|
3033
|
+
# @param [String] quota_user
|
3034
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3035
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3036
|
+
# @param [Google::Apis::RequestOptions] options
|
3037
|
+
# Request-specific options
|
3038
|
+
#
|
3039
|
+
# @yield [result, err] Result & error if block supplied
|
3040
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
|
3041
|
+
# @yieldparam err [StandardError] error object if request failed
|
3042
|
+
#
|
3043
|
+
# @return [Google::Apis::LoggingV2::LogBucket]
|
3044
|
+
#
|
3045
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3046
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3047
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3048
|
+
def get_project_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
|
3049
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
3050
|
+
command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
3051
|
+
command.response_class = Google::Apis::LoggingV2::LogBucket
|
3052
|
+
command.params['name'] = name unless name.nil?
|
3053
|
+
command.query['fields'] = fields unless fields.nil?
|
3054
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3055
|
+
execute_or_queue_command(command, &block)
|
3056
|
+
end
|
3057
|
+
|
3058
|
+
# Lists buckets (Beta).
|
3059
|
+
# @param [String] parent
|
3060
|
+
# Required. The parent resource whose buckets are to be listed:
|
3061
|
+
# "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
|
3062
|
+
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
|
3063
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
|
3064
|
+
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]"
|
3065
|
+
# Note: The locations portion of the resource is required, but supplying the
|
3066
|
+
# character - in place of LOCATION_ID will return all buckets.
|
3067
|
+
# @param [Fixnum] page_size
|
3068
|
+
# Optional. The maximum number of results to return from this request. Non-
|
3069
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
3070
|
+
# indicates that more results might be available.
|
3071
|
+
# @param [String] page_token
|
3072
|
+
# Optional. If present, then retrieve the next batch of results from the
|
3073
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
3074
|
+
# from the previous response. The values of other method parameters should be
|
3075
|
+
# identical to those in the previous call.
|
3076
|
+
# @param [String] fields
|
3077
|
+
# Selector specifying which fields to include in a partial response.
|
3078
|
+
# @param [String] quota_user
|
3079
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3080
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3081
|
+
# @param [Google::Apis::RequestOptions] options
|
3082
|
+
# Request-specific options
|
3083
|
+
#
|
3084
|
+
# @yield [result, err] Result & error if block supplied
|
3085
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListBucketsResponse] parsed result object
|
3086
|
+
# @yieldparam err [StandardError] error object if request failed
|
3087
|
+
#
|
3088
|
+
# @return [Google::Apis::LoggingV2::ListBucketsResponse]
|
3089
|
+
#
|
3090
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3091
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3092
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3093
|
+
def list_project_location_buckets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3094
|
+
command = make_simple_command(:get, 'v2/{+parent}/buckets', options)
|
3095
|
+
command.response_representation = Google::Apis::LoggingV2::ListBucketsResponse::Representation
|
3096
|
+
command.response_class = Google::Apis::LoggingV2::ListBucketsResponse
|
3097
|
+
command.params['parent'] = parent unless parent.nil?
|
3098
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3099
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3100
|
+
command.query['fields'] = fields unless fields.nil?
|
3101
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3102
|
+
execute_or_queue_command(command, &block)
|
3103
|
+
end
|
3104
|
+
|
3105
|
+
# Updates a bucket. This method replaces the following fields in the existing
|
3106
|
+
# bucket with values from the new bucket: retention_periodIf the retention
|
3107
|
+
# period is decreased and the bucket is locked, FAILED_PRECONDITION will be
|
3108
|
+
# returned.If the bucket has a LifecycleState of DELETE_REQUESTED,
|
3109
|
+
# FAILED_PRECONDITION will be returned.A buckets region may not be modified
|
3110
|
+
# after it is created. This method is in Beta.
|
3111
|
+
# @param [String] name
|
3112
|
+
# Required. The full resource name of the bucket to update.
|
3113
|
+
# "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
3114
|
+
# "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
3115
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
|
3116
|
+
# BUCKET_ID]"
|
3117
|
+
# "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
3118
|
+
# Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
|
3119
|
+
# Also requires permission "resourcemanager.projects.updateLiens" to set the
|
3120
|
+
# locked property
|
3121
|
+
# @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
|
3122
|
+
# @param [String] update_mask
|
3123
|
+
# Required. Field mask that specifies the fields in bucket that need an update.
|
3124
|
+
# A bucket field will be overwritten if, and only if, it is in the update mask.
|
3125
|
+
# name and output only fields cannot be updated.For a detailed FieldMask
|
3126
|
+
# definition, see https://developers.google.com/protocol-buffers/docs/reference/
|
3127
|
+
# google.protobuf#google.protobuf.FieldMaskExample: updateMask=retention_days.
|
3128
|
+
# @param [String] fields
|
3129
|
+
# Selector specifying which fields to include in a partial response.
|
3130
|
+
# @param [String] quota_user
|
3131
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3132
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3133
|
+
# @param [Google::Apis::RequestOptions] options
|
3134
|
+
# Request-specific options
|
3135
|
+
#
|
3136
|
+
# @yield [result, err] Result & error if block supplied
|
3137
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
|
3138
|
+
# @yieldparam err [StandardError] error object if request failed
|
3139
|
+
#
|
3140
|
+
# @return [Google::Apis::LoggingV2::LogBucket]
|
3141
|
+
#
|
3142
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3143
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3144
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3145
|
+
def patch_project_location_bucket(name, log_bucket_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3146
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
3147
|
+
command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
3148
|
+
command.request_object = log_bucket_object
|
3149
|
+
command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
|
3150
|
+
command.response_class = Google::Apis::LoggingV2::LogBucket
|
3151
|
+
command.params['name'] = name unless name.nil?
|
3152
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3153
|
+
command.query['fields'] = fields unless fields.nil?
|
3154
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3155
|
+
execute_or_queue_command(command, &block)
|
3156
|
+
end
|
3157
|
+
|
2478
3158
|
# Deletes all the log entries in a log. The log reappears if it receives new
|
2479
3159
|
# entries. Log entries written shortly before the delete operation might not be
|
2480
3160
|
# deleted. Entries received after the delete operation with a timestamp before
|