Class: Google::Apis::DriveV3::Approval

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drive_v3/classes.rb,
lib/google/apis/drive_v3/representations.rb,
lib/google/apis/drive_v3/representations.rb

Overview

Metadata for an approval. An approval is a review/approve process for a Drive item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Approval

Returns a new instance of Approval.



620
621
622
# File 'lib/google/apis/drive_v3/classes.rb', line 620

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

Instance Attribute Details

#approval_idString

The Approval ID. Corresponds to the JSON property approvalId

Returns:

  • (String)


572
573
574
# File 'lib/google/apis/drive_v3/classes.rb', line 572

def approval_id
  @approval_id
end

#complete_timeString

Output only. The time the approval was completed. Corresponds to the JSON property completeTime

Returns:

  • (String)


577
578
579
# File 'lib/google/apis/drive_v3/classes.rb', line 577

def complete_time
  @complete_time
end

#create_timeString

Output only. The time the approval was created. Corresponds to the JSON property createTime

Returns:

  • (String)


582
583
584
# File 'lib/google/apis/drive_v3/classes.rb', line 582

def create_time
  @create_time
end

#due_timeString

The time that the approval is due. Corresponds to the JSON property dueTime

Returns:

  • (String)


587
588
589
# File 'lib/google/apis/drive_v3/classes.rb', line 587

def due_time
  @due_time
end

#initiatorGoogle::Apis::DriveV3::User

Information about a Drive user. Corresponds to the JSON property initiator



592
593
594
# File 'lib/google/apis/drive_v3/classes.rb', line 592

def initiator
  @initiator
end

#kindString

This is always drive#approval. Corresponds to the JSON property kind

Returns:

  • (String)


597
598
599
# File 'lib/google/apis/drive_v3/classes.rb', line 597

def kind
  @kind
end

#modify_timeString

Output only. The most recent time the approval was modified. Corresponds to the JSON property modifyTime

Returns:

  • (String)


602
603
604
# File 'lib/google/apis/drive_v3/classes.rb', line 602

def modify_time
  @modify_time
end

#reviewer_responsesArray<Google::Apis::DriveV3::ReviewerResponse>

The responses made on the Approval by reviewers. Corresponds to the JSON property reviewerResponses



607
608
609
# File 'lib/google/apis/drive_v3/classes.rb', line 607

def reviewer_responses
  @reviewer_responses
end

#statusString

Output only. The status of the approval at the time this resource was requested. Corresponds to the JSON property status

Returns:

  • (String)


613
614
615
# File 'lib/google/apis/drive_v3/classes.rb', line 613

def status
  @status
end

#target_file_idString

Target file id of the approval. Corresponds to the JSON property targetFileId

Returns:

  • (String)


618
619
620
# File 'lib/google/apis/drive_v3/classes.rb', line 618

def target_file_id
  @target_file_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



625
626
627
628
629
630
631
632
633
634
635
636
# File 'lib/google/apis/drive_v3/classes.rb', line 625

def update!(**args)
  @approval_id = args[:approval_id] if args.key?(:approval_id)
  @complete_time = args[:complete_time] if args.key?(:complete_time)
  @create_time = args[:create_time] if args.key?(:create_time)
  @due_time = args[:due_time] if args.key?(:due_time)
  @initiator = args[:initiator] if args.key?(:initiator)
  @kind = args[:kind] if args.key?(:kind)
  @modify_time = args[:modify_time] if args.key?(:modify_time)
  @reviewer_responses = args[:reviewer_responses] if args.key?(:reviewer_responses)
  @status = args[:status] if args.key?(:status)
  @target_file_id = args[:target_file_id] if args.key?(:target_file_id)
end