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.



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

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)


343
344
345
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 343

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)


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

def auto_approved
  @auto_approved
end

#expire_timeString

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

Returns:

  • (String)


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

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)


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

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



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

def signature_info
  @signature_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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