@pulumiverse/harbor
Version:
A Pulumi package for creating and managing Harbor resources.
90 lines (89 loc) • 3.01 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* ## Example Usage
*
* ## Import
*
* ```sh
* $ pulumi import harbor:index/projectMemberUser:ProjectMemberUser main /projects/10/members/200
* ```
*/
export declare class ProjectMemberUser extends pulumi.CustomResource {
/**
* Get an existing ProjectMemberUser 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<pulumi.ID>, state?: ProjectMemberUserState, opts?: pulumi.CustomResourceOptions): ProjectMemberUser;
/**
* Returns true if the given object is an instance of ProjectMemberUser. 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 ProjectMemberUser;
/**
* The member id of the member.
*/
readonly memberId: pulumi.Output<number>;
/**
* The project id of the project that the entity will have access to.
*/
readonly projectId: pulumi.Output<string>;
/**
* The permissions that the entity will be granted.
*/
readonly role: pulumi.Output<string>;
/**
* The name of the member entity.
*/
readonly userName: pulumi.Output<string>;
/**
* Create a ProjectMemberUser 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: ProjectMemberUserArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ProjectMemberUser resources.
*/
export interface ProjectMemberUserState {
/**
* The member id of the member.
*/
memberId?: pulumi.Input<number>;
/**
* The project id of the project that the entity will have access to.
*/
projectId?: pulumi.Input<string>;
/**
* The permissions that the entity will be granted.
*/
role?: pulumi.Input<string>;
/**
* The name of the member entity.
*/
userName?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a ProjectMemberUser resource.
*/
export interface ProjectMemberUserArgs {
/**
* The project id of the project that the entity will have access to.
*/
projectId: pulumi.Input<string>;
/**
* The permissions that the entity will be granted.
*/
role: pulumi.Input<string>;
/**
* The name of the member entity.
*/
userName: pulumi.Input<string>;
}