Class: Google::Apis::CloudcommerceprocurementV1::Approval
- Inherits:
-
Object
- Object
- Google::Apis::CloudcommerceprocurementV1::Approval
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudcommerceprocurement_v1/classes.rb,
lib/google/apis/cloudcommerceprocurement_v1/representations.rb,
lib/google/apis/cloudcommerceprocurement_v1/representations.rb
Overview
An approval for some action on an account.
Instance Attribute Summary collapse
-
#name ⇒ String
Output only.
-
#reason ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#update_time ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Approval
constructor
A new instance of Approval.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Approval
Returns a new instance of Approval.
124 125 126 |
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 124 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Output only. The name of the approval.
Corresponds to the JSON property name
107 108 109 |
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 107 def name @name end |
#reason ⇒ String
Output only. An explanation for the state of the approval.
Corresponds to the JSON property reason
112 113 114 |
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 112 def reason @reason end |
#state ⇒ String
Output only. The state of the approval.
Corresponds to the JSON property state
117 118 119 |
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 117 def state @state end |
#update_time ⇒ String
Optional. The last update timestamp of the approval.
Corresponds to the JSON property updateTime
122 123 124 |
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 122 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
129 130 131 132 133 134 |
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 129 def update!(**args) @name = args[:name] if args.key?(:name) @reason = args[:reason] if args.key?(:reason) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) end |