Cloud Run Admin v2 API - Class Revisions.RevisionsClient (2.2.0)

public class Revisions.RevisionsClient : ClientBase<Revisions.RevisionsClient>

Reference documentation and code samples for the Cloud Run Admin v2 API class Revisions.RevisionsClient.

Client for Revisions

Inheritance

object > ClientBase > ClientBaseRevisionsRevisionsClient > 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(ClientBaseConfiguration)

protected RevisionsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
TypeDescription
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

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

Returns
TypeDescription
OperationsOperationsClient

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

DeleteRevision(DeleteRevisionRequest, CallOptions)

public virtual Operation DeleteRevision(DeleteRevisionRequest request, CallOptions options)

Deletes 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, DateTime?, CancellationToken)

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

Deletes 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.

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.

DeleteRevisionAsync(DeleteRevisionRequest, CallOptions)

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

Deletes a Revision.

Parameters
NameDescription
requestDeleteRevisionRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeleteRevisionAsync(DeleteRevisionRequest, Metadata, DateTime?, CancellationToken)

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

Deletes 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.

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.

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, DateTime?, CancellationToken)

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

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.

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
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
AsyncUnaryCallRevision

The call object.

GetRevisionAsync(GetRevisionRequest, Metadata, DateTime?, CancellationToken)

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

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.

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
AsyncUnaryCallRevision

The call object.

ListRevisions(ListRevisionsRequest, CallOptions)

public virtual ListRevisionsResponse ListRevisions(ListRevisionsRequest request, CallOptions options)

Lists 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, DateTime?, CancellationToken)

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

Lists 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.

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
ListRevisionsResponse

The response received from the server.

ListRevisionsAsync(ListRevisionsRequest, CallOptions)

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

Lists 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
AsyncUnaryCallListRevisionsResponse

The call object.

ListRevisionsAsync(ListRevisionsRequest, Metadata, DateTime?, CancellationToken)

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

Lists 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.

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
AsyncUnaryCallListRevisionsResponse

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
RevisionsRevisionsClient
Overrides