Class: Google::Apis::YoutubeV3::I18nRegion

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

A i18nRegion resource identifies a region where YouTube is available.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ I18nRegion

Returns a new instance of I18nRegion.



3116
3117
3118
# File 'lib/google/apis/youtube_v3/classes.rb', line 3116

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

Instance Attribute Details

#etagString

Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


3097
3098
3099
# File 'lib/google/apis/youtube_v3/classes.rb', line 3097

def etag
  @etag
end

#idString

The ID that YouTube uses to uniquely identify the i18n region. Corresponds to the JSON property id

Returns:

  • (String)


3102
3103
3104
# File 'lib/google/apis/youtube_v3/classes.rb', line 3102

def id
  @id
end

#kindString

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

Returns:

  • (String)


3108
3109
3110
# File 'lib/google/apis/youtube_v3/classes.rb', line 3108

def kind
  @kind
end

#snippetGoogle::Apis::YoutubeV3::I18nRegionSnippet

Basic details about an i18n region, such as region code and human-readable name. Corresponds to the JSON property snippet



3114
3115
3116
# File 'lib/google/apis/youtube_v3/classes.rb', line 3114

def snippet
  @snippet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3121
3122
3123
3124
3125
3126
# File 'lib/google/apis/youtube_v3/classes.rb', line 3121

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @snippet = args[:snippet] if args.key?(:snippet)
end