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.



372
373
374
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 372

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#approve_timeString

The time at which approval was granted. Corresponds to the JSON property approveTime

Returns:

  • (String)


349
350
351
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 349

def approve_time
  @approve_time
end

#auto_approvedBoolean Also known as: auto_approved?

True when the request has been auto-approved. Corresponds to the JSON property autoApproved

Returns:

  • (Boolean)


354
355
356
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 354

def auto_approved
  @auto_approved
end

#expire_timeString

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

Returns:

  • (String)


360
361
362
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 360

def expire_time
  @expire_time
end

#invalidate_timeString

If set, denotes the timestamp at which the approval is invalidated. Corresponds to the JSON property invalidateTime

Returns:

  • (String)


365
366
367
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 365

def invalidate_time
  @invalidate_time
end

#signature_infoGoogle::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