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

[BindServiceMethod(typeof(LintingService), "BindService")]
public abstract class LintingService.LintingServiceBase

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

Base class for server-side implementations of LintingService

Inheritance

object > LintingService.LintingServiceBase

Namespace

Google.Cloud.ApiHub.V1

Assembly

Google.Cloud.ApiHub.V1.dll

Methods

GetStyleGuide(GetStyleGuideRequest, ServerCallContext)

public virtual Task<StyleGuide> GetStyleGuide(GetStyleGuideRequest request, ServerCallContext context)

Get the style guide being used for linting.

Parameters
Name Description
request GetStyleGuideRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskStyleGuide

The response to send back to the client (wrapped by a task).

GetStyleGuideContents(GetStyleGuideContentsRequest, ServerCallContext)

public virtual Task<StyleGuideContents> GetStyleGuideContents(GetStyleGuideContentsRequest request, ServerCallContext context)

Get the contents of the style guide.

Parameters
Name Description
request GetStyleGuideContentsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskStyleGuideContents

The response to send back to the client (wrapped by a task).

LintSpec(LintSpecRequest, ServerCallContext)

public virtual Task<Empty> LintSpec(LintSpecRequest request, ServerCallContext context)

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 received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskEmpty

The response to send back to the client (wrapped by a task).

UpdateStyleGuide(UpdateStyleGuideRequest, ServerCallContext)

public virtual Task<StyleGuide> UpdateStyleGuide(UpdateStyleGuideRequest request, ServerCallContext context)

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

Parameters
Name Description
request UpdateStyleGuideRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskStyleGuide

The response to send back to the client (wrapped by a task).