Skip to content
Closed
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
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ orbs:

jobs:
build_and_test:
executor: python/default
docker:
- image: cimg/python:3.10
steps:
- checkout
- python/install-packages:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v3
Expand Down
4,756 changes: 1,918 additions & 2,838 deletions okta/__init__.py

Large diffs are not rendered by default.

33 changes: 22 additions & 11 deletions okta/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# The Okta software accompanied by this notice is provided pursuant to the following terms:
# Copyright © 2025-Present, Okta, Inc.
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
# License.
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS
# IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and limitations under the License.
# coding: utf-8

Expand All @@ -14,19 +16,25 @@
from okta.api.api_token_api import ApiTokenApi
from okta.api.application_api import ApplicationApi
from okta.api.application_connections_api import ApplicationConnectionsApi
from okta.api.application_cross_app_access_connections_api import ApplicationCrossAppAccessConnectionsApi
from okta.api.application_cross_app_access_connections_api import (
ApplicationCrossAppAccessConnectionsApi,
)
from okta.api.application_features_api import ApplicationFeaturesApi
from okta.api.application_grants_api import ApplicationGrantsApi
from okta.api.application_groups_api import ApplicationGroupsApi
from okta.api.application_logos_api import ApplicationLogosApi
from okta.api.application_policies_api import ApplicationPoliciesApi
from okta.api.application_sso_api import ApplicationSSOApi
from okta.api.application_sso_credential_key_api import ApplicationSSOCredentialKeyApi
from okta.api.application_sso_federated_claims_api import ApplicationSSOFederatedClaimsApi
from okta.api.application_sso_federated_claims_api import (
ApplicationSSOFederatedClaimsApi,
)
from okta.api.application_sso_public_keys_api import ApplicationSSOPublicKeysApi
from okta.api.application_tokens_api import ApplicationTokensApi
from okta.api.application_users_api import ApplicationUsersApi
from okta.api.associated_domain_customizations_api import AssociatedDomainCustomizationsApi
from okta.api.associated_domain_customizations_api import (
AssociatedDomainCustomizationsApi,
)
from okta.api.attack_protection_api import AttackProtectionApi
from okta.api.authenticator_api import AuthenticatorApi
from okta.api.authorization_server_api import AuthorizationServerApi
Expand Down Expand Up @@ -68,7 +76,9 @@
from okta.api.linked_object_api import LinkedObjectApi
from okta.api.log_stream_api import LogStreamApi
from okta.api.network_zone_api import NetworkZoneApi
from okta.api.o_auth2_resource_server_credentials_keys_api import OAuth2ResourceServerCredentialsKeysApi
from okta.api.o_auth2_resource_server_credentials_keys_api import (
OAuth2ResourceServerCredentialsKeysApi,
)
from okta.api.okta_application_settings_api import OktaApplicationSettingsApi
from okta.api.okta_personal_settings_api import OktaPersonalSettingsApi
from okta.api.org_creator_api import OrgCreatorApi
Expand All @@ -95,15 +105,17 @@
from okta.api.role_c_resource_set_api import RoleCResourceSetApi
from okta.api.role_c_resource_set_resource_api import RoleCResourceSetResourceApi
from okta.api.role_d_resource_set_binding_api import RoleDResourceSetBindingApi
from okta.api.role_d_resource_set_binding_member_api import RoleDResourceSetBindingMemberApi
from okta.api.role_d_resource_set_binding_member_api import (
RoleDResourceSetBindingMemberApi,
)
from okta.api.role_e_custom_api import RoleECustomApi
from okta.api.role_e_custom_permission_api import RoleECustomPermissionApi
from okta.api.ssf_receiver_api import SSFReceiverApi
from okta.api.ssf_security_event_token_api import SSFSecurityEventTokenApi
from okta.api.ssf_transmitter_api import SSFTransmitterApi
from okta.api.schema_api import SchemaApi
from okta.api.service_account_api import ServiceAccountApi
from okta.api.session_api import SessionApi
from okta.api.ssf_receiver_api import SSFReceiverApi
from okta.api.ssf_security_event_token_api import SSFSecurityEventTokenApi
from okta.api.ssf_transmitter_api import SSFTransmitterApi
from okta.api.subscription_api import SubscriptionApi
from okta.api.system_log_api import SystemLogApi
from okta.api.template_api import TemplateApi
Expand All @@ -125,4 +137,3 @@
from okta.api.user_sessions_api import UserSessionsApi
from okta.api.user_type_api import UserTypeApi
from okta.api.web_authn_preregistration_api import WebAuthnPreregistrationApi

