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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sailpoint/beta/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ def param_serialize(
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}")
if not self.configuration.suppress_experimental_warnings:
print(f"{bcolors.WARNING}Warning: You are using Experimental APIs ({resource_path}){bcolors.ENDC}")

# path parameters
if path_params:
Expand Down
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
11 changes: 6 additions & 5 deletions sailpoint/configuration.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import json
import os
import copy
import http.client as httplib
import json
import logging
import multiprocessing
import sys
import os
import ssl
import urllib3
import sys

import http.client as httplib
import urllib3

SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"}

Expand Down Expand Up @@ -51,6 +51,7 @@ def __init__(self, configurationParams: ConfigurationParams = None) -> None:
self.access_token = self.get_access_token(url, self.client_id, self.client_secret, self.proxy, self.proxy_headers, self.verify_ssl)

self.experimental = False
self.suppress_experimental_warnings = False

self.temp_folder_path = None
"""Temp file folder for downloading files
Expand Down
3 changes: 2 additions & 1 deletion sailpoint/v2024/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ def param_serialize(
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}")
if not self.configuration.suppress_experimental_warnings:
print(f"{bcolors.WARNING}Warning: You are using Experimental APIs ({resource_path}){bcolors.ENDC}")

# path parameters
if path_params:
Expand Down
2 changes: 1 addition & 1 deletion sailpoint/v2024/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.v2024.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/v2024/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.v2024.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/v2024/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/v2024/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
3 changes: 2 additions & 1 deletion sailpoint/v2025/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ def param_serialize(
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}")
if not self.configuration.suppress_experimental_warnings:
print(f"{bcolors.WARNING}Warning: You are using Experimental APIs ({resource_path}){bcolors.ENDC}")

# path parameters
if path_params:
Expand Down
2 changes: 1 addition & 1 deletion sailpoint/v2025/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.v2025.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/v2025/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.v2025.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/v2025/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/v2025/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
3 changes: 2 additions & 1 deletion sailpoint/v3/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ def param_serialize(
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}")
if not self.configuration.suppress_experimental_warnings:
print(f"{bcolors.WARNING}Warning: You are using Experimental APIs ({resource_path}){bcolors.ENDC}")

# path parameters
if path_params:
Expand Down
2 changes: 1 addition & 1 deletion sailpoint/v3/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.v3.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/v3/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.v3.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/v3/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/v3/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
3 changes: 2 additions & 1 deletion sdk-resources/resources/api_client.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ class ApiClient:
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}")
if not self.configuration.suppress_experimental_warnings:
print(f"{bcolors.WARNING}Warning: You are using Experimental APIs ({resource_path}){bcolors.ENDC}")

# path parameters
if path_params:
Expand Down