GoogleCloudStorage::BucketsApi
Constants
Constructors
Instance methods
@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