Class: Azure::AlertsManagement::Mgmt::V2019_05_05_preview::Models::Scope

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/scope.rb

Overview

Target scope for a given action rule. By default scope will be the subscription. User can also provide list of resource groups or list of resources from the scope subscription as well.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#scope_typeScopeType

‘ResourceGroup’, ‘Resource’

Returns:

  • (ScopeType)

    type of target scope. Possible values include:



19
20
21
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/scope.rb', line 19

def scope_type
  @scope_type
end

#valuesArray<String>

will be the target of the given action rule.

Returns:

  • (Array<String>)

    list of ARM IDs of the given scope type which



23
24
25
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/scope.rb', line 23

def values
  @values
end

Class Method Details

.mapperObject

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



30
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
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/scope.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Scope',
    type: {
      name: 'Composite',
      class_name: 'Scope',
      model_properties: {
        scope_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'scopeType',
          type: {
            name: 'String'
          }
        },
        values: {
          client_side_validation: true,
          required: false,
          serialized_name: 'values',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end