Class: Google::Apis::DriveV2::File::ImageMediaMetadata

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

Overview

Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.

Defined Under Namespace

Classes: Location

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImageMediaMetadata

Returns a new instance of ImageMediaMetadata.



2742
2743
2744
# File 'lib/google/apis/drive_v2/classes.rb', line 2742

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

Instance Attribute Details

#apertureFloat

The aperture used to create the photo (f-number). Corresponds to the JSON property aperture

Returns:

  • (Float)


2637
2638
2639
# File 'lib/google/apis/drive_v2/classes.rb', line 2637

def aperture
  @aperture
end

#camera_makeString

The make of the camera used to create the photo. Corresponds to the JSON property cameraMake

Returns:

  • (String)


2642
2643
2644
# File 'lib/google/apis/drive_v2/classes.rb', line 2642

def camera_make
  @camera_make
end

#camera_modelString

The model of the camera used to create the photo. Corresponds to the JSON property cameraModel

Returns:

  • (String)


2647
2648
2649
# File 'lib/google/apis/drive_v2/classes.rb', line 2647

def camera_model
  @camera_model
end

#color_spaceString

The color space of the photo. Corresponds to the JSON property colorSpace

Returns:

  • (String)


2652
2653
2654
# File 'lib/google/apis/drive_v2/classes.rb', line 2652

def color_space
  @color_space
end

#dateString

The date and time the photo was taken (EXIF format timestamp). Corresponds to the JSON property date

Returns:

  • (String)


2657
2658
2659
# File 'lib/google/apis/drive_v2/classes.rb', line 2657

def date
  @date
end

#exposure_biasFloat

The exposure bias of the photo (APEX value). Corresponds to the JSON property exposureBias

Returns:

  • (Float)


2662
2663
2664
# File 'lib/google/apis/drive_v2/classes.rb', line 2662

def exposure_bias
  @exposure_bias
end

#exposure_modeString

The exposure mode used to create the photo. Corresponds to the JSON property exposureMode

Returns:

  • (String)


2667
2668
2669
# File 'lib/google/apis/drive_v2/classes.rb', line 2667

def exposure_mode
  @exposure_mode
end

#exposure_timeFloat

The length of the exposure, in seconds. Corresponds to the JSON property exposureTime

Returns:

  • (Float)


2672
2673
2674
# File 'lib/google/apis/drive_v2/classes.rb', line 2672

def exposure_time
  @exposure_time
end

#flash_usedBoolean Also known as: flash_used?

Whether a flash was used to create the photo. Corresponds to the JSON property flashUsed

Returns:

  • (Boolean)


2677
2678
2679
# File 'lib/google/apis/drive_v2/classes.rb', line 2677

def flash_used
  @flash_used
end

#focal_lengthFloat

The focal length used to create the photo, in millimeters. Corresponds to the JSON property focalLength

Returns:

  • (Float)


2683
2684
2685
# File 'lib/google/apis/drive_v2/classes.rb', line 2683

def focal_length
  @focal_length
end

#heightFixnum

The height of the image in pixels. Corresponds to the JSON property height

Returns:

  • (Fixnum)


2688
2689
2690
# File 'lib/google/apis/drive_v2/classes.rb', line 2688

def height
  @height
end

#iso_speedFixnum

The ISO speed used to create the photo. Corresponds to the JSON property isoSpeed

Returns:

  • (Fixnum)


2693
2694
2695
# File 'lib/google/apis/drive_v2/classes.rb', line 2693

def iso_speed
  @iso_speed
end

#lensString

The lens used to create the photo. Corresponds to the JSON property lens

Returns:

  • (String)


2698
2699
2700
# File 'lib/google/apis/drive_v2/classes.rb', line 2698

def lens
  @lens
end

#locationGoogle::Apis::DriveV2::File::ImageMediaMetadata::Location

Geographic location information stored in the image. Corresponds to the JSON property location



2703
2704
2705
# File 'lib/google/apis/drive_v2/classes.rb', line 2703

def location
  @location
end

#max_aperture_valueFloat

The smallest f-number of the lens at the focal length used to create the photo (APEX value). Corresponds to the JSON property maxApertureValue

Returns:

  • (Float)


2709
2710
2711
# File 'lib/google/apis/drive_v2/classes.rb', line 2709

def max_aperture_value
  @max_aperture_value
end

#metering_modeString

The metering mode used to create the photo. Corresponds to the JSON property meteringMode

Returns:

  • (String)


2714
2715
2716
# File 'lib/google/apis/drive_v2/classes.rb', line 2714

def metering_mode
  @metering_mode
end

#rotationFixnum

The number of clockwise 90 degree rotations applied from the image's original orientation. Corresponds to the JSON property rotation

Returns:

  • (Fixnum)


2720
2721
2722
# File 'lib/google/apis/drive_v2/classes.rb', line 2720

def rotation
  @rotation
end

#sensorString

The type of sensor used to create the photo. Corresponds to the JSON property sensor

Returns:

  • (String)


2725
2726
2727
# File 'lib/google/apis/drive_v2/classes.rb', line 2725

def sensor
  @sensor
end

#subject_distanceFixnum

The distance to the subject of the photo, in meters. Corresponds to the JSON property subjectDistance

Returns:

  • (Fixnum)


2730
2731
2732
# File 'lib/google/apis/drive_v2/classes.rb', line 2730

def subject_distance
  @subject_distance
end

#white_balanceString

The white balance mode used to create the photo. Corresponds to the JSON property whiteBalance

Returns:

  • (String)


2735
2736
2737
# File 'lib/google/apis/drive_v2/classes.rb', line 2735

def white_balance
  @white_balance
end

#widthFixnum

The width of the image in pixels. Corresponds to the JSON property width

Returns:

  • (Fixnum)


2740
2741
2742
# File 'lib/google/apis/drive_v2/classes.rb', line 2740

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
# File 'lib/google/apis/drive_v2/classes.rb', line 2747

def update!(**args)
  @aperture = args[:aperture] if args.key?(:aperture)
  @camera_make = args[:camera_make] if args.key?(:camera_make)
  @camera_model = args[:camera_model] if args.key?(:camera_model)
  @color_space = args[:color_space] if args.key?(:color_space)
  @date = args[:date] if args.key?(:date)
  @exposure_bias = args[:exposure_bias] if args.key?(:exposure_bias)
  @exposure_mode = args[:exposure_mode] if args.key?(:exposure_mode)
  @exposure_time = args[:exposure_time] if args.key?(:exposure_time)
  @flash_used = args[:flash_used] if args.key?(:flash_used)
  @focal_length = args[:focal_length] if args.key?(:focal_length)
  @height = args[:height] if args.key?(:height)
  @iso_speed = args[:iso_speed] if args.key?(:iso_speed)
  @lens = args[:lens] if args.key?(:lens)
  @location = args[:location] if args.key?(:location)
  @max_aperture_value = args[:max_aperture_value] if args.key?(:max_aperture_value)
  @metering_mode = args[:metering_mode] if args.key?(:metering_mode)
  @rotation = args[:rotation] if args.key?(:rotation)
  @sensor = args[:sensor] if args.key?(:sensor)
  @subject_distance = args[:subject_distance] if args.key?(:subject_distance)
  @white_balance = args[:white_balance] if args.key?(:white_balance)
  @width = args[:width] if args.key?(:width)
end