Compute Engine v1 API - Class NetworkAttachments.NetworkAttachmentsClient (2.7.0)

public class NetworkAttachments.NetworkAttachmentsClient : ClientBase<NetworkAttachments.NetworkAttachmentsClient>

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

Client for NetworkAttachments

Inheritance

object > ClientBase > ClientBaseNetworkAttachmentsNetworkAttachmentsClient > NetworkAttachments.NetworkAttachmentsClient

Namespace

GoogleCloudGoogle.Cloud.ComputeV1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

NetworkAttachmentsClient()

protected NetworkAttachmentsClient()

Protected parameterless constructor to allow creation of test doubles.

NetworkAttachmentsClient(CallInvoker)

public NetworkAttachmentsClient(CallInvoker callInvoker)

Creates a new client for NetworkAttachments that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

NetworkAttachmentsClient(ChannelBase)

public NetworkAttachmentsClient(ChannelBase channel)

Creates a new client for NetworkAttachments

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

NetworkAttachmentsClient(ClientBaseConfiguration)

protected NetworkAttachmentsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

AggregatedList(AggregatedListNetworkAttachmentsRequest, CallOptions)

public virtual NetworkAttachmentAggregatedList AggregatedList(AggregatedListNetworkAttachmentsRequest request, CallOptions options)

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

Parameters
NameDescription
requestAggregatedListNetworkAttachmentsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
NetworkAttachmentAggregatedList

The response received from the server.

AggregatedList(AggregatedListNetworkAttachmentsRequest, Metadata, DateTime?, CancellationToken)

