generated/google/apis/storage_v1/classes.rb in google-api-client-0.11.3 vs generated/google/apis/storage_v1/classes.rb in google-api-client-0.12.0
- old
+ new
@@ -36,12 +36,12 @@
# @return [Google::Apis::StorageV1::Bucket::Billing]
attr_accessor :billing
# The bucket's Cross-Origin Resource Sharing (CORS) configuration.
# Corresponds to the JSON property `cors`
- # @return [Array<Google::Apis::StorageV1::Bucket::CorsConfiguration>]
- attr_accessor :cors_configurations
+ # @return [Array<Google::Apis::StorageV1::Bucket::Cor>]
+ attr_accessor :cors
# Default access controls to apply to new objects when no ACL is provided.
# Corresponds to the JSON property `defaultObjectAcl`
# @return [Array<Google::Apis::StorageV1::ObjectAccessControl>]
attr_accessor :default_object_acl
@@ -148,11 +148,11 @@
# Update properties of this object
def update!(**args)
@acl = args[:acl] if args.key?(:acl)
@billing = args[:billing] if args.key?(:billing)
- @cors_configurations = args[:cors_configurations] if args.key?(:cors_configurations)
+ @cors = args[:cors] if args.key?(:cors)
@default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
@etag = args[:etag] if args.key?(:etag)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@labels = args[:labels] if args.key?(:labels)
@@ -190,11 +190,11 @@
@requester_pays = args[:requester_pays] if args.key?(:requester_pays)
end
end
#
- class CorsConfiguration
+ class Cor
include Google::Apis::Core::Hashable
# The value, in seconds, to return in the Access-Control-Max-Age header used in
# preflight responses.
# Corresponds to the JSON property `maxAgeSeconds`
@@ -204,11 +204,11 @@
# 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>]
- attr_accessor :http_method
+ attr_accessor :method_prop
# 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>]
@@ -225,10 +225,10 @@
end
# Update properties of this object
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)
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
@origin = args[:origin] if args.key?(:origin)
@response_header = args[:response_header] if args.key?(:response_header)
end
end