Class: Google::Apis::DriveV3::AccessProposalRoleAndView

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

A wrapper for the role and view of an access proposal.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccessProposalRoleAndView

Returns a new instance of AccessProposalRoleAndView.



302
303
304
# File 'lib/google/apis/drive_v3/classes.rb', line 302

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

Instance Attribute Details

#roleString

The role that was proposed by the requester New values may be added in the future, but the following are currently possible: * writer * commenter * reader Corresponds to the JSON property role

Returns:

  • (String)


294
295
296
# File 'lib/google/apis/drive_v3/classes.rb', line 294

def role
  @role
end

#viewString

Indicates the view for this access proposal. Only populated for proposals that belong to a view. published is the only supported value. Corresponds to the JSON property view

Returns:

  • (String)


300
301
302
# File 'lib/google/apis/drive_v3/classes.rb', line 300

def view
  @view
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



307
308
309
310
# File 'lib/google/apis/drive_v3/classes.rb', line 307

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