Package google.cloud.apihub.v1

Index

ApiHub

This service provides all methods related to the API hub.

CreateApi

rpc CreateApi(CreateApiRequest) returns (Api)

Create an API resource in the API hub. Once an API resource is created, versions can be added to it.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.apis.create

For more information, see the IAM documentation.

CreateApiOperation

rpc CreateApiOperation(CreateApiOperationRequest) returns (ApiOperation)

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.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.apiOperations.create

For more information, see the IAM documentation.

CreateAttribute

rpc CreateAttribute(CreateAttributeRequest) returns (Attribute)

Create a user defined attribute.

Certain pre defined attributes are already created by the API hub. These attributes will have type as SYSTEM_DEFINED and can be listed via ListAttributes method. Allowed values for the same can be updated via UpdateAttribute method.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.attributes.create

For more information, see the IAM documentation.

CreateDeployment

rpc CreateDeployment(CreateDeploymentRequest) returns (Deployment)

Create a deployment resource in the API hub. Once a deployment resource is created, it can be associated with API versions.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.deployments.create

For more information, see the IAM documentation.

CreateExternalApi

rpc CreateExternalApi(CreateExternalApiRequest) returns (ExternalApi)

Create an External API resource in the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.externalApis.create

For more information, see the IAM documentation.

CreateSpec

rpc CreateSpec(CreateSpecRequest) returns (Spec)

Add a spec to an API version in the API hub. Multiple specs can be added to an API version. Note, while adding a spec, at least one of contents or source_uri must be provided. If contents is provided, then spec_type must also be provided.

On adding a spec with contents to the version, the operations present in it will be added to the version.Note that the file contents in the spec should be of the same type as defined in the projects/{project}/locations/{location}/attributes/system-spec-type attribute associated with spec resource. Note that specs of various types can be uploaded, however parsing of details is supported for OpenAPI spec currently.

In order to access the information parsed from the spec, use the GetSpec method. In order to access the raw contents for a particular spec, use the GetSpecContents method. In order to access the operations parsed from the spec, use the ListAPIOperations method.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.specs.create

For more information, see the IAM documentation.

CreateVersion

rpc CreateVersion(CreateVersionRequest) returns (Version)

Create an API version for an API resource in the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.versions.create

For more information, see the IAM documentation.

DeleteApi

rpc DeleteApi(DeleteApiRequest) returns (Empty)

Delete an API resource in the API hub. API can only be deleted if all underlying versions are deleted.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.apis.delete

For more information, see the IAM documentation.

DeleteApiOperation

rpc DeleteApiOperation(DeleteApiOperationRequest) returns (Empty)

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.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.apiOperations.delete

For more information, see the IAM documentation.

DeleteAttribute

rpc DeleteAttribute(DeleteAttributeRequest) returns (Empty)

Delete an attribute.

Note: System defined attributes cannot be deleted. All associations of the attribute being deleted with any API hub resource will also get deleted.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.attributes.delete

For more information, see the IAM documentation.

DeleteDeployment

rpc DeleteDeployment(DeleteDeploymentRequest) returns (Empty)

Delete a deployment resource in the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.deployments.delete

For more information, see the IAM documentation.

DeleteExternalApi

rpc DeleteExternalApi(DeleteExternalApiRequest) returns (Empty)

Delete an External API resource in the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.externalApis.delete

For more information, see the IAM documentation.

DeleteSpec

rpc DeleteSpec(DeleteSpecRequest) returns (Empty)

Delete a spec. Deleting a spec will also delete the associated operations from the version.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.specs.delete

For more information, see the IAM documentation.

DeleteVersion

rpc DeleteVersion(DeleteVersionRequest) returns (Empty)

Delete an API version. Version can only be deleted if all underlying specs, operations, definitions and linked deployments are deleted.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.versions.delete

For more information, see the IAM documentation.

GetApi

rpc GetApi(GetApiRequest) returns (Api)

Get API resource details including the API versions contained in it.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.apis.get

For more information, see the IAM documentation.

GetApiOperation

rpc GetApiOperation(GetApiOperationRequest) returns (ApiOperation)

Get details about a particular operation in API version.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.apiOperations.get

For more information, see the IAM documentation.

GetAttribute

rpc GetAttribute(GetAttributeRequest) returns (Attribute)

Get details about the attribute.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.attributes.get

For more information, see the IAM documentation.

GetDefinition

rpc GetDefinition(GetDefinitionRequest) returns (Definition)

Get details about a definition in an API version.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.definitions.get

For more information, see the IAM documentation.

GetDeployment

rpc GetDeployment(GetDeploymentRequest) returns (Deployment)

Get details about a deployment and the API versions linked to it.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.deployments.get

For more information, see the IAM documentation.

GetExternalApi

rpc GetExternalApi(GetExternalApiRequest) returns (ExternalApi)

Get details about an External API resource in the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.externalApis.get

For more information, see the IAM documentation.

GetSpec

rpc GetSpec(GetSpecRequest) returns (Spec)

Get details about the information parsed from a spec. Note that this method does not return the raw spec contents. Use GetSpecContents method to retrieve the same.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.specs.get

For more information, see the IAM documentation.

GetSpecContents

rpc GetSpecContents(GetSpecContentsRequest) returns (SpecContents)

Get spec contents.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.specs.get

For more information, see the IAM documentation.

GetVersion

rpc GetVersion(GetVersionRequest) returns (Version)

Get details about the API version of an API resource. This will include information about the specs and operations present in the API version as well as the deployments linked to it.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.versions.get

For more information, see the IAM documentation.

ListApiOperations

rpc ListApiOperations(ListApiOperationsRequest) returns (ListApiOperationsResponse)

List operations in an API version.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.apiOperations.list

For more information, see the IAM documentation.

ListApis

rpc ListApis(ListApisRequest) returns (ListApisResponse)

List API resources in the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.apis.list

For more information, see the IAM documentation.

ListAttributes

rpc ListAttributes(ListAttributesRequest) returns (ListAttributesResponse)

List all attributes.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.attributes.list

For more information, see the IAM documentation.

ListDeployments

rpc ListDeployments(ListDeploymentsRequest) returns (ListDeploymentsResponse)

List deployment resources in the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.deployments.list

For more information, see the IAM documentation.

ListExternalApis

rpc ListExternalApis(ListExternalApisRequest) returns (ListExternalApisResponse)

List External API resources in the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.externalApis.list

For more information, see the IAM documentation.

ListSpecs

rpc ListSpecs(ListSpecsRequest) returns (ListSpecsResponse)

List specs corresponding to a particular API resource.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.specs.list

For more information, see the IAM documentation.

ListVersions

rpc ListVersions(ListVersionsRequest) returns (ListVersionsResponse)

List API versions of an API resource in the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.versions.list

For more information, see the IAM documentation.

SearchResources

rpc SearchResources(SearchResourcesRequest) returns (SearchResourcesResponse)

Search across API-Hub resources.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the location resource:

  • apihub.apis.list

For more information, see the IAM documentation.

UpdateApi

rpc UpdateApi(UpdateApiRequest) returns (Api)

Update an API resource in the API hub. The following fields in the API can be updated:

The update_mask should be used to specify the fields being updated.

Updating the owner field requires complete owner message and updates both owner and email fields.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.apis.update

For more information, see the IAM documentation.

UpdateApiOperation

rpc UpdateApiOperation(UpdateApiOperationRequest) returns (ApiOperation)

Update an operation in an API version. The following fields in the ApiOperation resource can be updated:

  • [details.description][ApiOperation.details.description]
  • [details.documentation][ApiOperation.details.documentation]
  • [details.http_operation.path][ApiOperation.details.http_operation.path.path]
  • [details.http_operation.method][ApiOperation.details.http_operation.method]
  • [details.deprecated][ApiOperation.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.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.apiOperations.update

For more information, see the IAM documentation.

UpdateAttribute

rpc UpdateAttribute(UpdateAttributeRequest) returns (Attribute)

Update the attribute. The following fields in the Attribute resource can be updated:

  • display_name The display name can be updated for user defined attributes only.
  • description The description can be updated for user defined attributes only.
  • allowed_values To update the list of allowed values, clients need to use the fetched list of allowed values and add or remove values to or from the same list. The mutable allowed values can be updated for both user defined and System defined attributes. The immutable allowed values cannot be updated or deleted. The updated list of allowed values cannot be empty. If an allowed value that is already used by some resource's attribute is deleted, then the association between the resource and the attribute value will also be deleted.
  • cardinality The cardinality can be updated for user defined attributes only. Cardinality can only be increased during an update.

The update_mask should be used to specify the fields being updated.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.attributes.update

For more information, see the IAM documentation.

UpdateDeployment

rpc UpdateDeployment(UpdateDeploymentRequest) returns (Deployment)

Update a deployment resource in the API hub. The following fields in the deployment resource can be updated:

The update_mask should be used to specify the fields being updated.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.deployments.update

For more information, see the IAM documentation.

UpdateExternalApi

rpc UpdateExternalApi(UpdateExternalApiRequest) returns (ExternalApi)

Update an External API resource in the API hub. The following fields can be updated:

The update_mask should be used to specify the fields being updated.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.externalApis.update

For more information, see the IAM documentation.

UpdateSpec

rpc UpdateSpec(UpdateSpecRequest) returns (Spec)

Update spec. The following fields in the spec can be updated:

In case of an OAS spec, updating spec contents can lead to: 1. Creation, deletion and update of operations. 2. Creation, deletion and update of definitions. 3. Update of other info parsed out from the new spec.

In case of contents or source_uri being present in update mask, spec_type must also be present. Also, spec_type can not be present in update mask if contents or source_uri is not present.

The update_mask should be used to specify the fields being updated.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.specs.update

For more information, see the IAM documentation.

UpdateVersion

rpc UpdateVersion(UpdateVersionRequest) returns (Version)

Update API version. The following fields in the version can be updated currently:

The update_mask should be used to specify the fields being updated.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.versions.update

For more information, see the IAM documentation.

ApiHubCollect

This service exposes methods used for collecting various types of data from different first party and third party sources and push it to Hub's collect layer.

CollectApiData

rpc CollectApiData(CollectApiDataRequest) returns (Operation)

Collect API data from a source and push it to Hub's collect layer.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

ApiHubCurate

This service is used for managing curations for processing API data consumed from collect layer.

CreateCuration

rpc CreateCuration(CreateCurationRequest) returns (Curation)

Create a curation resource in the API hub. Once a curation resource is created, plugin instances can start using it.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
DeleteCuration

rpc DeleteCuration(DeleteCurationRequest) returns (Empty)

Delete a curation resource in the API hub. A curation can only be deleted if it's not being used by any plugin instance.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
GetCuration

rpc GetCuration(GetCurationRequest) returns (Curation)

Get curation resource details.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
ListCurations

rpc ListCurations(ListCurationsRequest) returns (ListCurationsResponse)

List curation resources in the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
UpdateCuration

rpc UpdateCuration(UpdateCurationRequest) returns (Curation)

Update a curation resource in the API hub. The following fields in the curation can be updated:

The update_mask should be used to specify the fields being updated.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

ApiHubDependencies

This service provides methods for various operations related to a Dependency in the API hub.

CreateDependency

rpc CreateDependency(CreateDependencyRequest) returns (Dependency)

Create a dependency between two entities in the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.dependencies.create

For more information, see the IAM documentation.

DeleteDependency

rpc DeleteDependency(DeleteDependencyRequest) returns (Empty)

Delete the dependency resource.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.dependencies.delete

For more information, see the IAM documentation.

GetDependency

rpc GetDependency(GetDependencyRequest) returns (Dependency)

Get details about a dependency resource in the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.dependencies.get

For more information, see the IAM documentation.

ListDependencies

rpc ListDependencies(ListDependenciesRequest) returns (ListDependenciesResponse)

List dependencies based on the provided filter and pagination parameters.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.dependencies.list

For more information, see the IAM documentation.

UpdateDependency

rpc UpdateDependency(UpdateDependencyRequest) returns (Dependency)

Update a dependency based on the update_mask provided in the request.

The following fields in the dependency can be updated: * description

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.dependencies.update

For more information, see the IAM documentation.

ApiHubPlugin

This service is used for managing plugins inside the API hub.

CreatePlugin

rpc CreatePlugin(CreatePluginRequest) returns (Plugin)

Create an API hub plugin resource in the API hub. Once a plugin is created, it can be used to create plugin instances.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
CreatePluginInstance

rpc CreatePluginInstance(CreatePluginInstanceRequest) returns (Operation)

Creates a Plugin instance in the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
DeletePlugin

rpc DeletePlugin(DeletePluginRequest) returns (Operation)

Delete a Plugin in API hub. Note, only user owned plugins can be deleted via this method.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
DeletePluginInstance

rpc DeletePluginInstance(DeletePluginInstanceRequest) returns (Operation)

Deletes a plugin instance in the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
DisablePlugin

rpc DisablePlugin(DisablePluginRequest) returns (Plugin)

Disables a plugin. The state of the plugin after disabling is DISABLED

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.plugins.disable

For more information, see the IAM documentation.

DisablePluginInstanceAction

rpc DisablePluginInstanceAction(DisablePluginInstanceActionRequest) returns (Operation)

Disables a plugin instance in the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
EnablePlugin

rpc EnablePlugin(EnablePluginRequest) returns (Plugin)

Enables a plugin. The state of the plugin after enabling is ENABLED

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.plugins.enable

For more information, see the IAM documentation.

EnablePluginInstanceAction

rpc EnablePluginInstanceAction(EnablePluginInstanceActionRequest) returns (Operation)

Enables a plugin instance in the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
ExecutePluginInstanceAction

rpc ExecutePluginInstanceAction(ExecutePluginInstanceActionRequest) returns (Operation)

Executes a plugin instance in the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
GetPlugin

rpc GetPlugin(GetPluginRequest) returns (Plugin)

Get an API hub plugin.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.plugins.get

For more information, see the IAM documentation.

GetPluginInstance

rpc GetPluginInstance(GetPluginInstanceRequest) returns (PluginInstance)

Get an API hub plugin instance.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
ListPluginInstances

rpc ListPluginInstances(ListPluginInstancesRequest) returns (ListPluginInstancesResponse)

List all the plugins in a given project and location. - can be used as wildcard value for {plugin_id}

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
ListPlugins

rpc ListPlugins(ListPluginsRequest) returns (ListPluginsResponse)

List all the plugins in a given project and location.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.plugins.list

For more information, see the IAM documentation.

HostProjectRegistrationService

This service is used for managing the host project registrations.

CreateHostProjectRegistration

rpc CreateHostProjectRegistration(CreateHostProjectRegistrationRequest) returns (HostProjectRegistration)

Create a host project registration. A Google cloud project can be registered as a host project if it is not attached as a runtime project to another host project. A project can be registered as a host project only once. Subsequent register calls for the same project will fail.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.runTimeProjectAttachments.create

For more information, see the IAM documentation.

GetHostProjectRegistration

rpc GetHostProjectRegistration(GetHostProjectRegistrationRequest) returns (HostProjectRegistration)

Get a host project registration.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.hostProjectRegistrations.get

For more information, see the IAM documentation.

ListHostProjectRegistrations

rpc ListHostProjectRegistrations(ListHostProjectRegistrationsRequest) returns (ListHostProjectRegistrationsResponse)

Lists host project registrations.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.runTimeProjectAttachments.list

For more information, see the IAM documentation.

LintingService

This service provides all methods related to the 1p Linter.

GetStyleGuide

rpc GetStyleGuide(GetStyleGuideRequest) returns (StyleGuide)

Get the style guide being used for linting.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.styleGuides.get

For more information, see the IAM documentation.

GetStyleGuideContents

rpc GetStyleGuideContents(GetStyleGuideContentsRequest) returns (StyleGuideContents)

Get the contents of the style guide.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.styleGuides.get

For more information, see the IAM documentation.

LintSpec

rpc LintSpec(LintSpecRequest) returns (Empty)

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.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.specs.lint

For more information, see the IAM documentation.

UpdateStyleGuide

rpc UpdateStyleGuide(UpdateStyleGuideRequest) returns (StyleGuide)

Update the styleGuide to be used for liniting in by API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.styleGuides.update

For more information, see the IAM documentation.

Provisioning

This service is used for managing the data plane provisioning of the API hub.

CreateApiHubInstance

rpc CreateApiHubInstance(CreateApiHubInstanceRequest) returns (Operation)

Provisions instance resources for the API hub.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.apiHubInstances.create

For more information, see the IAM documentation.

DeleteApiHubInstance

rpc DeleteApiHubInstance(DeleteApiHubInstanceRequest) returns (Operation)

Deletes the API hub instance.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.apiHubInstances.delete

For more information, see the IAM documentation.

GetApiHubInstance

rpc GetApiHubInstance(GetApiHubInstanceRequest) returns (ApiHubInstance)

Gets details of a single API hub instance.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.apiHubInstances.get

For more information, see the IAM documentation.

LookupApiHubInstance

rpc LookupApiHubInstance(LookupApiHubInstanceRequest) returns (LookupApiHubInstanceResponse)

Looks up an Api Hub instance in a given Google Cloud project. There will always be only one Api Hub instance for a Google Cloud project across all locations.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.apiHubInstances.list

For more information, see the IAM documentation.

RuntimeProjectAttachmentService

This service is used for managing the runtime project attachments.

CreateRuntimeProjectAttachment

rpc CreateRuntimeProjectAttachment(CreateRuntimeProjectAttachmentRequest) returns (RuntimeProjectAttachment)

Attaches a runtime project to the host project.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the runtimeProject resource:

  • apihub.runTimeProjectAttachments.attach

For more information, see the IAM documentation.

DeleteRuntimeProjectAttachment

rpc DeleteRuntimeProjectAttachment(DeleteRuntimeProjectAttachmentRequest) returns (Empty)

Delete a runtime project attachment in the API hub. This call will detach the runtime project from the host project.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.runTimeProjectAttachments.delete

For more information, see the IAM documentation.

GetRuntimeProjectAttachment

rpc GetRuntimeProjectAttachment(GetRuntimeProjectAttachmentRequest) returns (RuntimeProjectAttachment)

Gets a runtime project attachment.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.runTimeProjectAttachments.get

For more information, see the IAM documentation.

ListRuntimeProjectAttachments

rpc ListRuntimeProjectAttachments(ListRuntimeProjectAttachmentsRequest) returns (ListRuntimeProjectAttachmentsResponse)

List runtime projects attached to the host project.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.runTimeProjectAttachments.list

For more information, see the IAM documentation.

LookupRuntimeProjectAttachment

rpc LookupRuntimeProjectAttachment(LookupRuntimeProjectAttachmentRequest) returns (LookupRuntimeProjectAttachmentResponse)

Look up a runtime project attachment. This API can be called in the context of any project.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • apihub.runTimeProjectAttachments.list

For more information, see the IAM documentation.

APIMetadata

The API metadata.

Fields
api

Api

Required. The API resource to be pushed to Hub's collect layer. The ID of the API resource will be generated by Hub to ensure uniqueness across all APIs across systems.

versions[]

VersionMetadata

Optional. The list of versions present in an API resource.

original_id

string

Optional. The unique identifier of the API in the system where it was originally created.

original_create_time

Timestamp

Optional. Timestamp indicating when the API was created at the source.

original_update_time

Timestamp

Required. Timestamp indicating when the API was last updated at the source.

ActionExecutionDetail

The details for the action to execute.

Fields
action_id

string

Required. The action id of the plugin to execute.

Api

An API resource in the API hub.

Fields
name

string

Identifier. The name of the API resource in the API hub.

Format: projects/{project}/locations/{location}/apis/{api}

display_name

string

Required. The display name of the API resource.

description

string

Optional. The description of the API resource.

documentation

Documentation

Optional. The documentation for the API resource.

owner

Owner

Optional. Owner details for the API resource.

versions[]

string

Output only. The list of versions present in an API resource. Note: An API resource can be associated with more than 1 version. Format is projects/{project}/locations/{location}/apis/{api}/versions/{version}

create_time

Timestamp

Output only. The time at which the API resource was created.

update_time

Timestamp

Output only. The time at which the API resource was last updated.

target_user

AttributeValues

Optional. The target users for the API. This maps to the following system defined attribute: projects/{project}/locations/{location}/attributes/system-target-user attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

team

AttributeValues

Optional. The team owning the API. This maps to the following system defined attribute: projects/{project}/locations/{location}/attributes/system-team attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

business_unit

AttributeValues

Optional. The business unit owning the API. This maps to the following system defined attribute: projects/{project}/locations/{location}/attributes/system-business-unit attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

maturity_level

AttributeValues

Optional. The maturity level of the API. This maps to the following system defined attribute: projects/{project}/locations/{location}/attributes/system-maturity-level attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

attributes

map<string, AttributeValues>

Optional. The list of user defined attributes associated with the API resource. The key is the attribute name. It will be of the format: projects/{project}/locations/{location}/attributes/{attribute}. The value is the attribute values associated with the resource.

api_style

AttributeValues

Optional. The style of the API. This maps to the following system defined attribute: projects/{project}/locations/{location}/attributes/system-api-style attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

selected_version

string

Optional. The selected version for an API resource. This can be used when special handling is needed on client side for particular version of the API. Format is projects/{project}/locations/{location}/apis/{api}/versions/{version}

api_requirements

AttributeValues

Optional. The api requirement doc associated with the API resource. Carinality is 1 for this attribute.

fingerprint

string

Optional. Fingerprint of the API resource.

source_metadata[]

SourceMetadata

Output only. The list of sources and metadata from the sources of the API resource.

api_functional_requirements

AttributeValues

Optional. The api functional requirements associated with the API resource. Carinality is 1 for this attribute.

api_technical_requirements

AttributeValues

Optional. The api technical requirements associated with the API resource. Carinality is 1 for this attribute.

ApiData

The API data to be collected.

Fields
Union field Data. The data to be collected. Data can be only one of the following:
api_metadata_list

ApiMetadataList

Optional. The list of API metadata.

ApiHubInstance

An ApiHubInstance represents the instance resources of the API hub. Currently, only one ApiHub instance is allowed for each project.

Fields
name

string

Identifier. Format: projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}.

