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. For more information, see Roles and permissions.
Instance Attribute Summary collapse
-
#role ⇒ String
The role that was proposed by the requester.
-
#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.
305 306 307 |
# File 'lib/google/apis/drive_v3/classes.rb', line 305 def initialize(**args) update!(**args) end |
Instance Attribute Details
#role ⇒ String
The role that was proposed by the requester. The supported values are: *
writer * commenter * reader
Corresponds to the JSON property role
297 298 299 |
# File 'lib/google/apis/drive_v3/classes.rb', line 297 def role @role end |
#view ⇒ String
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
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 |