Class: Azure::ARM::Policy::Models::PolicyAssignment
- Inherits:
-
Object
- Object
- Azure::ARM::Policy::Models::PolicyAssignment
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_policy/models/policy_assignment.rb
Overview
The policy definition.
Instance Attribute Summary collapse
-
#description ⇒ String
policy violation.
-
#display_name ⇒ String
The display name of the policy assignment.
-
#id ⇒ String
The ID of the policy assignment.
-
#name ⇒ String
The name of the policy assignment.
-
#parameters ⇒ Object
Required if a parameter is used in policy rule.
-
#policy_definition_id ⇒ String
The ID of the policy definition.
-
#scope ⇒ String
The scope for the policy assignment.
-
#type ⇒ String
The type of the policy assignment.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for PolicyAssignment class as Ruby Hash.
Instance Attribute Details
#description ⇒ String
policy violation.
30 31 32 |
# File 'lib/generated/azure_mgmt_policy/models/policy_assignment.rb', line 30 def description @description end |
#display_name ⇒ String
Returns The display name of the policy assignment.
17 18 19 |
# File 'lib/generated/azure_mgmt_policy/models/policy_assignment.rb', line 17 def display_name @display_name end |
#id ⇒ String
Returns The ID of the policy assignment.
33 34 35 |
# File 'lib/generated/azure_mgmt_policy/models/policy_assignment.rb', line 33 def id @id end |
#name ⇒ String
Returns The name of the policy assignment.
39 40 41 |
# File 'lib/generated/azure_mgmt_policy/models/policy_assignment.rb', line 39 def name @name end |
#parameters ⇒ Object
Returns Required if a parameter is used in policy rule.
26 27 28 |
# File 'lib/generated/azure_mgmt_policy/models/policy_assignment.rb', line 26 def parameters @parameters end |
#policy_definition_id ⇒ String
Returns The ID of the policy definition.
20 21 22 |
# File 'lib/generated/azure_mgmt_policy/models/policy_assignment.rb', line 20 def policy_definition_id @policy_definition_id end |
#scope ⇒ String
Returns The scope for the policy assignment.
23 24 25 |
# File 'lib/generated/azure_mgmt_policy/models/policy_assignment.rb', line 23 def scope @scope end |
#type ⇒ String
Returns The type of the policy assignment.
36 37 38 |
# File 'lib/generated/azure_mgmt_policy/models/policy_assignment.rb', line 36 def type @type end |
Class Method Details
.mapper ⇒ Object
Mapper for PolicyAssignment class as Ruby Hash. This will be used for serialization/deserialization.
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 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'lib/generated/azure_mgmt_policy/models/policy_assignment.rb', line 46 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' } }, parameters: { required: false, serialized_name: 'properties.parameters', type: { name: 'Object' } }, description: { required: false, serialized_name: 'properties.description', 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 |