Class: Google::Apis::AlertcenterV1beta1::DriveFile

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

Overview

A Drive file

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

Returns a new instance of DriveFile.



816
817
818
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 816

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

Instance Attribute Details

#abuse_typeString

Abuse type of the file. Corresponds to the JSON property abuseType

Returns:

  • (String)


792
793
794
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 792

def abuse_type
  @abuse_type
end

#idString

The ID of the file. Corresponds to the JSON property id

Returns:

  • (String)


797
798
799
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 797

def id
  @id
end

#nameString

The name of the file. Corresponds to the JSON property name

Returns:

  • (String)


802
803
804
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 802

def name
  @name
end

#num_recent_downloadFixnum

The number of recent downloads of the file. This is available for the following alert types: *Drive malware sharing detected Corresponds to the JSON property numRecentDownload

Returns:

  • (Fixnum)


809
810
811
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 809

def num_recent_download
  @num_recent_download
end

#ownerString

The email address of the file owner. Corresponds to the JSON property owner

Returns:

  • (String)


814
815
816
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 814

def owner
  @owner
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



821
822
823
824
825
826
827
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 821

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