Class: Google::Apis::DriveV3::AccessProposal

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

The Access Proposal resource for outstanding access proposals on a file

Instance Attribute Summary collapse

Instance Method Summary collapse

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_timeString

The creation time Corresponds to the JSON property createTime

Returns:

  • (String)


237
238
239
# File 'lib/google/apis/drive_v3/classes.rb', line 237

def create_time
  @create_time
end

#file_idString

The file id that the proposal for access is on Corresponds to the JSON property fileId

Returns:

  • (String)


242
243
244
# File 'lib/google/apis/drive_v3/classes.rb', line 242

def file_id
  @file_id
end

#proposal_idString

The id of the access proposal Corresponds to the JSON property proposalId

Returns:

  • (String)


247
248
249
# File 'lib/google/apis/drive_v3/classes.rb', line 247

def proposal_id
  @proposal_id
end

#recipient_email_addressString

The email address of the user that will receive permissions if accepted Corresponds to the JSON property recipientEmailAddress

Returns:

  • (String)


252
253
254
# File 'lib/google/apis/drive_v3/classes.rb', line 252

def recipient_email_address
  @recipient_email_address
end

#request_messageString

The message that the requester added to the proposal Corresponds to the JSON property requestMessage

Returns:

  • (String)


257
258
259
# File 'lib/google/apis/drive_v3/classes.rb', line 257

def request_message
  @request_message
end

#requester_email_addressString

The email address of the requesting user Corresponds to the JSON property requesterEmailAddress

Returns:

  • (String)


262
263
264
# File 'lib/google/apis/drive_v3/classes.rb', line 262

def requester_email_address
  @requester_email_address
end

#roles_and_viewsArray<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