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

AppHub

import { AppHub } from "https://googleapis.deno.dev/v1/apphub:v1.ts";
class AppHub {
constructor(client?: CredentialsClient, baseUrl?: string);
async projectsLocationsApplicationsCreate(
parent: string,
): Promise<Operation>;
async projectsLocationsApplicationsDelete(name: string, opts?: ProjectsLocationsApplicationsDeleteOptions): Promise<Operation>;
async projectsLocationsApplicationsGet(name: string): Promise<Application>;
async projectsLocationsApplicationsGetIamPolicy(resource: string, opts?: ProjectsLocationsApplicationsGetIamPolicyOptions): Promise<Policy>;
async projectsLocationsApplicationsList(parent: string, opts?: ProjectsLocationsApplicationsListOptions): Promise<ListApplicationsResponse>;
async projectsLocationsApplicationsPatch(
name: string,
): Promise<Operation>;
async projectsLocationsApplicationsServicesCreate(
parent: string,
req: Service,
): Promise<Operation>;
async projectsLocationsApplicationsServicesDelete(name: string, opts?: ProjectsLocationsApplicationsServicesDeleteOptions): Promise<Operation>;
async projectsLocationsApplicationsServicesGet(name: string): Promise<Service>;
async projectsLocationsApplicationsServicesList(parent: string, opts?: ProjectsLocationsApplicationsServicesListOptions): Promise<ListServicesResponse>;
async projectsLocationsApplicationsServicesPatch(
name: string,
req: Service,
): Promise<Operation>;
async projectsLocationsApplicationsSetIamPolicy(resource: string, req: SetIamPolicyRequest): Promise<Policy>;
async projectsLocationsApplicationsTestIamPermissions(resource: string, req: TestIamPermissionsRequest): Promise<TestIamPermissionsResponse>;
async projectsLocationsApplicationsWorkloadsCreate(
parent: string,
req: Workload,
): Promise<Operation>;
async projectsLocationsApplicationsWorkloadsDelete(name: string, opts?: ProjectsLocationsApplicationsWorkloadsDeleteOptions): Promise<Operation>;
async projectsLocationsApplicationsWorkloadsGet(name: string): Promise<Workload>;
async projectsLocationsApplicationsWorkloadsList(parent: string, opts?: ProjectsLocationsApplicationsWorkloadsListOptions): Promise<ListWorkloadsResponse>;
async projectsLocationsApplicationsWorkloadsPatch(
name: string,
req: Workload,
): Promise<Operation>;
async projectsLocationsDetachServiceProjectAttachment(name: string, req: DetachServiceProjectAttachmentRequest): Promise<DetachServiceProjectAttachmentResponse>;
async projectsLocationsDiscoveredServicesGet(name: string): Promise<DiscoveredService>;
async projectsLocationsDiscoveredServicesList(parent: string, opts?: ProjectsLocationsDiscoveredServicesListOptions): Promise<ListDiscoveredServicesResponse>;
async projectsLocationsDiscoveredServicesLookup(parent: string, opts?: ProjectsLocationsDiscoveredServicesLookupOptions): Promise<LookupDiscoveredServiceResponse>;
async projectsLocationsDiscoveredWorkloadsGet(name: string): Promise<DiscoveredWorkload>;
async projectsLocationsDiscoveredWorkloadsList(parent: string, opts?: ProjectsLocationsDiscoveredWorkloadsListOptions): Promise<ListDiscoveredWorkloadsResponse>;
async projectsLocationsDiscoveredWorkloadsLookup(parent: string, opts?: ProjectsLocationsDiscoveredWorkloadsLookupOptions): Promise<LookupDiscoveredWorkloadResponse>;
async projectsLocationsGet(name: string): Promise<Location>;
async projectsLocationsList(name: string, opts?: ProjectsLocationsListOptions): Promise<ListLocationsResponse>;
async projectsLocationsLookupServiceProjectAttachment(name: string): Promise<LookupServiceProjectAttachmentResponse>;
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 projectsLocationsServiceProjectAttachmentsCreate(
parent: string,
): Promise<Operation>;
async projectsLocationsServiceProjectAttachmentsDelete(name: string, opts?: ProjectsLocationsServiceProjectAttachmentsDeleteOptions): Promise<Operation>;
async projectsLocationsServiceProjectAttachmentsGet(name: string): Promise<ServiceProjectAttachment>;
async projectsLocationsServiceProjectAttachmentsList(parent: string, opts?: ProjectsLocationsServiceProjectAttachmentsListOptions): Promise<ListServiceProjectAttachmentsResponse>;
}

