Compute Engine v1 API - Class PreviewFeatures.PreviewFeaturesClient (3.18.0)

public class PreviewFeatures.PreviewFeaturesClient : ClientBase<PreviewFeatures.PreviewFeaturesClient>

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

Client for PreviewFeatures

Inheritance

object > ClientBase > ClientBasePreviewFeaturesPreviewFeaturesClient > PreviewFeatures.PreviewFeaturesClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

PreviewFeaturesClient()

protected PreviewFeaturesClient()

Protected parameterless constructor to allow creation of test doubles.

PreviewFeaturesClient(CallInvoker)

public PreviewFeaturesClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

PreviewFeaturesClient(ChannelBase)

public PreviewFeaturesClient(ChannelBase channel)

Creates a new client for PreviewFeatures

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

PreviewFeaturesClient(ClientBaseConfiguration)

protected PreviewFeaturesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateOperationsClientForGlobalOperations()

public virtual Operations.OperationsClient CreateOperationsClientForGlobalOperations()

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

Returns
Type Description
OperationsOperationsClient

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

Get(GetPreviewFeatureRequest, CallOptions)

public virtual PreviewFeature Get(GetPreviewFeatureRequest request, CallOptions options)

Returns the details of the given PreviewFeature.

Parameters
Name Description
request GetPreviewFeatureRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
PreviewFeature

The response received from the server.

Get(GetPreviewFeatureRequest, Metadata, DateTime?, CancellationToken)

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

Returns the details of the given PreviewFeature.

Parameters
Name Description
request GetPreviewFeatureRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
PreviewFeature

The response received from the server.

GetAsync(GetPreviewFeatureRequest, CallOptions)

public virtual AsyncUnaryCall<PreviewFeature> GetAsync(GetPreviewFeatureRequest request, CallOptions options)

Returns the details of the given PreviewFeature.

Parameters
Name Description
request GetPreviewFeatureRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallPreviewFeature

The call object.

GetAsync(GetPreviewFeatureRequest, Metadata, DateTime?, CancellationToken)

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

Returns the details of the given PreviewFeature.

Parameters
Name Description
request GetPreviewFeatureRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallPreviewFeature

The call object.

List(ListPreviewFeaturesRequest, CallOptions)

public virtual PreviewFeatureList List(ListPreviewFeaturesRequest request, CallOptions options)

Returns the details of the given PreviewFeature.

Parameters
Name Description
request ListPreviewFeaturesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
PreviewFeatureList

The response received from the server.

List(ListPreviewFeaturesRequest, Metadata, DateTime?, CancellationToken)

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

Returns the details of the given PreviewFeature.

Parameters
Name Description
request ListPreviewFeaturesRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
PreviewFeatureList

The response received from the server.

ListAsync(ListPreviewFeaturesRequest, CallOptions)

public virtual AsyncUnaryCall<PreviewFeatureList> ListAsync(ListPreviewFeaturesRequest request, CallOptions options)

Returns the details of the given PreviewFeature.

Parameters
Name Description
request ListPreviewFeaturesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallPreviewFeatureList

The call object.

ListAsync(ListPreviewFeaturesRequest, Metadata, DateTime?, CancellationToken)

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

Returns the details of the given PreviewFeature.

Parameters
Name Description
request ListPreviewFeaturesRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallPreviewFeatureList

The call object.

NewInstance(ClientBaseConfiguration)

protected override PreviewFeatures.PreviewFeaturesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
PreviewFeaturesPreviewFeaturesClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.PreviewFeatures.PreviewFeaturesClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Update(UpdatePreviewFeatureRequest, CallOptions)

public virtual Operation Update(UpdatePreviewFeatureRequest request, CallOptions options)

Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature.

Parameters
Name Description
request UpdatePreviewFeatureRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Update(UpdatePreviewFeatureRequest, Metadata, DateTime?, CancellationToken)

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

Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature.

Parameters
Name Description
request UpdatePreviewFeatureRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

UpdateAsync(UpdatePreviewFeatureRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UpdateAsync(UpdatePreviewFeatureRequest request, CallOptions options)

Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature.

Parameters
Name Description
request UpdatePreviewFeatureRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

UpdateAsync(UpdatePreviewFeatureRequest, Metadata, DateTime?, CancellationToken)

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

Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature.

Parameters
Name Description
request UpdatePreviewFeatureRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.