Reference documentation and code samples for the Google Cloud Api Hub V1 Client class DiscoveredApiOperation.
DiscoveredApiOperation represents an API Operation observed in one of the sources.
Generated from protobuf message google.cloud.apihub.v1.DiscoveredApiOperation
Namespace
Google \ Cloud \ ApiHub \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ http_operation |
HttpOperationDetails
Optional. An HTTP Operation. |
↳ name |
string
Identifier. The name of the discovered API Operation. Format: |
↳ first_seen_time |
Google\Protobuf\Timestamp
Optional. First seen time stamp |
↳ last_seen_time |
Google\Protobuf\Timestamp
Optional. Last seen time stamp |
↳ count |
int|string
Optional. The number of occurrences of this API Operation. |
↳ classification |
int
Output only. The classification of the discovered API operation. |
↳ match_results |
array<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. |
↳ source_metadata |
SourceMetadata
Output only. The metadata of the source from which the api operation was collected. |
↳ create_time |
Google\Protobuf\Timestamp
Output only. Create time stamp of the discovered API operation in API Hub. |
↳ update_time |
Google\Protobuf\Timestamp
Output only. Update time stamp of the discovered API operation in API Hub. |
getHttpOperation
Optional. An HTTP Operation.
Returns | |
---|---|
Type | Description |
HttpOperationDetails|null |
hasHttpOperation
setHttpOperation
Optional. An HTTP Operation.
Parameter | |
---|---|
Name | Description |
var |
HttpOperationDetails
|
Returns | |
---|---|
Type | Description |
$this |
getName
Identifier. The name of the discovered API Operation.
Format:
projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation}
Returns | |
---|---|
Type | Description |
string |
setName
Identifier. The name of the discovered API Operation.
Format:
projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation}
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getFirstSeenTime
Optional. First seen time stamp
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasFirstSeenTime
clearFirstSeenTime
setFirstSeenTime
Optional. First seen time stamp
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getLastSeenTime
Optional. Last seen time stamp
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasLastSeenTime
clearLastSeenTime
setLastSeenTime
Optional. Last seen time stamp
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getCount
Optional. The number of occurrences of this API Operation.
Returns | |
---|---|
Type | Description |
int|string |
setCount
Optional. The number of occurrences of this API Operation.
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getClassification
Output only. The classification of the discovered API operation.
Returns | |
---|---|
Type | Description |
int |
Enum of type Classification. |
setClassification
Output only. The classification of the discovered API operation.
Parameter | |
---|---|
Name | Description |
var |
int
Enum of type Classification. |
Returns | |
---|---|
Type | Description |
$this |
getMatchResults
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.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setMatchResults
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.
Parameter | |
---|---|
Name | Description |
var |
array<DiscoveredApiOperation\MatchResult>
|
Returns | |
---|---|
Type | Description |
$this |
getSourceMetadata
Output only. The metadata of the source from which the api operation was collected.
Returns | |
---|---|
Type | Description |
SourceMetadata|null |
hasSourceMetadata
clearSourceMetadata
setSourceMetadata
Output only. The metadata of the source from which the api operation was collected.
Parameter | |
---|---|
Name | Description |
var |
SourceMetadata
|
Returns | |
---|---|
Type | Description |
$this |
getCreateTime
Output only. Create time stamp of the discovered API operation in API Hub.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasCreateTime
clearCreateTime
setCreateTime
Output only. Create time stamp of the discovered API operation in API Hub.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getUpdateTime
Output only. Update time stamp of the discovered API operation in API Hub.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Update time stamp of the discovered API operation in API Hub.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getOperation
Returns | |
---|---|
Type | Description |
string |