NAME

Google::Cloud::Apihub::V1::CommonFields - Compiled Protocol Buffers messages for google/cloud/apihub/v1/common_fields.proto

SYNOPSIS

use Google::Cloud::Apihub::V1::CommonFields;

my $msg = Google::Cloud::Apihub::V1::CommonFields::Api->new({
    name => $name,
    display_name => $display_name,
    description => $description,
    documentation => $documentation,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Apihub::V1::CommonFields::Api->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/apihub/v1/common_fields.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Apihub::V1::CommonFields::Api

An API resource in the API Hub.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

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

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

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Required. The display name of the API resource.

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. The description of the API resource.

  • $msg->documentation() / $msg->documentation($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Documentation)

    Optional. The documentation for the API resource.

  • $msg->owner() / $msg->owner($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Owner)

    Optional. Owner details for the API resource.

  • $msg->versions() / $msg->versions($value)

    Type: String

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

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

  • $msg->target_user() / $msg->target_user($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::AttributeValues)

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

  • $msg->team() / $msg->team($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::AttributeValues)

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

  • $msg->business_unit() / $msg->business_unit($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::AttributeValues)

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

  • $msg->maturity_level() / $msg->maturity_level($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::AttributeValues)

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

  • $msg->attributes() / $msg->attributes($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Api::AttributesEntry)

    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.

  • $msg->api_style() / $msg->api_style($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::AttributeValues)

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

  • $msg->selected_version() / $msg->selected_version($value)

    Type: String

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

  • $msg->api_requirements() / $msg->api_requirements($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::AttributeValues)

    Optional. The api requirement doc associated with the API resource. Carinality is 1 for this attribute. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-api-requirements` attribute. The value of the attribute should be a proper URI, and in case of Cloud Storage URI, it should point to a Cloud Storage object, not a directory.

  • $msg->fingerprint() / $msg->fingerprint($value)

    Type: String

    Optional. Fingerprint of the API resource.

  • $msg->source_metadata() / $msg->source_metadata($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::SourceMetadata)

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

  • $msg->api_functional_requirements() / $msg->api_functional_requirements($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::AttributeValues)

    Optional. The api functional requirements associated with the API resource. Carinality is 1 for this attribute. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-api-functional-requirements` attribute. The value of the attribute should be a proper URI, and in case of Cloud Storage URI, it should point to a Cloud Storage object, not a directory.

  • $msg->api_technical_requirements() / $msg->api_technical_requirements($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::AttributeValues)

    Optional. The api technical requirements associated with the API resource. Carinality is 1 for this attribute. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-api-technical-requirements` attribute. The value of the attribute should be a proper URI, and in case of Cloud Storage URI, it should point to a Cloud Storage object, not a directory.

Google::Cloud::Apihub::V1::CommonFields::Version

Represents a version of the API resource in API hub. This is also referred to as the API version.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The name of the version.

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

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Required. The display name of the version.

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. The description of the version.

  • $msg->documentation() / $msg->documentation($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Documentation)

    Optional. The documentation of the version.

  • $msg->specs() / $msg->specs($value)

    Type: String

    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}`

  • $msg->api_operations() / $msg->api_operations($value)

    Type: String

    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}`

  • $msg->definitions() / $msg->definitions($value)

    Type: String

    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}`

  • $msg->deployments() / $msg->deployments($value)

    Type: String

    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}`

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

  • $msg->lifecycle() / $msg->lifecycle($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::AttributeValues)

    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.

  • $msg->compliance() / $msg->compliance($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::AttributeValues)

    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.

  • $msg->accreditation() / $msg->accreditation($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::AttributeValues)

    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.

  • $msg->attributes() / $msg->attributes($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Version::AttributesEntry)

    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.

  • $msg->selected_deployment() / $msg->selected_deployment($value)

    Type: String

    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}`

  • $msg->source_metadata() / $msg->source_metadata($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::SourceMetadata)

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

Google::Cloud::Apihub::V1::CommonFields::Spec

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.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The name of the spec.

    Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Required. The display name of the spec. This can contain the file name of the spec.

  • $msg->spec_type() / $msg->spec_type($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::AttributeValues)

    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.

  • $msg->contents() / $msg->contents($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::SpecContents)

    Optional. Input only. The contents of the uploaded spec.

  • $msg->details() / $msg->details($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::SpecDetails)

    Output only. Details parsed from the spec.

  • $msg->source_uri() / $msg->source_uri($value)

    Type: String

    Optional. The URI of the spec source in case file is uploaded from an external version control system.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

  • $msg->lint_response() / $msg->lint_response($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::LintResponse)

    Optional. The lint response for the spec.

  • $msg->attributes() / $msg->attributes($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Spec::AttributesEntry)

    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.

  • $msg->documentation() / $msg->documentation($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Documentation)

    Optional. The documentation of the spec. For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI spec.

  • $msg->parsing_mode() / $msg->parsing_mode($value)

    Type: Enum (Google::Cloud::Apihub::V1::Spec::ParsingMode)

    Optional. Input only. Enum specifying the parsing mode for OpenAPI Specification (OAS) parsing.

  • $msg->source_metadata() / $msg->source_metadata($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::SourceMetadata)

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

Enum: Spec::ParsingMode

  • PARSING_MODE_UNSPECIFIED => 0

  • RELAXED => 1

  • STRICT => 2

Google::Cloud::Apihub::V1::CommonFields::Deployment

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

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The name of the deployment.

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

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Required. The display name of the deployment.

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. The description of the deployment.

  • $msg->documentation() / $msg->documentation($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Documentation)

    Optional. The documentation of the deployment.

  • $msg->deployment_type() / $msg->deployment_type($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::AttributeValues)

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

  • $msg->resource_uri() / $msg->resource_uri($value)

    Type: String

    Required. The resource URI identifies the deployment within its gateway. For Apigee gateways, its recommended to use the format: organizations/{org}/environments/{env}/apis/{api}. For ex: if a proxy with name `orders` is deployed in `staging` environment of `cymbal` organization, the resource URI would be: `organizations/cymbal/environments/staging/apis/orders`.

  • $msg->endpoints() / $msg->endpoints($value)

    Type: String

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

  • $msg->api_versions() / $msg->api_versions($value)

    Type: String

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

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

  • $msg->slo() / $msg->slo($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::AttributeValues)

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

  • $msg->environment() / $msg->environment($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::AttributeValues)

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

  • $msg->attributes() / $msg->attributes($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Deployment::AttributesEntry)

    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.

  • $msg->source_metadata() / $msg->source_metadata($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::SourceMetadata)

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

  • $msg->management_url() / $msg->management_url($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::AttributeValues)

    Optional. The uri where users can navigate to for the management of the deployment. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-management-url` The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. The value of the attribute should be a valid URL.

  • $msg->source_uri() / $msg->source_uri($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::AttributeValues)

    Optional. The uri where additional source specific information for this deployment can be found. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-source-uri` The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. The value of the attribute should be a valid URI, and in case of Cloud Storage URI, it should point to a Cloud Storage object, not a directory.

  • $msg->source_project() / $msg->source_project($value)

    Type: String

    Optional. The project to which the deployment belongs. For GCP gateways, this will refer to the project identifier. For others like Edge/OPDK, this will refer to the org identifier.

  • $msg->source_environment() / $msg->source_environment($value)

    Type: String

    Optional. The environment at source for the deployment. For example: prod, dev, staging, etc.

Google::Cloud::Apihub::V1::CommonFields::ApiOperation

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

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The name of the operation.

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

  • $msg->spec() / $msg->spec($value)

    Type: String

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

  • $msg->details() / $msg->details($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::OperationDetails)

    Optional. Operation details. Note: Even though this field is optional, it is required for [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation] API and we will fail the request if not provided.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

  • $msg->attributes() / $msg->attributes($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::ApiOperation::AttributesEntry)

    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.

  • $msg->source_metadata() / $msg->source_metadata($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::SourceMetadata)

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

Google::Cloud::Apihub::V1::CommonFields::Definition

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

Inherits from Protobuf::Message.

Accessors

  • $msg->schema() / $msg->schema($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Schema)

    Output only. The value of a schema definition.

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The name of the definition.

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

  • $msg->spec() / $msg->spec($value)

    Type: String

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

  • $msg->type() / $msg->type($value)

    Type: Enum (Google::Cloud::Apihub::V1::Definition::Type)

    Output only. The type of the definition.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

  • $msg->attributes() / $msg->attributes($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Definition::AttributesEntry)

    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.

Enum: Definition::Type

  • TYPE_UNSPECIFIED => 0

  • SCHEMA => 1

Google::Cloud::Apihub::V1::CommonFields::Attribute

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

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

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

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

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Required. The display name of the attribute.

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. The description of the attribute.

  • $msg->definition_type() / $msg->definition_type($value)

    Type: Enum (Google::Cloud::Apihub::V1::Attribute::DefinitionType)

    Output only. The definition type of the attribute.

  • $msg->scope() / $msg->scope($value)

    Type: Enum (Google::Cloud::Apihub::V1::Attribute::Scope)

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

  • $msg->data_type() / $msg->data_type($value)

    Type: Enum (Google::Cloud::Apihub::V1::Attribute::DataType)

    Required. The type of the data of the attribute.

  • $msg->allowed_values() / $msg->allowed_values($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Attribute::AllowedValue)

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

  • $msg->cardinality() / $msg->cardinality($value)

    Type: Int32

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

  • $msg->mandatory() / $msg->mandatory($value)

    Type: Bool

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

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

Enum: Attribute::DefinitionType

  • DEFINITION_TYPE_UNSPECIFIED => 0

  • SYSTEM_DEFINED => 1

  • USER_DEFINED => 2

Enum: Attribute::Scope

  • SCOPE_UNSPECIFIED => 0

  • API => 1

  • VERSION => 2

  • SPEC => 3

  • API_OPERATION => 4

  • DEPLOYMENT => 5

  • DEPENDENCY => 6

  • DEFINITION => 7

  • EXTERNAL_API => 8

  • PLUGIN => 9

Enum: Attribute::DataType

  • DATA_TYPE_UNSPECIFIED => 0

  • ENUM => 1

  • JSON => 2

  • STRING => 3

  • URI => 4

Google::Cloud::Apihub::V1::CommonFields::SpecContents

The spec contents.

Inherits from Protobuf::Message.

Accessors

  • $msg->contents() / $msg->contents($value)

    Type: Bytes

    Required. The contents of the spec.

  • $msg->mime_type() / $msg->mime_type($value)

    Type: String

    Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.

Google::Cloud::Apihub::V1::CommonFields::SpecDetails

SpecDetails contains the details parsed from supported spec types.

Inherits from Protobuf::Message.

Accessors

  • $msg->open_api_spec_details() / $msg->open_api_spec_details($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::OpenApiSpecDetails)

    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.

  • $msg->description() / $msg->description($value)

    Type: String

    Output only. The description of the spec.

Google::Cloud::Apihub::V1::CommonFields::OpenApiSpecDetails

OpenApiSpecDetails contains the details parsed from an OpenAPI spec in addition to the fields mentioned in [SpecDetails][google.cloud.apihub.v1.SpecDetails].

Inherits from Protobuf::Message.

Accessors

Enum: OpenApiSpecDetails::Format

  • FORMAT_UNSPECIFIED => 0

  • OPEN_API_SPEC_2_0 => 1

  • OPEN_API_SPEC_3_0 => 2

  • OPEN_API_SPEC_3_1 => 3

Google::Cloud::Apihub::V1::CommonFields::OperationDetails

The operation details parsed from the spec.

Inherits from Protobuf::Message.

Accessors

  • $msg->http_operation() / $msg->http_operation($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::HttpOperation)

    The HTTP Operation.

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. 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.

  • $msg->documentation() / $msg->documentation($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Documentation)

    Optional. Additional external documentation for this operation. For OpenAPI spec, this will map to `operation.documentation` in the spec.

  • $msg->deprecated() / $msg->deprecated($value)

    Type: Bool

    Optional. For OpenAPI spec, this will be set if `operation.deprecated`is marked as `true` in the spec.

Google::Cloud::Apihub::V1::CommonFields::HttpOperation

The HTTP Operation.

Inherits from Protobuf::Message.

Accessors

  • $msg->path() / $msg->path($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Path)

    Optional. The path details for the Operation. Note: Even though this field is optional, it is required for [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation] API and we will fail the request if not provided.

  • $msg->method() / $msg->method($value)

    Type: Enum (Google::Cloud::Apihub::V1::HttpOperation::Method)

    Optional. Operation method Note: Even though this field is optional, it is required for [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation] API and we will fail the request if not provided.

Enum: HttpOperation::Method

  • METHOD_UNSPECIFIED => 0

  • GET => 1

  • PUT => 2

  • POST => 3

  • DELETE => 4

  • OPTIONS => 5

  • HEAD => 6

  • PATCH => 7

  • TRACE => 8

