Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions hubspot/oauth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
# flake8: noqa

"""
Auth Oauth
Auth Oauth

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""


Expand Down Expand Up @@ -36,4 +36,5 @@
from hubspot.oauth.models.error import Error
from hubspot.oauth.models.error_detail import ErrorDetail
from hubspot.oauth.models.refresh_token_info_response import RefreshTokenInfoResponse
from hubspot.oauth.models.signed_access_token import SignedAccessToken
from hubspot.oauth.models.token_response_if import TokenResponseIF
12 changes: 6 additions & 6 deletions hubspot/oauth/api/access_tokens_api.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# coding: utf-8

"""
Auth Oauth
Auth Oauth

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""


Expand Down Expand Up @@ -43,7 +43,7 @@ def get(self, token, **kwargs): # noqa: E501
>>> thread = api.get(token, async_req=True)
>>> result = thread.get()

:param token: The access token that you want to retrieve information about. (required)
:param token: (required)
:type token: str
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand Down Expand Up @@ -73,7 +73,7 @@ def get_with_http_info(self, token, **kwargs): # noqa: E501
>>> thread = api.get_with_http_info(token, async_req=True)
>>> result = thread.get()

:param token: The access token that you want to retrieve information about. (required)
:param token: (required)
:type token: str
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand Down
16 changes: 8 additions & 8 deletions hubspot/oauth/api/refresh_tokens_api.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# coding: utf-8

"""
Auth Oauth
Auth Oauth

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""


Expand Down Expand Up @@ -43,7 +43,7 @@ def archive(self, token, **kwargs): # noqa: E501
>>> thread = api.archive(token, async_req=True)
>>> result = thread.get()

:param token: The refresh token to delete. (required)
:param token: (required)
:type token: str
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand Down Expand Up @@ -73,7 +73,7 @@ def archive_with_http_info(self, token, **kwargs): # noqa: E501
>>> thread = api.archive_with_http_info(token, async_req=True)
>>> result = thread.get()

:param token: The refresh token to delete. (required)
:param token: (required)
:type token: str
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand Down Expand Up @@ -164,7 +164,7 @@ def get(self, token, **kwargs): # noqa: E501
>>> thread = api.get(token, async_req=True)
>>> result = thread.get()

:param token: The refresh token to retrieve information about. (required)
:param token: (required)
:type token: str
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand Down Expand Up @@ -194,7 +194,7 @@ def get_with_http_info(self, token, **kwargs): # noqa: E501
>>> thread = api.get_with_http_info(token, async_req=True)
>>> result = thread.get()

:param token: The refresh token to retrieve information about. (required)
:param token: (required)
:type token: str
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand Down
22 changes: 17 additions & 5 deletions hubspot/oauth/api/tokens_api.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# coding: utf-8

"""
Auth Oauth
Auth Oauth

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""


Expand Down Expand Up @@ -55,6 +55,10 @@ def create(self, **kwargs): # noqa: E501
:type client_secret: str
:param refresh_token:
:type refresh_token: str
:param code_verifier:
:type code_verifier: str
:param scope:
:type scope: str
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
Expand Down Expand Up @@ -95,6 +99,10 @@ def create_with_http_info(self, **kwargs): # noqa: E501
:type client_secret: str
:param refresh_token:
:type refresh_token: str
:param code_verifier:
:type code_verifier: str
:param scope:
:type scope: str
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
Expand All @@ -121,7 +129,7 @@ def create_with_http_info(self, **kwargs): # noqa: E501

local_var_params = locals()

all_params = ["grant_type", "code", "redirect_uri", "client_id", "client_secret", "refresh_token"]
all_params = ["grant_type", "code", "redirect_uri", "client_id", "client_secret", "refresh_token", "code_verifier", "scope"]
all_params.extend(["async_req", "_return_http_data_only", "_preload_content", "_request_timeout", "_request_auth", "_content_type", "_headers"])

for key, val in six.iteritems(local_var_params["kwargs"]):
Expand Down Expand Up @@ -152,6 +160,10 @@ def create_with_http_info(self, **kwargs): # noqa: E501
form_params.append(("client_secret", local_var_params["client_secret"])) # noqa: E501
if "refresh_token" in local_var_params:
form_params.append(("refresh_token", local_var_params["refresh_token"])) # noqa: E501
if "code_verifier" in local_var_params:
form_params.append(("code_verifier", local_var_params["code_verifier"])) # noqa: E501
if "scope" in local_var_params:
form_params.append(("scope", local_var_params["scope"])) # noqa: E501

body_params = None
# HTTP header `Accept`
Expand Down
9 changes: 5 additions & 4 deletions hubspot/oauth/api_client.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# coding: utf-8
"""
Auth Oauth
Auth Oauth

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""

from __future__ import absolute_import
Expand Down Expand Up @@ -135,6 +135,7 @@ def __call_api(
_host=None,
_request_auth=None,
):

config = self.configuration

# header parameters
Expand Down
8 changes: 4 additions & 4 deletions hubspot/oauth/configuration.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# coding: utf-8

"""
Auth Oauth
Auth Oauth

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""


Expand Down
13 changes: 9 additions & 4 deletions hubspot/oauth/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# coding: utf-8

"""
Auth Oauth
Auth Oauth

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""


Expand Down Expand Up @@ -100,6 +100,7 @@ def __init__(self, msg, path_to_item=None):


class ApiException(OpenApiException):

def __init__(self, status=None, reason=None, http_resp=None):
if http_resp:
self.status = http_resp.status
Expand All @@ -125,21 +126,25 @@ def __str__(self):


class NotFoundException(ApiException):

def __init__(self, status=None, reason=None, http_resp=None):
super(NotFoundException, self).__init__(status, reason, http_resp)


class UnauthorizedException(ApiException):

def __init__(self, status=None, reason=None, http_resp=None):
super(UnauthorizedException, self).__init__(status, reason, http_resp)


class ForbiddenException(ApiException):

def __init__(self, status=None, reason=None, http_resp=None):
super(ForbiddenException, self).__init__(status, reason, http_resp)


class ServiceException(ApiException):

def __init__(self, status=None, reason=None, http_resp=None):
super(ServiceException, self).__init__(status, reason, http_resp)

Expand Down
9 changes: 5 additions & 4 deletions hubspot/oauth/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

# flake8: noqa
"""
Auth Oauth
Auth Oauth

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""


Expand All @@ -18,4 +18,5 @@
from hubspot.oauth.models.error import Error
from hubspot.oauth.models.error_detail import ErrorDetail
from hubspot.oauth.models.refresh_token_info_response import RefreshTokenInfoResponse
from hubspot.oauth.models.signed_access_token import SignedAccessToken
from hubspot.oauth.models.token_response_if import TokenResponseIF
Loading