Class: Google::Apis::AccessapprovalV1::ApproveDecision

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApproveDecision

Returns a new instance of ApproveDecision.



317
318
319
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 317

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

Returns:

  • (String)


299
300
301
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 299

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

Returns:

  • (Boolean)


304
305
306
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 304

def auto_approved
  @auto_approved
end

#expire_time ⇒ String

The time at which the approval expires. Corresponds to the JSON property expireTime

Returns:

  • (String)


310
311
312
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 310

def expire_time
  @expire_time
end

#signature_info ⇒ Google::Apis::AccessapprovalV1::SignatureInfo

Information about the digital signature of the resource. Corresponds to the JSON property signatureInfo



315
316
317
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 315

def signature_info
  @signature_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



322
323
324
325
326
327
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 322

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)
  @signature_info = args[:signature_info] if args.key?(:signature_info)
end