Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 24 additions & 0 deletions .github/actions/build-sdk/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,30 @@ runs:
--enable-post-process-file
node sdk-resources/postscript.js ./sailpoint/v2026

- name: Build NERM SDK
shell: bash
run: |
rm -rf ./sailpoint/nerm
java -jar openapi-generator-cli.jar generate \
-i ${{ inputs.api-specs-path }}/nerm/openapi.yaml \
-g python -o . \
--global-property skipFormModel=false,apiDocs=true,modelDocs=true \
--config sdk-resources/nerm-config.yaml \
--enable-post-process-file
node sdk-resources/postscript.js ./sailpoint/nerm

- name: Build NERM V2025 SDK
shell: bash
run: |
rm -rf ./sailpoint/nerm/v2025
java -jar openapi-generator-cli.jar generate \
-i ${{ inputs.api-specs-path }}/nerm/v2025/v2025.yaml \
-g python -o . \
--global-property skipFormModel=false,apiDocs=true,modelDocs=true \
--config sdk-resources/v2025-nerm-config.yaml \
--enable-post-process-file
node sdk-resources/postscript.js ./sailpoint/nerm/v2025

- name: Build and Test
shell: bash
run: |
Expand Down
4,413 changes: 47 additions & 4,366 deletions .openapi-generator/FILES

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sailpoint/beta/docs/Models/AccountUsage.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Name | Type | Description | Notes
from sailpoint.beta.models.account_usage import AccountUsage

account_usage = AccountUsage(
var_date='Fri Apr 21 00:00:00 UTC 2023',
var_date='Thu Apr 20 20:00:00 EDT 2023',
count=10
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ data={description=Auditing},
approval_status='APPROVED',
comment='approved',
completion_date='2020-03-24T11:11:41.139-05:00',
start_date='Tue Mar 24 00:00:00 UTC 2020',
end_date='Thu Mar 25 00:00:00 UTC 2021',
start_date='Mon Mar 23 20:00:00 EDT 2020',
end_date='Wed Mar 24 20:00:00 EDT 2021',
modified='2020-03-24T11:11:41.139-05:00',
created='2020-03-24T11:11:41.139-05:00'
)
Expand Down
2 changes: 1 addition & 1 deletion sailpoint/beta/docs/Models/SourceUsage.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Name | Type | Description | Notes
from sailpoint.beta.models.source_usage import SourceUsage

source_usage = SourceUsage(
var_date='Fri Apr 21 00:00:00 UTC 2023',
var_date='Thu Apr 20 20:00:00 EDT 2023',
count=10.45
)

Expand Down
2 changes: 1 addition & 1 deletion sailpoint/beta/test/test_account_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> AccountUsage:
model = AccountUsage()
if include_optional:
return AccountUsage(
var_date = 'Fri Apr 21 00:00:00 UTC 2023',
var_date = 'Thu Apr 20 20:00:00 EDT 2023',
count = 10
)
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def make_instance(self, include_optional) -> NonEmployeeRequestWithoutApprovalIt
approval_status = 'APPROVED',
comment = 'approved',
completion_date = '2020-03-24T11:11:41.139-05:00',
start_date = 'Tue Mar 24 00:00:00 UTC 2020',
end_date = 'Thu Mar 25 00:00:00 UTC 2021',
start_date = 'Mon Mar 23 20:00:00 EDT 2020',
end_date = 'Wed Mar 24 20:00:00 EDT 2021',
modified = '2020-03-24T11:11:41.139-05:00',
created = '2020-03-24T11:11:41.139-05:00'
)
Expand Down
2 changes: 1 addition & 1 deletion sailpoint/beta/test/test_source_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> SourceUsage:
model = SourceUsage()
if include_optional:
return SourceUsage(
var_date = 'Fri Apr 21 00:00:00 UTC 2023',
var_date = 'Thu Apr 20 20:00:00 EDT 2023',
count = 10.45
)
else:
Expand Down
8 changes: 8 additions & 0 deletions sailpoint/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def is_socks_proxy_url(url):

class ConfigurationParams:
base_url = None
nerm_base_url = None
client_id = None
client_secret = None
token_url = None
Expand All @@ -45,6 +46,7 @@ def __init__(self, configurationParams: ConfigurationParams = None) -> None:
self.proxy = configurationParams.proxy if configurationParams and configurationParams.proxy else None
self.proxy_headers = configurationParams.proxy_headers if configurationParams and configurationParams.proxy_headers else None
self.verify_ssl = configurationParams.verify_ssl if configurationParams and configurationParams.verify_ssl else True
self.nerm_base_url = configurationParams.nerm_base_url if configurationParams and configurationParams.nerm_base_url is not None else defaultConfiguration.nerm_base_url

