public abstract class LintingServiceClient
Reference documentation and code samples for the API hub v1 API class LintingServiceClient.
LintingService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.ApiHub.V1Assembly
Google.Cloud.ApiHub.V1.dll
Remarks
This service provides all methods related to the 1p Linter.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the LintingService service, which is a host of "apihub.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default LintingService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default LintingService scopes are:
GrpcClient
public virtual LintingService.LintingServiceClient GrpcClient { get; }
The underlying gRPC LintingService client
Property Value | |
---|---|
Type | Description |
LintingServiceLintingServiceClient |
LocationsClient
public virtual LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
Methods
Create()
public static LintingServiceClient Create()
Synchronously creates a LintingServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use LintingServiceClientBuilder.
Returns | |
---|---|
Type | Description |
LintingServiceClient |
The created LintingServiceClient. |
CreateAsync(CancellationToken)
public static Task<LintingServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a LintingServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use LintingServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken |
CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskLintingServiceClient |
The task representing the created LintingServiceClient. |
GetStyleGuide(GetStyleGuideRequest, CallSettings)
public virtual 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. |
// Create client
LintingServiceClient lintingServiceClient = LintingServiceClient.Create();
// Initialize request argument(s)
GetStyleGuideRequest request = new GetStyleGuideRequest
{
StyleGuideName = StyleGuideName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
StyleGuide response = lintingServiceClient.GetStyleGuide(request);
GetStyleGuide(StyleGuideName, CallSettings)
public virtual StyleGuide GetStyleGuide(StyleGuideName name, CallSettings callSettings = null)
Get the style guide being used for linting.
Parameters | |
---|---|
Name | Description |
name |
StyleGuideName Required. The name of the spec to retrieve.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
StyleGuide |
The RPC response. |
// Create client
LintingServiceClient lintingServiceClient = LintingServiceClient.Create();
// Initialize request argument(s)
StyleGuideName name = StyleGuideName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
StyleGuide response = lintingServiceClient.GetStyleGuide(name);
GetStyleGuide(string, CallSettings)
public virtual StyleGuide GetStyleGuide(string name, CallSettings callSettings = null)
Get the style guide being used for linting.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the spec to retrieve.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
StyleGuide |
The RPC response. |
// Create client
LintingServiceClient lintingServiceClient = LintingServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/styleGuide";
// Make the request
StyleGuide response = lintingServiceClient.GetStyleGuide(name);
GetStyleGuideAsync(GetStyleGuideRequest, CallSettings)
public virtual 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. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
GetStyleGuideRequest request = new GetStyleGuideRequest
{
StyleGuideName = StyleGuideName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
StyleGuide response = await lintingServiceClient.GetStyleGuideAsync(request);
GetStyleGuideAsync(GetStyleGuideRequest, CancellationToken)
public virtual Task<StyleGuide> GetStyleGuideAsync(GetStyleGuideRequest request, CancellationToken cancellationToken)
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. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStyleGuide |
A Task containing the RPC response. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
GetStyleGuideRequest request = new GetStyleGuideRequest
{
StyleGuideName = StyleGuideName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
StyleGuide response = await lintingServiceClient.GetStyleGuideAsync(request);
GetStyleGuideAsync(StyleGuideName, CallSettings)
public virtual Task<StyleGuide> GetStyleGuideAsync(StyleGuideName name, CallSettings callSettings = null)
Get the style guide being used for linting.
Parameters | |
---|---|
Name | Description |
name |
StyleGuideName Required. The name of the spec to retrieve.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskStyleGuide |
A Task containing the RPC response. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
StyleGuideName name = StyleGuideName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
StyleGuide response = await lintingServiceClient.GetStyleGuideAsync(name);
GetStyleGuideAsync(StyleGuideName, CancellationToken)
public virtual Task<StyleGuide> GetStyleGuideAsync(StyleGuideName name, CancellationToken cancellationToken)
Get the style guide being used for linting.
Parameters | |
---|---|
Name | Description |
name |
StyleGuideName Required. The name of the spec to retrieve.
Format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStyleGuide |
A Task containing the RPC response. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
StyleGuideName name = StyleGuideName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
StyleGuide response = await lintingServiceClient.GetStyleGuideAsync(name);
GetStyleGuideAsync(string, CallSettings)
public virtual Task<StyleGuide> GetStyleGuideAsync(string name, CallSettings callSettings = null)
Get the style guide being used for linting.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the spec to retrieve.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskStyleGuide |
A Task containing the RPC response. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/styleGuide";
// Make the request
StyleGuide response = await lintingServiceClient.GetStyleGuideAsync(name);
GetStyleGuideAsync(string, CancellationToken)
public virtual Task<StyleGuide> GetStyleGuideAsync(string name, CancellationToken cancellationToken)
Get the style guide being used for linting.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the spec to retrieve.
Format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStyleGuide |
A Task containing the RPC response. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/styleGuide";
// Make the request
StyleGuide response = await lintingServiceClient.GetStyleGuideAsync(name);
GetStyleGuideContents(GetStyleGuideContentsRequest, CallSettings)
public virtual 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. |
// Create client
LintingServiceClient lintingServiceClient = LintingServiceClient.Create();
// Initialize request argument(s)
GetStyleGuideContentsRequest request = new GetStyleGuideContentsRequest
{
StyleGuideName = StyleGuideName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
StyleGuideContents response = lintingServiceClient.GetStyleGuideContents(request);
GetStyleGuideContents(StyleGuideName, CallSettings)
public virtual StyleGuideContents GetStyleGuideContents(StyleGuideName name, CallSettings callSettings = null)
Get the contents of the style guide.
Parameters | |
---|---|
Name | Description |
name |
StyleGuideName Required. The name of the StyleGuide whose contents need to be retrieved.
There is exactly one style guide resource per project per location.
The expected format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
StyleGuideContents |
The RPC response. |
// Create client
LintingServiceClient lintingServiceClient = LintingServiceClient.Create();
// Initialize request argument(s)
StyleGuideName name = StyleGuideName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
StyleGuideContents response = lintingServiceClient.GetStyleGuideContents(name);
GetStyleGuideContents(string, CallSettings)
public virtual StyleGuideContents GetStyleGuideContents(string name, CallSettings callSettings = null)
Get the contents of the style guide.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the StyleGuide whose contents need to be retrieved.
There is exactly one style guide resource per project per location.
The expected format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
StyleGuideContents |
The RPC response. |
// Create client
LintingServiceClient lintingServiceClient = LintingServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/styleGuide";
// Make the request
StyleGuideContents response = lintingServiceClient.GetStyleGuideContents(name);
GetStyleGuideContentsAsync(GetStyleGuideContentsRequest, CallSettings)
public virtual 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. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
GetStyleGuideContentsRequest request = new GetStyleGuideContentsRequest
{
StyleGuideName = StyleGuideName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
StyleGuideContents response = await lintingServiceClient.GetStyleGuideContentsAsync(request);
GetStyleGuideContentsAsync(GetStyleGuideContentsRequest, CancellationToken)
public virtual Task<StyleGuideContents> GetStyleGuideContentsAsync(GetStyleGuideContentsRequest request, CancellationToken cancellationToken)
Get the contents of the style guide.
Parameters | |
---|---|
Name | Description |
request |
GetStyleGuideContentsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStyleGuideContents |
A Task containing the RPC response. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
GetStyleGuideContentsRequest request = new GetStyleGuideContentsRequest
{
StyleGuideName = StyleGuideName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]"),
};
// Make the request
StyleGuideContents response = await lintingServiceClient.GetStyleGuideContentsAsync(request);
GetStyleGuideContentsAsync(StyleGuideName, CallSettings)
public virtual Task<StyleGuideContents> GetStyleGuideContentsAsync(StyleGuideName name, CallSettings callSettings = null)
Get the contents of the style guide.
Parameters | |
---|---|
Name | Description |
name |
StyleGuideName Required. The name of the StyleGuide whose contents need to be retrieved.
There is exactly one style guide resource per project per location.
The expected format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskStyleGuideContents |
A Task containing the RPC response. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
StyleGuideName name = StyleGuideName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
StyleGuideContents response = await lintingServiceClient.GetStyleGuideContentsAsync(name);
GetStyleGuideContentsAsync(StyleGuideName, CancellationToken)
public virtual Task<StyleGuideContents> GetStyleGuideContentsAsync(StyleGuideName name, CancellationToken cancellationToken)
Get the contents of the style guide.
Parameters | |
---|---|
Name | Description |
name |
StyleGuideName Required. The name of the StyleGuide whose contents need to be retrieved.
There is exactly one style guide resource per project per location.
The expected format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStyleGuideContents |
A Task containing the RPC response. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
StyleGuideName name = StyleGuideName.FromProjectLocationPlugin("[PROJECT]", "[LOCATION]", "[PLUGIN]");
// Make the request
StyleGuideContents response = await lintingServiceClient.GetStyleGuideContentsAsync(name);
GetStyleGuideContentsAsync(string, CallSettings)
public virtual Task<StyleGuideContents> GetStyleGuideContentsAsync(string name, CallSettings callSettings = null)
Get the contents of the style guide.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the StyleGuide whose contents need to be retrieved.
There is exactly one style guide resource per project per location.
The expected format is
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskStyleGuideContents |
A Task containing the RPC response. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/styleGuide";
// Make the request
StyleGuideContents response = await lintingServiceClient.GetStyleGuideContentsAsync(name);
GetStyleGuideContentsAsync(string, CancellationToken)
public virtual Task<StyleGuideContents> GetStyleGuideContentsAsync(string name, CancellationToken cancellationToken)
Get the contents of the style guide.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the StyleGuide whose contents need to be retrieved.
There is exactly one style guide resource per project per location.
The expected format is
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStyleGuideContents |
A Task containing the RPC response. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/plugins/[PLUGIN]/styleGuide";
// Make the request
StyleGuideContents response = await lintingServiceClient.GetStyleGuideContentsAsync(name);
LintSpec(LintSpecRequest, CallSettings)
public virtual 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. |
// Create client
LintingServiceClient lintingServiceClient = LintingServiceClient.Create();
// Initialize request argument(s)
LintSpecRequest request = new LintSpecRequest
{
SpecName = SpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
};
// Make the request
lintingServiceClient.LintSpec(request);
LintSpecAsync(LintSpecRequest, CallSettings)
public virtual 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. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
LintSpecRequest request = new LintSpecRequest
{
SpecName = SpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
};
// Make the request
await lintingServiceClient.LintSpecAsync(request);
LintSpecAsync(LintSpecRequest, CancellationToken)
public virtual Task LintSpecAsync(LintSpecRequest request, CancellationToken cancellationToken)
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. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
LintSpecRequest request = new LintSpecRequest
{
SpecName = SpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
};
// Make the request
await lintingServiceClient.LintSpecAsync(request);
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UpdateStyleGuide(StyleGuide, FieldMask, CallSettings)
public virtual StyleGuide UpdateStyleGuide(StyleGuide styleGuide, FieldMask updateMask, CallSettings callSettings = null)
Update the styleGuide to be used for liniting in by API hub.
Parameters | |
---|---|
Name | Description |
styleGuide |
StyleGuide Required. The Style guide resource to update. |
updateMask |
FieldMask Optional. The list of fields to update. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
StyleGuide |
The RPC response. |
// Create client
LintingServiceClient lintingServiceClient = LintingServiceClient.Create();
// Initialize request argument(s)
StyleGuide styleGuide = new StyleGuide();
FieldMask updateMask = new FieldMask();
// Make the request
StyleGuide response = lintingServiceClient.UpdateStyleGuide(styleGuide, updateMask);
UpdateStyleGuide(UpdateStyleGuideRequest, CallSettings)
public virtual 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. |
// Create client
LintingServiceClient lintingServiceClient = LintingServiceClient.Create();
// Initialize request argument(s)
UpdateStyleGuideRequest request = new UpdateStyleGuideRequest
{
StyleGuide = new StyleGuide(),
UpdateMask = new FieldMask(),
};
// Make the request
StyleGuide response = lintingServiceClient.UpdateStyleGuide(request);
UpdateStyleGuideAsync(StyleGuide, FieldMask, CallSettings)
public virtual Task<StyleGuide> UpdateStyleGuideAsync(StyleGuide styleGuide, FieldMask updateMask, CallSettings callSettings = null)
Update the styleGuide to be used for liniting in by API hub.
Parameters | |
---|---|
Name | Description |
styleGuide |
StyleGuide Required. The Style guide resource to update. |
updateMask |
FieldMask Optional. The list of fields to update. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskStyleGuide |
A Task containing the RPC response. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
StyleGuide styleGuide = new StyleGuide();
FieldMask updateMask = new FieldMask();
// Make the request
StyleGuide response = await lintingServiceClient.UpdateStyleGuideAsync(styleGuide, updateMask);
UpdateStyleGuideAsync(StyleGuide, FieldMask, CancellationToken)
public virtual Task<StyleGuide> UpdateStyleGuideAsync(StyleGuide styleGuide, FieldMask updateMask, CancellationToken cancellationToken)
Update the styleGuide to be used for liniting in by API hub.
Parameters | |
---|---|
Name | Description |
styleGuide |
StyleGuide Required. The Style guide resource to update. |
updateMask |
FieldMask Optional. The list of fields to update. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStyleGuide |
A Task containing the RPC response. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
StyleGuide styleGuide = new StyleGuide();
FieldMask updateMask = new FieldMask();
// Make the request
StyleGuide response = await lintingServiceClient.UpdateStyleGuideAsync(styleGuide, updateMask);
UpdateStyleGuideAsync(UpdateStyleGuideRequest, CallSettings)
public virtual 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. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateStyleGuideRequest request = new UpdateStyleGuideRequest
{
StyleGuide = new StyleGuide(),
UpdateMask = new FieldMask(),
};
// Make the request
StyleGuide response = await lintingServiceClient.UpdateStyleGuideAsync(request);
UpdateStyleGuideAsync(UpdateStyleGuideRequest, CancellationToken)
public virtual Task<StyleGuide> UpdateStyleGuideAsync(UpdateStyleGuideRequest request, CancellationToken cancellationToken)
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. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskStyleGuide |
A Task containing the RPC response. |
// Create client
LintingServiceClient lintingServiceClient = await LintingServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateStyleGuideRequest request = new UpdateStyleGuideRequest
{
StyleGuide = new StyleGuide(),
UpdateMask = new FieldMask(),
};
// Make the request
StyleGuide response = await lintingServiceClient.UpdateStyleGuideAsync(request);