Class: OCI::IdentityDomains::Models::SettingsCloudGateCorsSettings
- Inherits:
- 
      Object
      
        - Object
- OCI::IdentityDomains::Models::SettingsCloudGateCorsSettings
 
- Defined in:
- lib/oci/identity_domains/models/settings_cloud_gate_cors_settings.rb
Overview
A complex attribute that specifies the Cloud Gate cross origin resource sharing settings.
Added In: 2011192329
SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: complex - uniqueness: none
Instance Attribute Summary collapse
- 
  
    
      #cloud_gate_cors_allow_null_origin  ⇒ BOOLEAN 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Allow Null Origin (CORS) for this tenant. 
- 
  
    
      #cloud_gate_cors_allowed_origins  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Cloud Gate Allowed Cross-Origin Resource Sharing (CORS) Origins for this tenant. 
- 
  
    
      #cloud_gate_cors_enabled  ⇒ BOOLEAN 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Enable Cloud Gate Cross-Origin Resource Sharing (CORS) for this tenant. 
- 
  
    
      #cloud_gate_cors_exposed_headers  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    List of Response Headers Cloud Gate is allowed to expose in the CORS Response Header: Access-Control-Expose-Headers. 
- 
  
    
      #cloud_gate_cors_max_age  ⇒ Integer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Maximum number of seconds a CORS Pre-flight Response may be cached by client. 
Class Method Summary collapse
- 
  
    
      .attribute_map  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Attribute mapping from ruby-style variable name to JSON key. 
- 
  
    
      .swagger_types  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Attribute type mapping. 
Instance Method Summary collapse
- 
  
    
      #==(other)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Checks equality by comparing each attribute. 
- 
  
    
      #build_from_hash(attributes)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Builds the object from hash. 
- #eql?(other) ⇒ Boolean
- 
  
    
      #hash  ⇒ Fixnum 
    
    
  
  
  
  
  
  
  
  
  
    Calculates hash code according to all attributes. 
- 
  
    
      #initialize(attributes = {})  ⇒ SettingsCloudGateCorsSettings 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    Initializes the object. 
- 
  
    
      #to_hash  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    Returns the object in the form of hash. 
- 
  
    
      #to_s  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    Returns the string representation of the object. 
