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.
Files changed (31) hide show
  1. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/PKG-INFO +1 -1
  2. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/pyproject.toml +1 -1
  3. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/api_client.py +1 -1
  4. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/configuration.py +6 -2
  5. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/existing_permission.py +2 -2
  6. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/member.py +2 -2
  7. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/permission.py +2 -2
  8. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/role.py +2 -2
  9. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/user_membership.py +2 -2
  10. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/LICENSE.md +0 -0
  11. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/NOTICE.txt +0 -0
  12. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/README.md +0 -0
  13. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/__init__.py +0 -0
  14. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/api/__init__.py +0 -0
  15. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/api/default_api.py +0 -0
  16. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/api_response.py +0 -0
  17. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/exceptions.py +0 -0
  18. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/__init__.py +0 -0
  19. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/add_members_payload.py +0 -0
  20. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/error_response.py +0 -0
  21. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/list_members_response.py +0 -0
  22. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/list_permissions_response.py +0 -0
  23. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/list_user_memberships_response.py +0 -0
  24. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/list_user_permissions_response.py +0 -0
  25. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/members_response.py +0 -0
  26. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/remove_members_payload.py +0 -0
  27. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/roles_response.py +0 -0
  28. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/user_permission.py +0 -0
  29. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/models/zookie.py +0 -0
  30. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/py.typed +0 -0
  31. {stackit_authorization-0.2.2 → stackit_authorization-0.2.4}/src/stackit/authorization/rest.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stackit-authorization
3
- Version: 0.2.2
3
+ Version: 0.2.4
4
4
  Summary: STACKIT Membership API
5
5
  Author: STACKIT Developer Tools
6
6
  Author-email: developer-tools@stackit.cloud
@@ -3,7 +3,7 @@ name = "stackit-authorization"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "stackit-authorization"
6
- version = "v0.2.2"
6
+ version = "v0.2.4"
7
7
  authors = [
8
8
  "STACKIT Developer Tools <developer-tools@stackit.cloud>",
9
9
  ]
@@ -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 = "OpenAPI-Generator/1.0.0/python"
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](?:-?\.?[a-z]){1,63}$", value):
38
- raise ValueError(r"must validate the regular expression /^[a-z](?:-?\.?[a-z]){1,63}$/")
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](?:-?\.?[a-z]){1,63}$", value):
38
- raise ValueError(r"must validate the regular expression /^[a-z](?:-?\.?[a-z]){1,63}$/")
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](?:-?\.?[a-z]){1,63}$", value):
38
- raise ValueError(r"must validate the regular expression /^[a-z](?:-?\.?[a-z]){1,63}$/")
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(
@@ -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](?:-?\.?[a-z]){1,63}$", value):
52
- raise ValueError(r"must validate the regular expression /^[a-z](?:-?\.?[a-z]){1,63}$/")
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](?:-?\.?[a-z]){1,63}$", value):
54
- raise ValueError(r"must validate the regular expression /^[a-z](?:-?\.?[a-z]){1,63}$/")
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(