Get desktop application:
View/edit binary Protocol Buffers messages
This service provides all methods related to the API hub.
Create an API resource in the API hub. Once an API resource is created, versions can be added to it.
The [CreateApi][google.cloud.apihub.v1.ApiHub.CreateApi] method's request.
Required. The parent resource for the API resource. Format: `projects/{project}/locations/{location}`
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]-_/.
Required. The API resource to create.
Get API resource details including the API versions contained in it.
The [GetApi][google.cloud.apihub.v1.ApiHub.GetApi] method's request.
Required. The name of the API resource to retrieve. Format: `projects/{project}/locations/{location}/apis/{api}`
List API resources in the API hub.
The [ListApis][google.cloud.apihub.v1.ApiHub.ListApis] method's request.
Required. The parent, which owns this collection of API resources. Format: `projects/{project}/locations/{location}`
Optional. An expression that filters the list of ApiResources. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string. The comparison operator must be one of: `<`, `>`, `:` or `=`. Filters are not case sensitive. The following fields in the `ApiResource` are eligible for filtering: * `owner.email` - The email of the team which owns the ApiResource. Allowed comparison operators: `=`. * `create_time` - The time at which the ApiResource was created. The value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] format. Allowed comparison operators: `>` and `<`. * `display_name` - The display name of the ApiResource. Allowed comparison operators: `=`. * `target_user.enum_values.values.id` - The allowed value id of the target users attribute associated with the ApiResource. Allowed comparison operator is `:`. * `target_user.enum_values.values.display_name` - The allowed value display name of the target users attribute associated with the ApiResource. Allowed comparison operator is `:`. * `team.enum_values.values.id` - The allowed value id of the team attribute associated with the ApiResource. Allowed comparison operator is `:`. * `team.enum_values.values.display_name` - The allowed value display name of the team attribute associated with the ApiResource. Allowed comparison operator is `:`. * `business_unit.enum_values.values.id` - The allowed value id of the business unit attribute associated with the ApiResource. Allowed comparison operator is `:`. * `business_unit.enum_values.values.display_name` - The allowed value display name of the business unit attribute associated with the ApiResource. Allowed comparison operator is `:`. * `maturity_level.enum_values.values.id` - The allowed value id of the maturity level attribute associated with the ApiResource. Allowed comparison operator is `:`. * `maturity_level.enum_values.values.display_name` - The allowed value display name of the maturity level attribute associated with the ApiResource. Allowed comparison operator is `:`. * `api_style.enum_values.values.id` - The allowed value id of the api style attribute associated with the ApiResource. Allowed comparison operator is `:`. * `api_style.enum_values.values.display_name` - The allowed value display name of the api style attribute associated with the ApiResource. Allowed comparison operator is `:`. Expressions are combined with either `AND` logic operator or `OR` logical operator but not both of them together i.e. only one of the `AND` or `OR` operator can be used throughout the filter string and both the operators cannot be used together. No other logical operators are supported. At most three filter fields are allowed in the filter string and if provided more than that then `INVALID_ARGUMENT` error is returned by the API. Here are a few examples: * `owner.email = \"apihub@google.com\"` - - The owner team email is _apihub@google.com_. * `owner.email = \"apihub@google.com\" AND create_time < \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - The owner team email is _apihub@google.com_ and the api was created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. * `owner.email = \"apihub@google.com\" OR team.enum_values.values.id: apihub-team-id` - The filter string specifies the APIs where the owner team email is _apihub@google.com_ or the id of the allowed value associated with the team attribute is _apihub-team-id_. * `owner.email = \"apihub@google.com\" OR team.enum_values.values.display_name: ApiHub Team` - The filter string specifies the APIs where the owner team email is _apihub@google.com_ or the display name of the allowed value associated with the team attribute is `ApiHub Team`.
Optional. The maximum number of API resources to return. The service may return fewer than this value. If unspecified, at most 50 Apis will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
Optional. A page token, received from a previous `ListApis` call. Provide this to retrieve the subsequent page. When paginating, all other parameters (except page_size) provided to `ListApis` must match the call that provided the page token.
The [ListApis][google.cloud.apihub.v1.ApiHub.ListApis] method's response.
The API resources present in the API hub.
A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Update an API resource in the API hub. The following fields in the [API][] can be updated: * [display_name][google.cloud.apihub.v1.Api.display_name] * [description][google.cloud.apihub.v1.Api.description] * [owner][google.cloud.apihub.v1.Api.owner] * [documentation][google.cloud.apihub.v1.Api.documentation] * [target_user][google.cloud.apihub.v1.Api.target_user] * [team][google.cloud.apihub.v1.Api.team] * [business_unit][google.cloud.apihub.v1.Api.business_unit] * [maturity_level][google.cloud.apihub.v1.Api.maturity_level] * [attributes][google.cloud.apihub.v1.Api.attributes] The [update_mask][google.cloud.apihub.v1.UpdateApiRequest.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.
The [UpdateApi][google.cloud.apihub.v1.ApiHub.UpdateApi] method's request.
Required. The API resource to update. The API resource's `name` field is used to identify the API resource to update. Format: `projects/{project}/locations/{location}/apis/{api}`
Required. The list of fields to update.
Delete an API resource in the API hub. API can only be deleted if all underlying versions are deleted.
The [DeleteApi][google.cloud.apihub.v1.ApiHub.DeleteApi] method's request.
Required. The name of the API resource to delete. Format: `projects/{project}/locations/{location}/apis/{api}`
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.
Create an API version for an API resource in the API hub.
The [CreateVersion][google.cloud.apihub.v1.ApiHub.CreateVersion] method's request.
Required. The parent resource for API version. Format: `projects/{project}/locations/{location}/apis/{api}`
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, and valid characters are /[a-z][A-Z][0-9]-_/.
Required. The version to create.
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.
The [GetVersion][google.cloud.apihub.v1.ApiHub.GetVersion] method's request.
Required. The name of the API version to retrieve. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
List API versions of an API resource in the API hub.
The [ListVersions][google.cloud.apihub.v1.ApiHub.ListVersions] method's request.
Required. The parent which owns this collection of API versions i.e., the API resource Format: `projects/{project}/locations/{location}/apis/{api}`
Optional. An expression that filters the list of Versions. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string, a number, or a boolean. The comparison operator must be one of: `<`, `>` or `=`. Filters are not case sensitive. The following fields in the `Version` are eligible for filtering: * `display_name` - The display name of the Version. Allowed comparison operators: `=`. * `create_time` - The time at which the Version was created. The value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] format. Allowed comparison operators: `>` and `<`. * `lifecycle.enum_values.values.id` - The allowed value id of the lifecycle attribute associated with the Version. Allowed comparison operators: `:`. * `lifecycle.enum_values.values.display_name` - The allowed value display name of the lifecycle attribute associated with the Version. Allowed comparison operators: `:`. * `compliance.enum_values.values.id` - The allowed value id of the compliances attribute associated with the Version. Allowed comparison operators: `:`. * `compliance.enum_values.values.display_name` - The allowed value display name of the compliances attribute associated with the Version. Allowed comparison operators: `:`. * `accreditation.enum_values.values.id` - The allowed value id of the accreditations attribute associated with the Version. Allowed comparison operators: `:`. * `accreditation.enum_values.values.display_name` - The allowed value display name of the accreditations attribute associated with the Version. Allowed comparison operators: `:`. Expressions are combined with either `AND` logic operator or `OR` logical operator but not both of them together i.e. only one of the `AND` or `OR` operator can be used throughout the filter string and both the operators cannot be used together. No other logical operators are supported. At most three filter fields are allowed in the filter string and if provided more than that then `INVALID_ARGUMENT` error is returned by the API. Here are a few examples: * `lifecycle.enum_values.values.id: preview-id` - The filter string specifies that the id of the allowed value associated with the lifecycle attribute of the Version is _preview-id_. * `lifecycle.enum_values.values.display_name: \"Preview Display Name\"` - The filter string specifies that the display name of the allowed value associated with the lifecycle attribute of the Version is `Preview Display Name`. * `lifecycle.enum_values.values.id: preview-id AND create_time < \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - The id of the allowed value associated with the lifecycle attribute of the Version is _preview-id_ and it was created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. * `compliance.enum_values.values.id: gdpr-id OR compliance.enum_values.values.id: pci-dss-id` - The id of the allowed value associated with the compliance attribute is _gdpr-id_ or _pci-dss-id_.
Optional. The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
Optional. A page token, received from a previous `ListVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters (except page_size) provided to `ListVersions` must match the call that provided the page token.
The [ListVersions][google.cloud.apihub.v1.ApiHub.ListVersions] method's response.
The versions corresponding to an API.
A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Update API version. The following fields in the [version][google.cloud.apihub.v1.Version] can be updated currently: * [display_name][google.cloud.apihub.v1.Version.display_name] * [description][google.cloud.apihub.v1.Version.description] * [documentation][google.cloud.apihub.v1.Version.documentation] * [deployments][google.cloud.apihub.v1.Version.deployments] * [lifecycle][google.cloud.apihub.v1.Version.lifecycle] * [compliance][google.cloud.apihub.v1.Version.compliance] * [accreditation][google.cloud.apihub.v1.Version.accreditation] * [attributes][google.cloud.apihub.v1.Version.attributes] The [update_mask][google.cloud.apihub.v1.UpdateVersionRequest.update_mask] should be used to specify the fields being updated.
The [UpdateVersion][google.cloud.apihub.v1.ApiHub.UpdateVersion] method's request.
Required. The API version to update. The version's `name` field is used to identify the API version to update. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
Required. The list of fields to update.
Delete an API version. Version can only be deleted if all underlying specs, operations, definitions and linked deployments are deleted.
The [DeleteVersion][google.cloud.apihub.v1.ApiHub.DeleteVersion] method's request.
Required. The name of the version to delete. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
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.
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][google.cloud.apihub.v1.ApiHub.GetSpec] method. In order to access the raw contents for a particular spec, use the [GetSpecContents][google.cloud.apihub.v1.ApiHub.GetSpecContents] method. In order to access the operations parsed from the spec, use the [ListAPIOperations][google.cloud.apihub.v1.ApiHub.ListApiOperations] method.
The [CreateSpec][google.cloud.apihub.v1.ApiHub.CreateSpec] method's request.
Required. The parent resource for Spec. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
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, and valid characters are /[a-z][A-Z][0-9]-_/.
Required. The spec to create.
Get details about the information parsed from a spec. Note that this method does not return the raw spec contents. Use [GetSpecContents][google.cloud.apihub.v1.ApiHub.GetSpecContents] method to retrieve the same.
The [GetSpec][google.cloud.apihub.v1.ApiHub.GetSpec] method's request.
Required. The name of the spec to retrieve. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
Get spec contents.
The [GetSpecContents][google.cloud.apihub.v1.ApiHub.GetSpecContents] method's request.
Required. The name of the spec whose contents need to be retrieved. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
List specs corresponding to a particular API resource.
The [ListSpecs][ListSpecs] method's request.
Required. The parent, which owns this collection of specs. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
Optional. An expression that filters the list of Specs. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string. The comparison operator must be one of: `<`, `>`, `:` or `=`. Filters are not case sensitive. The following fields in the `Spec` are eligible for filtering: * `display_name` - The display name of the Spec. Allowed comparison operators: `=`. * `create_time` - The time at which the Spec was created. The value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] format. Allowed comparison operators: `>` and `<`. * `spec_type.enum_values.values.id` - The allowed value id of the spec_type attribute associated with the Spec. Allowed comparison operators: `:`. * `spec_type.enum_values.values.display_name` - The allowed value display name of the spec_type attribute associated with the Spec. Allowed comparison operators: `:`. * `lint_response.json_values.values` - The json value of the lint_response attribute associated with the Spec. Allowed comparison operators: `:`. * `mime_type` - The MIME type of the Spec. Allowed comparison operators: `=`. Expressions are combined with either `AND` logic operator or `OR` logical operator but not both of them together i.e. only one of the `AND` or `OR` operator can be used throughout the filter string and both the operators cannot be used together. No other logical operators are supported. At most three filter fields are allowed in the filter string and if provided more than that then `INVALID_ARGUMENT` error is returned by the API. Here are a few examples: * `spec_type.enum_values.values.id: rest-id` - The filter string specifies that the id of the allowed value associated with the spec_type attribute is _rest-id_. * `spec_type.enum_values.values.display_name: \"Rest Display Name\"` - The filter string specifies that the display name of the allowed value associated with the spec_type attribute is `Rest Display Name`. * `spec_type.enum_values.values.id: grpc-id AND create_time < \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - The id of the allowed value associated with the spec_type attribute is _grpc-id_ and the spec was created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. * `spec_type.enum_values.values.id: rest-id OR spec_type.enum_values.values.id: grpc-id` - The id of the allowed value associated with the spec_type attribute is _rest-id_ or _grpc-id_.
Optional. The maximum number of specs to return. The service may return fewer than this value. If unspecified, at most 50 specs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
Optional. A page token, received from a previous `ListSpecs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSpecs` must match the call that provided the page token.
The [ListSpecs][google.cloud.apihub.v1.ApiHub.ListSpecs] method's response.
The specs corresponding to an API.
A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Update spec. The following fields in the [spec][google.cloud.apihub.v1.Spec] can be updated: * [display_name][google.cloud.apihub.v1.Spec.display_name] * [source_uri][google.cloud.apihub.v1.Spec.source_uri] * [lint_response][google.cloud.apihub.v1.Spec.lint_response] * [attributes][google.cloud.apihub.v1.Spec.attributes] * [contents][google.cloud.apihub.v1.Spec.contents] * [spec_type][google.cloud.apihub.v1.Spec.spec_type] 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][google.cloud.apihub.v1.UpdateSpecRequest.update_mask] should be used to specify the fields being updated.
The [UpdateSpec][google.cloud.apihub.v1.ApiHub.UpdateSpec] method's request.
Required. The spec to update. The spec's `name` field is used to identify the spec to update. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
Required. The list of fields to update.
Delete a spec. Deleting a spec will also delete the associated operations from the version.
The [DeleteSpec][google.cloud.apihub.v1.ApiHub.DeleteSpec] method's request.
Required. The name of the spec to delete. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
Get details about a particular operation in API version.
The [GetApiOperation][google.cloud.apihub.v1.ApiHub.GetApiOperation] method's request.
Required. The name of the operation to retrieve. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
List operations in an API version.
The [ListApiOperations][google.cloud.apihub.v1.ApiHub.ListApiOperations] method's request.
Required. The parent which owns this collection of operations i.e., the API version. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
Optional. An expression that filters the list of ApiOperations. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string or a boolean. The comparison operator must be one of: `<`, `>` or `=`. Filters are not case sensitive. The following fields in the `ApiOperation` are eligible for filtering: * `name` - The ApiOperation resource name. Allowed comparison operators: `=`. * `details.http_operation.path.path` - The http operation's complete path relative to server endpoint. Allowed comparison operators: `=`. * `details.http_operation.method` - The http operation method type. Allowed comparison operators: `=`. * `details.deprecated` - Indicates if the ApiOperation is deprecated. Allowed values are True / False indicating the deprycation status of the ApiOperation. Allowed comparison operators: `=`. * `create_time` - The time at which the ApiOperation was created. The value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] format. Allowed comparison operators: `>` and `<`. Expressions are combined with either `AND` logic operator or `OR` logical operator but not both of them together i.e. only one of the `AND` or `OR` operator can be used throughout the filter string and both the operators cannot be used together. No other logical operators are supported. At most three filter fields are allowed in the filter string and if provided more than that then `INVALID_ARGUMENT` error is returned by the API. Here are a few examples: * `details.deprecated = True` - The ApiOperation is deprecated. * `details.http_operation.method = GET AND create_time < \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - The method of the http operation of the ApiOperation is _GET_ and the spec was created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. * `details.http_operation.method = GET OR details.http_operation.method = POST`. - The http operation of the method of ApiOperation is _GET_ or _POST_.
Optional. The maximum number of operations to return. The service may return fewer than this value. If unspecified, at most 50 operations will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
Optional. A page token, received from a previous `ListApiOperations` call. Provide this to retrieve the subsequent page. When paginating, all other parameters (except page_size) provided to `ListApiOperations` must match the call that provided the page token.
The [ListApiOperations][google.cloud.apihub.v1.ApiHub.ListApiOperations] method's response.
The operations corresponding to an API version. Only following field will be populated in the response: name, spec, details.deprecated, details.http_operation.path.path, details.http_operation.method and details.documentation.external_uri.
A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Get details about a definition in an API version.
The [GetDefinition][google.cloud.apihub.v1.ApiHub.GetDefinition] method's request.
Required. The name of the definition to retrieve. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
Create a deployment resource in the API hub. Once a deployment resource is created, it can be associated with API versions.
The [CreateDeployment][google.cloud.apihub.v1.ApiHub.CreateDeployment] method's request.
Required. The parent resource for the deployment resource. Format: `projects/{project}/locations/{location}`
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]-_/.
Required. The deployment resource to create.
Get details about a deployment and the API versions linked to it.
The [GetDeployment][google.cloud.apihub.v1.ApiHub.GetDeployment] method's request.
Required. The name of the deployment resource to retrieve. Format: `projects/{project}/locations/{location}/deployments/{deployment}`
List deployment resources in the API hub.
The [ListDeployments][google.cloud.apihub.v1.ApiHub.ListDeployments] method's request.
Required. The parent, which owns this collection of deployment resources. Format: `projects/{project}/locations/{location}`
Optional. An expression that filters the list of Deployments. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string. The comparison operator must be one of: `<`, `>` or `=`. Filters are not case sensitive. The following fields in the `Deployments` are eligible for filtering: * `display_name` - The display name of the Deployment. Allowed comparison operators: `=`. * `create_time` - The time at which the Deployment was created. The value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] format. Allowed comparison operators: `>` and `<`. * `resource_uri` - A URI to the deployment resource. Allowed comparison operators: `=`. * `api_versions` - The API versions linked to this deployment. Allowed comparison operators: `:`. * `deployment_type.enum_values.values.id` - The allowed value id of the deployment_type attribute associated with the Deployment. Allowed comparison operators: `:`. * `deployment_type.enum_values.values.display_name` - The allowed value display name of the deployment_type attribute associated with the Deployment. Allowed comparison operators: `:`. * `slo.string_values.values` -The allowed string value of the slo attribute associated with the deployment. Allowed comparison operators: `:`. * `environment.enum_values.values.id` - The allowed value id of the environment attribute associated with the deployment. Allowed comparison operators: `:`. * `environment.enum_values.values.display_name` - The allowed value display name of the environment attribute associated with the deployment. Allowed comparison operators: `:`. Expressions are combined with either `AND` logic operator or `OR` logical operator but not both of them together i.e. only one of the `AND` or `OR` operator can be used throughout the filter string and both the operators cannot be used together. No other logical operators are supported. At most three filter fields are allowed in the filter string and if provided more than that then `INVALID_ARGUMENT` error is returned by the API. Here are a few examples: * `environment.enum_values.values.id: staging-id` - The allowed value id of the environment attribute associated with the Deployment is _staging-id_. * `environment.enum_values.values.display_name: \"Staging Deployment\"` - The allowed value display name of the environment attribute associated with the Deployment is `Staging Deployment`. * `environment.enum_values.values.id: production-id AND create_time < \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` - The allowed value id of the environment attribute associated with the Deployment is _production-id_ and Deployment was created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. * `environment.enum_values.values.id: production-id OR slo.string_values.values: \"99.99%\"` - The allowed value id of the environment attribute Deployment is _production-id_ or string value of the slo attribute is _99.99%_.
Optional. The maximum number of deployment resources to return. The service may return fewer than this value. If unspecified, at most 50 deployments will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
Optional. A page token, received from a previous `ListDeployments` call. Provide this to retrieve the subsequent page. When paginating, all other parameters (except page_size) provided to `ListDeployments` must match the call that provided the page token.
The [ListDeployments][google.cloud.apihub.v1.ApiHub.ListDeployments] method's response.
The deployment resources present in the API hub.
A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Update a deployment resource in the API hub. The following fields in the [deployment resource][google.cloud.apihub.v1.Deployment] can be updated: * [display_name][google.cloud.apihub.v1.Deployment.display_name] * [description][google.cloud.apihub.v1.Deployment.description] * [documentation][google.cloud.apihub.v1.Deployment.documentation] * [deployment_type][google.cloud.apihub.v1.Deployment.deployment_type] * [resource_uri][google.cloud.apihub.v1.Deployment.resource_uri] * [endpoints][google.cloud.apihub.v1.Deployment.endpoints] * [slo][google.cloud.apihub.v1.Deployment.slo] * [environment][google.cloud.apihub.v1.Deployment.environment] * [attributes][google.cloud.apihub.v1.Deployment.attributes] The [update_mask][google.cloud.apihub.v1.UpdateDeploymentRequest.update_mask] should be used to specify the fields being updated.
The [UpdateDeployment][google.cloud.apihub.v1.ApiHub.UpdateDeployment] method's request.
Required. The deployment resource to update. The deployment resource's `name` field is used to identify the deployment resource to update. Format: `projects/{project}/locations/{location}/deployments/{deployment}`
Required. The list of fields to update.
Delete a deployment resource in the API hub.
The [DeleteDeployment][google.cloud.apihub.v1.ApiHub.DeleteDeployment] method's request.
Required. The name of the deployment resource to delete. Format: `projects/{project}/locations/{location}/deployments/{deployment}`
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][google.cloud.apihub.v1.ApiHub.ListAttributes] method. Allowed values for the same can be updated via [UpdateAttribute][google.cloud.apihub.v1.ApiHub.UpdateAttribute] method.
The [CreateAttribute][google.cloud.apihub.v1.ApiHub.CreateAttribute] method's request.
Required. The parent resource for Attribute. Format: `projects/{project}/locations/{location}`
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]-_/.
Required. The attribute to create.
Get details about the attribute.
The [GetAttribute][google.cloud.apihub.v1.ApiHub.GetAttribute] method's request.
Required. The name of the attribute to retrieve. Format: `projects/{project}/locations/{location}/attributes/{attribute}`
Update the attribute. The following fields in the [Attribute resource][google.cloud.apihub.v1.Attribute] can be updated: * [display_name][google.cloud.apihub.v1.Attribute.display_name] The display name can be updated for user defined attributes only. * [description][google.cloud.apihub.v1.Attribute.description] The description can be updated for user defined attributes only. * [allowed_values][google.cloud.apihub.v1.Attribute.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][google.cloud.apihub.v1.Attribute.cardinality] The cardinality can be updated for user defined attributes only. Cardinality can only be increased during an update. The [update_mask][google.cloud.apihub.v1.UpdateAttributeRequest.update_mask] should be used to specify the fields being updated.
The [UpdateAttribute][google.cloud.apihub.v1.ApiHub.UpdateAttribute] method's request.
Required. The attribute to update. The attribute's `name` field is used to identify the attribute to update. Format: `projects/{project}/locations/{location}/attributes/{attribute}`
Required. The list of fields to update.
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.
The [DeleteAttribute][google.cloud.apihub.v1.ApiHub.DeleteAttribute] method's request.
Required. The name of the attribute to delete. Format: `projects/{project}/locations/{location}/attributes/{attribute}`
List all attributes.
The [ListAttributes][google.cloud.apihub.v1.ApiHub.ListAttributes] method's request.
Required. The parent resource for Attribute. Format: `projects/{project}/locations/{location}`
Optional. An expression that filters the list of Attributes. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string or a boolean. The comparison operator must be one of: `<`, `>` or `=`. Filters are not case sensitive. The following fields in the `Attribute` are eligible for filtering: * `display_name` - The display name of the Attribute. Allowed comparison operators: `=`. * `definition_type` - The definition type of the attribute. Allowed comparison operators: `=`. * `scope` - The scope of the attribute. Allowed comparison operators: `=`. * `data_type` - The type of the data of the attribute. Allowed comparison operators: `=`. * `mandatory` - Denotes whether the attribute is mandatory or not. Allowed comparison operators: `=`. * `create_time` - The time at which the Attribute was created. The value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] format. Allowed comparison operators: `>` and `<`. Expressions are combined with either `AND` logic operator or `OR` logical operator but not both of them together i.e. only one of the `AND` or `OR` operator can be used throughout the filter string and both the operators cannot be used together. No other logical operators are supported. At most three filter fields are allowed in the filter string and if provided more than that then `INVALID_ARGUMENT` error is returned by the API. Here are a few examples: * `display_name = production` - - The display name of the attribute is _production_. * `(display_name = production) AND (create_time < \"2021-08-15T14:50:00Z\") AND (create_time > \"2021-08-10T12:00:00Z\")` - The display name of the attribute is _production_ and the attribute was created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. * `display_name = production OR scope = api` - The attribute where the display name is _production_ or the scope is _api_.
Optional. The maximum number of attribute resources to return. The service may return fewer than this value. If unspecified, at most 50 attributes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
Optional. A page token, received from a previous `ListAttributes` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAttributes` must match the call that provided the page token.
The [ListAttributes][google.cloud.apihub.v1.ApiHub.ListAttributes] method's response.
The list of all attributes.
A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Search across API-Hub resources.
The [SearchResources][google.cloud.apihub.v1.ApiHub.SearchResources] method's request.
Required. The resource name of the location which will be of the type `projects/{project_id}/locations/{location_id}`. This field is used to identify the instance of API-Hub in which resources should be searched.
Required. The free text search query. This query can contain keywords which could be related to any detail of the API-Hub resources such display names, descriptions, attributes etc.
Optional. An expression that filters the list of search results. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string, a number, or a boolean. The comparison operator must be `=`. Filters are not case sensitive. The following field names are eligible for filtering: * `resource_type` - The type of resource in the search results. Must be one of the following: `Api`, `ApiOperation`, `Deployment`, `Definition`, `Spec` or `Version`. This field can only be specified once in the filter. Here are is an example: * `resource_type = Api` - The resource_type is _Api_.
Optional. The maximum number of search results to return. The service may return fewer than this value. If unspecified at most 10 search results will be returned. If value is negative then `INVALID_ARGUMENT` error is returned. The maximum value is 25; values above 25 will be coerced to 25. While paginating, you can specify a new page size parameter for each page of search results to be listed.
Optional. A page token, received from a previous [SearchResources][SearchResources] call. Specify this parameter to retrieve the next page of transactions. When paginating, you must specify the `page_token` parameter and all the other parameters except [page_size][google.cloud.apihub.v1.SearchResourcesRequest.page_size] should be specified with the same value which was used in the previous call. If the other fields are set with a different value than the previous call then `INVALID_ARGUMENT` error is returned.
Response for the [SearchResources][google.cloud.apihub.v1.ApiHub.SearchResources] method.
List of search results according to the filter and search query specified. The order of search results represents the ranking.
Pass this token in the [SearchResourcesRequest][google.cloud.apihub.v1.SearchResourcesRequest] to continue to list results. If all results have been returned, this field is an empty string or not present in the response.
Create an External API resource in the API hub.
The [CreateExternalApi][google.cloud.apihub.v1.ApiHub.CreateExternalApi] method's request.
Required. The parent resource for the External API resource. Format: `projects/{project}/locations/{location}`
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]-_/.
Required. The External API resource to create.
Get details about an External API resource in the API hub.
The [GetExternalApi][google.cloud.apihub.v1.ApiHub.GetExternalApi] method's request.
Required. The name of the External API resource to retrieve. Format: `projects/{project}/locations/{location}/externalApis/{externalApi}`
Update an External API resource in the API hub. The following fields can be updated: * [display_name][google.cloud.apihub.v1.ExternalApi.display_name] * [description][google.cloud.apihub.v1.ExternalApi.description] * [documentation][google.cloud.apihub.v1.ExternalApi.documentation] * [endpoints][google.cloud.apihub.v1.ExternalApi.endpoints] * [paths][google.cloud.apihub.v1.ExternalApi.paths] The [update_mask][google.cloud.apihub.v1.UpdateExternalApiRequest.update_mask] should be used to specify the fields being updated.
The [UpdateExternalApi][google.cloud.apihub.v1.ApiHub.UpdateExternalApi] method's request.
Required. The External API resource to update. The External API resource's `name` field is used to identify the External API resource to update. Format: `projects/{project}/locations/{location}/externalApis/{externalApi}`
Required. The list of fields to update.
Delete an External API resource in the API hub.
The [DeleteExternalApi][google.cloud.apihub.v1.ApiHub.DeleteExternalApi] method's request.
Required. The name of the External API resource to delete. Format: `projects/{project}/locations/{location}/externalApis/{externalApi}`
List External API resources in the API hub.
The [ListExternalApis][google.cloud.apihub.v1.ApiHub.ListExternalApis] method's request.
Required. The parent, which owns this collection of External API resources. Format: `projects/{project}/locations/{location}`
Optional. The maximum number of External API resources to return. The service may return fewer than this value. If unspecified, at most 50 ExternalApis will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
Optional. A page token, received from a previous `ListExternalApis` call. Provide this to retrieve the subsequent page. When paginating, all other parameters (except page_size) provided to `ListExternalApis` must match the call that provided the page token.
The [ListExternalApis][google.cloud.apihub.v1.ApiHub.ListExternalApis] method's response.
The External API resources present in the API hub. Only following fields will be populated in the response: name, display_name, documentation.external_uri.
A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
This service provides methods for various operations related to a [Dependency][google.cloud.apihub.v1.Dependency] in the API hub.
Create a dependency between two entities in the API hub.
The [CreateDependency][google.cloud.apihub.v1.ApiHubDependencies.CreateDependency] method's request.
Required. The parent resource for the dependency resource. Format: `projects/{project}/locations/{location}`
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]-_`.
Required. The dependency resource to create.
Get details about a dependency resource in the API hub.
The [GetDependency][.ApiHubDependencies.GetDependency] method's request.
Required. The name of the dependency resource to retrieve. Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
Update a dependency based on the [update_mask][google.cloud.apihub.v1.UpdateDependencyRequest.update_mask] provided in the request. The following fields in the [dependency][google.cloud.apihub.v1.Dependency] can be updated: * [description][google.cloud.apihub.v1.Dependency.description]
The [UpdateDependency][google.cloud.apihub.v1.ApiHubDependencies.UpdateDependency] method's request.
Required. The dependency resource to update. The dependency's `name` field is used to identify the dependency to update. Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
Required. The list of fields to update.
Delete the dependency resource.
The [DeleteDependency][google.cloud.apihub.v1.ApiHubDependencies.DeleteDependency] method's request.
Required. The name of the dependency resource to delete. Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
List dependencies based on the provided filter and pagination parameters.
The [ListDependencies][google.cloud.apihub.v1.ApiHubDependencies.ListDependencies] method's request.
Required. The parent which owns this collection of dependency resources. Format: `projects/{project}/locations/{location}`
Optional. An expression that filters the list of Dependencies. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string. Allowed comparison operator is `=`. Filters are not case sensitive. The following fields in the `Dependency` are eligible for filtering: * `consumer.operation_resource_name` - The operation resource name for the consumer entity involved in a dependency. Allowed comparison operators: `=`. * `consumer.external_api_resource_name` - The external api resource name for the consumer entity involved in a dependency. Allowed comparison operators: `=`. * `supplier.operation_resource_name` - The operation resource name for the supplier entity involved in a dependency. Allowed comparison operators: `=`. * `supplier.external_api_resource_name` - The external api resource name for the supplier entity involved in a dependency. Allowed comparison operators: `=`. Expressions are combined with either `AND` logic operator or `OR` logical operator but not both of them together i.e. only one of the `AND` or `OR` operator can be used throughout the filter string and both the operators cannot be used together. No other logical operators are supported. At most three filter fields are allowed in the filter string and if provided more than that then `INVALID_ARGUMENT` error is returned by the API. For example, `consumer.operation_resource_name = \"projects/p1/locations/global/apis/a1/versions/v1/operations/o1\" OR supplier.operation_resource_name = \"projects/p1/locations/global/apis/a1/versions/v1/operations/o1\"` - The dependencies with either consumer or supplier operation resource name as _projects/p1/locations/global/apis/a1/versions/v1/operations/o1_.
Optional. The maximum number of dependency resources to return. The service may return fewer than this value. If unspecified, at most 50 dependencies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
Optional. A page token, received from a previous `ListDependencies` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDependencies` must match the call that provided the page token.
The [ListDependencies][google.cloud.apihub.v1.ApiHubDependencies.ListDependencies] method's response.
The dependency resources present in the API hub. Only following field will be populated in the response: name.
A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
This service is used for managing plugins inside the API Hub.
Get details about an API Hub plugin.
The [GetPlugin][google.cloud.apihub.v1.ApiHubPlugin.GetPlugin] method's request.
Required. The name of the plugin to retrieve. Format: `projects/{project}/locations/{location}/plugins/{plugin}`.
Enables a plugin. The `state` of the plugin after enabling is `ENABLED`
The [EnablePlugin][google.cloud.apihub.v1.ApiHubPlugin.EnablePlugin] method's request.
Required. The name of the plugin to enable. Format: `projects/{project}/locations/{location}/plugins/{plugin}`.
Disables a plugin. The `state` of the plugin after disabling is `DISABLED`
The [DisablePlugin][google.cloud.apihub.v1.ApiHubPlugin.DisablePlugin] method's request.
Required. The name of the plugin to disable. Format: `projects/{project}/locations/{location}/plugins/{plugin}`.
This service is used for managing the host project registrations.
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.
The [CreateHostProjectRegistration][google.cloud.apihub.v1.HostProjectRegistrationService.CreateHostProjectRegistration] method's request.
Required. The parent resource for the host project. Format: `projects/{project}/locations/{location}`
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.
Required. The host project registration to register.
Get a host project registration.
The [GetHostProjectRegistration][google.cloud.apihub.v1.HostProjectRegistrationService.GetHostProjectRegistration] method's request.
Required. Host project registration resource name. projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration_id}
Lists host project registrations.
The [ListHostProjectRegistrations][google.cloud.apihub.v1.HostProjectRegistrationService.ListHostProjectRegistrations] method's request.
Required. The parent, which owns this collection of host projects. Format: `projects/*/locations/*`
Optional. The maximum number of host project registrations to return. The service may return fewer than this value. If unspecified, at most 50 host project registrations will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
Optional. A page token, received from a previous `ListHostProjectRegistrations` call. Provide this to retrieve the subsequent page. When paginating, all other parameters (except page_size) provided to `ListHostProjectRegistrations` must match the call that provided the page token.
Optional. An expression that filters the list of HostProjectRegistrations. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string. All standard operators as documented at https://google.aip.dev/160 are supported. The following fields in the `HostProjectRegistration` are eligible for filtering: * `name` - The name of the HostProjectRegistration. * `create_time` - The time at which the HostProjectRegistration was created. The value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] format. * `gcp_project` - The Google cloud project associated with the HostProjectRegistration.
Optional. Hint for how to order the results.
The [ListHostProjectRegistrations][google.cloud.apihub.v1.HostProjectRegistrationService.ListHostProjectRegistrations] method's response.
The list of host project registrations.
A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
This service provides all methods related to the 1p Linter.
Get the style guide being used for linting.
The [GetStyleGuide][ApiHub.GetStyleGuide] method's request.
Required. The name of the spec to retrieve. Format: `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`.
Update the styleGuide to be used for liniting in by API hub.
The [UpdateStyleGuide][ApiHub.UpdateStyleGuide] method's request.
Required. The Style guide resource to update.
Optional. The list of fields to update.
Get the contents of the style guide.
The [GetStyleGuideContents][ApiHub.GetStyleGuideContents] method's request.
Required. The name of the StyleGuide whose contents need to be retrieved. There is exactly one style guide resource per project per location. The expected format is `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`.
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.
The [LintSpec][ApiHub.LintSpec] method's request.
Required. The name of the spec to be linted. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
This service is used for managing the data plane provisioning of the API hub.
Provisions instance resources for the API Hub.
The [CreateApiHubInstance][google.cloud.apihub.v1.Provisioning.CreateApiHubInstance] method's request.
Required. The parent resource for the Api Hub instance resource. Format: `projects/{project}/locations/{location}`
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]-_/`.
Required. The ApiHub instance.
Gets details of a single API Hub instance.
The [GetApiHubInstance][google.cloud.apihub.v1.Provisioning.GetApiHubInstance] method's request.
Required. The name of the Api Hub instance to retrieve. Format: `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
Looks up an Api Hub instance in a given GCP project. There will always be only one Api Hub instance for a GCP project across all locations.
The [LookupApiHubInstance][google.cloud.apihub.v1.Provisioning.LookupApiHubInstance] method's request.
Required. There will always be only one Api Hub instance for a GCP project across all locations. The parent resource for the Api Hub instance resource. Format: `projects/{project}/locations/{location}`
The [LookupApiHubInstance][google.cloud.apihub.v1.Provisioning.LookupApiHubInstance] method's response.`
API Hub instance for a project if it exists, empty otherwise.
This service is used for managing the runtime project attachments.
Attaches a runtime project to the host project.
The [CreateRuntimeProjectAttachment][google.cloud.apihub.v1.RuntimeProjectAttachmentService.CreateRuntimeProjectAttachment] method's request.
Required. The parent resource for the Runtime Project Attachment. Format: `projects/{project}/locations/{location}`
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.
Required. The Runtime Project Attachment to create.
Gets a runtime project attachment.
The [GetRuntimeProjectAttachment][google.cloud.apihub.v1.RuntimeProjectAttachmentService.GetRuntimeProjectAttachment] method's request.
Required. The name of the API resource to retrieve. Format: `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}`
List runtime projects attached to the host project.
The [ListRuntimeProjectAttachments][google.cloud.apihub.v1.RuntimeProjectAttachmentService.ListRuntimeProjectAttachments] method's request.
Required. The parent, which owns this collection of runtime project attachments. Format: `projects/{project}/locations/{location}`
Optional. The maximum number of runtime project attachments to return. The service may return fewer than this value. If unspecified, at most 50 runtime project attachments will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
Optional. A page token, received from a previous `ListRuntimeProjectAttachments` call. Provide this to retrieve the subsequent page. When paginating, all other parameters (except page_size) provided to `ListRuntimeProjectAttachments` must match the call that provided the page token.
Optional. An expression that filters the list of RuntimeProjectAttachments. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string. All standard operators as documented at https://google.aip.dev/160 are supported. The following fields in the `RuntimeProjectAttachment` are eligible for filtering: * `name` - The name of the RuntimeProjectAttachment. * `create_time` - The time at which the RuntimeProjectAttachment was created. The value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] format. * `runtime_project` - The Google cloud project associated with the RuntimeProjectAttachment.
Optional. Hint for how to order the results.
The [ListRuntimeProjectAttachments][google.cloud.apihub.v1.RuntimeProjectAttachmentService.ListRuntimeProjectAttachments] method's response.
List of runtime project attachments.
A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Delete a runtime project attachment in the API Hub. This call will detach the runtime project from the host project.
The [DeleteRuntimeProjectAttachment][google.cloud.apihub.v1.RuntimeProjectAttachmentService.DeleteRuntimeProjectAttachment] method's request.
Required. The name of the Runtime Project Attachment to delete. Format: `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}`
Look up a runtime project attachment. This API can be called in the context of any project.
The [LookupRuntimeProjectAttachment][google.cloud.apihub.v1.RuntimeProjectAttachmentService.LookupRuntimeProjectAttachment] method's request.
Required. Runtime project ID to look up runtime project attachment for. Lookup happens across all regions. Expected format: `projects/{project}/locations/{location}`.
The [ListRuntimeProjectAttachments][google.cloud.apihub.v1.RuntimeProjectAttachmentService.ListRuntimeProjectAttachments] method's response.
Runtime project attachment for a project if exists, empty otherwise.
An API resource in the API Hub.
Used as response type in: ApiHub.CreateApi, ApiHub.GetApi, ApiHub.UpdateApi
Used as field type 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}`
An ApiHubInstance represents the instance resources of the API Hub. Currently, only one ApiHub instance is allowed for each project.
Used as response type in: Provisioning.GetApiHubInstance
Used as field type 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.
ApiHubResource is one of the resources such as Api, Operation, Deployment, Definition, Spec and Version resources stored in API-Hub.
Used in:
This represents Api resource in search results. Only name, display_name, description and owner fields are populated in search results.
This represents ApiOperation resource in search results. Only name, and description fields are populated in search results.
This represents Deployment resource in search results. Only name, display_name and description fields are populated in search results.
This represents Spec resource in search results. Only name, display_name and description fields are populated in search results.
This represents Definition resource in search results. Only name field is populated in search results.
This represents Version resource in search results. Only name, display_name and description fields are populated in search results.
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.
Used as response type in: ApiHub.GetApiOperation
Used as field type in:
,Identifier. The name of the operation. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
Output only. The name of the spec from where the operation was parsed. Format is `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
Output only. Operation details.
Output only. The time at which the operation was created.
Output only. The time at which the operation was last updated.
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.
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 as response type in: ApiHub.CreateAttribute, ApiHub.GetAttribute, ApiHub.UpdateAttribute
Used as field type 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 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.
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.
Used as response type in: ApiHub.GetDefinition
Used as field type in:
Output only. The value of a schema definition.
Identifier. The name of the definition. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
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}`
Output only. The type of the definition.
Output only. The time at which the definition was created.
Output only. The time at which the definition was last updated.
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.
Enumeration of definition types.
Used in:
Definition type unspecified.
Definition type schema.
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 as response type in: ApiHubDependencies.CreateDependency, ApiHubDependencies.GetDependency, ApiHubDependencies.UpdateDependency
Used as field type 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.
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.
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 as response type in: ApiHub.CreateDeployment, ApiHub.GetDeployment, ApiHub.UpdateDeployment
Used as field type 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.
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 as response type in: ApiHub.CreateExternalApi, ApiHub.GetExternalApi, ApiHub.UpdateExternalApi
Used as field type 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.
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 as response type in: HostProjectRegistrationService.CreateHostProjectRegistration, HostProjectRegistrationService.GetHostProjectRegistration
Used as field type 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 HTTP Operation.
Used in:
Output only. The path details for the Operation.
Output only. Operation method
Enumeration of Method types.
Used in:
Method unspecified.
Get Operation type.
Put Operation type.
Post Operation type.
Delete Operation type.
Options Operation type.
Head Operation type.
Patch Operation type.
Trace Operation type.
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.
The operation details parsed from the spec.
Used in:
The HTTP Operation.
Output only. Description of the operation behavior. For OpenAPI spec, this will map to `operation.description` in the spec, in case description is empty, `operation.summary` will be used.
Output only. Additional external documentation for this operation. For OpenAPI spec, this will map to `operation.documentation` in the spec.
Output only. For OpenAPI spec, this will be set if `operation.deprecated`is marked as `true` in the spec.
Represents the metadata of the long-running operation.
Output only. The time the operation was created.
Output only. The time the operation finished running.
Output only. Server-defined resource path for the target of the operation.
Output only. Name of the verb executed by the operation.
Output only. Human-readable status of the operation, if any.
Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
Output only. API version used to start the operation.
Owner details.
Used in:
,Optional. The name of the owner.
Required. The email of the owner.
The path details derived from the spec.
Used in:
Output only. Complete path relative to server endpoint.
Output only. A short description for the path applicable to all operations.
A plugin resource in the API Hub.
Used as response type in: ApiHubPlugin.DisablePlugin, ApiHubPlugin.EnablePlugin, ApiHubPlugin.GetPlugin
Identifier. The name of the plugin. Format: `projects/{project}/locations/{location}/plugins/{plugin}`
Required. The display name of the plugin. Max length is 50 characters (Unicode code points).
Required. The type of the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-plugin-type` attribute. The number of allowed 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 plugin description. Max length is 2000 characters (Unicode code points).
Output only. Represents the state of the plugin.
Possible states a plugin can have. Note that this enum may receive new values in the future. Consumers are advised to always code against the enum values expecting new states can be added later on.
Used in:
The default value. This value is used if the state is omitted.
The plugin is enabled.
The plugin is disabled.
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 as response type in: RuntimeProjectAttachmentService.CreateRuntimeProjectAttachment, RuntimeProjectAttachmentService.GetRuntimeProjectAttachment
Used as field type 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 schema details derived from the spec. Currently, this entity is supported for OpenAPI spec only. For OpenAPI spec, this maps to the schema defined in the `definitions` section for OpenAPI 2.0 version and in `components.schemas` section for OpenAPI 3.0 and 3.1 version.
Used in:
Output only. The display name of the schema. This will map to the name of the schema in the spec.
Output only. The raw value of the schema definition corresponding to the schema name in the spec.
Represents the search results.
Used in:
This represents the ApiHubResource. Note: Only selected fields of the resources are populated in response.
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 as response type in: ApiHub.CreateSpec, ApiHub.GetSpec, ApiHub.UpdateSpec
Used as field type 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.
Optional. Input only. The contents of the uploaded spec.
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.
Optional. Input only. Enum specifying the parsing mode for OpenAPI Specification (OAS) parsing.
Specifies the parsing mode for API specifications during creation and update. - `RELAXED`: Parsing errors in the specification content do not fail the API call. - `STRICT`: Parsing errors in the specification content result in failure of the API call. If not specified, defaults to `RELAXED`.
Used in:
Defaults to `RELAXED`.
Parsing of the Spec on create and update is relaxed, meaning that parsing errors the spec contents will not fail the API call.
Parsing of the Spec on create and update is strict, meaning that parsing errors in the spec contents will fail the API call.
The spec contents.
Used as response type in: ApiHub.GetSpecContents
Used as field type in:
Required. The contents of the spec.
Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
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.
Represents a singleton style guide resource to be used for linting Open API specs.
Used as response type in: LintingService.GetStyleGuide, LintingService.UpdateStyleGuide
Used as field type in:
Identifier. The name of the style guide. Format: `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`
Required. Target linter for the style guide.
Required. Input only. The contents of the uploaded style guide.
The style guide contents.
Used as response type in: LintingService.GetStyleGuideContents
Used as field type in:
Required. The contents of the style guide.
Required. The mime type of the content.
Represents a version of the API resource in API hub. This is also referred to as the API version.
Used as response type in: ApiHub.CreateVersion, ApiHub.GetVersion, ApiHub.UpdateVersion
Used as field type 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}`