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 projectsLocationsDeploymentsActuationsCreate(
parent: string,
req: Actuation,
): Promise<Operation>;
async projectsLocationsDeploymentsActuationsDelete(name: string): Promise<Operation>;
async projectsLocationsDeploymentsActuationsGet(name: string): Promise<Actuation>;
async projectsLocationsDeploymentsActuationsList(parent: string, opts?: ProjectsLocationsDeploymentsActuationsListOptions): Promise<ListActuationsResponse>;
async projectsLocationsDeploymentsCreate(
parent: string,
): Promise<Operation>;
async projectsLocationsDeploymentsDelete(name: string, opts?: ProjectsLocationsDeploymentsDeleteOptions): Promise<Operation>;
async projectsLocationsDeploymentsGet(name: string): Promise<Deployment>;
async projectsLocationsDeploymentsList(parent: string, opts?: ProjectsLocationsDeploymentsListOptions): Promise<ListDeploymentsResponse>;
async projectsLocationsDiscoveredprofilesGet(name: string): Promise<WorkloadProfile>;
async projectsLocationsDiscoveredprofilesHealthGet(name: string): Promise<WorkloadProfileHealth>;
async projectsLocationsDiscoveredprofilesList(parent: string, opts?: ProjectsLocationsDiscoveredprofilesListOptions): Promise<ListDiscoveredProfilesResponse>;
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 projectsLocationsEvaluationsPatch(
name: string,
): Promise<Operation>;
async projectsLocationsGet(name: string): Promise<Location>;
async projectsLocationsInsightsDelete(name: string, opts?: ProjectsLocationsInsightsDeleteOptions): Promise<Empty>;
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]

Lists the result of a single evaluation.

§Methods

§
projectsLocationsDeploymentsActuationsCreate(parent: string, req: Actuation, opts?: ProjectsLocationsDeploymentsActuationsCreateOptions): Promise<Operation>
[src]

Creates a new actuation for an existing Deployment.

@param parent

Required. The resource name of the Actuation location using the form: 'projects/{project_id}/locations/{location}/deployments/{deployment}'

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

Deletes a single Actuation

@param name

Required. The name of the book to delete. project/{project_id}/locations/{location_id}/deployments/{deployment_id}/actuations/{actuation_id}

§
projectsLocationsDeploymentsActuationsGet(name: string): Promise<Actuation>
[src]

Gets details of a single Actuation.

@param name

Required. Name of the resource

§
projectsLocationsDeploymentsActuationsList(parent: string, opts?: ProjectsLocationsDeploymentsActuationsListOptions): Promise<ListActuationsResponse>
[src]

Lists Actuations in a given project, location and deployment.

@param parent

Required. The resource prefix of the Actuation using the form: 'projects/{project_id}/locations/{location}/deployments/{deployment}'

§
projectsLocationsDeploymentsCreate(parent: string, req: Deployment, opts?: ProjectsLocationsDeploymentsCreateOptions): Promise<Operation>
[src]

Creates a new Deployment in a given project and location.

@param parent

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

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

Deletes a single Deployment.

@param name

Required. Name of the resource

§
projectsLocationsDeploymentsGet(name: string): Promise<Deployment>
[src]

Gets details of a single Deployment.

@param name

Required. Name of the resource. The format will be 'projects/{project_id}/locations/{location_id}/deployments/{deployment_id}'

§
projectsLocationsDeploymentsList(parent: string, opts?: ProjectsLocationsDeploymentsListOptions): Promise<ListDeploymentsResponse>
[src]

Lists Deployments in a given project and location.

@param parent

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

§
projectsLocationsDiscoveredprofilesGet(name: string): Promise<WorkloadProfile>
[src]

Gets details of a discovered workload profile.

@param name

Required. Name of the resource

§
projectsLocationsDiscoveredprofilesHealthGet(name: string): Promise<WorkloadProfileHealth>
[src]

Get the health of a discovered workload profile.

@param name

Required. The resource name

§
projectsLocationsDiscoveredprofilesList(parent: string, opts?: ProjectsLocationsDiscoveredprofilesListOptions): Promise<ListDiscoveredProfilesResponse>
[src]

List discovered workload profiles

@param parent

Required. Parent value for ListDiscoveredProfilesRequest

§
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 Evaluation using the form: projects/{project}/locations/{location}/evaluations/{evaluation}.

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

§
projectsLocationsEvaluationsPatch(name: string, req: Evaluation, opts?: ProjectsLocationsEvaluationsPatchOptions): Promise<Operation>
[src]

Updates the parameters of a single Evaluation.

@param name

Name of resource that has the form projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}.

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

Gets information about a location.

@param name

Resource name for the location.

§
projectsLocationsInsightsDelete(name: string, opts?: ProjectsLocationsInsightsDeleteOptions): Promise<Empty>
[src]

Delete the data insights from workload manager data warehouse.

@param name

Required. The system id of the SAP system resource to delete. Formatted as projects/{project}/locations/{location}/sapSystems/{sap_system_id}

§
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. This method lists locations based on the resource scope provided in the [ListLocationsRequest.name] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.

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