Cloud Run Admin v2 API - Class Revisions.RevisionsClient (2.8.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
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

RevisionsClient(ChannelBase)

public RevisionsClient(ChannelBase channel)

Creates a new client for Revisions

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

RevisionsClient(ClientBaseConfiguration)

protected RevisionsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

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
Type Description
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
Type Description
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
Name Description
request DeleteRevisionRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request DeleteRevisionRequest

The request to send to the server.

headers Metadata

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

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

DeleteRevisionAsync(DeleteRevisionRequest, CallOptions)

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

Deletes a Revision.

Parameters
Name Description
request DeleteRevisionRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request DeleteRevisionRequest

The request to send to the server.

headers Metadata

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

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

GetRevision(GetRevisionRequest, CallOptions)

public virtual Revision GetRevision(GetRevisionRequest request, CallOptions options)

Gets information about a Revision.

Parameters
Name Description
request GetRevisionRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request GetRevisionRequest

The request to send to the server.

headers Metadata

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

deadline 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
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
Name Description
request GetRevisionRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request GetRevisionRequest

The request to send to the server.

headers Metadata

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

deadline 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
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
Name Description
request ListRevisionsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request ListRevisionsRequest

The request to send to the server.

headers Metadata

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

deadline 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
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
Name Description
request ListRevisionsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
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
Name Description
request ListRevisionsRequest

The request to send to the server.

headers Metadata

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

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

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
RevisionsRevisionsClient
Overrides