Class AutoscalersResource
The "autoscalers" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class AutoscalersResource
Constructors
AutoscalersResource(IClientService)
Constructs a new resource.
Declaration
public AutoscalersResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AggregatedList(string)
Retrieves an aggregated list of autoscalers. To prevent failure, Google recommends that you set the
returnPartialSuccess
parameter to true
.
Declaration
public virtual AutoscalersResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
AutoscalersResource.AggregatedListRequest |
Delete(string, string, string)
Deletes the specified autoscaler.
Declaration
public virtual AutoscalersResource.DeleteRequest Delete(string project, string zone, string autoscaler)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | Name of the zone for this request. |
string | autoscaler | Name of the autoscaler to delete. |
Returns
Type | Description |
---|---|
AutoscalersResource.DeleteRequest |
Get(string, string, string)
Returns the specified autoscaler resource.
Declaration
public virtual AutoscalersResource.GetRequest Get(string project, string zone, string autoscaler)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | Name of the zone for this request. |
string | autoscaler | Name of the autoscaler to return. |
Returns
Type | Description |
---|---|
AutoscalersResource.GetRequest |
Insert(Autoscaler, string, string)
Creates an autoscaler in the specified project using the data included in the request.
Declaration
public virtual AutoscalersResource.InsertRequest Insert(Autoscaler body, string project, string zone)
Parameters
Type | Name | Description |
---|---|---|
Autoscaler | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | Name of the zone for this request. |
Returns
Type | Description |
---|---|
AutoscalersResource.InsertRequest |
List(string, string)
Retrieves a list of autoscalers contained within the specified zone.
Declaration
public virtual AutoscalersResource.ListRequest List(string project, string zone)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | Name of the zone for this request. |
Returns
Type | Description |
---|---|
AutoscalersResource.ListRequest |
Patch(Autoscaler, string, string)
Updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
Declaration
public virtual AutoscalersResource.PatchRequest Patch(Autoscaler body, string project, string zone)
Parameters
Type | Name | Description |
---|---|---|
Autoscaler | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | Name of the zone for this request. |
Returns
Type | Description |
---|---|
AutoscalersResource.PatchRequest |
Update(Autoscaler, string, string)
Updates an autoscaler in the specified project using the data included in the request.
Declaration
public virtual AutoscalersResource.UpdateRequest Update(Autoscaler body, string project, string zone)
Parameters
Type | Name | Description |
---|---|---|
Autoscaler | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | Name of the zone for this request. |
Returns
Type | Description |
---|---|
AutoscalersResource.UpdateRequest |