create_time

Timestamp

Output only. Creation timestamp.

update_time

Timestamp

Output only. Last update timestamp.

state

State

Output only. The current state of the ApiHub instance.

state_message

string

Output only. Extra information about ApiHub instance state. Currently the message would be populated when state is FAILED.

config

Config

Required. Config of the ApiHub instance.

labels

map<string, string>

Optional. Instance labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

description

string

Optional. Description of the ApiHub instance.

Config

Available configurations to provision an ApiHub Instance.

Fields
cmek_key_name

string

Optional. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name should follow the format of projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+), where the location must match the instance location. If the CMEK is not provided, a GMEK will be created for the instance.

vertex_location

string

Optional. The name of the Vertex AI location where the data store is stored.

encryption_type

EncryptionType

Optional. Encryption type for the region. If the encryption type is CMEK, the cmek_key_name must be provided. If no encryption type is provided, GMEK will be used.

EncryptionType

Types of data encryption.

Enums
ENCRYPTION_TYPE_UNSPECIFIEDEncryption type unspecified.
GMEKDefault encryption using Google managed encryption key.
CMEKEncryption using customer managed encryption key.

State

State of the ApiHub Instance.

Enums
STATE_UNSPECIFIEDThe default value. This value is used if the state is omitted.
INACTIVEThe ApiHub instance has not been initialized or has been deleted.
CREATINGThe ApiHub instance is being created.
ACTIVEThe ApiHub instance has been created and is ready for use.
UPDATINGThe ApiHub instance is being updated.
DELETINGThe ApiHub instance is being deleted.
FAILEDThe ApiHub instance encountered an error during a state change.

