Represents an Autoscalers
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.AutoscalersPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Autoscalers service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
aggregatedList(request, callback)
public aggregatedList(request: google.cloud.compute.v1.IAggregatedListAutoscalersRequest, callback: google.cloud.compute.v1.Autoscalers.AggregatedListCallback): void;
Calls AggregatedList.
Parameters | |
---|---|
Name | Description |
request |
IAggregatedListAutoscalersRequest
AggregatedListAutoscalersRequest message or plain object |
callback |
AggregatedListCallback
Node-style callback called with the error, if any, and AutoscalerAggregatedList |
Returns | |
---|---|
Type | Description |
void |
aggregatedList(request)
public aggregatedList(request: google.cloud.compute.v1.IAggregatedListAutoscalersRequest): Promise<google.cloud.compute.v1.AutoscalerAggregatedList>;
Calls AggregatedList.
Parameter | |
---|---|
Name | Description |
request |
IAggregatedListAutoscalersRequest
AggregatedListAutoscalersRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.AutoscalerAggregatedList> |
Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Autoscalers;
Creates new Autoscalers 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 |
Autoscalers |
RPC service. Useful where requests and/or responses are streamed. |
delete(request, callback)
public delete(request: google.cloud.compute.v1.IDeleteAutoscalerRequest, callback: google.cloud.compute.v1.Autoscalers.DeleteCallback): void;
Calls Delete.
Parameters | |
---|---|
Name | Description |
request |
IDeleteAutoscalerRequest
DeleteAutoscalerRequest message or plain object |
callback |
DeleteCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
delete(request)
public delete(request: google.cloud.compute.v1.IDeleteAutoscalerRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Delete.
Parameter | |
---|---|
Name | Description |
request |
IDeleteAutoscalerRequest
DeleteAutoscalerRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetAutoscalerRequest, callback: google.cloud.compute.v1.Autoscalers.GetCallback): void;
Calls Get.
Parameters | |
---|---|
Name | Description |
request |
IGetAutoscalerRequest
GetAutoscalerRequest message or plain object |
callback |
GetCallback
Node-style callback called with the error, if any, and Autoscaler |
Returns | |
---|---|
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetAutoscalerRequest): Promise<google.cloud.compute.v1.Autoscaler>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
IGetAutoscalerRequest
GetAutoscalerRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Autoscaler> |
Promise |
insert(request, callback)
public insert(request: google.cloud.compute.v1.IInsertAutoscalerRequest, callback: google.cloud.compute.v1.Autoscalers.InsertCallback): void;
Calls Insert.
Parameters | |
---|---|
Name | Description |
request |
IInsertAutoscalerRequest
InsertAutoscalerRequest message or plain object |
callback |
InsertCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
insert(request)
public insert(request: google.cloud.compute.v1.IInsertAutoscalerRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Insert.
Parameter | |
---|---|
Name | Description |
request |
IInsertAutoscalerRequest
InsertAutoscalerRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListAutoscalersRequest, callback: google.cloud.compute.v1.Autoscalers.ListCallback): void;
Calls List.
Parameters | |
---|---|
Name | Description |
request |
IListAutoscalersRequest
ListAutoscalersRequest message or plain object |
callback |
ListCallback
Node-style callback called with the error, if any, and AutoscalerList |
Returns | |
---|---|
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListAutoscalersRequest): Promise<google.cloud.compute.v1.AutoscalerList>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
IListAutoscalersRequest
ListAutoscalersRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.AutoscalerList> |
Promise |
patch(request, callback)
public patch(request: google.cloud.compute.v1.IPatchAutoscalerRequest, callback: google.cloud.compute.v1.Autoscalers.PatchCallback): void;
Calls Patch.
Parameters | |
---|---|
Name | Description |
request |
IPatchAutoscalerRequest
PatchAutoscalerRequest message or plain object |
callback |
PatchCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
patch(request)
public patch(request: google.cloud.compute.v1.IPatchAutoscalerRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Patch.
Parameter | |
---|---|
Name | Description |
request |
IPatchAutoscalerRequest
PatchAutoscalerRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
update(request, callback)
public update(request: google.cloud.compute.v1.IUpdateAutoscalerRequest, callback: google.cloud.compute.v1.Autoscalers.UpdateCallback): void;
Calls Update.
Parameters | |
---|---|
Name | Description |
request |
IUpdateAutoscalerRequest
UpdateAutoscalerRequest message or plain object |
callback |
UpdateCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
update(request)
public update(request: google.cloud.compute.v1.IUpdateAutoscalerRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Update.
Parameter | |
---|---|
Name | Description |
request |
IUpdateAutoscalerRequest
UpdateAutoscalerRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |