generated/google/apis/oauth2_v2/service.rb in google-api-client-0.9.pre3 vs generated/google/apis/oauth2_v2/service.rb in google-api-client-0.9.pre4
- old
+ new
@@ -73,12 +73,11 @@
#
# @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_cert_for_open_id_connect(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'oauth2/v2/certs'
- command = make_simple_command(:get, path, options)
+ command = make_simple_command(:get, 'oauth2/v2/certs', options)
command.response_representation = Google::Apis::Oauth2V2::Jwk::Representation
command.response_class = Google::Apis::Oauth2V2::Jwk
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?
@@ -109,12 +108,11 @@
#
# @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 tokeninfo(access_token: nil, id_token: nil, token_handle: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'oauth2/v2/tokeninfo'
- command = make_simple_command(:post, path, options)
+ command = make_simple_command(:post, 'oauth2/v2/tokeninfo', options)
command.response_representation = Google::Apis::Oauth2V2::Tokeninfo::Representation
command.response_class = Google::Apis::Oauth2V2::Tokeninfo
command.query['access_token'] = access_token unless access_token.nil?
command.query['id_token'] = id_token unless id_token.nil?
command.query['token_handle'] = token_handle unless token_handle.nil?
@@ -145,12 +143,11 @@
#
# @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_userinfo(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'oauth2/v2/userinfo'
- command = make_simple_command(:get, path, options)
+ command = make_simple_command(:get, 'oauth2/v2/userinfo', options)
command.response_representation = Google::Apis::Oauth2V2::Userinfoplus::Representation
command.response_class = Google::Apis::Oauth2V2::Userinfoplus
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?
@@ -178,11 +175,10 @@
#
# @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_userinfo_v2(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- path = 'userinfo/v2/me'
- command = make_simple_command(:get, path, options)
+ command = make_simple_command(:get, 'userinfo/v2/me', options)
command.response_representation = Google::Apis::Oauth2V2::Userinfoplus::Representation
command.response_class = Google::Apis::Oauth2V2::Userinfoplus
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?