API hub v1 API - Class LintingServiceClientImpl (1.0.0-beta01)

public sealed class LintingServiceClientImpl : LintingServiceClient

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

LintingService client wrapper implementation, for convenient use.

Inheritance

object > LintingServiceClient > LintingServiceClientImpl

Namespace

Google.Cloud.ApiHub.V1

Assembly

Google.Cloud.ApiHub.V1.dll

Remarks

This service provides all methods related to the 1p Linter.

Constructors

LintingServiceClientImpl(LintingServiceClient, LintingServiceSettings, ILogger)

public LintingServiceClientImpl(LintingService.LintingServiceClient grpcClient, LintingServiceSettings settings, ILogger logger)

Constructs a client wrapper for the LintingService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient LintingServiceLintingServiceClient

The underlying gRPC client.

settings LintingServiceSettings

The base LintingServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override LintingService.LintingServiceClient GrpcClient { get; }

The underlying gRPC LintingService client

Property Value
Type Description
LintingServiceLintingServiceClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

Methods

GetStyleGuide(GetStyleGuideRequest, CallSettings)

public override StyleGuide GetStyleGuide(GetStyleGuideRequest request, CallSettings callSettings = null)

Get the style guide being used for linting.

Parameters
Name Description
request GetStyleGuideRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
StyleGuide

The RPC response.

Overrides

GetStyleGuideAsync(GetStyleGuideRequest, CallSettings)

public override Task<StyleGuide> GetStyleGuideAsync(GetStyleGuideRequest request, CallSettings callSettings = null)

Get the style guide being used for linting.

Parameters
Name Description
request GetStyleGuideRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskStyleGuide

A Task containing the RPC response.

Overrides

GetStyleGuideContents(GetStyleGuideContentsRequest, CallSettings)

public override StyleGuideContents GetStyleGuideContents(GetStyleGuideContentsRequest request, CallSettings callSettings = null)

Get the contents of the style guide.

Parameters
Name Description
request GetStyleGuideContentsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
StyleGuideContents

The RPC response.

Overrides

GetStyleGuideContentsAsync(GetStyleGuideContentsRequest, CallSettings)

public override Task<StyleGuideContents> GetStyleGuideContentsAsync(GetStyleGuideContentsRequest request, CallSettings callSettings = null)

Get the contents of the style guide.

Parameters
Name Description
request GetStyleGuideContentsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskStyleGuideContents

A Task containing the RPC response.

Overrides

LintSpec(LintSpecRequest, CallSettings)

public override void LintSpec(LintSpecRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

LintSpecAsync(LintSpecRequest, CallSettings)

public override Task LintSpecAsync(LintSpecRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides

UpdateStyleGuide(UpdateStyleGuideRequest, CallSettings)

public override StyleGuide UpdateStyleGuide(UpdateStyleGuideRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request UpdateStyleGuideRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
StyleGuide

The RPC response.

Overrides

UpdateStyleGuideAsync(UpdateStyleGuideRequest, CallSettings)

public override Task<StyleGuide> UpdateStyleGuideAsync(UpdateStyleGuideRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request UpdateStyleGuideRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskStyleGuide

A Task containing the RPC response.

Overrides