54 changes: 47 additions & 7 deletions okta/api/agent_pools_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ def _activate_agent_pools_update_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -375,7 +379,6 @@ def _create_agent_pools_update_serialize(
)
if _default_content_type is not None:
_header_params["Content-Type"] = _default_content_type

# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -544,6 +547,10 @@ def _deactivate_agent_pools_update_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -699,6 +706,10 @@ def _delete_agent_pools_update_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -867,6 +878,10 @@ def _get_agent_pools_update_instance_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -1028,6 +1043,10 @@ def _get_agent_pools_update_settings_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -1059,8 +1078,8 @@ async def list_agent_pools(
after: Annotated[
Optional[StrictStr],
Field(
description="The cursor to use for pagination. It is an opaque string that specifies your current location in "
"the list and is obtained from the `Link` response header. See [Pagination]("
description="The cursor to use for pagination. It is an opaque string that specifies your current location "
"in the list and is obtained from the `Link` response header. See [Pagination]("
"https://developer.okta.com/docs/api/#pagination) and [Link header]("
"https://developer.okta.com/docs/api/#link-header)."
),
Expand Down Expand Up @@ -1217,6 +1236,10 @@ def _list_agent_pools_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -1246,8 +1269,7 @@ async def list_agent_pools_updates(
Optional[StrictBool],
Field(
description="Return only scheduled or ad-hoc updates. If this parameter isn't provided, Okta returns the "
"entire "
"list of updates."
"entire list of updates."
),
] = None,
_request_timeout: Union[
Expand Down Expand Up @@ -1394,6 +1416,10 @@ def _list_agent_pools_updates_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -1562,6 +1588,10 @@ def _pause_agent_pools_update_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -1730,6 +1760,10 @@ def _resume_agent_pools_update_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -1899,6 +1933,10 @@ def _retry_agent_pools_update_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -2067,6 +2105,10 @@ def _stop_agent_pools_update_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -2252,7 +2294,6 @@ def _update_agent_pools_update_serialize(
)
if _default_content_type is not None:
_header_params["Content-Type"] = _default_content_type

# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -2431,7 +2472,6 @@ def _update_agent_pools_update_settings_serialize(
)
if _default_content_type is not None:
_header_params["Content-Type"] = _default_content_type

# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down
37 changes: 34 additions & 3 deletions okta/api/api_service_integrations_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ def _activate_api_service_integration_instance_secret_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -374,7 +378,6 @@ def _create_api_service_integration_instance_serialize(
)
if _default_content_type is not None:
_header_params["Content-Type"] = _default_content_type

# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -537,6 +540,10 @@ def _create_api_service_integration_instance_secret_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -708,6 +715,10 @@ def _deactivate_api_service_integration_instance_secret_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -858,6 +869,10 @@ def _delete_api_service_integration_instance_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -1016,6 +1031,10 @@ def _delete_api_service_integration_instance_secret_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -1177,6 +1196,10 @@ def _get_api_service_integration_instance_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down Expand Up @@ -1338,6 +1361,10 @@ def _list_api_service_integration_instance_secrets_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand All @@ -1362,8 +1389,8 @@ async def list_api_service_integration_instances(
after: Annotated[
Optional[StrictStr],
Field(
description="The cursor to use for pagination. It is an opaque string that specifies your current location in "
"the list and is obtained from the `Link` response header. See [Pagination]("
description="The cursor to use for pagination. It is an opaque string that specifies your current location "
"in the list and is obtained from the `Link` response header. See [Pagination]("
"https://developer.okta.com/docs/api/#pagination) and [Link header]("
"https://developer.okta.com/docs/api/#link-header)."
),
Expand Down Expand Up @@ -1507,6 +1534,10 @@ def _list_api_service_integration_instances_serialize(
# set the HTTP header `Accept`
_header_params["Accept"] = self.select_header_accept(["application/json"])

if _content_type:
_header_params["Content-Type"] = _content_type
else:
_header_params["Content-Type"] = "application/json"
# authentication setting
_auth_settings: List[str] = ["apiToken", "oauth2"]

Expand Down
Loading