Class: MicrosoftGraph::Models::SocialIdentityProvider
- Inherits:
-
IdentityProviderBase
- Object
- Entity
- IdentityProviderBase
- MicrosoftGraph::Models::SocialIdentityProvider
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/social_identity_provider.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
-
#client_id ⇒ Object
Gets the clientId property value.
-
#client_id=(value) ⇒ Object
Sets the clientId property value.
-
#client_secret ⇒ Object
Gets the clientSecret property value.
-
#client_secret=(value) ⇒ Object
Sets the clientSecret property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#identity_provider_type ⇒ Object
Gets the identityProviderType property value.
-
#identity_provider_type=(value) ⇒ Object
Sets the identityProviderType property value.
-
#initialize ⇒ Object
constructor
Instantiates a new socialIdentityProvider and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from IdentityProviderBase
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new socialIdentityProvider and sets the default values.
52 53 54 55 |
# File 'lib/models/social_identity_provider.rb', line 52 def initialize() super @odata_type = "#microsoft.graph.socialIdentityProvider" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
61 62 63 64 |
# File 'lib/models/social_identity_provider.rb', line 61 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SocialIdentityProvider.new end |
Instance Method Details
#client_id ⇒ Object
Gets the clientId property value. The identifier for the client application obtained when registering the application with the identity provider. Required.
22 23 24 |
# File 'lib/models/social_identity_provider.rb', line 22 def client_id return @client_id end |
#client_id=(value) ⇒ Object
Sets the clientId property value. The identifier for the client application obtained when registering the application with the identity provider. Required.
30 31 32 |
# File 'lib/models/social_identity_provider.rb', line 30 def client_id=(value) @client_id = value end |
#client_secret ⇒ Object
Gets the clientSecret property value. The client secret for the application that is obtained when the application is registered with the identity provider. This is write-only. A read operation returns . Required.
37 38 39 |
# File 'lib/models/social_identity_provider.rb', line 37 def client_secret return @client_secret end |
#client_secret=(value) ⇒ Object
Sets the clientSecret property value. The client secret for the application that is obtained when the application is registered with the identity provider. This is write-only. A read operation returns . Required.
45 46 47 |
# File 'lib/models/social_identity_provider.rb', line 45 def client_secret=(value) @client_secret = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
69 70 71 72 73 74 75 |
# File 'lib/models/social_identity_provider.rb', line 69 def get_field_deserializers() return super.merge({ "clientId" => lambda {|n| @client_id = n.get_string_value() }, "clientSecret" => lambda {|n| @client_secret = n.get_string_value() }, "identityProviderType" => lambda {|n| @identity_provider_type = n.get_string_value() }, }) end |
#identity_provider_type ⇒ Object
Gets the identityProviderType property value. For a B2B scenario, possible values: Google, Facebook. For a B2C scenario, possible values: Microsoft, Google, Amazon, LinkedIn, Facebook, GitHub, Twitter, Weibo, QQ, WeChat. Required.
80 81 82 |
# File 'lib/models/social_identity_provider.rb', line 80 def identity_provider_type return @identity_provider_type end |
#identity_provider_type=(value) ⇒ Object
Sets the identityProviderType property value. For a B2B scenario, possible values: Google, Facebook. For a B2C scenario, possible values: Microsoft, Google, Amazon, LinkedIn, Facebook, GitHub, Twitter, Weibo, QQ, WeChat. Required.
88 89 90 |
# File 'lib/models/social_identity_provider.rb', line 88 def identity_provider_type=(value) @identity_provider_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
96 97 98 99 100 101 102 |
# File 'lib/models/social_identity_provider.rb', line 96 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("clientId", @client_id) writer.write_string_value("clientSecret", @client_secret) writer.write_string_value("identityProviderType", @identity_provider_type) end |