Package com.google.cloud.storage
Class Storage.DeleteHmacKeyOption
java.lang.Object
com.google.cloud.storage.Option<com.google.cloud.storage.UnifiedOpts.HmacKeyTargetOpt>
com.google.cloud.storage.Storage.DeleteHmacKeyOption
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- Storage
public static class Storage.DeleteHmacKeyOption
extends Option<com.google.cloud.storage.UnifiedOpts.HmacKeyTargetOpt>
Class for specifying deleteHmacKey options
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic Storage.DeleteHmacKeyOption[]Deduplicate any options which are the same parameter.static Storage.DeleteHmacKeyOption[]dedupe(Storage.DeleteHmacKeyOption[] array, Storage.DeleteHmacKeyOption... os) Deduplicate any options which are the same parameter.static Storage.DeleteHmacKeyOption[]dedupe(Collection<Storage.DeleteHmacKeyOption> collection, Storage.DeleteHmacKeyOption... os) Deduplicate any options which are the same parameter.booleanDeprecated.static Storage.DeleteHmacKeyOptionextraHeaders(@NonNull com.google.common.collect.ImmutableMap<String, String> extraHeaders) A set of extra headers to be set for all requests performed within the scope of the operation this option is passed to (a get, read, resumable upload etc).inthashCode()Deprecated.toString()Deprecated.static Storage.DeleteHmacKeyOptionuserProject(@NonNull String userProject) Returns an option to specify the project to be billed for this request.
-
Method Details
-
userProject
@TransportCompatibility({HTTP,GRPC}) public static Storage.DeleteHmacKeyOption userProject(@NonNull String userProject) Returns an option to specify the project to be billed for this request. Required for Requester Pays buckets. -
extraHeaders
@TransportCompatibility({HTTP,GRPC}) public static Storage.DeleteHmacKeyOption extraHeaders(@NonNull com.google.common.collect.ImmutableMap<String, String> extraHeaders) A set of extra headers to be set for all requests performed within the scope of the operation this option is passed to (a get, read, resumable upload etc).If the same header name is specified across multiple options provided to a method, the first occurrence will be the value included in the request(s).
The following headers are not allowed to be specified, and will result in an
IllegalArgumentException.Accept-EncodingCache-ControlConnectionContent-IDContent-LengthContent-RangeContent-Transfer-EncodingContent-TypeDateETagIf-MatchIf-None-MatchKeep-AliveRangeTETrailerTransfer-EncodingUser-AgentX-Goog-Api-ClientX-Goog-Content-Length-RangeX-Goog-Copy-Source-Encryption-AlgorithmX-Goog-Copy-Source-Encryption-KeyX-Goog-Copy-Source-Encryption-Key-Sha256X-Goog-Encryption-AlgorithmX-Goog-Encryption-KeyX-Goog-Encryption-Key-Sha256X-Goog-Gcs-Idempotency-TokenX-Goog-Meta-*X-Goog-User-ProjectX-HTTP-Method-OverrideX-Upload-Content-LengthX-Upload-Content-Type
- Since:
- 2.49.0
-
dedupe
Deduplicate any options which are the same parameter. The value which comes last inoswill be the value included in the return. -
dedupe
public static Storage.DeleteHmacKeyOption[] dedupe(Collection<Storage.DeleteHmacKeyOption> collection, Storage.DeleteHmacKeyOption... os) Deduplicate any options which are the same parameter.The value which comes last in
collectionandoswill be the value included in the return. All options fromoswill override their counterparts incollection. -
dedupe
public static Storage.DeleteHmacKeyOption[] dedupe(Storage.DeleteHmacKeyOption[] array, Storage.DeleteHmacKeyOption... os) Deduplicate any options which are the same parameter.The value which comes last in
collectionandoswill be the value included in the return. All options fromoswill override their counterparts incollection. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-