Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi
harness.platform.getRepoRuleBranch
Explore with Pulumi AI
Data source for retrieving a Harness repo branch rule.
Using getRepoRuleBranch
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRepoRuleBranch(args: GetRepoRuleBranchArgs, opts?: InvokeOptions): Promise<GetRepoRuleBranchResult>
function getRepoRuleBranchOutput(args: GetRepoRuleBranchOutputArgs, opts?: InvokeOptions): Output<GetRepoRuleBranchResult>
def get_repo_rule_branch(bypasses: Optional[Sequence[GetRepoRuleBranchBypass]] = None,
description: Optional[str] = None,
identifier: Optional[str] = None,
org_id: Optional[str] = None,
patterns: Optional[Sequence[GetRepoRuleBranchPattern]] = None,
policies: Optional[Sequence[GetRepoRuleBranchPolicy]] = None,
project_id: Optional[str] = None,
repo_identifier: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRepoRuleBranchResult
def get_repo_rule_branch_output(bypasses: Optional[pulumi.Input[Sequence[pulumi.Input[GetRepoRuleBranchBypassArgs]]]] = None,
description: Optional[pulumi.Input[str]] = None,
identifier: Optional[pulumi.Input[str]] = None,
org_id: Optional[pulumi.Input[str]] = None,
patterns: Optional[pulumi.Input[Sequence[pulumi.Input[GetRepoRuleBranchPatternArgs]]]] = None,
policies: Optional[pulumi.Input[Sequence[pulumi.Input[GetRepoRuleBranchPolicyArgs]]]] = None,
project_id: Optional[pulumi.Input[str]] = None,
repo_identifier: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRepoRuleBranchResult]
func LookupRepoRuleBranch(ctx *Context, args *LookupRepoRuleBranchArgs, opts ...InvokeOption) (*LookupRepoRuleBranchResult, error)
func LookupRepoRuleBranchOutput(ctx *Context, args *LookupRepoRuleBranchOutputArgs, opts ...InvokeOption) LookupRepoRuleBranchResultOutput
> Note: This function is named LookupRepoRuleBranch
in the Go SDK.
public static class GetRepoRuleBranch
{
public static Task<GetRepoRuleBranchResult> InvokeAsync(GetRepoRuleBranchArgs args, InvokeOptions? opts = null)
public static Output<GetRepoRuleBranchResult> Invoke(GetRepoRuleBranchInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRepoRuleBranchResult> getRepoRuleBranch(GetRepoRuleBranchArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: harness:platform/getRepoRuleBranch:getRepoRuleBranch
arguments:
# arguments dictionary
The following arguments are supported:
- Bypasses
List<Get
Repo Rule Branch Bypass> - List of users who can bypass this rule.
- Identifier string
- Identifier of the rule.
- Policies
List<Get
Repo Rule Branch Policy> - Policies to be applied for this rule.
- Repo
Identifier string - Repo identifier of the repository.
- State string
- State of the rule (active, disable, monitor).
- Description string
- Description of the rule.
- Org
Id string - Unique identifier of the organization.
- Patterns
List<Get
Repo Rule Branch Pattern> - Pattern of branch to which rule will apply.
- Project
Id string - Unique identifier of the project.
- Bypasses
[]Get
Repo Rule Branch Bypass - List of users who can bypass this rule.
- Identifier string
- Identifier of the rule.
- Policies
[]Get
Repo Rule Branch Policy - Policies to be applied for this rule.
- Repo
Identifier string - Repo identifier of the repository.
- State string
- State of the rule (active, disable, monitor).
- Description string
- Description of the rule.
- Org
Id string - Unique identifier of the organization.
- Patterns
[]Get
Repo Rule Branch Pattern - Pattern of branch to which rule will apply.
- Project
Id string - Unique identifier of the project.
- bypasses
List<Get
Repo Rule Branch Bypass> - List of users who can bypass this rule.
- identifier String
- Identifier of the rule.
- policies
List<Get
Repo Rule Branch Policy> - Policies to be applied for this rule.
- repo
Identifier String - Repo identifier of the repository.
- state String
- State of the rule (active, disable, monitor).
- description String
- Description of the rule.
- org
Id String - Unique identifier of the organization.
- patterns
List<Get
Repo Rule Branch Pattern> - Pattern of branch to which rule will apply.
- project
Id String - Unique identifier of the project.
- bypasses
Get
Repo Rule Branch Bypass[] - List of users who can bypass this rule.
- identifier string
- Identifier of the rule.
- policies
Get
Repo Rule Branch Policy[] - Policies to be applied for this rule.
- repo
Identifier string - Repo identifier of the repository.
- state string
- State of the rule (active, disable, monitor).
- description string
- Description of the rule.
- org
Id string - Unique identifier of the organization.
- patterns
Get
Repo Rule Branch Pattern[] - Pattern of branch to which rule will apply.
- project
Id string - Unique identifier of the project.
- bypasses
Sequence[Get
Repo Rule Branch Bypass] - List of users who can bypass this rule.
- identifier str
- Identifier of the rule.
- policies
Sequence[Get
Repo Rule Branch Policy] - Policies to be applied for this rule.
- repo_
identifier str - Repo identifier of the repository.
- state str
- State of the rule (active, disable, monitor).
- description str
- Description of the rule.
- org_
id str - Unique identifier of the organization.
- patterns
Sequence[Get
Repo Rule Branch Pattern] - Pattern of branch to which rule will apply.
- project_
id str - Unique identifier of the project.
- bypasses List<Property Map>
- List of users who can bypass this rule.
- identifier String
- Identifier of the rule.
- policies List<Property Map>
- Policies to be applied for this rule.
- repo
Identifier String - Repo identifier of the repository.
- state String
- State of the rule (active, disable, monitor).
- description String
- Description of the rule.
- org
Id String - Unique identifier of the organization.
- patterns List<Property Map>
- Pattern of branch to which rule will apply.
- project
Id String - Unique identifier of the project.
getRepoRuleBranch Result
The following output properties are available:
- Bypasses
List<Get
Repo Rule Branch Bypass> - List of users who can bypass this rule.
- Created int
- Timestamp when the rule was created.
- Created
By int - ID of the user who created the rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Identifier of the rule.
- Policies
List<Get
Repo Rule Branch Policy> - Policies to be applied for this rule.
- Repo
Identifier string - Repo identifier of the repository.
- State string
- State of the rule (active, disable, monitor).
- Updated int
- Timestamp when the rule was updated.
- Updated
By int - ID of the user who updated the rule.
- Description string
- Description of the rule.
- Org
Id string - Unique identifier of the organization.
- Patterns
List<Get
Repo Rule Branch Pattern> - Pattern of branch to which rule will apply.
- Project
Id string - Unique identifier of the project.
- Bypasses
[]Get
Repo Rule Branch Bypass - List of users who can bypass this rule.
- Created int
- Timestamp when the rule was created.
- Created
By int - ID of the user who created the rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Identifier of the rule.
- Policies
[]Get
Repo Rule Branch Policy - Policies to be applied for this rule.
- Repo
Identifier string - Repo identifier of the repository.
- State string
- State of the rule (active, disable, monitor).
- Updated int
- Timestamp when the rule was updated.
- Updated
By int - ID of the user who updated the rule.
- Description string
- Description of the rule.
- Org
Id string - Unique identifier of the organization.
- Patterns
[]Get
Repo Rule Branch Pattern - Pattern of branch to which rule will apply.
- Project
Id string - Unique identifier of the project.
- bypasses
List<Get
Repo Rule Branch Bypass> - List of users who can bypass this rule.
- created Integer
- Timestamp when the rule was created.
- created
By Integer - ID of the user who created the rule.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Identifier of the rule.
- policies
List<Get
Repo Rule Branch Policy> - Policies to be applied for this rule.
- repo
Identifier String - Repo identifier of the repository.
- state String
- State of the rule (active, disable, monitor).
- updated Integer
- Timestamp when the rule was updated.
- updated
By Integer - ID of the user who updated the rule.
- description String
- Description of the rule.
- org
Id String - Unique identifier of the organization.
- patterns
List<Get
Repo Rule Branch Pattern> - Pattern of branch to which rule will apply.
- project
Id String - Unique identifier of the project.
- bypasses
Get
Repo Rule Branch Bypass[] - List of users who can bypass this rule.
- created number
- Timestamp when the rule was created.
- created
By number - ID of the user who created the rule.
- id string
- The provider-assigned unique ID for this managed resource.
- identifier string
- Identifier of the rule.
- policies
Get
Repo Rule Branch Policy[] - Policies to be applied for this rule.
- repo
Identifier string - Repo identifier of the repository.
- state string
- State of the rule (active, disable, monitor).
- updated number
- Timestamp when the rule was updated.
- updated
By number - ID of the user who updated the rule.
- description string
- Description of the rule.
- org
Id string - Unique identifier of the organization.
- patterns
Get
Repo Rule Branch Pattern[] - Pattern of branch to which rule will apply.
- project
Id string - Unique identifier of the project.
- bypasses
Sequence[Get
Repo Rule Branch Bypass] - List of users who can bypass this rule.
- created int
- Timestamp when the rule was created.
- created_
by int - ID of the user who created the rule.
- id str
- The provider-assigned unique ID for this managed resource.
- identifier str
- Identifier of the rule.
- policies
Sequence[Get
Repo Rule Branch Policy] - Policies to be applied for this rule.
- repo_
identifier str - Repo identifier of the repository.
- state str
- State of the rule (active, disable, monitor).
- updated int
- Timestamp when the rule was updated.
- updated_
by int - ID of the user who updated the rule.
- description str
- Description of the rule.
- org_
id str - Unique identifier of the organization.
- patterns
Sequence[Get
Repo Rule Branch Pattern] - Pattern of branch to which rule will apply.
- project_
id str - Unique identifier of the project.
- bypasses List<Property Map>
- List of users who can bypass this rule.
- created Number
- Timestamp when the rule was created.
- created
By Number - ID of the user who created the rule.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Identifier of the rule.
- policies List<Property Map>
- Policies to be applied for this rule.
- repo
Identifier String - Repo identifier of the repository.
- state String
- State of the rule (active, disable, monitor).
- updated Number
- Timestamp when the rule was updated.
- updated
By Number - ID of the user who updated the rule.
- description String
- Description of the rule.
- org
Id String - Unique identifier of the organization.
- patterns List<Property Map>
- Pattern of branch to which rule will apply.
- project
Id String - Unique identifier of the project.
Supporting Types
GetRepoRuleBranchBypass
- Repo
Owners bool - Allow users with repository edit permission to bypass.
- User
Ids List<string> - List of user ids with who can bypass.
- Repo
Owners bool - Allow users with repository edit permission to bypass.
- User
Ids []string - List of user ids with who can bypass.
- repo
Owners Boolean - Allow users with repository edit permission to bypass.
- user
Ids List<String> - List of user ids with who can bypass.
- repo
Owners boolean - Allow users with repository edit permission to bypass.
- user
Ids string[] - List of user ids with who can bypass.
- repo_
owners bool - Allow users with repository edit permission to bypass.
- user_
ids Sequence[str] - List of user ids with who can bypass.
- repo
Owners Boolean - Allow users with repository edit permission to bypass.
- user
Ids List<String> - List of user ids with who can bypass.
GetRepoRuleBranchPattern
- Default
Branch bool - Should rule apply to default branch of the repository.
- Excludes List<string>
- Globstar branch patterns on which rules will NOT be applied.
- Includes List<string>
- Globstar branch patterns on which rules will be applied.
- Default
Branch bool - Should rule apply to default branch of the repository.
- Excludes []string
- Globstar branch patterns on which rules will NOT be applied.
- Includes []string
- Globstar branch patterns on which rules will be applied.
- default
Branch Boolean - Should rule apply to default branch of the repository.
- excludes List<String>
- Globstar branch patterns on which rules will NOT be applied.
- includes List<String>
- Globstar branch patterns on which rules will be applied.
- default
Branch boolean - Should rule apply to default branch of the repository.
- excludes string[]
- Globstar branch patterns on which rules will NOT be applied.
- includes string[]
- Globstar branch patterns on which rules will be applied.
- default_
branch bool - Should rule apply to default branch of the repository.
- excludes Sequence[str]
- Globstar branch patterns on which rules will NOT be applied.
- includes Sequence[str]
- Globstar branch patterns on which rules will be applied.
- default
Branch Boolean - Should rule apply to default branch of the repository.
- excludes List<String>
- Globstar branch patterns on which rules will NOT be applied.
- includes List<String>
- Globstar branch patterns on which rules will be applied.
GetRepoRuleBranchPolicy
- Allow
Merge List<string>Strategies - Limit which merge strategies are available to merge a pull request(Any of squash, rebase, merge).
- Block
Branch boolCreation - Only allow users with bypass permission to create matching branches.
- Block
Branch boolDeletion - Only allow users with bypass permission to delete matching branches.
- Delete
Branch boolOn Merge - Automatically delete the source branch of a pull request after it is merged.
- Require
Code boolOwners - Require approval on pull requests from one reviewer for each codeowner rule.
- Require
Latest boolCommit Approval - Require re-approval when there are new changes in the pull request.
- Require
Minimum intApproval Count - Require approval on pull requests from a minimum number of reviewers.
- Require
No boolChange Request - Require all request for changes have been resolved.
- Require
Pull boolRequest - Do not allow any changes to matching branches without a pull request.
- Require
Resolve boolAll Comments - All comments on a pull request must be resolved before it can be merged.
- Require
Status List<string>Checks - Selected status checks must pass before a pull request can be merged.
- Allow
Merge []stringStrategies - Limit which merge strategies are available to merge a pull request(Any of squash, rebase, merge).
- Block
Branch boolCreation - Only allow users with bypass permission to create matching branches.
- Block
Branch boolDeletion - Only allow users with bypass permission to delete matching branches.
- Delete
Branch boolOn Merge - Automatically delete the source branch of a pull request after it is merged.
- Require
Code boolOwners - Require approval on pull requests from one reviewer for each codeowner rule.
- Require
Latest boolCommit Approval - Require re-approval when there are new changes in the pull request.
- Require
Minimum intApproval Count - Require approval on pull requests from a minimum number of reviewers.
- Require
No boolChange Request - Require all request for changes have been resolved.
- Require
Pull boolRequest - Do not allow any changes to matching branches without a pull request.
- Require
Resolve boolAll Comments - All comments on a pull request must be resolved before it can be merged.
- Require
Status []stringChecks - Selected status checks must pass before a pull request can be merged.
- allow
Merge List<String>Strategies - Limit which merge strategies are available to merge a pull request(Any of squash, rebase, merge).
- block
Branch BooleanCreation - Only allow users with bypass permission to create matching branches.
- block
Branch BooleanDeletion - Only allow users with bypass permission to delete matching branches.
- delete
Branch BooleanOn Merge - Automatically delete the source branch of a pull request after it is merged.
- require
Code BooleanOwners - Require approval on pull requests from one reviewer for each codeowner rule.
- require
Latest BooleanCommit Approval - Require re-approval when there are new changes in the pull request.
- require
Minimum IntegerApproval Count - Require approval on pull requests from a minimum number of reviewers.
- require
No BooleanChange Request - Require all request for changes have been resolved.
- require
Pull BooleanRequest - Do not allow any changes to matching branches without a pull request.
- require
Resolve BooleanAll Comments - All comments on a pull request must be resolved before it can be merged.
- require
Status List<String>Checks - Selected status checks must pass before a pull request can be merged.
- allow
Merge string[]Strategies - Limit which merge strategies are available to merge a pull request(Any of squash, rebase, merge).
- block
Branch booleanCreation - Only allow users with bypass permission to create matching branches.
- block
Branch booleanDeletion - Only allow users with bypass permission to delete matching branches.
- delete
Branch booleanOn Merge - Automatically delete the source branch of a pull request after it is merged.
- require
Code booleanOwners - Require approval on pull requests from one reviewer for each codeowner rule.
- require
Latest booleanCommit Approval - Require re-approval when there are new changes in the pull request.
- require
Minimum numberApproval Count - Require approval on pull requests from a minimum number of reviewers.
- require
No booleanChange Request - Require all request for changes have been resolved.
- require
Pull booleanRequest - Do not allow any changes to matching branches without a pull request.
- require
Resolve booleanAll Comments - All comments on a pull request must be resolved before it can be merged.
- require
Status string[]Checks - Selected status checks must pass before a pull request can be merged.
- allow_
merge_ Sequence[str]strategies - Limit which merge strategies are available to merge a pull request(Any of squash, rebase, merge).
- block_
branch_ boolcreation - Only allow users with bypass permission to create matching branches.
- block_
branch_ booldeletion - Only allow users with bypass permission to delete matching branches.
- delete_
branch_ boolon_ merge - Automatically delete the source branch of a pull request after it is merged.
- require_
code_ boolowners - Require approval on pull requests from one reviewer for each codeowner rule.
- require_
latest_ boolcommit_ approval - Require re-approval when there are new changes in the pull request.
- require_
minimum_ intapproval_ count - Require approval on pull requests from a minimum number of reviewers.
- require_
no_ boolchange_ request - Require all request for changes have been resolved.
- require_
pull_ boolrequest - Do not allow any changes to matching branches without a pull request.
- require_
resolve_ boolall_ comments - All comments on a pull request must be resolved before it can be merged.
- require_
status_ Sequence[str]checks - Selected status checks must pass before a pull request can be merged.
- allow
Merge List<String>Strategies - Limit which merge strategies are available to merge a pull request(Any of squash, rebase, merge).
- block
Branch BooleanCreation - Only allow users with bypass permission to create matching branches.
- block
Branch BooleanDeletion - Only allow users with bypass permission to delete matching branches.
- delete
Branch BooleanOn Merge - Automatically delete the source branch of a pull request after it is merged.
- require
Code BooleanOwners - Require approval on pull requests from one reviewer for each codeowner rule.
- require
Latest BooleanCommit Approval - Require re-approval when there are new changes in the pull request.
- require
Minimum NumberApproval Count - Require approval on pull requests from a minimum number of reviewers.
- require
No BooleanChange Request - Require all request for changes have been resolved.
- require
Pull BooleanRequest - Do not allow any changes to matching branches without a pull request.
- require
Resolve BooleanAll Comments - All comments on a pull request must be resolved before it can be merged.
- require
Status List<String>Checks - Selected status checks must pass before a pull request can be merged.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.