| Package | Description |
|---|---|
| com.google.api.services.storage | |
| com.google.api.services.storage.model |
| Modifier and Type | Method and Description |
|---|---|
Storage.Buckets.Insert |
Storage.Buckets.insert(String project,
Bucket content)
Creates a new bucket.
|
Storage.Buckets.Patch |
Storage.Buckets.patch(String bucket,
Bucket content)
Patches a bucket.
|
Storage.Buckets.Update |
Storage.Buckets.update(String bucket,
Bucket content)
Updates a bucket.
|
| Constructor and Description |
|---|
Insert(String project,
Bucket content)
Creates a new bucket.
|
Patch(String bucket,
Bucket content)
Patches a bucket.
|
Update(String bucket,
Bucket content)
Updates a bucket.
|
| Modifier and Type | Method and Description |
|---|---|
Bucket |
Bucket.clone() |
Bucket |
Bucket.set(String fieldName,
Object value) |
Bucket |
Bucket.setAcl(List<BucketAccessControl> acl)
Access controls on the bucket.
|
Bucket |
Bucket.setAutoclass(Bucket.Autoclass autoclass)
The bucket's Autoclass configuration.
|
Bucket |
Bucket.setBilling(Bucket.Billing billing)
The bucket's billing configuration.
|
Bucket |
Bucket.setCors(List<Bucket.Cors> cors)
The bucket's Cross-Origin Resource Sharing (CORS) configuration.
|
Bucket |
Bucket.setCustomPlacementConfig(Bucket.CustomPlacementConfig customPlacementConfig)
The bucket's custom placement configuration for Custom Dual Regions.
|
Bucket |
Bucket.setDefaultEventBasedHold(Boolean defaultEventBasedHold)
The default value for event-based hold on newly created objects in this bucket.
|
Bucket |
Bucket.setDefaultObjectAcl(List<ObjectAccessControl> defaultObjectAcl)
Default access controls to apply to new objects when no ACL is provided.
|
Bucket |
Bucket.setEncryption(Bucket.Encryption encryption)
Encryption configuration for a bucket.
|
Bucket |
Bucket.setEtag(String etag)
HTTP 1.1 Entity tag for the bucket.
|
Bucket |
Bucket.setGeneration(Long generation)
The generation of this bucket.
|
Bucket |
Bucket.setHardDeleteTime(com.google.api.client.util.DateTime hardDeleteTime)
The hard delete time of the bucket in RFC 3339 format.
|
Bucket |
Bucket.setHierarchicalNamespace(Bucket.HierarchicalNamespace hierarchicalNamespace)
The bucket's hierarchical namespace configuration.
|
Bucket |
Bucket.setIamConfiguration(Bucket.IamConfiguration iamConfiguration)
The bucket's IAM configuration.
|
Bucket |
Bucket.setId(String id)
The ID of the bucket.
|
Bucket |
Bucket.setIpFilter(Bucket.IpFilter ipFilter)
The bucket's IP filter configuration.
|
Bucket |
Bucket.setKind(String kind)
The kind of item this is.
|
Bucket |
Bucket.setLabels(Map<String,String> labels)
User-provided labels, in key/value pairs.
|
Bucket |
Bucket.setLifecycle(Bucket.Lifecycle lifecycle)
The bucket's lifecycle configuration.
|
Bucket |
Bucket.setLocation(String location)
The location of the bucket.
|
Bucket |
Bucket.setLocationType(String locationType)
The type of the bucket location.
|
Bucket |
Bucket.setLogging(Bucket.Logging logging)
The bucket's logging configuration, which defines the destination bucket and optional name
prefix for the current bucket's logs.
|
Bucket |
Bucket.setMetageneration(Long metageneration)
The metadata generation of this bucket.
|
Bucket |
Bucket.setName(String name)
The name of the bucket.
|
Bucket |
Bucket.setObjectRetention(Bucket.ObjectRetention objectRetention)
The bucket's object retention config.
|
Bucket |
Bucket.setOwner(Bucket.Owner owner)
The owner of the bucket.
|
Bucket |
Bucket.setProjectNumber(BigInteger projectNumber)
The project number of the project the bucket belongs to.
|
Bucket |
Bucket.setRetentionPolicy(Bucket.RetentionPolicy retentionPolicy)
The bucket's retention policy.
|
Bucket |
Bucket.setRpo(String rpo)
The Recovery Point Objective (RPO) of this bucket.
|
Bucket |
Bucket.setSatisfiesPZI(Boolean satisfiesPZI)
Reserved for future use.
|
Bucket |
Bucket.setSatisfiesPZS(Boolean satisfiesPZS)
Reserved for future use.
|
Bucket |
Bucket.setSelfLink(String selfLink)
The URI of this bucket.
|
Bucket |
Bucket.setSoftDeletePolicy(Bucket.SoftDeletePolicy softDeletePolicy)
The bucket's soft delete policy, which defines the period of time that soft-deleted objects
will be retained, and cannot be permanently deleted.
|
Bucket |
Bucket.setSoftDeleteTime(com.google.api.client.util.DateTime softDeleteTime)
The soft delete time of the bucket in RFC 3339 format.
|
Bucket |
Bucket.setStorageClass(String storageClass)
The bucket's default storage class, used whenever no storageClass is specified for a newly-
created object.
|
Bucket |
Bucket.setTimeCreated(com.google.api.client.util.DateTime timeCreated)
The creation time of the bucket in RFC 3339 format.
|
Bucket |
Bucket.setUpdated(com.google.api.client.util.DateTime updated)
The modification time of the bucket in RFC 3339 format.
|
Bucket |
Bucket.setVersioning(Bucket.Versioning versioning)
The bucket's versioning configuration.
|
Bucket |
Bucket.setWebsite(Bucket.Website website)
The bucket's website configuration, controlling how the service behaves when accessing bucket
contents as a web site.
|
| Modifier and Type | Method and Description |
|---|---|
List<Bucket> |
Buckets.getItems()
The list of items.
|
| Modifier and Type | Method and Description |
|---|---|
Buckets |
Buckets.setItems(List<Bucket> items)
The list of items.
|
Copyright © 2011–2025 Google. All rights reserved.