Class: Google::Apis::AccessapprovalV1::ApproveDecision
- Inherits:
-
Object
- Object
- Google::Apis::AccessapprovalV1::ApproveDecision
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/accessapproval_v1/classes.rb,
lib/google/apis/accessapproval_v1/representations.rb,
lib/google/apis/accessapproval_v1/representations.rb
Overview
A decision that has been made to approve access to a resource.
Instance Attribute Summary collapse
-
#approve_time ⇒ String
The time at which approval was granted.
-
#auto_approved ⇒ Boolean
(also: #auto_approved?)
True when the request has been auto-approved.
-
#expire_time ⇒ String
The time at which the approval expires.
-
#invalidate_time ⇒ String
If set, denotes the timestamp at which the approval is invalidated.
-
#signature_info ⇒ Google::Apis::AccessapprovalV1::SignatureInfo
Information about the digital signature of the resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApproveDecision
constructor
A new instance of ApproveDecision.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ApproveDecision
Returns a new instance of ApproveDecision.
372 373 374 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 372 def initialize(**args) update!(**args) end |
Instance Attribute Details
#approve_time ⇒ String
The time at which approval was granted.
Corresponds to the JSON property approveTime
349 350 351 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 349 def approve_time @approve_time end |
#auto_approved ⇒ Boolean Also known as: auto_approved?
True when the request has been auto-approved.
Corresponds to the JSON property autoApproved
354 355 356 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 354 def auto_approved @auto_approved end |
#expire_time ⇒ String
The time at which the approval expires.
Corresponds to the JSON property expireTime
360 361 362 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 360 def expire_time @expire_time end |
#invalidate_time ⇒ String
If set, denotes the timestamp at which the approval is invalidated.
Corresponds to the JSON property invalidateTime
365 366 367 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 365 def invalidate_time @invalidate_time end |
#signature_info ⇒ Google::Apis::AccessapprovalV1::SignatureInfo
Information about the digital signature of the resource.
Corresponds to the JSON property signatureInfo
370 371 372 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 370 def signature_info @signature_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
377 378 379 380 381 382 383 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 377 def update!(**args) @approve_time = args[:approve_time] if args.key?(:approve_time) @auto_approved = args[:auto_approved] if args.key?(:auto_approved) @expire_time = args[:expire_time] if args.key?(:expire_time) @invalidate_time = args[:invalidate_time] if args.key?(:invalidate_time) @signature_info = args[:signature_info] if args.key?(:signature_info) end |