- Resource: DiscoveredApiOperation
- HttpOperationDetails
- PathParam
- DataType
- QueryParam
- HttpRequest
- Header
- HttpResponse
- Classification
- MatchResult
- Methods
Resource: DiscoveredApiOperation
DiscoveredApiOperation represents an API Operation observed in one of the sources.
| JSON representation |
|---|
{ "name": string, "firstSeenTime": string, "lastSeenTime": string, "count": string, "classification": enum ( |
| Fields | |
|---|---|
name |
Identifier. The name of the discovered API Operation. Format: |
firstSeenTime |
Optional. First seen time stamp Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
lastSeenTime |
Optional. Last seen time stamp Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
count |
Optional. The number of occurrences of this API Operation. |
classification |
Output only. The classification of the discovered API operation. |
matchResults[] |
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. |
sourceMetadata |
Output only. The metadata of the source from which the api operation was collected. |
createTime |
Output only. Create time stamp of the discovered API operation in API Hub. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. Update time stamp of the discovered API operation in API Hub. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Union field operation. ApiOperation protocol style operation can be only one of the following: |
|
httpOperation |
Optional. An HTTP Operation. |
HttpOperationDetails
An HTTP-based API Operation, sometimes called a "REST" Operation.
| JSON representation |
|---|
{ "httpOperation": { object ( |
| Fields | |
|---|---|
httpOperation |
Required. An HTTP Operation. |
pathParams[] |
Optional. Path params of HttpOperation |
queryParams |
Optional. Query params of HttpOperation An object containing a list of |
request |
Optional. Request metadata. |
response |
Optional. Response metadata. |
PathParam
HTTP Path parameter.
| JSON representation |
|---|
{
"position": integer,
"dataType": enum ( |
| Fields | |
|---|---|
position |
Optional. Segment location in the path, 1-indexed |
dataType |
Optional. Data type of path param |
DataType
Type of data
| Enums | |
|---|---|
DATA_TYPE_UNSPECIFIED |
Unspecified data type |
BOOL |
Boolean data type |
INTEGER |
Integer data type |
FLOAT |
Float data type |
STRING |
String data type |
UUID |
UUID data type |
QueryParam
An aggregation of HTTP query parameter occurrences.
| JSON representation |
|---|
{
"name": string,
"count": string,
"dataType": enum ( |
| Fields | |
|---|---|
name |
Required. Name of query param |
count |
Optional. The number of occurrences of this query parameter across transactions. |
dataType |
Optional. Data type of path param |
HttpRequest
An aggregation of HTTP requests.
| JSON representation |
|---|
{
"headers": {
string: {
object ( |
| Fields | |
|---|---|
headers |
Optional. Unordered map from header name to header metadata An object containing a list of |
Header
An aggregation of HTTP header occurrences.
| JSON representation |
|---|
{
"name": string,
"count": string,
"dataType": enum ( |
| Fields | |
|---|---|
name |
Header name. |
count |
The number of occurrences of this Header across transactions. |
dataType |
Data type of header |
HttpResponse
An aggregation of HTTP responses.
| JSON representation |
|---|
{
"headers": {
string: {
object ( |
| Fields | |
|---|---|
headers |
Optional. Unordered map from header name to header metadata An object containing a list of |
responseCodes |
Optional. Map of status code to observed count An object containing a list of |
Classification
The classification of the discovered API operation.
| Enums | |
|---|---|
CLASSIFICATION_UNSPECIFIED |
Operation is not classified as known or unknown. |
KNOWN |
Operation has a matched catalog operation. |
UNKNOWN |
Operation does not have a matched catalog operation. |
MatchResult
MatchResult represents the result of matching a discovered API operation with a catalog API operation.
| JSON representation |
|---|
{ "name": string } |
| Fields | |
|---|---|
name |
Output only. The name of the matched API Operation. Format: |
Methods |
|
|---|---|
|
Gets a DiscoveredAPIOperation in a given project, location, ApiObservation and ApiOperation. |
|
Lists all the DiscoveredAPIOperations in a given project, location and ApiObservation. |