Google::Cloud::Apihub::V1::CommonFields::Path

The path details derived from the spec.

Inherits from Protobuf::Message.

Accessors

  • $msg->path() / $msg->path($value)

    Type: String

    Optional. Complete path relative to server endpoint. Note: Even though this field is optional, it is required for [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation] API and we will fail the request if not provided.

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. A short description for the path applicable to all operations.

Google::Cloud::Apihub::V1::CommonFields::Schema

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.

Inherits from Protobuf::Message.

Accessors

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Output only. The display name of the schema. This will map to the name of the schema in the spec.

  • $msg->raw_value() / $msg->raw_value($value)

    Type: Bytes

    Output only. The raw value of the schema definition corresponding to the schema name in the spec.

Google::Cloud::Apihub::V1::CommonFields::Owner

Owner details.

Inherits from Protobuf::Message.

Accessors

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Optional. The name of the owner.

  • $msg->email() / $msg->email($value)

    Type: String

    Required. The email of the owner.

Google::Cloud::Apihub::V1::CommonFields::Documentation

Documentation details.

Inherits from Protobuf::Message.

Accessors

  • $msg->external_uri() / $msg->external_uri($value)

    Type: String

    Optional. The uri of the externally hosted documentation.

Google::Cloud::Apihub::V1::CommonFields::AttributeValues

The attribute values associated with resource.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Apihub::V1::CommonFields::Dependency

A dependency resource defined in the API hub describes a dependency directed from a consumer to a supplier entity. A dependency can be defined between two [Operations][google.cloud.apihub.v1.ApiOperation] or between an [Operation][google.cloud.apihub.v1.ApiOperation] and [External API][google.cloud.apihub.v1.ExternalApi].

Inherits from Protobuf::Message.

Accessors

Enum: Dependency::State

  • STATE_UNSPECIFIED => 0

  • PROPOSED => 1

  • VALIDATED => 2

Enum: Dependency::DiscoveryMode

  • DISCOVERY_MODE_UNSPECIFIED => 0

  • MANUAL => 1

Google::Cloud::Apihub::V1::CommonFields::DependencyEntityReference

Reference to an entity participating in a dependency.

Inherits from Protobuf::Message.

Accessors

  • $msg->operation_resource_name() / $msg->operation_resource_name($value)

    Type: String

    The resource name of an operation in the API Hub.

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

  • $msg->external_api_resource_name() / $msg->external_api_resource_name($value)

    Type: String

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

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

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Output only. Display name of the entity.

Google::Cloud::Apihub::V1::CommonFields::DependencyErrorDetail

Details describing error condition of a dependency.

Inherits from Protobuf::Message.

Accessors

Enum: DependencyErrorDetail::Error

  • ERROR_UNSPECIFIED => 0

  • SUPPLIER_NOT_FOUND => 1

  • SUPPLIER_RECREATED => 2

Google::Cloud::Apihub::V1::CommonFields::LintResponse

LintResponse contains the response from the linter.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Apihub::V1::CommonFields::Issue

Issue contains the details of a single issue found by the linter.

Inherits from Protobuf::Message.

Accessors

  • $msg->code() / $msg->code($value)

    Type: String

    Required. Rule code unique to each rule defined in linter.

  • $msg->path() / $msg->path($value)

    Type: String

    Required. An array of strings indicating the location in the analyzed document where the rule was triggered.

  • $msg->message() / $msg->message($value)

    Type: String

    Required. Human-readable message describing the issue found by the linter.

  • $msg->severity() / $msg->severity($value)

    Type: Enum (Google::Cloud::Apihub::V1::Severity)

    Required. Severity level of the rule violation.

  • $msg->range() / $msg->range($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Range)

    Required. Object describing where in the file the issue was found.

Google::Cloud::Apihub::V1::CommonFields::Range

Object describing where in the file the issue was found.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Apihub::V1::CommonFields::Point

Point within the file (line and character).

Inherits from Protobuf::Message.

Accessors

  • $msg->line() / $msg->line($value)

    Type: Int32

    Required. Line number (zero-indexed).

  • $msg->character() / $msg->character($value)

    Type: Int32

    Required. Character position within the line (zero-indexed).

Google::Cloud::Apihub::V1::CommonFields::OperationMetadata

Represents the metadata of the long-running operation.

Inherits from Protobuf::Message.

Accessors

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the operation was created.

  • $msg->end_time() / $msg->end_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the operation finished running.

  • $msg->target() / $msg->target($value)

    Type: String

    Output only. Server-defined resource path for the target of the operation.

  • $msg->verb() / $msg->verb($value)

    Type: String

    Output only. Name of the verb executed by the operation.

  • $msg->status_message() / $msg->status_message($value)

    Type: String

    Output only. Human-readable status of the operation, if any.

  • $msg->requested_cancellation() / $msg->requested_cancellation($value)

    Type: Bool

    Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.

  • $msg->api_version() / $msg->api_version($value)

    Type: String

    Output only. API version used to start the operation.

Google::Cloud::Apihub::V1::CommonFields::ApiHubInstance

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

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

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

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Creation timestamp.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Last update timestamp.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Apihub::V1::ApiHubInstance::State)

    Output only. The current state of the ApiHub instance.

  • $msg->state_message() / $msg->state_message($value)

    Type: String

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

  • $msg->config() / $msg->config($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::ApiHubInstance::Config)

    Required. Config of the ApiHub instance.

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::ApiHubInstance::LabelsEntry)

    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

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. Description of the ApiHub instance.

Enum: ApiHubInstance::State

  • STATE_UNSPECIFIED => 0

  • INACTIVE => 1

  • CREATING => 2

  • ACTIVE => 3

  • UPDATING => 4

  • DELETING => 5

  • FAILED => 6

Google::Cloud::Apihub::V1::CommonFields::ExternalApi

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.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. Format: `projects/{project}/locations/{location}/externalApi/{externalApi}`.

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Required. Display name of the external API. Max length is 63 characters (Unicode Code Points).

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. Description of the external API. Max length is 2000 characters (Unicode Code Points).

  • $msg->endpoints() / $msg->endpoints($value)

    Type: String

    Optional. List of endpoints on which this API is accessible.

  • $msg->paths() / $msg->paths($value)

    Type: String

    Optional. List of paths served by this API.

  • $msg->documentation() / $msg->documentation($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Documentation)

    Optional. Documentation of the external API.

  • $msg->attributes() / $msg->attributes($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::ExternalApi::AttributesEntry)

    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.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Creation timestamp.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Last update timestamp.

Google::Cloud::Apihub::V1::CommonFields::ConfigValueOption

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

Inherits from Protobuf::Message.

Accessors

  • $msg->id() / $msg->id($value)

    Type: String

    Required. Id of the option.

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Required. Display name of the option.

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. Description of the option.

Google::Cloud::Apihub::V1::CommonFields::Secret

Secret provides a reference to entries in Secret Manager.

Inherits from Protobuf::Message.

Accessors

  • $msg->secret_version() / $msg->secret_version($value)

    Type: String

    Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.

Google::Cloud::Apihub::V1::CommonFields::ConfigVariableTemplate

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

Inherits from Protobuf::Message.

Accessors

  • $msg->id() / $msg->id($value)

    Type: String

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

  • $msg->value_type() / $msg->value_type($value)

    Type: Enum (Google::Cloud::Apihub::V1::ConfigVariableTemplate::ValueType)

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

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. Description.

  • $msg->validation_regex() / $msg->validation_regex($value)

    Type: String

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

  • $msg->required() / $msg->required($value)

    Type: Bool

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

  • $msg->enum_options() / $msg->enum_options($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::ConfigValueOption)

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

  • $msg->multi_select_options() / $msg->multi_select_options($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::ConfigValueOption)

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

Enum: ConfigVariableTemplate::ValueType

  • VALUE_TYPE_UNSPECIFIED => 0

  • STRING => 1

  • INT => 2

  • BOOL => 3

  • SECRET => 4

  • ENUM => 5

  • MULTI_SELECT => 6

  • MULTI_STRING => 7

  • MULTI_INT => 8

Google::Cloud::Apihub::V1::CommonFields::ConfigVariable

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

Inherits from Protobuf::Message.

Accessors

  • $msg->string_value() / $msg->string_value($value)

    Type: String

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

  • $msg->int_value() / $msg->int_value($value)

    Type: Int64

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

  • $msg->bool_value() / $msg->bool_value($value)

    Type: Bool

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

  • $msg->secret_value() / $msg->secret_value($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Secret)

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

  • $msg->enum_value() / $msg->enum_value($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::ConfigValueOption)

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

  • $msg->multi_select_values() / $msg->multi_select_values($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::ConfigVariable::MultiSelectValues)

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

  • $msg->multi_string_values() / $msg->multi_string_values($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::ConfigVariable::MultiStringValues)

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

  • $msg->multi_int_values() / $msg->multi_int_values($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::ConfigVariable::MultiIntValues)

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

  • $msg->key() / $msg->key($value)

    Type: String

    Output only. Key will be the [id][google.cloud.apihub.v1.ConfigVariableTemplate.id] to uniquely identify the config variable.

