Class: Google::Apis::AdminDirectoryV1::UserLanguage

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

Overview

JSON template for a language entry.

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

Returns a new instance of UserLanguage.


3634
3635
3636
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3634

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

Instance Attribute Details

#custom_languageString

Other language. User can provide own language name if there is no corresponding Google III language code. If this is set LanguageCode can't be set Corresponds to the JSON property customLanguage

Returns:

  • (String)

3626
3627
3628
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3626

def custom_language
  @custom_language
end

#language_codeString

Language Code. Should be used for storing Google III LanguageCode string representation for language. Illegal values cause SchemaException. Corresponds to the JSON property languageCode

Returns:

  • (String)

3632
3633
3634
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3632

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3639
3640
3641
3642
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3639

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