class GoogleCloudStorage::BucketsApi
- GoogleCloudStorage::BucketsApi
- Reference
- Object
Defined in:
google_cloud_storage/api/buckets_api.crConstant Summary
-
STORAGE_BUCKETS_DELETE_VALID_VALUES_FOR_ALT =
String.static_array("json", "media")
-
STORAGE_BUCKETS_GET_IAM_POLICY_MIN_FOR_OPTIONS_REQUESTED_POLICY_VERSION =
Int32.new("1")
-
STORAGE_BUCKETS_GET_IAM_POLICY_VALID_VALUES_FOR_ALT =
String.static_array("json", "media")
-
STORAGE_BUCKETS_GET_VALID_VALUES_FOR_ALT =
String.static_array("json", "media")
-
STORAGE_BUCKETS_GET_VALID_VALUES_FOR_PROJECTION =
String.static_array("full", "noAcl")
-
STORAGE_BUCKETS_INSERT_VALID_VALUES_FOR_ALT =
String.static_array("json", "media")
-
STORAGE_BUCKETS_INSERT_VALID_VALUES_FOR_PREDEFINED_ACL =
String.static_array("authenticatedRead", "private", "projectPrivate", "publicRead", "publicReadWrite")
-
STORAGE_BUCKETS_INSERT_VALID_VALUES_FOR_PREDEFINED_DEFAULT_OBJECT_ACL =
String.static_array("authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", "publicRead")
-
STORAGE_BUCKETS_INSERT_VALID_VALUES_FOR_PROJECTION =
String.static_array("full", "noAcl")
-
STORAGE_BUCKETS_LIST_MIN_FOR_MAX_RESULTS =
Int32.new("0")
-
STORAGE_BUCKETS_LIST_VALID_VALUES_FOR_ALT =
String.static_array("json", "media")
-
STORAGE_BUCKETS_LIST_VALID_VALUES_FOR_PROJECTION =
String.static_array("full", "noAcl")
-
STORAGE_BUCKETS_LOCK_RETENTION_POLICY_VALID_VALUES_FOR_ALT =
String.static_array("json", "media")
-
STORAGE_BUCKETS_PATCH_VALID_VALUES_FOR_ALT =
String.static_array("json", "media")
-
STORAGE_BUCKETS_PATCH_VALID_VALUES_FOR_PREDEFINED_ACL =
String.static_array("authenticatedRead", "private", "projectPrivate", "publicRead", "publicReadWrite")
-
STORAGE_BUCKETS_PATCH_VALID_VALUES_FOR_PREDEFINED_DEFAULT_OBJECT_ACL =
String.static_array("authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", "publicRead")
-
STORAGE_BUCKETS_PATCH_VALID_VALUES_FOR_PROJECTION =
String.static_array("full", "noAcl")
-
STORAGE_BUCKETS_SET_IAM_POLICY_VALID_VALUES_FOR_ALT =
String.static_array("json", "media")
-
STORAGE_BUCKETS_TEST_IAM_PERMISSIONS_VALID_VALUES_FOR_ALT =
String.static_array("json", "media")
-
STORAGE_BUCKETS_UPDATE_VALID_VALUES_FOR_ALT =
String.static_array("json", "media")
-
STORAGE_BUCKETS_UPDATE_VALID_VALUES_FOR_PREDEFINED_ACL =
String.static_array("authenticatedRead", "private", "projectPrivate", "publicRead", "publicReadWrite")
-
STORAGE_BUCKETS_UPDATE_VALID_VALUES_FOR_PREDEFINED_DEFAULT_OBJECT_ACL =
String.static_array("authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", "publicRead")
-
STORAGE_BUCKETS_UPDATE_VALID_VALUES_FOR_PROJECTION =
String.static_array("full", "noAcl")
Constructors
Instance Method Summary
- #api_client : ApiClient
- #api_client=(api_client : ApiClient)
-
#build_api_request_for_delete(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, if_metageneration_match : String | Nil = nil, if_metageneration_not_match : String | Nil = nil, user_project : String | Nil = nil) : Crest::Request
@return Crest::Request
-
#build_api_request_for_get(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, if_metageneration_match : String | Nil = nil, if_metageneration_not_match : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil) : Crest::Request
@return Crest::Request
-
#build_api_request_for_get_iam_policy(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, options_requested_policy_version : Int32 | Nil = nil, user_project : String | Nil = nil) : Crest::Request
@return Crest::Request
-
#build_api_request_for_insert(*, project : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, predefined_acl : String | Nil = nil, predefined_default_object_acl : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil, bucket : GoogleCloudStorage::Bucket | Nil = nil) : Crest::Request
@return Crest::Request
-
#build_api_request_for_list(*, project : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, max_results : Int32 | Nil = nil, page_token : String | Nil = nil, prefix : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil) : Crest::Request
@return Crest::Request
-
#build_api_request_for_lock_retention_policy(*, bucket : String | Nil = nil, if_metageneration_match : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, user_project : String | Nil = nil) : Crest::Request
@return Crest::Request
-
#build_api_request_for_patch(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, if_metageneration_match : String | Nil = nil, if_metageneration_not_match : String | Nil = nil, predefined_acl : String | Nil = nil, predefined_default_object_acl : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil, bucket2 : GoogleCloudStorage::Bucket | Nil = nil) : Crest::Request
@return Crest::Request
-
#build_api_request_for_set_iam_policy(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, user_project : String | Nil = nil, policy : GoogleCloudStorage::Policy | Nil = nil) : Crest::Request
@return Crest::Request
-
#build_api_request_for_test_iam_permissions(*, bucket : String | Nil = nil, permissions : Array(String) | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, user_project : String | Nil = nil) : Crest::Request
@return Crest::Request
-
#build_api_request_for_update(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, if_metageneration_match : String | Nil = nil, if_metageneration_not_match : String | Nil = nil, predefined_acl : String | Nil = nil, predefined_default_object_acl : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil, bucket2 : GoogleCloudStorage::Bucket | Nil = nil) : Crest::Request
@return Crest::Request
- #client_side_validation?(*args, **options)
- #client_side_validation?(*args, **options, &)
- #debugging?(*args, **options)
- #debugging?(*args, **options, &)
-
#delete(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, if_metageneration_match : String | Nil = nil, if_metageneration_not_match : String | Nil = nil, user_project : String | Nil = nil) : Nil
Permanently deletes an empty bucket.
-
#delete(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, if_metageneration_match : String | Nil = nil, if_metageneration_not_match : String | Nil = nil, user_project : String | Nil = nil, &block : Crest::Response -> ) : Nil
Permanently deletes an empty bucket.
-
#delete_with_http_info(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, if_metageneration_match : String | Nil = nil, if_metageneration_not_match : String | Nil = nil, user_project : String | Nil = nil) : Tuple(Nil, Int32, Hash(String, Array(String) | String))
Permanently deletes an empty bucket.
-
#get(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, if_metageneration_match : String | Nil = nil, if_metageneration_not_match : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil) : GoogleCloudStorage::Bucket
Returns metadata for the specified bucket.
-
#get(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, if_metageneration_match : String | Nil = nil, if_metageneration_not_match : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil, &block : Crest::Response -> ) : Nil
Returns metadata for the specified bucket.
-
#get_iam_policy(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, options_requested_policy_version : Int32 | Nil = nil, user_project : String | Nil = nil) : GoogleCloudStorage::Policy
Returns an IAM policy for the specified bucket.
-
#get_iam_policy(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, options_requested_policy_version : Int32 | Nil = nil, user_project : String | Nil = nil, &block : Crest::Response -> ) : Nil
Returns an IAM policy for the specified bucket.
-
#get_iam_policy_with_http_info(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, options_requested_policy_version : Int32 | Nil = nil, user_project : String | Nil = nil) : Tuple(GoogleCloudStorage::Policy, Int32, Hash(String, Array(String) | String))
Returns an IAM policy for the specified bucket.
-
#get_with_http_info(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, if_metageneration_match : String | Nil = nil, if_metageneration_not_match : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil) : Tuple(GoogleCloudStorage::Bucket, Int32, Hash(String, Array(String) | String))
Returns metadata for the specified bucket.
-
#insert(*, project : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, predefined_acl : String | Nil = nil, predefined_default_object_acl : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil, bucket : GoogleCloudStorage::Bucket | Nil = nil) : GoogleCloudStorage::Bucket
Creates a new bucket.
-
#insert(*, project : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, predefined_acl : String | Nil = nil, predefined_default_object_acl : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil, bucket : GoogleCloudStorage::Bucket | Nil = nil, &block : Crest::Response -> ) : Nil
Creates a new bucket.
-
#insert_with_http_info(*, project : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, predefined_acl : String | Nil = nil, predefined_default_object_acl : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil, bucket : GoogleCloudStorage::Bucket | Nil = nil) : Tuple(GoogleCloudStorage::Bucket, Int32, Hash(String, Array(String) | String))
Creates a new bucket.
-
#list(*, project : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, max_results : Int32 | Nil = nil, page_token : String | Nil = nil, prefix : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil) : GoogleCloudStorage::Buckets
Retrieves a list of buckets for a given project.
-
#list(*, project : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, max_results : Int32 | Nil = nil, page_token : String | Nil = nil, prefix : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil, &block : Crest::Response -> ) : Nil
Retrieves a list of buckets for a given project.
-
#list_with_http_info(*, project : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, max_results : Int32 | Nil = nil, page_token : String | Nil = nil, prefix : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil) : Tuple(GoogleCloudStorage::Buckets, Int32, Hash(String, Array(String) | String))
Retrieves a list of buckets for a given project.
-
#lock_retention_policy(*, bucket : String | Nil = nil, if_metageneration_match : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, user_project : String | Nil = nil) : GoogleCloudStorage::Bucket
Locks retention policy on a bucket.
-
#lock_retention_policy(*, bucket : String | Nil = nil, if_metageneration_match : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, user_project : String | Nil = nil, &block : Crest::Response -> ) : Nil
Locks retention policy on a bucket.
-
#lock_retention_policy_with_http_info(*, bucket : String | Nil = nil, if_metageneration_match : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, user_project : String | Nil = nil) : Tuple(GoogleCloudStorage::Bucket, Int32, Hash(String, Array(String) | String))
Locks retention policy on a bucket.
-
#patch(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, if_metageneration_match : String | Nil = nil, if_metageneration_not_match : String | Nil = nil, predefined_acl : String | Nil = nil, predefined_default_object_acl : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil, bucket2 : GoogleCloudStorage::Bucket | Nil = nil) : GoogleCloudStorage::Bucket
Patches a bucket.
-
#patch(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, if_metageneration_match : String | Nil = nil, if_metageneration_not_match : String | Nil = nil, predefined_acl : String | Nil = nil, predefined_default_object_acl : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil, bucket2 : GoogleCloudStorage::Bucket | Nil = nil, &block : Crest::Response -> ) : Nil
Patches a bucket.
-
#patch_with_http_info(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, if_metageneration_match : String | Nil = nil, if_metageneration_not_match : String | Nil = nil, predefined_acl : String | Nil = nil, predefined_default_object_acl : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil, bucket2 : GoogleCloudStorage::Bucket | Nil = nil) : Tuple(GoogleCloudStorage::Bucket, Int32, Hash(String, Array(String) | String))
Patches a bucket.
-
#set_iam_policy(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, user_project : String | Nil = nil, policy : GoogleCloudStorage::Policy | Nil = nil) : GoogleCloudStorage::Policy
Updates an IAM policy for the specified bucket.
-
#set_iam_policy(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, user_project : String | Nil = nil, policy : GoogleCloudStorage::Policy | Nil = nil, &block : Crest::Response -> ) : Nil
Updates an IAM policy for the specified bucket.
-
#set_iam_policy_with_http_info(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, user_project : String | Nil = nil, policy : GoogleCloudStorage::Policy | Nil = nil) : Tuple(GoogleCloudStorage::Policy, Int32, Hash(String, Array(String) | String))
Updates an IAM policy for the specified bucket.
-
#test_iam_permissions(*, bucket : String | Nil = nil, permissions : Array(String) | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, user_project : String | Nil = nil) : GoogleCloudStorage::TestIamPermissionsResponse
Tests a set of permissions on the given bucket to see which, if any, are held by the caller.
-
#test_iam_permissions(*, bucket : String | Nil = nil, permissions : Array(String) | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, user_project : String | Nil = nil, &block : Crest::Response -> ) : Nil
Tests a set of permissions on the given bucket to see which, if any, are held by the caller.
-
#test_iam_permissions_with_http_info(*, bucket : String | Nil = nil, permissions : Array(String) | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, user_project : String | Nil = nil) : Tuple(GoogleCloudStorage::TestIamPermissionsResponse, Int32, Hash(String, Array(String) | String))
Tests a set of permissions on the given bucket to see which, if any, are held by the caller.
-
#update(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, if_metageneration_match : String | Nil = nil, if_metageneration_not_match : String | Nil = nil, predefined_acl : String | Nil = nil, predefined_default_object_acl : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil, bucket2 : GoogleCloudStorage::Bucket | Nil = nil) : GoogleCloudStorage::Bucket
Updates a bucket.
-
#update(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, if_metageneration_match : String | Nil = nil, if_metageneration_not_match : String | Nil = nil, predefined_acl : String | Nil = nil, predefined_default_object_acl : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil, bucket2 : GoogleCloudStorage::Bucket | Nil = nil, &block : Crest::Response -> ) : Nil
Updates a bucket.
-
#update_with_http_info(*, bucket : String | Nil = nil, alt : String | Nil = nil, fields : String | Nil = nil, key : String | Nil = nil, oauth_token : String | Nil = nil, pretty_print : Bool | Nil = nil, quota_user : String | Nil = nil, upload_type : String | Nil = nil, user_ip : String | Nil = nil, if_metageneration_match : String | Nil = nil, if_metageneration_not_match : String | Nil = nil, predefined_acl : String | Nil = nil, predefined_default_object_acl : String | Nil = nil, projection : String | Nil = nil, user_project : String | Nil = nil, bucket2 : GoogleCloudStorage::Bucket | Nil = nil) : Tuple(GoogleCloudStorage::Bucket, Int32, Hash(String, Array(String) | String))
Updates a bucket.
Constructor Detail
Instance Method Detail
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
Permanently deletes an empty bucket. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param if_metageneration_match [String?] If set, only deletes the bucket if its metageneration matches this value. @optional @param if_metageneration_not_match [String?] If set, only deletes the bucket if its metageneration does not match this value. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @return [Nil]
Permanently deletes an empty bucket. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param if_metageneration_match [String?] If set, only deletes the bucket if its metageneration matches this value. @optional @param if_metageneration_not_match [String?] If set, only deletes the bucket if its metageneration does not match this value. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @return nil
Permanently deletes an empty bucket. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param if_metageneration_match [String?] If set, only deletes the bucket if its metageneration matches this value. @optional @param if_metageneration_not_match [String?] If set, only deletes the bucket if its metageneration does not match this value. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @return [Tuple(Nil, Integer, Hash)] Nil, response status code and response headers
Returns metadata for the specified bucket. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param if_metageneration_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value. @optional @param if_metageneration_not_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value. @optional @param projection [String?] Set of properties to return. Defaults to noAcl. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @return [GoogleCloudStorage::Bucket]
Returns metadata for the specified bucket. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param if_metageneration_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value. @optional @param if_metageneration_not_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value. @optional @param projection [String?] Set of properties to return. Defaults to noAcl. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @return nil
Returns an IAM policy for the specified bucket. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param options_requested_policy_version [Int32?] The IAM policy format version to be returned. If the optionsRequestedPolicyVersion is for an older version that doesn't support part of the requested IAM policy, the request fails. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @return [GoogleCloudStorage::Policy]
Returns an IAM policy for the specified bucket. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param options_requested_policy_version [Int32?] The IAM policy format version to be returned. If the optionsRequestedPolicyVersion is for an older version that doesn't support part of the requested IAM policy, the request fails. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @return nil
Returns an IAM policy for the specified bucket. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param options_requested_policy_version [Int32?] The IAM policy format version to be returned. If the optionsRequestedPolicyVersion is for an older version that doesn't support part of the requested IAM policy, the request fails. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @return [Tuple(GoogleCloudStorage::Policy, Integer, Hash)] GoogleCloudStorage::Policy, response status code and response headers
Returns metadata for the specified bucket. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param if_metageneration_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value. @optional @param if_metageneration_not_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value. @optional @param projection [String?] Set of properties to return. Defaults to noAcl. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @return [Tuple(GoogleCloudStorage::Bucket, Integer, Hash)] GoogleCloudStorage::Bucket, response status code and response headers
Creates a new bucket. @required @param project [String?] A valid API project identifier. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param predefined_acl [String?] Apply a predefined set of access controls to this bucket. @optional @param predefined_default_object_acl [String?] Apply a predefined set of default object access controls to this bucket. @optional @param projection [String?] Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full. @optional @param user_project [String?] The project to be billed for this request. @optional @param bucket [GoogleCloudStorage::Bucket?] @return [GoogleCloudStorage::Bucket]
Creates a new bucket. @required @param project [String?] A valid API project identifier. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param predefined_acl [String?] Apply a predefined set of access controls to this bucket. @optional @param predefined_default_object_acl [String?] Apply a predefined set of default object access controls to this bucket. @optional @param projection [String?] Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full. @optional @param user_project [String?] The project to be billed for this request. @optional @param bucket [GoogleCloudStorage::Bucket?] @return nil
Creates a new bucket. @required @param project [String?] A valid API project identifier. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param predefined_acl [String?] Apply a predefined set of access controls to this bucket. @optional @param predefined_default_object_acl [String?] Apply a predefined set of default object access controls to this bucket. @optional @param projection [String?] Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full. @optional @param user_project [String?] The project to be billed for this request. @optional @param bucket [GoogleCloudStorage::Bucket?] @return [Tuple(GoogleCloudStorage::Bucket, Integer, Hash)] GoogleCloudStorage::Bucket, response status code and response headers
Retrieves a list of buckets for a given project. @required @param project [String?] A valid API project identifier. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param max_results [Int32?] Maximum number of buckets to return in a single response. The service will use this parameter or 1,000 items, whichever is smaller. @optional @param page_token [String?] A previously-returned page token representing part of the larger set of results to view. @optional @param prefix [String?] Filter results to buckets whose names begin with this prefix. @optional @param projection [String?] Set of properties to return. Defaults to noAcl. @optional @param user_project [String?] The project to be billed for this request. @return [GoogleCloudStorage::Buckets]
Retrieves a list of buckets for a given project. @required @param project [String?] A valid API project identifier. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param max_results [Int32?] Maximum number of buckets to return in a single response. The service will use this parameter or 1,000 items, whichever is smaller. @optional @param page_token [String?] A previously-returned page token representing part of the larger set of results to view. @optional @param prefix [String?] Filter results to buckets whose names begin with this prefix. @optional @param projection [String?] Set of properties to return. Defaults to noAcl. @optional @param user_project [String?] The project to be billed for this request. @return nil
Retrieves a list of buckets for a given project. @required @param project [String?] A valid API project identifier. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param max_results [Int32?] Maximum number of buckets to return in a single response. The service will use this parameter or 1,000 items, whichever is smaller. @optional @param page_token [String?] A previously-returned page token representing part of the larger set of results to view. @optional @param prefix [String?] Filter results to buckets whose names begin with this prefix. @optional @param projection [String?] Set of properties to return. Defaults to noAcl. @optional @param user_project [String?] The project to be billed for this request. @return [Tuple(GoogleCloudStorage::Buckets, Integer, Hash)] GoogleCloudStorage::Buckets, response status code and response headers
Locks retention policy on a bucket. @required @param bucket [String?] Name of a bucket. @required @param if_metageneration_match [String?] Makes the operation conditional on whether bucket's current metageneration matches the given value. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @return [GoogleCloudStorage::Bucket]
Locks retention policy on a bucket. @required @param bucket [String?] Name of a bucket. @required @param if_metageneration_match [String?] Makes the operation conditional on whether bucket's current metageneration matches the given value. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @return nil
Locks retention policy on a bucket. @required @param bucket [String?] Name of a bucket. @required @param if_metageneration_match [String?] Makes the operation conditional on whether bucket's current metageneration matches the given value. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @return [Tuple(GoogleCloudStorage::Bucket, Integer, Hash)] GoogleCloudStorage::Bucket, response status code and response headers
Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param if_metageneration_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value. @optional @param if_metageneration_not_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value. @optional @param predefined_acl [String?] Apply a predefined set of access controls to this bucket. @optional @param predefined_default_object_acl [String?] Apply a predefined set of default object access controls to this bucket. @optional @param projection [String?] Set of properties to return. Defaults to full. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @optional @param bucket2 [GoogleCloudStorage::Bucket?] @return [GoogleCloudStorage::Bucket]
Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param if_metageneration_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value. @optional @param if_metageneration_not_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value. @optional @param predefined_acl [String?] Apply a predefined set of access controls to this bucket. @optional @param predefined_default_object_acl [String?] Apply a predefined set of default object access controls to this bucket. @optional @param projection [String?] Set of properties to return. Defaults to full. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @optional @param bucket2 [GoogleCloudStorage::Bucket?] @return nil
Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param if_metageneration_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value. @optional @param if_metageneration_not_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value. @optional @param predefined_acl [String?] Apply a predefined set of access controls to this bucket. @optional @param predefined_default_object_acl [String?] Apply a predefined set of default object access controls to this bucket. @optional @param projection [String?] Set of properties to return. Defaults to full. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @optional @param bucket2 [GoogleCloudStorage::Bucket?] @return [Tuple(GoogleCloudStorage::Bucket, Integer, Hash)] GoogleCloudStorage::Bucket, response status code and response headers
Updates an IAM policy for the specified bucket. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @optional @param policy [GoogleCloudStorage::Policy?] @return [GoogleCloudStorage::Policy]
Updates an IAM policy for the specified bucket. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @optional @param policy [GoogleCloudStorage::Policy?] @return nil
Updates an IAM policy for the specified bucket. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @optional @param policy [GoogleCloudStorage::Policy?] @return [Tuple(GoogleCloudStorage::Policy, Integer, Hash)] GoogleCloudStorage::Policy, response status code and response headers
Tests a set of permissions on the given bucket to see which, if any, are held by the caller. @required @param bucket [String?] Name of a bucket. @required @param permissions [Array(String)?] Permissions to test. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @return [GoogleCloudStorage::TestIamPermissionsResponse]
Tests a set of permissions on the given bucket to see which, if any, are held by the caller. @required @param bucket [String?] Name of a bucket. @required @param permissions [Array(String)?] Permissions to test. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @return nil
Tests a set of permissions on the given bucket to see which, if any, are held by the caller. @required @param bucket [String?] Name of a bucket. @required @param permissions [Array(String)?] Permissions to test. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @return [Tuple(GoogleCloudStorage::TestIamPermissionsResponse, Integer, Hash)] GoogleCloudStorage::TestIamPermissionsResponse, response status code and response headers
Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param if_metageneration_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value. @optional @param if_metageneration_not_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value. @optional @param predefined_acl [String?] Apply a predefined set of access controls to this bucket. @optional @param predefined_default_object_acl [String?] Apply a predefined set of default object access controls to this bucket. @optional @param projection [String?] Set of properties to return. Defaults to full. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @optional @param bucket2 [GoogleCloudStorage::Bucket?] @return [GoogleCloudStorage::Bucket]
Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param if_metageneration_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value. @optional @param if_metageneration_not_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value. @optional @param predefined_acl [String?] Apply a predefined set of access controls to this bucket. @optional @param predefined_default_object_acl [String?] Apply a predefined set of default object access controls to this bucket. @optional @param projection [String?] Set of properties to return. Defaults to full. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @optional @param bucket2 [GoogleCloudStorage::Bucket?] @return nil
Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. @required @param bucket [String?] Name of a bucket. @optional @param alt [String?] Data format for the response. @optional @param fields [String?] Selector specifying which fields to include in a partial response. @optional @param key [String?] API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. @optional @param oauth_token [String?] OAuth 2.0 token for the current user. @optional @param pretty_print [Bool?] Returns response with indentations and line breaks. @optional @param quota_user [String?] An opaque string that represents a user for quota purposes. Must not exceed 40 characters. @optional @param upload_type [String?] Upload protocol for media (e.g. "media", "multipart", "resumable"). @optional @param user_ip [String?] Deprecated. Please use quotaUser instead. @optional @param if_metageneration_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value. @optional @param if_metageneration_not_match [String?] Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value. @optional @param predefined_acl [String?] Apply a predefined set of access controls to this bucket. @optional @param predefined_default_object_acl [String?] Apply a predefined set of default object access controls to this bucket. @optional @param projection [String?] Set of properties to return. Defaults to full. @optional @param user_project [String?] The project to be billed for this request. Required for Requester Pays buckets. @optional @param bucket2 [GoogleCloudStorage::Bucket?] @return [Tuple(GoogleCloudStorage::Bucket, Integer, Hash)] GoogleCloudStorage::Bucket, response status code and response headers