Class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::DeviceFile

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

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

Returns a new instance of DeviceFile.



938
939
940
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 938

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

Instance Attribute Details

#create_timeDateTime

Date and time the file was created Corresponds to the JSON property createTime

Returns:

  • (DateTime)


921
922
923
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 921

def create_time
  @create_time
end

#download_urlString

File download URL Corresponds to the JSON property downloadUrl

Returns:

  • (String)


926
927
928
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 926

def download_url
  @download_url
end

#nameString

File name Corresponds to the JSON property name

Returns:

  • (String)


931
932
933
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 931

def name
  @name
end

#typeString

File type Corresponds to the JSON property type

Returns:

  • (String)


936
937
938
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 936

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



943
944
945
946
947
948
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 943

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