Represents a Services
Inheritance
$protobuf.rpc.Service > protos.google.cloud.run.v2.ServicesPackage
@google-cloud/runConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new Services service.
| Parameters | |
|---|---|
| Name | Description |
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 | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ICreateServiceRequest
CreateServiceRequest message or plain object |
callback |
CreateServiceCallback
Node-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void |
|
createService(request)
public createService(request: google.cloud.run.v2.ICreateServiceRequest): Promise<google.longrunning.Operation>;Calls CreateService.
| Parameter | |
|---|---|
| Name | Description |
request |
ICreateServiceRequest
CreateServiceRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IDeleteServiceRequest
DeleteServiceRequest message or plain object |
callback |
DeleteServiceCallback
Node-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteService(request)
public deleteService(request: google.cloud.run.v2.IDeleteServiceRequest): Promise<google.longrunning.Operation>;Calls DeleteService.
| Parameter | |
|---|---|
| Name | Description |
request |
IDeleteServiceRequest
DeleteServiceRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IGetIamPolicyRequest
GetIamPolicyRequest message or plain object |
callback |
GetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
| Returns | |
|---|---|
| Type | Description |
void |
|
getIamPolicy(request)
public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;Calls GetIamPolicy.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetIamPolicyRequest
GetIamPolicyRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IGetServiceRequest
GetServiceRequest message or plain object |
callback |
GetServiceCallback
Node-style callback called with the error, if any, and Service |
| Returns | |
|---|---|
| Type | Description |
void |
|
getService(request)
public getService(request: google.cloud.run.v2.IGetServiceRequest): Promise<google.cloud.run.v2.Service>;Calls GetService.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetServiceRequest
GetServiceRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IListServicesRequest
ListServicesRequest message or plain object |
callback |
ListServicesCallback
Node-style callback called with the error, if any, and ListServicesResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listServices(request)
public listServices(request: google.cloud.run.v2.IListServicesRequest): Promise<google.cloud.run.v2.ListServicesResponse>;Calls ListServices.
| Parameter | |
|---|---|
| Name | Description |
request |
IListServicesRequest
ListServicesRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ISetIamPolicyRequest
SetIamPolicyRequest message or plain object |
callback |
SetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
| Returns | |
|---|---|
| Type | Description |
void |
|
setIamPolicy(request)
public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;Calls SetIamPolicy.
| Parameter | |
|---|---|
| Name | Description |
request |
ISetIamPolicyRequest
SetIamPolicyRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ITestIamPermissionsRequest
TestIamPermissionsRequest message or plain object |
callback |
TestIamPermissionsCallback
Node-style callback called with the error, if any, and TestIamPermissionsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
testIamPermissions(request)
public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;Calls TestIamPermissions.
| Parameter | |
|---|---|
| Name | Description |
request |
ITestIamPermissionsRequest
TestIamPermissionsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IUpdateServiceRequest
UpdateServiceRequest message or plain object |
callback |
UpdateServiceCallback
Node-style callback called with the error, if any, and Operation |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateService(request)
public updateService(request: google.cloud.run.v2.IUpdateServiceRequest): Promise<google.longrunning.Operation>;Calls UpdateService.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateServiceRequest
UpdateServiceRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.longrunning.Operation> |
Promise |