§Constructors

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

§Methods

§
projectsLocationsApplicationsCreate(parent: string, req: Application, opts?: ProjectsLocationsApplicationsCreateOptions): Promise<Operation>
[src]

Creates an Application in a host project and location.

@param parent

Required. Project and location to create Application in. Expected format: projects/{project}/locations/{location}.

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

Deletes an Application in a host project and location.

@param name

Required. Fully qualified name of the Application to delete. Expected format: projects/{project}/locations/{location}/applications/{application}.

§
projectsLocationsApplicationsGet(name: string): Promise<Application>
[src]

Gets an Application in a host project and location.

@param name

Required. Fully qualified name of the Application to fetch. Expected format: projects/{project}/locations/{location}/applications/{application}.

§
projectsLocationsApplicationsGetIamPolicy(resource: string, opts?: ProjectsLocationsApplicationsGetIamPolicyOptions): Promise<Policy>
[src]

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

@param resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

§
projectsLocationsApplicationsList(parent: string, opts?: ProjectsLocationsApplicationsListOptions): Promise<ListApplicationsResponse>
[src]

Lists Applications in a host project and location.

@param parent

Required. Project and location to list Applications on. Expected format: projects/{project}/locations/{location}.

§
projectsLocationsApplicationsPatch(name: string, req: Application, opts?: ProjectsLocationsApplicationsPatchOptions): Promise<Operation>
[src]

Updates an Application in a host project and location.

@param name

Identifier. The resource name of an Application. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}"

§
projectsLocationsApplicationsServicesCreate(parent: string, req: Service, opts?: ProjectsLocationsApplicationsServicesCreateOptions): Promise<Operation>
[src]

Creates a Service in an Application.

@param parent

Required. Fully qualified name of the parent Application to create the Service in. Expected format: projects/{project}/locations/{location}/applications/{application}.

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

Deletes a Service from an Application.

@param name

Required. Fully qualified name of the Service to delete from an Application. Expected format: projects/{project}/locations/{location}/applications/{application}/services/{service}.

§
projectsLocationsApplicationsServicesGet(name: string): Promise<Service>
[src]

Gets a Service in an Application.

@param name

Required. Fully qualified name of the Service to fetch. Expected format: projects/{project}/locations/{location}/applications/{application}/services/{service}.

§
projectsLocationsApplicationsServicesList(parent: string, opts?: ProjectsLocationsApplicationsServicesListOptions): Promise<ListServicesResponse>
[src]

Lists Services in an Application.

@param parent

Required. Fully qualified name of the parent Application to list Services for. Expected format: projects/{project}/locations/{location}/applications/{application}.

§
projectsLocationsApplicationsServicesPatch(name: string, req: Service, opts?: ProjectsLocationsApplicationsServicesPatchOptions): Promise<Operation>
[src]

Updates a Service in an Application.

@param name

Identifier. The resource name of a Service. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}/services/{service-id}"

§
projectsLocationsApplicationsSetIamPolicy(resource: string, req: SetIamPolicyRequest): Promise<Policy>
[src]

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

@param resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

§
projectsLocationsApplicationsTestIamPermissions(resource: string, req: TestIamPermissionsRequest): Promise<TestIamPermissionsResponse>
[src]

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

@param resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

§
projectsLocationsApplicationsWorkloadsCreate(parent: string, req: Workload, opts?: ProjectsLocationsApplicationsWorkloadsCreateOptions): Promise<Operation>
[src]

Creates a Workload in an Application.

@param parent

Required. Fully qualified name of the Application to create Workload in. Expected format: projects/{project}/locations/{location}/applications/{application}.

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

Deletes a Workload from an Application.

@param name

Required. Fully qualified name of the Workload to delete from an Application. Expected format: projects/{project}/locations/{location}/applications/{application}/workloads/{workload}.

§
projectsLocationsApplicationsWorkloadsGet(name: string): Promise<Workload>
[src]

Gets a Workload in an Application.

@param name

Required. Fully qualified name of the Workload to fetch. Expected format: projects/{project}/locations/{location}/applications/{application}/workloads/{workload}.

§
projectsLocationsApplicationsWorkloadsList(parent: string, opts?: ProjectsLocationsApplicationsWorkloadsListOptions): Promise<ListWorkloadsResponse>
[src]

Lists Workloads in an Application.

@param parent

