Class: MicrosoftGraph::Models::IdentityProvider
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/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.
-
#initialize ⇒ Object
constructor
Instantiates a new identityProvider and sets the default values.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#type ⇒ Object
Gets the type property value.
-
#type=(value) ⇒ Object
Sets the type property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_id ⇒ Object
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.
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.
33 34 35 |
# File 'lib/models/identity_provider.rb', line 33 def client_id=(value) @client_id = value end |
#client_secret ⇒ Object
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.
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.
48 49 50 |
# File 'lib/models/identity_provider.rb', line 48 def client_secret=(value) @client_secret = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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 |
#name ⇒ Object
Gets the name property value. The display name of the identity provider. Not nullable.
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.
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
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 |
#type ⇒ Object
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.
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.
119 120 121 |
# File 'lib/models/identity_provider.rb', line 119 def type=(value) @type = value end |