generated/google/apis/translate_v3beta1/classes.rb in google-api-client-0.30.9 vs generated/google/apis/translate_v3beta1/classes.rb in google-api-client-0.30.10
- old
+ new
@@ -38,10 +38,20 @@
# The files must use UTF-8 encoding.
# Corresponds to the JSON property `inputConfigs`
# @return [Array<Google::Apis::TranslateV3beta1::InputConfig>]
attr_accessor :input_configs
+ # Optional. The labels with user-defined metadata for the request.
+ # Label keys and values can be no longer than 63 characters
+ # (Unicode codepoints), can only contain lowercase letters, numeric
+ # characters, underscores and dashes. International characters are allowed.
+ # Label values are optional. Label keys must start with a letter.
+ # See https://goo.gl/xmQnxf for more information on and examples of labels.
+ # Corresponds to the JSON property `labels`
+ # @return [Hash<String,String>]
+ attr_accessor :labels
+
# Optional. The models to use for translation. Map's key is target language
# code. Map's value is model name. Value can be a built-in general model,
# or an AutoML Translation model.
# The value format depends on model type:
# - AutoML Translation models:
@@ -76,10 +86,11 @@
# Update properties of this object
def update!(**args)
@glossaries = args[:glossaries] if args.key?(:glossaries)
@input_configs = args[:input_configs] if args.key?(:input_configs)
+ @labels = args[:labels] if args.key?(:labels)
@models = args[:models] if args.key?(:models)
@output_config = args[:output_config] if args.key?(:output_config)
@source_language_code = args[:source_language_code] if args.key?(:source_language_code)
@target_language_codes = args[:target_language_codes] if args.key?(:target_language_codes)
end
@@ -105,10 +116,20 @@
# The content of the input stored as a string.
# Corresponds to the JSON property `content`
# @return [String]
attr_accessor :content
+ # Optional. The labels with user-defined metadata for the request.
+ # Label keys and values can be no longer than 63 characters
+ # (Unicode codepoints), can only contain lowercase letters, numeric
+ # characters, underscores and dashes. International characters are allowed.
+ # Label values are optional. Label keys must start with a letter.
+ # See https://goo.gl/xmQnxf for more information on and examples of labels.
+ # Corresponds to the JSON property `labels`
+ # @return [Hash<String,String>]
+ attr_accessor :labels
+
# Optional. The format of the source text, for example, "text/html",
# "text/plain". If left blank, the MIME type defaults to "text/html".
# Corresponds to the JSON property `mimeType`
# @return [String]
attr_accessor :mime_type
@@ -130,10 +151,11 @@
end
# Update properties of this object
def update!(**args)
@content = args[:content] if args.key?(:content)
+ @labels = args[:labels] if args.key?(:labels)
@mime_type = args[:mime_type] if args.key?(:mime_type)
@model = args[:model] if args.key?(:model)
end
end
@@ -747,10 +769,20 @@
# and defines options for applying that glossary.
# Corresponds to the JSON property `glossaryConfig`
# @return [Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig]
attr_accessor :glossary_config
+ # Optional. The labels with user-defined metadata for the request.
+ # Label keys and values can be no longer than 63 characters
+ # (Unicode codepoints), can only contain lowercase letters, numeric
+ # characters, underscores and dashes. International characters are allowed.
+ # Label values are optional. Label keys must start with a letter.
+ # See https://goo.gl/xmQnxf for more information on and examples of labels.
+ # Corresponds to the JSON property `labels`
+ # @return [Hash<String,String>]
+ attr_accessor :labels
+
# Optional. The format of the source text, for example, "text/html",
# "text/plain". If left blank, the MIME type defaults to "text/html".
# Corresponds to the JSON property `mimeType`
# @return [String]
attr_accessor :mime_type
@@ -791,9 +823,10 @@
# Update properties of this object
def update!(**args)
@contents = args[:contents] if args.key?(:contents)
@glossary_config = args[:glossary_config] if args.key?(:glossary_config)
+ @labels = args[:labels] if args.key?(:labels)
@mime_type = args[:mime_type] if args.key?(:mime_type)
@model = args[:model] if args.key?(:model)
@source_language_code = args[:source_language_code] if args.key?(:source_language_code)
@target_language_code = args[:target_language_code] if args.key?(:target_language_code)
end