Class: MicrosoftGraph::Models::IdentityProviderBase
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/identity_provider_base.rb
Direct Known Subclasses
AppleManagedIdentityProvider, BuiltInIdentityProvider, SamlOrWsFedProvider, SocialIdentityProvider
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
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new identityProviderBase and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new identityProviderBase and sets the default values.
16 17 18 |
# File 'lib/models/identity_provider_base.rb', line 16 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/models/identity_provider_base.rb', line 24 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? mapping_value_node = parse_node.get_child_node("@odata.type") unless mapping_value_node.nil? then mapping_value = mapping_value_node.get_string_value case mapping_value when "#microsoft.graph.appleManagedIdentityProvider" return AppleManagedIdentityProvider.new when "#microsoft.graph.builtInIdentityProvider" return BuiltInIdentityProvider.new when "#microsoft.graph.internalDomainFederation" return InternalDomainFederation.new when "#microsoft.graph.samlOrWsFedExternalDomainFederation" return SamlOrWsFedExternalDomainFederation.new when "#microsoft.graph.samlOrWsFedProvider" return SamlOrWsFedProvider.new when "#microsoft.graph.socialIdentityProvider" return SocialIdentityProvider.new end end return IdentityProviderBase.new end |
Instance Method Details
#display_name ⇒ Object
Gets the displayName property value. The display name of the identity provider.
50 51 52 |
# File 'lib/models/identity_provider_base.rb', line 50 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The display name of the identity provider.
58 59 60 |
# File 'lib/models/identity_provider_base.rb', line 58 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
65 66 67 68 69 |
# File 'lib/models/identity_provider_base.rb', line 65 def get_field_deserializers() return super.merge({ "displayName" => lambda {|n| @display_name = n.get_string_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
75 76 77 78 79 |
# File 'lib/models/identity_provider_base.rb', line 75 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("displayName", @display_name) end |