Class: MicrosoftGraph::Models::ResourceOperation
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/resource_operation.rb
Overview
Describes the resourceOperation resource (entity) of the Microsoft Graph API (REST), which supports Intune workflows related to role-based access control (RBAC).
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
-
#action_name ⇒ Object
Gets the actionName property value.
-
#action_name=(value) ⇒ Object
Sets the actionName property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new resourceOperation and sets the default values.
-
#resource_name ⇒ Object
Gets the resourceName property value.
-
#resource_name=(value) ⇒ Object
Sets the resourceName 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 resourceOperation and sets the default values.
39 40 41 |
# File 'lib/models/resource_operation.rb', line 39 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
47 48 49 50 |
# File 'lib/models/resource_operation.rb', line 47 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ResourceOperation.new end |
Instance Method Details
#action_name ⇒ Object
Gets the actionName property value. Type of action this operation is going to perform. The actionName should be concise and limited to as few words as possible.
24 25 26 |
# File 'lib/models/resource_operation.rb', line 24 def action_name return @action_name end |
#action_name=(value) ⇒ Object
Sets the actionName property value. Type of action this operation is going to perform. The actionName should be concise and limited to as few words as possible.
32 33 34 |
# File 'lib/models/resource_operation.rb', line 32 def action_name=(value) @action_name = value end |
#description ⇒ Object
Gets the description property value. Description of the resource operation. The description is used in mouse-over text for the operation when shown in the Azure Portal.
55 56 57 |
# File 'lib/models/resource_operation.rb', line 55 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Description of the resource operation. The description is used in mouse-over text for the operation when shown in the Azure Portal.
63 64 65 |
# File 'lib/models/resource_operation.rb', line 63 def description=(value) @description = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
70 71 72 73 74 75 76 |
# File 'lib/models/resource_operation.rb', line 70 def get_field_deserializers() return super.merge({ "actionName" => lambda {|n| @action_name = n.get_string_value() }, "description" => lambda {|n| @description = n.get_string_value() }, "resourceName" => lambda {|n| @resource_name = n.get_string_value() }, }) end |
#resource_name ⇒ Object
Gets the resourceName property value. Name of the Resource this operation is performed on.
81 82 83 |
# File 'lib/models/resource_operation.rb', line 81 def resource_name return @resource_name end |
#resource_name=(value) ⇒ Object
Sets the resourceName property value. Name of the Resource this operation is performed on.
89 90 91 |
# File 'lib/models/resource_operation.rb', line 89 def resource_name=(value) @resource_name = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
97 98 99 100 101 102 103 |
# File 'lib/models/resource_operation.rb', line 97 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("actionName", @action_name) writer.write_string_value("description", @description) writer.write_string_value("resourceName", @resource_name) end |