Class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::DeviceFile
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::ChromeOsDevice::DeviceFile
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb
Instance Attribute Summary collapse
-
#create_time ⇒ DateTime
Date and time the file was created Corresponds to the JSON property
createTime. -
#download_url ⇒ String
File download URL Corresponds to the JSON property
downloadUrl. -
#name ⇒ String
File name Corresponds to the JSON property
name. -
#type ⇒ String
File type Corresponds to the JSON property
type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeviceFile
constructor
A new instance of DeviceFile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeviceFile
Returns a new instance of DeviceFile.
1230 1231 1232 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1230 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ DateTime
Date and time the file was created
Corresponds to the JSON property createTime
1213 1214 1215 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1213 def create_time @create_time end |
#download_url ⇒ String
File download URL
Corresponds to the JSON property downloadUrl
1218 1219 1220 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1218 def download_url @download_url end |
#name ⇒ String
File name
Corresponds to the JSON property name
1223 1224 1225 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1223 def name @name end |
#type ⇒ String
File type
Corresponds to the JSON property type
1228 1229 1230 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1228 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1235 1236 1237 1238 1239 1240 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1235 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @download_url = args[:download_url] if args.key?(:download_url) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end |