Class: Google::Apis::DriveV3::AccessProposal
- Inherits:
-
Object
- Object
- Google::Apis::DriveV3::AccessProposal
- 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
The Access Proposal resource for outstanding access proposals on a file
Instance Attribute Summary collapse
-
#create_time ⇒ String
The creation time Corresponds to the JSON property
createTime
. -
#file_id ⇒ String
The file id that the proposal for access is on Corresponds to the JSON property
fileId
. -
#proposal_id ⇒ String
The id of the access proposal Corresponds to the JSON property
proposalId
. -
#recipient_email_address ⇒ String
The email address of the user that will receive permissions if accepted Corresponds to the JSON property
recipientEmailAddress
. -
#request_message ⇒ String
The message that the requester added to the proposal Corresponds to the JSON property
requestMessage
. -
#requester_email_address ⇒ String
The email address of the requesting user Corresponds to the JSON property
requesterEmailAddress
. -
#roles_and_views ⇒ Array<Google::Apis::DriveV3::AccessProposalRoleAndView>
A wrapper for the role and view of an access proposal.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccessProposal
constructor
A new instance of AccessProposal.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccessProposal
Returns a new instance of AccessProposal.
269 270 271 |
# File 'lib/google/apis/drive_v3/classes.rb', line 269 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
The creation time
Corresponds to the JSON property createTime
237 238 239 |
# File 'lib/google/apis/drive_v3/classes.rb', line 237 def create_time @create_time end |
#file_id ⇒ String
The file id that the proposal for access is on
Corresponds to the JSON property fileId
242 243 244 |
# File 'lib/google/apis/drive_v3/classes.rb', line 242 def file_id @file_id end |
#proposal_id ⇒ String
The id of the access proposal
Corresponds to the JSON property proposalId
247 248 249 |
# File 'lib/google/apis/drive_v3/classes.rb', line 247 def proposal_id @proposal_id end |
#recipient_email_address ⇒ String
The email address of the user that will receive permissions if accepted
Corresponds to the JSON property recipientEmailAddress
252 253 254 |
# File 'lib/google/apis/drive_v3/classes.rb', line 252 def recipient_email_address @recipient_email_address end |
#request_message ⇒ String
The message that the requester added to the proposal
Corresponds to the JSON property requestMessage
257 258 259 |
# File 'lib/google/apis/drive_v3/classes.rb', line 257 def @request_message end |
#requester_email_address ⇒ String
The email address of the requesting user
Corresponds to the JSON property requesterEmailAddress
262 263 264 |
# File 'lib/google/apis/drive_v3/classes.rb', line 262 def requester_email_address @requester_email_address end |
#roles_and_views ⇒ Array<Google::Apis::DriveV3::AccessProposalRoleAndView>
A wrapper for the role and view of an access proposal.
Corresponds to the JSON property rolesAndViews
267 268 269 |
# File 'lib/google/apis/drive_v3/classes.rb', line 267 def roles_and_views @roles_and_views end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
274 275 276 277 278 279 280 281 282 |
# File 'lib/google/apis/drive_v3/classes.rb', line 274 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @file_id = args[:file_id] if args.key?(:file_id) @proposal_id = args[:proposal_id] if args.key?(:proposal_id) @recipient_email_address = args[:recipient_email_address] if args.key?(:recipient_email_address) @request_message = args[:request_message] if args.key?(:request_message) @requester_email_address = args[:requester_email_address] if args.key?(:requester_email_address) @roles_and_views = args[:roles_and_views] if args.key?(:roles_and_views) end |