Resource: 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.
JSON representation |
---|
{ "name": string, "spec": string, "details": { object ( |
Fields | |
---|---|
name |
Identifier. The name of the operation. Format: |
spec |
Output only. The name of the spec from where the operation was parsed. Format is |
details |
Output only. Operation details. |
createTime |
Output only. The time at which the operation was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The time at which the operation was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
attributes |
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: An object containing a list of |
OperationDetails
The operation details parsed from the spec.
JSON representation |
---|
{ "description": string, "documentation": { object ( |
Fields | |
---|---|
description |
Output only. Description of the operation behavior. For OpenAPI spec, this will map to |
documentation |
Output only. Additional external documentation for this operation. For OpenAPI spec, this will map to |
deprecated |
Output only. For OpenAPI spec, this will be set if |
Union field
|
|
httpOperation |
The HTTP Operation. |
HttpOperation
The HTTP Operation.
JSON representation |
---|
{ "path": { object ( |
Fields | |
---|---|
path |
Output only. The path details for the Operation. |
method |
Output only. Operation method |
Path
The path details derived from the spec.
JSON representation |
---|
{ "path": string, "description": string } |
Fields | |
---|---|
path |
Output only. Complete path relative to server endpoint. |
description |
Output only. A short description for the path applicable to all operations. |
Method
Enumeration of Method types.
Enums | |
---|---|
METHOD_UNSPECIFIED |
Method unspecified. |
GET |
Get Operation type. |
PUT |
Put Operation type. |
POST |
Post Operation type. |
DELETE |
Delete Operation type. |
OPTIONS |
Options Operation type. |
HEAD |
Head Operation type. |
PATCH |
Patch Operation type. |
TRACE |
Trace Operation type. |
Methods |
|
---|---|
|
Get details about a particular operation in API version. |
|
List operations in an API version. |