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:
StringIdentifier. 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:
StringRequired. The display name of the API resource.
$msg->description()/$msg->description($value)Type:
StringOptional. 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:
StringOutput 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:
StringOptional. 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:
StringOptional. 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:
StringIdentifier. The name of the version.
Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The display name of the version.
$msg->description()/$msg->description($value)Type:
StringOptional. 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:
StringOutput 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:
StringOutput 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:
StringOutput 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:
StringOptional. 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:
StringOptional. 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:
StringIdentifier. The name of the spec.
Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. 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:
StringOptional. 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=>0RELAXED=>1STRICT=>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:
StringIdentifier. The name of the deployment.
Format: `projects/{project}/locations/{location}/deployments/{deployment}`
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The display name of the deployment.
$msg->description()/$msg->description($value)Type:
StringOptional. 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:
StringRequired. 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:
StringRequired. 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:
StringOutput 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:
StringOptional. 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:
StringOptional. 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:
StringIdentifier. The name of the operation.
Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
$msg->spec()/$msg->spec($value)Type:
StringOutput 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:
StringIdentifier. The name of the definition.
Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
$msg->spec()/$msg->spec($value)Type:
StringOutput 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=>0SCHEMA=>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:
StringIdentifier. The name of the attribute in the API Hub.
Format: `projects/{project}/locations/{location}/attributes/{attribute}`
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The display name of the attribute.
$msg->description()/$msg->description($value)Type:
StringOptional. 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:
Int32Optional. 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:
BoolOutput 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=>0SYSTEM_DEFINED=>1USER_DEFINED=>2
Enum: Attribute::Scope
SCOPE_UNSPECIFIED=>0API=>1VERSION=>2SPEC=>3API_OPERATION=>4DEPLOYMENT=>5DEPENDENCY=>6DEFINITION=>7EXTERNAL_API=>8PLUGIN=>9
Enum: Attribute::DataType
DATA_TYPE_UNSPECIFIED=>0ENUM=>1JSON=>2STRING=>3URI=>4
Google::Cloud::Apihub::V1::CommonFields::SpecContents
The spec contents.
Inherits from Protobuf::Message.
Accessors
$msg->contents()/$msg->contents($value)Type:
BytesRequired. The contents of the spec.
$msg->mime_type()/$msg->mime_type($value)Type:
StringRequired. 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:
StringOutput 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
$msg->format()/$msg->format($value)Type:
Enum(Google::Cloud::Apihub::V1::OpenApiSpecDetails::Format)Output only. The format of the spec.
$msg->version()/$msg->version($value)Type:
StringOutput only. The version in the spec. This maps to `info.version` in OpenAPI spec.
$msg->owner()/$msg->owner($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::Owner)Output only. Owner details for the spec. This maps to `info.contact` in OpenAPI spec.
Enum: OpenApiSpecDetails::Format
FORMAT_UNSPECIFIED=>0OPEN_API_SPEC_2_0=>1OPEN_API_SPEC_3_0=>2OPEN_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:
StringOptional. 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:
BoolOptional. 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=>0GET=>1PUT=>2POST=>3DELETE=>4OPTIONS=>5HEAD=>6PATCH=>7TRACE=>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:
StringOptional. 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:
StringOptional. 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:
StringOutput 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:
BytesOutput 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:
StringOptional. The name of the owner.
$msg->email()/$msg->email($value)Type:
StringRequired. 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:
StringOptional. The uri of the externally hosted documentation.
Google::Cloud::Apihub::V1::CommonFields::AttributeValues
The attribute values associated with resource.
Inherits from Protobuf::Message.
Accessors
$msg->enum_values()/$msg->enum_values($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::AttributeValues::EnumAttributeValues)The attribute values associated with a resource in case attribute data type is enum.
$msg->string_values()/$msg->string_values($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::AttributeValues::StringAttributeValues)The attribute values associated with a resource in case attribute data type is string.
$msg->json_values()/$msg->json_values($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::AttributeValues::StringAttributeValues)The attribute values associated with a resource in case attribute data type is JSON.
$msg->uri_values()/$msg->uri_values($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::AttributeValues::StringAttributeValues)The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
$msg->attribute()/$msg->attribute($value)Type:
StringOutput only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
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
$msg->name()/$msg->name($value)Type:
StringIdentifier. The name of the dependency in the API Hub.
Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
$msg->consumer()/$msg->consumer($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::DependencyEntityReference)Required. Immutable. The entity acting as the consumer in the dependency.
$msg->supplier()/$msg->supplier($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::DependencyEntityReference)Required. Immutable. The entity acting as the supplier in the dependency.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Apihub::V1::Dependency::State)Output only. State of the dependency.
$msg->description()/$msg->description($value)Type:
StringOptional. Human readable description corresponding of the dependency.
$msg->discovery_mode()/$msg->discovery_mode($value)Type:
Enum(Google::Cloud::Apihub::V1::Dependency::DiscoveryMode)Output only. Discovery mode of the dependency.
$msg->error_detail()/$msg->error_detail($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::DependencyErrorDetail)Output only. Error details of a dependency if the system has detected it internally.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which the dependency was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which the dependency was last updated.
$msg->attributes()/$msg->attributes($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::Dependency::AttributesEntry)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.
Enum: Dependency::State
STATE_UNSPECIFIED=>0PROPOSED=>1VALIDATED=>2
Enum: Dependency::DiscoveryMode
DISCOVERY_MODE_UNSPECIFIED=>0MANUAL=>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:
StringThe 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:
StringThe 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:
StringOutput only. Display name of the entity.
Google::Cloud::Apihub::V1::CommonFields::DependencyErrorDetail
Details describing error condition of a dependency.
Inherits from Protobuf::Message.
Accessors
$msg->error()/$msg->error($value)Type:
Enum(Google::Cloud::Apihub::V1::DependencyErrorDetail::Error)Optional. Error in the dependency.
$msg->error_time()/$msg->error_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. Timestamp at which the error was found.
Enum: DependencyErrorDetail::Error
ERROR_UNSPECIFIED=>0SUPPLIER_NOT_FOUND=>1SUPPLIER_RECREATED=>2
Google::Cloud::Apihub::V1::CommonFields::LintResponse
LintResponse contains the response from the linter.
Inherits from Protobuf::Message.
Accessors
$msg->issues()/$msg->issues($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::Issue)Optional. Array of issues found in the analyzed document.
$msg->summary()/$msg->summary($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::LintResponse::SummaryEntry)Optional. Summary of all issue types and counts for each severity level.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Apihub::V1::LintState)Required. Lint state represents success or failure for linting.
$msg->source()/$msg->source($value)Type:
StringRequired. Name of the linting application.
$msg->linter()/$msg->linter($value)Type:
Enum(Google::Cloud::Apihub::V1::Linter)Required. Name of the linter used.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Required. Timestamp when the linting response was generated.
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:
StringRequired. Rule code unique to each rule defined in linter.
$msg->path()/$msg->path($value)Type:
StringRequired. An array of strings indicating the location in the analyzed document where the rule was triggered.
$msg->message()/$msg->message($value)Type:
StringRequired. 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
$msg->start()/$msg->start($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::Point)Required. Start of the issue.
$msg->end()/$msg->end($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::Point)Required. End of the issue.
Google::Cloud::Apihub::V1::CommonFields::Point
Point within the file (line and character).
Inherits from Protobuf::Message.
Accessors
$msg->line()/$msg->line($value)Type:
Int32Required. Line number (zero-indexed).
$msg->character()/$msg->character($value)Type:
Int32Required. 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:
StringOutput only. Server-defined resource path for the target of the operation.
$msg->verb()/$msg->verb($value)Type:
StringOutput only. Name of the verb executed by the operation.
$msg->status_message()/$msg->status_message($value)Type:
StringOutput only. Human-readable status of the operation, if any.
$msg->requested_cancellation()/$msg->requested_cancellation($value)Type:
BoolOutput 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:
StringOutput 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:
StringIdentifier. 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:
StringOutput 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:
StringOptional. Description of the ApiHub instance.
Enum: ApiHubInstance::State
STATE_UNSPECIFIED=>0INACTIVE=>1CREATING=>2ACTIVE=>3UPDATING=>4DELETING=>5FAILED=>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:
StringIdentifier. Format: `projects/{project}/locations/{location}/externalApi/{externalApi}`.
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. Display name of the external API. Max length is 63 characters (Unicode Code Points).
$msg->description()/$msg->description($value)Type:
StringOptional. Description of the external API. Max length is 2000 characters (Unicode Code Points).
$msg->endpoints()/$msg->endpoints($value)Type:
StringOptional. List of endpoints on which this API is accessible.
$msg->paths()/$msg->paths($value)Type:
StringOptional. 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:
StringRequired. Id of the option.
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. Display name of the option.
$msg->description()/$msg->description($value)Type:
StringOptional. 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:
StringRequired. 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:
StringRequired. 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:
StringOptional. Description.
$msg->validation_regex()/$msg->validation_regex($value)Type:
StringOptional. Regular expression in RE2 syntax used for validating the `value` of a `ConfigVariable`.
$msg->required()/$msg->required($value)Type:
BoolOptional. 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=>0STRING=>1INT=>2BOOL=>3SECRET=>4ENUM=>5MULTI_SELECT=>6MULTI_STRING=>7MULTI_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:
StringOptional. The config variable value in case of config variable of type string.
$msg->int_value()/$msg->int_value($value)Type:
Int64Optional. The config variable value in case of config variable of type integer.
$msg->bool_value()/$msg->bool_value($value)Type:
BoolOptional. 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:
StringOutput 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:
StringRequired. 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
$msg->google_service_account_config()/$msg->google_service_account_config($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::GoogleServiceAccountConfig)Google Service Account.
$msg->user_password_config()/$msg->user_password_config($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::AuthConfig::UserPasswordConfig)User Password.
$msg->api_key_config()/$msg->api_key_config($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::AuthConfig::ApiKeyConfig)Api Key Config.
$msg->oauth2_client_credentials_config()/$msg->oauth2_client_credentials_config($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::AuthConfig::Oauth2ClientCredentialsConfig)Oauth2.0 Client Credentials.
$msg->auth_type()/$msg->auth_type($value)Type:
Enum(Google::Cloud::Apihub::V1::AuthType)Required. The authentication type.
Google::Cloud::Apihub::V1::CommonFields::SourceMetadata
SourceMetadata represents the metadata for a resource at the source.
Inherits from Protobuf::Message.
Accessors
$msg->plugin_instance_action_source()/$msg->plugin_instance_action_source($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::SourceMetadata::PluginInstanceActionSource)Output only. The source of the resource is a plugin instance action.
$msg->source_type()/$msg->source_type($value)Type:
Enum(Google::Cloud::Apihub::V1::SourceMetadata::SourceType)Output only. The type of the source.
$msg->original_resource_id()/$msg->original_resource_id($value)Type:
StringOutput only. The unique identifier of the resource at the source.
$msg->original_resource_create_time()/$msg->original_resource_create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which the resource was created at the source.
$msg->original_resource_update_time()/$msg->original_resource_update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which the resource was last updated at the source.
Enum: SourceMetadata::SourceType
SOURCE_TYPE_UNSPECIFIED=>0PLUGIN=>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:
StringIdentifier. 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:
StringOptional. 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:
StringOptional. 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:
StringOptional. The location of the observation source.
$msg->api_operation_count()/$msg->api_operation_count($value)Type:
Int64Optional. The number of observed API Operations.
$msg->origin()/$msg->origin($value)Type:
StringOptional. 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:
Int64Output only. The number of known API Operations.
$msg->unknown_operations_count()/$msg->unknown_operations_count($value)Type:
Int64Output 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=>0REST=>1GRPC=>2GRAPHQL=>3
Enum: DiscoveredApiObservation::SourceType
SOURCE_TYPE_UNSPECIFIED=>0GCP_XLB=>1GCP_ILB=>2
Google::Cloud::Apihub::V1::CommonFields::DiscoveredApiOperation
DiscoveredApiOperation represents an API Operation observed in one of the sources.
Inherits from Protobuf::Message.
Accessors
$msg->http_operation()/$msg->http_operation($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::HttpOperationDetails)Optional. An HTTP Operation.
$msg->name()/$msg->name($value)Type:
StringIdentifier. The name of the discovered API Operation.
Format: `projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation}`
$msg->first_seen_time()/$msg->first_seen_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. First seen time stamp
$msg->last_seen_time()/$msg->last_seen_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. Last seen time stamp
$msg->count()/$msg->count($value)Type:
Int64Optional. The number of occurrences of this API Operation.
$msg->classification()/$msg->classification($value)Type:
Enum(Google::Cloud::Apihub::V1::DiscoveredApiOperation::Classification)Output only. The classification of the discovered API operation.
$msg->match_results()/$msg->match_results($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::DiscoveredApiOperation::MatchResult)Output only. The list of matched results for the discovered API operation. This will be populated only if the classification is known. The current usecase is for a single match. Keeping it repeated to support multiple matches in future.
$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 api operation was collected.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Create time stamp of the discovered API operation in API Hub.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Update time stamp of the discovered API operation in API Hub.
Enum: DiscoveredApiOperation::Classification
CLASSIFICATION_UNSPECIFIED=>0KNOWN=>1UNKNOWN=>2
Google::Cloud::Apihub::V1::CommonFields::HttpOperationDetails
An HTTP-based API Operation, sometimes called a "REST" Operation.
Inherits from Protobuf::Message.
Accessors
$msg->http_operation()/$msg->http_operation($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::HttpOperation)Required. An HTTP Operation.
$msg->path_params()/$msg->path_params($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::HttpOperationDetails::PathParam)Optional. Path params of HttpOperation
$msg->query_params()/$msg->query_params($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::HttpOperationDetails::QueryParamsEntry)Optional. Query params of HttpOperation
$msg->request()/$msg->request($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::HttpOperationDetails::HttpRequest)Optional. Request metadata.
$msg->response()/$msg->response($value)Type:
Message(Google::Cloud::Apihub::V1::CommonFields::HttpOperationDetails::HttpResponse)Optional. Response metadata.
Enum: HttpOperationDetails::DataType
DATA_TYPE_UNSPECIFIED=>0BOOL=>1INTEGER=>2FLOAT=>3STRING=>4UUID=>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.