Class GlobalAddressesResource
The "globalAddresses" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class GlobalAddressesResource
Constructors
GlobalAddressesResource(IClientService)
Constructs a new resource.
Declaration
public GlobalAddressesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string)
Deletes the specified address resource.
Declaration
public virtual GlobalAddressesResource.DeleteRequest Delete(string project, string address)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | address | Name of the address resource to delete. |
Returns
Type | Description |
---|---|
GlobalAddressesResource.DeleteRequest |
Get(string, string)
Returns the specified address resource.
Declaration
public virtual GlobalAddressesResource.GetRequest Get(string project, string address)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | address | Name of the address resource to return. |
Returns
Type | Description |
---|---|
GlobalAddressesResource.GetRequest |
Insert(Address, string)
Creates an address resource in the specified project by using the data included in the request.
Declaration
public virtual GlobalAddressesResource.InsertRequest Insert(Address body, string project)
Parameters
Type | Name | Description |
---|---|---|
Address | body | The body of the request. |
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
GlobalAddressesResource.InsertRequest |
List(string)
Retrieves a list of global addresses.
Declaration
public virtual GlobalAddressesResource.ListRequest List(string project)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
GlobalAddressesResource.ListRequest |
Move(GlobalAddressesMoveRequest, string, string)
Moves the specified address resource from one project to another project.
Declaration
public virtual GlobalAddressesResource.MoveRequest Move(GlobalAddressesMoveRequest body, string project, string address)
Parameters
Type | Name | Description |
---|---|---|
GlobalAddressesMoveRequest | body | The body of the request. |
string | project | Source project ID which the Address is moved from. |
string | address | Name of the address resource to move. |
Returns
Type | Description |
---|---|
GlobalAddressesResource.MoveRequest |
SetLabels(GlobalSetLabelsRequest, string, string)
Sets the labels on a GlobalAddress. To learn more about labels, read the Labeling Resources documentation.
Declaration
public virtual GlobalAddressesResource.SetLabelsRequest SetLabels(GlobalSetLabelsRequest body, string project, string resource)
Parameters
Type | Name | Description |
---|---|---|
GlobalSetLabelsRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
GlobalAddressesResource.SetLabelsRequest |