Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.ApisResource.VersionsResource.OperationsResource

The "operations" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.ApisResource.VersionsResource.OperationsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.APIhub.v1
Assembly: Google.Apis.APIhub.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ApisResource.VersionsResource.OperationsResource

Constructors

OperationsResource(IClientService)

Constructs a new resource.

Declaration
public OperationsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(GoogleCloudApihubV1ApiOperation, string)

Create an apiOperation in an API version. An apiOperation can be created only if the version has no apiOperations which were created by parsing a spec.

Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.VersionsResource.OperationsResource.CreateRequest Create(GoogleCloudApihubV1ApiOperation body, string parent)
Parameters
Type Name Description
GoogleCloudApihubV1ApiOperation body

The body of the request.

string parent

Required. The parent resource for the operation resource. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}

Returns
Type Description
ProjectsResource.LocationsResource.ApisResource.VersionsResource.OperationsResource.CreateRequest

Delete(string)

Delete an operation in an API version and we can delete only the operations created via create API. If the operation was created by parsing the spec, then it can be deleted by editing or deleting the spec.

Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.VersionsResource.OperationsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the operation resource to delete. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}

Returns
Type Description
ProjectsResource.LocationsResource.ApisResource.VersionsResource.OperationsResource.DeleteRequest

Get(string)

Get details about a particular operation in API version.

Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.VersionsResource.OperationsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the operation to retrieve. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}

Returns
Type Description
ProjectsResource.LocationsResource.ApisResource.VersionsResource.OperationsResource.GetRequest

List(string)

List operations in an API version.

Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.VersionsResource.OperationsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The parent which owns this collection of operations i.e., the API version. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}

Returns
Type Description
ProjectsResource.LocationsResource.ApisResource.VersionsResource.OperationsResource.ListRequest

Patch(GoogleCloudApihubV1ApiOperation, string)

Update an operation in an API version. The following fields in the ApiOperation resource can be updated: * details.description * details.documentation * details.http_operation.path * details.http_operation.method * details.deprecated * attributes The update_mask should be used to specify the fields being updated. An operation can be updated only if the operation was created via CreateApiOperation API. If the operation was created by parsing the spec, then it can be edited by updating the spec.

Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.VersionsResource.OperationsResource.PatchRequest Patch(GoogleCloudApihubV1ApiOperation body, string name)
Parameters
Type Name Description
GoogleCloudApihubV1ApiOperation body

The body of the request.

string name

Identifier. The name of the operation. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}

Returns
Type Description
ProjectsResource.LocationsResource.ApisResource.VersionsResource.OperationsResource.PatchRequest
In this article
Back to top Generated by DocFX