Class: MicrosoftGraph::Models::WindowsInformationProtectionApp
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::WindowsInformationProtectionApp
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/windows_information_protection_app.rb
Overview
App for Windows information protection
Direct Known Subclasses
WindowsInformationProtectionDesktopApp, WindowsInformationProtectionStoreApp
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.
-
#denied ⇒ Object
Gets the denied property value.
-
#denied=(value) ⇒ Object
Sets the denied property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new windowsInformationProtectionApp and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#product_name ⇒ Object
Gets the productName property value.
-
#product_name=(value) ⇒ Object
Sets the productName property value.
-
#publisher_name ⇒ Object
Gets the publisherName property value.
-
#publisher_name=(value) ⇒ Object
Sets the publisherName property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new windowsInformationProtectionApp and sets the default values.
51 52 53 |
# File 'lib/models/windows_information_protection_app.rb', line 51 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
59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/models/windows_information_protection_app.rb', line 59 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? mapping_value_node = parse_node.get_child_node("@odata.type") unless mapping_value_node.nil? then mapping_value = mapping_value_node.get_string_value case mapping_value when "#microsoft.graph.windowsInformationProtectionDesktopApp" return WindowsInformationProtectionDesktopApp.new when "#microsoft.graph.windowsInformationProtectionStoreApp" return WindowsInformationProtectionStoreApp.new end end return WindowsInformationProtectionApp.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.
36 37 38 |
# File 'lib/models/windows_information_protection_app.rb', line 36 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.
44 45 46 |
# File 'lib/models/windows_information_protection_app.rb', line 44 def additional_data=(value) @additional_data = value end |
#denied ⇒ Object
Gets the denied property value. If true, app is denied protection or exemption.
77 78 79 |
# File 'lib/models/windows_information_protection_app.rb', line 77 def denied return @denied end |
#denied=(value) ⇒ Object
Sets the denied property value. If true, app is denied protection or exemption.
85 86 87 |
# File 'lib/models/windows_information_protection_app.rb', line 85 def denied=(value) @denied = value end |
#description ⇒ Object
Gets the description property value. The app’s description.
92 93 94 |
# File 'lib/models/windows_information_protection_app.rb', line 92 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. The app’s description.
100 101 102 |
# File 'lib/models/windows_information_protection_app.rb', line 100 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. App display name.
107 108 109 |
# File 'lib/models/windows_information_protection_app.rb', line 107 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. App display name.
115 116 117 |
# File 'lib/models/windows_information_protection_app.rb', line 115 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
122 123 124 125 126 127 128 129 130 131 |
# File 'lib/models/windows_information_protection_app.rb', line 122 def get_field_deserializers() return { "denied" => lambda {|n| @denied = n.get_boolean_value() }, "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "productName" => lambda {|n| @product_name = n.get_string_value() }, "publisherName" => lambda {|n| @publisher_name = n.get_string_value() }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
136 137 138 |
# File 'lib/models/windows_information_protection_app.rb', line 136 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
144 145 146 |
# File 'lib/models/windows_information_protection_app.rb', line 144 def odata_type=(value) @odata_type = value end |
#product_name ⇒ Object
Gets the productName property value. The product name.
151 152 153 |
# File 'lib/models/windows_information_protection_app.rb', line 151 def product_name return @product_name end |
#product_name=(value) ⇒ Object
Sets the productName property value. The product name.
159 160 161 |
# File 'lib/models/windows_information_protection_app.rb', line 159 def product_name=(value) @product_name = value end |
#publisher_name ⇒ Object
Gets the publisherName property value. The publisher name
166 167 168 |
# File 'lib/models/windows_information_protection_app.rb', line 166 def publisher_name return @publisher_name end |
#publisher_name=(value) ⇒ Object
Sets the publisherName property value. The publisher name
174 175 176 |
# File 'lib/models/windows_information_protection_app.rb', line 174 def publisher_name=(value) @publisher_name = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
182 183 184 185 186 187 188 189 190 191 |
# File 'lib/models/windows_information_protection_app.rb', line 182 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_boolean_value("denied", @denied) writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("productName", @product_name) writer.write_string_value("publisherName", @publisher_name) writer.write_additional_data(@additional_data) end |