ApiOperation(mapping=None, *, ignore_unknown_fields=False, **kwargs)
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. Alternatively operations can be managed via create,update and delete APIs, creation of apiOperation can be possible only for version with no parsed operations and update/delete can be possible only for operations created via create API.
Attributes |
|
---|---|
Name | Description |
name |
str
Identifier. The name of the operation. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}
|
spec |
str
Output only. The name of the spec will be of the format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}
Note:The name of the spec will be empty if the operation is
created via
CreateApiOperation
API.
|
details |
google.cloud.apihub_v1.types.OperationDetails
Optional. Operation details. Note: Even though this field is optional, it is required for CreateApiOperation API and we will fail the request if not provided. |
create_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The time at which the operation was created. |
update_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The time at which the operation was last updated. |
attributes |
MutableMapping[str, google.cloud.apihub_v1.types.AttributeValues]
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: projects/{project}/locations/{location}/attributes/{attribute} .
The value is the attribute values associated with the
resource.
|
source_metadata |
MutableSequence[google.cloud.apihub_v1.types.SourceMetadata]
Output only. The list of sources and metadata from the sources of the API operation. |
Classes
AttributesEntry
AttributesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The abstract base class for a message.
Parameters | |
---|---|
Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |