Apigee Registry v1 API - Class Registry.RegistryBase (1.0.0-beta04)

[BindServiceMethod(typeof(Registry), "BindService")]
public abstract class RegistryBase

Reference documentation and code samples for the Apigee Registry v1 API class Registry.RegistryBase.

Base class for server-side implementations of Registry

Inheritance

Object > Registry.RegistryBase

Namespace

Google.Cloud.ApigeeRegistry.V1

Assembly

Google.Cloud.ApigeeRegistry.V1.dll

Methods

CreateApi(CreateApiRequest, ServerCallContext)

public virtual Task<Api> CreateApi(CreateApiRequest request, ServerCallContext context)

Creates a specified API.

Parameters
NameDescription
requestCreateApiRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Api>

The response to send back to the client (wrapped by a task).

CreateApiDeployment(CreateApiDeploymentRequest, ServerCallContext)

public virtual Task<ApiDeployment> CreateApiDeployment(CreateApiDeploymentRequest request, ServerCallContext context)

Creates a specified deployment.

Parameters
NameDescription
requestCreateApiDeploymentRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ApiDeployment>

The response to send back to the client (wrapped by a task).

CreateApiSpec(CreateApiSpecRequest, ServerCallContext)

public virtual Task<ApiSpec> CreateApiSpec(CreateApiSpecRequest request, ServerCallContext context)

Creates a specified spec.

Parameters
NameDescription
requestCreateApiSpecRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ApiSpec>

The response to send back to the client (wrapped by a task).

CreateApiVersion(CreateApiVersionRequest, ServerCallContext)

public virtual Task<ApiVersion> CreateApiVersion(CreateApiVersionRequest request, ServerCallContext context)

Creates a specified version.

Parameters
NameDescription
requestCreateApiVersionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ApiVersion>

The response to send back to the client (wrapped by a task).

CreateArtifact(CreateArtifactRequest, ServerCallContext)

public virtual Task<Artifact> CreateArtifact(CreateArtifactRequest request, ServerCallContext context)

Creates a specified artifact.

Parameters
NameDescription
requestCreateArtifactRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Artifact>

The response to send back to the client (wrapped by a task).

DeleteApi(DeleteApiRequest, ServerCallContext)

public virtual Task<Empty> DeleteApi(DeleteApiRequest request, ServerCallContext context)

Removes a specified API and all of the resources that it owns.

Parameters
NameDescription
requestDeleteApiRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

DeleteApiDeployment(DeleteApiDeploymentRequest, ServerCallContext)

public virtual Task<Empty> DeleteApiDeployment(DeleteApiDeploymentRequest request, ServerCallContext context)

Removes a specified deployment, all revisions, and all child resources (e.g., artifacts).

Parameters
NameDescription
requestDeleteApiDeploymentRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

DeleteApiDeploymentRevision(DeleteApiDeploymentRevisionRequest, ServerCallContext)

public virtual Task<ApiDeployment> DeleteApiDeploymentRevision(DeleteApiDeploymentRevisionRequest request, ServerCallContext context)

Deletes a revision of a deployment.

Parameters
NameDescription
requestDeleteApiDeploymentRevisionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ApiDeployment>

The response to send back to the client (wrapped by a task).

DeleteApiSpec(DeleteApiSpecRequest, ServerCallContext)

public virtual Task<Empty> DeleteApiSpec(DeleteApiSpecRequest request, ServerCallContext context)

Removes a specified spec, all revisions, and all child resources (e.g., artifacts).

Parameters
NameDescription
requestDeleteApiSpecRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

DeleteApiSpecRevision(DeleteApiSpecRevisionRequest, ServerCallContext)

public virtual Task<ApiSpec> DeleteApiSpecRevision(DeleteApiSpecRevisionRequest request, ServerCallContext context)

Deletes a revision of a spec.

Parameters
NameDescription
requestDeleteApiSpecRevisionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ApiSpec>

The response to send back to the client (wrapped by a task).

DeleteApiVersion(DeleteApiVersionRequest, ServerCallContext)

public virtual Task<Empty> DeleteApiVersion(DeleteApiVersionRequest request, ServerCallContext context)

Removes a specified version and all of the resources that it owns.

Parameters
NameDescription
requestDeleteApiVersionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

