Class: Google::Apis::AdminDirectoryV1::UserLanguage
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::UserLanguage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb
Overview
JSON template for a language entry.
Instance Attribute Summary collapse
-
#custom_language ⇒ String
Other language.
-
#language_code ⇒ String
Language Code.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserLanguage
constructor
A new instance of UserLanguage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UserLanguage
Returns a new instance of UserLanguage.
4404 4405 4406 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4404 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_language ⇒ String
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
4396 4397 4398 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4396 def custom_language @custom_language end |
#language_code ⇒ String
Language Code. Should be used for storing Google III LanguageCode string
representation for language. Illegal values cause SchemaException.
Corresponds to the JSON property languageCode
4402 4403 4404 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4402 def language_code @language_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4409 4410 4411 4412 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4409 def update!(**args) @custom_language = args[:custom_language] if args.key?(:custom_language) @language_code = args[:language_code] if args.key?(:language_code) end |