public virtual NetworkAttachmentAggregatedList AggregatedList(AggregatedListNetworkAttachmentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestAggregatedListNetworkAttachmentsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
NetworkAttachmentAggregatedList

The response received from the server.

AggregatedListAsync(AggregatedListNetworkAttachmentsRequest, CallOptions)

public virtual AsyncUnaryCall<NetworkAttachmentAggregatedList> AggregatedListAsync(AggregatedListNetworkAttachmentsRequest request, CallOptions options)

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

Parameters
NameDescription
requestAggregatedListNetworkAttachmentsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallNetworkAttachmentAggregatedList

The call object.

AggregatedListAsync(AggregatedListNetworkAttachmentsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<NetworkAttachmentAggregatedList> AggregatedListAsync(AggregatedListNetworkAttachmentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestAggregatedListNetworkAttachmentsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallNetworkAttachmentAggregatedList

The call object.

CreateOperationsClientForRegionOperations()

public virtual Operations.OperationsClient CreateOperationsClientForRegionOperations()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to RegionOperations.

Returns
TypeDescription
OperationsOperationsClient

A new Operations client for the same target as this client.

Delete(DeleteNetworkAttachmentRequest, CallOptions)

public virtual Operation Delete(DeleteNetworkAttachmentRequest request, CallOptions options)

Deletes the specified NetworkAttachment in the given scope

Parameters
NameDescription
requestDeleteNetworkAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Delete(DeleteNetworkAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Delete(DeleteNetworkAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified NetworkAttachment in the given scope

Parameters
NameDescription
requestDeleteNetworkAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteAsync(DeleteNetworkAttachmentRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteNetworkAttachmentRequest request, CallOptions options)

Deletes the specified NetworkAttachment in the given scope

Parameters
NameDescription
requestDeleteNetworkAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteNetworkAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteNetworkAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified NetworkAttachment in the given scope

Parameters
NameDescription
requestDeleteNetworkAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

Get(GetNetworkAttachmentRequest, CallOptions)

public virtual NetworkAttachment Get(GetNetworkAttachmentRequest request, CallOptions options)

Returns the specified NetworkAttachment resource in the given scope.

Parameters
NameDescription
requestGetNetworkAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
NetworkAttachment

The response received from the server.

Get(GetNetworkAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual NetworkAttachment Get(GetNetworkAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified NetworkAttachment resource in the given scope.

Parameters
NameDescription
requestGetNetworkAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
NetworkAttachment

The response received from the server.

GetAsync(GetNetworkAttachmentRequest, CallOptions)

public virtual AsyncUnaryCall<NetworkAttachment> GetAsync(GetNetworkAttachmentRequest request, CallOptions options)

Returns the specified NetworkAttachment resource in the given scope.

Parameters
NameDescription
requestGetNetworkAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallNetworkAttachment

The call object.

GetAsync(GetNetworkAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<NetworkAttachment> GetAsync(GetNetworkAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified NetworkAttachment resource in the given scope.

Parameters
NameDescription
requestGetNetworkAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallNetworkAttachment

The call object.

GetIamPolicy(GetIamPolicyNetworkAttachmentRequest, CallOptions)

public virtual Policy GetIamPolicy(GetIamPolicyNetworkAttachmentRequest request, CallOptions options)

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

Parameters
NameDescription
requestGetIamPolicyNetworkAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Policy

The response received from the server.

GetIamPolicy(GetIamPolicyNetworkAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual Policy GetIamPolicy(GetIamPolicyNetworkAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestGetIamPolicyNetworkAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Policy

The response received from the server.

GetIamPolicyAsync(GetIamPolicyNetworkAttachmentRequest, CallOptions)

public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicyNetworkAttachmentRequest request, CallOptions options)

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

Parameters
NameDescription
requestGetIamPolicyNetworkAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallPolicy

The call object.

GetIamPolicyAsync(GetIamPolicyNetworkAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicyNetworkAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestGetIamPolicyNetworkAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallPolicy

The call object.

Insert(InsertNetworkAttachmentRequest, CallOptions)

public virtual Operation Insert(InsertNetworkAttachmentRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Insert(InsertNetworkAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Insert(InsertNetworkAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

InsertAsync(InsertNetworkAttachmentRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertNetworkAttachmentRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertNetworkAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertNetworkAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

List(ListNetworkAttachmentsRequest, CallOptions)

public virtual NetworkAttachmentList List(ListNetworkAttachmentsRequest request, CallOptions options)

Lists the NetworkAttachments for a project in the given scope.

Parameters
NameDescription
requestListNetworkAttachmentsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
NetworkAttachmentList

The response received from the server.

List(ListNetworkAttachmentsRequest, Metadata, DateTime?, CancellationToken)

public virtual NetworkAttachmentList List(ListNetworkAttachmentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists the NetworkAttachments for a project in the given scope.

Parameters
NameDescription
requestListNetworkAttachmentsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
NetworkAttachmentList

The response received from the server.

ListAsync(ListNetworkAttachmentsRequest, CallOptions)

public virtual AsyncUnaryCall<NetworkAttachmentList> ListAsync(ListNetworkAttachmentsRequest request, CallOptions options)

Lists the NetworkAttachments for a project in the given scope.

Parameters
NameDescription
requestListNetworkAttachmentsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallNetworkAttachmentList

The call object.

ListAsync(ListNetworkAttachmentsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<NetworkAttachmentList> ListAsync(ListNetworkAttachmentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists the NetworkAttachments for a project in the given scope.

Parameters
NameDescription
requestListNetworkAttachmentsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallNetworkAttachmentList

The call object.

NewInstance(ClientBaseConfiguration)

protected override NetworkAttachments.NetworkAttachmentsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
NetworkAttachmentsNetworkAttachmentsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.NetworkAttachments.NetworkAttachmentsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

SetIamPolicy(SetIamPolicyNetworkAttachmentRequest, CallOptions)

public virtual Policy SetIamPolicy(SetIamPolicyNetworkAttachmentRequest request, CallOptions options)

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

Parameters
NameDescription
requestSetIamPolicyNetworkAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Policy

The response received from the server.

SetIamPolicy(SetIamPolicyNetworkAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual Policy SetIamPolicy(SetIamPolicyNetworkAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestSetIamPolicyNetworkAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Policy

The response received from the server.

SetIamPolicyAsync(SetIamPolicyNetworkAttachmentRequest, CallOptions)

public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicyNetworkAttachmentRequest request, CallOptions options)

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

Parameters
NameDescription
requestSetIamPolicyNetworkAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallPolicy

The call object.

SetIamPolicyAsync(SetIamPolicyNetworkAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicyNetworkAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestSetIamPolicyNetworkAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallPolicy

The call object.

TestIamPermissions(TestIamPermissionsNetworkAttachmentRequest, CallOptions)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsNetworkAttachmentRequest request, CallOptions options)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsNetworkAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TestPermissionsResponse

The response received from the server.

TestIamPermissions(TestIamPermissionsNetworkAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsNetworkAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsNetworkAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
TestPermissionsResponse

The response received from the server.

TestIamPermissionsAsync(TestIamPermissionsNetworkAttachmentRequest, CallOptions)

public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsNetworkAttachmentRequest request, CallOptions options)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsNetworkAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallTestPermissionsResponse

The call object.

TestIamPermissionsAsync(TestIamPermissionsNetworkAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsNetworkAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsNetworkAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallTestPermissionsResponse

The call object.