Class: Azure::Policy::Mgmt::V2016_04_01::Models::PolicyAssignment
- Inherits:
-
Object
- Object
- Azure::Policy::Mgmt::V2016_04_01::Models::PolicyAssignment
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-04-01/generated/azure_mgmt_policy/models/policy_assignment.rb
Overview
The policy assignment.
Instance Attribute Summary collapse
-
#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.
-
#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
#display_name ⇒ String
Returns The display name of the policy assignment.
16 17 18 |
# File 'lib/2016-04-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.
25 26 27 |
# File 'lib/2016-04-01/generated/azure_mgmt_policy/models/policy_assignment.rb', line 25 def id @id end |
#name ⇒ String
Returns The name of the policy assignment.
31 32 33 |
# File 'lib/2016-04-01/generated/azure_mgmt_policy/models/policy_assignment.rb', line 31 def name @name end |
#policy_definition_id ⇒ String
Returns The ID of the policy definition.
19 20 21 |
# File 'lib/2016-04-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-04-01/generated/azure_mgmt_policy/models/policy_assignment.rb', line 22 def scope @scope end |
#type ⇒ String
Returns The type of the policy assignment.
28 29 30 |
# File 'lib/2016-04-01/generated/azure_mgmt_policy/models/policy_assignment.rb', line 28 def type @type end |
Class Method Details
.mapper ⇒ Object
Mapper for PolicyAssignment class as Ruby Hash. This will be used for serialization/deserialization.
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 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 |
# File 'lib/2016-04-01/generated/azure_mgmt_policy/models/policy_assignment.rb', line 38 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' } }, id: { client_side_validation: true, required: false, 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 |