Class: OCI::IdentityDomains::Models::IdentitySettingsMyProfile

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ IdentitySettingsMyProfile

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



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. = 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. = 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_passwordBOOLEAN

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

Returns:

  • (BOOLEAN)


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

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

Returns:

  • (BOOLEAN)


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
end

#allow_end_users_to_manage_their_capabilitiesBOOLEAN

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

Returns:

  • (BOOLEAN)


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_settingsBOOLEAN

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

Returns:

  • (BOOLEAN)


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_mapObject

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_typesObject

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.

Parameters:

  • other (Object)

    the other object to be compared



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 &&
     == other. &&
    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

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



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

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


165
166
167
# File 'lib/oci/identity_domains/models/identity_settings_my_profile.rb', line 165

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



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_update_their_security_settings, allow_end_users_to_manage_their_capabilities].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation 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