View Source GoogleApi.Storage.V1.Model.BucketCors (google_api_storage v0.45.0)

Attributes

  • maxAgeSeconds (type: integer(), default: nil) - The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
  • method (type: list(String.t), default: nil) - The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and means "any method".
  • origin (type: list(String.t), default: nil) - The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".
  • responseHeader (type: list(String.t), default: nil) - The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Storage.V1.Model.BucketCors{
  maxAgeSeconds: integer() | nil,
  method: [String.t()] | nil,
  origin: [String.t()] | nil,
  responseHeader: [String.t()] | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.