Class: MicrosoftGraph::Models::SharingLink
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::SharingLink
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/sharing_link.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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#application ⇒ Object
Gets the application property value.
-
#application=(value) ⇒ Object
Sets the application property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new sharingLink and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#prevents_download ⇒ Object
Gets the preventsDownload property value.
-
#prevents_download=(value) ⇒ Object
Sets the preventsDownload property value.
-
#scope ⇒ Object
Gets the scope property value.
-
#scope=(value) ⇒ Object
Sets the scope property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#type ⇒ Object
Gets the type property value.
-
#type=(value) ⇒ Object
Sets the type property value.
-
#web_html ⇒ Object
Gets the webHtml property value.
-
#web_html=(value) ⇒ Object
Sets the webHtml property value.
-
#web_url ⇒ Object
Gets the webUrl property value.
-
#web_url=(value) ⇒ Object
Sets the webUrl property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new sharingLink and sets the default values.
67 68 69 |
# File 'lib/models/sharing_link.rb', line 67 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
75 76 77 78 |
# File 'lib/models/sharing_link.rb', line 75 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SharingLink.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
37 38 39 |
# File 'lib/models/sharing_link.rb', line 37 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
45 46 47 |
# File 'lib/models/sharing_link.rb', line 45 def additional_data=(value) @additional_data = value end |
#application ⇒ Object
Gets the application property value. The app the link is associated with.
52 53 54 |
# File 'lib/models/sharing_link.rb', line 52 def application return @application end |
#application=(value) ⇒ Object
Sets the application property value. The app the link is associated with.
60 61 62 |
# File 'lib/models/sharing_link.rb', line 60 def application=(value) @application = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/models/sharing_link.rb', line 83 def get_field_deserializers() return { "application" => lambda {|n| @application = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Identity.create_from_discriminator_value(pn) }) }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "preventsDownload" => lambda {|n| @prevents_download = n.get_boolean_value() }, "scope" => lambda {|n| @scope = n.get_string_value() }, "type" => lambda {|n| @type = n.get_string_value() }, "webHtml" => lambda {|n| @web_html = n.get_string_value() }, "webUrl" => lambda {|n| @web_url = n.get_string_value() }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
98 99 100 |
# File 'lib/models/sharing_link.rb', line 98 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
106 107 108 |
# File 'lib/models/sharing_link.rb', line 106 def odata_type=(value) @odata_type = value end |
#prevents_download ⇒ Object
Gets the preventsDownload property value. If true then the user can only use this link to view the item on the web, and cannot use it to download the contents of the item. Only for OneDrive for Business and SharePoint.
113 114 115 |
# File 'lib/models/sharing_link.rb', line 113 def prevents_download return @prevents_download end |
#prevents_download=(value) ⇒ Object
Sets the preventsDownload property value. If true then the user can only use this link to view the item on the web, and cannot use it to download the contents of the item. Only for OneDrive for Business and SharePoint.
121 122 123 |
# File 'lib/models/sharing_link.rb', line 121 def prevents_download=(value) @prevents_download = value end |
#scope ⇒ Object
Gets the scope property value. The scope of the link represented by this permission. Value anonymous indicates the link is usable by anyone, organization indicates the link is only usable for users signed into the same tenant.
128 129 130 |
# File 'lib/models/sharing_link.rb', line 128 def scope return @scope end |
#scope=(value) ⇒ Object
Sets the scope property value. The scope of the link represented by this permission. Value anonymous indicates the link is usable by anyone, organization indicates the link is only usable for users signed into the same tenant.
136 137 138 |
# File 'lib/models/sharing_link.rb', line 136 def scope=(value) @scope = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/models/sharing_link.rb', line 144 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("application", @application) writer.write_string_value("@odata.type", @odata_type) writer.write_boolean_value("preventsDownload", @prevents_download) writer.write_string_value("scope", @scope) writer.write_string_value("type", @type) writer.write_string_value("webHtml", @web_html) writer.write_string_value("webUrl", @web_url) writer.write_additional_data(@additional_data) end |
#type ⇒ Object
Gets the type property value. The type of the link created.
159 160 161 |
# File 'lib/models/sharing_link.rb', line 159 def type return @type end |
#type=(value) ⇒ Object
Sets the type property value. The type of the link created.
167 168 169 |
# File 'lib/models/sharing_link.rb', line 167 def type=(value) @type = value end |
#web_html ⇒ Object
Gets the webHtml property value. For embed links, this property contains the HTML code for an <iframe> element that will embed the item in a webpage.
174 175 176 |
# File 'lib/models/sharing_link.rb', line 174 def web_html return @web_html end |
#web_html=(value) ⇒ Object
Sets the webHtml property value. For embed links, this property contains the HTML code for an <iframe> element that will embed the item in a webpage.
182 183 184 |
# File 'lib/models/sharing_link.rb', line 182 def web_html=(value) @web_html = value end |
#web_url ⇒ Object
Gets the webUrl property value. A URL that opens the item in the browser on the OneDrive website.
189 190 191 |
# File 'lib/models/sharing_link.rb', line 189 def web_url return @web_url end |
#web_url=(value) ⇒ Object
Sets the webUrl property value. A URL that opens the item in the browser on the OneDrive website.
197 198 199 |
# File 'lib/models/sharing_link.rb', line 197 def web_url=(value) @web_url = value end |