Class: Azure::TimeSeriesInsights::Mgmt::V2017_11_15::Models::AccessPolicyResource
- Inherits:
-
Resource
- Object
- Resource
- Azure::TimeSeriesInsights::Mgmt::V2017_11_15::Models::AccessPolicyResource
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-11-15/generated/azure_mgmt_time_series_insights/models/access_policy_resource.rb
Overview
An access policy is used to grant users and applications access to the environment. Roles are assigned to service principals in Azure Active Directory. These roles define the actions the principal can perform through the Time Series Insights data plane APIs.
Instance Attribute Summary collapse
-
#description ⇒ String
An description of the access policy.
-
#principal_object_id ⇒ String
Directory.
-
#roles ⇒ Array<AccessPolicyRole>
assigned on the environment.
Attributes inherited from Resource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AccessPolicyResource class as Ruby Hash.
Methods inherited from Resource
Instance Attribute Details
#description ⇒ String
Returns An description of the access policy.
23 24 25 |
# File 'lib/2017-11-15/generated/azure_mgmt_time_series_insights/models/access_policy_resource.rb', line 23 def description @description end |
#principal_object_id ⇒ String
Directory.
20 21 22 |
# File 'lib/2017-11-15/generated/azure_mgmt_time_series_insights/models/access_policy_resource.rb', line 20 def principal_object_id @principal_object_id end |
#roles ⇒ Array<AccessPolicyRole>
assigned on the environment.
27 28 29 |
# File 'lib/2017-11-15/generated/azure_mgmt_time_series_insights/models/access_policy_resource.rb', line 27 def roles @roles end |
Class Method Details
.mapper ⇒ Object
Mapper for AccessPolicyResource class as Ruby Hash. This will be used for serialization/deserialization.
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 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/2017-11-15/generated/azure_mgmt_time_series_insights/models/access_policy_resource.rb', line 34 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'AccessPolicyResource', type: { name: 'Composite', class_name: 'AccessPolicyResource', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, principal_object_id: { client_side_validation: true, required: false, serialized_name: 'properties.principalObjectId', type: { name: 'String' } }, description: { client_side_validation: true, required: false, serialized_name: 'properties.description', type: { name: 'String' } }, roles: { client_side_validation: true, required: false, serialized_name: 'properties.roles', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'AccessPolicyRoleElementType', type: { name: 'Enum', module: 'AccessPolicyRole' } } } } } } } end |