Class: MicrosoftGraph::Models::ExternalConnectorsExternalItem

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/external_connectors_external_item.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 externalConnectorsExternalItem and sets the default values.



55
56
57
# File 'lib/models/external_connectors_external_item.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 external_connectors_external_item

Raises:

  • (StandardError)


78
79
80
81
# File 'lib/models/external_connectors_external_item.rb', line 78

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

Instance Method Details

#aclObject

Gets the acl property value. An array of access control entries. Each entry specifies the access granted to a user or group. Required.

Returns:

  • a external_connectors_acl



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

def acl
    return @acl
end

#acl=(value) ⇒ Object

Sets the acl property value. An array of access control entries. Each entry specifies the access granted to a user or group. Required.

Parameters:

  • value

    Value to set for the acl property.

Returns:

  • a void



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

def acl=(value)
    @acl = value
end

#activitiesObject

Gets the activities property value. Returns a list of activities performed on the item. Write-only.

Returns:

  • a external_connectors_external_activity



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

def activities
    return @activities
end

#activities=(value) ⇒ Object

Sets the activities property value. Returns a list of activities performed on the item. Write-only.

Parameters:

  • value

    Value to set for the activities property.

Returns:

  • a void



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

def activities=(value)
    @activities = value
end

#contentObject

Gets the content property value. A plain-text representation of the contents of the item. The text in this property is full-text indexed. Optional.

Returns:

  • a external_connectors_external_item_content



62
63
64
# File 'lib/models/external_connectors_external_item.rb', line 62

def content
    return @content
end

#content=(value) ⇒ Object

Sets the content property value. A plain-text representation of the contents of the item. The text in this property is full-text indexed. Optional.

Parameters:

  • value

    Value to set for the content property.

Returns:

  • a void



70
71
72
# File 'lib/models/external_connectors_external_item.rb', line 70

def content=(value)
    @content = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



86
87
88
89
90
91
92
93
# File 'lib/models/external_connectors_external_item.rb', line 86

def get_field_deserializers()
    return super.merge({
        "acl" => lambda {|n| @acl = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsAcl.create_from_discriminator_value(pn) }) },
        "activities" => lambda {|n| @activities = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalActivity.create_from_discriminator_value(pn) }) },
        "content" => lambda {|n| @content = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsExternalItemContent.create_from_discriminator_value(pn) }) },
        "properties" => lambda {|n| @properties = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ExternalConnectorsProperties.create_from_discriminator_value(pn) }) },
    })
end

#propertiesObject

Gets the properties property value. A property bag with the properties of the item. The properties MUST conform to the schema defined for the externalConnection. Required.

Returns:

  • a external_connectors_properties



98
99
100
# File 'lib/models/external_connectors_external_item.rb', line 98

def properties
    return @properties
end

#properties=(value) ⇒ Object

Sets the properties property value. A property bag with the properties of the item. The properties MUST conform to the schema defined for the externalConnection. Required.

Parameters:

  • value

    Value to set for the properties property.

Returns:

  • a void



106
107
108
# File 'lib/models/external_connectors_external_item.rb', line 106

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


114
115
116
117
118
119
120
121
# File 'lib/models/external_connectors_external_item.rb', line 114

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("acl", @acl)
    writer.write_collection_of_object_values("activities", @activities)
    writer.write_object_value("content", @content)
    writer.write_object_value("properties", @properties)
end