Class ServiceController.ServiceControllerClient (1.0.0)

public class ServiceControllerClient : ClientBase<ServiceController.ServiceControllerClient>

Client for ServiceController

Inheritance

System.Object > Grpc.Core.ClientBase > Grpc.Core.ClientBase<ServiceController.ServiceControllerClient> > ServiceController.ServiceControllerClient

Namespace

Google.Cloud.ServiceControl.V1

Assembly

Google.Cloud.ServiceControl.V1.dll

Constructors

ServiceControllerClient()

protected ServiceControllerClient()

Protected parameterless constructor to allow creation of test doubles.

ServiceControllerClient(CallInvoker)

public ServiceControllerClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerGrpc.Core.CallInvoker

The callInvoker to use to make remote calls.

ServiceControllerClient(ChannelBase)

public ServiceControllerClient(ChannelBase channel)

Creates a new client for ServiceController

Parameter
NameDescription
channelGrpc.Core.ChannelBase

The channel to use to make remote calls.

ServiceControllerClient(ClientBase.ClientBaseConfiguration)

protected ServiceControllerClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationGrpc.Core.ClientBase.ClientBaseConfiguration

The client configuration.

Methods

Check(CheckRequest, CallOptions)

public virtual CheckResponse Check(CheckRequest request, CallOptions options)

Checks whether an operation on a service should be allowed to proceed based on the configuration of the service and related policies. It must be called before the operation is executed.

If feasible, the client should cache the check results and reuse them for 60 seconds. In case of any server errors, the client should rely on the cached results for much longer time to avoid outage. WARNING: There is general 60s delay for the configuration and policy propagation, therefore callers MUST NOT depend on the Check method having the latest policy information.

NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has the size limit of 64KB.

This method requires the servicemanagement.services.check permission on the specified service. For more information, see Cloud IAM.

Parameters
NameDescription
requestCheckRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
CheckResponse

The response received from the server.

Check(CheckRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual CheckResponse Check(CheckRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Checks whether an operation on a service should be allowed to proceed based on the configuration of the service and related policies. It must be called before the operation is executed.

If feasible, the client should cache the check results and reuse them for 60 seconds. In case of any server errors, the client should rely on the cached results for much longer time to avoid outage. WARNING: There is general 60s delay for the configuration and policy propagation, therefore callers MUST NOT depend on the Check method having the latest policy information.

NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has the size limit of 64KB.

This method requires the servicemanagement.services.check permission on the specified service. For more information, see Cloud IAM.

Parameters
NameDescription
requestCheckRequest

The request to send to the server.

headersGrpc.Core.Metadata

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

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
CheckResponse

The response received from the server.

CheckAsync(CheckRequest, CallOptions)

public virtual AsyncUnaryCall<CheckResponse> CheckAsync(CheckRequest request, CallOptions options)

Checks whether an operation on a service should be allowed to proceed based on the configuration of the service and related policies. It must be called before the operation is executed.

If feasible, the client should cache the check results and reuse them for 60 seconds. In case of any server errors, the client should rely on the cached results for much longer time to avoid outage. WARNING: There is general 60s delay for the configuration and policy propagation, therefore callers MUST NOT depend on the Check method having the latest policy information.

NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has the size limit of 64KB.

This method requires the servicemanagement.services.check permission on the specified service. For more information, see Cloud IAM.

Parameters
NameDescription
requestCheckRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<CheckResponse>

The call object.

CheckAsync(CheckRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<CheckResponse> CheckAsync(CheckRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Checks whether an operation on a service should be allowed to proceed based on the configuration of the service and related policies. It must be called before the operation is executed.

If feasible, the client should cache the check results and reuse them for 60 seconds. In case of any server errors, the client should rely on the cached results for much longer time to avoid outage. WARNING: There is general 60s delay for the configuration and policy propagation, therefore callers MUST NOT depend on the Check method having the latest policy information.

NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has the size limit of 64KB.

This method requires the servicemanagement.services.check permission on the specified service. For more information, see Cloud IAM.

Parameters
NameDescription
requestCheckRequest

The request to send to the server.

headersGrpc.Core.Metadata

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

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<CheckResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override ServiceController.ServiceControllerClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationGrpc.Core.ClientBase.ClientBaseConfiguration
Returns
TypeDescription
ServiceController.ServiceControllerClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.ServiceControl.V1.ServiceController.ServiceControllerClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Report(ReportRequest, CallOptions)

public virtual ReportResponse Report(ReportRequest request, CallOptions options)

Reports operation results to Google Service Control, such as logs and metrics. It should be called after an operation is completed.

If feasible, the client should aggregate reporting data for up to 5 seconds to reduce API traffic. Limiting aggregation to 5 seconds is to reduce data loss during client crashes. Clients should carefully choose the aggregation time window to avoid data loss risk more than 0.01% for business and compliance reasons.

NOTE: the [ReportRequest][google.api.servicecontrol.v1.ReportRequest] has the size limit (wire-format byte size) of 1MB.

This method requires the servicemanagement.services.report permission on the specified service. For more information, see Google Cloud IAM.

Parameters
NameDescription
requestReportRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
ReportResponse

The response received from the server.

Report(ReportRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ReportResponse Report(ReportRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Reports operation results to Google Service Control, such as logs and metrics. It should be called after an operation is completed.

If feasible, the client should aggregate reporting data for up to 5 seconds to reduce API traffic. Limiting aggregation to 5 seconds is to reduce data loss during client crashes. Clients should carefully choose the aggregation time window to avoid data loss risk more than 0.01% for business and compliance reasons.

NOTE: the [ReportRequest][google.api.servicecontrol.v1.ReportRequest] has the size limit (wire-format byte size) of 1MB.

This method requires the servicemanagement.services.report permission on the specified service. For more information, see Google Cloud IAM.

Parameters
NameDescription
requestReportRequest

The request to send to the server.

headersGrpc.Core.Metadata

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

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ReportResponse

The response received from the server.

ReportAsync(ReportRequest, CallOptions)

public virtual AsyncUnaryCall<ReportResponse> ReportAsync(ReportRequest request, CallOptions options)

Reports operation results to Google Service Control, such as logs and metrics. It should be called after an operation is completed.

If feasible, the client should aggregate reporting data for up to 5 seconds to reduce API traffic. Limiting aggregation to 5 seconds is to reduce data loss during client crashes. Clients should carefully choose the aggregation time window to avoid data loss risk more than 0.01% for business and compliance reasons.

NOTE: the [ReportRequest][google.api.servicecontrol.v1.ReportRequest] has the size limit (wire-format byte size) of 1MB.

This method requires the servicemanagement.services.report permission on the specified service. For more information, see Google Cloud IAM.

Parameters
NameDescription
requestReportRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<ReportResponse>

The call object.

ReportAsync(ReportRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ReportResponse> ReportAsync(ReportRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Reports operation results to Google Service Control, such as logs and metrics. It should be called after an operation is completed.

If feasible, the client should aggregate reporting data for up to 5 seconds to reduce API traffic. Limiting aggregation to 5 seconds is to reduce data loss during client crashes. Clients should carefully choose the aggregation time window to avoid data loss risk more than 0.01% for business and compliance reasons.

NOTE: the [ReportRequest][google.api.servicecontrol.v1.ReportRequest] has the size limit (wire-format byte size) of 1MB.

This method requires the servicemanagement.services.report permission on the specified service. For more information, see Google Cloud IAM.

Parameters
NameDescription
requestReportRequest

The request to send to the server.

headersGrpc.Core.Metadata

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

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<ReportResponse>

The call object.