generated/google/apis/oauth2_v2/service.rb in google-api-client-0.20.1 vs generated/google/apis/oauth2_v2/service.rb in google-api-client-0.21.0
- old
+ new
@@ -36,18 +36,16 @@
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
- # Available to use for quota purposes for server-side applications. Can be any
- # arbitrary string assigned to a user, but should not exceed 40 characters.
- # Overrides userIp if both are provided.
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
+ # characters.
attr_accessor :quota_user
# @return [String]
- # IP address of the site where the request originates. Use this if you want to
- # enforce per-user limits.
+ # Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', '')
@batch_path = 'batch/oauth2/v2'
@@ -55,16 +53,14 @@
#
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # Available to use for quota purposes for server-side applications. Can be any
- # arbitrary string assigned to a user, but should not exceed 40 characters.
- # Overrides userIp if both are provided.
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
+ # characters.
# @param [String] user_ip
- # IP address of the site where the request originates. Use this if you want to
- # enforce per-user limits.
+ # 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::Oauth2V2::Jwk] parsed result object
@@ -90,16 +86,14 @@
# @param [String] id_token
# @param [String] token_handle
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # Available to use for quota purposes for server-side applications. Can be any
- # arbitrary string assigned to a user, but should not exceed 40 characters.
- # Overrides userIp if both are provided.
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
+ # characters.
# @param [String] user_ip
- # IP address of the site where the request originates. Use this if you want to
- # enforce per-user limits.
+ # 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::Oauth2V2::Tokeninfo] parsed result object
@@ -125,16 +119,14 @@
#
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # Available to use for quota purposes for server-side applications. Can be any
- # arbitrary string assigned to a user, but should not exceed 40 characters.
- # Overrides userIp if both are provided.
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
+ # characters.
# @param [String] user_ip
- # IP address of the site where the request originates. Use this if you want to
- # enforce per-user limits.
+ # 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::Oauth2V2::Userinfoplus] parsed result object
@@ -157,15 +149,13 @@
#
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # Available to use for quota purposes for server-side applications. Can be any
- # arbitrary string assigned to a user, but should not exceed 40 characters.
- # Overrides userIp if both are provided.
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
+ # characters.
# @param [String] user_ip
- # IP address of the site where the request originates. Use this if you want to
- # enforce per-user limits.
+ # 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::Oauth2V2::Userinfoplus] parsed result object