Compute Engine v1 API - Class NetworkAttachmentsClientImpl (3.2.0)

public sealed class NetworkAttachmentsClientImpl : NetworkAttachmentsClient

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

NetworkAttachments client wrapper implementation, for convenient use.

Inheritance

object > NetworkAttachmentsClient > NetworkAttachmentsClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The NetworkAttachments API.

Constructors

NetworkAttachmentsClientImpl(NetworkAttachmentsClient, NetworkAttachmentsSettings, ILogger)

public NetworkAttachmentsClientImpl(NetworkAttachments.NetworkAttachmentsClient grpcClient, NetworkAttachmentsSettings settings, ILogger logger)

Constructs a client wrapper for the NetworkAttachments service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient NetworkAttachmentsNetworkAttachmentsClient

The underlying gRPC client.

settings NetworkAttachmentsSettings

The base NetworkAttachmentsSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
Type Description
OperationsClient
Overrides

GrpcClient

public override NetworkAttachments.NetworkAttachmentsClient GrpcClient { get; }

The underlying gRPC NetworkAttachments client

Property Value
Type Description
NetworkAttachmentsNetworkAttachmentsClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
Type Description
OperationsClient
Overrides

PatchOperationsClient

public override OperationsClient PatchOperationsClient { get; }

The long-running operations client for Patch.

Property Value
Type Description
OperationsClient
Overrides

Methods

AggregatedList(AggregatedListNetworkAttachmentsRequest, CallSettings)

public override PagedEnumerable<NetworkAttachmentAggregatedList, KeyValuePair<string, NetworkAttachmentsScopedList>> AggregatedList(AggregatedListNetworkAttachmentsRequest request, CallSettings callSettings = null)

Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListNetworkAttachmentsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableNetworkAttachmentAggregatedListKeyValuePairstringNetworkAttachmentsScopedList

A pageable sequence of KeyValuePair<TKey, TValue> resources.

Overrides

AggregatedListAsync(AggregatedListNetworkAttachmentsRequest, CallSettings)

public override PagedAsyncEnumerable<NetworkAttachmentAggregatedList, KeyValuePair<string, NetworkAttachmentsScopedList>> AggregatedListAsync(AggregatedListNetworkAttachmentsRequest request, CallSettings callSettings = null)

Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListNetworkAttachmentsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableNetworkAttachmentAggregatedListKeyValuePairstringNetworkAttachmentsScopedList

A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources.

Overrides

Delete(DeleteNetworkAttachmentRequest, CallSettings)

public override Operation<Operation, Operation> Delete(DeleteNetworkAttachmentRequest request, CallSettings callSettings = null)

Deletes the specified NetworkAttachment in the given scope

Parameters
Name Description
request DeleteNetworkAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

DeleteAsync(DeleteNetworkAttachmentRequest, CallSettings)

public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteNetworkAttachmentRequest request, CallSettings callSettings = null)

Deletes the specified NetworkAttachment in the given scope

Parameters
Name Description
request DeleteNetworkAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Get(GetNetworkAttachmentRequest, CallSettings)

public override NetworkAttachment Get(GetNetworkAttachmentRequest request, CallSettings callSettings = null)

Returns the specified NetworkAttachment resource in the given scope.

Parameters
Name Description
request GetNetworkAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
NetworkAttachment

The RPC response.

Overrides

GetAsync(GetNetworkAttachmentRequest, CallSettings)

public override Task<NetworkAttachment> GetAsync(GetNetworkAttachmentRequest request, CallSettings callSettings = null)

Returns the specified NetworkAttachment resource in the given scope.

Parameters
Name Description
request GetNetworkAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskNetworkAttachment

A Task containing the RPC response.

Overrides

GetIamPolicy(GetIamPolicyNetworkAttachmentRequest, CallSettings)

public override Policy GetIamPolicy(GetIamPolicyNetworkAttachmentRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GetIamPolicyNetworkAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Overrides

GetIamPolicyAsync(GetIamPolicyNetworkAttachmentRequest, CallSettings)

public override Task<Policy> GetIamPolicyAsync(GetIamPolicyNetworkAttachmentRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GetIamPolicyNetworkAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Overrides

Insert(InsertNetworkAttachmentRequest, CallSettings)

public override Operation<Operation, Operation> Insert(InsertNetworkAttachmentRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request InsertNetworkAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

InsertAsync(InsertNetworkAttachmentRequest, CallSettings)

public override Task<Operation<Operation, Operation>> InsertAsync(InsertNetworkAttachmentRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request InsertNetworkAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

List(ListNetworkAttachmentsRequest, CallSettings)

public override PagedEnumerable<NetworkAttachmentList, NetworkAttachment> List(ListNetworkAttachmentsRequest request, CallSettings callSettings = null)

Lists the NetworkAttachments for a project in the given scope.

Parameters
Name Description
request ListNetworkAttachmentsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableNetworkAttachmentListNetworkAttachment

A pageable sequence of NetworkAttachment resources.

Overrides

ListAsync(ListNetworkAttachmentsRequest, CallSettings)

public override PagedAsyncEnumerable<NetworkAttachmentList, NetworkAttachment> ListAsync(ListNetworkAttachmentsRequest request, CallSettings callSettings = null)

Lists the NetworkAttachments for a project in the given scope.

Parameters
Name Description
request ListNetworkAttachmentsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableNetworkAttachmentListNetworkAttachment

A pageable asynchronous sequence of NetworkAttachment resources.

Overrides

Patch(PatchNetworkAttachmentRequest, CallSettings)

public override Operation<Operation, Operation> Patch(PatchNetworkAttachmentRequest request, CallSettings callSettings = null)

Patches the specified NetworkAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

Parameters
Name Description
request PatchNetworkAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

PatchAsync(PatchNetworkAttachmentRequest, CallSettings)

public override Task<Operation<Operation, Operation>> PatchAsync(PatchNetworkAttachmentRequest request, CallSettings callSettings = null)

Patches the specified NetworkAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

Parameters
Name Description
request PatchNetworkAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SetIamPolicy(SetIamPolicyNetworkAttachmentRequest, CallSettings)

public override Policy SetIamPolicy(SetIamPolicyNetworkAttachmentRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetIamPolicyNetworkAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Overrides

SetIamPolicyAsync(SetIamPolicyNetworkAttachmentRequest, CallSettings)

public override Task<Policy> SetIamPolicyAsync(SetIamPolicyNetworkAttachmentRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetIamPolicyNetworkAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Overrides

TestIamPermissions(TestIamPermissionsNetworkAttachmentRequest, CallSettings)

public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsNetworkAttachmentRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsNetworkAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TestPermissionsResponse

The RPC response.

Overrides

TestIamPermissionsAsync(TestIamPermissionsNetworkAttachmentRequest, CallSettings)

public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsNetworkAttachmentRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsNetworkAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTestPermissionsResponse

A Task containing the RPC response.

Overrides