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

Constructor Details

#initialize(**args) ⇒ DeviceFile

Returns a new instance of DeviceFile.



981
982
983
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 981

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)


964
965
966
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 964

def create_time
  @create_time
end

#download_urlString

File download URL Corresponds to the JSON property downloadUrl

Returns:

  • (String)


969
970
971
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 969

def download_url
  @download_url
end

#nameString

File name Corresponds to the JSON property name

Returns:

  • (String)


974
975
976
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 974

def name
  @name
end

#typeString

File type Corresponds to the JSON property type

Returns:

  • (String)


979
980
981
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 979

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



986
987
988
989
990
991
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 986

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