class Google::Apis::StorageV1::Bucket::CorsConfiguration

Attributes

http_method[RW]

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”. Corresponds to the JSON property `method` @return [Array<String>]

max_age_seconds[RW]

The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses. Corresponds to the JSON property `maxAgeSeconds` @return [Fixnum]

origin[RW]

The list of Origins eligible to receive CORS response headers. Note: “*” is permitted in the list of origins, and means “any Origin”. Corresponds to the JSON property `origin` @return [Array<String>]

response_header[RW]

The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains. Corresponds to the JSON property `responseHeader` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/storage_v1/classes.rb, line 291
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/storage_v1/classes.rb, line 296
def update!(**args)
  @max_age_seconds = args[:max_age_seconds] if args.key?(:max_age_seconds)
  @http_method = args[:http_method] if args.key?(:http_method)
  @origin = args[:origin] if args.key?(:origin)
  @response_header = args[:response_header] if args.key?(:response_header)
end