target.apidocs.com.google.api.services.logging.v2.Logging.BillingAccounts.Locations.Buckets.html Maven / Gradle / Ivy
Logging.BillingAccounts.Locations.Buckets (Cloud Logging API v2-rev20240419-2.0.0)
com.google.api.services.logging.v2
Class Logging.BillingAccounts.Locations.Buckets
- java.lang.Object
-
- com.google.api.services.logging.v2.Logging.BillingAccounts.Locations.Buckets
-
- Enclosing class:
- Logging.BillingAccounts.Locations
public class Logging.BillingAccounts.Locations.Buckets
extends Object
The "buckets" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Logging.BillingAccounts.Locations.Buckets.Create
class
Logging.BillingAccounts.Locations.Buckets.CreateAsync
class
Logging.BillingAccounts.Locations.Buckets.Delete
class
Logging.BillingAccounts.Locations.Buckets.Get
class
Logging.BillingAccounts.Locations.Buckets.Links
The "links" collection of methods.
class
Logging.BillingAccounts.Locations.Buckets.List
class
Logging.BillingAccounts.Locations.Buckets.Patch
class
Logging.BillingAccounts.Locations.Buckets.Undelete
class
Logging.BillingAccounts.Locations.Buckets.UpdateAsync
class
Logging.BillingAccounts.Locations.Buckets.Views
The "views" collection of methods.
-
Constructor Summary
Constructors
Constructor and Description
Buckets()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Logging.BillingAccounts.Locations.Buckets.Create
create(String parent,
LogBucket content)
Creates a log bucket that can be used to store log entries.
Logging.BillingAccounts.Locations.Buckets.CreateAsync
createAsync(String parent,
LogBucket content)
Creates a log bucket asynchronously that can be used to store log entries.After a bucket has been
created, the bucket's location cannot be changed.
Logging.BillingAccounts.Locations.Buckets.Delete
delete(String name)
Deletes a log bucket.Changes the bucket's lifecycle_state to the DELETE_REQUESTED state.
Logging.BillingAccounts.Locations.Buckets.Get
get(String name)
Gets a log bucket.
Logging.BillingAccounts.Locations.Buckets.Links
links()
An accessor for creating requests from the Links collection.
Logging.BillingAccounts.Locations.Buckets.List
list(String parent)
Lists log buckets.
Logging.BillingAccounts.Locations.Buckets.Patch
patch(String name,
LogBucket content)
Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED, then
FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location
cannot be changed.
Logging.BillingAccounts.Locations.Buckets.Undelete
undelete(String name,
UndeleteBucketRequest content)
Undeletes a log bucket.
Logging.BillingAccounts.Locations.Buckets.UpdateAsync
updateAsync(String name,
LogBucket content)
Updates a log bucket asynchronously.If the bucket has a lifecycle_state of DELETE_REQUESTED, then
FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location
cannot be changed.
Logging.BillingAccounts.Locations.Buckets.Views
views()
An accessor for creating requests from the Views collection.
-
-
Method Detail
-
create
public Logging.BillingAccounts.Locations.Buckets.Create create(String parent,
LogBucket content)
throws IOException
Creates a log bucket that can be used to store log entries. After a bucket has been created, the
bucket's location cannot be changed.
Create a request for the method "buckets.create".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The resource in which to create the log bucket:
"projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-
project/locations/global"
content
- the LogBucket
- Returns:
- the request
- Throws:
IOException
-
createAsync
public Logging.BillingAccounts.Locations.Buckets.CreateAsync createAsync(String parent,
LogBucket content)
throws IOException
Creates a log bucket asynchronously that can be used to store log entries.After a bucket has been
created, the bucket's location cannot be changed.
Create a request for the method "buckets.createAsync".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The resource in which to create the log bucket:
"projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-
project/locations/global"
content
- the LogBucket
- Returns:
- the request
- Throws:
IOException
-
delete
public Logging.BillingAccounts.Locations.Buckets.Delete delete(String name)
throws IOException
Deletes a log bucket.Changes the bucket's lifecycle_state to the DELETE_REQUESTED state. After 7
days, the bucket will be purged and all log entries in the bucket will be permanently deleted.
Create a request for the method "buckets.delete".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The full resource name of the bucket to delete.
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects
/my-project/locations/global/buckets/my-bucket"
- Returns:
- the request
- Throws:
IOException
-
get
public Logging.BillingAccounts.Locations.Buckets.Get get(String name)
throws IOException
Gets a log bucket.
Create a request for the method "buckets.get".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The resource name of the bucket:
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects
/my-project/locations/global/buckets/my-bucket"
- Returns:
- the request
- Throws:
IOException
-
list
public Logging.BillingAccounts.Locations.Buckets.List list(String parent)
throws IOException
Lists log buckets.
Create a request for the method "buckets.list".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The parent resource whose buckets are to be listed:
"projects/[PROJECT_ID]/locations/[LOCATION_ID]"
"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
"folders/[FOLDER_ID]/locations/[LOCATION_ID]" Note: The locations portion of the resource
must be specified, but supplying the character - in place of LOCATION_ID will return all
buckets.
- Returns:
- the request
- Throws:
IOException
-
patch
public Logging.BillingAccounts.Locations.Buckets.Patch patch(String name,
LogBucket content)
throws IOException
Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED, then
FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location
cannot be changed.
Create a request for the method "buckets.patch".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The full resource name of the bucket to update.
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects
/my-project/locations/global/buckets/my-bucket"
content
- the LogBucket
- Returns:
- the request
- Throws:
IOException
-
undelete
public Logging.BillingAccounts.Locations.Buckets.Undelete undelete(String name,
UndeleteBucketRequest content)
throws IOException
Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period
of 7 days.
Create a request for the method "buckets.undelete".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The full resource name of the bucket to undelete.
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects
/my-project/locations/global/buckets/my-bucket"
content
- the UndeleteBucketRequest
- Returns:
- the request
- Throws:
IOException
-
updateAsync
public Logging.BillingAccounts.Locations.Buckets.UpdateAsync updateAsync(String name,
LogBucket content)
throws IOException
Updates a log bucket asynchronously.If the bucket has a lifecycle_state of DELETE_REQUESTED, then
FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location
cannot be changed.
Create a request for the method "buckets.updateAsync".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The full resource name of the bucket to update.
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects
/my-project/locations/global/buckets/my-bucket"
content
- the LogBucket
- Returns:
- the request
- Throws:
IOException
-
links
public Logging.BillingAccounts.Locations.Buckets.Links links()
An accessor for creating requests from the Links collection.
The typical use is:
Logging logging = new Logging(...);
Logging.Links.List request = logging.links().list(parameters ...)
- Returns:
- the resource collection
-
views
public Logging.BillingAccounts.Locations.Buckets.Views views()
An accessor for creating requests from the Views collection.
The typical use is:
Logging logging = new Logging(...);
Logging.Views.List request = logging.views().list(parameters ...)
- Returns:
- the resource collection
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy