Skip to content

Commit

Permalink
Merge pull request #290 from okta/email_templates_api
Browse files Browse the repository at this point in the history
  • Loading branch information
bretterer authored Mar 17, 2022
2 parents 5d4ffa5 + e393bcf commit 0ae9eaa
Show file tree
Hide file tree
Showing 117 changed files with 4,654 additions and 486 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Okta Python SDK Changelog

## v2.5.0
- Regenerate code using the [open API spec v2.11.1](https://github.com/okta/okta-management-openapi-spec/releases/tag/openapi-2.11.1)
- Updates client template to persist aiohttp and related logic
- Fixed copyright headers which had the incorrect starting year

_New resources:_
* Brand

_New models:_
* EmailTemplate
* EmailTemplateContent
* EmailTemplateCustomization
* EmailTemplateCustomizationRequest
* EmailTemplateTestTrequest
* IdpPolicyRuleAction
* IdpPolicyRuleActionProvider
## v2.4.0
- Regenerate code using the [open API spec v2.10.0](https://github.com/okta/okta-management-openapi-spec/releases/tag/openapi-2.10.0).
- Allow possibility to re-use http session.
Expand Down
2 changes: 1 addition & 1 deletion okta/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.4.0'
__version__ = '2.5.0'
14 changes: 14 additions & 0 deletions okta/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,16 @@
DomainValidationStatus = domain_validation_status.DomainValidationStatus
from okta.models import duration as duration
Duration = duration.Duration
from okta.models import email_template as email_template
EmailTemplate = email_template.EmailTemplate
from okta.models import email_template_content as email_template_content
EmailTemplateContent = email_template_content.EmailTemplateContent
from okta.models import email_template_customization as email_template_customization
EmailTemplateCustomization = email_template_customization.EmailTemplateCustomization
from okta.models import email_template_customization_request as email_template_customization_request
EmailTemplateCustomizationRequest = email_template_customization_request.EmailTemplateCustomizationRequest
from okta.models import email_template_test_request as email_template_test_request
EmailTemplateTestRequest = email_template_test_request.EmailTemplateTestRequest
from okta.models import email_template_touch_point_variant as email_template_touch_point_variant
EmailTemplateTouchPointVariant = email_template_touch_point_variant.EmailTemplateTouchPointVariant
from okta.models import email_user_factor as email_user_factor
Expand Down Expand Up @@ -334,6 +344,10 @@
IdentityProviderPolicy = identity_provider_policy.IdentityProviderPolicy
from okta.models import identity_provider_policy_rule_condition as identity_provider_policy_rule_condition
IdentityProviderPolicyRuleCondition = identity_provider_policy_rule_condition.IdentityProviderPolicyRuleCondition
from okta.models import idp_policy_rule_action as idp_policy_rule_action
IdpPolicyRuleAction = idp_policy_rule_action.IdpPolicyRuleAction
from okta.models import idp_policy_rule_action_provider as idp_policy_rule_action_provider
IdpPolicyRuleActionProvider = idp_policy_rule_action_provider.IdpPolicyRuleActionProvider
from okta.models import image_upload_response as image_upload_response
ImageUploadResponse = image_upload_response.ImageUploadResponse
from okta.models import inactivity_policy_rule_condition as inactivity_policy_rule_condition
Expand Down
2 changes: 1 addition & 1 deletion okta/models/access_policy.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/access_policy_constraint.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/access_policy_constraints.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/access_policy_rule.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/access_policy_rule_actions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/access_policy_rule_application_sign_on.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/access_policy_rule_conditions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/access_policy_rule_custom_condition.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/allowed_for_enum.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/application_feature.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2022 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/application_settings_notes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/authenticator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/authenticator_provider.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/authenticator_provider_configuration.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/authenticator_settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/authenticator_status.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/authenticator_type.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/brand.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/capabilities_create_object.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2022 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/capabilities_object.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2022 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/capabilities_update_object.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2022 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/change_enum.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2022 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/channel_binding.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/compliance.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/device_access_policy_rule_condition.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/dns_record.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/dns_record_type.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/domain.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/domain_certificate.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/domain_certificate_metadata.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/domain_certificate_source_type.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/domain_certificate_type.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/domain_list_response.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
2 changes: 1 addition & 1 deletion okta/models/domain_validation_status.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flake8: noqa
"""
Copyright 2021 - Present Okta, Inc.
Copyright 2020 - 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.
Expand Down
49 changes: 49 additions & 0 deletions okta/models/email_template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# flake8: noqa
"""
Copyright 2020 - 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.
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.
See the License for the specific language governing permissions and
limitations under the License.
"""

# AUTO-GENERATED! DO NOT EDIT FILE DIRECTLY
# SEE CONTRIBUTOR DOCUMENTATION

from okta.okta_object import OktaObject


class EmailTemplate(
OktaObject
):
"""
A class for EmailTemplate objects.
"""

def __init__(self, config=None):
super().__init__(config)
if config:
self.links = config["links"]\
if "links" in config else None
self.name = config["name"]\
if "name" in config else None
else:
self.links = None
self.name = None

def request_format(self):
parent_req_format = super().request_format()
current_obj_format = {
"_links": self.links,
"name": self.name
}
parent_req_format.update(current_obj_format)
return parent_req_format
Loading

0 comments on commit 0ae9eaa

Please sign in to comment.