Skip to content

Commit 3b68d9a

Browse files
Merge pull request #69 from HubSpot/feature/regen
Feature/regen
2 parents 00dc04e + 4652bb1 commit 3b68d9a

File tree

928 files changed

+26985
-44617
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

928 files changed

+26985
-44617
lines changed

Diff for: CHANGELOG.md

+23-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,29 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased](https://github.com/HubSpot/hubspot-api-python/compare/v3.8.0...HEAD)
8+
## [Unreleased](https://github.com/HubSpot/hubspot-api-python/compare/v4.0.0...HEAD)
9+
10+
## [4.0.0](https://github.com/HubSpot/hubspot-api-python/compare/v3.8.2...v4.0.0) - 2021-09-08
11+
12+
### Added
13+
14+
- crm.objects.gdpr_api API client
15+
- crm.contacts.gdpr_api API client
16+
17+
### Changed (breaking changes)
18+
19+
- oauth api client regenerated
20+
- cms.audit_logs.default_api => cms.audit_logs.audit_logs_api
21+
- cms.blogs.authors.default_api => cms.blogs.authors.author_api
22+
- cms.blogs.blog_posts.default_api => cms.blogs.blog_posts.blog_post_api
23+
- cms.blogs.tags.default_api => cms.blogs.tags.tag_api
24+
- cms.performance.default_api => cms.performance.public_performance_api
25+
- cms.site_search.default_api => cms.site_search.public_api
26+
- crm.imports.default_api => crm.imports.public_imports_api
27+
- crm.owners.default_api => crm.owners.owners_api
28+
- crm.schemas.default_api => crm.schemas.public_object_schemas_api and crm.schemas.core_api
29+
- marketing.transactional.default_api => marketing.transactional.public_smtp_tokens_api and
30+
marketing.transactional.single_send_api
931

1032
## [3.8.0](https://github.com/HubSpot/hubspot-api-python/compare/v3.7.2...v3.8.0) - 2021-06-09
1133

Diff for: VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.8.2
1+
4.0.0

Diff for: hubspot/auth/oauth/__init__.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
__version__ = "1.0.0"
1818

1919
# import apis into sdk package
20-
from hubspot.auth.oauth.api.default_api import DefaultApi
20+
from hubspot.auth.oauth.api.access_tokens_api import AccessTokensApi
21+
from hubspot.auth.oauth.api.refresh_tokens_api import RefreshTokensApi
22+
from hubspot.auth.oauth.api.tokens_api import TokensApi
2123

2224
# import ApiClient
2325
from hubspot.auth.oauth.api_client import ApiClient
@@ -27,10 +29,10 @@
2729
from hubspot.auth.oauth.exceptions import ApiValueError
2830
from hubspot.auth.oauth.exceptions import ApiKeyError
2931
from hubspot.auth.oauth.exceptions import ApiException
32+
3033
# import models into sdk package
3134
from hubspot.auth.oauth.models.access_token_info_response import AccessTokenInfoResponse
3235
from hubspot.auth.oauth.models.error import Error
3336
from hubspot.auth.oauth.models.error_detail import ErrorDetail
3437
from hubspot.auth.oauth.models.refresh_token_info_response import RefreshTokenInfoResponse
3538
from hubspot.auth.oauth.models.token_response_if import TokenResponseIF
36-

Diff for: hubspot/auth/oauth/api/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
# flake8: noqa
44

55
# import apis into api package
6-
from hubspot.auth.oauth.api.default_api import DefaultApi
6+
from hubspot.auth.oauth.api.access_tokens_api import AccessTokensApi
7+
from hubspot.auth.oauth.api.refresh_tokens_api import RefreshTokensApi
8+
from hubspot.auth.oauth.api.tokens_api import TokensApi

Diff for: hubspot/auth/oauth/api/access_tokens_api.py

+134
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
# coding: utf-8
2+
3+
"""
4+
OAuthService
5+
6+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7+
8+
The version of the OpenAPI document: v1
9+
Generated by: https://openapi-generator.tech
10+
"""
11+
12+
13+
from __future__ import absolute_import
14+
15+
import re # noqa: F401
16+
17+
# python 2 and python 3 compatibility library
18+
import six
19+
20+
from hubspot.auth.oauth.api_client import ApiClient
21+
from hubspot.auth.oauth.exceptions import ApiTypeError, ApiValueError # noqa: F401
22+
23+
24+
class AccessTokensApi(object):
25+
"""NOTE: This class is auto generated by OpenAPI Generator
26+
Ref: https://openapi-generator.tech
27+
28+
Do not edit the class manually.
29+
"""
30+
31+
def __init__(self, api_client=None):
32+
if api_client is None:
33+
api_client = ApiClient()
34+
self.api_client = api_client
35+
36+
def get_access_token(self, token, **kwargs): # noqa: E501
37+
"""get_access_token # noqa: E501
38+
39+
This method makes a synchronous HTTP request by default. To make an
40+
asynchronous HTTP request, please pass async_req=True
41+
>>> thread = api.get_access_token(token, async_req=True)
42+
>>> result = thread.get()
43+
44+
:param async_req bool: execute request asynchronously
45+
:param str token: (required)
46+
:param _preload_content: if False, the urllib3.HTTPResponse object will
47+
be returned without reading/decoding response
48+
data. Default is True.
49+
:param _request_timeout: timeout setting for this request. If one
50+
number provided, it will be total request
51+
timeout. It can also be a pair (tuple) of
52+
(connection, read) timeouts.
53+
:return: AccessTokenInfoResponse
54+
If the method is called asynchronously,
55+
returns the request thread.
56+
"""
57+
kwargs["_return_http_data_only"] = True
58+
return self.get_access_token_with_http_info(token, **kwargs) # noqa: E501
59+
60+
def get_access_token_with_http_info(self, token, **kwargs): # noqa: E501
61+
"""get_access_token # noqa: E501
62+
63+
This method makes a synchronous HTTP request by default. To make an
64+
asynchronous HTTP request, please pass async_req=True
65+
>>> thread = api.get_access_token_with_http_info(token, async_req=True)
66+
>>> result = thread.get()
67+
68+
:param async_req bool: execute request asynchronously
69+
:param str token: (required)
70+
:param _return_http_data_only: response data without head status code
71+
and headers
72+
:param _preload_content: if False, the urllib3.HTTPResponse object will
73+
be returned without reading/decoding response
74+
data. Default is True.
75+
:param _request_timeout: timeout setting for this request. If one
76+
number provided, it will be total request
77+
timeout. It can also be a pair (tuple) of
78+
(connection, read) timeouts.
79+
:return: tuple(AccessTokenInfoResponse, status_code(int), headers(HTTPHeaderDict))
80+
If the method is called asynchronously,
81+
returns the request thread.
82+
"""
83+
84+
local_var_params = locals()
85+
86+
all_params = ["token"]
87+
all_params.extend(["async_req", "_return_http_data_only", "_preload_content", "_request_timeout"])
88+
89+
for key, val in six.iteritems(local_var_params["kwargs"]):
90+
if key not in all_params:
91+
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method get_access_token" % key)
92+
local_var_params[key] = val
93+
del local_var_params["kwargs"]
94+
# verify the required parameter 'token' is set
95+
if self.api_client.client_side_validation and ("token" not in local_var_params or local_var_params["token"] is None): # noqa: E501 # noqa: E501
96+
raise ApiValueError("Missing the required parameter `token` when calling `get_access_token`") # noqa: E501
97+
98+
collection_formats = {}
99+
100+
path_params = {}
101+
if "token" in local_var_params:
102+
path_params["token"] = local_var_params["token"] # noqa: E501
103+
104+
query_params = []
105+
106+
header_params = {}
107+
108+
form_params = []
109+
local_var_files = {}
110+
111+
body_params = None
112+
# HTTP header `Accept`
113+
header_params["Accept"] = self.api_client.select_header_accept(["application/json", "*/*"]) # noqa: E501
114+
115+
# Authentication setting
116+
auth_settings = [] # noqa: E501
117+
118+
return self.api_client.call_api(
119+
"/oauth/v1/access-tokens/{token}",
120+
"GET",
121+
path_params,
122+
query_params,
123+
header_params,
124+
body=body_params,
125+
post_params=form_params,
126+
files=local_var_files,
127+
response_type="AccessTokenInfoResponse", # noqa: E501
128+
auth_settings=auth_settings,
129+
async_req=local_var_params.get("async_req"),
130+
_return_http_data_only=local_var_params.get("_return_http_data_only"), # noqa: E501
131+
_preload_content=local_var_params.get("_preload_content", True),
132+
_request_timeout=local_var_params.get("_request_timeout"),
133+
collection_formats=collection_formats,
134+
)

0 commit comments

Comments
 (0)