ApiHubResource

ApiHubResource is one of the resources such as Api, Operation, Deployment, Definition, Spec and Version resources stored in API-Hub.

Fields

Union field resource.

resource can be only one of the following:

api

Api

This represents Api resource in search results. Only name, display_name, description and owner fields are populated in search results.

operation

ApiOperation

This represents ApiOperation resource in search results. Only name, description, spec and details fields are populated in search results.

deployment

Deployment

This represents Deployment resource in search results. Only name, display_name, description, deployment_type and api_versions fields are populated in search results.

spec

Spec

This represents Spec resource in search results. Only name, display_name, description, spec_type and documentation fields are populated in search results.

definition

Definition

This represents Definition resource in search results. Only name field is populated in search results.

version

Version

This represents Version resource in search results. Only name, display_name, description, lifecycle, compliance and accreditation fields are populated in search results.

ApiMetadataList

The message to hold repeated API metadata.

Fields
api_metadata[]

APIMetadata

Required. The list of API metadata.

ApiOperation

Represents an operation contained in an API version in the API hub. An operation is added/updated/deleted in an API version when a new spec is added or an existing spec is updated/deleted in a version. Currently, an operation will be created only corresponding to OpenAPI spec as parsing is supported for OpenAPI spec. Alternatively operations can be managed via create,update and delete APIs, creation of apiOperation can be possible only for version with no parsed operations and update/delete can be possible only for operations created via create API.

Fields
name

string

Identifier. The name of the operation.

Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}

spec

string

Output only. The name of the spec will be of the format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec} Note:The name of the spec will be empty if the operation is created via CreateApiOperation API.

details

OperationDetails

Optional. Operation details. Note: Even though this field is optional, it is required for CreateApiOperation API and we will fail the request if not provided.

create_time

Timestamp

Output only. The time at which the operation was created.

update_time

Timestamp

Output only. The time at which the operation was last updated.

attributes

map<string, AttributeValues>

Optional. The list of user defined attributes associated with the API operation resource. The key is the attribute name. It will be of the format: projects/{project}/locations/{location}/attributes/{attribute}. The value is the attribute values associated with the resource.

source_metadata[]

SourceMetadata

Output only. The list of sources and metadata from the sources of the API operation.

ApplicationIntegrationEndpointDetails

The details of the Application Integration endpoint to be triggered for curation.

Fields
uri

string

Required. The endpoint URI should be a valid REST URI for triggering an Application Integration. Format: https://integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute or https://{location}-integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute

trigger_id

string

Required. The API trigger ID of the Application Integration workflow.

Attribute

An attribute in the API hub. An attribute is a name value pair which can be attached to different resources in the API hub based on the scope of the attribute. Attributes can either be pre-defined by the API hub or created by users.

Fields
name

string

Identifier. The name of the attribute in the API hub.

Format: projects/{project}/locations/{location}/attributes/{attribute}

display_name

string

Required. The display name of the attribute.

description

string

Optional. The description of the attribute.

definition_type

DefinitionType

Output only. The definition type of the attribute.

scope

Scope

Required. The scope of the attribute. It represents the resource in the API hub to which the attribute can be linked.

data_type

DataType

Required. The type of the data of the attribute.

allowed_values[]

AllowedValue

Optional. The list of allowed values when the attribute value is of type enum. This is required when the data_type of the attribute is ENUM. The maximum number of allowed values of an attribute will be 1000.

cardinality

int32

Optional. The maximum number of values that the attribute can have when associated with an API hub resource. Cardinality 1 would represent a single-valued attribute. It must not be less than 1 or greater than 20. If not specified, the cardinality would be set to 1 by default and represent a single-valued attribute.

mandatory

bool

Output only. When mandatory is true, the attribute is mandatory for the resource specified in the scope. Only System defined attributes can be mandatory.

create_time

Timestamp

Output only. The time at which the attribute was created.

update_time

Timestamp

Output only. The time at which the attribute was last updated.

AllowedValue

The value that can be assigned to the attribute when the data type is enum.

Fields
id

string

Required. The ID of the allowed value. * If provided, the same will be used. The service will throw an error if the specified id is already used by another allowed value in the same attribute resource. * If not provided, a system generated id derived from the display name will be used. In this case, the service will handle conflict resolution by adding a system generated suffix in case of duplicates.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

