public class RevisionsClient : ClientBase<Revisions.RevisionsClient>
Client for Revisions
Namespace
Google.Cloud.Run.V2Assembly
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(ClientBase.ClientBaseConfiguration)
protected RevisionsClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.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 | |
---|---|
Type | Description |
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 | |
---|---|
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, Nullable<DateTime>, CancellationToken)
public virtual Operation DeleteRevision(DeleteRevisionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Delete 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 | Nullable<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)
Delete a Revision.
Parameters | |
---|---|
Name | Description |
request | DeleteRevisionRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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 | Nullable<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 |
AsyncUnaryCall<Operation> | 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, 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 | |
---|---|
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 | Nullable<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 |
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 | |
---|---|
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 | Nullable<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 |
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 | |
---|---|
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, 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 | |
---|---|
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 | Nullable<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)
List 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 |
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 | |
---|---|
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 | Nullable<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 |
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 | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
Revisions.RevisionsClient |