Class: Azure::ARM::Policy::Models::PolicyAssignment

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_policy/models/policy_assignment.rb

Overview

The policy definition.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#display_nameString

Returns Gets or sets the policy assignment display name.

Returns:

  • (String)

    Gets or sets the policy assignment display name.



16
17
18
# File 'lib/generated/azure_mgmt_policy/models/policy_assignment.rb', line 16

def display_name
  @display_name
end

#idString

Returns Gets or sets the Id of the policy assignment.

Returns:

  • (String)

    Gets or sets the Id of the policy assignment.



26
27
28
# File 'lib/generated/azure_mgmt_policy/models/policy_assignment.rb', line 26

def id
  @id
end

#nameString

Returns Gets or sets the name of the policy assignment.

Returns:

  • (String)

    Gets or sets the name of the policy assignment.



32
33
34
# File 'lib/generated/azure_mgmt_policy/models/policy_assignment.rb', line 32

def name
  @name
end

#policy_definition_idString

Returns Gets or sets the policy definition Id.

Returns:

  • (String)

    Gets or sets the policy definition Id.



19
20
21
# File 'lib/generated/azure_mgmt_policy/models/policy_assignment.rb', line 19

def policy_definition_id
  @policy_definition_id
end

#scopeString

exists.

Returns:

  • (String)

    Gets or sets the scope at which the policy assignment



23
24
25
# File 'lib/generated/azure_mgmt_policy/models/policy_assignment.rb', line 23

def scope
  @scope
end

#typeString

Returns Gets or sets the type of the policy assignment.

Returns:

  • (String)

    Gets or sets the type of the policy assignment.



29
30
31
# File 'lib/generated/azure_mgmt_policy/models/policy_assignment.rb', line 29

def type
  @type
end

Class Method Details

.mapperObject

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



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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/generated/azure_mgmt_policy/models/policy_assignment.rb', line 39

def self.mapper()
  {
    required: false,
    serialized_name: 'PolicyAssignment',
    type: {
      name: 'Composite',
      class_name: 'PolicyAssignment',
      model_properties: {
        display_name: {
          required: false,
          serialized_name: 'properties.displayName',
          type: {
            name: 'String'
          }
        },
        policy_definition_id: {
          required: false,
          serialized_name: 'properties.policyDefinitionId',
          type: {
            name: 'String'
          }
        },
        scope: {
          required: false,
          serialized_name: 'properties.scope',
          type: {
            name: 'String'
          }
        },
        id: {
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        type: {
          required: false,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end