ProjectLevelMrApprovals

Create a ProjectLevelMrApprovals Resource

new ProjectLevelMrApprovals(name: string, args: ProjectLevelMrApprovalsArgs, opts?: CustomResourceOptions);
@overload
def ProjectLevelMrApprovals(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            disable_overriding_approvers_per_merge_request: Optional[bool] = None,
                            merge_requests_author_approval: Optional[bool] = None,
                            merge_requests_disable_committers_approval: Optional[bool] = None,
                            project_id: Optional[int] = None,
                            reset_approvals_on_push: Optional[bool] = None)
@overload
def ProjectLevelMrApprovals(resource_name: str,
                            args: ProjectLevelMrApprovalsArgs,
                            opts: Optional[ResourceOptions] = None)
func NewProjectLevelMrApprovals(ctx *Context, name string, args ProjectLevelMrApprovalsArgs, opts ...ResourceOption) (*ProjectLevelMrApprovals, error)
public ProjectLevelMrApprovals(string name, ProjectLevelMrApprovalsArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ProjectLevelMrApprovalsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ProjectLevelMrApprovalsArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ProjectLevelMrApprovalsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ProjectLevelMrApprovalsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ProjectLevelMrApprovals Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ProjectLevelMrApprovals resource accepts the following input properties:

ProjectId int
The ID of the project to change MR approval configuration.
DisableOverridingApproversPerMergeRequest bool
By default, users are able to edit the approval rules in merge requests. If set to true, the approval rules for all new merge requests will be determined by the default approval rules. Default is false.
MergeRequestsAuthorApproval bool
Set to true if you want to allow merge request authors to self-approve merge requests. Authors also need to be included in the approvers list in order to be able to approve their merge request. Default is false.
MergeRequestsDisableCommittersApproval bool
Set to true if you want to prevent approval of merge requests by merge request committers. Default is false.
ResetApprovalsOnPush bool
Set to true if you want to remove all approvals in a merge request when new commits are pushed to its source branch. Default is true.
ProjectId int
The ID of the project to change MR approval configuration.
DisableOverridingApproversPerMergeRequest bool
By default, users are able to edit the approval rules in merge requests. If set to true, the approval rules for all new merge requests will be determined by the default approval rules. Default is false.
MergeRequestsAuthorApproval bool
Set to true if you want to allow merge request authors to self-approve merge requests. Authors also need to be included in the approvers list in order to be able to approve their merge request. Default is false.
MergeRequestsDisableCommittersApproval bool
Set to true if you want to prevent approval of merge requests by merge request committers. Default is false.
ResetApprovalsOnPush bool
Set to true if you want to remove all approvals in a merge request when new commits are pushed to its source branch. Default is true.
projectId number
The ID of the project to change MR approval configuration.
disableOverridingApproversPerMergeRequest boolean
By default, users are able to edit the approval rules in merge requests. If set to true, the approval rules for all new merge requests will be determined by the default approval rules. Default is false.
mergeRequestsAuthorApproval boolean
Set to true if you want to allow merge request authors to self-approve merge requests. Authors also need to be included in the approvers list in order to be able to approve their merge request. Default is false.
mergeRequestsDisableCommittersApproval boolean
Set to true if you want to prevent approval of merge requests by merge request committers. Default is false.
resetApprovalsOnPush boolean
Set to true if you want to remove all approvals in a merge request when new commits are pushed to its source branch. Default is true.
project_id int
The ID of the project to change MR approval configuration.
disable_overriding_approvers_per_merge_request bool
By default, users are able to edit the approval rules in merge requests. If set to true, the approval rules for all new merge requests will be determined by the default approval rules. Default is false.
merge_requests_author_approval bool
Set to true if you want to allow merge request authors to self-approve merge requests. Authors also need to be included in the approvers list in order to be able to approve their merge request. Default is false.
merge_requests_disable_committers_approval bool
Set to true if you want to prevent approval of merge requests by merge request committers. Default is false.
reset_approvals_on_push bool
Set to true if you want to remove all approvals in a merge request when new commits are pushed to its source branch. Default is true.

Outputs

All input properties are implicitly available as output properties. Additionally, the ProjectLevelMrApprovals resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing ProjectLevelMrApprovals Resource

Get an existing ProjectLevelMrApprovals resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ProjectLevelMrApprovalsState, opts?: CustomResourceOptions): ProjectLevelMrApprovals
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        disable_overriding_approvers_per_merge_request: Optional[bool] = None,
        merge_requests_author_approval: Optional[bool] = None,
        merge_requests_disable_committers_approval: Optional[bool] = None,
        project_id: Optional[int] = None,
        reset_approvals_on_push: Optional[bool] = None) -> ProjectLevelMrApprovals
