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.
Namespace
Google.Cloud.ApiHub.V1Assembly
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 |
LocationsClient
public override LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |