Class: OCI::IdentityDomains::Models::ExtensionEnterprise20User
- Inherits:
-
Object
- Object
- OCI::IdentityDomains::Models::ExtensionEnterprise20User
- Defined in:
- lib/oci/identity_domains/models/extension_enterprise20_user.rb
Overview
Enterprise User
Instance Attribute Summary collapse
-
#cost_center ⇒ String
Identifies the name of a cost center.
-
#department ⇒ String
Identifies the name of a department.
-
#division ⇒ String
Identifies the name of a division.
-
#employee_number ⇒ String
Numeric or alphanumeric identifier assigned to a person, typically based on order of hire or association with an organization.
- #manager ⇒ OCI::IdentityDomains::Models::UserExtManager
-
#organization ⇒ String
Identifies the name of an organization.
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 = {}) ⇒ ExtensionEnterprise20User
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 = {}) ⇒ ExtensionEnterprise20User
Initializes the object
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 |
# File 'lib/oci/identity_domains/models/extension_enterprise20_user.rb', line 139 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.employee_number = attributes[:'employeeNumber'] if attributes[:'employeeNumber'] raise 'You cannot provide both :employeeNumber and :employee_number' if attributes.key?(:'employeeNumber') && attributes.key?(:'employee_number') self.employee_number = attributes[:'employee_number'] if attributes[:'employee_number'] self.cost_center = attributes[:'costCenter'] if attributes[:'costCenter'] raise 'You cannot provide both :costCenter and :cost_center' if attributes.key?(:'costCenter') && attributes.key?(:'cost_center') self.cost_center = attributes[:'cost_center'] if attributes[:'cost_center'] self.organization = attributes[:'organization'] if attributes[:'organization'] self.division = attributes[:'division'] if attributes[:'division'] self.department = attributes[:'department'] if attributes[:'department'] self.manager = attributes[:'manager'] if attributes[:'manager'] end |
Instance Attribute Details
#cost_center ⇒ String
Identifies the name of a cost center.
SCIM++ Properties: - caseExact: false - idcsCsvAttributeName: Cost Center - idcsCsvAttributeNameMappings: [[columnHeaderName:Cost Center]] - idcsPii: true - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
43 44 45 |
# File 'lib/oci/identity_domains/models/extension_enterprise20_user.rb', line 43 def cost_center @cost_center end |
#department ⇒ String
Identifies the name of a department.
SCIM++ Properties: - caseExact: false - idcsCsvAttributeName: Department - idcsCsvAttributeNameMappings: [[columnHeaderName:Department]] - idcsPii: true - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
94 95 96 |
# File 'lib/oci/identity_domains/models/extension_enterprise20_user.rb', line 94 def department @department end |
#division ⇒ String
Identifies the name of a division.
SCIM++ Properties: - caseExact: false - idcsCsvAttributeName: Division - idcsCsvAttributeNameMappings: [[columnHeaderName:Division]] - idcsPii: true - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
77 78 79 |
# File 'lib/oci/identity_domains/models/extension_enterprise20_user.rb', line 77 def division @division end |
#employee_number ⇒ String
Numeric or alphanumeric identifier assigned to a person, typically based on order of hire or association with an organization.
SCIM++ Properties: - caseExact: false - idcsCsvAttributeName: Employee Number - idcsCsvAttributeNameMappings: [[columnHeaderName:Employee Number]] - idcsPii: true - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
26 27 28 |
# File 'lib/oci/identity_domains/models/extension_enterprise20_user.rb', line 26 def employee_number @employee_number end |
#manager ⇒ OCI::IdentityDomains::Models::UserExtManager
97 98 99 |
# File 'lib/oci/identity_domains/models/extension_enterprise20_user.rb', line 97 def manager @manager end |
#organization ⇒ String
Identifies the name of an organization.
SCIM++ Properties: - caseExact: false - idcsCsvAttributeName: Organization - idcsCsvAttributeNameMappings: [[columnHeaderName:Organization Name, deprecatedColumnHeaderName:Organization]] - idcsPii: true - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
60 61 62 |
# File 'lib/oci/identity_domains/models/extension_enterprise20_user.rb', line 60 def organization @organization end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/oci/identity_domains/models/extension_enterprise20_user.rb', line 100 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'employee_number': :'employeeNumber', 'cost_center': :'costCenter', 'organization': :'organization', 'division': :'division', 'department': :'department', 'manager': :'manager' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/oci/identity_domains/models/extension_enterprise20_user.rb', line 114 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'employee_number': :'String', 'cost_center': :'String', 'organization': :'String', 'division': :'String', 'department': :'String', 'manager': :'OCI::IdentityDomains::Models::UserExtManager' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
173 174 175 176 177 178 179 180 181 182 183 |
# File 'lib/oci/identity_domains/models/extension_enterprise20_user.rb', line 173 def ==(other) return true if equal?(other) self.class == other.class && employee_number == other.employee_number && cost_center == other.cost_center && organization == other.organization && division == other.division && department == other.department && manager == other.manager end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/oci/identity_domains/models/extension_enterprise20_user.rb', line 208 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
188 189 190 |
# File 'lib/oci/identity_domains/models/extension_enterprise20_user.rb', line 188 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
197 198 199 |
# File 'lib/oci/identity_domains/models/extension_enterprise20_user.rb', line 197 def hash [employee_number, cost_center, organization, division, department, manager].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
241 242 243 244 245 246 247 248 249 250 |
# File 'lib/oci/identity_domains/models/extension_enterprise20_user.rb', line 241 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
235 236 237 |
# File 'lib/oci/identity_domains/models/extension_enterprise20_user.rb', line 235 def to_s to_hash.to_s end |