Class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext

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

Overview

The serving context for this restriction.

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) ⇒ ServingContext

Returns a new instance of ServingContext



1123
1124
1125
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1123

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

Instance Attribute Details

#allString

Matches all contexts. Corresponds to the JSON property all

Returns:

  • (String)


1106
1107
1108
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1106

def all
  @all
end

#app_typeGoogle::Apis::Adexchangebuyer2V2beta1::AppContext

Corresponds to the JSON property appType



1111
1112
1113
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1111

def app_type
  @app_type
end

#auction_typeGoogle::Apis::Adexchangebuyer2V2beta1::AuctionContext

Corresponds to the JSON property auctionType



1101
1102
1103
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1101

def auction_type
  @auction_type
end

#locationGoogle::Apis::Adexchangebuyer2V2beta1::LocationContext

Corresponds to the JSON property location



1096
1097
1098
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1096

def location
  @location
end

#platformGoogle::Apis::Adexchangebuyer2V2beta1::PlatformContext

Corresponds to the JSON property platform



1121
1122
1123
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1121

def platform
  @platform
end

#security_typeGoogle::Apis::Adexchangebuyer2V2beta1::SecurityContext

Corresponds to the JSON property securityType



1116
1117
1118
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1116

def security_type
  @security_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1128
1129
1130
1131
1132
1133
1134
1135
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1128

def update!(**args)
  @location = args[:location] if args.key?(:location)
  @auction_type = args[:auction_type] if args.key?(:auction_type)
  @all = args[:all] if args.key?(:all)
  @app_type = args[:app_type] if args.key?(:app_type)
  @security_type = args[:security_type] if args.key?(:security_type)
  @platform = args[:platform] if args.key?(:platform)
end