Constructor Details
#initialize(attributes = {}) ⇒ SettingsCloudGateCorsSettings
Initializes the object
| 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | # File 'lib/oci/identity_domains/models/settings_cloud_gate_cors_settings.rb', line 135 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.cloud_gate_cors_allow_null_origin = attributes[:'cloudGateCorsAllowNullOrigin'] unless attributes[:'cloudGateCorsAllowNullOrigin'].nil? raise 'You cannot provide both :cloudGateCorsAllowNullOrigin and :cloud_gate_cors_allow_null_origin' if attributes.key?(:'cloudGateCorsAllowNullOrigin') && attributes.key?(:'cloud_gate_cors_allow_null_origin') self.cloud_gate_cors_allow_null_origin = attributes[:'cloud_gate_cors_allow_null_origin'] unless attributes[:'cloud_gate_cors_allow_null_origin'].nil? self.cloud_gate_cors_enabled = attributes[:'cloudGateCorsEnabled'] unless attributes[:'cloudGateCorsEnabled'].nil? raise 'You cannot provide both :cloudGateCorsEnabled and :cloud_gate_cors_enabled' if attributes.key?(:'cloudGateCorsEnabled') && attributes.key?(:'cloud_gate_cors_enabled') self.cloud_gate_cors_enabled = attributes[:'cloud_gate_cors_enabled'] unless attributes[:'cloud_gate_cors_enabled'].nil? self.cloud_gate_cors_allowed_origins = attributes[:'cloudGateCorsAllowedOrigins'] if attributes[:'cloudGateCorsAllowedOrigins'] raise 'You cannot provide both :cloudGateCorsAllowedOrigins and :cloud_gate_cors_allowed_origins' if attributes.key?(:'cloudGateCorsAllowedOrigins') && attributes.key?(:'cloud_gate_cors_allowed_origins') self.cloud_gate_cors_allowed_origins = attributes[:'cloud_gate_cors_allowed_origins'] if attributes[:'cloud_gate_cors_allowed_origins'] self.cloud_gate_cors_max_age = attributes[:'cloudGateCorsMaxAge'] if attributes[:'cloudGateCorsMaxAge'] raise 'You cannot provide both :cloudGateCorsMaxAge and :cloud_gate_cors_max_age' if attributes.key?(:'cloudGateCorsMaxAge') && attributes.key?(:'cloud_gate_cors_max_age') self.cloud_gate_cors_max_age = attributes[:'cloud_gate_cors_max_age'] if attributes[:'cloud_gate_cors_max_age'] self.cloud_gate_cors_exposed_headers = attributes[:'cloudGateCorsExposedHeaders'] if attributes[:'cloudGateCorsExposedHeaders'] raise 'You cannot provide both :cloudGateCorsExposedHeaders and :cloud_gate_cors_exposed_headers' if attributes.key?(:'cloudGateCorsExposedHeaders') && attributes.key?(:'cloud_gate_cors_exposed_headers') self.cloud_gate_cors_exposed_headers = attributes[:'cloud_gate_cors_exposed_headers'] if attributes[:'cloud_gate_cors_exposed_headers'] end | 
Instance Attribute Details
#cloud_gate_cors_allow_null_origin ⇒ BOOLEAN
Allow Null Origin (CORS) for this tenant.
Added In: 2011192329
SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: boolean - uniqueness: none
| 36 37 38 | # File 'lib/oci/identity_domains/models/settings_cloud_gate_cors_settings.rb', line 36 def cloud_gate_cors_allow_null_origin @cloud_gate_cors_allow_null_origin end | 
#cloud_gate_cors_allowed_origins ⇒ Array<String>
Cloud Gate Allowed Cross-Origin Resource Sharing (CORS) Origins for this tenant.
Added In: 2011192329
SCIM++ Properties: - idcsSearchable: false - multiValued: true - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
| 66 67 68 | # File 'lib/oci/identity_domains/models/settings_cloud_gate_cors_settings.rb', line 66 def cloud_gate_cors_allowed_origins @cloud_gate_cors_allowed_origins end | 
#cloud_gate_cors_enabled ⇒ BOOLEAN
Enable Cloud Gate Cross-Origin Resource Sharing (CORS) for this tenant.
Added In: 2011192329
SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: boolean - uniqueness: none
| 51 52 53 | # File 'lib/oci/identity_domains/models/settings_cloud_gate_cors_settings.rb', line 51 def cloud_gate_cors_enabled @cloud_gate_cors_enabled end | 
#cloud_gate_cors_exposed_headers ⇒ Array<String>
List of Response Headers Cloud Gate is allowed to expose in the CORS Response Header: Access-Control-Expose-Headers.
Added In: 2205182039
SCIM++ Properties: - idcsSearchable: false - multiValued: true - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
| 96 97 98 | # File 'lib/oci/identity_domains/models/settings_cloud_gate_cors_settings.rb', line 96 def cloud_gate_cors_exposed_headers @cloud_gate_cors_exposed_headers end | 
#cloud_gate_cors_max_age ⇒ Integer
Maximum number of seconds a CORS Pre-flight Response may be cached by client.
Added In: 2205182039
SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: integer - uniqueness: none
| 81 82 83 | # File 'lib/oci/identity_domains/models/settings_cloud_gate_cors_settings.rb', line 81 def cloud_gate_cors_max_age @cloud_gate_cors_max_age end | 
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
| 99 100 101 102 103 104 105 106 107 108 109 | # File 'lib/oci/identity_domains/models/settings_cloud_gate_cors_settings.rb', line 99 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'cloud_gate_cors_allow_null_origin': :'cloudGateCorsAllowNullOrigin', 'cloud_gate_cors_enabled': :'cloudGateCorsEnabled', 'cloud_gate_cors_allowed_origins': :'cloudGateCorsAllowedOrigins', 'cloud_gate_cors_max_age': :'cloudGateCorsMaxAge', 'cloud_gate_cors_exposed_headers': :'cloudGateCorsExposedHeaders' # rubocop:enable Style/SymbolLiteral } end | 
.swagger_types ⇒ Object
Attribute type mapping.
| 112 113 114 115 116 117 118 119 120 121 122 | # File 'lib/oci/identity_domains/models/settings_cloud_gate_cors_settings.rb', line 112 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'cloud_gate_cors_allow_null_origin': :'BOOLEAN', 'cloud_gate_cors_enabled': :'BOOLEAN', 'cloud_gate_cors_allowed_origins': :'Array<String>', 'cloud_gate_cors_max_age': :'Integer', 'cloud_gate_cors_exposed_headers': :'Array<String>' # rubocop:enable Style/SymbolLiteral } end | 
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
| 179 180 181 182 183 184 185 186 187 188 | # File 'lib/oci/identity_domains/models/settings_cloud_gate_cors_settings.rb', line 179 def ==(other) return true if equal?(other) self.class == other.class && cloud_gate_cors_allow_null_origin == other.cloud_gate_cors_allow_null_origin && cloud_gate_cors_enabled == other.cloud_gate_cors_enabled && cloud_gate_cors_allowed_origins == other.cloud_gate_cors_allowed_origins && cloud_gate_cors_max_age == other.cloud_gate_cors_max_age && cloud_gate_cors_exposed_headers == other.cloud_gate_cors_exposed_headers end | 
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
| 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 | # File 'lib/oci/identity_domains/models/settings_cloud_gate_cors_settings.rb', line 213 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end | 
#eql?(other) ⇒ Boolean
| 193 194 195 | # File 'lib/oci/identity_domains/models/settings_cloud_gate_cors_settings.rb', line 193 def eql?(other) self == other end | 
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
| 202 203 204 | # File 'lib/oci/identity_domains/models/settings_cloud_gate_cors_settings.rb', line 202 def hash [cloud_gate_cors_allow_null_origin, cloud_gate_cors_enabled, cloud_gate_cors_allowed_origins, cloud_gate_cors_max_age, cloud_gate_cors_exposed_headers].hash end | 
#to_hash ⇒ Hash
Returns the object in the form of hash
| 246 247 248 249 250 251 252 253 254 255 | # File 'lib/oci/identity_domains/models/settings_cloud_gate_cors_settings.rb', line 246 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end | 
#to_s ⇒ String
Returns the string representation of the object
| 240 241 242 | # File 'lib/oci/identity_domains/models/settings_cloud_gate_cors_settings.rb', line 240 def to_s to_hash.to_s end |