Class: Google::Apis::DfareportingV2_1::OperatingSystemVersion

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

Overview

Contains information about a particular version of an operating system that can be targeted by ads.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OperatingSystemVersion

Returns a new instance of OperatingSystemVersion



6672
6673
6674
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6672

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

Instance Attribute Details

#idString

ID of this operating system version. Corresponds to the JSON property id

Returns:

  • (String)


6644
6645
6646
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6644

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#operatingSystemVersion". Corresponds to the JSON property kind

Returns:

  • (String)


6650
6651
6652
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6650

def kind
  @kind
end

#major_versionString

Major version (leftmost number) of this operating system version. Corresponds to the JSON property majorVersion

Returns:

  • (String)


6655
6656
6657
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6655

def major_version
  @major_version
end

#minor_versionString

Minor version (number after the first dot) of this operating system version. Corresponds to the JSON property minorVersion

Returns:

  • (String)


6660
6661
6662
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6660

def minor_version
  @minor_version
end

#nameString

Name of this operating system version. Corresponds to the JSON property name

Returns:

  • (String)


6665
6666
6667
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6665

def name
  @name
end

#operating_systemGoogle::Apis::DfareportingV2_1::OperatingSystem

Contains information about an operating system that can be targeted by ads. Corresponds to the JSON property operatingSystem



6670
6671
6672
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6670

def operating_system
  @operating_system
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6677
6678
6679
6680
6681
6682
6683
6684
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6677

def update!(**args)
  @id = args[:id] unless args[:id].nil?
  @kind = args[:kind] unless args[:kind].nil?
  @major_version = args[:major_version] unless args[:major_version].nil?
  @minor_version = args[:minor_version] unless args[:minor_version].nil?
  @name = args[:name] unless args[:name].nil?
  @operating_system = args[:operating_system] unless args[:operating_system].nil?
end