Get desktop application:
View/edit binary Protocol Buffers messages
An API resource in the API Hub.
Used in:
Identifier. The name of the API resource in the API Hub. Format: `projects/{project}/locations/{location}/apis/{api}`
Required. The display name of the API resource.
Optional. The description of the API resource.
Optional. The documentation for the API resource.
Optional. Owner details for the API resource.
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}`
Output only. The time at which the API resource was created.
Output only. The time at which the API resource was last updated.
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.
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.
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.
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.
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.
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.
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}`
The CloudEvent raised when a Api is created.
The data associated with the event.
The CloudEvent raised when a Api is deleted.
The data associated with the event.
The data within all Api events.
Used in:
, ,Optional. The Api event payload. Unset for deletion events.
An ApiHubInstance represents the instance resources of the API Hub. Currently, only one ApiHub instance is allowed for each project.
Used in:
Identifier. Format: `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
Output only. Creation timestamp.
Output only. Last update timestamp.
Output only. The current state of the ApiHub instance.
Output only. Extra information about ApiHub instance state. Currently the message would be populated when state is `FAILED`.
Required. Config of the ApiHub instance.
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
Optional. Description of the ApiHub instance.
Available configurations to provision an ApiHub Instance.
Used in:
Required. 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.
State of the ApiHub Instance.
Used in:
The default value. This value is used if the state is omitted.
The ApiHub instance has not been initialized or has been deleted.
The ApiHub instance is being created.
The ApiHub instance has been created and is ready for use.
The ApiHub instance is being updated.
The ApiHub instance is being deleted.
The ApiHub instance encountered an error during a state change.
The CloudEvent raised when a ApiHubInstance is created.
The data associated with the event.
The data within all ApiHubInstance events.
Used in:
The ApiHubInstance event payload.
The CloudEvent raised when a Api is updated.
The data associated with the event.
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.
Used in:
Identifier. The name of the attribute in the API Hub. Format: `projects/{project}/locations/{location}/attributes/{attribute}`
Required. The display name of the attribute.
Optional. The description of the attribute.
Output only. The definition type of the attribute.
Required. The scope of the attribute. It represents the resource in the API Hub to which the attribute can be linked.
Required. The type of the data of the attribute.
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.
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.
Output only. When mandatory is true, the attribute is mandatory for the resource specified in the scope. Only System defined attributes can be mandatory.
Output only. The time at which the attribute was created.
Output only. The time at which the attribute was last updated.
The value that can be assigned to the attribute when the data type is enum.
Used in:
,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]-/.
Required. The display name of the allowed value.
Optional. The detailed description of the allowed value.
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.
Enumeration of attribute's data type.
Used in:
Attribute data type unspecified.
Attribute's value is of type enum.
Attribute's value is of type json.
Attribute's value is of type string.
Enumeration of attribute definition types.
Used in:
Attribute definition type unspecified.
The attribute is predefined by the API Hub. Note that only the list of allowed values can be updated in this case via UpdateAttribute method.
The attribute is defined by the user.
Enumeration for the scope of the attribute representing the resource in the API Hub to which the attribute can be linked.
Used in:
Scope Unspecified.
Attribute can be linked to an API.
Attribute can be linked to an API version.
Attribute can be linked to a Spec.
Attribute can be linked to an API Operation.
Attribute can be linked to a Deployment.
Attribute can be linked to a Dependency.
Attribute can be linked to a definition.
Attribute can be linked to a ExternalAPI.
Attribute can be linked to a Plugin.
The CloudEvent raised when a Attribute is created.
The data associated with the event.
The data within all Attribute events.
Used in:
Optional. The Attribute event payload. Unset for deletion events.
The attribute values associated with resource.
Used in:
, , , , ,The attribute values associated with the resource.
The attribute values associated with a resource in case attribute data type is enum.
The attribute values associated with a resource in case attribute data type is string.
The attribute values associated with a resource in case attribute data type is JSON.
Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
The attribute values of data type enum.
Used in:
Required. The attribute values in case attribute data type is enum.
The attribute values of data type string or JSON.
Used in:
Required. The attribute values in case attribute data type is string or JSON.
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][google.cloud.apihub.v1.Operation] or between an [Operation][google.cloud.apihub.v1.Operation] and [External API][google.cloud.apihub.v1.ExternalApi].
Used in:
Identifier. The name of the dependency in the API Hub. Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
Required. Immutable. The entity acting as the consumer in the dependency.
Required. Immutable. The entity acting as the supplier in the dependency.
Output only. State of the dependency.
Optional. Human readable description corresponding of the dependency.
Output only. Discovery mode of the dependency.
Output only. Error details of a dependency if the system has detected it internally.
Output only. The time at which the dependency was created.
Output only. The time at which the dependency was last updated.
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.
Possible modes of discovering the dependency.
Used in:
Default value. This value is unused.
Manual mode of discovery when the dependency is defined by the user.
Possible states for a dependency.
Used in:
Default value. This value is unused.
Dependency will be in a proposed state when it is newly identified by the API hub on its own.
Dependency will be in a validated state when it is validated by the admin or manually created in the API hub.
The CloudEvent raised when a Dependency is created.
The data associated with the event.
The CloudEvent raised when a Dependency is deleted.
The data associated with the event.
Reference to an entity participating in a dependency.
Used in:
Required. Unique identifier for the participating entity.
The resource name of an operation in the API Hub. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
The resource name of an external API in the API Hub. Format: `projects/{project}/locations/{location}/externalApis/{external_api}`
Output only. Display name of the entity.
Details describing error condition of a dependency.
Used in:
Optional. Error in the dependency.
Optional. Timestamp at which the error was found.
Possible values representing an error in the dependency.
Used in:
Default value used for no error in the dependency.
Supplier entity has been deleted.
Supplier entity has been recreated.
The data within all Dependency events.
Used in:
, ,Optional. The Dependency event payload. Unset for deletion events.
The CloudEvent raised when a Dependency is updated.
The data associated with the event.
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.
Used in:
Identifier. The name of the deployment. Format: `projects/{project}/locations/{location}/deployments/{deployment}`
Required. The display name of the deployment.
Optional. The description of the deployment.
Optional. The documentation of the deployment.
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.
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.
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.
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).
Output only. The time at which the deployment was created.
Output only. The time at which the deployment was last updated.
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.
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.
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.
The CloudEvent raised when a Deployment is created.
The data associated with the event.
The CloudEvent raised when a Deployment is deleted.
The data associated with the event.
The data within all Deployment events.
Used in:
, ,Optional. The Deployment event payload. Unset for deletion events.
The CloudEvent raised when a Deployment is updated.
The data associated with the event.
Documentation details.
Used in:
, , , ,Optional. The uri of the externally hosted documentation.
An external API represents an API being provided by external sources. This can be used to model third-party APIs and can be used to define dependencies.
Used in:
Identifier. Format: `projects/{project}/locations/{location}/externalApi/{externalApi}`.
Required. Display name of the external API. Max length is 63 characters (Unicode Code Points).
Optional. Description of the external API. Max length is 2000 characters (Unicode Code Points).
Optional. List of endpoints on which this API is accessible.
Optional. List of paths served by this API.
Optional. Documentation of the external API.
Optional. The list of user defined attributes associated with the Version 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.
Output only. Creation timestamp.
Output only. Last update timestamp.
The CloudEvent raised when a ExternalApi is created.
The data associated with the event.
The CloudEvent raised when a ExternalApi is deleted.
The data associated with the event.
The data within all ExternalApi events.
Used in:
, ,Optional. The ExternalApi event payload. Unset for deletion events.
The CloudEvent raised when a ExternalApi is updated.
The data associated with the event.
Host project registration refers to the registration of a Google cloud project with Api Hub as a host project. This is the project where Api Hub is provisioned. It acts as the consumer project for the Api Hub instance provisioned. Multiple runtime projects can be attached to the host project and these attachments define the scope of Api Hub.
Used in:
Identifier. The name of the host project registration. Format: "projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}".
Required. Immutable. Google cloud project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number.
Output only. The time at which the host project registration was created.
The CloudEvent raised when a HostProjectRegistration is created.
The data associated with the event.
The data within all HostProjectRegistration events.
Used in:
The HostProjectRegistration event payload.
Issue contains the details of a single issue found by the linter.
Used in:
Required. Rule code unique to each rule defined in linter.
Required. An array of strings indicating the location in the analyzed document where the rule was triggered.
Required. Human-readable message describing the issue found by the linter.
Required. Severity level of the rule violation.
Required. Object describing where in the file the issue was found.
LintResponse contains the response from the linter.
Used in:
Optional. Array of issues found in the analyzed document.
Optional. Summary of all issue types and counts for each severity level.
Required. Lint state represents success or failure for linting.
Required. Name of the linting application.
Required. Name of the linter used.
Required. Timestamp when the linting response was generated.
Count of issues with a given severity.
Used in:
Required. Severity of the issue.
Required. Count of issues with the given severity.
Lint state represents success or failure for linting.
Used in:
Lint state unspecified.
Linting was completed successfully.
Linting encountered errors.
Enumeration of linter types.
Used in:
Linter type unspecified.
Linter type spectral.
Linter type other.
OpenApiSpecDetails contains the details parsed from an OpenAPI spec in addition to the fields mentioned in [SpecDetails][google.cloud.apihub.v1.SpecDetails].
Used in:
Output only. The format of the spec.
Output only. The version in the spec. This maps to `info.version` in OpenAPI spec.
Output only. Owner details for the spec. This maps to `info.contact` in OpenAPI spec.
Enumeration of spec formats.
Used in:
SpecFile type unspecified.
OpenAPI Spec v2.0.
OpenAPI Spec v3.0.
OpenAPI Spec v3.1.
Owner details.
Used in:
,Optional. The name of the owner.
Required. The email of the owner.
Point within the file (line and character).
Used in:
Required. Line number (zero-indexed).
Required. Character position within the line (zero-indexed).
Object describing where in the file the issue was found.
Used in:
Required. Start of the issue.
Required. End of the issue.
Runtime project attachment represents an attachment from the runtime project to the host project. Api Hub looks for deployments in the attached runtime projects and creates corresponding resources in Api Hub for the discovered deployments.
Used in:
Identifier. The resource name of a runtime project attachment. Format: "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}".
Required. Immutable. Google cloud project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number.
Output only. Create time.
The CloudEvent raised when a RuntimeProjectAttachment is created.
The data associated with the event.
The CloudEvent raised when a RuntimeProjectAttachment is deleted.
The data associated with the event.
The data within all RuntimeProjectAttachment events.
Used in:
,Optional. The RuntimeProjectAttachment event payload. Unset for deletion events.
Severity of the issue.
Used in:
,Severity unspecified.
Severity error.
Severity warning.
Severity info.
Severity hint.
Represents a spec associated with an API version in the API Hub. Note that specs of various types can be uploaded, however parsing of details is supported for OpenAPI spec currently.
Used in:
Identifier. The name of the spec. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
Required. The display name of the spec. This can contain the file name of the spec.
Required. The type of spec. The value should be one of the allowed values defined for `projects/{project}/locations/{location}/attributes/system-spec-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. Note, this field is mandatory if content is provided.
Output only. Details parsed from the spec.
Optional. The URI of the spec source in case file is uploaded from an external version control system.
Output only. The time at which the spec was created.
Output only. The time at which the spec was last updated.
Optional. The lint response for the spec.
Optional. The list of user defined attributes associated with the spec. 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.
Optional. The documentation of the spec. For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI spec.
The spec contents.
Required. The contents of the spec.
Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
The CloudEvent raised when a Spec is created.
The data associated with the event.
The CloudEvent raised when a Spec is deleted.
The data associated with the event.
SpecDetails contains the details parsed from supported spec types.
Used in:
Output only. Additional details apart from `OperationDetails` parsed from an OpenAPI spec. The OperationDetails parsed from the spec can be obtained by using [ListAPIOperations][google.cloud.apihub.v1.ApiHub.ListApiOperations] method.
Output only. The description of the spec.
The data within all Spec events.
Used in:
, ,Optional. The Spec event payload. Unset for deletion events.
The CloudEvent raised when a Spec is updated.
The data associated with the event.
Represents a version of the API resource in API hub. This is also referred to as the API version.
Used in:
Identifier. The name of the version. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
Required. The display name of the version.
Optional. The description of the version.
Optional. The documentation of the version.
Output only. The specs associated with this version. Note that an API version can be associated with multiple specs. Format is `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
Output only. The operations contained in the API version. These operations will be added to the version when a new spec is added or when an existing spec is updated. Format is `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
Output only. The definitions contained in the API version. These definitions will be added to the version when a new spec is added or when an existing spec is updated. Format is `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc) Format is `projects/{project}/locations/{location}/deployments/{deployment}`
Output only. The time at which the version was created.
Output only. The time at which the version was last updated.
Optional. The lifecycle of the API version. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-lifecycle` 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.
Optional. The compliance associated with the API version. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-compliance` 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.
Optional. The accreditations associated with the API version. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-accreditation` 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.
Optional. The list of user defined attributes associated with the Version 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.
Optional. The selected deployment for a Version resource. This can be used when special handling is needed on client side for a particular deployment linked to the version. Format is `projects/{project}/locations/{location}/deployments/{deployment}`
The CloudEvent raised when a Version is created.
The data associated with the event.
The CloudEvent raised when a Version is deleted.
The data associated with the event.
The data within all Version events.
Used in:
, ,Optional. The Version event payload. Unset for deletion events.
The CloudEvent raised when a Version is updated.
The data associated with the event.