Class: Azure::Kusto::Mgmt::V2019_11_09::Models::DatabasePrincipalAssignment
- Inherits:
-
ProxyResource
- Object
- Resource
- ProxyResource
- Azure::Kusto::Mgmt::V2019_11_09::Models::DatabasePrincipalAssignment
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment.rb
Overview
Class representing a database principal assignment.
Instance Attribute Summary collapse
-
#principal_id ⇒ String
It can be a user email, application ID, or security group name.
-
#principal_name ⇒ String
The principal name.
-
#principal_type ⇒ PrincipalType
‘Group’, ‘User’.
-
#provisioning_state ⇒ ProvisioningState
Possible values include: ‘Running’, ‘Creating’, ‘Deleting’, ‘Succeeded’, ‘Failed’, ‘Moving’.
-
#role ⇒ DatabasePrincipalRole
values include: ‘Admin’, ‘Ingestor’, ‘Monitor’, ‘User’, ‘UnrestrictedViewers’, ‘Viewer’.
-
#tenant_id ⇒ String
The tenant id of the principal.
-
#tenant_name ⇒ String
The tenant name of the principal.
Attributes inherited from Resource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DatabasePrincipalAssignment class as Ruby Hash.
Methods inherited from Resource
Instance Attribute Details
#principal_id ⇒ String
It can be a user email, application ID, or security group name.
17 18 19 |
# File 'lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment.rb', line 17 def principal_id @principal_id end |
#principal_name ⇒ String
Returns The principal name.
35 36 37 |
# File 'lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment.rb', line 35 def principal_name @principal_name end |
#principal_type ⇒ PrincipalType
‘Group’, ‘User’
29 30 31 |
# File 'lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment.rb', line 29 def principal_type @principal_type end |
#provisioning_state ⇒ ProvisioningState
Possible values include: ‘Running’, ‘Creating’, ‘Deleting’, ‘Succeeded’, ‘Failed’, ‘Moving’
40 41 42 |
# File 'lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment.rb', line 40 def provisioning_state @provisioning_state end |
#role ⇒ DatabasePrincipalRole
values include: ‘Admin’, ‘Ingestor’, ‘Monitor’, ‘User’, ‘UnrestrictedViewers’, ‘Viewer’
22 23 24 |
# File 'lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment.rb', line 22 def role @role end |
#tenant_id ⇒ String
Returns The tenant id of the principal.
25 26 27 |
# File 'lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment.rb', line 25 def tenant_id @tenant_id end |
#tenant_name ⇒ String
Returns The tenant name of the principal.
32 33 34 |
# File 'lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment.rb', line 32 def tenant_name @tenant_name end |
Class Method Details
.mapper ⇒ Object
Mapper for DatabasePrincipalAssignment class as Ruby Hash. This will be used for serialization/deserialization.
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 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment.rb', line 47 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'DatabasePrincipalAssignment', type: { name: 'Composite', class_name: 'DatabasePrincipalAssignment', 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_id: { client_side_validation: true, required: true, serialized_name: 'properties.principalId', type: { name: 'String' } }, role: { client_side_validation: true, required: true, serialized_name: 'properties.role', type: { name: 'String' } }, tenant_id: { client_side_validation: true, required: false, serialized_name: 'properties.tenantId', type: { name: 'String' } }, principal_type: { client_side_validation: true, required: true, serialized_name: 'properties.principalType', type: { name: 'String' } }, tenant_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.tenantName', type: { name: 'String' } }, principal_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.principalName', type: { name: 'String' } }, provisioning_state: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', type: { name: 'String' } } } } } end |