display_name

string

Required. The display name of the allowed value.

description

string

Optional. The detailed description of the allowed value.

immutable

bool

Optional. When set to true, the allowed value cannot be updated or deleted by the user. It can only be true for System defined attributes.

DataType

Enumeration of attribute's data type.

Enums
DATA_TYPE_UNSPECIFIEDAttribute data type unspecified.
ENUMAttribute's value is of type enum.
JSONAttribute's value is of type json.
STRINGAttribute's value is of type string.
URIAttribute's value is of type uri.

DefinitionType

Enumeration of attribute definition types.

Enums
DEFINITION_TYPE_UNSPECIFIEDAttribute definition type unspecified.
SYSTEM_DEFINEDThe attribute is predefined by the API hub. Note that only the list of allowed values can be updated in this case via UpdateAttribute method.
USER_DEFINEDThe attribute is defined by the user.

Scope

Enumeration for the scope of the attribute representing the resource in the API hub to which the attribute can be linked.

Enums
SCOPE_UNSPECIFIEDScope Unspecified.
APIAttribute can be linked to an API.
VERSIONAttribute can be linked to an API version.
SPECAttribute can be linked to a Spec.
API_OPERATIONAttribute can be linked to an API Operation.
DEPLOYMENTAttribute can be linked to a Deployment.
DEPENDENCYAttribute can be linked to a Dependency.
DEFINITIONAttribute can be linked to a definition.
EXTERNAL_APIAttribute can be linked to a ExternalAPI.
PLUGINAttribute can be linked to a Plugin.

AttributeValues

The attribute values associated with resource.

Fields
attribute

string

Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}

Union field Value. The attribute values associated with the resource. Value can be only one of the following:
enum_values

EnumAttributeValues

The attribute values associated with a resource in case attribute data type is enum.

string_values

StringAttributeValues

The attribute values associated with a resource in case attribute data type is string.

json_values

StringAttributeValues

The attribute values associated with a resource in case attribute data type is JSON.

uri_values

StringAttributeValues

The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.

EnumAttributeValues

The attribute values of data type enum.

Fields
values[]

AllowedValue

Required. The attribute values in case attribute data type is enum.

StringAttributeValues

The attribute values of data type string or JSON.

Fields
values[]

string

Required. The attribute values in case attribute data type is string or JSON.

AuthConfig

AuthConfig represents the authentication information.

Fields
auth_type

AuthType

Required. The authentication type.

Union field config. Supported auth types. config can be only one of the following:
google_service_account_config

GoogleServiceAccountConfig

Google Service Account.

user_password_config

UserPasswordConfig

User Password.

api_key_config

ApiKeyConfig

Api Key Config.

oauth2_client_credentials_config

Oauth2ClientCredentialsConfig

Oauth2.0 Client Credentials.

ApiKeyConfig

Config for authentication with API key.

Fields
name

string

Required. The parameter name of the API key. E.g. If the API request is "https://example.com/act?api_key=", "api_key" would be the parameter name.

api_key

Secret

Required. The name of the SecretManager secret version resource storing the API key. Format: projects/{project}/secrets/{secrete}/versions/{version}. The secretmanager.versions.access permission should be granted to the service account accessing the secret.

http_element_location

HttpElementLocation

Required. The location of the API key. The default value is QUERY.

HttpElementLocation

Enum of location an HTTP element can be.

Enums
HTTP_ELEMENT_LOCATION_UNSPECIFIEDHTTP element location not specified.
QUERYElement is in the HTTP request query.
HEADERElement is in the HTTP request header.
PATHElement is in the HTTP request path.
BODYElement is in the HTTP request body.
COOKIEElement is in the HTTP request cookie.

Oauth2ClientCredentialsConfig

Parameters to support Oauth 2.0 client credentials grant authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details.

Fields
client_id

string

Required. The client identifier.

client_secret

Secret

Required. Secret version reference containing the client secret. The secretmanager.versions.access permission should be granted to the service account accessing the secret.

UserPasswordConfig

Parameters to support Username and Password Authentication.

Fields
username

string

Required. Username.

password

Secret

Required. Secret version reference containing the password. The secretmanager.versions.access permission should be granted to the service account accessing the secret.

AuthType

AuthType represents the authentication type.

Enums
AUTH_TYPE_UNSPECIFIEDAuthentication type not specified.
NO_AUTHNo authentication.
GOOGLE_SERVICE_ACCOUNTGoogle service account authentication.
USER_PASSWORDUsername and password authentication.
API_KEYAPI Key authentication.
OAUTH2_CLIENT_CREDENTIALSOauth 2.0 client credentials grant authentication.

CollectApiDataRequest

The CollectApiData method's request.

Fields
location

string

Required. The regional location of the API hub instance and its resources. Format: projects/{project}/locations/{location}

collection_type

CollectionType

Required. The type of collection. Applies to all entries in api_data.

plugin_instance

string

Required. The plugin instance collecting the API data. Format: projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}.

action_id

string

Required. The action ID to be used for collecting the API data. This should map to one of the action IDs specified in action configs in the plugin.

api_data

ApiData

Required. The API data to be collected.

CollectApiDataResponse

This type has no fields.

The CollectApiData method's response.

CollectionType

The type of the collect request.

Enums
COLLECTION_TYPE_UNSPECIFIEDThe default value. This value is used if the collection type is omitted.
COLLECTION_TYPE_UPSERTThe collection type is upsert. This should be used when an API is created or updated at the source.
COLLECTION_TYPE_DELETEThe collection type is delete. This should be used when an API is deleted at the source.

ConfigValueOption

ConfigValueOption represents an option for a config variable of type enum or multi select.

Fields
id

string

Required. Id of the option.

display_name

string

Required. Display name of the option.

description

string

Optional. Description of the option.

ConfigVariable

ConfigVariable represents a additional configuration variable present in a PluginInstance Config or AuthConfig, based on a ConfigVariableTemplate.

Fields
key

string

Output only. Key will be the id to uniquely identify the config variable.

Union field value. The values associated with the config variable. value can be only one of the following:
string_value

string

Optional. The config variable value in case of config variable of type string.

int_value

int64

Optional. The config variable value in case of config variable of type integer.

bool_value

bool

Optional. The config variable value in case of config variable of type boolean.

secret_value

Secret

Optional. The config variable value in case of config variable of type secret.

enum_value

ConfigValueOption

Optional. The config variable value in case of config variable of type enum.

multi_select_values

MultiSelectValues

Optional. The config variable value in case of config variable of type multi select.

multi_string_values

MultiStringValues

Optional. The config variable value in case of config variable of type multi string.

multi_int_values

MultiIntValues

Optional. The config variable value in case of config variable of type multi integer.

MultiIntValues

The config variable value of data type multi int.

Fields
values[]

int32

Optional. The config variable value of data type multi int.

MultiSelectValues

The config variable value of data type multi select.

Fields
values[]

ConfigValueOption

Optional. The config variable value of data type multi select.

MultiStringValues

The config variable value of data type multi string.

Fields
values[]

string

Optional. The config variable value of data type multi string.

ConfigVariableTemplate

