class Azure::Kusto::Mgmt::V2020_09_18::Models::DatabasePrincipalAssignment
Class representing a database principal assignment.
Attributes
@return [String] The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.
@return [String] The principal name
@return [PrincipalType] Principal type. Possible values include: 'App', 'Group', 'User'
@return [ProvisioningState] The provisioned state of the resource. Possible values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', 'Moving'
@return [DatabasePrincipalRole] Database
principal role. Possible values include: 'Admin', 'Ingestor', 'Monitor', 'User', 'UnrestrictedViewers', 'Viewer'
@return [String] The tenant id of the principal
@return [String] The tenant name of the principal
Private Class Methods
Mapper for DatabasePrincipalAssignment
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2020-09-18/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