Autogenerated update (2019-04-25)

Delete:
- logging_v2beta1

Update:
- adexchangebuyer2_v2beta1
- admin_reports_v1
- alertcenter_v1beta1
- androiddeviceprovisioning_v1
- androidenterprise_v1
- androidmanagement_v1
- androidpublisher_v2
- androidpublisher_v3
- appengine_v1
- appengine_v1beta
- appsactivity_v1
- bigtableadmin_v1
- bigtableadmin_v2
- binaryauthorization_v1beta1
- calendar_v3
- classroom_v1
- cloudasset_v1
- cloudasset_v1beta1
- cloudbilling_v1
- cloudbuild_v1alpha1
- clouderrorreporting_v1beta1
- cloudfunctions_v1
- cloudfunctions_v1beta2
- cloudiot_v1
- cloudprivatecatalogproducer_v1beta1
- cloudresourcemanager_v1
- cloudresourcemanager_v1beta1
- cloudresourcemanager_v2
- cloudresourcemanager_v2beta1
- cloudsearch_v1
- cloudtasks_v2
- cloudtasks_v2beta2
- cloudtasks_v2beta3
- compute_alpha
- compute_beta
- compute_v1
- container_v1
- container_v1beta1
- containeranalysis_v1alpha1
- containeranalysis_v1beta1
- content_v2
- content_v2_1
- datastore_v1
- datastore_v1beta1
- datastore_v1beta3
- dialogflow_v2
- dialogflow_v2beta1
- dlp_v2
- dns_v1
- dns_v1beta2
- dns_v2beta1
- docs_v1
- drive_v2
- drive_v3
- driveactivity_v2
- file_v1
- file_v1beta1
- firebasedynamiclinks_v1
- firebasehosting_v1beta1
- firebaserules_v1
- firestore_v1
- firestore_v1beta1
- firestore_v1beta2
- fitness_v1
- games_v1
- gmail_v1
- iap_v1
- iap_v1beta1
- jobs_v3
- jobs_v3p1beta1
- language_v1
- language_v1beta2
- ml_v1
- monitoring_v3
- oauth2_v1
- oauth2_v2
- people_v1
- plus_domains_v1
- plus_v1
- poly_v1
- pubsub_v1
- pubsub_v1beta2
- remotebuildexecution_v1
- remotebuildexecution_v1alpha
- remotebuildexecution_v2
- run_v1alpha1
- runtimeconfig_v1beta1
- servicebroker_v1
- servicebroker_v1alpha1
- servicebroker_v1beta1
- serviceconsumermanagement_v1
- servicemanagement_v1
- servicenetworking_v1
- servicenetworking_v1beta
- serviceusage_v1
- serviceusage_v1beta1
- sourcerepo_v1
- spanner_v1
- sqladmin_v1beta4
- storage_v1
- storagetransfer_v1
- texttospeech_v1beta1
- toolresults_v1beta3
- tpu_v1
- tpu_v1alpha1
- vault_v1
- vision_v1
- vision_v1p1beta1
- vision_v1p2beta1
- youtube_partner_v1
- youtube_v3
- youtubereporting_v1
This commit is contained in:
Google APIs committed 2019-04-25 00:37:02 +00:00
1 parent 06df528c4b
commit 50a63b45e3
299 files changed
+34214 -4865

No files matched your search

+29
View File
@@ -635,6 +635,35 @@ module Google
end
end
# Language settings for an account. These settings correspond to the "Language
# settings" feature in the web interface.
class LanguageSettings
include Google::Apis::Core::Hashable
# The language to display Gmail in, formatted as an RFC 3066 Language Tag (for
# example en-GB, fr or ja for British English, French, or Japanese respectively).
# The set of languages supported by Gmail evolves over time, so please refer to
# the "Language" dropdown in the Gmail settings for all available options, as
# described in the language settings help article. A table of sample values is
# also provided in the Managing Language Settings guide
# Not all Gmail clients can display the same set of languages. In the case that
# a user's display language is not available for use on a particular client,
# said client automatically chooses to display in the closest supported variant (
# or a reasonable default).
# Corresponds to the JSON property `displayLanguage`
# @return [String]
attr_accessor :display_language
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_language = args[:display_language] if args.key?(:display_language)
end
end
# Response for the ListDelegates method.
class ListDelegatesResponse
include Google::Apis::Core::Hashable
@@ -124,6 +124,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class LanguageSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDelegatesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -445,6 +451,13 @@ module Google
end
end
class LanguageSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_language, as: 'displayLanguage'
end
end
class ListDelegatesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+76
View File
@@ -1296,6 +1296,40 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets language settings.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::LanguageSettings] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::LanguageSettings]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_language(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{userId}/settings/language', options)
command.response_representation = Google::Apis::GmailV1::LanguageSettings::Representation
command.response_class = Google::Apis::GmailV1::LanguageSettings
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets POP settings.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
@@ -1441,6 +1475,48 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates language settings.
# If successful, the return object contains the displayLanguage that was saved
# for the user, which may differ from the value passed into the request. This is
# because the requested displayLanguage may not be directly supported by Gmail
# but have a close variant that is, and so the variant may be chosen and saved
# instead.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [Google::Apis::GmailV1::LanguageSettings] language_settings_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::LanguageSettings] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::LanguageSettings]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_user_setting_language(user_id, language_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{userId}/settings/language', options)
command.request_representation = Google::Apis::GmailV1::LanguageSettings::Representation
command.request_object = language_settings_object
command.response_representation = Google::Apis::GmailV1::LanguageSettings::Representation
command.response_class = Google::Apis::GmailV1::LanguageSettings
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates POP settings.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the