public class Maintenance.MaintenanceClient : ClientBase<Maintenance.MaintenanceClient>Reference documentation and code samples for the Maintenance v1beta API class Maintenance.MaintenanceClient.
Client for Maintenance
Inheritance
object > ClientBase > ClientBaseMaintenanceMaintenanceClient > Maintenance.MaintenanceClientNamespace
Google.Cloud.Maintenance.Api.V1BetaAssembly
Google.Cloud.Maintenance.Api.V1Beta.dll
Constructors
MaintenanceClient()
protected MaintenanceClient()Protected parameterless constructor to allow creation of test doubles.
MaintenanceClient(CallInvoker)
public MaintenanceClient(CallInvoker callInvoker)Creates a new client for Maintenance that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
MaintenanceClient(ChannelBase)
public MaintenanceClient(ChannelBase channel)Creates a new client for Maintenance
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
MaintenanceClient(ClientBaseConfiguration)
protected MaintenanceClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfigurationThe 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. |
GetResourceMaintenance(GetResourceMaintenanceRequest, CallOptions)
public virtual ResourceMaintenance GetResourceMaintenance(GetResourceMaintenanceRequest request, CallOptions options)Retrieve a single resource maintenance.
| Parameters | |
|---|---|
| Name | Description |
request |
GetResourceMaintenanceRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
ResourceMaintenance |
The response received from the server. |
GetResourceMaintenance(GetResourceMaintenanceRequest, Metadata, DateTime?, CancellationToken)
public virtual ResourceMaintenance GetResourceMaintenance(GetResourceMaintenanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Retrieve a single resource maintenance.
| Parameters | |
|---|---|
| Name | Description |
request |
GetResourceMaintenanceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
ResourceMaintenance |
The response received from the server. |
GetResourceMaintenanceAsync(GetResourceMaintenanceRequest, CallOptions)
public virtual AsyncUnaryCall<ResourceMaintenance> GetResourceMaintenanceAsync(GetResourceMaintenanceRequest request, CallOptions options)Retrieve a single resource maintenance.
| Parameters | |
|---|---|
| Name | Description |
request |
GetResourceMaintenanceRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallResourceMaintenance |
The call object. |
GetResourceMaintenanceAsync(GetResourceMaintenanceRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ResourceMaintenance> GetResourceMaintenanceAsync(GetResourceMaintenanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Retrieve a single resource maintenance.
| Parameters | |
|---|---|
| Name | Description |
request |
GetResourceMaintenanceRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallResourceMaintenance |
The call object. |
ListResourceMaintenances(ListResourceMaintenancesRequest, CallOptions)
public virtual ListResourceMaintenancesResponse ListResourceMaintenances(ListResourceMaintenancesRequest request, CallOptions options)Retrieve a collection of resource maintenances.
| Parameters | |
|---|---|
| Name | Description |
request |
ListResourceMaintenancesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
ListResourceMaintenancesResponse |
The response received from the server. |
ListResourceMaintenances(ListResourceMaintenancesRequest, Metadata, DateTime?, CancellationToken)
public virtual ListResourceMaintenancesResponse ListResourceMaintenances(ListResourceMaintenancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Retrieve a collection of resource maintenances.
| Parameters | |
|---|---|
| Name | Description |
request |
ListResourceMaintenancesRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
ListResourceMaintenancesResponse |
The response received from the server. |
ListResourceMaintenancesAsync(ListResourceMaintenancesRequest, CallOptions)
public virtual AsyncUnaryCall<ListResourceMaintenancesResponse> ListResourceMaintenancesAsync(ListResourceMaintenancesRequest request, CallOptions options)Retrieve a collection of resource maintenances.
| Parameters | |
|---|---|
| Name | Description |
request |
ListResourceMaintenancesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallListResourceMaintenancesResponse |
The call object. |
ListResourceMaintenancesAsync(ListResourceMaintenancesRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ListResourceMaintenancesResponse> ListResourceMaintenancesAsync(ListResourceMaintenancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Retrieve a collection of resource maintenances.
| Parameters | |
|---|---|
| Name | Description |
request |
ListResourceMaintenancesRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallListResourceMaintenancesResponse |
The call object. |
NewInstance(ClientBaseConfiguration)
protected override Maintenance.MaintenanceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
MaintenanceMaintenanceClient |
|
SummarizeMaintenances(SummarizeMaintenancesRequest, CallOptions)
public virtual SummarizeMaintenancesResponse SummarizeMaintenances(SummarizeMaintenancesRequest request, CallOptions options)Retrieves the statistics of a specific maintenance.
| Parameters | |
|---|---|
| Name | Description |
request |
SummarizeMaintenancesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
SummarizeMaintenancesResponse |
The response received from the server. |
SummarizeMaintenances(SummarizeMaintenancesRequest, Metadata, DateTime?, CancellationToken)
public virtual SummarizeMaintenancesResponse SummarizeMaintenances(SummarizeMaintenancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Retrieves the statistics of a specific maintenance.
| Parameters | |
|---|---|
| Name | Description |
request |
SummarizeMaintenancesRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
SummarizeMaintenancesResponse |
The response received from the server. |
SummarizeMaintenancesAsync(SummarizeMaintenancesRequest, CallOptions)
public virtual AsyncUnaryCall<SummarizeMaintenancesResponse> SummarizeMaintenancesAsync(SummarizeMaintenancesRequest request, CallOptions options)Retrieves the statistics of a specific maintenance.
| Parameters | |
|---|---|
| Name | Description |
request |
SummarizeMaintenancesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallSummarizeMaintenancesResponse |
The call object. |
SummarizeMaintenancesAsync(SummarizeMaintenancesRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<SummarizeMaintenancesResponse> SummarizeMaintenancesAsync(SummarizeMaintenancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Retrieves the statistics of a specific maintenance.
| Parameters | |
|---|---|
| Name | Description |
request |
SummarizeMaintenancesRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallSummarizeMaintenancesResponse |
The call object. |