Class AddressesResource
The "addresses" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class AddressesResource
Constructors
AddressesResource(IClientService)
Constructs a new resource.
Declaration
public AddressesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AggregatedList(string)
Retrieves an aggregated list of addresses. To prevent failure, Google recommends that you set the
returnPartialSuccess
parameter to true
.
Declaration
public virtual AddressesResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
AddressesResource.AggregatedListRequest |
Delete(string, string, string)
Deletes the specified address resource.
Declaration
public virtual AddressesResource.DeleteRequest Delete(string project, string region, string address)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
string | address | Name of the address resource to delete. |
Returns
Type | Description |
---|---|
AddressesResource.DeleteRequest |
Get(string, string, string)
Returns the specified address resource.
Declaration
public virtual AddressesResource.GetRequest Get(string project, string region, string address)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
string | address | Name of the address resource to return. |
Returns
Type | Description |
---|---|
AddressesResource.GetRequest |
Insert(Address, string, string)
Creates an address resource in the specified project by using the data included in the request.
Declaration
public virtual AddressesResource.InsertRequest Insert(Address body, string project, string region)
Parameters
Type | Name | Description |
---|---|---|
Address | body | The body of the request. |
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
Returns
Type | Description |
---|---|
AddressesResource.InsertRequest |
List(string, string)
Retrieves a list of addresses contained within the specified region.
Declaration
public virtual AddressesResource.ListRequest List(string project, string region)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
Returns
Type | Description |
---|---|
AddressesResource.ListRequest |
Move(RegionAddressesMoveRequest, string, string, string)
Moves the specified address resource.
Declaration
public virtual AddressesResource.MoveRequest Move(RegionAddressesMoveRequest body, string project, string region, string address)
Parameters
Type | Name | Description |
---|---|---|
RegionAddressesMoveRequest | body | The body of the request. |
string | project | Source project ID which the Address is moved from. |
string | region | Name of the region for this request. |
string | address | Name of the address resource to move. |
Returns
Type | Description |
---|---|
AddressesResource.MoveRequest |
SetLabels(RegionSetLabelsRequest, string, string, string)
Sets the labels on an Address. To learn more about labels, read the Labeling Resources documentation.
Declaration
public virtual AddressesResource.SetLabelsRequest SetLabels(RegionSetLabelsRequest body, string project, string region, string resource)
Parameters
Type | Name | Description |
---|---|---|
RegionSetLabelsRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | region | The region for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
AddressesResource.SetLabelsRequest |
TestIamPermissions(TestPermissionsRequest, string, string, string)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual AddressesResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string region, string resource)
Parameters
Type | Name | Description |
---|---|---|
TestPermissionsRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | region | The name of the region for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
AddressesResource.TestIamPermissionsRequest |