Class NetworkAttachmentsResource
The "networkAttachments" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class NetworkAttachmentsResource
Constructors
NetworkAttachmentsResource(IClientService)
Constructs a new resource.
Declaration
public NetworkAttachmentsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AggregatedList(string)
Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project.
Declaration
public virtual NetworkAttachmentsResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
NetworkAttachmentsResource.AggregatedListRequest |
Delete(string, string, string)
Deletes the specified NetworkAttachment in the given scope
Declaration
public virtual NetworkAttachmentsResource.DeleteRequest Delete(string project, string region, string networkAttachment)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region of this request. |
string | networkAttachment | Name of the NetworkAttachment resource to delete. |
Returns
Type | Description |
---|---|
NetworkAttachmentsResource.DeleteRequest |
Get(string, string, string)
Returns the specified NetworkAttachment resource in the given scope.
Declaration
public virtual NetworkAttachmentsResource.GetRequest Get(string project, string region, string networkAttachment)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region of this request. |
string | networkAttachment | Name of the NetworkAttachment resource to return. |
Returns
Type | Description |
---|---|
NetworkAttachmentsResource.GetRequest |
GetIamPolicy(string, string, string)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Declaration
public virtual NetworkAttachmentsResource.GetIamPolicyRequest GetIamPolicy(string project, string region, string resource)
Parameters
Type | Name | Description |
---|---|---|
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 |
---|---|
NetworkAttachmentsResource.GetIamPolicyRequest |
Insert(NetworkAttachment, string, string)
Creates a NetworkAttachment in the specified project in the given scope using the parameters that are included in the request.
Declaration
public virtual NetworkAttachmentsResource.InsertRequest Insert(NetworkAttachment body, string project, string region)
Parameters
Type | Name | Description |
---|---|---|
NetworkAttachment | body | The body of the request. |
string | project | Project ID for this request. |
string | region | Name of the region of this request. |
Returns
Type | Description |
---|---|
NetworkAttachmentsResource.InsertRequest |
List(string, string)
Lists the NetworkAttachments for a project in the given scope.
Declaration
public virtual NetworkAttachmentsResource.ListRequest List(string project, string region)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region of this request. |
Returns
Type | Description |
---|---|
NetworkAttachmentsResource.ListRequest |
SetIamPolicy(RegionSetPolicyRequest, string, string, string)
Sets the access control policy on the specified resource. Replaces any existing policy.
Declaration
public virtual NetworkAttachmentsResource.SetIamPolicyRequest SetIamPolicy(RegionSetPolicyRequest body, string project, string region, string resource)
Parameters
Type | Name | Description |
---|---|---|
RegionSetPolicyRequest | 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 |
---|---|
NetworkAttachmentsResource.SetIamPolicyRequest |
TestIamPermissions(TestPermissionsRequest, string, string, string)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual NetworkAttachmentsResource.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 |
---|---|
NetworkAttachmentsResource.TestIamPermissionsRequest |