Class: MicrosoftGraph::Models::ProvisionedIdentity
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/provisioned_identity.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#details ⇒ Object
Gets the details property value.
-
#details=(value) ⇒ Object
Sets the details property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#identity_type ⇒ Object
Gets the identityType property value.
-
#identity_type=(value) ⇒ Object
Sets the identityType property value.
-
#initialize ⇒ Object
constructor
Instantiates a new provisionedIdentity and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Identity
#additional_data, #additional_data=, #display_name, #display_name=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new provisionedIdentity and sets the default values.
19 20 21 22 |
# File 'lib/models/provisioned_identity.rb', line 19 def initialize() super @odata_type = "#microsoft.graph.provisionedIdentity" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
28 29 30 31 |
# File 'lib/models/provisioned_identity.rb', line 28 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ProvisionedIdentity.new end |
Instance Method Details
#details ⇒ Object
Gets the details property value. Details of the identity.
36 37 38 |
# File 'lib/models/provisioned_identity.rb', line 36 def details return @details end |
#details=(value) ⇒ Object
Sets the details property value. Details of the identity.
44 45 46 |
# File 'lib/models/provisioned_identity.rb', line 44 def details=(value) @details = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
51 52 53 54 55 56 |
# File 'lib/models/provisioned_identity.rb', line 51 def get_field_deserializers() return super.merge({ "details" => lambda {|n| @details = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DetailsInfo.create_from_discriminator_value(pn) }) }, "identityType" => lambda {|n| @identity_type = n.get_string_value() }, }) end |
#identity_type ⇒ Object
Gets the identityType property value. Type of identity that has been provisioned, such as ‘user’ or ‘group’. Supports $filter (eq, contains).
61 62 63 |
# File 'lib/models/provisioned_identity.rb', line 61 def identity_type return @identity_type end |
#identity_type=(value) ⇒ Object
Sets the identityType property value. Type of identity that has been provisioned, such as ‘user’ or ‘group’. Supports $filter (eq, contains).
69 70 71 |
# File 'lib/models/provisioned_identity.rb', line 69 def identity_type=(value) @identity_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
77 78 79 80 81 82 |
# File 'lib/models/provisioned_identity.rb', line 77 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("details", @details) writer.write_string_value("identityType", @identity_type) end |