/**
* The CategorySummaryOld model module.
* @module Ntnx/CategorySummaryOld
* @version 4.4.2
* @class CategorySummaryOld
* @extends ExternalizableAbstractModel
*
* @param { string } name The short name of this category. It may not be unique for each category.
It is a mandatory field that must be specified inside the post/put request body.
This field is immutable.
*/
export default class CategorySummaryOld extends ExternalizableAbstractModel {
/**
* Constructs a new CategorySummaryOld.
* @alias module:Ntnx/CategorySummaryOld
* @extends module:Ntnx/ExternalizableAbstractModel
*
* @param { string } name The short name of this category. It may not be unique for each category.
It is a mandatory field that must be specified inside the post/put request body.
This field is immutable.
*/
constructor(name: string);
name: string;
/**
* Returns The fully qualified name of this category. It is unique for each category.
It is a read-only field. The service constructs it from the name-parentExtId combination. An example of a fqName would be `Location/Bangalore`, where `Location` is the parent category's name and `Bangalore` is the category name.
This field is immutable.
* @return {string}
*/
getFqName(): string;
/**
* Sets The fully qualified name of this category. It is unique for each category.
It is a read-only field. The service constructs it from the name-parentExtId combination. An example of a fqName would be `Location/Bangalore`, where `Location` is the parent category's name and `Bangalore` is the category name.
This field is immutable.
* @param {string} fqName The fully qualified name of this category. It is unique for each category.
It is a read-only field. The service constructs it from the name-parentExtId combination. An example of a fqName would be `Location/Bangalore`, where `Location` is the parent category's name and `Bangalore` is the category name.
This field is immutable.
*/
setFqName(fqName: string): void;
fqName: string;
/**
* Returns The short name of this category. It may not be unique for each category.
It is a mandatory field that must be specified inside the post/put request body.
This field is immutable.
* @return {string}
*/
getName(): string;
/**
* Sets The short name of this category. It may not be unique for each category.
It is a mandatory field that must be specified inside the post/put request body.
This field is immutable.
* @param {string} name The short name of this category. It may not be unique for each category.
It is a mandatory field that must be specified inside the post/put request body.
This field is immutable.
*/
setName(name: string): void;
/**
* Returns The parent category of this category (may be null if this category is not part of a hierarchy).
Each category can have at most one parent.
A parent cannot be deleted until all the children categories are deleted first.
Must be specified inside the post/put request body for child categories (if not specified, the service assumes the category to be a parent category).
This field is immutable.
* @return {string}
*/
getParentExtId(): string;
/**
* Sets The parent category of this category (may be null if this category is not part of a hierarchy).
Each category can have at most one parent.
A parent cannot be deleted until all the children categories are deleted first.
Must be specified inside the post/put request body for child categories (if not specified, the service assumes the category to be a parent category).
This field is immutable.
* @param {string} parentExtId The parent category of this category (may be null if this category is not part of a hierarchy).
Each category can have at most one parent.
A parent cannot be deleted until all the children categories are deleted first.
Must be specified inside the post/put request body for child categories (if not specified, the service assumes the category to be a parent category).
This field is immutable.
*/
setParentExtId(parentExtId: string): void;
parentExtId: string;
/**
* Returns The user-specified name is a string that the user can specify; with syntax and semantics controlled by the user. The server does not validate this value nor does it enforce the uniqueness or any other constraints.
It is the responsibility of the user to ensure that any semantic or syntactic constraints are retained when mutating this field. Unlike the name of the categories, which are immutable, the user name can be changed by the user to meet their needs.
* @return {string}
*/
getUserSpecifiedName(): string;
/**
* Sets The user-specified name is a string that the user can specify; with syntax and semantics controlled by the user. The server does not validate this value nor does it enforce the uniqueness or any other constraints.
It is the responsibility of the user to ensure that any semantic or syntactic constraints are retained when mutating this field. Unlike the name of the categories, which are immutable, the user name can be changed by the user to meet their needs.
* @param {string} userSpecifiedName The user-specified name is a string that the user can specify; with syntax and semantics controlled by the user. The server does not validate this value nor does it enforce the uniqueness or any other constraints.
It is the responsibility of the user to ensure that any semantic or syntactic constraints are retained when mutating this field. Unlike the name of the categories, which are immutable, the user name can be changed by the user to meet their needs.
*/
setUserSpecifiedName(userSpecifiedName: string): void;
userSpecifiedName: string;
/**
* @return {CategoryType}
*/
getType(): CategoryType;
/**
* @param {CategoryType} type
*/
setType(type: CategoryType): void;
type: string;
/**
* Returns A string consisting of the description of the category as defined by the user. The server does not validate this value nor does it enforce the uniqueness or any other constraints.
It is the responsibility of the user to ensure that any semantic or syntactic constraints are retained when mutating this field.
* @return {string}
*/
getDescription(): string;
/**
* Sets A string consisting of the description of the category as defined by the user. The server does not validate this value nor does it enforce the uniqueness or any other constraints.
It is the responsibility of the user to ensure that any semantic or syntactic constraints are retained when mutating this field.
* @param {string} description A string consisting of the description of the category as defined by the user. The server does not validate this value nor does it enforce the uniqueness or any other constraints.
It is the responsibility of the user to ensure that any semantic or syntactic constraints are retained when mutating this field.
*/
setDescription(description: string): void;
description: string;
/**
* @return {CategoryAssociationSummaryOld[]}
*/
getAssociations(): CategoryAssociationSummaryOld[];
/**
* @param {CategoryAssociationSummaryOld[]} associations
*/
setAssociations(associations: CategoryAssociationSummaryOld[]): void;
associations: CategoryAssociationSummaryOld[];
/**
* Returns This attribute contains the list of all the categories for which this category is the parent.
The parentExtId attributes of each child category is set as the extId of this category.
Note that this list only contains the Summary view of each child category.
* @return {CategorySummaryOld[]}
*/
getChildCategories(): CategorySummaryOld[];
/**
* Sets This attribute contains the list of all the categories for which this category is the parent.
The parentExtId attributes of each child category is set as the extId of this category.
Note that this list only contains the Summary view of each child category.
* @param {CategorySummaryOld[]} childCategories This attribute contains the list of all the categories for which this category is the parent.
The parentExtId attributes of each child category is set as the extId of this category.
Note that this list only contains the Summary view of each child category.
*/
setChildCategories(childCategories: CategorySummaryOld[]): void;
childCategories: CategorySummaryOld[];
/**
* Returns It is a read-only field inserted into category entity at the time of category creation, and which contains the UUID of the user who created this category. It is used for enabling authorization of a particular kind where the user has no access to view/create/update/delete any categories other than the category created by oneself.
* @return {string}
*/
getOwnerUuid(): string;
/**
* Sets It is a read-only field inserted into category entity at the time of category creation, and which contains the UUID of the user who created this category. It is used for enabling authorization of a particular kind where the user has no access to view/create/update/delete any categories other than the category created by oneself.
* @param {string} ownerUuid It is a read-only field inserted into category entity at the time of category creation, and which contains the UUID of the user who created this category. It is used for enabling authorization of a particular kind where the user has no access to view/create/update/delete any categories other than the category created by oneself.
*/
setOwnerUuid(ownerUuid: string): void;
ownerUuid: string;
/**
* Returns The external identifier of the project to which the category belongs.
This field is optional in the payload of category apis.
If given, it should be a valid UUID of a project present in the system.
* @return {string}
*/
getProjectExtId(): string;
/**
* Sets The external identifier of the project to which the category belongs.
This field is optional in the payload of category apis.
If given, it should be a valid UUID of a project present in the system.
* @param {string} projectExtId The external identifier of the project to which the category belongs.
This field is optional in the payload of category apis.
If given, it should be a valid UUID of a project present in the system.
*/
setProjectExtId(projectExtId: string): void;
projectExtId: string;
/**
* Returns This field contains a list of projects with which the category is shared.
The projects are identified by their external identifiers.
If given, it should be a valid UUID of a project present in the system.
* @return {string[]}
*/
getSharedWithProjects(): string[];
/**
* Sets This field contains a list of projects with which the category is shared.
The projects are identified by their external identifiers.
If given, it should be a valid UUID of a project present in the system.
* @param {string[]} sharedWithProjects This field contains a list of projects with which the category is shared.
The projects are identified by their external identifiers.
If given, it should be a valid UUID of a project present in the system.
*/
setSharedWithProjects(sharedWithProjects: string[]): void;
sharedWithProjects: string[];
/**
* Returns This field indicates whether the category is shared with all projects in the system.
If set to true, the category is accessible to all projects.
If set to false, the category is not shared with all projects and can only be accessed by specific projects listed in `sharedWithProjects`.
* @return {boolean}
*/
getIsSharedWithAllProjects(): boolean;
/**
* Sets This field indicates whether the category is shared with all projects in the system.
If set to true, the category is accessible to all projects.
If set to false, the category is not shared with all projects and can only be accessed by specific projects listed in `sharedWithProjects`.
* @param {boolean} isSharedWithAllProjects This field indicates whether the category is shared with all projects in the system.
If set to true, the category is accessible to all projects.
If set to false, the category is not shared with all projects and can only be accessed by specific projects listed in `sharedWithProjects`.
*/
setIsSharedWithAllProjects(isSharedWithAllProjects: boolean): void;
isSharedWithAllProjects: boolean;
#private;
}
import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel";
import CategoryType from "./CategoryType";
import CategoryAssociationSummaryOld from "./CategoryAssociationSummaryOld";