Required. Fully qualified name of the parent Application to list Workloads for. Expected format: projects/{project}/locations/{location}/applications/{application}.

§
projectsLocationsApplicationsWorkloadsPatch(name: string, req: Workload, opts?: ProjectsLocationsApplicationsWorkloadsPatchOptions): Promise<Operation>
[src]

Updates a Workload in an Application.

@param name

Identifier. The resource name of the Workload. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"

§
projectsLocationsDetachServiceProjectAttachment(name: string, req: DetachServiceProjectAttachmentRequest): Promise<DetachServiceProjectAttachmentResponse>
[src]

Detaches a service project from a host project. You can call this API from any service project without needing access to the host project that it is attached to.

@param name

Required. Service project id and location to detach from a host project. Only global location is supported. Expected format: projects/{project}/locations/{location}.

§
projectsLocationsDiscoveredServicesGet(name: string): Promise<DiscoveredService>
[src]

Gets a Discovered Service in a host project and location.

@param name

Required. Fully qualified name of the Discovered Service to fetch. Expected format: projects/{project}/locations/{location}/discoveredServices/{discoveredService}.

§
projectsLocationsDiscoveredServicesList(parent: string, opts?: ProjectsLocationsDiscoveredServicesListOptions): Promise<ListDiscoveredServicesResponse>
[src]

Lists Discovered Services that can be added to an Application in a host project and location.

@param parent

Required. Project and location to list Discovered Services on. Expected format: projects/{project}/locations/{location}.

§
projectsLocationsDiscoveredServicesLookup(parent: string, opts?: ProjectsLocationsDiscoveredServicesLookupOptions): Promise<LookupDiscoveredServiceResponse>
[src]

Lists a Discovered Service in a host project and location, with a given resource URI.

@param parent

Required. Host project ID and location to lookup Discovered Service in. Expected format: projects/{project}/locations/{location}.

§
projectsLocationsDiscoveredWorkloadsGet(name: string): Promise<DiscoveredWorkload>
[src]

Gets a Discovered Workload in a host project and location.

@param name

Required. Fully qualified name of the Discovered Workload to fetch. Expected format: projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}.

§
projectsLocationsDiscoveredWorkloadsList(parent: string, opts?: ProjectsLocationsDiscoveredWorkloadsListOptions): Promise<ListDiscoveredWorkloadsResponse>
[src]

Lists Discovered Workloads that can be added to an Application in a host project and location.

@param parent

Required. Project and location to list Discovered Workloads on. Expected format: projects/{project}/locations/{location}.

§
projectsLocationsDiscoveredWorkloadsLookup(parent: string, opts?: ProjectsLocationsDiscoveredWorkloadsLookupOptions): Promise<LookupDiscoveredWorkloadResponse>
[src]

Lists a Discovered Workload in a host project and location, with a given resource URI.

@param parent

Required. Host project ID and location to lookup Discovered Workload in. Expected format: projects/{project}/locations/{location}.

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

Gets information about a location.

@param name

Resource name for the 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.

§
projectsLocationsLookupServiceProjectAttachment(name: string): Promise<LookupServiceProjectAttachmentResponse>
[src]

Lists a service project attachment for a given service project. You can call this API from any project to find if it is attached to a host project.

@param name

Required. Service project ID and location to lookup service project attachment for. Only global location is supported. Expected format: projects/{project}/locations/{location}.

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

§
projectsLocationsServiceProjectAttachmentsCreate(parent: string, req: ServiceProjectAttachment, opts?: ProjectsLocationsServiceProjectAttachmentsCreateOptions): Promise<Operation>
[src]

Attaches a service project to the host project.

@param parent

Required. Host project ID and location to which service project is being attached. Only global location is supported. Expected format: projects/{project}/locations/{location}.

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

Deletes a service project attachment.

@param name

Required. Fully qualified name of the service project attachment to delete. Expected format: projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}.

§
projectsLocationsServiceProjectAttachmentsGet(name: string): Promise<ServiceProjectAttachment>
[src]

Gets a service project attachment.

@param name

Required. Fully qualified name of the service project attachment to retrieve. Expected format: projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}.

§
projectsLocationsServiceProjectAttachmentsList(parent: string, opts?: ProjectsLocationsServiceProjectAttachmentsListOptions): Promise<ListServiceProjectAttachmentsResponse>
[src]

Lists service projects attached to the host project.

@param parent

Required. Host project ID and location to list service project attachments. Only global location is supported. Expected format: projects/{project}/locations/{location}.