Class: MicrosoftGraph::Models::SocialIdentityProvider

Inherits:
IdentityProviderBase show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/social_identity_provider.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from IdentityProviderBase

#display_name, #display_name=

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a social_identity_provider

Raises:

  • (StandardError)


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_idObject

Gets the clientId property value. The identifier for the client application obtained when registering the application with the identity provider. Required.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the clientId property.

Returns:

  • a void



30
31
32
# File 'lib/models/social_identity_provider.rb', line 30

def client_id=(value)
    @client_id = value
end

#client_secretObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the clientSecret property.

Returns:

  • a void



45
46
47
# File 'lib/models/social_identity_provider.rb', line 45

def client_secret=(value)
    @client_secret = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_typeObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the identityProviderType property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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