Skip to content

Commit

Permalink
Add v2024 and add validation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-mairose-sp committed Aug 6, 2024
1 parent 4be06de commit 0987827
Show file tree
Hide file tree
Showing 3,169 changed files with 441,193 additions and 2,744 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
5,891 changes: 3,157 additions & 2,734 deletions .openapi-generator/FILES

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions sailpoint/beta/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@
ServiceException
)

class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKCYAN = '\033[96m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'


class ApiClient:
"""Generic API client for OpenAPI client library builds.
Expand Down Expand Up @@ -186,6 +197,11 @@ def param_serialize(
# Add Authentication header to request
header_params['Authorization'] = self.configuration.access_token

if not self.configuration.experimental and 'X-SailPoint-Experimental' in header_params:
raise Exception(f"{bcolors.WARNING}You are using Experimental APIs. Set configuration.experimental = True to enable these APIs in the SDK.{bcolors.ENDC}")
elif self.configuration.experimental == True and 'X-SailPoint-Experimental' in header_params:
print(f"{bcolors.WARNING}Warning: You are using Experimental APIs{bcolors.ENDC}")

# path parameters
if path_params:
path_params = self.sanitize_for_serialization(path_params)
Expand Down
2 changes: 1 addition & 1 deletion sailpoint/beta/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def from_response(
def __str__(self):
"""Custom error messages for exception"""
error_message = "({0})\n"\
"Reason: {1}\n".format(self.status, self.reason)
"Reason: {1}\n".format(self.status, self.body)
if self.headers:
error_message += "HTTP response headers: {0}\n".format(
self.headers)
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 @@ -36,7 +36,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 @@ -53,8 +53,8 @@ def make_instance(self, include_optional) -> NonEmployeeRequestWithoutApprovalIt
approval_status = 'APPROVED',
comment = '',
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 @@ -36,7 +36,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
1,081 changes: 1,081 additions & 0 deletions sailpoint/v2024/__init__.py

Large diffs are not rendered by default.

84 changes: 84 additions & 0 deletions sailpoint/v2024/api/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# flake8: noqa

# import apis into api package
from sailpoint.v2024.api.access_model_metadata_api import AccessModelMetadataApi
from sailpoint.v2024.api.access_profiles_api import AccessProfilesApi
from sailpoint.v2024.api.access_request_approvals_api import AccessRequestApprovalsApi
from sailpoint.v2024.api.access_request_identity_metrics_api import AccessRequestIdentityMetricsApi
from sailpoint.v2024.api.access_requests_api import AccessRequestsApi
from sailpoint.v2024.api.account_activities_api import AccountActivitiesApi
from sailpoint.v2024.api.account_aggregations_api import AccountAggregationsApi
from sailpoint.v2024.api.account_usages_api import AccountUsagesApi
from sailpoint.v2024.api.accounts_api import AccountsApi
from sailpoint.v2024.api.application_discovery_api import ApplicationDiscoveryApi
from sailpoint.v2024.api.approvals_api import ApprovalsApi
from sailpoint.v2024.api.auth_profile_api import AuthProfileApi
from sailpoint.v2024.api.auth_users_api import AuthUsersApi
from sailpoint.v2024.api.branding_api import BrandingApi
from sailpoint.v2024.api.certification_campaign_filters_api import CertificationCampaignFiltersApi
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
from sailpoint.v2024.api.certification_summaries_api import CertificationSummariesApi
from sailpoint.v2024.api.certifications_api import CertificationsApi
from sailpoint.v2024.api.configuration_hub_api import ConfigurationHubApi
from sailpoint.v2024.api.connector_rule_management_api import ConnectorRuleManagementApi
from sailpoint.v2024.api.connectors_api import ConnectorsApi
from sailpoint.v2024.api.custom_forms_api import CustomFormsApi
from sailpoint.v2024.api.custom_password_instructions_api import CustomPasswordInstructionsApi
from sailpoint.v2024.api.entitlements_api import EntitlementsApi
from sailpoint.v2024.api.global_tenant_security_settings_api import GlobalTenantSecuritySettingsApi
from sailpoint.v2024.api.governance_groups_api import GovernanceGroupsApi
from sailpoint.v2024.api.iai_access_request_recommendations_api import IAIAccessRequestRecommendationsApi
from sailpoint.v2024.api.iai_common_access_api import IAICommonAccessApi
from sailpoint.v2024.api.iai_outliers_api import IAIOutliersApi
from sailpoint.v2024.api.iai_peer_group_strategies_api import IAIPeerGroupStrategiesApi
from sailpoint.v2024.api.iai_recommendations_api import IAIRecommendationsApi
from sailpoint.v2024.api.iai_role_mining_api import IAIRoleMiningApi
from sailpoint.v2024.api.icons_api import IconsApi
from sailpoint.v2024.api.identities_api import IdentitiesApi
from sailpoint.v2024.api.identity_attributes_api import IdentityAttributesApi
from sailpoint.v2024.api.identity_history_api import IdentityHistoryApi
from sailpoint.v2024.api.identity_profiles_api import IdentityProfilesApi
from sailpoint.v2024.api.lifecycle_states_api import LifecycleStatesApi
from sailpoint.v2024.api.mfa_configuration_api import MFAConfigurationApi
from sailpoint.v2024.api.managed_clients_api import ManagedClientsApi
from sailpoint.v2024.api.managed_clusters_api import ManagedClustersApi
from sailpoint.v2024.api.non_employee_lifecycle_management_api import NonEmployeeLifecycleManagementApi
from sailpoint.v2024.api.notifications_api import NotificationsApi
from sailpoint.v2024.api.o_auth_clients_api import OAuthClientsApi
from sailpoint.v2024.api.org_config_api import OrgConfigApi
from sailpoint.v2024.api.password_configuration_api import PasswordConfigurationApi
from sailpoint.v2024.api.password_dictionary_api import PasswordDictionaryApi
from sailpoint.v2024.api.password_management_api import PasswordManagementApi
from sailpoint.v2024.api.password_policies_api import PasswordPoliciesApi
from sailpoint.v2024.api.password_sync_groups_api import PasswordSyncGroupsApi
from sailpoint.v2024.api.personal_access_tokens_api import PersonalAccessTokensApi
from sailpoint.v2024.api.public_identities_api import PublicIdentitiesApi
from sailpoint.v2024.api.public_identities_config_api import PublicIdentitiesConfigApi
from sailpoint.v2024.api.reports_data_extraction_api import ReportsDataExtractionApi
from sailpoint.v2024.api.requestable_objects_api import RequestableObjectsApi
from sailpoint.v2024.api.role_insights_api import RoleInsightsApi
from sailpoint.v2024.api.roles_api import RolesApi
from sailpoint.v2024.api.sim_integrations_api import SIMIntegrationsApi
from sailpoint.v2024.api.sod_policies_api import SODPoliciesApi
from sailpoint.v2024.api.sod_violations_api import SODViolationsApi
from sailpoint.v2024.api.sp_config_api import SPConfigApi
from sailpoint.v2024.api.saved_search_api import SavedSearchApi
from sailpoint.v2024.api.scheduled_search_api import ScheduledSearchApi
from sailpoint.v2024.api.search_api import SearchApi
from sailpoint.v2024.api.search_attribute_configuration_api import SearchAttributeConfigurationApi
from sailpoint.v2024.api.segments_api import SegmentsApi
from sailpoint.v2024.api.service_desk_integration_api import ServiceDeskIntegrationApi
from sailpoint.v2024.api.source_usages_api import SourceUsagesApi
from sailpoint.v2024.api.sources_api import SourcesApi
from sailpoint.v2024.api.suggested_entitlement_description_api import SuggestedEntitlementDescriptionApi
from sailpoint.v2024.api.tagged_objects_api import TaggedObjectsApi
from sailpoint.v2024.api.task_management_api import TaskManagementApi
from sailpoint.v2024.api.tenant_api import TenantApi
from sailpoint.v2024.api.transforms_api import TransformsApi
from sailpoint.v2024.api.triggers_api import TriggersApi
from sailpoint.v2024.api.ui_metadata_api import UIMetadataApi
from sailpoint.v2024.api.vendor_connector_mappings_api import VendorConnectorMappingsApi
from sailpoint.v2024.api.work_items_api import WorkItemsApi
from sailpoint.v2024.api.work_reassignment_api import WorkReassignmentApi
from sailpoint.v2024.api.workflows_api import WorkflowsApi

Loading

0 comments on commit 0987827

Please sign in to comment.