Class: OCI::IdentityDomains::Models::IdentitySettingsMyProfile
- Inherits:
- 
      Object
      
        - Object
- OCI::IdentityDomains::Models::IdentitySettingsMyProfile
 
- Defined in:
- lib/oci/identity_domains/models/identity_settings_my_profile.rb
Overview
Whether to allow users to update their own profile.
Added In: 2207040824
SCIM++ Properties: - caseExact: false - multiValued: false - required: false - type: complex - uniqueness: none
Instance Attribute Summary collapse
- 
  
    
      #allow_end_users_to_change_their_password  ⇒ BOOLEAN 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether to allow users to change their own password. 
- 
  
    
      #allow_end_users_to_link_their_support_account  ⇒ BOOLEAN 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether to allow users to link or unlink their support accounts. 
- 
  
    
      #allow_end_users_to_manage_their_capabilities  ⇒ BOOLEAN 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether to allow users to update their capabilities. 
- 
  
    
      #allow_end_users_to_update_their_security_settings  ⇒ BOOLEAN 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether to allow users to update their security settings. 
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 = {})  ⇒ IdentitySettingsMyProfile 
    
    
  
  
  
    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 = {}) ⇒ IdentitySettingsMyProfile
Initializes the object
| 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | # File 'lib/oci/identity_domains/models/identity_settings_my_profile.rb', line 114 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.allow_end_users_to_change_their_password = attributes[:'allowEndUsersToChangeTheirPassword'] unless attributes[:'allowEndUsersToChangeTheirPassword'].nil? raise 'You cannot provide both :allowEndUsersToChangeTheirPassword and :allow_end_users_to_change_their_password' if attributes.key?(:'allowEndUsersToChangeTheirPassword') && attributes.key?(:'allow_end_users_to_change_their_password') self.allow_end_users_to_change_their_password = attributes[:'allow_end_users_to_change_their_password'] unless attributes[:'allow_end_users_to_change_their_password'].nil? self.allow_end_users_to_link_their_support_account = attributes[:'allowEndUsersToLinkTheirSupportAccount'] unless attributes[:'allowEndUsersToLinkTheirSupportAccount'].nil? raise 'You cannot provide both :allowEndUsersToLinkTheirSupportAccount and :allow_end_users_to_link_their_support_account' if attributes.key?(:'allowEndUsersToLinkTheirSupportAccount') && attributes.key?(:'allow_end_users_to_link_their_support_account') self.allow_end_users_to_link_their_support_account = attributes[:'allow_end_users_to_link_their_support_account'] unless attributes[:'allow_end_users_to_link_their_support_account'].nil? self.allow_end_users_to_update_their_security_settings = attributes[:'allowEndUsersToUpdateTheirSecuritySettings'] unless attributes[:'allowEndUsersToUpdateTheirSecuritySettings'].nil? raise 'You cannot provide both :allowEndUsersToUpdateTheirSecuritySettings and :allow_end_users_to_update_their_security_settings' if attributes.key?(:'allowEndUsersToUpdateTheirSecuritySettings') && attributes.key?(:'allow_end_users_to_update_their_security_settings') self.allow_end_users_to_update_their_security_settings = attributes[:'allow_end_users_to_update_their_security_settings'] unless attributes[:'allow_end_users_to_update_their_security_settings'].nil? self.allow_end_users_to_manage_their_capabilities = attributes[:'allowEndUsersToManageTheirCapabilities'] unless attributes[:'allowEndUsersToManageTheirCapabilities'].nil? raise 'You cannot provide both :allowEndUsersToManageTheirCapabilities and :allow_end_users_to_manage_their_capabilities' if attributes.key?(:'allowEndUsersToManageTheirCapabilities') && attributes.key?(:'allow_end_users_to_manage_their_capabilities') self.allow_end_users_to_manage_their_capabilities = attributes[:'allow_end_users_to_manage_their_capabilities'] unless attributes[:'allow_end_users_to_manage_their_capabilities'].nil? end | 
Instance Attribute Details
#allow_end_users_to_change_their_password ⇒ BOOLEAN
Whether to allow users to change their own password.
Added In: 2207040824
SCIM++ Properties: - caseExact: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: boolean - uniqueness: none
| 33 34 35 | # File 'lib/oci/identity_domains/models/identity_settings_my_profile.rb', line 33 def allow_end_users_to_change_their_password @allow_end_users_to_change_their_password end | 
#allow_end_users_to_link_their_support_account ⇒ BOOLEAN
Whether to allow users to link or unlink their support accounts.
Added In: 2207040824
SCIM++ Properties: - caseExact: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: boolean - uniqueness: none
| 48 49 50 | # File 'lib/oci/identity_domains/models/identity_settings_my_profile.rb', line 48 def allow_end_users_to_link_their_support_account @allow_end_users_to_link_their_support_account end | 
#allow_end_users_to_manage_their_capabilities ⇒ BOOLEAN
Whether to allow users to update their capabilities.
Added In: 2207040824
SCIM++ Properties: - caseExact: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: boolean - uniqueness: none
| 78 79 80 | # File 'lib/oci/identity_domains/models/identity_settings_my_profile.rb', line 78 def allow_end_users_to_manage_their_capabilities @allow_end_users_to_manage_their_capabilities end | 
#allow_end_users_to_update_their_security_settings ⇒ BOOLEAN
Whether to allow users to update their security settings.
Added In: 2207040824
SCIM++ Properties: - caseExact: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: boolean - uniqueness: none
| 63 64 65 | # File 'lib/oci/identity_domains/models/identity_settings_my_profile.rb', line 63 def allow_end_users_to_update_their_security_settings @allow_end_users_to_update_their_security_settings end | 
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
| 81 82 83 84 85 86 87 88 89 90 | # File 'lib/oci/identity_domains/models/identity_settings_my_profile.rb', line 81 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'allow_end_users_to_change_their_password': :'allowEndUsersToChangeTheirPassword', 'allow_end_users_to_link_their_support_account': :'allowEndUsersToLinkTheirSupportAccount', 'allow_end_users_to_update_their_security_settings': :'allowEndUsersToUpdateTheirSecuritySettings', 'allow_end_users_to_manage_their_capabilities': :'allowEndUsersToManageTheirCapabilities' # rubocop:enable Style/SymbolLiteral } end | 
.swagger_types ⇒ Object
Attribute type mapping.
| 93 94 95 96 97 98 99 100 101 102 | # File 'lib/oci/identity_domains/models/identity_settings_my_profile.rb', line 93 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'allow_end_users_to_change_their_password': :'BOOLEAN', 'allow_end_users_to_link_their_support_account': :'BOOLEAN', 'allow_end_users_to_update_their_security_settings': :'BOOLEAN', 'allow_end_users_to_manage_their_capabilities': :'BOOLEAN' # rubocop:enable Style/SymbolLiteral } end | 
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
| 152 153 154 155 156 157 158 159 160 | # File 'lib/oci/identity_domains/models/identity_settings_my_profile.rb', line 152 def ==(other) return true if equal?(other) self.class == other.class && allow_end_users_to_change_their_password == other.allow_end_users_to_change_their_password && allow_end_users_to_link_their_support_account == other.allow_end_users_to_link_their_support_account && allow_end_users_to_update_their_security_settings == other.allow_end_users_to_update_their_security_settings && allow_end_users_to_manage_their_capabilities == other.allow_end_users_to_manage_their_capabilities end | 
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
| 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 | # File 'lib/oci/identity_domains/models/identity_settings_my_profile.rb', line 185 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
| 165 166 167 | # File 'lib/oci/identity_domains/models/identity_settings_my_profile.rb', line 165 def eql?(other) self == other end | 
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
| 174 175 176 | # File 'lib/oci/identity_domains/models/identity_settings_my_profile.rb', line 174 def hash [allow_end_users_to_change_their_password, allow_end_users_to_link_their_support_account, allow_end_users_to_update_their_security_settings, allow_end_users_to_manage_their_capabilities].hash end | 
#to_hash ⇒ Hash
Returns the object in the form of hash
| 218 219 220 221 222 223 224 225 226 227 | # File 'lib/oci/identity_domains/models/identity_settings_my_profile.rb', line 218 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
| 212 213 214 | # File 'lib/oci/identity_domains/models/identity_settings_my_profile.rb', line 212 def to_s to_hash.to_s end |