Class: Google::Apis::AppsactivityV1::Target

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

Overview

Information about the object modified by the event.

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) ⇒ Target

Returns a new instance of Target



354
355
356
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 354

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

Instance Attribute Details

#idString

The ID of the target. For example, in Google Drive, this is the file or folder ID. Corresponds to the JSON property id

Returns:

  • (String)


341
342
343
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 341

def id
  @id
end

#mime_typeString

The MIME type of the target. Corresponds to the JSON property mimeType

Returns:

  • (String)


346
347
348
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 346

def mime_type
  @mime_type
end

#nameString

The name of the target. For example, in Google Drive, this is the title of the file. Corresponds to the JSON property name

Returns:

  • (String)


352
353
354
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 352

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



359
360
361
362
363
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 359

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
  @name = args[:name] if args.key?(:name)
end