Class: Google::Apis::DriveactivityV2::Owner

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/driveactivity_v2/classes.rb,
generated/google/apis/driveactivity_v2/representations.rb,
generated/google/apis/driveactivity_v2/representations.rb

Overview

Information about the owner of a Drive item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Owner

Returns a new instance of Owner.



984
985
986
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 984

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

Instance Attribute Details

#domainGoogle::Apis::DriveactivityV2::Domain

Information about a domain. Corresponds to the JSON property domain



967
968
969
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 967

def domain
  @domain
end

#driveGoogle::Apis::DriveactivityV2::DriveReference

A lightweight reference to a shared drive. Corresponds to the JSON property drive



972
973
974
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 972

def drive
  @drive
end

#team_driveGoogle::Apis::DriveactivityV2::TeamDriveReference

This item is deprecated; please see DriveReference instead. Corresponds to the JSON property teamDrive



977
978
979
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 977

def team_drive
  @team_drive
end

#userGoogle::Apis::DriveactivityV2::User

Information about an end user. Corresponds to the JSON property user



982
983
984
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 982

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



989
990
991
992
993
994
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 989

def update!(**args)
  @domain = args[:domain] if args.key?(:domain)
  @drive = args[:drive] if args.key?(:drive)
  @team_drive = args[:team_drive] if args.key?(:team_drive)
  @user = args[:user] if args.key?(:user)
end