Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

WorkloadManager

import { WorkloadManager } from "https://googleapis.deno.dev/v1/workloadmanager:v1.ts";

Workload Manager is a service that provides tooling for enterprise workloads to automate the deployment and validation of your workloads against best practices and recommendations.

class WorkloadManager {
constructor(client?: CredentialsClient, baseUrl?: string);
executions;
 
async projectsLocationsEvaluationsCreate(
parent: string,
): Promise<Operation>;
async projectsLocationsEvaluationsDelete(name: string, opts?: ProjectsLocationsEvaluationsDeleteOptions): Promise<Operation>;
async projectsLocationsEvaluationsExecutionsDelete(name: string, opts?: ProjectsLocationsEvaluationsExecutionsDeleteOptions): Promise<Operation>;
async projectsLocationsEvaluationsExecutionsGet(name: string): Promise<Execution>;
async projectsLocationsEvaluationsExecutionsList(parent: string, opts?: ProjectsLocationsEvaluationsExecutionsListOptions): Promise<ListExecutionsResponse>;
async projectsLocationsEvaluationsExecutionsResultsList(parent: string, opts?: ProjectsLocationsEvaluationsExecutionsResultsListOptions): Promise<ListExecutionResultsResponse>;
async projectsLocationsEvaluationsExecutionsRun(name: string, req: RunEvaluationRequest): Promise<Operation>;
async projectsLocationsEvaluationsExecutionsScannedResourcesList(parent: string, opts?: ProjectsLocationsEvaluationsExecutionsScannedResourcesListOptions): Promise<ListScannedResourcesResponse>;
async projectsLocationsEvaluationsGet(name: string): Promise<Evaluation>;
async projectsLocationsEvaluationsList(parent: string, opts?: ProjectsLocationsEvaluationsListOptions): Promise<ListEvaluationsResponse>;
async projectsLocationsGet(name: string): Promise<Location>;
async projectsLocationsInsightsWriteInsight(location: string, req: WriteInsightRequest): Promise<WriteInsightResponse>;
async projectsLocationsList(name: string, opts?: ProjectsLocationsListOptions): Promise<ListLocationsResponse>;
async projectsLocationsOperationsCancel(name: string, req: CancelOperationRequest): Promise<Empty>;
async projectsLocationsOperationsDelete(name: string): Promise<Empty>;
async projectsLocationsOperationsGet(name: string): Promise<Operation>;
async projectsLocationsOperationsList(name: string, opts?: ProjectsLocationsOperationsListOptions): Promise<ListOperationsResponse>;
async projectsLocationsRulesList(parent: string, opts?: ProjectsLocationsRulesListOptions): Promise<ListRulesResponse>;
}

§Constructors

§
new WorkloadManager(client?: CredentialsClient, baseUrl?: string)
[src]

§Properties

§
executions
[src]

List the running result of a single Execution.

§Methods

§
projectsLocationsEvaluationsCreate(parent: string, req: Evaluation, opts?: ProjectsLocationsEvaluationsCreateOptions): Promise<Operation>
[src]

Creates a new Evaluation in a given project and location.

@param parent

Required. The resource prefix of the evaluation location using the form: projects/{project_id}/locations/{location_id}

§
projectsLocationsEvaluationsDelete(name: string, opts?: ProjectsLocationsEvaluationsDeleteOptions): Promise<Operation>
[src]

Deletes a single Evaluation.

@param name

Required. Name of the resource

§
projectsLocationsEvaluationsExecutionsDelete(name: string, opts?: ProjectsLocationsEvaluationsExecutionsDeleteOptions): Promise<Operation>
[src]

Deletes a single Execution.

@param name

Required. Name of the resource

§
projectsLocationsEvaluationsExecutionsGet(name: string): Promise<Execution>
[src]

Gets details of a single Execution.

@param name

Required. Name of the resource

§
projectsLocationsEvaluationsExecutionsList(parent: string, opts?: ProjectsLocationsEvaluationsExecutionsListOptions): Promise<ListExecutionsResponse>
[src]

Lists Executions in a given project and location.

@param parent

Required. The resource prefix of the Execution using the form: 'projects/{project}/locations/{location}/evaluations/{evaluation}'

§
projectsLocationsEvaluationsExecutionsResultsList(parent: string, opts?: ProjectsLocationsEvaluationsExecutionsResultsListOptions): Promise<ListExecutionResultsResponse>
[src]
§
projectsLocationsEvaluationsExecutionsRun(name: string, req: RunEvaluationRequest): Promise<Operation>
[src]

Creates a new Execution in a given project and location.

@param name

Required. The resource name of the Execution using the form: 'projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}'

§
projectsLocationsEvaluationsExecutionsScannedResourcesList(parent: string, opts?: ProjectsLocationsEvaluationsExecutionsScannedResourcesListOptions): Promise<ListScannedResourcesResponse>
[src]

List all scanned resources for a single Execution.

@param parent

Required. parent for ListScannedResourcesRequest

§
projectsLocationsEvaluationsGet(name: string): Promise<Evaluation>
[src]

Gets details of a single Evaluation.

@param name

Required. Name of the resource

§
projectsLocationsEvaluationsList(parent: string, opts?: ProjectsLocationsEvaluationsListOptions): Promise<ListEvaluationsResponse>
[src]

Lists Evaluations in a given project and location.

@param parent

Required. Parent value for ListEvaluationsRequest

§
projectsLocationsGet(name: string): Promise<Location>
[src]

Gets information about a location.

@param name

Resource name for the location.

§
projectsLocationsInsightsWriteInsight(location: string, req: WriteInsightRequest): Promise<WriteInsightResponse>
[src]

Write the data insights to workload manager data warehouse.

@param location

Required. The GCP location. The format is: projects/{project}/locations/{location}.

§
projectsLocationsList(name: string, opts?: ProjectsLocationsListOptions): Promise<ListLocationsResponse>
[src]

Lists information about the supported locations for this service.

@param name

The resource that owns the locations collection, if applicable.

§
projectsLocationsOperationsCancel(name: string, req: CancelOperationRequest): Promise<Empty>
[src]

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

@param name

The name of the operation resource to be cancelled.

§
projectsLocationsOperationsDelete(name: string): Promise<Empty>
[src]

Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

@param name

The name of the operation resource to be deleted.

§
projectsLocationsOperationsGet(name: string): Promise<Operation>
[src]

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

@param name

The name of the operation resource.

§
projectsLocationsOperationsList(name: string, opts?: ProjectsLocationsOperationsListOptions): Promise<ListOperationsResponse>
[src]

Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.

@param name

The name of the operation's parent resource.

§
projectsLocationsRulesList(parent: string, opts?: ProjectsLocationsRulesListOptions): Promise<ListRulesResponse>
[src]

Lists rules in a given project.

@param parent

Required. The [project] on which to execute the request. The format is: projects/{project_id}/locations/{location} Currently, the pre-defined rules are global available to all projects and all regions