Hierarchy (View Summary)

Implements

Constructors

Properties

baseUrl: string
http: HttpClient
rest: RestClient
userAgent: string
vsoClient: VsoClient
RESOURCE_AREA_ID: "fb13a388-40dd-4a04-b530-013a739c72ef"

Methods

  • Retrieve all revisions for a given policy.

    Parameters

    • project: string

      Project ID or project name

    • configurationId: number

      The policy configuration ID.

    • Optionaltop: number

      The number of revisions to retrieve.

    • Optionalskip: number

      The number of revisions to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100.

    Returns Promise<PolicyConfiguration[]>

  • Retrieves a list of all the policy evaluation statuses for a specific pull request.

    Parameters

    • project: string

      Project ID or project name

    • artifactId: string

      A string which uniquely identifies the target of a policy evaluation.

    • OptionalincludeNotApplicable: boolean

      Some 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.

    • Optionaltop: number

      The number of policy evaluation records to retrieve.

    • Optionalskip: number

      The number of policy evaluation records to ignore. For example, to retrieve results 101-150, set top to 50 and skip to 100.

    Returns Promise<PolicyEvaluationRecord[]>