Class: Google::Apis::AlertcenterV1beta1::DriveFile
- Inherits:
-
Object
- Object
- Google::Apis::AlertcenterV1beta1::DriveFile
- 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
-
#abuse_type ⇒ String
Abuse type of the file.
-
#id ⇒ String
The ID of the file.
-
#name ⇒ String
The name of the file.
-
#num_recent_download ⇒ Fixnum
The number of recent downloads of the file.
-
#owner ⇒ String
The email address of the file owner.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DriveFile
constructor
A new instance of DriveFile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_type ⇒ String
Abuse type of the file.
Corresponds to the JSON property abuseType
792 793 794 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 792 def abuse_type @abuse_type end |
#id ⇒ String
The ID of the file.
Corresponds to the JSON property id
797 798 799 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 797 def id @id end |
#name ⇒ String
The name of the file.
Corresponds to the JSON property name
802 803 804 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 802 def name @name end |
#num_recent_download ⇒ Fixnum
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
809 810 811 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 809 def num_recent_download @num_recent_download end |
#owner ⇒ String
The email address of the file owner.
Corresponds to the JSON property owner
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 |