Class: Azure::Policy::Mgmt::V2016_12_01::Models::PolicyAssignment
- Inherits:
-
Object
- Object
- Azure::Policy::Mgmt::V2016_12_01::Models::PolicyAssignment
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment.rb
Overview
The policy assignment.
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.
29 30 31 |
# File 'lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment.rb', line 29 def description @description end |
#display_name ⇒ String
Returns The display name of the policy assignment.
16 17 18 |
# File 'lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment.rb', line 16 def display_name @display_name end |
#id ⇒ String
Returns The ID of the policy assignment.
32 33 34 |
# File 'lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment.rb', line 32 def id @id end |
#name ⇒ String
Returns The name of the policy assignment.
38 39 40 |
# File 'lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment.rb', line 38 def name @name end |
#parameters ⇒ Object
Returns Required if a parameter is used in policy rule.
25 26 27 |
# File 'lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment.rb', line 25 def parameters @parameters end |
#policy_definition_id ⇒ String
Returns The ID of the policy definition.
19 20 21 |
# File 'lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment.rb', line 19 def policy_definition_id @policy_definition_id end |
#scope ⇒ String
Returns The scope for the policy assignment.
22 23 24 |
# File 'lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment.rb', line 22 def scope @scope end |
#type ⇒ String
Returns The type of the policy assignment.
35 36 37 |
# File 'lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment.rb', line 35 def type @type end |
Class Method Details
.mapper ⇒ Object
Mapper for PolicyAssignment class as Ruby Hash. This will be used for serialization/deserialization.
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 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment.rb', line 45 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'PolicyAssignment', type: { name: 'Composite', class_name: 'PolicyAssignment', model_properties: { display_name: { client_side_validation: true, required: false, serialized_name: 'properties.displayName', type: { name: 'String' } }, policy_definition_id: { client_side_validation: true, required: false, serialized_name: 'properties.policyDefinitionId', type: { name: 'String' } }, scope: { client_side_validation: true, required: false, serialized_name: 'properties.scope', type: { name: 'String' } }, parameters: { client_side_validation: true, required: false, serialized_name: 'properties.parameters', type: { name: 'Object' } }, description: { client_side_validation: true, required: false, serialized_name: 'properties.description', type: { name: 'String' } }, id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, type: { client_side_validation: true, required: false, serialized_name: 'type', type: { name: 'String' } }, name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } } } } } end |