Class: Azure::Kusto::Mgmt::V2019_09_07::Models::DatabasePrincipal
- Inherits:
-
Object
- Object
- Azure::Kusto::Mgmt::V2019_09_07::Models::DatabasePrincipal
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal.rb
Overview
A class representing database principal entity.
Instance Attribute Summary collapse
-
#app_id ⇒ String
principal type.
-
#email ⇒ String
Database principal email if exists.
-
#fqn ⇒ String
Database principal fully qualified name.
-
#name ⇒ String
Database principal name.
-
#role ⇒ DatabasePrincipalRole
values include: ‘Admin’, ‘Ingestor’, ‘Monitor’, ‘User’, ‘UnrestrictedViewers’, ‘Viewer’.
-
#tenant_name ⇒ String
The tenant name of the principal.
-
#type ⇒ DatabasePrincipalType
values include: ‘App’, ‘Group’, ‘User’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DatabasePrincipal class as Ruby Hash.
Instance Attribute Details
#app_id ⇒ String
principal type.
35 36 37 |
# File 'lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal.rb', line 35 def app_id @app_id end |
#email ⇒ String
Returns Database principal email if exists.
31 32 33 |
# File 'lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal.rb', line 31 def email @email end |
#fqn ⇒ String
Returns Database principal fully qualified name.
28 29 30 |
# File 'lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal.rb', line 28 def fqn @fqn end |
#name ⇒ String
Returns Database principal name.
21 22 23 |
# File 'lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal.rb', line 21 def name @name end |
#role ⇒ DatabasePrincipalRole
values include: ‘Admin’, ‘Ingestor’, ‘Monitor’, ‘User’, ‘UnrestrictedViewers’, ‘Viewer’
18 19 20 |
# File 'lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal.rb', line 18 def role @role end |
#tenant_name ⇒ String
Returns The tenant name of the principal.
38 39 40 |
# File 'lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal.rb', line 38 def tenant_name @tenant_name end |
#type ⇒ DatabasePrincipalType
values include: ‘App’, ‘Group’, ‘User’
25 26 27 |
# File 'lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal.rb', line 25 def type @type end |
Class Method Details
.mapper ⇒ Object
Mapper for DatabasePrincipal class as Ruby Hash. This will be used for serialization/deserialization.
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 107 108 109 110 111 112 113 114 |
# File 'lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal.rb', line 45 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'DatabasePrincipal', type: { name: 'Composite', class_name: 'DatabasePrincipal', model_properties: { role: { client_side_validation: true, required: true, serialized_name: 'role', type: { name: 'String' } }, name: { client_side_validation: true, required: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: true, serialized_name: 'type', type: { name: 'String' } }, fqn: { client_side_validation: true, required: false, serialized_name: 'fqn', type: { name: 'String' } }, email: { client_side_validation: true, required: false, serialized_name: 'email', type: { name: 'String' } }, app_id: { client_side_validation: true, required: false, serialized_name: 'appId', type: { name: 'String' } }, tenant_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'tenantName', type: { name: 'String' } } } } } end |