Class ProjectsResource.LocationsResource.ApisResource.VersionsResource.SpecsResource.LintRequest
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.
Inheritance
ProjectsResource.LocationsResource.ApisResource.VersionsResource.SpecsResource.LintRequest
Inherited Members
Namespace: Google.Apis.APIhub.v1
Assembly: Google.Apis.APIhub.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ApisResource.VersionsResource.SpecsResource.LintRequest : APIhubBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequest
Constructors
LintRequest(IClientService, GoogleCloudApihubV1LintSpecRequest, string)
Constructs a new Lint request.
Declaration
public LintRequest(IClientService service, GoogleCloudApihubV1LintSpecRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudApihubV1LintSpecRequest | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Required. The name of the spec to be linted. Format:
projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Lint parameter list.
Declaration
protected override void InitParameters()