Reference documentation and code samples for the Google Cloud Api Hub V1 Client class Version.
Represents a version of the API resource in API hub. This is also referred to as the API version.
Generated from protobuf message google.cloud.apihub.v1.Version
Namespace
Google \ Cloud \ ApiHub \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The name of the version. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}
↳ display_name
string
Required. The display name of the version.
↳ description
string
Optional. The description of the version.
↳ documentation
↳ specs
array
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}
↳ api_operations
array
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}
↳ definitions
array
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}
↳ deployments
array
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}
↳ create_time
↳ update_time
↳ lifecycle
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.
↳ compliance
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.
↳ accreditation
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.
↳ attributes
array| Google\Protobuf\Internal\MapField
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.
↳ selected_deployment
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}
↳ source_metadata
array< SourceMetadata
>
Output only. The list of sources and metadata from the sources of the version.
getName
Identifier. The name of the version.
Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}
string
setName
Identifier. The name of the version.
Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}
var
string
$this
getDisplayName
Required. The display name of the version.
string
setDisplayName
Required. The display name of the version.
var
string
$this
getDescription
Optional. The description of the version.
string
setDescription
Optional. The description of the version.
var
string
$this
getDocumentation
Optional. The documentation of the version.
hasDocumentation
clearDocumentation
setDocumentation
Optional. The documentation of the version.
$this
getSpecs
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}
setSpecs
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}
var
string[]
$this
getApiOperations
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}
setApiOperations
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}
var
string[]
$this
getDefinitions
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}
setDefinitions
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}
var
string[]
$this
getDeployments
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}
setDeployments
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}
var
string[]
$this
getCreateTime
Output only. The time at which the version was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time at which the version was created.
$this
getUpdateTime
Output only. The time at which the version was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The time at which the version was last updated.
$this
getLifecycle
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.
hasLifecycle
clearLifecycle
setLifecycle
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.
$this
getCompliance
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.
hasCompliance
clearCompliance
setCompliance
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.
$this
getAccreditation
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.
hasAccreditation
clearAccreditation
setAccreditation
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.
$this
getAttributes
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.
setAttributes
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.
$this
getSelectedDeployment
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}
string
setSelectedDeployment
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}
var
string
$this
getSourceMetadata
Output only. The list of sources and metadata from the sources of the version.
setSourceMetadata
Output only. The list of sources and metadata from the sources of the version.
$this

