Class: Azure::Kusto::Mgmt::V2019_11_09::Models::DatabasePrincipalAssignment

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

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#principal_idString

It can be a user email, application ID, or security group name.

Returns:

  • (String)

    The principal ID assigned to the database principal.



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_nameString

Returns The principal name.

Returns:

  • (String)

    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_typePrincipalType

‘Group’, ‘User’

Returns:

  • (PrincipalType)

    Principal type. Possible values include: ‘App’,



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_stateProvisioningState

Possible values include: ‘Running’, ‘Creating’, ‘Deleting’, ‘Succeeded’, ‘Failed’, ‘Moving’

Returns:



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

#roleDatabasePrincipalRole

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

Returns:



22
23
24
# File 'lib/2019-11-09/generated/azure_mgmt_kusto/models/database_principal_assignment.rb', line 22

def role
  @role
end

#tenant_idString

Returns The tenant id of the principal.

Returns:

  • (String)

    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_nameString

Returns The tenant name of the principal.

Returns:

  • (String)

    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

.mapperObject

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