Class BucketsResource
The "buckets" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Storage.v1
Assembly: Google.Apis.Storage.v1.dll
Syntax
public class BucketsResource
Constructors
BucketsResource(IClientService)
Constructs a new resource.
Declaration
public BucketsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
Google.Apis.Services.IClientService | service |
Methods
Delete(String)
Permanently deletes an empty bucket.
Declaration
public virtual BucketsResource.DeleteRequest Delete(string bucket)
Parameters
Type | Name | Description |
---|---|---|
System.String | bucket | Name of a bucket. |
Returns
Type | Description |
---|---|
BucketsResource.DeleteRequest |
Get(String)
Returns metadata for the specified bucket.
Declaration
public virtual BucketsResource.GetRequest Get(string bucket)
Parameters
Type | Name | Description |
---|---|---|
System.String | bucket | Name of a bucket. |
Returns
Type | Description |
---|---|
BucketsResource.GetRequest |
GetIamPolicy(String)
Returns an IAM policy for the specified bucket.
Declaration
public virtual BucketsResource.GetIamPolicyRequest GetIamPolicy(string bucket)
Parameters
Type | Name | Description |
---|---|---|
System.String | bucket | Name of a bucket. |
Returns
Type | Description |
---|---|
BucketsResource.GetIamPolicyRequest |
Insert(Bucket, String)
Creates a new bucket.
Declaration
public virtual BucketsResource.InsertRequest Insert(Bucket body, string project)
Parameters
Type | Name | Description |
---|---|---|
Bucket | body | The body of the request. |
System.String | project | A valid API project identifier. |
Returns
Type | Description |
---|---|
BucketsResource.InsertRequest |
List(String)
Retrieves a list of buckets for a given project.
Declaration
public virtual BucketsResource.ListRequest List(string project)
Parameters
Type | Name | Description |
---|---|---|
System.String | project | A valid API project identifier. |
Returns
Type | Description |
---|---|
BucketsResource.ListRequest |
LockRetentionPolicy(String, Int64)
Locks retention policy on a bucket.
Declaration
public virtual BucketsResource.LockRetentionPolicyRequest LockRetentionPolicy(string bucket, long ifMetagenerationMatch)
Parameters
Type | Name | Description |
---|---|---|
System.String | bucket | Name of a bucket. |
System.Int64 | ifMetagenerationMatch | Makes the operation conditional on whether bucket's current metageneration matches the given value. |
Returns
Type | Description |
---|---|
BucketsResource.LockRetentionPolicyRequest |
Patch(Bucket, String)
Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.
Declaration
public virtual BucketsResource.PatchRequest Patch(Bucket body, string bucket)
Parameters
Type | Name | Description |
---|---|---|
Bucket | body | The body of the request. |
System.String | bucket | Name of a bucket. |
Returns
Type | Description |
---|---|
BucketsResource.PatchRequest |
SetIamPolicy(Policy, String)
Updates an IAM policy for the specified bucket.
Declaration
public virtual BucketsResource.SetIamPolicyRequest SetIamPolicy(Policy body, string bucket)
Parameters
Type | Name | Description |
---|---|---|
Policy | body | The body of the request. |
System.String | bucket | Name of a bucket. |
Returns
Type | Description |
---|---|
BucketsResource.SetIamPolicyRequest |
TestIamPermissions(String, Repeatable<String>)
Tests a set of permissions on the given bucket to see which, if any, are held by the caller.
Declaration
public virtual BucketsResource.TestIamPermissionsRequest TestIamPermissions(string bucket, Repeatable<string> permissions)
Parameters
Type | Name | Description |
---|---|---|
System.String | bucket | Name of a bucket. |
Google.Apis.Util.Repeatable<System.String> | permissions | Permissions to test. |
Returns
Type | Description |
---|---|
BucketsResource.TestIamPermissionsRequest |
Update(Bucket, String)
Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.
Declaration
public virtual BucketsResource.UpdateRequest Update(Bucket body, string bucket)
Parameters
Type | Name | Description |
---|---|---|
Bucket | body | The body of the request. |
System.String | bucket | Name of a bucket. |
Returns
Type | Description |
---|---|
BucketsResource.UpdateRequest |