API hub v1 API - Class LintingService.LintingServiceClient (1.0.0-beta01)

public class LintingService.LintingServiceClient : ClientBase<LintingService.LintingServiceClient>

Reference documentation and code samples for the API hub v1 API class LintingService.LintingServiceClient.

Client for LintingService

Inheritance

object > ClientBase > ClientBaseLintingServiceLintingServiceClient > LintingService.LintingServiceClient

Namespace

Google.Cloud.ApiHub.V1

Assembly

Google.Cloud.ApiHub.V1.dll

Constructors

LintingServiceClient()

protected LintingServiceClient()

Protected parameterless constructor to allow creation of test doubles.

LintingServiceClient(CallInvoker)

public LintingServiceClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

LintingServiceClient(ChannelBase)

public LintingServiceClient(ChannelBase channel)

Creates a new client for LintingService

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

LintingServiceClient(ClientBaseConfiguration)

protected LintingServiceClient(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.

GetStyleGuide(GetStyleGuideRequest, CallOptions)

public virtual StyleGuide GetStyleGuide(GetStyleGuideRequest request, CallOptions options)

Get the style guide being used for linting.

Parameters
Name Description
request GetStyleGuideRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
StyleGuide

The response received from the server.

GetStyleGuide(GetStyleGuideRequest, Metadata, DateTime?, CancellationToken)

public virtual StyleGuide GetStyleGuide(GetStyleGuideRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get the style guide being used for linting.

Parameters
Name Description
request GetStyleGuideRequest

The request to send to the server.

headers Metadata

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

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

The response received from the server.

GetStyleGuideAsync(GetStyleGuideRequest, CallOptions)

public virtual AsyncUnaryCall<StyleGuide> GetStyleGuideAsync(GetStyleGuideRequest request, CallOptions options)

Get the style guide being used for linting.

Parameters
Name Description
request GetStyleGuideRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallStyleGuide

The call object.

GetStyleGuideAsync(GetStyleGuideRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<StyleGuide> GetStyleGuideAsync(GetStyleGuideRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get the style guide being used for linting.

Parameters
Name Description
request GetStyleGuideRequest

The request to send to the server.

headers Metadata

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

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

The call object.

GetStyleGuideContents(GetStyleGuideContentsRequest, CallOptions)

public virtual StyleGuideContents GetStyleGuideContents(GetStyleGuideContentsRequest request, CallOptions options)

Get the contents of the style guide.

Parameters
Name Description
request GetStyleGuideContentsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
StyleGuideContents

The response received from the server.

GetStyleGuideContents(GetStyleGuideContentsRequest, Metadata, DateTime?, CancellationToken)

public virtual StyleGuideContents GetStyleGuideContents(GetStyleGuideContentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get the contents of the style guide.

Parameters
Name Description
request GetStyleGuideContentsRequest

The request to send to the server.

headers Metadata

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

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

The response received from the server.

GetStyleGuideContentsAsync(GetStyleGuideContentsRequest, CallOptions)

public virtual AsyncUnaryCall<StyleGuideContents> GetStyleGuideContentsAsync(GetStyleGuideContentsRequest request, CallOptions options)

Get the contents of the style guide.

Parameters
Name Description
request GetStyleGuideContentsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallStyleGuideContents

The call object.

GetStyleGuideContentsAsync(GetStyleGuideContentsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<StyleGuideContents> GetStyleGuideContentsAsync(GetStyleGuideContentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get the contents of the style guide.

Parameters
Name Description
request GetStyleGuideContentsRequest

The request to send to the server.

headers Metadata

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

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

The call object.

LintSpec(LintSpecRequest, CallOptions)

public virtual Empty LintSpec(LintSpecRequest request, CallOptions options)

Lints the requested spec and updates the corresponding API Spec with the lint response. This lint response will be available in all subsequent Get and List Spec calls to Core service.

Parameters
Name Description
request LintSpecRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Empty

The response received from the server.

LintSpec(LintSpecRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty LintSpec(LintSpecRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lints the requested spec and updates the corresponding API Spec with the lint response. This lint response will be available in all subsequent Get and List Spec calls to Core service.

Parameters
Name Description
request LintSpecRequest

The request to send to the server.

headers Metadata

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

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

The response received from the server.

LintSpecAsync(LintSpecRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> LintSpecAsync(LintSpecRequest request, CallOptions options)

Lints the requested spec and updates the corresponding API Spec with the lint response. This lint response will be available in all subsequent Get and List Spec calls to Core service.

Parameters
Name Description
request LintSpecRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

LintSpecAsync(LintSpecRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> LintSpecAsync(LintSpecRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lints the requested spec and updates the corresponding API Spec with the lint response. This lint response will be available in all subsequent Get and List Spec calls to Core service.

Parameters
Name Description
request LintSpecRequest

The request to send to the server.

headers Metadata

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

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

The call object.

NewInstance(ClientBaseConfiguration)

protected override LintingService.LintingServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
LintingServiceLintingServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.ApiHub.V1.LintingService.LintingServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateStyleGuide(UpdateStyleGuideRequest, CallOptions)

public virtual StyleGuide UpdateStyleGuide(UpdateStyleGuideRequest request, CallOptions options)

Update the styleGuide to be used for liniting in by API hub.

Parameters
Name Description
request UpdateStyleGuideRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
StyleGuide

The response received from the server.

UpdateStyleGuide(UpdateStyleGuideRequest, Metadata, DateTime?, CancellationToken)

public virtual StyleGuide UpdateStyleGuide(UpdateStyleGuideRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Update the styleGuide to be used for liniting in by API hub.

Parameters
Name Description
request UpdateStyleGuideRequest

The request to send to the server.

headers Metadata

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

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

The response received from the server.

UpdateStyleGuideAsync(UpdateStyleGuideRequest, CallOptions)

public virtual AsyncUnaryCall<StyleGuide> UpdateStyleGuideAsync(UpdateStyleGuideRequest request, CallOptions options)

Update the styleGuide to be used for liniting in by API hub.

Parameters
Name Description
request UpdateStyleGuideRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallStyleGuide

The call object.

UpdateStyleGuideAsync(UpdateStyleGuideRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<StyleGuide> UpdateStyleGuideAsync(UpdateStyleGuideRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Update the styleGuide to be used for liniting in by API hub.

Parameters
Name Description
request UpdateStyleGuideRequest

The request to send to the server.

headers Metadata

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

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

The call object.