Skip to content

Commit c25a66f

Browse files
Merge pull request #227 from HubSpot/feature/codegen20230803
Codegen only
2 parents 43bbdc1 + 8b6fa42 commit c25a66f

File tree

284 files changed

+6060
-6144
lines changed

Some content is hidden

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

284 files changed

+6060
-6144
lines changed

Diff for: hubspot/automation/actions/api/callbacks_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def complete_with_http_info(self, callback_id, callback_completion_request, **kw
145145
header_params["Content-Type"] = content_types_list
146146

147147
# Authentication setting
148-
auth_settings = ["hapikey", "oauth2"] # noqa: E501
148+
auth_settings = ["oauth2"] # noqa: E501
149149

150150
response_types_map = {}
151151

@@ -271,7 +271,7 @@ def complete_batch_with_http_info(self, batch_input_callback_completion_batch_re
271271
header_params["Content-Type"] = content_types_list
272272

273273
# Authentication setting
274-
auth_settings = ["hapikey", "oauth2"] # noqa: E501
274+
auth_settings = ["oauth2"] # noqa: E501
275275

276276
response_types_map = {}
277277

Diff for: hubspot/automation/actions/configuration.py

-9
Original file line numberDiff line numberDiff line change
@@ -392,15 +392,6 @@ def auth_settings(self):
392392
:return: The Auth Settings information dict.
393393
"""
394394
auth = {}
395-
if "hapikey" in self.api_key:
396-
auth["hapikey"] = {
397-
"type": "api_key",
398-
"in": "query",
399-
"key": "hapikey",
400-
"value": self.get_api_key_with_prefix(
401-
"hapikey",
402-
),
403-
}
404395
if "developer_hapikey" in self.api_key:
405396
auth["developer_hapikey"] = {
406397
"type": "api_key",

Diff for: hubspot/cms/audit_logs/api/audit_logs_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def get_page_with_http_info(self, **kwargs): # noqa: E501
175175
header_params["Accept"] = self.api_client.select_header_accept(["application/json", "*/*"]) # noqa: E501
176176

177177
# Authentication setting
178-
auth_settings = ["hapikey", "oauth2"] # noqa: E501
178+
auth_settings = ["oauth2"] # noqa: E501
179179

180180
response_types_map = {
181181
200: "CollectionResponsePublicAuditLog",

Diff for: hubspot/cms/audit_logs/configuration.py

+50-78
Original file line numberDiff line numberDiff line change
@@ -29,75 +29,56 @@
2929
class Configuration(object):
3030
"""NOTE: This class is auto generated by OpenAPI Generator
3131
32-
Ref: https://openapi-generator.tech
33-
Do not edit the class manually.
34-
35-
:param host: Base url
36-
:param api_key: Dict to store API key(s).
37-
Each entry in the dict specifies an API key.
38-
The dict key is the name of the security scheme in the OAS specification.
39-
The dict value is the API key secret.
40-
:param api_key_prefix: Dict to store API prefix (e.g. Bearer)
41-
The dict key is the name of the security scheme in the OAS specification.
42-
The dict value is an API key prefix when generating the auth data.
43-
:param username: Username for HTTP basic authentication
44-
:param password: Password for HTTP basic authentication
45-
:param discard_unknown_keys: Boolean value indicating whether to discard
46-
unknown properties. A server may send a response that includes additional
47-
properties that are not known by the client in the following scenarios:
48-
1. The OpenAPI document is incomplete, i.e. it does not match the server
49-
implementation.
50-
2. The client was generated using an older version of the OpenAPI document
51-
and the server has been upgraded since then.
52-
If a schema in the OpenAPI document defines the additionalProperties attribute,
53-
then all undeclared properties received by the server are injected into the
54-
additional properties map. In that case, there are undeclared properties, and
55-
nothing to discard.
56-
:param disabled_client_side_validations (string): Comma-separated list of
57-
JSON schema validation keywords to disable JSON schema structural validation
58-
rules. The following keywords may be specified: multipleOf, maximum,
59-
exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern,
60-
maxItems, minItems.
61-
By default, the validation is performed for data generated locally by the client
62-
and data received from the server, independent of any validation performed by
63-
the server side. If the input data does not satisfy the JSON schema validation
64-
rules specified in the OpenAPI document, an exception is raised.
65-
If disabled_client_side_validations is set, structural validation is
66-
disabled. This can be useful to troubleshoot data validation problem, such as
67-
when the OpenAPI document validation rules do not match the actual API data
68-
received by the server.
69-
:param server_index: Index to servers configuration.
70-
:param server_variables: Mapping with string values to replace variables in
71-
templated server configuration. The validation of enums is performed for
72-
variables with defined enum values before.
73-
:param server_operation_index: Mapping from operation ID to an index to server
74-
configuration.
75-
:param server_operation_variables: Mapping from operation ID to a mapping with
76-
string values to replace variables in templated server configuration.
77-
The validation of enums is performed for variables with defined enum values before.
78-
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
79-
in PEM format
80-
81-
:Example:
82-
83-
API Key Authentication Example.
84-
Given the following security scheme in the OpenAPI specification:
85-
components:
86-
securitySchemes:
87-
cookieAuth: # name for the security scheme
88-
type: apiKey
89-
in: cookie
90-
name: JSESSIONID # cookie name
91-
92-
You can programmatically set the cookie:
93-
94-
conf = hubspot.cms.audit_logs.Configuration(
95-
api_key={'cookieAuth': 'abc123'}
96-
api_key_prefix={'cookieAuth': 'JSESSIONID'}
97-
)
98-
99-
The following cookie will be added to the HTTP request:
100-
Cookie: JSESSIONID abc123
32+
Ref: https://openapi-generator.tech
33+
Do not edit the class manually.
34+
35+
:param host: Base url
36+
:param api_key: Dict to store API key(s).
37+
Each entry in the dict specifies an API key.
38+
The dict key is the name of the security scheme in the OAS specification.
39+
The dict value is the API key secret.
40+
:param api_key_prefix: Dict to store API prefix (e.g. Bearer)
41+
The dict key is the name of the security scheme in the OAS specification.
42+
The dict value is an API key prefix when generating the auth data.
43+
:param username: Username for HTTP basic authentication
44+
:param password: Password for HTTP basic authentication
45+
:param discard_unknown_keys: Boolean value indicating whether to discard
46+
unknown properties. A server may send a response that includes additional
47+
properties that are not known by the client in the following scenarios:
48+
1. The OpenAPI document is incomplete, i.e. it does not match the server
49+
implementation.
50+
2. The client was generated using an older version of the OpenAPI document
51+
and the server has been upgraded since then.
52+
If a schema in the OpenAPI document defines the additionalProperties attribute,
53+
then all undeclared properties received by the server are injected into the
54+
additional properties map. In that case, there are undeclared properties, and
55+
nothing to discard.
56+
:param disabled_client_side_validations (string): Comma-separated list of
57+
JSON schema validation keywords to disable JSON schema structural validation
58+
rules. The following keywords may be specified: multipleOf, maximum,
59+
exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern,
60+
maxItems, minItems.
61+
By default, the validation is performed for data generated locally by the client
62+
and data received from the server, independent of any validation performed by
63+
the server side. If the input data does not satisfy the JSON schema validation
64+
rules specified in the OpenAPI document, an exception is raised.
65+
If disabled_client_side_validations is set, structural validation is
66+
disabled. This can be useful to troubleshoot data validation problem, such as
67+
when the OpenAPI document validation rules do not match the actual API data
68+
received by the server.
69+
:param server_index: Index to servers configuration.
70+
:param server_variables: Mapping with string values to replace variables in
71+
templated server configuration. The validation of enums is performed for
72+
variables with defined enum values before.
73+
:param server_operation_index: Mapping from operation ID to an index to server
74+
configuration.
75+
:param server_operation_variables: Mapping from operation ID to a mapping with
76+
string values to replace variables in templated server configuration.
77+
The validation of enums is performed for variables with defined enum values before.
78+
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
79+
in PEM format
80+
81+
:Example:
10182
"""
10283

10384
_default = None
@@ -392,15 +373,6 @@ def auth_settings(self):
392373
:return: The Auth Settings information dict.
393374
"""
394375
auth = {}
395-
if "hapikey" in self.api_key:
396-
auth["hapikey"] = {
397-
"type": "api_key",
398-
"in": "query",
399-
"key": "hapikey",
400-
"value": self.get_api_key_with_prefix(
401-
"hapikey",
402-
),
403-
}
404376
if self.access_token is not None:
405377
auth["oauth2"] = {"type": "oauth2", "in": "header", "key": "Authorization", "value": "Bearer " + self.access_token}
406378
return auth

Diff for: hubspot/cms/blogs/authors/api/blog_authors_api.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def archive_with_http_info(self, object_id, **kwargs): # noqa: E501
137137
header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # noqa: E501
138138

139139
# Authentication setting
140-
auth_settings = ["hapikey", "oauth2"] # noqa: E501
140+
auth_settings = ["oauth2"] # noqa: E501
141141

142142
response_types_map = {}
143143

@@ -263,7 +263,7 @@ def archive_batch_with_http_info(self, batch_input_string, **kwargs): # noqa: E
263263
header_params["Content-Type"] = content_types_list
264264

265265
# Authentication setting
266-
auth_settings = ["hapikey", "oauth2"] # noqa: E501
266+
auth_settings = ["oauth2"] # noqa: E501
267267

268268
response_types_map = {}
269269

@@ -389,7 +389,7 @@ def attach_to_lang_group_with_http_info(self, attach_to_lang_primary_request_v_n
389389
header_params["Content-Type"] = content_types_list
390390

391391
# Authentication setting
392-
auth_settings = ["hapikey", "oauth2"] # noqa: E501
392+
auth_settings = ["oauth2"] # noqa: E501
393393

394394
response_types_map = {}
395395

@@ -515,7 +515,7 @@ def create_with_http_info(self, blog_author, **kwargs): # noqa: E501
515515
header_params["Content-Type"] = content_types_list
516516

517517
# Authentication setting
518-
auth_settings = ["hapikey", "oauth2"] # noqa: E501
518+
auth_settings = ["oauth2"] # noqa: E501
519519

520520
response_types_map = {
521521
201: "BlogAuthor",
@@ -643,7 +643,7 @@ def create_batch_with_http_info(self, batch_input_blog_author, **kwargs): # noq
643643
header_params["Content-Type"] = content_types_list
644644

645645
# Authentication setting
646-
auth_settings = ["hapikey", "oauth2"] # noqa: E501
646+
auth_settings = ["oauth2"] # noqa: E501
647647

648648
response_types_map = {
649649
201: "BatchResponseBlogAuthor",
@@ -772,7 +772,7 @@ def create_lang_variation_with_http_info(self, blog_author_clone_request_v_next,
772772
header_params["Content-Type"] = content_types_list
773773

774774
# Authentication setting
775-
auth_settings = ["hapikey", "oauth2"] # noqa: E501
775+
auth_settings = ["oauth2"] # noqa: E501
776776

777777
response_types_map = {
778778
200: "BlogAuthor",
@@ -900,7 +900,7 @@ def detach_from_lang_group_with_http_info(self, detach_from_lang_group_request_v
900900
header_params["Content-Type"] = content_types_list
901901

902902
# Authentication setting
903-
auth_settings = ["hapikey", "oauth2"] # noqa: E501
903+
auth_settings = ["oauth2"] # noqa: E501
904904

905905
response_types_map = {}
906906

@@ -1027,7 +1027,7 @@ def get_by_id_with_http_info(self, object_id, **kwargs): # noqa: E501
10271027
header_params["Accept"] = self.api_client.select_header_accept(["application/json", "*/*"]) # noqa: E501
10281028

10291029
# Authentication setting
1030-
auth_settings = ["hapikey", "oauth2"] # noqa: E501
1030+
auth_settings = ["oauth2"] # noqa: E501
10311031

10321032
response_types_map = {
10331033
200: "BlogAuthor",
@@ -1202,7 +1202,7 @@ def get_page_with_http_info(self, **kwargs): # noqa: E501
12021202
header_params["Accept"] = self.api_client.select_header_accept(["application/json", "*/*"]) # noqa: E501
12031203

12041204
# Authentication setting
1205-
auth_settings = ["hapikey", "oauth2"] # noqa: E501
1205+
auth_settings = ["oauth2"] # noqa: E501
12061206

12071207
response_types_map = {
12081208
200: "CollectionResponseWithTotalBlogAuthorForwardPaging",
@@ -1336,7 +1336,7 @@ def read_batch_with_http_info(self, batch_input_string, **kwargs): # noqa: E501
13361336
header_params["Content-Type"] = content_types_list
13371337

13381338
# Authentication setting
1339-
auth_settings = ["hapikey", "oauth2"] # noqa: E501
1339+
auth_settings = ["oauth2"] # noqa: E501
13401340

13411341
response_types_map = {
13421342
200: "BatchResponseBlogAuthor",
@@ -1465,7 +1465,7 @@ def set_lang_primary_with_http_info(self, set_new_language_primary_request_v_nex
14651465
header_params["Content-Type"] = content_types_list
14661466

14671467
# Authentication setting
1468-
auth_settings = ["hapikey", "oauth2"] # noqa: E501
1468+
auth_settings = ["oauth2"] # noqa: E501
14691469

14701470
response_types_map = {}
14711471

@@ -1606,7 +1606,7 @@ def update_with_http_info(self, object_id, blog_author, **kwargs): # noqa: E501
16061606
header_params["Content-Type"] = content_types_list
16071607

16081608
# Authentication setting
1609-
auth_settings = ["hapikey", "oauth2"] # noqa: E501
1609+
auth_settings = ["oauth2"] # noqa: E501
16101610

16111611
response_types_map = {
16121612
200: "BlogAuthor",
@@ -1740,7 +1740,7 @@ def update_batch_with_http_info(self, batch_input_json_node, **kwargs): # noqa:
17401740
header_params["Content-Type"] = content_types_list
17411741

17421742
# Authentication setting
1743-
auth_settings = ["hapikey", "oauth2"] # noqa: E501
1743+
auth_settings = ["oauth2"] # noqa: E501
17441744

17451745
response_types_map = {
17461746
200: "BatchResponseBlogAuthor",
@@ -1869,7 +1869,7 @@ def update_langs_with_http_info(self, update_languages_request_v_next, **kwargs)
18691869
header_params["Content-Type"] = content_types_list
18701870

18711871
# Authentication setting
1872-
auth_settings = ["hapikey", "oauth2"] # noqa: E501
1872+
auth_settings = ["oauth2"] # noqa: E501
18731873

18741874
response_types_map = {}
18751875

0 commit comments

Comments
 (0)