@pulumi/harness
Version:
A Pulumi package for creating and managing Harness resources.
182 lines (181 loc) • 5.7 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Resource for creating a Harness Repo Branch Rule.
*/
export declare class RepoRuleBranch extends pulumi.CustomResource {
/**
* Get an existing RepoRuleBranch 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?: RepoRuleBranchState, opts?: pulumi.CustomResourceOptions): RepoRuleBranch;
/**
* Returns true if the given object is an instance of RepoRuleBranch. 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 RepoRuleBranch;
/**
* List of users who can bypass this rule.
*/
readonly bypasses: pulumi.Output<outputs.platform.RepoRuleBranchBypass[]>;
/**
* Timestamp when the rule was created.
*/
readonly created: pulumi.Output<number>;
/**
* ID of the user who created the rule.
*/
readonly createdBy: pulumi.Output<number>;
/**
* Description of the rule.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Identifier of the rule.
*/
readonly identifier: pulumi.Output<string>;
/**
* Unique identifier of the organization.
*/
readonly orgId: pulumi.Output<string | undefined>;
/**
* Pattern of branch to which rule will apply.
*/
readonly patterns: pulumi.Output<outputs.platform.RepoRuleBranchPattern[] | undefined>;
/**
* Policies to be applied for this rule.
*/
readonly policies: pulumi.Output<outputs.platform.RepoRuleBranchPolicy[]>;
/**
* Unique identifier of the project.
*/
readonly projectId: pulumi.Output<string | undefined>;
/**
* Repo identifier of the repository.
*/
readonly repoIdentifier: pulumi.Output<string>;
/**
* State of the rule (active, disable, monitor).
*/
readonly state: pulumi.Output<string>;
/**
* Timestamp when the rule was updated.
*/
readonly updated: pulumi.Output<number>;
/**
* ID of the user who updated the rule.
*/
readonly updatedBy: pulumi.Output<number>;
/**
* Create a RepoRuleBranch 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: RepoRuleBranchArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering RepoRuleBranch resources.
*/
export interface RepoRuleBranchState {
/**
* List of users who can bypass this rule.
*/
bypasses?: pulumi.Input<pulumi.Input<inputs.platform.RepoRuleBranchBypass>[]>;
/**
* Timestamp when the rule was created.
*/
created?: pulumi.Input<number>;
/**
* ID of the user who created the rule.
*/
createdBy?: pulumi.Input<number>;
/**
* Description of the rule.
*/
description?: pulumi.Input<string>;
/**
* Identifier of the rule.
*/
identifier?: pulumi.Input<string>;
/**
* Unique identifier of the organization.
*/
orgId?: pulumi.Input<string>;
/**
* Pattern of branch to which rule will apply.
*/
patterns?: pulumi.Input<pulumi.Input<inputs.platform.RepoRuleBranchPattern>[]>;
/**
* Policies to be applied for this rule.
*/
policies?: pulumi.Input<pulumi.Input<inputs.platform.RepoRuleBranchPolicy>[]>;
/**
* Unique identifier of the project.
*/
projectId?: pulumi.Input<string>;
/**
* Repo identifier of the repository.
*/
repoIdentifier?: pulumi.Input<string>;
/**
* State of the rule (active, disable, monitor).
*/
state?: pulumi.Input<string>;
/**
* Timestamp when the rule was updated.
*/
updated?: pulumi.Input<number>;
/**
* ID of the user who updated the rule.
*/
updatedBy?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a RepoRuleBranch resource.
*/
export interface RepoRuleBranchArgs {
/**
* List of users who can bypass this rule.
*/
bypasses: pulumi.Input<pulumi.Input<inputs.platform.RepoRuleBranchBypass>[]>;
/**
* Description of the rule.
*/
description?: pulumi.Input<string>;
/**
* Identifier of the rule.
*/
identifier: pulumi.Input<string>;
/**
* Unique identifier of the organization.
*/
orgId?: pulumi.Input<string>;
/**
* Pattern of branch to which rule will apply.
*/
patterns?: pulumi.Input<pulumi.Input<inputs.platform.RepoRuleBranchPattern>[]>;
/**
* Policies to be applied for this rule.
*/
policies: pulumi.Input<pulumi.Input<inputs.platform.RepoRuleBranchPolicy>[]>;
/**
* Unique identifier of the project.
*/
projectId?: pulumi.Input<string>;
/**
* Repo identifier of the repository.
*/
repoIdentifier: pulumi.Input<string>;
/**
* State of the rule (active, disable, monitor).
*/
state: pulumi.Input<string>;
}