import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a resource to add a Role. * * ## Example Usage * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * // filtered list operation * const operations_filtered_list = nutanix.getOperationsV2({ * filter: "startswith(displayName, 'Create_')", * }); * // Create role * const example_role = new nutanix.RolesV2("example-role", { * displayName: "example_role", * description: "create example role", * operations: [ * operations_filtered_list.then(operations_filtered_list => operations_filtered_list.operations?.[0]?.extId), * operations_filtered_list.then(operations_filtered_list => operations_filtered_list.operations?.[1]?.extId), * operations_filtered_list.then(operations_filtered_list => operations_filtered_list.operations?.[2]?.extId), * operations_filtered_list.then(operations_filtered_list => operations_filtered_list.operations?.[3]?.extId), * ], * }); * ``` * */ export declare class RolesV2 extends pulumi.CustomResource { /** * Get an existing RolesV2 resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: RolesV2State, opts?: pulumi.CustomResourceOptions): RolesV2; /** * Returns true if the given object is an instance of RolesV2. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is RolesV2; /** * - List of Accessible Clients for the Role. */ readonly accessibleClients: pulumi.Output; /** * - List of Accessible Entity Types for the Role. */ readonly accessibleEntityTypes: pulumi.Output; /** * - Number of Users assigned to given Role. */ readonly assignedUsersCount: pulumi.Output; /** * - Number of User Groups assigned to given Role. */ readonly assignedUsersGroupsCount: pulumi.Output; /** * - Client that created the entity. */ readonly clientName: pulumi.Output; /** * - User or Service Name that created the Role. */ readonly createdBy: pulumi.Output; /** * - The creation time of the Role. */ readonly createdTime: pulumi.Output; /** * - Description of the Role. */ readonly description: pulumi.Output; /** * -(Required) The display name for the Role. */ readonly displayName: pulumi.Output; /** * - A globally unique identifier of an instance that is suitable for external consumption. */ readonly extId: pulumi.Output; /** * - Flag identifying if the Role is system defined or not. */ readonly isSystemDefined: pulumi.Output; /** * - The time when the Role was last updated. */ readonly lastUpdatedTime: pulumi.Output; /** * - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. */ readonly links: pulumi.Output; /** * -(Required) List of operations for the role. */ readonly operations: pulumi.Output; /** * - A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). */ readonly tenantId: pulumi.Output; /** * Create a RolesV2 resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: RolesV2Args, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RolesV2 resources. */ export interface RolesV2State { /** * - List of Accessible Clients for the Role. */ accessibleClients?: pulumi.Input[] | undefined>; /** * - List of Accessible Entity Types for the Role. */ accessibleEntityTypes?: pulumi.Input[] | undefined>; /** * - Number of Users assigned to given Role. */ assignedUsersCount?: pulumi.Input; /** * - Number of User Groups assigned to given Role. */ assignedUsersGroupsCount?: pulumi.Input; /** * - Client that created the entity. */ clientName?: pulumi.Input; /** * - User or Service Name that created the Role. */ createdBy?: pulumi.Input; /** * - The creation time of the Role. */ createdTime?: pulumi.Input; /** * - Description of the Role. */ description?: pulumi.Input; /** * -(Required) The display name for the Role. */ displayName?: pulumi.Input; /** * - A globally unique identifier of an instance that is suitable for external consumption. */ extId?: pulumi.Input; /** * - Flag identifying if the Role is system defined or not. */ isSystemDefined?: pulumi.Input; /** * - The time when the Role was last updated. */ lastUpdatedTime?: pulumi.Input; /** * - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. */ links?: pulumi.Input[] | undefined>; /** * -(Required) List of operations for the role. */ operations?: pulumi.Input[] | undefined>; /** * - A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). */ tenantId?: pulumi.Input; } /** * The set of arguments for constructing a RolesV2 resource. */ export interface RolesV2Args { /** * - Client that created the entity. */ clientName?: pulumi.Input; /** * - Description of the Role. */ description?: pulumi.Input; /** * -(Required) The display name for the Role. */ displayName: pulumi.Input; /** * - A globally unique identifier of an instance that is suitable for external consumption. */ extId?: pulumi.Input; /** * -(Required) List of operations for the role. */ operations: pulumi.Input[]>; } //# sourceMappingURL=rolesV2.d.ts.map