Class: Google::Apis::AdsenseplatformV1alpha::Platform

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

Overview

Representation of a Transparent Platform.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Platform

Returns a new instance of Platform.



383
384
385
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 383

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

Instance Attribute Details

#default_platform_groupString

Default platform group for the platform. Corresponds to the JSON property defaultPlatformGroup

Returns:

  • (String)


370
371
372
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 370

def default_platform_group
  @default_platform_group
end

#descriptionString

Output only. Description of the platform. Corresponds to the JSON property description

Returns:

  • (String)


375
376
377
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 375

def description
  @description
end

#nameString

Identifier. Resource name of a platform. Format: accounts/account/platforms/ platform Corresponds to the JSON property name

Returns:

  • (String)


381
382
383
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 381

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



388
389
390
391
392
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 388

def update!(**args)
  @default_platform_group = args[:default_platform_group] if args.key?(:default_platform_group)
  @description = args[:description] if args.key?(:description)
  @name = args[:name] if args.key?(:name)
end