ConfigVariableTemplate represents a configuration variable template present in a Plugin Config.

Fields
id

string

Required. ID of the config variable. Must be unique within the configuration.

value_type

ValueType

Required. Type of the parameter: string, int, bool etc.

description

string

Optional. Description.

validation_regex

string

Optional. Regular expression in RE2 syntax used for validating the value of a ConfigVariable.

required

bool

Optional. Flag represents that this ConfigVariable must be provided for a PluginInstance.

enum_options[]

ConfigValueOption

Optional. Enum options. To be populated if ValueType is ENUM.

multi_select_options[]

ConfigValueOption

Optional. Multi select options. To be populated if ValueType is MULTI_SELECT.

ValueType

ValueType indicates the data type of the value.

Enums
VALUE_TYPE_UNSPECIFIEDValue type is not specified.
STRINGValue type is string.
INTValue type is integer.
BOOLValue type is boolean.
SECRETValue type is secret.
ENUMValue type is enum.
MULTI_SELECTValue type is multi select.
MULTI_STRINGValue type is multi string.
MULTI_INTValue type is multi int.

CreateApiHubInstanceRequest

The CreateApiHubInstance method's request.

Fields
parent

string

Required. The parent resource for the Api Hub instance resource. Format: projects/{project}/locations/{location}

api_hub_instance_id

string

Optional. Identifier to assign to the Api Hub instance. Must be unique within scope of the parent resource. If the field is not provided, system generated id will be used.

This value should be 4-40 characters, and valid characters are /[a-z][A-Z][0-9]-_/.

api_hub_instance

ApiHubInstance

Required. The ApiHub instance.

CreateApiOperationRequest

The CreateApiOperation method's request.

Fields
parent

string

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

api_operation_id

string

Optional. The ID to use for the operation resource, which will become the final component of the operation's resource name. This field is optional.

  • If provided, the same will be used. The service will throw an error if the specified id is already used by another operation resource in the API hub.
  • If not provided, a system generated id will be used.

This value should be 4-500 characters, overall resource name which will be of format projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}, its length is limited to 700 characters, and valid characters are /[a-z][A-Z][0-9]-_/.

api_operation

ApiOperation

Required. The operation resource to create.

CreateApiRequest

The CreateApi method's request.

Fields
parent

string

Required. The parent resource for the API resource. Format: projects/{project}/locations/{location}

api_id

string

Optional. The ID to use for the API resource, which will become the final component of the API's resource name. This field is optional.

  • If provided, the same will be used. The service will throw an error if the specified id is already used by another API resource in the API hub.
  • If not provided, a system generated id will be used.

This value should be 4-500 characters, and valid characters are /[a-z][A-Z][0-9]-_/.

api

Api

Required. The API resource to create.

CreateAttributeRequest

The CreateAttribute method's request.

Fields
parent

string

Required. The parent resource for Attribute. Format: projects/{project}/locations/{location}

attribute_id

string

Optional. The ID to use for the attribute, which will become the final component of the attribute's resource name. This field is optional.

  • If provided, the same will be used. The service will throw an error if the specified id is already used by another attribute resource in the API hub.
  • If not provided, a system generated id will be used.

This value should be 4-500 characters, and valid characters are /[a-z][A-Z][0-9]-_/.

attribute

Attribute

Required. The attribute to create.

CreateCurationRequest

The [CreateCuration][ApiHub.CreateCuration] method's request.

Fields
parent

string

Required. The parent resource for the curation resource. Format: projects/{project}/locations/{location}

curation_id

string

Optional. The ID to use for the curation resource, which will become the final component of the curations's resource name. This field is optional.

  • If provided, the same will be used. The service will throw an error if the specified ID is already used by another curation resource in the API hub.
  • If not provided, a system generated ID will be used.

This value should be 4-500 characters, and valid characters are /[a-z][A-Z][0-9]-_/.

curation

Curation

Required. The curation resource to create.

CreateDependencyRequest

The CreateDependency method's request.

Fields
parent

string

Required. The parent resource for the dependency resource. Format: projects/{project}/locations/{location}

dependency_id

string

Optional. The ID to use for the dependency resource, which will become the final component of the dependency's resource name. This field is optional. * If provided, the same will be used. The service will throw an error if duplicate id is provided by the client. * If not provided, a system generated id will be used.

This value should be 4-500 characters, and valid characters are [a-z][A-Z][0-9]-_.

dependency

Dependency

Required. The dependency resource to create.

CreateDeploymentRequest

The CreateDeployment method's request.

Fields
parent

string

Required. The parent resource for the deployment resource. Format: projects/{project}/locations/{location}

deployment_id

string

Optional. The ID to use for the deployment resource, which will become the final component of the deployment's resource name. This field is optional.

  • If provided, the same will be used. The service will throw an error if the specified id is already used by another deployment resource in the API hub.
  • If not provided, a system generated id will be used.

This value should be 4-500 characters, and valid characters are /[a-z][A-Z][0-9]-_/.

deployment

Deployment

Required. The deployment resource to create.

CreateExternalApiRequest

The CreateExternalApi method's request.

Fields
parent

string

Required. The parent resource for the External API resource. Format: projects/{project}/locations/{location}

external_api_id

string

Optional. The ID to use for the External API resource, which will become the final component of the External API's resource name. This field is optional.

  • If provided, the same will be used. The service will throw an error if the specified id is already used by another External API resource in the API hub.
  • If not provided, a system generated id will be used.

This value should be 4-500 characters, and valid characters are /[a-z][A-Z][0-9]-_/.

external_api

ExternalApi

Required. The External API resource to create.

CreateHostProjectRegistrationRequest

The CreateHostProjectRegistration method's request.

Fields
parent

string

Required. The parent resource for the host project. Format: projects/{project}/locations/{location}

host_project_registration_id

string

Required. The ID to use for the Host Project Registration, which will become the final component of the host project registration's resource name. The ID must be the same as the Google cloud project specified in the host_project_registration.gcp_project field.

host_project_registration

HostProjectRegistration

Required. The host project registration to register.

CreatePluginInstanceRequest

The CreatePluginInstance method's request.

Fields
parent

string

Required. The parent of the plugin instance resource. Format: projects/{project}/locations/{location}/plugins/{plugin}

plugin_instance_id

string

Optional. The ID to use for the plugin instance, which will become the final component of the plugin instance's resource name. This field is optional.

  • If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource.
  • If not provided, a system generated id will be used.

This value should be 4-500 characters, and valid characters are /[a-z][A-Z][0-9]-_/.

plugin_instance

PluginInstance

Required. The plugin instance to create.

CreatePluginRequest

The CreatePlugin method's request.

Fields
parent

string

Required. The parent resource where this plugin will be created. Format: projects/{project}/locations/{location}.

plugin_id

string

Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional.

  • If provided, the same will be used. The service will throw an error if the specified id is already used by another Plugin resource in the API hub instance.
  • If not provided, a system generated id will be used.

This value should be 4-500 characters, overall resource name which will be of format projects/{project}/locations/{location}/plugins/{plugin}, its length is limited to 1000 characters and valid characters are /[a-z][A-Z][0-9]-_/.