url = f"{self.token_url}"
if self.access_token == None:
Expand Down Expand Up @@ -167,6 +169,11 @@ def get_environment_params(self) -> ConfigurationParams:
if os.environ.get("SAIL_CLIENT_SECRET")
else None
)
config.nerm_base_url = (
os.environ.get("SAIL_NERM_BASE_URL")
if os.environ.get("SAIL_NERM_BASE_URL")
else None
)
config.token_url = str(config.base_url) + "/oauth/token"

return config
Expand All @@ -181,6 +188,7 @@ def get_local_params(self) -> ConfigurationParams:
config.base_url = data["BaseURL"]
config.client_id = data["ClientId"]
config.client_secret = data["ClientSecret"]
config.nerm_base_url = data["NermBaseUrl"]
config.token_url = config.base_url + "/oauth/token"

return config
Expand Down
19 changes: 19 additions & 0 deletions sailpoint/nerm/Index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
id: models
title: Models
pagination_label: Models
sidebar_label: Models
sidebar_key: v2025-python-models
sidebar_position: 3
sidebar_class_name: models
keywords: ['python', 'Python', 'sdk', 'models']
slug: /tools/sdk/python/v2025/models
tags: ['SDK', 'Software Development Kit', 'v2025', 'models']
---

The Python SDK uses data models to structure and manage data within the API. These models provide essential details about the data, including their attributes, data types, and how the models relate to each other. Understanding these models is crucial to effectively interact with the API.

## Key Features
- Attributes: Describe each attribute, including its name, data type, and whether it's required.
- Validation & Constraints: Highlight any rules or limitations for the attributes, such as format or length limits.
- Example: Provides a sample of how the API uses the model.
Empty file added sailpoint/nerm/__init__.py
Empty file.
39 changes: 39 additions & 0 deletions sailpoint/nerm/api/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# flake8: noqa

# import apis into api package
from sailpoint.nerm.api.advanced_search_api import AdvancedSearchApi
from sailpoint.nerm.api.attribute_options_api import AttributeOptionsApi
from sailpoint.nerm.api.attributes_api import AttributesApi
from sailpoint.nerm.api.audits_api import AuditsApi
from sailpoint.nerm.api.consolidation_api import ConsolidationApi
from sailpoint.nerm.api.delegations_api import DelegationsApi
from sailpoint.nerm.api.form_attributes_api import FormAttributesApi
from sailpoint.nerm.api.forms_api import FormsApi
from sailpoint.nerm.api.identity_proofing_results_api import IdentityProofingResultsApi
from sailpoint.nerm.api.isc_accounts_api import IscAccountsApi
from sailpoint.nerm.api.job_status_api import JobStatusApi
from sailpoint.nerm.api.languages_api import LanguagesApi
from sailpoint.nerm.api.page_content_translations_api import PageContentTranslationsApi
from sailpoint.nerm.api.page_contents_api import PageContentsApi
from sailpoint.nerm.api.page_elements_api import PageElementsApi
from sailpoint.nerm.api.pages_api import PagesApi
from sailpoint.nerm.api.permissions_api import PermissionsApi
from sailpoint.nerm.api.profile_type_roles_api import ProfileTypeRolesApi
from sailpoint.nerm.api.profile_types_api import ProfileTypesApi
from sailpoint.nerm.api.profiles_api import ProfilesApi
from sailpoint.nerm.api.risk_levels_api import RiskLevelsApi
from sailpoint.nerm.api.risk_scores_api import RiskScoresApi
from sailpoint.nerm.api.role_profiles_api import RoleProfilesApi
from sailpoint.nerm.api.roles_api import RolesApi
from sailpoint.nerm.api.synced_attributes_api import SyncedAttributesApi
from sailpoint.nerm.api.system_role_permissions_api import SystemRolePermissionsApi
from sailpoint.nerm.api.system_roles_api import SystemRolesApi
from sailpoint.nerm.api.user_managers_api import UserManagersApi
from sailpoint.nerm.api.user_profiles_api import UserProfilesApi
from sailpoint.nerm.api.user_roles_api import UserRolesApi
from sailpoint.nerm.api.users_api import UsersApi
from sailpoint.nerm.api.workflow_action_performer_api import WorkflowActionPerformerApi
from sailpoint.nerm.api.workflow_actions_api import WorkflowActionsApi
from sailpoint.nerm.api.workflow_sessions_api import WorkflowSessionsApi
from sailpoint.nerm.api.workflows_api import WorkflowsApi

Loading
Loading