Google::Cloud::Apihub::V1::CommonFields::GoogleServiceAccountConfig

Config for Google service account authentication.

Inherits from Protobuf::Message.

Accessors

  • $msg->service_account() / $msg->service_account($value)

    Type: String

    Required. The service account to be used for authenticating request.

    The `iam.serviceAccounts.getAccessToken` permission should be granted on this service account to the impersonator service account.

Google::Cloud::Apihub::V1::CommonFields::AuthConfig

AuthConfig represents the authentication information.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Apihub::V1::CommonFields::SourceMetadata

SourceMetadata represents the metadata for a resource at the source.

Inherits from Protobuf::Message.

Accessors

Enum: SourceMetadata::SourceType

  • SOURCE_TYPE_UNSPECIFIED => 0

  • PLUGIN => 1

Google::Cloud::Apihub::V1::CommonFields::DiscoveredApiObservation

Respresents an API Observation observed in one of the sources.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The name of the discovered API Observation.

    Format: `projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}`

  • $msg->style() / $msg->style($value)

    Type: Enum (Google::Cloud::Apihub::V1::DiscoveredApiObservation::Style)

    Optional. Style of ApiObservation

  • $msg->server_ips() / $msg->server_ips($value)

    Type: String

    Optional. The IP address (IPv4 or IPv6) of the origin server that the request was sent to. This field can include port information. Examples: `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.

  • $msg->hostname() / $msg->hostname($value)

    Type: String

    Optional. The hostname of requests processed for this Observation.

  • $msg->last_event_detected_time() / $msg->last_event_detected_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Optional. Last event detected time stamp

  • $msg->source_locations() / $msg->source_locations($value)

    Type: String

    Optional. The location of the observation source.

  • $msg->api_operation_count() / $msg->api_operation_count($value)

    Type: Int64

    Optional. The number of observed API Operations.

  • $msg->origin() / $msg->origin($value)

    Type: String

    Optional. For an observation pushed from a gcp resource, this would be the gcp project id.

  • $msg->source_types() / $msg->source_types($value)

    Type: Enum (Google::Cloud::Apihub::V1::DiscoveredApiObservation::SourceType)

    Optional. The type of the source from which the observation was collected.

  • $msg->known_operations_count() / $msg->known_operations_count($value)

    Type: Int64

    Output only. The number of known API Operations.

  • $msg->unknown_operations_count() / $msg->unknown_operations_count($value)

    Type: Int64

    Output only. The number of unknown API Operations.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Create time stamp of the observation in API Hub.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Update time stamp of the observation in API Hub.

  • $msg->source_metadata() / $msg->source_metadata($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::SourceMetadata)

    Output only. The metadata of the source from which the observation was collected.

Enum: DiscoveredApiObservation::Style

  • STYLE_UNSPECIFIED => 0

  • REST => 1

  • GRPC => 2

  • GRAPHQL => 3

Enum: DiscoveredApiObservation::SourceType

  • SOURCE_TYPE_UNSPECIFIED => 0

  • GCP_XLB => 1

  • GCP_ILB => 2

Google::Cloud::Apihub::V1::CommonFields::DiscoveredApiOperation

DiscoveredApiOperation represents an API Operation observed in one of the sources.

Inherits from Protobuf::Message.

Accessors

Enum: DiscoveredApiOperation::Classification

  • CLASSIFICATION_UNSPECIFIED => 0

  • KNOWN => 1

  • UNKNOWN => 2

Google::Cloud::Apihub::V1::CommonFields::HttpOperationDetails

An HTTP-based API Operation, sometimes called a "REST" Operation.

Inherits from Protobuf::Message.

Accessors

Enum: HttpOperationDetails::DataType

  • DATA_TYPE_UNSPECIFIED => 0

  • BOOL => 1

  • INTEGER => 2

  • FLOAT => 3

  • STRING => 4

  • UUID => 5

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Apihub::V1::CommonFields::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.