Class: Google::Apis::DriveV3::About::StorageQuota
- Inherits:
-
Object
- Object
- Google::Apis::DriveV3::About::StorageQuota
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/drive_v3/classes.rb,
generated/google/apis/drive_v3/representations.rb,
generated/google/apis/drive_v3/representations.rb
Overview
The user's storage quota limits and usage. All fields are measured in bytes.
Instance Attribute Summary collapse
-
#limit ⇒ Fixnum
The usage limit, if applicable.
-
#usage ⇒ Fixnum
The total usage across all services.
-
#usage_in_drive ⇒ Fixnum
The usage by all files in Google Drive.
-
#usage_in_drive_trash ⇒ Fixnum
The usage by trashed files in Google Drive.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StorageQuota
constructor
A new instance of StorageQuota.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StorageQuota
Returns a new instance of StorageQuota.
175 176 177 |
# File 'generated/google/apis/drive_v3/classes.rb', line 175 def initialize(**args) update!(**args) end |
Instance Attribute Details
#limit ⇒ Fixnum
The usage limit, if applicable. This will not be present if the user has
unlimited storage.
Corresponds to the JSON property limit
158 159 160 |
# File 'generated/google/apis/drive_v3/classes.rb', line 158 def limit @limit end |
#usage ⇒ Fixnum
The total usage across all services.
Corresponds to the JSON property usage
163 164 165 |
# File 'generated/google/apis/drive_v3/classes.rb', line 163 def usage @usage end |
#usage_in_drive ⇒ Fixnum
The usage by all files in Google Drive.
Corresponds to the JSON property usageInDrive
168 169 170 |
# File 'generated/google/apis/drive_v3/classes.rb', line 168 def usage_in_drive @usage_in_drive end |
#usage_in_drive_trash ⇒ Fixnum
The usage by trashed files in Google Drive.
Corresponds to the JSON property usageInDriveTrash
173 174 175 |
# File 'generated/google/apis/drive_v3/classes.rb', line 173 def usage_in_drive_trash @usage_in_drive_trash end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
180 181 182 183 184 185 |
# File 'generated/google/apis/drive_v3/classes.rb', line 180 def update!(**args) @limit = args[:limit] if args.key?(:limit) @usage = args[:usage] if args.key?(:usage) @usage_in_drive = args[:usage_in_drive] if args.key?(:usage_in_drive) @usage_in_drive_trash = args[:usage_in_drive_trash] if args.key?(:usage_in_drive_trash) end |