Class protos.google.cloud.run.v2.Services (1.0.2)

Represents a Services

Inheritance

$protobuf.rpc.Service > protos.google.cloud.run.v2.Services

Package

@google-cloud/run

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new Services service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Services;

Creates new Services service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
Services

RPC service. Useful where requests and/or responses are streamed.

createService(request, callback)

public createService(request: google.cloud.run.v2.ICreateServiceRequest, callback: google.cloud.run.v2.Services.CreateServiceCallback): void;

Calls CreateService.

Parameters
NameDescription
request ICreateServiceRequest

CreateServiceRequest message or plain object

callback CreateServiceCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

createService(request)

public createService(request: google.cloud.run.v2.ICreateServiceRequest): Promise<google.longrunning.Operation>;

Calls CreateService.

Parameter
NameDescription
request ICreateServiceRequest

CreateServiceRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteService(request, callback)

public deleteService(request: google.cloud.run.v2.IDeleteServiceRequest, callback: google.cloud.run.v2.Services.DeleteServiceCallback): void;

Calls DeleteService.

Parameters
NameDescription
request IDeleteServiceRequest

DeleteServiceRequest message or plain object

callback DeleteServiceCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

deleteService(request)

public deleteService(request: google.cloud.run.v2.IDeleteServiceRequest): Promise<google.longrunning.Operation>;

Calls DeleteService.

Parameter
NameDescription
request IDeleteServiceRequest

DeleteServiceRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getIamPolicy(request, callback)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.cloud.run.v2.Services.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
NameDescription
request IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

callback GetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns
TypeDescription
void

getIamPolicy(request)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls GetIamPolicy.

Parameter
NameDescription
request IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

getService(request, callback)

public getService(request: google.cloud.run.v2.IGetServiceRequest, callback: google.cloud.run.v2.Services.GetServiceCallback): void;

Calls GetService.

Parameters
NameDescription
request IGetServiceRequest

GetServiceRequest message or plain object

callback GetServiceCallback

Node-style callback called with the error, if any, and Service

Returns
TypeDescription
void

getService(request)

public getService(request: google.cloud.run.v2.IGetServiceRequest): Promise<google.cloud.run.v2.Service>;

Calls GetService.

Parameter
NameDescription
request IGetServiceRequest

GetServiceRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.run.v2.Service>

Promise

listServices(request, callback)

public listServices(request: google.cloud.run.v2.IListServicesRequest, callback: google.cloud.run.v2.Services.ListServicesCallback): void;

Calls ListServices.

Parameters
NameDescription
request IListServicesRequest

ListServicesRequest message or plain object

callback ListServicesCallback

Node-style callback called with the error, if any, and ListServicesResponse

Returns
TypeDescription
void

listServices(request)

public listServices(request: google.cloud.run.v2.IListServicesRequest): Promise<google.cloud.run.v2.ListServicesResponse>;

Calls ListServices.

Parameter
NameDescription
request IListServicesRequest

ListServicesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.run.v2.ListServicesResponse>

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.cloud.run.v2.Services.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
NameDescription
request ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

callback SetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns
TypeDescription
void

setIamPolicy(request)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls SetIamPolicy.

Parameter
NameDescription
request ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.cloud.run.v2.Services.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
NameDescription
request ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

callback TestIamPermissionsCallback

Node-style callback called with the error, if any, and TestIamPermissionsResponse

Returns
TypeDescription
void

testIamPermissions(request)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;

Calls TestIamPermissions.

Parameter
NameDescription
request ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.TestIamPermissionsResponse>

Promise

updateService(request, callback)

public updateService(request: google.cloud.run.v2.IUpdateServiceRequest, callback: google.cloud.run.v2.Services.UpdateServiceCallback): void;

Calls UpdateService.

Parameters
NameDescription
request IUpdateServiceRequest

UpdateServiceRequest message or plain object

callback UpdateServiceCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

updateService(request)

public updateService(request: google.cloud.run.v2.IUpdateServiceRequest): Promise<google.longrunning.Operation>;

Calls UpdateService.

Parameter
NameDescription
request IUpdateServiceRequest

UpdateServiceRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise