Class: Google::Apis::ServicemanagementV1::FlowOperationMetadata
- Inherits:
-
Object
- Object
- Google::Apis::ServicemanagementV1::FlowOperationMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicemanagement_v1/classes.rb,
generated/google/apis/servicemanagement_v1/representations.rb,
generated/google/apis/servicemanagement_v1/representations.rb
Overview
The metadata associated with a long running operation resource.
Instance Attribute Summary collapse
-
#cancel_state ⇒ String
The state of the operation with respect to cancellation.
-
#deadline ⇒ String
Deadline for the flow to complete, to prevent orphaned Operations.
-
#flow_name ⇒ String
The name of the top-level flow corresponding to this operation.
-
#resource_names ⇒ Array<String>
The full name of the resources that this flow is directly associated with.
-
#start_time ⇒ String
The start time of the operation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FlowOperationMetadata
constructor
A new instance of FlowOperationMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FlowOperationMetadata
Returns a new instance of FlowOperationMetadata
1544 1545 1546 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 1544 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cancel_state ⇒ String
The state of the operation with respect to cancellation.
Corresponds to the JSON property cancelState
1514 1515 1516 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 1514 def cancel_state @cancel_state end |
#deadline ⇒ String
Deadline for the flow to complete, to prevent orphaned Operations.
If the flow has not completed by this time, it may be terminated by
the engine, or force-failed by Operation lookup.
Note that this is not a hard deadline after which the Flow will
definitely be failed, rather it is a deadline after which it is reasonable
to suspect a problem and other parts of the system may kill operation
to ensure we don't have orphans.
see also: go/prevent-orphaned-operations
Corresponds to the JSON property deadline
1526 1527 1528 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 1526 def deadline @deadline end |
#flow_name ⇒ String
The name of the top-level flow corresponding to this operation.
Must be equal to the "name" field for a FlowName enum.
Corresponds to the JSON property flowName
1532 1533 1534 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 1532 def flow_name @flow_name end |
#resource_names ⇒ Array<String>
The full name of the resources that this flow is directly associated with.
Corresponds to the JSON property resourceNames
1537 1538 1539 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 1537 def resource_names @resource_names end |
#start_time ⇒ String
The start time of the operation.
Corresponds to the JSON property startTime
1542 1543 1544 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 1542 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1549 1550 1551 1552 1553 1554 1555 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 1549 def update!(**args) @cancel_state = args[:cancel_state] if args.key?(:cancel_state) @deadline = args[:deadline] if args.key?(:deadline) @flow_name = args[:flow_name] if args.key?(:flow_name) @resource_names = args[:resource_names] if args.key?(:resource_names) @start_time = args[:start_time] if args.key?(:start_time) end |