DeleteArtifact(DeleteArtifactRequest, ServerCallContext)

public virtual Task<Empty> DeleteArtifact(DeleteArtifactRequest request, ServerCallContext context)

Removes a specified artifact.

Parameters
NameDescription
requestDeleteArtifactRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

GetApi(GetApiRequest, ServerCallContext)

public virtual Task<Api> GetApi(GetApiRequest request, ServerCallContext context)

Returns a specified API.

Parameters
NameDescription
requestGetApiRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Api>

The response to send back to the client (wrapped by a task).

GetApiDeployment(GetApiDeploymentRequest, ServerCallContext)

public virtual Task<ApiDeployment> GetApiDeployment(GetApiDeploymentRequest request, ServerCallContext context)

Returns a specified deployment.

Parameters
NameDescription
requestGetApiDeploymentRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ApiDeployment>

The response to send back to the client (wrapped by a task).

GetApiSpec(GetApiSpecRequest, ServerCallContext)

public virtual Task<ApiSpec> GetApiSpec(GetApiSpecRequest request, ServerCallContext context)

Returns a specified spec.

Parameters
NameDescription
requestGetApiSpecRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ApiSpec>

The response to send back to the client (wrapped by a task).

GetApiSpecContents(GetApiSpecContentsRequest, ServerCallContext)

public virtual Task<HttpBody> GetApiSpecContents(GetApiSpecContentsRequest request, ServerCallContext context)

Returns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned).

Parameters
NameDescription
requestGetApiSpecContentsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<HttpBody>

The response to send back to the client (wrapped by a task).

GetApiVersion(GetApiVersionRequest, ServerCallContext)

public virtual Task<ApiVersion> GetApiVersion(GetApiVersionRequest request, ServerCallContext context)

Returns a specified version.

Parameters
NameDescription
requestGetApiVersionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ApiVersion>

The response to send back to the client (wrapped by a task).

GetArtifact(GetArtifactRequest, ServerCallContext)

public virtual Task<Artifact> GetArtifact(GetArtifactRequest request, ServerCallContext context)

Returns a specified artifact.

Parameters
NameDescription
requestGetArtifactRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Artifact>

The response to send back to the client (wrapped by a task).

GetArtifactContents(GetArtifactContentsRequest, ServerCallContext)

public virtual Task<HttpBody> GetArtifactContents(GetArtifactContentsRequest request, ServerCallContext context)

Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

Parameters
NameDescription
requestGetArtifactContentsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<HttpBody>

The response to send back to the client (wrapped by a task).

ListApiDeploymentRevisions(ListApiDeploymentRevisionsRequest, ServerCallContext)

public virtual Task<ListApiDeploymentRevisionsResponse> ListApiDeploymentRevisions(ListApiDeploymentRevisionsRequest request, ServerCallContext context)

Lists all revisions of a deployment. Revisions are returned in descending order of revision creation time.

Parameters
NameDescription
requestListApiDeploymentRevisionsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListApiDeploymentRevisionsResponse>

The response to send back to the client (wrapped by a task).

ListApiDeployments(ListApiDeploymentsRequest, ServerCallContext)

public virtual Task<ListApiDeploymentsResponse> ListApiDeployments(ListApiDeploymentsRequest request, ServerCallContext context)

Returns matching deployments.

Parameters
NameDescription
requestListApiDeploymentsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListApiDeploymentsResponse>

The response to send back to the client (wrapped by a task).

ListApis(ListApisRequest, ServerCallContext)

public virtual Task<ListApisResponse> ListApis(ListApisRequest request, ServerCallContext context)

Returns matching APIs.

Parameters
NameDescription
requestListApisRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListApisResponse>

The response to send back to the client (wrapped by a task).

ListApiSpecRevisions(ListApiSpecRevisionsRequest, ServerCallContext)

public virtual Task<ListApiSpecRevisionsResponse> ListApiSpecRevisions(ListApiSpecRevisionsRequest request, ServerCallContext context)

Lists all revisions of a spec. Revisions are returned in descending order of revision creation time.

Parameters
NameDescription
requestListApiSpecRevisionsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListApiSpecRevisionsResponse>

The response to send back to the client (wrapped by a task).

ListApiSpecs(ListApiSpecsRequest, ServerCallContext)

