Class: MicrosoftGraph::Models::ResourceSpecificPermission
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::ResourceSpecificPermission
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/resource_specific_permission.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.
-
#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.
-
#id ⇒ Object
Gets the id property value.
-
#id=(value) ⇒ Object
Sets the id property value.
-
#initialize ⇒ Object
constructor
Instantiates a new resourceSpecificPermission and sets the default values.
-
#is_enabled ⇒ Object
Gets the isEnabled property value.
-
#is_enabled=(value) ⇒ Object
Sets the isEnabled property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#value ⇒ Object
Gets the value property value.
-
#value=(value) ⇒ Object
Sets the value property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new resourceSpecificPermission and sets the default values.
49 50 51 |
# File 'lib/models/resource_specific_permission.rb', line 49 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
57 58 59 60 |
# File 'lib/models/resource_specific_permission.rb', line 57 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ResourceSpecificPermission.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.
34 35 36 |
# File 'lib/models/resource_specific_permission.rb', line 34 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.
42 43 44 |
# File 'lib/models/resource_specific_permission.rb', line 42 def additional_data=(value) @additional_data = value end |
#description ⇒ Object
Gets the description property value. Describes the level of access that the resource-specific permission represents.
65 66 67 |
# File 'lib/models/resource_specific_permission.rb', line 65 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Describes the level of access that the resource-specific permission represents.
73 74 75 |
# File 'lib/models/resource_specific_permission.rb', line 73 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The display name for the resource-specific permission.
80 81 82 |
# File 'lib/models/resource_specific_permission.rb', line 80 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The display name for the resource-specific permission.
88 89 90 |
# File 'lib/models/resource_specific_permission.rb', line 88 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
95 96 97 98 99 100 101 102 103 104 |
# File 'lib/models/resource_specific_permission.rb', line 95 def get_field_deserializers() return { "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "id" => lambda {|n| @id = n.get_guid_value() }, "isEnabled" => lambda {|n| @is_enabled = n.get_boolean_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "value" => lambda {|n| @value = n.get_string_value() }, } end |
#id ⇒ Object
Gets the id property value. The unique identifier for the resource-specific application permission.
109 110 111 |
# File 'lib/models/resource_specific_permission.rb', line 109 def id return @id end |
#id=(value) ⇒ Object
Sets the id property value. The unique identifier for the resource-specific application permission.
117 118 119 |
# File 'lib/models/resource_specific_permission.rb', line 117 def id=(value) @id = value end |
#is_enabled ⇒ Object
Gets the isEnabled property value. Indicates whether the permission is enabled.
124 125 126 |
# File 'lib/models/resource_specific_permission.rb', line 124 def is_enabled return @is_enabled end |
#is_enabled=(value) ⇒ Object
Sets the isEnabled property value. Indicates whether the permission is enabled.
132 133 134 |
# File 'lib/models/resource_specific_permission.rb', line 132 def is_enabled=(value) @is_enabled = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
139 140 141 |
# File 'lib/models/resource_specific_permission.rb', line 139 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
147 148 149 |
# File 'lib/models/resource_specific_permission.rb', line 147 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
155 156 157 158 159 160 161 162 163 164 |
# File 'lib/models/resource_specific_permission.rb', line 155 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_guid_value("id", @id) writer.write_boolean_value("isEnabled", @is_enabled) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("value", @value) writer.write_additional_data(@additional_data) end |
#value ⇒ Object
Gets the value property value. The value of the permission.
169 170 171 |
# File 'lib/models/resource_specific_permission.rb', line 169 def value return @value end |
#value=(value) ⇒ Object
Sets the value property value. The value of the permission.
177 178 179 |
# File 'lib/models/resource_specific_permission.rb', line 177 def value=(value) @value = value end |