class Azure::AlertsManagement::Mgmt::V2019_05_05_preview::Models::Scope

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.

Attributes

scope_type[RW]

@return [ScopeType] type of target scope. Possible values include: 'ResourceGroup', 'Resource'

values[RW]

@return [Array<String>] list of ARM IDs of the given scope type which will be the target of the given action rule.

Private Class Methods

mapper() click to toggle source

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

# 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