Class: MicrosoftGraph::Models::IdentityProvider

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/identity_provider.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

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

Constructor Details

#initializeObject

Instantiates a new identityProvider and sets the default values.



55
56
57
# File 'lib/models/identity_provider.rb', line 55

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

Parameters:

  • parse_node

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

Returns:

  • a identity_provider

Raises:

  • (StandardError)


63
64
65
66
# File 'lib/models/identity_provider.rb', line 63

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return IdentityProvider.new
end

Instance Method Details

#client_idObject

Gets the clientId property value. The client ID for the application. This is the client ID obtained when registering the application with the identity provider. Required. Not nullable.

Returns:

  • a string



25
26
27
# File 'lib/models/identity_provider.rb', line 25

def client_id
    return @client_id
end

#client_id=(value) ⇒ Object

Sets the clientId property value. The client ID for the application. This is the client ID obtained when registering the application with the identity provider. Required. Not nullable.

Parameters:

  • value

    Value to set for the clientId property.

Returns:

  • a void



33
34
35
# File 'lib/models/identity_provider.rb', line 33

def client_id=(value)
    @client_id = value
end

#client_secretObject

Gets the clientSecret property value. The client secret for the application. This is the client secret obtained when registering the application with the identity provider. This is write-only. A read operation will return . Required. Not nullable.

Returns:

  • a string



40
41
42
# File 'lib/models/identity_provider.rb', line 40

def client_secret
    return @client_secret
end

#client_secret=(value) ⇒ Object

Sets the clientSecret property value. The client secret for the application. This is the client secret obtained when registering the application with the identity provider. This is write-only. A read operation will return . Required. Not nullable.

Parameters:

  • value

    Value to set for the clientSecret property.

Returns:

  • a void



48
49
50
# File 'lib/models/identity_provider.rb', line 48

def client_secret=(value)
    @client_secret = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



71
72
73
74
75
76
77
78
# File 'lib/models/identity_provider.rb', line 71

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() },
        "name" => lambda {|n| @name = n.get_string_value() },
        "type" => lambda {|n| @type = n.get_string_value() },
    })
end

#nameObject

Gets the name property value. The display name of the identity provider. Not nullable.

Returns:

  • a string



83
84
85
# File 'lib/models/identity_provider.rb', line 83

def name
    return @name
end

#name=(value) ⇒ Object

Sets the name property value. The display name of the identity provider. Not nullable.

Parameters:

  • value

    Value to set for the name property.

Returns:

  • a void



91
92
93
# File 'lib/models/identity_provider.rb', line 91

def name=(value)
    @name = 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)


99
100
101
102
103
104
105
106
# File 'lib/models/identity_provider.rb', line 99

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("name", @name)
    writer.write_string_value("type", @type)
end

#typeObject

Gets the type property value. The identity provider type is a required field. For B2B scenario: Google, Facebook. For B2C scenario: Microsoft, Google, Amazon, LinkedIn, Facebook, GitHub, Twitter, Weibo, QQ, WeChat, OpenIDConnect. Not nullable.

Returns:

  • a string



111
112
113
# File 'lib/models/identity_provider.rb', line 111

def type
    return @type
end

#type=(value) ⇒ Object

Sets the type property value. The identity provider type is a required field. For B2B scenario: Google, Facebook. For B2C scenario: Microsoft, Google, Amazon, LinkedIn, Facebook, GitHub, Twitter, Weibo, QQ, WeChat, OpenIDConnect. Not nullable.

Parameters:

  • value

    Value to set for the type property.

Returns:

  • a void



119
120
121
# File 'lib/models/identity_provider.rb', line 119

def type=(value)
    @type = value
end