Reference documentation and code samples for the Google Cloud Api Hub V1 Client class Api.
An API resource in the API Hub.
Generated from protobuf message google.cloud.apihub.v1.Api
Namespace
Google \ Cloud \ ApiHub \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The name of the API resource in the API Hub. Format: projects/{project}/locations/{location}/apis/{api}
↳ display_name
string
Required. The display name of the API resource.
↳ description
string
Optional. The description of the API resource.
↳ documentation
↳ owner
↳ versions
array
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}
↳ create_time
↳ update_time
↳ target_user
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.
↳ team
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.
↳ business_unit
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.
↳ maturity_level
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.
↳ attributes
array| Google\Protobuf\Internal\MapField
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.
↳ api_style
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.
↳ selected_version
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}
getName
Identifier. The name of the API resource in the API Hub.
Format: projects/{project}/locations/{location}/apis/{api}
string
setName
Identifier. The name of the API resource in the API Hub.
Format: projects/{project}/locations/{location}/apis/{api}
var
string
$this
getDisplayName
Required. The display name of the API resource.
string
setDisplayName
Required. The display name of the API resource.
var
string
$this
getDescription
Optional. The description of the API resource.
string
setDescription
Optional. The description of the API resource.
var
string
$this
getDocumentation
Optional. The documentation for the API resource.
hasDocumentation
clearDocumentation
setDocumentation
Optional. The documentation for the API resource.
$this
getOwner
Optional. Owner details for the API resource.
hasOwner
clearOwner
setOwner
Optional. Owner details for the API resource.
$this
getVersions
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}
setVersions
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}
var
string[]
$this
getCreateTime
Output only. The time at which the API resource was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time at which the API resource was created.
$this
getUpdateTime
Output only. The time at which the API resource was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The time at which the API resource was last updated.
$this
getTargetUser
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.
hasTargetUser
clearTargetUser
setTargetUser
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.
$this
getTeam
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.
hasTeam
clearTeam
setTeam
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.
$this
getBusinessUnit
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.
hasBusinessUnit
clearBusinessUnit
setBusinessUnit
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.
$this
getMaturityLevel
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.
hasMaturityLevel
clearMaturityLevel
setMaturityLevel
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.
$this
getAttributes
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.
setAttributes
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.
$this
getApiStyle
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.
hasApiStyle
clearApiStyle
setApiStyle
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.
$this
getSelectedVersion
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}
string
setSelectedVersion
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}
var
string
$this

