Class: OCI::Bds::Models::IamUserSyncConfiguration
- Inherits:
-
Object
- Object
- OCI::Bds::Models::IamUserSyncConfiguration
- Defined in:
- lib/oci/bds/models/iam_user_sync_configuration.rb
Overview
Information about the IAM user sync configuration.
Constant Summary collapse
- LIFECYCLE_STATE_ENUM =
[ LIFECYCLE_STATE_CREATING = 'CREATING'.freeze, LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze, LIFECYCLE_STATE_INACTIVE = 'INACTIVE'.freeze, LIFECYCLE_STATE_DELETING = 'DELETING'.freeze, LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze, LIFECYCLE_STATE_FAILED = 'FAILED'.freeze, LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#is_posix_attributes_addition_required ⇒ BOOLEAN
[Required] whether to append POSIX attributes to IAM users.
-
#lifecycle_state ⇒ String
[Required] Lifecycle state of the IAM user sync config.
-
#time_created ⇒ DateTime
[Required] Time when this IAM user sync config was created, shown as an RFC 3339 formatted datetime string.
-
#time_updated ⇒ DateTime
[Required] Time when this IAM user sync config was updated, shown as an RFC 3339 formatted datetime string.
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 = {}) ⇒ IamUserSyncConfiguration
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 = {}) ⇒ IamUserSyncConfiguration
Initializes the object
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/oci/bds/models/iam_user_sync_configuration.rb', line 72 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.is_posix_attributes_addition_required = attributes[:'isPosixAttributesAdditionRequired'] unless attributes[:'isPosixAttributesAdditionRequired'].nil? raise 'You cannot provide both :isPosixAttributesAdditionRequired and :is_posix_attributes_addition_required' if attributes.key?(:'isPosixAttributesAdditionRequired') && attributes.key?(:'is_posix_attributes_addition_required') self.is_posix_attributes_addition_required = attributes[:'is_posix_attributes_addition_required'] unless attributes[:'is_posix_attributes_addition_required'].nil? self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState'] raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state') self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state'] self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated'] raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created') self.time_created = attributes[:'time_created'] if attributes[:'time_created'] self.time_updated = attributes[:'timeUpdated'] if attributes[:'timeUpdated'] raise 'You cannot provide both :timeUpdated and :time_updated' if attributes.key?(:'timeUpdated') && attributes.key?(:'time_updated') self.time_updated = attributes[:'time_updated'] if attributes[:'time_updated'] end |
Instance Attribute Details
#is_posix_attributes_addition_required ⇒ BOOLEAN
[Required] whether to append POSIX attributes to IAM users
24 25 26 |
# File 'lib/oci/bds/models/iam_user_sync_configuration.rb', line 24 def is_posix_attributes_addition_required @is_posix_attributes_addition_required end |
#lifecycle_state ⇒ String
[Required] Lifecycle state of the IAM user sync config
28 29 30 |
# File 'lib/oci/bds/models/iam_user_sync_configuration.rb', line 28 def lifecycle_state @lifecycle_state end |
#time_created ⇒ DateTime
[Required] Time when this IAM user sync config was created, shown as an RFC 3339 formatted datetime string.
32 33 34 |
# File 'lib/oci/bds/models/iam_user_sync_configuration.rb', line 32 def time_created @time_created end |
#time_updated ⇒ DateTime
[Required] Time when this IAM user sync config was updated, shown as an RFC 3339 formatted datetime string.
36 37 38 |
# File 'lib/oci/bds/models/iam_user_sync_configuration.rb', line 36 def time_updated @time_updated end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/oci/bds/models/iam_user_sync_configuration.rb', line 39 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'is_posix_attributes_addition_required': :'isPosixAttributesAdditionRequired', 'lifecycle_state': :'lifecycleState', 'time_created': :'timeCreated', 'time_updated': :'timeUpdated' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
51 52 53 54 55 56 57 58 59 60 |
# File 'lib/oci/bds/models/iam_user_sync_configuration.rb', line 51 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'is_posix_attributes_addition_required': :'BOOLEAN', 'lifecycle_state': :'String', 'time_created': :'DateTime', 'time_updated': :'DateTime' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
123 124 125 126 127 128 129 130 131 |
# File 'lib/oci/bds/models/iam_user_sync_configuration.rb', line 123 def ==(other) return true if equal?(other) self.class == other.class && is_posix_attributes_addition_required == other.is_posix_attributes_addition_required && lifecycle_state == other.lifecycle_state && time_created == other.time_created && time_updated == other.time_updated end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'lib/oci/bds/models/iam_user_sync_configuration.rb', line 156 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
136 137 138 |
# File 'lib/oci/bds/models/iam_user_sync_configuration.rb', line 136 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
145 146 147 |
# File 'lib/oci/bds/models/iam_user_sync_configuration.rb', line 145 def hash [is_posix_attributes_addition_required, lifecycle_state, time_created, time_updated].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
189 190 191 192 193 194 195 196 197 198 |
# File 'lib/oci/bds/models/iam_user_sync_configuration.rb', line 189 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
183 184 185 |
# File 'lib/oci/bds/models/iam_user_sync_configuration.rb', line 183 def to_s to_hash.to_s end |