Class: Azure::Kusto::Mgmt::V2019_11_09::Models::ClusterPrincipalAssignment

Inherits:
ProxyResource show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb

Overview

Class representing a cluster 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

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

Returns:

  • (String)

    The principal ID assigned to the cluster principal. It



17
18
19
# File 'lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb', line 17

def principal_id
  @principal_id
end

#principal_nameString

Returns The principal name.

Returns:

  • (String)

    The principal name



34
35
36
# File 'lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb', line 34

def principal_name
  @principal_name
end

#principal_typePrincipalType

‘Group’, ‘User’

Returns:

  • (PrincipalType)

    Principal type. Possible values include: ‘App’,



28
29
30
# File 'lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb', line 28

def principal_type
  @principal_type
end

#provisioning_stateProvisioningState

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

Returns:



39
40
41
# File 'lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb', line 39

def provisioning_state
  @provisioning_state
end

#roleClusterPrincipalRole

include: ‘AllDatabasesAdmin’, ‘AllDatabasesViewer’

Returns:



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

def role
  @role
end

#tenant_idString

Returns The tenant id of the principal.

Returns:

  • (String)

    The tenant id of the principal



24
25
26
# File 'lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb', line 24

def tenant_id
  @tenant_id
end

#tenant_nameString

Returns The tenant name of the principal.

Returns:

  • (String)

    The tenant name of the principal



31
32
33
# File 'lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb', line 31

def tenant_name
  @tenant_name
end

Class Method Details

.mapperObject

Mapper for ClusterPrincipalAssignment class as Ruby Hash. This will be used for serialization/deserialization.



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
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
# File 'lib/2019-11-09/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb', line 46

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ClusterPrincipalAssignment',
    type: {
      name: 'Composite',
      class_name: 'ClusterPrincipalAssignment',
      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