Class Revisions.RevisionsClient (2.0.0-beta01)

Stay organized with collections Save and categorize content based on your preferences.
public class RevisionsClient : ClientBase<Revisions.RevisionsClient>

Client for Revisions

Inheritance

Object > ClientBase > ClientBase<Revisions.RevisionsClient> > Revisions.RevisionsClient

Namespace

Google.Cloud.Run.V2

Assembly

Google.Cloud.Run.V2.dll

Constructors

RevisionsClient()

protected RevisionsClient()

Protected parameterless constructor to allow creation of test doubles.

RevisionsClient(CallInvoker)

public RevisionsClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

RevisionsClient(ChannelBase)

public RevisionsClient(ChannelBase channel)

Creates a new client for Revisions

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

RevisionsClient(ClientBase.ClientBaseConfiguration)

protected RevisionsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

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

Returns
TypeDescription
Operations.OperationsClient

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

DeleteRevision(DeleteRevisionRequest, CallOptions)

public virtual Operation DeleteRevision(DeleteRevisionRequest request, CallOptions options)

Delete a Revision.

Parameters
NameDescription
requestDeleteRevisionRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteRevision(DeleteRevisionRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Delete a Revision.

Parameters
NameDescription
requestDeleteRevisionRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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.

DeleteRevisionAsync(DeleteRevisionRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteRevisionAsync(DeleteRevisionRequest request, CallOptions options)

Delete a Revision.

Parameters
NameDescription
requestDeleteRevisionRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

DeleteRevisionAsync(DeleteRevisionRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Delete a Revision.

Parameters
NameDescription
requestDeleteRevisionRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

GetRevision(GetRevisionRequest, CallOptions)

public virtual Revision GetRevision(GetRevisionRequest request, CallOptions options)

Gets information about a Revision.

Parameters
NameDescription
requestGetRevisionRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Revision

The response received from the server.

GetRevision(GetRevisionRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Revision GetRevision(GetRevisionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets information about a Revision.

Parameters
NameDescription
requestGetRevisionRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
Revision

The response received from the server.

GetRevisionAsync(GetRevisionRequest, CallOptions)

public virtual AsyncUnaryCall<Revision> GetRevisionAsync(GetRevisionRequest request, CallOptions options)

Gets information about a Revision.

Parameters
NameDescription
requestGetRevisionRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Revision>

The call object.

GetRevisionAsync(GetRevisionRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Revision> GetRevisionAsync(GetRevisionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets information about a Revision.

Parameters
NameDescription
requestGetRevisionRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
AsyncUnaryCall<Revision>

The call object.

ListRevisions(ListRevisionsRequest, CallOptions)

public virtual ListRevisionsResponse ListRevisions(ListRevisionsRequest request, CallOptions options)

List Revisions from a given Service, or from a given location.

Parameters
NameDescription
requestListRevisionsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListRevisionsResponse

The response received from the server.

ListRevisions(ListRevisionsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ListRevisionsResponse ListRevisions(ListRevisionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

List Revisions from a given Service, or from a given location.

Parameters
NameDescription
requestListRevisionsRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
ListRevisionsResponse

The response received from the server.

ListRevisionsAsync(ListRevisionsRequest, CallOptions)

public virtual AsyncUnaryCall<ListRevisionsResponse> ListRevisionsAsync(ListRevisionsRequest request, CallOptions options)

List Revisions from a given Service, or from a given location.

Parameters
NameDescription
requestListRevisionsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListRevisionsResponse>

The call object.

ListRevisionsAsync(ListRevisionsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ListRevisionsResponse> ListRevisionsAsync(ListRevisionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

List Revisions from a given Service, or from a given location.

Parameters
NameDescription
requestListRevisionsRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
AsyncUnaryCall<ListRevisionsResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override Revisions.RevisionsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
Revisions.RevisionsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Run.V2.Revisions.RevisionsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)