Class: Google::Apis::DriveV3::AccessProposalRoleAndView
- Inherits:
-
Object
- Object
- Google::Apis::DriveV3::AccessProposalRoleAndView
- 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
-
#role ⇒ String
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 propertyrole
. -
#view ⇒ String
Indicates the view for this access proposal.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccessProposalRoleAndView
constructor
A new instance of AccessProposalRoleAndView.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#role ⇒ String
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
294 295 296 |
# File 'lib/google/apis/drive_v3/classes.rb', line 294 def role @role end |
#view ⇒ String
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
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 |