Compute Engine v1 API - Class NetworkAttachments.NetworkAttachmentsBase (2.6.0)

[BindServiceMethod(typeof(NetworkAttachments), "BindService")]
public abstract class NetworkAttachmentsBase

Reference documentation and code samples for the Compute Engine v1 API class NetworkAttachments.NetworkAttachmentsBase.

Base class for server-side implementations of NetworkAttachments

Inheritance

Object > NetworkAttachments.NetworkAttachmentsBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

AggregatedList(AggregatedListNetworkAttachmentsRequest, ServerCallContext)

public virtual Task<NetworkAttachmentAggregatedList> AggregatedList(AggregatedListNetworkAttachmentsRequest request, ServerCallContext context)

Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project.

Parameters
NameDescription
requestAggregatedListNetworkAttachmentsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<NetworkAttachmentAggregatedList>

The response to send back to the client (wrapped by a task).

Delete(DeleteNetworkAttachmentRequest, ServerCallContext)

public virtual Task<Operation> Delete(DeleteNetworkAttachmentRequest request, ServerCallContext context)

Deletes the specified NetworkAttachment in the given scope

Parameters
NameDescription
requestDeleteNetworkAttachmentRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

Get(GetNetworkAttachmentRequest, ServerCallContext)

public virtual Task<NetworkAttachment> Get(GetNetworkAttachmentRequest request, ServerCallContext context)

Returns the specified NetworkAttachment resource in the given scope.

Parameters
NameDescription
requestGetNetworkAttachmentRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<NetworkAttachment>

The response to send back to the client (wrapped by a task).

GetIamPolicy(GetIamPolicyNetworkAttachmentRequest, ServerCallContext)

public virtual Task<Policy> GetIamPolicy(GetIamPolicyNetworkAttachmentRequest request, ServerCallContext context)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyNetworkAttachmentRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Policy>

The response to send back to the client (wrapped by a task).

Insert(InsertNetworkAttachmentRequest, ServerCallContext)

public virtual Task<Operation> Insert(InsertNetworkAttachmentRequest request, ServerCallContext context)

Creates a NetworkAttachment in the specified project in the given scope using the parameters that are included in the request.

Parameters
NameDescription
requestInsertNetworkAttachmentRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

List(ListNetworkAttachmentsRequest, ServerCallContext)

public virtual Task<NetworkAttachmentList> List(ListNetworkAttachmentsRequest request, ServerCallContext context)

Lists the NetworkAttachments for a project in the given scope.

Parameters
NameDescription
requestListNetworkAttachmentsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<NetworkAttachmentList>

The response to send back to the client (wrapped by a task).

SetIamPolicy(SetIamPolicyNetworkAttachmentRequest, ServerCallContext)

public virtual Task<Policy> SetIamPolicy(SetIamPolicyNetworkAttachmentRequest request, ServerCallContext context)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
requestSetIamPolicyNetworkAttachmentRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Policy>

The response to send back to the client (wrapped by a task).

TestIamPermissions(TestIamPermissionsNetworkAttachmentRequest, ServerCallContext)

public virtual Task<TestPermissionsResponse> TestIamPermissions(TestIamPermissionsNetworkAttachmentRequest request, ServerCallContext context)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsNetworkAttachmentRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<TestPermissionsResponse>

The response to send back to the client (wrapped by a task).