SensitivityLabel

SensitivityLabel class

Represents the sensitivity label.

class SensitivityLabel;

Properties

PropertyTypeDescription
idstringGets and sets the id of sensitivity label.
isEnabledbooleanIndicates whether the sensitivity label is enabled
assignmentTypeSensitivityLabelAssignmentTypeGets and sets the assignment method for the sensitivity label.
siteIdstringRepresents the Azure Active Directory (Azure AD) site identifier corresponding to the sensitivity label policy which describes the sensitivity label.
contentMarkTypeSensitivityLabelMarkTypeGets and sets the types of content marking that ought to be applied to a file.
isRemovedbooleanIndicates whether the sensitivity label was removed.

Methods

MethodDescription
getId()@deprecated. Please use the ‘id’ property instead. Gets and sets the id of sensitivity label.
setId(string)@deprecated. Please use the ‘id’ property instead. Gets and sets the id of sensitivity label.
isEnabled()@deprecated. Please use the ‘isEnabled’ property instead. Indicates whether the sensitivity label is enabled
setIsEnabled(boolean)@deprecated. Please use the ‘isEnabled’ property instead. Indicates whether the sensitivity label is enabled
getAssignmentType()@deprecated. Please use the ‘assignmentType’ property instead. Gets and sets the assignment method for the sensitivity label.
setAssignmentType(SensitivityLabelAssignmentType)@deprecated. Please use the ‘assignmentType’ property instead. Gets and sets the assignment method for the sensitivity label.
getSiteId()@deprecated. Please use the ‘siteId’ property instead. Represents the Azure Active Directory (Azure AD) site identifier corresponding to the sensitivity label policy which describes the sensitivity label.
setSiteId(string)@deprecated. Please use the ‘siteId’ property instead. Represents the Azure Active Directory (Azure AD) site identifier corresponding to the sensitivity label policy which describes the sensitivity label.
getContentMarkType()@deprecated. Please use the ‘contentMarkType’ property instead. Gets and sets the types of content marking that ought to be applied to a file.
setContentMarkType(SensitivityLabelMarkType)@deprecated. Please use the ‘contentMarkType’ property instead. Gets and sets the types of content marking that ought to be applied to a file.
isRemoved()@deprecated. Please use the ‘isRemoved’ property instead. Indicates whether the sensitivity label was removed.
setIsRemoved(boolean)@deprecated. Please use the ‘isRemoved’ property instead. Indicates whether the sensitivity label was removed.
isNull()Checks whether the implementation object is null.

id

Gets and sets the id of sensitivity label.

id : string;

isEnabled

Indicates whether the sensitivity label is enabled

isEnabled : boolean;

assignmentType

Gets and sets the assignment method for the sensitivity label.

assignmentType : SensitivityLabelAssignmentType;

siteId

Represents the Azure Active Directory (Azure AD) site identifier corresponding to the sensitivity label policy which describes the sensitivity label.

siteId : string;

contentMarkType

Gets and sets the types of content marking that ought to be applied to a file.

contentMarkType : SensitivityLabelMarkType;

isRemoved

Indicates whether the sensitivity label was removed.

isRemoved : boolean;

getId()

@deprecated. Please use the ‘id’ property instead. Gets and sets the id of sensitivity label.

getId() : string;

setId(string)

@deprecated. Please use the ‘id’ property instead. Gets and sets the id of sensitivity label.

setId(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

isEnabled()

@deprecated. Please use the ‘isEnabled’ property instead. Indicates whether the sensitivity label is enabled

isEnabled() : boolean;

setIsEnabled(boolean)

@deprecated. Please use the ‘isEnabled’ property instead. Indicates whether the sensitivity label is enabled

setIsEnabled(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getAssignmentType()

@deprecated. Please use the ‘assignmentType’ property instead. Gets and sets the assignment method for the sensitivity label.

getAssignmentType() : SensitivityLabelAssignmentType;

Returns

SensitivityLabelAssignmentType

setAssignmentType(SensitivityLabelAssignmentType)

@deprecated. Please use the ‘assignmentType’ property instead. Gets and sets the assignment method for the sensitivity label.

setAssignmentType(value: SensitivityLabelAssignmentType) : void;

Parameters:

ParameterTypeDescription
valueSensitivityLabelAssignmentTypeThe value to set.

getSiteId()

@deprecated. Please use the ‘siteId’ property instead. Represents the Azure Active Directory (Azure AD) site identifier corresponding to the sensitivity label policy which describes the sensitivity label.

getSiteId() : string;

setSiteId(string)

@deprecated. Please use the ‘siteId’ property instead. Represents the Azure Active Directory (Azure AD) site identifier corresponding to the sensitivity label policy which describes the sensitivity label.

setSiteId(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

getContentMarkType()

@deprecated. Please use the ‘contentMarkType’ property instead. Gets and sets the types of content marking that ought to be applied to a file.

getContentMarkType() : SensitivityLabelMarkType;

Returns

SensitivityLabelMarkType

setContentMarkType(SensitivityLabelMarkType)

@deprecated. Please use the ‘contentMarkType’ property instead. Gets and sets the types of content marking that ought to be applied to a file.

setContentMarkType(value: SensitivityLabelMarkType) : void;

Parameters:

ParameterTypeDescription
valueSensitivityLabelMarkTypeThe value to set.

isRemoved()

@deprecated. Please use the ‘isRemoved’ property instead. Indicates whether the sensitivity label was removed.

isRemoved() : boolean;

setIsRemoved(boolean)

@deprecated. Please use the ‘isRemoved’ property instead. Indicates whether the sensitivity label was removed.

setIsRemoved(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;