Class: Azure::CustomerInsights::Mgmt::V2017_01_01::Models::AuthorizationPolicy
- Inherits:
-
Object
- Object
- Azure::CustomerInsights::Mgmt::V2017_01_01::Models::AuthorizationPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy.rb
Overview
The authorization policy.
Instance Attribute Summary collapse
-
#permissions ⇒ Array<PermissionTypes>
policy.
-
#policy_name ⇒ String
Name of the policy.
-
#primary_key ⇒ String
Primary key assiciated with the policy.
-
#secondary_key ⇒ String
Secondary key assiciated with the policy.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AuthorizationPolicy class as Ruby Hash.
Instance Attribute Details
#permissions ⇒ Array<PermissionTypes>
policy.
20 21 22 |
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy.rb', line 20 def @permissions end |
#policy_name ⇒ String
Returns Name of the policy.
16 17 18 |
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy.rb', line 16 def policy_name @policy_name end |
#primary_key ⇒ String
Returns Primary key assiciated with the policy.
23 24 25 |
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy.rb', line 23 def primary_key @primary_key end |
#secondary_key ⇒ String
Returns Secondary key assiciated with the policy.
26 27 28 |
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy.rb', line 26 def secondary_key @secondary_key end |
Class Method Details
.mapper ⇒ Object
Mapper for AuthorizationPolicy class as Ruby Hash. This will be used for serialization/deserialization.
33 34 35 36 37 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 |
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy.rb', line 33 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'AuthorizationPolicy', type: { name: 'Composite', class_name: 'AuthorizationPolicy', model_properties: { policy_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'policyName', type: { name: 'String' } }, permissions: { client_side_validation: true, required: true, serialized_name: 'permissions', constraints: { UniqueItems: true }, type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'PermissionTypesElementType', type: { name: 'Enum', module: 'PermissionTypes' } } } }, primary_key: { client_side_validation: true, required: false, serialized_name: 'primaryKey', type: { name: 'String' } }, secondary_key: { client_side_validation: true, required: false, serialized_name: 'secondaryKey', type: { name: 'String' } } } } } end |