Class: MicrosoftGraph::Models::ExternalConnectorsExternalItem
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/external_connectors_external_item.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
-
#acl ⇒ Object
Gets the acl property value.
-
#acl=(value) ⇒ Object
Sets the acl property value.
-
#activities ⇒ Object
Gets the activities property value.
-
#activities=(value) ⇒ Object
Sets the activities property value.
-
#content ⇒ Object
Gets the content property value.
-
#content=(value) ⇒ Object
Sets the content property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new externalConnectorsExternalItem and sets the default values.
-
#properties ⇒ Object
Gets the properties property value.
-
#properties=(value) ⇒ Object
Sets the properties property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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
#acl ⇒ Object
Gets the acl property value. An array of access control entries. Each entry specifies the access granted to a user or group. Required.
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.
33 34 35 |
# File 'lib/models/external_connectors_external_item.rb', line 33 def acl=(value) @acl = value end |
#activities ⇒ Object
Gets the activities property value. Returns a list of activities performed on the item. Write-only.
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.
48 49 50 |
# File 'lib/models/external_connectors_external_item.rb', line 48 def activities=(value) @activities = value end |
#content ⇒ Object
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.
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.
70 71 72 |
# File 'lib/models/external_connectors_external_item.rb', line 70 def content=(value) @content = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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 |
#properties ⇒ Object
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.
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.
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
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 |