brynq-sdk-brynq 3.0.0__tar.gz → 3.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of brynq-sdk-brynq might be problematic. Click here for more details.
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/PKG-INFO +1 -1
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq/credentials.py +1 -1
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq/customers.py +1 -1
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq/interfaces.py +1 -1
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq/mappings.py +2 -2
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq/organization_chart.py +2 -2
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq/roles.py +1 -1
- brynq_sdk_brynq-3.0.2/brynq_sdk_brynq/schemas/__init__.py +51 -0
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq/schemas/interfaces.py +2 -2
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq/users.py +1 -1
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq.egg-info/PKG-INFO +1 -1
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq.egg-info/SOURCES.txt +1 -0
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/setup.py +1 -1
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq/__init__.py +0 -0
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq/brynq.py +0 -0
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq/schemas/credentials.py +0 -0
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq/schemas/customers.py +0 -0
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq/schemas/organization_chart.py +0 -0
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq/schemas/roles.py +0 -0
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq/schemas/users.py +0 -0
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq/source_systems.py +0 -0
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq.egg-info/dependency_links.txt +0 -0
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq.egg-info/not-zip-safe +0 -0
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq.egg-info/requires.txt +0 -0
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq.egg-info/top_level.txt +0 -0
- {brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/setup.cfg +0 -0
|
@@ -2,7 +2,7 @@ from typing import List, Dict, Any, Optional
|
|
|
2
2
|
import requests
|
|
3
3
|
from requests import Response
|
|
4
4
|
from .schemas.customers import CustomerSchema, CustomerContractDetailsSchema
|
|
5
|
-
from brynq_sdk_functions
|
|
5
|
+
from brynq_sdk_functions import Functions
|
|
6
6
|
|
|
7
7
|
class Customers:
|
|
8
8
|
"""Class for interacting with BrynQ customer endpoints"""
|
|
@@ -2,7 +2,7 @@ from typing import Dict, List, Any, Optional
|
|
|
2
2
|
from .credentials import Credentials
|
|
3
3
|
from .mappings import Mappings
|
|
4
4
|
from .schemas.interfaces import Interface, InterfaceDetail, InterfaceConfig, Schedule, Scope, DevSettings
|
|
5
|
-
from brynq_sdk_functions
|
|
5
|
+
from brynq_sdk_functions import Functions
|
|
6
6
|
|
|
7
7
|
class Interfaces:
|
|
8
8
|
"""
|
|
@@ -2,8 +2,8 @@ import requests
|
|
|
2
2
|
import pandas as pd
|
|
3
3
|
from typing import Union, Literal, Any, Tuple, List, Dict
|
|
4
4
|
import warnings
|
|
5
|
-
from
|
|
6
|
-
from brynq_sdk_functions
|
|
5
|
+
from .schemas.interfaces import MappingItem
|
|
6
|
+
from brynq_sdk_functions import Functions
|
|
7
7
|
|
|
8
8
|
class MappingNotFoundError(Exception):
|
|
9
9
|
"""Raised when a requested mapping is not found"""
|
|
@@ -8,7 +8,7 @@ from .schemas.organization_chart import (
|
|
|
8
8
|
OrganizationNode,
|
|
9
9
|
OrganizationNodeCreate, OrganizationNodeUpdate
|
|
10
10
|
)
|
|
11
|
-
from brynq_sdk_functions
|
|
11
|
+
from brynq_sdk_functions import Functions
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
class OrganizationChart:
|
|
@@ -216,7 +216,7 @@ class OrganizationChart:
|
|
|
216
216
|
valid_data, _ = Functions.validate_pydantic_data(data, schema=OrganizationNodeUpdate)
|
|
217
217
|
|
|
218
218
|
response = self._brynq.session.put(
|
|
219
|
-
f"{self._brynq.url}organization-chart/nodes/{data[
|
|
219
|
+
f"{self._brynq.url}organization-chart/nodes/{data['id']}",
|
|
220
220
|
json=valid_data[0]
|
|
221
221
|
)
|
|
222
222
|
response.raise_for_status()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from typing import Dict, List, Any, Optional
|
|
2
2
|
import requests
|
|
3
3
|
from .schemas.roles import RoleSchema, CreateRoleRequest, RoleUser, DashboardRight, QlikDashboardRight
|
|
4
|
-
from brynq_sdk_functions
|
|
4
|
+
from brynq_sdk_functions import Functions
|
|
5
5
|
|
|
6
6
|
class Roles:
|
|
7
7
|
"""
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
from .credentials import CredentialsConfig, CredentialSource, CredentialData
|
|
2
|
+
from .customers import CustomerSchema, CustomerUsers, CustomerContractDetailsSchema
|
|
3
|
+
from .interfaces import Interface, InterfaceApps, InterfaceDetail, InterfaceConfig, Schedule, Scope, DevSettings, Frequency, TaskSchedule, MappingValue, MappingItem
|
|
4
|
+
from .organization_chart import OrganizationChartNode, OrganizationLayerCreate, OrganizationLayerUpdate, OrganizationLayerGet, OrganizationNode, OrganizationNodeCreate, OrganizationNodeUpdate
|
|
5
|
+
from .roles import DashboardRight, QlikDashboardRight, CreateRoleRequest, RoleUser, RoleSchema
|
|
6
|
+
from .users import UserProducts, UserCreate, UserUpdate, UserInvite, QlikDashboardRight, QlikDashboardRightsPayload, DashboardRight, DashboardRightsPayload, UserRolesPayload, UserEntitiesPayload, User, QlikAppUserAuthorization
|
|
7
|
+
from .interfaces import MappingValue
|
|
8
|
+
|
|
9
|
+
__all__ = [
|
|
10
|
+
"CredentialsConfig",
|
|
11
|
+
"CredentialSource",
|
|
12
|
+
"CredentialData",
|
|
13
|
+
"CustomerSchema",
|
|
14
|
+
"CustomerUsers",
|
|
15
|
+
"CustomerContractDetailsSchema",
|
|
16
|
+
"Interface",
|
|
17
|
+
"InterfaceApps",
|
|
18
|
+
"InterfaceDetail",
|
|
19
|
+
"InterfaceConfig",
|
|
20
|
+
"Schedule",
|
|
21
|
+
"Scope",
|
|
22
|
+
"DevSettings",
|
|
23
|
+
"Frequency",
|
|
24
|
+
"TaskSchedule",
|
|
25
|
+
"MappingValue",
|
|
26
|
+
"MappingItem",
|
|
27
|
+
"OrganizationChartNode",
|
|
28
|
+
"OrganizationLayerCreate",
|
|
29
|
+
"OrganizationLayerUpdate",
|
|
30
|
+
"OrganizationLayerGet",
|
|
31
|
+
"OrganizationNode",
|
|
32
|
+
"OrganizationNodeCreate",
|
|
33
|
+
"OrganizationNodeUpdate",
|
|
34
|
+
"DashboardRight",
|
|
35
|
+
"QlikDashboardRight",
|
|
36
|
+
"CreateRoleRequest",
|
|
37
|
+
"RoleUser",
|
|
38
|
+
"UserProducts",
|
|
39
|
+
"UserCreate",
|
|
40
|
+
"UserUpdate",
|
|
41
|
+
"UserInvite",
|
|
42
|
+
"QlikDashboardRight",
|
|
43
|
+
"QlikDashboardRightsPayload",
|
|
44
|
+
"DashboardRight",
|
|
45
|
+
"DashboardRightsPayload",
|
|
46
|
+
"UserRolesPayload",
|
|
47
|
+
"UserEntitiesPayload",
|
|
48
|
+
"User",
|
|
49
|
+
"QlikAppUserAuthorization",
|
|
50
|
+
"MappingValue",
|
|
51
|
+
]
|
|
@@ -95,8 +95,8 @@ class InterfaceDetail(BaseModel):
|
|
|
95
95
|
|
|
96
96
|
class MappingValue(BaseModel):
|
|
97
97
|
"""Schema for a single mapping value"""
|
|
98
|
-
input: Dict[
|
|
99
|
-
output: Dict[
|
|
98
|
+
input: Dict[Any, Any] = Field(..., description="Input mapping key-value pairs")
|
|
99
|
+
output: Dict[Any, Any] = Field(..., description="Output mapping key-value pairs")
|
|
100
100
|
|
|
101
101
|
class Config:
|
|
102
102
|
frozen = True
|
|
@@ -6,7 +6,7 @@ from .schemas.users import (
|
|
|
6
6
|
QlikDashboardRightsPayload, DashboardRightsPayload,
|
|
7
7
|
UserRolesPayload, QlikAppUserAuthorization, UserEntitiesPayload
|
|
8
8
|
)
|
|
9
|
-
from brynq_sdk_functions
|
|
9
|
+
from brynq_sdk_functions import Functions
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class Users:
|
|
@@ -15,6 +15,7 @@ brynq_sdk_brynq.egg-info/dependency_links.txt
|
|
|
15
15
|
brynq_sdk_brynq.egg-info/not-zip-safe
|
|
16
16
|
brynq_sdk_brynq.egg-info/requires.txt
|
|
17
17
|
brynq_sdk_brynq.egg-info/top_level.txt
|
|
18
|
+
brynq_sdk_brynq/schemas/__init__.py
|
|
18
19
|
brynq_sdk_brynq/schemas/credentials.py
|
|
19
20
|
brynq_sdk_brynq/schemas/customers.py
|
|
20
21
|
brynq_sdk_brynq/schemas/interfaces.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq/schemas/organization_chart.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{brynq_sdk_brynq-3.0.0 → brynq_sdk_brynq-3.0.2}/brynq_sdk_brynq.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|