public virtual Task<ListApiSpecsResponse> ListApiSpecs(ListApiSpecsRequest request, ServerCallContext context)

Returns matching specs.

Parameters
NameDescription
requestListApiSpecsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListApiSpecsResponse>

The response to send back to the client (wrapped by a task).

ListApiVersions(ListApiVersionsRequest, ServerCallContext)

public virtual Task<ListApiVersionsResponse> ListApiVersions(ListApiVersionsRequest request, ServerCallContext context)

Returns matching versions.

Parameters
NameDescription
requestListApiVersionsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListApiVersionsResponse>

The response to send back to the client (wrapped by a task).

ListArtifacts(ListArtifactsRequest, ServerCallContext)

public virtual Task<ListArtifactsResponse> ListArtifacts(ListArtifactsRequest request, ServerCallContext context)

Returns matching artifacts.

Parameters
NameDescription
requestListArtifactsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListArtifactsResponse>

The response to send back to the client (wrapped by a task).

ReplaceArtifact(ReplaceArtifactRequest, ServerCallContext)

public virtual Task<Artifact> ReplaceArtifact(ReplaceArtifactRequest request, ServerCallContext context)

Used to replace a specified artifact.

Parameters
NameDescription
requestReplaceArtifactRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Artifact>

The response to send back to the client (wrapped by a task).

RollbackApiDeployment(RollbackApiDeploymentRequest, ServerCallContext)

public virtual Task<ApiDeployment> RollbackApiDeployment(RollbackApiDeploymentRequest request, ServerCallContext context)

Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.

Parameters
NameDescription
requestRollbackApiDeploymentRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ApiDeployment>

The response to send back to the client (wrapped by a task).

RollbackApiSpec(RollbackApiSpecRequest, ServerCallContext)

public virtual Task<ApiSpec> RollbackApiSpec(RollbackApiSpecRequest request, ServerCallContext context)

Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.

Parameters
NameDescription
requestRollbackApiSpecRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ApiSpec>

The response to send back to the client (wrapped by a task).

TagApiDeploymentRevision(TagApiDeploymentRevisionRequest, ServerCallContext)

public virtual Task<ApiDeployment> TagApiDeploymentRevision(TagApiDeploymentRevisionRequest request, ServerCallContext context)

Adds a tag to a specified revision of a deployment.

Parameters
NameDescription
requestTagApiDeploymentRevisionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ApiDeployment>

The response to send back to the client (wrapped by a task).

TagApiSpecRevision(TagApiSpecRevisionRequest, ServerCallContext)

public virtual Task<ApiSpec> TagApiSpecRevision(TagApiSpecRevisionRequest request, ServerCallContext context)

Adds a tag to a specified revision of a spec.

Parameters
NameDescription
requestTagApiSpecRevisionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ApiSpec>

The response to send back to the client (wrapped by a task).

UpdateApi(UpdateApiRequest, ServerCallContext)

public virtual Task<Api> UpdateApi(UpdateApiRequest request, ServerCallContext context)

Used to modify a specified API.

Parameters
NameDescription
requestUpdateApiRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Api>

The response to send back to the client (wrapped by a task).

UpdateApiDeployment(UpdateApiDeploymentRequest, ServerCallContext)

public virtual Task<ApiDeployment> UpdateApiDeployment(UpdateApiDeploymentRequest request, ServerCallContext context)

Used to modify a specified deployment.

Parameters
NameDescription
requestUpdateApiDeploymentRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ApiDeployment>

The response to send back to the client (wrapped by a task).

UpdateApiSpec(UpdateApiSpecRequest, ServerCallContext)

public virtual Task<ApiSpec> UpdateApiSpec(UpdateApiSpecRequest request, ServerCallContext context)

Used to modify a specified spec.

Parameters
NameDescription
requestUpdateApiSpecRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ApiSpec>

The response to send back to the client (wrapped by a task).

UpdateApiVersion(UpdateApiVersionRequest, ServerCallContext)

public virtual Task<ApiVersion> UpdateApiVersion(UpdateApiVersionRequest request, ServerCallContext context)

Used to modify a specified version.

Parameters
NameDescription
requestUpdateApiVersionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ApiVersion>

The response to send back to the client (wrapped by a task).