plugin

Plugin

Required. The plugin to create.

CreateRuntimeProjectAttachmentRequest

The CreateRuntimeProjectAttachment method's request.

Fields
parent

string

Required. The parent resource for the Runtime Project Attachment. Format: projects/{project}/locations/{location}

runtime_project_attachment_id

string

Required. The ID to use for the Runtime Project Attachment, which will become the final component of the Runtime Project Attachment's name. The ID must be the same as the project ID of the Google cloud project specified in the runtime_project_attachment.runtime_project field.

runtime_project_attachment

RuntimeProjectAttachment

Required. The Runtime Project Attachment to create.

CreateSpecRequest

The CreateSpec method's request.

Fields
parent

string

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

spec_id

string

Optional. The ID to use for the spec, which will become the final component of the spec's resource name. This field is optional.

  • If provided, the same will be used. The service will throw an error if the specified id is already used by another spec in the API resource.
  • If not provided, a system generated id will be used.

This value should be 4-500 characters, overall resource name which will be of format projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}, its length is limited to 1000 characters and valid characters are /[a-z][A-Z][0-9]-_/.

spec

Spec

Required. The spec to create.

CreateVersionRequest

The CreateVersion method's request.

Fields
parent

string

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

version_id

string

Optional. The ID to use for the API version, which will become the final component of the version's resource name. This field is optional.

  • If provided, the same will be used. The service will throw an error if the specified id is already used by another version in the API resource.
  • If not provided, a system generated id will be used.

This value should be 4-500 characters, overall resource name which will be of format projects/{project}/locations/{location}/apis/{api}/versions/{version}, its length is limited to 700 characters and valid characters are /[a-z][A-Z][0-9]-_/.

version

Version

Required. The version to create.

Curation

A curation resource in the API hub.

Fields
name

string

Identifier. The name of the curation.

Format: projects/{project}/locations/{location}/curations/{curation}

display_name

string

Required. The display name of the curation.

description

string

Optional. The description of the curation.

endpoint

Endpoint

Required. The endpoint to be triggered for curation.

plugin_instance_actions[]

PluginInstanceActionID

Output only. The plugin instances and associated actions that are using the curation. Note: A particular curation could be used by multiple plugin instances or multiple actions in a plugin instance.

last_execution_state

LastExecutionState

Output only. The last execution state of the curation.

last_execution_error_code

ErrorCode

Output only. The error code of the last execution of the curation. The error code is populated only when the last execution state is failed.

last_execution_error_message

string

Output only. Error message describing the failure, if any, during the last execution of the curation.

create_time

Timestamp

Output only. The time at which the curation was created.

update_time

Timestamp

Output only. The time at which the curation was last updated.

ErrorCode

The error codes for failed executions.

Enums
ERROR_CODE_UNSPECIFIEDDefault unspecified error code.
INTERNAL_ERRORThe execution failed due to an internal error.
UNAUTHORIZEDThe curation is not authorized to trigger the endpoint uri.

LastExecutionState

The state of the last execution of the curation.

Enums
LAST_EXECUTION_STATE_UNSPECIFIEDDefault unspecified state.
SUCCEEDEDThe last curation execution was successful.
FAILEDThe last curation execution failed.

PluginInstanceActionID

The plugin instance and associated action that is using the curation.

Fields
plugin_instance

string

Output only. Plugin instance that is using the curation. Format is projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}

action_id

string

Output only. The action ID that is using the curation. This should map to one of the action IDs specified in action configs in the plugin.

CurationConfig

The curation information for this plugin instance.

Fields
curation_type

CurationType

Required. The curation type for this plugin instance.

Union field curation_config. The curation information for this plugin instance. curation_config can be only one of the following:
custom_curation

CustomCuration

Optional. Custom curation information for this plugin instance.

CustomCuration

Custom curation information for this plugin instance.

Fields
curation

string

Required. The unique name of the curation resource. This will be the name of the curation resource in the format: projects/{project}/locations/{location}/curations/{curation}

CurationType

Enum for the curation type.

Enums
CURATION_TYPE_UNSPECIFIEDDefault unspecified curation type.
DEFAULT_CURATION_FOR_API_METADATADefault curation for API metadata will be used.
CUSTOM_CURATION_FOR_API_METADATACustom curation for API metadata will be used.

Definition

Represents a definition for example schema, request, response definitions contained in an API version. A definition is added/updated/deleted in an API version when a new spec is added or an existing spec is updated/deleted in a version. Currently, definition will be created only corresponding to OpenAPI spec as parsing is supported for OpenAPI spec. Also, within OpenAPI spec, only schema object is supported.

Fields
name

string

Identifier. The name of the definition.

Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}

spec

string

Output only. The name of the spec from where the definition was parsed. Format is projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}

type

Type

Output only. The type of the definition.

create_time

Timestamp

Output only. The time at which the definition was created.

update_time

Timestamp

Output only. The time at which the definition was last updated.

attributes

map<string, AttributeValues>

Optional. The list of user defined attributes associated with the definition resource. The key is the attribute name. It will be of the format: projects/{project}/locations/{location}/attributes/{attribute}. The value is the attribute values associated with the resource.

Union field value.

value can be only one of the following:

schema

Schema

Output only. The value of a schema definition.

Type

Enumeration of definition types.

Enums
TYPE_UNSPECIFIEDDefinition type unspecified.
SCHEMADefinition type schema.

DeleteApiHubInstanceRequest

The DeleteApiHubInstance method's request.

Fields
name

string

Required. The name of the Api Hub instance to delete. Format: projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}.

DeleteApiOperationRequest

The DeleteApiOperation method's request.

Fields
name

string

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

DeleteApiRequest

The DeleteApi method's request.

Fields
name

string

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

force

bool

Optional. If set to true, any versions from this API will also be deleted. Otherwise, the request will only work if the API has no versions.

DeleteAttributeRequest

The DeleteAttribute method's request.

Fields
name

string

Required. The name of the attribute to delete. Format: projects/{project}/locations/{location}/attributes/{attribute}

DeleteCurationRequest

The [DeleteCuration][ApiHub.DeleteCuration] method's request.

Fields
name

string

Required. The name of the curation resource to delete. Format: projects/{project}/locations/{location}/curations/{curation}

DeleteDependencyRequest

The DeleteDependency method's request.

Fields
name

string

Required. The name of the dependency resource to delete. Format: projects/{project}/locations/{location}/dependencies/{dependency}

DeleteDeploymentRequest

The DeleteDeployment method's request.

Fields
name

string

Required. The name of the deployment resource to delete. Format: projects/{project}/locations/{location}/deployments/{deployment}

DeleteExternalApiRequest

The DeleteExternalApi method's request.

Fields
name

string

Required. The name of the External API resource to delete. Format: projects/{project}/locations/{location}/externalApis/{externalApi}

DeletePluginInstanceRequest

The DeletePluginInstance method's request.

Fields
name

string

Required. The name of the plugin instance to delete. Format: projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}.

DeletePluginRequest

The [DeletePlugin][ApiHub.DeletePlugin] method's request.

Fields
name

string

