Class: Google::Apis::DriveV3::ResolveAccessProposalRequest

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

Request message for resolving an AccessProposal on a file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResolveAccessProposalRequest

Returns a new instance of ResolveAccessProposalRequest.



3551
3552
3553
# File 'lib/google/apis/drive_v3/classes.rb', line 3551

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

Instance Attribute Details

#actionString

Required. The action to take on the access proposal. Corresponds to the JSON property action

Returns:

  • (String)


3528
3529
3530
# File 'lib/google/apis/drive_v3/classes.rb', line 3528

def action
  @action
end

#roleArray<String>

Optional. The roles that the approver has allowed, if any. For more information, see Roles and permissions. Note: This field is required for the ACCEPT action. Corresponds to the JSON property role

Returns:

  • (Array<String>)


3536
3537
3538
# File 'lib/google/apis/drive_v3/classes.rb', line 3536

def role
  @role
end

#send_notificationBoolean Also known as: send_notification?

Optional. Whether to send an email to the requester when the access proposal is denied or accepted. Corresponds to the JSON property sendNotification

Returns:

  • (Boolean)


3542
3543
3544
# File 'lib/google/apis/drive_v3/classes.rb', line 3542

def send_notification
  @send_notification
end

#viewString

Optional. Indicates the view for this access proposal. This should only be set when the proposal belongs to a view. Only published is supported. Corresponds to the JSON property view

Returns:

  • (String)


3549
3550
3551
# File 'lib/google/apis/drive_v3/classes.rb', line 3549

def view
  @view
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3556
3557
3558
3559
3560
3561
# File 'lib/google/apis/drive_v3/classes.rb', line 3556

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @role = args[:role] if args.key?(:role)
  @send_notification = args[:send_notification] if args.key?(:send_notification)
  @view = args[:view] if args.key?(:view)
end