Class: Google::Apis::YoutubeV3::AvailabilityConfig

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

Overview

Common proto for Live and VOD geo-restrictions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AvailabilityConfig

Returns a new instance of AvailabilityConfig.



719
720
721
# File 'lib/google/apis/youtube_v3/classes.rb', line 719

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

Instance Attribute Details

#global_configGoogle::Apis::YoutubeV3::AvailabilityConfigGlobalConfig

Video is available in all regions except the ones specified in the excluded_region_codes list. Corresponds to the JSON property globalConfig



712
713
714
# File 'lib/google/apis/youtube_v3/classes.rb', line 712

def global_config
  @global_config
end

#regions_configGoogle::Apis::YoutubeV3::AvailabilityConfigRegionsConfig

Video is available in the specified regions only. Corresponds to the JSON property regionsConfig



717
718
719
# File 'lib/google/apis/youtube_v3/classes.rb', line 717

def regions_config
  @regions_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



724
725
726
727
# File 'lib/google/apis/youtube_v3/classes.rb', line 724

def update!(**args)
  @global_config = args[:global_config] if args.key?(:global_config)
  @regions_config = args[:regions_config] if args.key?(:regions_config)
end