Compute Engine v1 API - Class InstanceSettingsService.InstanceSettingsServiceClient (3.0.0)

public class InstanceSettingsService.InstanceSettingsServiceClient : ClientBase<InstanceSettingsService.InstanceSettingsServiceClient>

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

Client for InstanceSettingsService

Inheritance

object > ClientBase > ClientBaseInstanceSettingsServiceInstanceSettingsServiceClient > InstanceSettingsService.InstanceSettingsServiceClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

InstanceSettingsServiceClient()

protected InstanceSettingsServiceClient()

Protected parameterless constructor to allow creation of test doubles.

InstanceSettingsServiceClient(CallInvoker)

public InstanceSettingsServiceClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

InstanceSettingsServiceClient(ChannelBase)

public InstanceSettingsServiceClient(ChannelBase channel)

Creates a new client for InstanceSettingsService

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

InstanceSettingsServiceClient(ClientBaseConfiguration)

protected InstanceSettingsServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateOperationsClientForZoneOperations()

public virtual Operations.OperationsClient CreateOperationsClientForZoneOperations()

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

Returns
Type Description
OperationsOperationsClient

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

Get(GetInstanceSettingRequest, CallOptions)

public virtual InstanceSettings Get(GetInstanceSettingRequest request, CallOptions options)

Get Instance settings.

Parameters
Name Description
request GetInstanceSettingRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
InstanceSettings

The response received from the server.

Get(GetInstanceSettingRequest, Metadata, DateTime?, CancellationToken)

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

Get Instance settings.

Parameters
Name Description
request GetInstanceSettingRequest

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
InstanceSettings

The response received from the server.

GetAsync(GetInstanceSettingRequest, CallOptions)

public virtual AsyncUnaryCall<InstanceSettings> GetAsync(GetInstanceSettingRequest request, CallOptions options)

Get Instance settings.

Parameters
Name Description
request GetInstanceSettingRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallInstanceSettings

The call object.

GetAsync(GetInstanceSettingRequest, Metadata, DateTime?, CancellationToken)

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

Get Instance settings.

Parameters
Name Description
request GetInstanceSettingRequest

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
AsyncUnaryCallInstanceSettings

The call object.

NewInstance(ClientBaseConfiguration)

protected override InstanceSettingsService.InstanceSettingsServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
InstanceSettingsServiceInstanceSettingsServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.InstanceSettingsService.InstanceSettingsServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Patch(PatchInstanceSettingRequest, CallOptions)

public virtual Operation Patch(PatchInstanceSettingRequest request, CallOptions options)

Patch Instance settings

Parameters
Name Description
request PatchInstanceSettingRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Patch(PatchInstanceSettingRequest, Metadata, DateTime?, CancellationToken)

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

Patch Instance settings

Parameters
Name Description
request PatchInstanceSettingRequest

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.

PatchAsync(PatchInstanceSettingRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchInstanceSettingRequest request, CallOptions options)

Patch Instance settings

Parameters
Name Description
request PatchInstanceSettingRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchInstanceSettingRequest, Metadata, DateTime?, CancellationToken)

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

Patch Instance settings

Parameters
Name Description
request PatchInstanceSettingRequest

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.