stackit-authorization 0.2.2__py3-none-any.whl → 0.2.4__py3-none-any.whl

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.
@@ -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(
@@ -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
@@ -1,31 +1,31 @@
1
1
  stackit/authorization/__init__.py,sha256=atwST7bkBCrM0tNhQtffeLFMIRNmnzLkDfAE8Es4Z0M,2163
2
2
  stackit/authorization/api/__init__.py,sha256=abDM2wAFmiUFpX5OwvogfAZsHJ0xtTzY60DR5trPza8,108
3
3
  stackit/authorization/api/default_api.py,sha256=osiBofUFBbci97AbV_3yDP5CYgt8TQB-WUtSZXqHB68,80261
4
- stackit/authorization/api_client.py,sha256=otVF6efQN0xWBrxWfHoVGoPViXQwrpsRdnhvUciLfrU,22806
4
+ stackit/authorization/api_client.py,sha256=fzlo9__QA-WNdJwy8cRt5sf3NhFp8zOF1wChEH5uClE,22808
5
5
  stackit/authorization/api_response.py,sha256=HRYkVqMNIlfODacTQPTbiVj2YdcnutpQrKJdeAoCSpM,642
6
- stackit/authorization/configuration.py,sha256=SM3oJl_cRhBr8Ql6ufIKyIGEFeX8JKA63EnpUQkSt7U,5225
6
+ stackit/authorization/configuration.py,sha256=jJ_z3yjZg9YeX9bEaiPzggOsKFZzfJ2Hbp8_8vAAS8g,5267
7
7
  stackit/authorization/exceptions.py,sha256=Wl6RYKalj9mdt2x2flfNE2LY9f04sJsnx90dkmzI4zE,6008
8
8
  stackit/authorization/models/__init__.py,sha256=8tmRVR68PgdQw1c3ZbCiHiaUDccpAKKY3jYQMnlYY-Y,1682
9
9
  stackit/authorization/models/add_members_payload.py,sha256=vW4mUX93cDc23NRQOSOq_PqtKFwPj7As1Pagwxq_7vY,3551
10
10
  stackit/authorization/models/error_response.py,sha256=DZFvF4ImbFX-7u8hozofS69NFnnV8lYtYtlGOfQfwmQ,2916
11
- stackit/authorization/models/existing_permission.py,sha256=xRDF3DyRAQJheeASrIXwiXLPb78vF8NMU_XVOnKaI8c,3001
11
+ stackit/authorization/models/existing_permission.py,sha256=jgPLrGZ83nYDpmXkpBaN-Iqg8e4XUMR1etAMISZbOio,3001
12
12
  stackit/authorization/models/list_members_response.py,sha256=TiE4vXQucx2bEzTjeD0bj9VpXW1IuJC1yACLWQ8e6Y8,4040
13
13
  stackit/authorization/models/list_permissions_response.py,sha256=lUbKeg5ePANM10otm2C0Qj5fzBWJRNPCBs-TyIluz2g,3136
14
14
  stackit/authorization/models/list_user_memberships_response.py,sha256=VnR2E5JXzko3-PlIa8jxiU6cLImmzbVlQhXXKAkicSQ,3115
15
15
  stackit/authorization/models/list_user_permissions_response.py,sha256=SsvAzu6QPHptFmTx70rvQw8MLG7OGzcn4Ndz_im6br8,3115
16
- stackit/authorization/models/member.py,sha256=7tCgY8zVyOqEKZT4Ei5lfp-xLSvuezTi8l_Y81YLFtk,2935
16
+ stackit/authorization/models/member.py,sha256=1SjRD6sUyY3sw6-55ISSu1d6oXa0m_foQPzUHYt7up4,2935
17
17
  stackit/authorization/models/members_response.py,sha256=HFyhRfOXkVklSPYXclG83qesG6LdD8kHmWo4tzauTyw,4453
18
- stackit/authorization/models/permission.py,sha256=xW2O4dRrD7Baj0N4lXphXdUeeiYfjiOBUJnoHrOBMtk,2983
18
+ stackit/authorization/models/permission.py,sha256=NhzXiNiOJzPXHrw_bCWsElqTAm8fbDq30DDeJy8Bm-0,2983
19
19
  stackit/authorization/models/remove_members_payload.py,sha256=WwU00TShEooQQyVVpgz-32Aha83JMLGqqHwBa_CY6bU,3727
20
- stackit/authorization/models/role.py,sha256=rjFYEX4aXvOXJxOR9xRgvUrgAzWq5Umx-4Eu0soyLN4,4121
20
+ stackit/authorization/models/role.py,sha256=DLdsSqozaJl521xJqxu20sMrXKqVDaE5adS06xiY23A,4121
21
21
  stackit/authorization/models/roles_response.py,sha256=yL_ocv7nGgZArvhsUzJQfSOlCwnnlhLOUhWoO2PQYo8,3950
22
- stackit/authorization/models/user_membership.py,sha256=-SYEif9YlqGvAVy0L-xt4sPU0kmG9WoAtDQZNxbQ9lo,3988
22
+ stackit/authorization/models/user_membership.py,sha256=B9MHkKuLy60Tey0eEwDFO_GHSRGuEeDi3M7glYrKRqU,3988
23
23
  stackit/authorization/models/user_permission.py,sha256=iY0hPcTkjdtcioLeqOjSTYk4xEK_GWNFNwd9TcM4C48,4145
24
24
  stackit/authorization/models/zookie.py,sha256=6LTd2mxh2XV2Ql2QU3PPFnjWBmcaGAhurehL4axJG-I,2465
25
25
  stackit/authorization/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
26
  stackit/authorization/rest.py,sha256=UxP0puP_zQCr4J5s_lYOv990iNPxEfbcU1m0_Ldjvss,5894
27
- stackit_authorization-0.2.2.dist-info/LICENSE.md,sha256=3dF8Tb7yZn2tS4zyNa-yNe-68pH8qyWdGz4ioMd3MgE,10933
28
- stackit_authorization-0.2.2.dist-info/METADATA,sha256=QXRtSyxRGO7_h9QiUgdJNWhET5XUI51ckOxfWLXK2Qc,1607
29
- stackit_authorization-0.2.2.dist-info/NOTICE.txt,sha256=9gmv4KciiKfZv7Np5rDf7cHj5rGn9UxJ_d3wAbam5Cw,65
30
- stackit_authorization-0.2.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
31
- stackit_authorization-0.2.2.dist-info/RECORD,,
27
+ stackit_authorization-0.2.4.dist-info/LICENSE.md,sha256=3dF8Tb7yZn2tS4zyNa-yNe-68pH8qyWdGz4ioMd3MgE,10933
28
+ stackit_authorization-0.2.4.dist-info/METADATA,sha256=ynrTZQjQwxLGWhOkMbckwjFLe_uegkdJuRdOTTTsw4s,1607
29
+ stackit_authorization-0.2.4.dist-info/NOTICE.txt,sha256=9gmv4KciiKfZv7Np5rDf7cHj5rGn9UxJ_d3wAbam5Cw,65
30
+ stackit_authorization-0.2.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
31
+ stackit_authorization-0.2.4.dist-info/RECORD,,