Compute Engine v1 API - Class NetworkAttachmentsClientImpl (2.10.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
NameDescription
grpcClientNetworkAttachmentsNetworkAttachmentsClient

The underlying gRPC client.

settingsNetworkAttachmentsSettings

The base NetworkAttachmentsSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override NetworkAttachments.NetworkAttachmentsClient GrpcClient { get; }

The underlying gRPC NetworkAttachments client

Property Value
TypeDescription
NetworkAttachmentsNetworkAttachmentsClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
TypeDescription
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.

Parameters
NameDescription
requestAggregatedListNetworkAttachmentsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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.

Parameters
NameDescription
requestAggregatedListNetworkAttachmentsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteNetworkAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteNetworkAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetNetworkAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetNetworkAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyNetworkAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyNetworkAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestInsertNetworkAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestInsertNetworkAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListNetworkAttachmentsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListNetworkAttachmentsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableNetworkAttachmentListNetworkAttachment

A pageable asynchronous sequence of NetworkAttachment resources.

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
NameDescription
requestSetIamPolicyNetworkAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetIamPolicyNetworkAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsNetworkAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsNetworkAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTestPermissionsResponse

A Task containing the RPC response.

Overrides