Class: MicrosoftGraph::Models::ResourceOperation

Inherits:
Entity
  • Object
show all
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

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a resource_operation

Raises:

  • (StandardError)


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_nameObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the actionName property.

Returns:

  • a void



32
33
34
# File 'lib/models/resource_operation.rb', line 32

def action_name=(value)
    @action_name = value
end

#descriptionObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



63
64
65
# File 'lib/models/resource_operation.rb', line 63

def description=(value)
    @description = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_nameObject

Gets the resourceName property value. Name of the Resource this operation is performed on.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the resourceName property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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