class Azure::Policy::Mgmt::V2016_12_01::Models::PolicyAssignment
The policy assignment.
Attributes
description[RW]
@return [String] This message will be part of response in case of policy violation.
display_name[RW]
@return [String] The display name of the policy assignment.
id[RW]
@return [String] The ID of the policy assignment.
name[RW]
@return [String] The name of the policy assignment.
parameters[RW]
@return Required if a parameter is used in policy rule.
policy_definition_id[RW]
@return [String] The ID of the policy definition.
scope[RW]
@return [String] The scope for the policy assignment.
type[RW]
@return [String] The type of the policy assignment.
Private Class Methods
mapper()
click to toggle source
Mapper for PolicyAssignment
class as Ruby Hash. This will be used for serialization/deserialization.
# 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