target.apidocs.com.google.api.services.logging.v2.Logging.Organizations.Locations.Buckets.html Maven / Gradle / Ivy
Logging.Organizations.Locations.Buckets (Cloud Logging API v2-rev20240419-2.0.0)
com.google.api.services.logging.v2
Class Logging.Organizations.Locations.Buckets
- java.lang.Object
-
- com.google.api.services.logging.v2.Logging.Organizations.Locations.Buckets
-
- Enclosing class:
- Logging.Organizations.Locations
public class Logging.Organizations.Locations.Buckets
extends Object
The "buckets" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Logging.Organizations.Locations.Buckets.Create
class
Logging.Organizations.Locations.Buckets.CreateAsync
class
Logging.Organizations.Locations.Buckets.Delete
class
Logging.Organizations.Locations.Buckets.Get
class
Logging.Organizations.Locations.Buckets.Links
The "links" collection of methods.
class
Logging.Organizations.Locations.Buckets.List
class
Logging.Organizations.Locations.Buckets.Patch
class
Logging.Organizations.Locations.Buckets.Undelete
class
Logging.Organizations.Locations.Buckets.UpdateAsync
class
Logging.Organizations.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.Organizations.Locations.Buckets.Create
create(String parent,
LogBucket content)
Creates a log bucket that can be used to store log entries.
Logging.Organizations.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.Organizations.Locations.Buckets.Delete
delete(String name)
Deletes a log bucket.Changes the bucket's lifecycle_state to the DELETE_REQUESTED state.
Logging.Organizations.Locations.Buckets.Get
get(String name)
Gets a log bucket.
Logging.Organizations.Locations.Buckets.Links
links()
An accessor for creating requests from the Links collection.
Logging.Organizations.Locations.Buckets.List
list(String parent)
Lists log buckets.
Logging.Organizations.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.Organizations.Locations.Buckets.Undelete
undelete(String name,
UndeleteBucketRequest content)
Undeletes a log bucket.
Logging.Organizations.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.Organizations.Locations.Buckets.Views
views()
An accessor for creating requests from the Views collection.
-
-
Method Detail
-
create
public Logging.Organizations.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.Organizations.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.Organizations.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.Organizations.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.Organizations.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.Organizations.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.Organizations.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.Organizations.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.Organizations.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.Organizations.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