Class: Azure::Kusto::Mgmt::V2019_09_07::Models::DatabasePrincipal

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#app_idString

principal type.

Returns:

  • (String)

    Application id - relevant only for application



35
36
37
# File 'lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal.rb', line 35

def app_id
  @app_id
end

#emailString

Returns Database principal email if exists.

Returns:

  • (String)

    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

#fqnString

Returns Database principal fully qualified name.

Returns:

  • (String)

    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

#nameString

Returns Database principal name.

Returns:

  • (String)

    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

#roleDatabasePrincipalRole

values include: ‘Admin’, ‘Ingestor’, ‘Monitor’, ‘User’, ‘UnrestrictedViewers’, ‘Viewer’

Returns:



18
19
20
# File 'lib/2019-09-07/generated/azure_mgmt_kusto/models/database_principal.rb', line 18

def role
  @role
end

#tenant_nameString

Returns The tenant name of the principal.

Returns:

  • (String)

    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

#typeDatabasePrincipalType

values include: ‘App’, ‘Group’, ‘User’

Returns:



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

.mapperObject

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