func GetProjectLevelMrApprovals(ctx *Context, name string, id IDInput, state *ProjectLevelMrApprovalsState, opts ...ResourceOption) (*ProjectLevelMrApprovals, error)
public static ProjectLevelMrApprovals Get(string name, Input<string> id, ProjectLevelMrApprovalsState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

DisableOverridingApproversPerMergeRequest bool
By default, users are able to edit the approval rules in merge requests. If set to true, the approval rules for all new merge requests will be determined by the default approval rules. Default is false.
MergeRequestsAuthorApproval bool
Set to true if you want to allow merge request authors to self-approve merge requests. Authors also need to be included in the approvers list in order to be able to approve their merge request. Default is false.
MergeRequestsDisableCommittersApproval bool
Set to true if you want to prevent approval of merge requests by merge request committers. Default is false.
ProjectId int
The ID of the project to change MR approval configuration.
ResetApprovalsOnPush bool
Set to true if you want to remove all approvals in a merge request when new commits are pushed to its source branch. Default is true.
DisableOverridingApproversPerMergeRequest bool
By default, users are able to edit the approval rules in merge requests. If set to true, the approval rules for all new merge requests will be determined by the default approval rules. Default is false.
MergeRequestsAuthorApproval bool
Set to true if you want to allow merge request authors to self-approve merge requests. Authors also need to be included in the approvers list in order to be able to approve their merge request. Default is false.
MergeRequestsDisableCommittersApproval bool
Set to true if you want to prevent approval of merge requests by merge request committers. Default is false.
ProjectId int
The ID of the project to change MR approval configuration.
ResetApprovalsOnPush bool
Set to true if you want to remove all approvals in a merge request when new commits are pushed to its source branch. Default is true.
disableOverridingApproversPerMergeRequest boolean
By default, users are able to edit the approval rules in merge requests. If set to true, the approval rules for all new merge requests will be determined by the default approval rules. Default is false.
mergeRequestsAuthorApproval boolean
Set to true if you want to allow merge request authors to self-approve merge requests. Authors also need to be included in the approvers list in order to be able to approve their merge request. Default is false.
mergeRequestsDisableCommittersApproval boolean
Set to true if you want to prevent approval of merge requests by merge request committers. Default is false.
projectId number
The ID of the project to change MR approval configuration.
resetApprovalsOnPush boolean
Set to true if you want to remove all approvals in a merge request when new commits are pushed to its source branch. Default is true.
disable_overriding_approvers_per_merge_request bool
By default, users are able to edit the approval rules in merge requests. If set to true, the approval rules for all new merge requests will be determined by the default approval rules. Default is false.
merge_requests_author_approval bool
Set to true if you want to allow merge request authors to self-approve merge requests. Authors also need to be included in the approvers list in order to be able to approve their merge request. Default is false.
merge_requests_disable_committers_approval bool
Set to true if you want to prevent approval of merge requests by merge request committers. Default is false.
project_id int
The ID of the project to change MR approval configuration.
reset_approvals_on_push bool
Set to true if you want to remove all approvals in a merge request when new commits are pushed to its source branch. Default is true.

Package Details

Repository
https://github.com/pulumi/pulumi-gitlab
License
Apache-2.0
Notes
This Pulumi package is based on the gitlab Terraform Provider.