Class: Google::Apis::DfareportingV2_6::OperatingSystemVersion

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v2_6/classes.rb,
generated/google/apis/dfareporting_v2_6/representations.rb,
generated/google/apis/dfareporting_v2_6/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::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OperatingSystemVersion

Returns a new instance of OperatingSystemVersion.


7322
7323
7324
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 7322

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

Instance Attribute Details

#idString

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

Returns:

  • (String)

7294
7295
7296
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 7294

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)

7300
7301
7302
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 7300

def kind
  @kind
end

#major_versionString

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

Returns:

  • (String)

7305
7306
7307
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 7305

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)

7310
7311
7312
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 7310

def minor_version
  @minor_version
end

#nameString

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

Returns:

  • (String)

7315
7316
7317
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 7315

def name
  @name
end

#operating_systemGoogle::Apis::DfareportingV2_6::OperatingSystem

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


7320
7321
7322
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 7320

def operating_system
  @operating_system
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


7327
7328
7329
7330
7331
7332
7333
7334
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 7327

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