Class: Google::Apis::DriveactivityV2::Owner
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::Owner
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/driveactivity_v2/classes.rb,
lib/google/apis/driveactivity_v2/representations.rb,
lib/google/apis/driveactivity_v2/representations.rb
Overview
Information about the owner of a Drive item.
Instance Attribute Summary collapse
-
#domain ⇒ Google::Apis::DriveactivityV2::Domain
Information about a domain.
-
#drive ⇒ Google::Apis::DriveactivityV2::DriveReference
A lightweight reference to a shared drive.
-
#team_drive ⇒ Google::Apis::DriveactivityV2::TeamDriveReference
This item is deprecated; please see
DriveReferenceinstead. -
#user ⇒ Google::Apis::DriveactivityV2::User
Information about an end user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Owner
constructor
A new instance of Owner.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Owner
Returns a new instance of Owner.
1182 1183 1184 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1182 def initialize(**args) update!(**args) end |
Instance Attribute Details
#domain ⇒ Google::Apis::DriveactivityV2::Domain
Information about a domain.
Corresponds to the JSON property domain
1165 1166 1167 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1165 def domain @domain end |
#drive ⇒ Google::Apis::DriveactivityV2::DriveReference
A lightweight reference to a shared drive.
Corresponds to the JSON property drive
1170 1171 1172 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1170 def drive @drive end |
#team_drive ⇒ Google::Apis::DriveactivityV2::TeamDriveReference
This item is deprecated; please see DriveReference instead.
Corresponds to the JSON property teamDrive
1175 1176 1177 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1175 def team_drive @team_drive end |
#user ⇒ Google::Apis::DriveactivityV2::User
Information about an end user.
Corresponds to the JSON property user
1180 1181 1182 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1180 def user @user end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1187 1188 1189 1190 1191 1192 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1187 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 |