Class: MicrosoftGraph::Models::ExternalConnectors::ExternalConnection
- Inherits:
-
MicrosoftGraph::Models::Entity
- Object
- MicrosoftGraph::Models::Entity
- MicrosoftGraph::Models::ExternalConnectors::ExternalConnection
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/external_connectors/external_connection.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
-
#configuration ⇒ Object
Gets the configuration property value.
-
#configuration=(value) ⇒ Object
Sets the configuration property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#groups ⇒ Object
Gets the groups property value.
-
#groups=(value) ⇒ Object
Sets the groups property value.
-
#initialize ⇒ Object
constructor
Instantiates a new ExternalConnection and sets the default values.
-
#items ⇒ Object
Gets the items property value.
-
#items=(value) ⇒ Object
Sets the items property value.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#operations ⇒ Object
Gets the operations property value.
-
#operations=(value) ⇒ Object
Sets the operations property value.
-
#schema ⇒ Object
Gets the schema property value.
-
#schema=(value) ⇒ Object
Sets the schema property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#state ⇒ Object
Gets the state property value.
-
#state=(value) ⇒ Object
Sets the state property value.
Methods inherited from MicrosoftGraph::Models::Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new ExternalConnection and sets the default values.
54 55 56 |
# File 'lib/models/external_connectors/external_connection.rb', line 54 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
62 63 64 65 |
# File 'lib/models/external_connectors/external_connection.rb', line 62 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ExternalConnection.new end |
Instance Method Details
#configuration ⇒ Object
Gets the configuration property value. Specifies additional application IDs that are allowed to manage the connection and to index content in the connection. Optional.
39 40 41 |
# File 'lib/models/external_connectors/external_connection.rb', line 39 def configuration return @configuration end |
#configuration=(value) ⇒ Object
Sets the configuration property value. Specifies additional application IDs that are allowed to manage the connection and to index content in the connection. Optional.
47 48 49 |
# File 'lib/models/external_connectors/external_connection.rb', line 47 def configuration=(value) @configuration = value end |
#description ⇒ Object
Gets the description property value. Description of the connection displayed in the Microsoft 365 admin center. Optional.
70 71 72 |
# File 'lib/models/external_connectors/external_connection.rb', line 70 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Description of the connection displayed in the Microsoft 365 admin center. Optional.
78 79 80 |
# File 'lib/models/external_connectors/external_connection.rb', line 78 def description=(value) @description = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/models/external_connectors/external_connection.rb', line 85 def get_field_deserializers() return super.merge({ "configuration" => lambda {|n| @configuration = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ExternalConnectors::Configuration.create_from_discriminator_value(pn) }) }, "description" => lambda {|n| @description = n.get_string_value() }, "groups" => lambda {|n| @groups = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExternalConnectors::ExternalGroup.create_from_discriminator_value(pn) }) }, "items" => lambda {|n| @items = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExternalConnectors::ExternalItem.create_from_discriminator_value(pn) }) }, "name" => lambda {|n| @name = n.get_string_value() }, "operations" => lambda {|n| @operations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExternalConnectors::ConnectionOperation.create_from_discriminator_value(pn) }) }, "schema" => lambda {|n| @schema = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ExternalConnectors::Schema.create_from_discriminator_value(pn) }) }, "state" => lambda {|n| @state = n.get_enum_value(MicrosoftGraph::Models::ExternalConnectors::ConnectionState) }, }) end |
#groups ⇒ Object
Gets the groups property value. The groups property
101 102 103 |
# File 'lib/models/external_connectors/external_connection.rb', line 101 def groups return @groups end |
#groups=(value) ⇒ Object
Sets the groups property value. The groups property
109 110 111 |
# File 'lib/models/external_connectors/external_connection.rb', line 109 def groups=(value) @groups = value end |
#items ⇒ Object
Gets the items property value. The items property
116 117 118 |
# File 'lib/models/external_connectors/external_connection.rb', line 116 def items return @items end |
#items=(value) ⇒ Object
Sets the items property value. The items property
124 125 126 |
# File 'lib/models/external_connectors/external_connection.rb', line 124 def items=(value) @items = value end |
#name ⇒ Object
Gets the name property value. The display name of the connection to be displayed in the Microsoft 365 admin center. Maximum length of 128 characters. Required.
131 132 133 |
# File 'lib/models/external_connectors/external_connection.rb', line 131 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. The display name of the connection to be displayed in the Microsoft 365 admin center. Maximum length of 128 characters. Required.
139 140 141 |
# File 'lib/models/external_connectors/external_connection.rb', line 139 def name=(value) @name = value end |
#operations ⇒ Object
Gets the operations property value. The operations property
146 147 148 |
# File 'lib/models/external_connectors/external_connection.rb', line 146 def operations return @operations end |
#operations=(value) ⇒ Object
Sets the operations property value. The operations property
154 155 156 |
# File 'lib/models/external_connectors/external_connection.rb', line 154 def operations=(value) @operations = value end |
#schema ⇒ Object
Gets the schema property value. The schema property
161 162 163 |
# File 'lib/models/external_connectors/external_connection.rb', line 161 def schema return @schema end |
#schema=(value) ⇒ Object
Sets the schema property value. The schema property
169 170 171 |
# File 'lib/models/external_connectors/external_connection.rb', line 169 def schema=(value) @schema = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/models/external_connectors/external_connection.rb', line 177 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("configuration", @configuration) writer.write_string_value("description", @description) writer.write_collection_of_object_values("groups", @groups) writer.write_collection_of_object_values("items", @items) writer.write_string_value("name", @name) writer.write_collection_of_object_values("operations", @operations) writer.write_object_value("schema", @schema) end |
#state ⇒ Object
Gets the state property value. Indicates the current state of the connection. Possible values are: draft, ready, obsolete, limitExceeded, unknownFutureValue.
192 193 194 |
# File 'lib/models/external_connectors/external_connection.rb', line 192 def state return @state end |
#state=(value) ⇒ Object
Sets the state property value. Indicates the current state of the connection. Possible values are: draft, ready, obsolete, limitExceeded, unknownFutureValue.
200 201 202 |
# File 'lib/models/external_connectors/external_connection.rb', line 200 def state=(value) @state = value end |