stackit-authorization 0.2.2__tar.gz → 0.2.4__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.
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/PKG-INFO +1 -1
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/pyproject.toml +1 -1
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/api_client.py +1 -1
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/configuration.py +6 -2
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/existing_permission.py +2 -2
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/member.py +2 -2
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/permission.py +2 -2
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/role.py +2 -2
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/user_membership.py +2 -2
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/LICENSE.md +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/NOTICE.txt +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/README.md +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/__init__.py +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/api/__init__.py +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/api/default_api.py +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/api_response.py +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/exceptions.py +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/__init__.py +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/add_members_payload.py +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/error_response.py +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/list_members_response.py +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/list_permissions_response.py +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/list_user_memberships_response.py +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/list_user_permissions_response.py +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/members_response.py +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/remove_members_payload.py +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/roles_response.py +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/user_permission.py +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/zookie.py +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/py.typed +0 -0
- {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/rest.py +0 -0
{stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/api_client.py
RENAMED
|
@@ -81,7 +81,7 @@ class ApiClient:
|
|
|
81
81
|
self.default_headers[header_name] = header_value
|
|
82
82
|
self.cookie = cookie
|
|
83
83
|
# Set default User-Agent.
|
|
84
|
-
self.user_agent = "
|
|
84
|
+
self.user_agent = "stackit-sdk-python/authorization"
|
|
85
85
|
|
|
86
86
|
def __enter__(self):
|
|
87
87
|
return self
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
+
import sys
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
|
|
7
|
+
|
|
3
8
|
"""
|
|
4
9
|
STACKIT Membership API
|
|
5
10
|
|
|
@@ -11,8 +16,6 @@
|
|
|
11
16
|
Do not edit the class manually.
|
|
12
17
|
""" # noqa: E501 docstring might be too long
|
|
13
18
|
|
|
14
|
-
import os
|
|
15
|
-
|
|
16
19
|
|
|
17
20
|
class HostConfiguration:
|
|
18
21
|
def __init__(
|
|
@@ -29,6 +32,7 @@ class HostConfiguration:
|
|
|
29
32
|
"as a function argument instead of being set in the client configuration.\n"
|
|
30
33
|
"Once all services have migrated, the methods to specify the region in the client configuration "
|
|
31
34
|
"will be removed.",
|
|
35
|
+
file=sys.stderr,
|
|
32
36
|
)
|
|
33
37
|
"""Constructor
|
|
34
38
|
"""
|
|
@@ -34,8 +34,8 @@ class ExistingPermission(BaseModel):
|
|
|
34
34
|
@field_validator("name")
|
|
35
35
|
def name_validate_regular_expression(cls, value):
|
|
36
36
|
"""Validates the regular expression"""
|
|
37
|
-
if not re.match(r"^[a-z](
|
|
38
|
-
raise ValueError(r"must validate the regular expression /^[a-z](
|
|
37
|
+
if not re.match(r"^[a-z](?:[-.]?[a-z]){1,63}$", value):
|
|
38
|
+
raise ValueError(r"must validate the regular expression /^[a-z](?:[-.]?[a-z]){1,63}$/")
|
|
39
39
|
return value
|
|
40
40
|
|
|
41
41
|
model_config = ConfigDict(
|
|
@@ -34,8 +34,8 @@ class Member(BaseModel):
|
|
|
34
34
|
@field_validator("role")
|
|
35
35
|
def role_validate_regular_expression(cls, value):
|
|
36
36
|
"""Validates the regular expression"""
|
|
37
|
-
if not re.match(r"^[a-z](
|
|
38
|
-
raise ValueError(r"must validate the regular expression /^[a-z](
|
|
37
|
+
if not re.match(r"^[a-z](?:[-.]?[a-z]){1,63}$", value):
|
|
38
|
+
raise ValueError(r"must validate the regular expression /^[a-z](?:[-.]?[a-z]){1,63}$/")
|
|
39
39
|
return value
|
|
40
40
|
|
|
41
41
|
model_config = ConfigDict(
|
|
@@ -34,8 +34,8 @@ class Permission(BaseModel):
|
|
|
34
34
|
@field_validator("name")
|
|
35
35
|
def name_validate_regular_expression(cls, value):
|
|
36
36
|
"""Validates the regular expression"""
|
|
37
|
-
if not re.match(r"^[a-z](
|
|
38
|
-
raise ValueError(r"must validate the regular expression /^[a-z](
|
|
37
|
+
if not re.match(r"^[a-z](?:[-.]?[a-z]){1,63}$", value):
|
|
38
|
+
raise ValueError(r"must validate the regular expression /^[a-z](?:[-.]?[a-z]){1,63}$/")
|
|
39
39
|
return value
|
|
40
40
|
|
|
41
41
|
model_config = ConfigDict(
|
{stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/role.py
RENAMED
|
@@ -48,8 +48,8 @@ class Role(BaseModel):
|
|
|
48
48
|
@field_validator("name")
|
|
49
49
|
def name_validate_regular_expression(cls, value):
|
|
50
50
|
"""Validates the regular expression"""
|
|
51
|
-
if not re.match(r"^[a-z](
|
|
52
|
-
raise ValueError(r"must validate the regular expression /^[a-z](
|
|
51
|
+
if not re.match(r"^[a-z](?:[-.]?[a-z]){1,63}$", value):
|
|
52
|
+
raise ValueError(r"must validate the regular expression /^[a-z](?:[-.]?[a-z]){1,63}$/")
|
|
53
53
|
return value
|
|
54
54
|
|
|
55
55
|
model_config = ConfigDict(
|
|
@@ -50,8 +50,8 @@ class UserMembership(BaseModel):
|
|
|
50
50
|
@field_validator("role")
|
|
51
51
|
def role_validate_regular_expression(cls, value):
|
|
52
52
|
"""Validates the regular expression"""
|
|
53
|
-
if not re.match(r"^[a-z](
|
|
54
|
-
raise ValueError(r"must validate the regular expression /^[a-z](
|
|
53
|
+
if not re.match(r"^[a-z](?:[-.]?[a-z]){1,63}$", value):
|
|
54
|
+
raise ValueError(r"must validate the regular expression /^[a-z](?:[-.]?[a-z]){1,63}$/")
|
|
55
55
|
return value
|
|
56
56
|
|
|
57
57
|
model_config = ConfigDict(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/py.typed
RENAMED
|
File without changes
|
{stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/rest.py
RENAMED
|
File without changes
|