Class: MicrosoftGraph::Models::ExternalConnectors::ExternalConnection

Inherits:
MicrosoftGraph::Models::Entity show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/external_connectors/external_connection.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MicrosoftGraph::Models::Entity

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

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a external_connection

Raises:

  • (StandardError)


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

#configurationObject

Gets the configuration property value. Specifies additional application IDs that are allowed to manage the connection and to index content in the connection. Optional.

Returns:

  • a configuration



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.

Parameters:

  • value

    Value to set for the configuration property.

Returns:

  • a void



47
48
49
# File 'lib/models/external_connectors/external_connection.rb', line 47

def configuration=(value)
    @configuration = value
end

#descriptionObject

Gets the description property value. Description of the connection displayed in the Microsoft 365 admin center. Optional.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



78
79
80
# File 'lib/models/external_connectors/external_connection.rb', line 78

def description=(value)
    @description = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#groupsObject

Gets the groups property value. The groups property

Returns:

  • a external_group



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

Parameters:

  • value

    Value to set for the groups property.

Returns:

  • a void



109
110
111
# File 'lib/models/external_connectors/external_connection.rb', line 109

def groups=(value)
    @groups = value
end

#itemsObject

Gets the items property value. The items property

Returns:

  • a external_item



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

Parameters:

  • value

    Value to set for the items property.

Returns:

  • a void



124
125
126
# File 'lib/models/external_connectors/external_connection.rb', line 124

def items=(value)
    @items = value
end

#nameObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the name property.

Returns:

  • a void



139
140
141
# File 'lib/models/external_connectors/external_connection.rb', line 139

def name=(value)
    @name = value
end

#operationsObject

Gets the operations property value. The operations property

Returns:

  • a connection_operation



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

Parameters:

  • value

    Value to set for the operations property.

Returns:

  • a void



154
155
156
# File 'lib/models/external_connectors/external_connection.rb', line 154

def operations=(value)
    @operations = value
end

#schemaObject

Gets the schema property value. The schema property

Returns:

  • a schema



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

Parameters:

  • value

    Value to set for the schema property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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

#stateObject

Gets the state property value. Indicates the current state of the connection. Possible values are: draft, ready, obsolete, limitExceeded, unknownFutureValue.

Returns:

  • a connection_state



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.

Parameters:

  • value

    Value to set for the state property.

Returns:

  • a void



200
201
202
# File 'lib/models/external_connectors/external_connection.rb', line 200

def state=(value)
    @state = value
end