Class: Azure::ResourceHealth::Mgmt::V2018_07_01::Models::RecommendedAction

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-07-01/generated/azure_mgmt_resource_health/models/recommended_action.rb

Overview

Lists actions the user can take based on the current availabilityState of the resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#actionString

Returns Recommended action.

Returns:

  • (String)

    Recommended action.



17
18
19
# File 'lib/2018-07-01/generated/azure_mgmt_resource_health/models/recommended_action.rb', line 17

def action
  @action
end

#action_urlString

Returns Link to the action.

Returns:

  • (String)

    Link to the action



20
21
22
# File 'lib/2018-07-01/generated/azure_mgmt_resource_health/models/recommended_action.rb', line 20

def action_url
  @action_url
end

#action_url_textString

host the action url.

Returns:

  • (String)

    Substring of action, it describes which text should



24
25
26
# File 'lib/2018-07-01/generated/azure_mgmt_resource_health/models/recommended_action.rb', line 24

def action_url_text
  @action_url_text
end

Class Method Details

.mapperObject

Mapper for RecommendedAction class as Ruby Hash. This will be used for serialization/deserialization.



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/2018-07-01/generated/azure_mgmt_resource_health/models/recommended_action.rb', line 31

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'recommendedAction',
    type: {
      name: 'Composite',
      class_name: 'RecommendedAction',
      model_properties: {
        action: {
          client_side_validation: true,
          required: false,
          serialized_name: 'action',
          type: {
            name: 'String'
          }
        },
        action_url: {
          client_side_validation: true,
          required: false,
          serialized_name: 'actionUrl',
          type: {
            name: 'String'
          }
        },
        action_url_text: {
          client_side_validation: true,
          required: false,
          serialized_name: 'actionUrlText',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end