Class: MicrosoftGraph::Models::LinkedResource
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/linked_resource.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
-
#application_name ⇒ Object
Gets the applicationName property value.
-
#application_name=(value) ⇒ Object
Sets the applicationName property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#external_id ⇒ Object
Gets the externalId property value.
-
#external_id=(value) ⇒ Object
Sets the externalId property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new linkedResource and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#web_url ⇒ Object
Gets the webUrl property value.
-
#web_url=(value) ⇒ Object
Sets the webUrl property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new linkedResource and sets the default values.
40 41 42 |
# File 'lib/models/linked_resource.rb', line 40 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
48 49 50 51 |
# File 'lib/models/linked_resource.rb', line 48 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return LinkedResource.new end |
Instance Method Details
#application_name ⇒ Object
Gets the applicationName property value. The app name of the source that sends the linkedResource.
25 26 27 |
# File 'lib/models/linked_resource.rb', line 25 def application_name return @application_name end |
#application_name=(value) ⇒ Object
Sets the applicationName property value. The app name of the source that sends the linkedResource.
33 34 35 |
# File 'lib/models/linked_resource.rb', line 33 def application_name=(value) @application_name = value end |
#display_name ⇒ Object
Gets the displayName property value. The title of the linkedResource.
56 57 58 |
# File 'lib/models/linked_resource.rb', line 56 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The title of the linkedResource.
64 65 66 |
# File 'lib/models/linked_resource.rb', line 64 def display_name=(value) @display_name = value end |
#external_id ⇒ Object
Gets the externalId property value. ID of the object that is associated with this task on the third-party/partner system.
71 72 73 |
# File 'lib/models/linked_resource.rb', line 71 def external_id return @external_id end |
#external_id=(value) ⇒ Object
Sets the externalId property value. ID of the object that is associated with this task on the third-party/partner system.
79 80 81 |
# File 'lib/models/linked_resource.rb', line 79 def external_id=(value) @external_id = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
86 87 88 89 90 91 92 93 |
# File 'lib/models/linked_resource.rb', line 86 def get_field_deserializers() return super.merge({ "applicationName" => lambda {|n| @application_name = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "externalId" => lambda {|n| @external_id = n.get_string_value() }, "webUrl" => lambda {|n| @web_url = n.get_string_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
99 100 101 102 103 104 105 106 |
# File 'lib/models/linked_resource.rb', line 99 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("applicationName", @application_name) writer.write_string_value("displayName", @display_name) writer.write_string_value("externalId", @external_id) writer.write_string_value("webUrl", @web_url) end |
#web_url ⇒ Object
Gets the webUrl property value. Deep link to the linkedResource.
111 112 113 |
# File 'lib/models/linked_resource.rb', line 111 def web_url return @web_url end |
#web_url=(value) ⇒ Object
Sets the webUrl property value. Deep link to the linkedResource.
119 120 121 |
# File 'lib/models/linked_resource.rb', line 119 def web_url=(value) @web_url = value end |