Optional
options: IRequestOptionsStatic
Readonly
RESOURCE_Optional
apiVersion: stringThe policy configuration to create.
Project ID or project name
Optional
apiVersion: stringDelete a policy configuration by its ID.
Project ID or project name
ID of the policy configuration to delete.
Get a policy configuration by its ID.
Project ID or project name
ID of the policy configuration
Retrieve a specific revision of a given policy by ID.
Project ID or project name
The policy configuration ID.
The revision ID.
Retrieve all revisions for a given policy.
Project ID or project name
The policy configuration ID.
Optional
top: numberThe number of revisions to retrieve.
Optional
skip: numberThe number of revisions to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100.
Get a list of policy configurations in a project.
Project ID or project name
Optional
scope: string[Provided for legacy reasons] The scope on which a subset of policies is defined.
Optional
policyType: stringFilter returned policies to only this type
Gets the present evaluation state of a policy.
Project ID or project name
ID of the policy evaluation to be retrieved.
Retrieves a list of all the policy evaluation statuses for a specific pull request.
Project ID or project name
A string which uniquely identifies the target of a policy evaluation.
Optional
includeNotApplicable: booleanSome policies might determine that they do not apply to a specific pull request. Setting this parameter to true will return evaluation records even for policies which don't apply to this pull request.
Optional
top: numberThe number of policy evaluation records to retrieve.
Optional
skip: numberThe number of policy evaluation records to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100.
Retrieve a specific policy type by ID.
Project ID or project name
The policy ID.
Retrieve all available policy types.
Project ID or project name
Requeue the policy evaluation.
Project ID or project name
ID of the policy evaluation to be retrieved.
Update a policy configuration by its ID.
The policy configuration to update.
Project ID or project name
ID of the existing policy configuration to be updated.
Create a policy configuration of a given policy type.