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. For more information, see Roles and permissions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccessProposalRoleAndView

Returns a new instance of AccessProposalRoleAndView.



305
306
307
# File 'lib/google/apis/drive_v3/classes.rb', line 305

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

Instance Attribute Details

#roleString

The role that was proposed by the requester. The supported values are: * writer * commenter * reader Corresponds to the JSON property role

Returns:

  • (String)


297
298
299
# File 'lib/google/apis/drive_v3/classes.rb', line 297

def role
  @role
end

#viewString

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

Returns:

  • (String)


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

def view
  @view
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



310
311
312
313
# File 'lib/google/apis/drive_v3/classes.rb', line 310

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