import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Describes a Role. * * ## Example Usage * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * const testRole = new nutanix.Role("test", { * name: "NAME", * description: "DESCRIPTION", * permissionReferenceLists: [{ * kind: "permission", * uuid: "ID OF PERMISSION", * }], * }); * const test = nutanix.getRoleOutput({ * roleId: testRole.id, * }); * ``` * */ export declare function getRole(args?: GetRoleArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getRole. */ export interface GetRoleArgs { /** * - Categories for the Role. */ categories?: inputs.GetRoleCategory[]; /** * - (Optional) The UUID of a Role. */ roleId?: string; /** * - (Optional) The name of a Role. */ roleName?: string; } /** * A collection of values returned by getRole. */ export interface GetRoleResult { /** * The version of the API. */ readonly apiVersion: string; /** * - Categories for the Role. */ readonly categories: outputs.GetRoleCategory[]; /** * - The description of the Role. */ readonly description: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * - The role kind metadata. */ readonly metadata: { [key: string]: string; }; /** * - the name(Optional). */ readonly name: string; /** * - The reference to a user. */ readonly ownerReference: { [key: string]: string; }; /** * - (Required) List of permission references. */ readonly permissionReferenceLists: outputs.GetRolePermissionReferenceList[]; /** * - The reference to a project. */ readonly projectReference: { [key: string]: string; }; readonly roleId?: string; readonly roleName?: string; /** * - The state of the role. */ readonly state: string; } /** * Describes a Role. * * ## Example Usage * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * const testRole = new nutanix.Role("test", { * name: "NAME", * description: "DESCRIPTION", * permissionReferenceLists: [{ * kind: "permission", * uuid: "ID OF PERMISSION", * }], * }); * const test = nutanix.getRoleOutput({ * roleId: testRole.id, * }); * ``` * */ export declare function getRoleOutput(args?: GetRoleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getRole. */ export interface GetRoleOutputArgs { /** * - Categories for the Role. */ categories?: pulumi.Input[] | undefined>; /** * - (Optional) The UUID of a Role. */ roleId?: pulumi.Input; /** * - (Optional) The name of a Role. */ roleName?: pulumi.Input; } //# sourceMappingURL=getRole.d.ts.map