Required. The name of the Plugin resource to delete. Format: projects/{project}/locations/{location}/plugins/{plugin}

DeleteRuntimeProjectAttachmentRequest

The DeleteRuntimeProjectAttachment method's request.

Fields
name

string

Required. The name of the Runtime Project Attachment to delete. Format: projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}

DeleteSpecRequest

The DeleteSpec method's request.

Fields
name

string

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

DeleteVersionRequest

The DeleteVersion method's request.

Fields
name

string

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

force

bool

Optional. If set to true, any specs from this version will also be deleted. Otherwise, the request will only work if the version has no specs.

Dependency

A dependency resource defined in the API hub describes a dependency directed from a consumer to a supplier entity. A dependency can be defined between two Operations or between an Operation and External API.

Fields
name

string

Identifier. The name of the dependency in the API hub.

Format: projects/{project}/locations/{location}/dependencies/{dependency}

consumer

DependencyEntityReference

Required. Immutable. The entity acting as the consumer in the dependency.

supplier

DependencyEntityReference

Required. Immutable. The entity acting as the supplier in the dependency.

state

State

Output only. State of the dependency.

description

string

Optional. Human readable description corresponding of the dependency.

discovery_mode

DiscoveryMode

Output only. Discovery mode of the dependency.

error_detail

DependencyErrorDetail

Output only. Error details of a dependency if the system has detected it internally.

create_time

Timestamp

Output only. The time at which the dependency was created.

update_time

Timestamp

Output only. The time at which the dependency was last updated.

attributes

map<string, AttributeValues>

Optional. The list of user defined attributes associated with the dependency resource. The key is the attribute name. It will be of the format: projects/{project}/locations/{location}/attributes/{attribute}. The value is the attribute values associated with the resource.

DiscoveryMode

Possible modes of discovering the dependency.

Enums
DISCOVERY_MODE_UNSPECIFIEDDefault value. This value is unused.
MANUALManual mode of discovery when the dependency is defined by the user.

State

Possible states for a dependency.

Enums
STATE_UNSPECIFIEDDefault value. This value is unused.
PROPOSEDDependency will be in a proposed state when it is newly identified by the API hub on its own.
VALIDATEDDependency will be in a validated state when it is validated by the admin or manually created in the API hub.

DependencyEntityReference

Reference to an entity participating in a dependency.

Fields
display_name

string

Output only. Display name of the entity.

Union field identifier. Required. Unique identifier for the participating entity. identifier can be only one of the following:
operation_resource_name

string

The resource name of an operation in the API hub.

Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}

external_api_resource_name

string

The resource name of an external API in the API hub.

Format: projects/{project}/locations/{location}/externalApis/{external_api}

DependencyErrorDetail

Details describing error condition of a dependency.

Fields
error

Error

Optional. Error in the dependency.

error_time

Timestamp

Optional. Timestamp at which the error was found.

Error

Possible values representing an error in the dependency.

Enums
ERROR_UNSPECIFIEDDefault value used for no error in the dependency.
SUPPLIER_NOT_FOUNDSupplier entity has been deleted.
SUPPLIER_RECREATEDSupplier entity has been recreated.

Deployment

Details of the deployment where APIs are hosted. A deployment could represent an Apigee proxy, API gateway, other Google Cloud services or non-Google Cloud services as well. A deployment entity is a root level entity in the API hub and exists independent of any API.

Fields
name

string

Identifier. The name of the deployment.

Format: projects/{project}/locations/{location}/deployments/{deployment}

display_name

string

Required. The display name of the deployment.

description

string

Optional. The description of the deployment.

documentation

Documentation

Optional. The documentation of the deployment.

deployment_type

AttributeValues

Required. The type of deployment. This maps to the following system defined attribute: projects/{project}/locations/{location}/attributes/system-deployment-type attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

resource_uri

string

Required. A URI to the runtime resource. This URI can be used to manage the resource. For example, if the runtime resource is of type APIGEE_PROXY, then this field will contain the URI to the management UI of the proxy.

endpoints[]

string

Required. The endpoints at which this deployment resource is listening for API requests. This could be a list of complete URIs, hostnames or an IP addresses.

api_versions[]

string

Output only. The API versions linked to this deployment. Note: A particular deployment could be linked to multiple different API versions (of same or different APIs).

create_time

Timestamp

Output only. The time at which the deployment was created.

update_time

Timestamp

Output only. The time at which the deployment was last updated.

slo

AttributeValues

Optional. The SLO for this deployment. This maps to the following system defined attribute: projects/{project}/locations/{location}/attributes/system-slo attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

environment

AttributeValues

Optional. The environment mapping to this deployment. This maps to the following system defined attribute: projects/{project}/locations/{location}/attributes/system-environment attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

attributes

map<string, AttributeValues>

Optional. The list of user defined attributes associated with the deployment resource. The key is the attribute name. It will be of the format: projects/{project}/locations/{location}/attributes/{attribute}. The value is the attribute values associated with the resource.

source_metadata[]

SourceMetadata

Output only. The list of sources and metadata from the sources of the deployment.

DeploymentMetadata

The metadata associated with a deployment.

Fields
deployment

Deployment

Required. The deployment resource to be pushed to Hub's collect layer. The ID of the deployment will be generated by Hub.

original_id

string

Optional. The unique identifier of the deployment in the system where it was originally created.

original_create_time

Timestamp

Optional. Timestamp indicating when the deployment was created at the source.

original_update_time

Timestamp

Required. Timestamp indicating when the deployment was last updated at the source.

DisablePluginInstanceActionRequest

The DisablePluginInstanceAction method's request.

Fields
name

string

Required. The name of the plugin instance to disable. Format: projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}

action_id

string

Required. The action id to disable.

DisablePluginInstanceActionResponse

This type has no fields.

The DisablePluginInstanceAction method's response.

DisablePluginRequest

The DisablePlugin method's request.

Fields
name

string

Required. The name of the plugin to disable. Format: projects/{project}/locations/{location}/plugins/{plugin}.

Documentation

Documentation details.

Fields
external_uri

string

Optional. The uri of the externally hosted documentation.

EnablePluginInstanceActionRequest

The EnablePluginInstanceAction method's request.

Fields
name

string

Required. The name of the plugin instance to enable. Format: projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}

action_id

string

Required. The action id to enable.

EnablePluginInstanceActionResponse

This type has no fields.

The EnablePluginInstanceAction method's response.

EnablePluginRequest

The EnablePlugin method's request.

Fields
name

string

Required. The name of the plugin to enable. Format: projects/{project}/locations/{location}/plugins/{plugin}.

Endpoint

The endpoint to be triggered for curation. The endpoint will be invoked with a request payload containing [ApiMetadata][google.cloud.apihub.v1.ApiHub.ApiMetadata]. Response should contain curated data in the form of [ApiMetadata][google.cloud.apihub.v1.ApiHub.ApiMetadata].

Fields
Union field endpoint_details. The details of the endpoint to be triggered for curation. endpoint_details can be only one of the following:
application_integration_endpoint_details

ApplicationIntegrationEndpointDetails

Required. The details of the Application Integration endpoint to be triggered for curation.