-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #347 from okta/jabro-okta-575314-update-spec-version
- Loading branch information
Showing
27 changed files
with
859 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '2.8.0' | ||
__version__ = '2.9.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# 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 ClientSecret( | ||
OktaObject | ||
): | ||
""" | ||
A class for ClientSecret objects. | ||
""" | ||
|
||
def __init__(self, config=None): | ||
super().__init__(config) | ||
if config: | ||
self.links = config["links"]\ | ||
if "links" in config else None | ||
if "_links" in config: | ||
self.links = config["_links"] | ||
self.client_secret = config["clientSecret"]\ | ||
if "clientSecret" in config else None | ||
self.created = config["created"]\ | ||
if "created" in config else None | ||
self.id = config["id"]\ | ||
if "id" in config else None | ||
self.last_updated = config["lastUpdated"]\ | ||
if "lastUpdated" in config else None | ||
self.secret_hash = config["secretHash"]\ | ||
if "secretHash" in config else None | ||
self.status = config["status"]\ | ||
if "status" in config else None | ||
else: | ||
self.links = None | ||
self.client_secret = None | ||
self.created = None | ||
self.id = None | ||
self.last_updated = None | ||
self.secret_hash = None | ||
self.status = None | ||
|
||
def request_format(self): | ||
parent_req_format = super().request_format() | ||
current_obj_format = { | ||
"_links": self.links, | ||
"client_secret": self.client_secret, | ||
"created": self.created, | ||
"id": self.id, | ||
"lastUpdated": self.last_updated, | ||
"secret_hash": self.secret_hash, | ||
"status": self.status | ||
} | ||
parent_req_format.update(current_obj_format) | ||
return parent_req_format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# 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 ClientSecretMetadata( | ||
OktaObject | ||
): | ||
""" | ||
A class for ClientSecretMetadata objects. | ||
""" | ||
|
||
def __init__(self, config=None): | ||
super().__init__(config) | ||
if config: | ||
self.client_secret = config["clientSecret"]\ | ||
if "clientSecret" in config else None | ||
else: | ||
self.client_secret = None | ||
|
||
def request_format(self): | ||
parent_req_format = super().request_format() | ||
current_obj_format = { | ||
"client_secret": self.client_secret | ||
} | ||
parent_req_format.update(current_obj_format) | ||
return parent_req_format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# 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.models.policy\ | ||
import Policy | ||
from okta.models.policy_type import PolicyType | ||
|
||
|
||
class MultifactorEnrollmentPolicy( | ||
Policy | ||
): | ||
""" | ||
A class for MultifactorEnrollmentPolicy objects. | ||
""" | ||
|
||
def __init__(self, config=None): | ||
super().__init__(config) | ||
pass | ||
|
||
def request_format(self): | ||
parent_req_format = super().request_format() | ||
current_obj_format = { | ||
} | ||
parent_req_format.update(current_obj_format) | ||
return parent_req_format |
65 changes: 65 additions & 0 deletions
65
okta/models/multifactor_enrollment_policy_authenticator_settings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# 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 | ||
from okta.models import multifactor_enrollment_policy_authenticator_type\ | ||
as multifactor_enrollment_policy_authenticator_type | ||
|
||
|
||
class MultifactorEnrollmentPolicyAuthenticatorSettings( | ||
OktaObject | ||
): | ||
""" | ||
A class for MultifactorEnrollmentPolicyAuthenticatorSettings objects. | ||
""" | ||
|
||
def __init__(self, config=None): | ||
super().__init__(config) | ||
if config: | ||
self.constraints = config["constraints"]\ | ||
if "constraints" in config else None | ||
self.enroll = config["enroll"]\ | ||
if "enroll" in config else None | ||
if "key" in config: | ||
if isinstance(config["key"], | ||
multifactor_enrollment_policy_authenticator_type.MultifactorEnrollmentPolicyAuthenticatorType): | ||
self.key = config["key"] | ||
elif config["key"] is not None: | ||
self.key = multifactor_enrollment_policy_authenticator_type.MultifactorEnrollmentPolicyAuthenticatorType( | ||
config["key"].upper() | ||
) | ||
else: | ||
self.key = None | ||
else: | ||
self.key = None | ||
else: | ||
self.constraints = None | ||
self.enroll = None | ||
self.key = None | ||
|
||
def request_format(self): | ||
parent_req_format = super().request_format() | ||
current_obj_format = { | ||
"constraints": self.constraints, | ||
"enroll": self.enroll, | ||
"key": self.key | ||
} | ||
parent_req_format.update(current_obj_format) | ||
return parent_req_format |
34 changes: 34 additions & 0 deletions
34
okta/models/multifactor_enrollment_policy_authenticator_status.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# 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 aenum import MultiValueEnum | ||
|
||
|
||
class MultifactorEnrollmentPolicyAuthenticatorStatus( | ||
str, | ||
MultiValueEnum | ||
): | ||
""" | ||
An enumeration class for MultifactorEnrollmentPolicyAuthenticatorStatus. | ||
""" | ||
|
||
NOT_ALLOWED = "NOT_ALLOWED", "not_allowed" | ||
OPTIONAL = "OPTIONAL", "optional" | ||
REQUIRED = "REQUIRED", "required" |
Oops, something went wrong.