Class: Google::Apis::YoutubeV3::I18nLanguage

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

Overview

An i18nLanguage resource identifies a UI language currently supported by YouTube.

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

Returns a new instance of I18nLanguage



3115
3116
3117
# File 'generated/google/apis/youtube_v3/classes.rb', line 3115

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

Instance Attribute Details

#etagString

Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


3096
3097
3098
# File 'generated/google/apis/youtube_v3/classes.rb', line 3096

def etag
  @etag
end

#idString

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

Returns:

  • (String)


3101
3102
3103
# File 'generated/google/apis/youtube_v3/classes.rb', line 3101

def id
  @id
end

#kindString

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

Returns:

  • (String)


3107
3108
3109
# File 'generated/google/apis/youtube_v3/classes.rb', line 3107

def kind
  @kind
end

#snippetGoogle::Apis::YoutubeV3::I18nLanguageSnippet

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



3113
3114
3115
# File 'generated/google/apis/youtube_v3/classes.rb', line 3113

def snippet
  @snippet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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