Skip to content

Commit dd0031c

Browse files
committed
Regenerate python library from openapi spec.
1 parent 96f258c commit dd0031c

File tree

244 files changed

+3173
-1949
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

244 files changed

+3173
-1949
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ authress/models/invite.py
5858
authress/models/link.py
5959
authress/models/linked_group.py
6060
authress/models/links.py
61-
authress/models/metadata_object.py
62-
authress/models/metadata_object_account.py
6361
authress/models/o_auth_authorize_response.py
6462
authress/models/o_auth_token_request.py
6563
authress/models/o_auth_token_response.py
@@ -217,8 +215,6 @@ test/test_invites_api.py
217215
test/test_link.py
218216
test/test_linked_group.py
219217
test/test_links.py
220-
test/test_metadata_object.py
221-
test/test_metadata_object_account.py
222218
test/test_o_auth_authorize_response.py
223219
test/test_o_auth_token_request.py
224220
test/test_o_auth_token_response.py

authress/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@
9393
from authress.models.link import Link
9494
from authress.models.linked_group import LinkedGroup
9595
from authress.models.links import Links
96-
from authress.models.metadata_object import MetadataObject
97-
from authress.models.metadata_object_account import MetadataObjectAccount
9896
from authress.models.o_auth_authorize_response import OAuthAuthorizeResponse
9997
from authress.models.o_auth_token_request import OAuthTokenRequest
10098
from authress.models.o_auth_token_response import OAuthTokenResponse

authress/models/__init__.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"""
55
Authress
66
7-
<p> <h2>Introduction</h2> <p>Welcome to the Authress Authorization API. <br>The Authress REST API provides the operations and resources necessary to create records, assign permissions, and verify any user in your platform.</p> <p><ul> <li>Manage multitenant platforms and create user tenants for SSO connections.</li> <li>Create records to assign roles and resources to grant access for users.</li> <li>Check user access control by calling the authorization API at the right time.</li> <li>Configure service clients to securely access services in your platform.</li> </ul></p> <p>For more in-depth scenarios check out the <a href=\"https://authress.io/knowledge-base\" target=\"_blank\">Authress knowledge base</a>.</p> </p> # noqa: E501
7+
<p> <h2>Introduction</h2> <p>Welcome to the Authress Authorization API. <br>The Authress REST API provides the operations and resources necessary to create records, assign permissions, and verify any user in your platform.</p> <p><ul> <li>Manage multitenant platforms and create user tenants for SSO connections.</li> <li>Create records to assign roles and resources to grant access for users.</li> <li>Check user access control by calling the authorization API at the right time.</li> <li>Configure service clients to securely access services in your platform.</li> </ul></p> <p>For more in-depth scenarios check out the <a href=\"https://authress.io/knowledge-base\" target=\"_blank\">Authress knowledge base</a>.</p> </p>
88
99
The version of the OpenAPI document: v1
1010
Contact: support@authress.io
1111
Generated by OpenAPI Generator (https://openapi-generator.tech)
1212
1313
Do not edit the class manually.
14-
"""
14+
""" # noqa: E501
1515

1616

1717
# import models into model package
@@ -31,11 +31,15 @@
3131
from authress.models.client_access_key import ClientAccessKey
3232
from authress.models.client_collection import ClientCollection
3333
from authress.models.client_options import ClientOptions
34+
from authress.models.client_rate_limit import ClientRateLimit
3435
from authress.models.collection_links import CollectionLinks
3536
from authress.models.connection import Connection
3637
from authress.models.connection_collection import ConnectionCollection
38+
from authress.models.connection_conditions import ConnectionConditions
3739
from authress.models.connection_data import ConnectionData
3840
from authress.models.connection_default_connection_properties import ConnectionDefaultConnectionProperties
41+
from authress.models.connection_linking_configuration import ConnectionLinkingConfiguration
42+
from authress.models.connection_user_data_configuration import ConnectionUserDataConfiguration
3943
from authress.models.extension import Extension
4044
from authress.models.extension_application import ExtensionApplication
4145
from authress.models.extension_client import ExtensionClient
@@ -46,11 +50,10 @@
4650
from authress.models.identity_collection import IdentityCollection
4751
from authress.models.identity_request import IdentityRequest
4852
from authress.models.invite import Invite
53+
from authress.models.invite_statement import InviteStatement
4954
from authress.models.link import Link
5055
from authress.models.linked_group import LinkedGroup
5156
from authress.models.links import Links
52-
from authress.models.metadata_object import MetadataObject
53-
from authress.models.metadata_object_account import MetadataObjectAccount
5457
from authress.models.o_auth_authorize_response import OAuthAuthorizeResponse
5558
from authress.models.o_auth_token_request import OAuthTokenRequest
5659
from authress.models.o_auth_token_response import OAuthTokenResponse
@@ -71,6 +74,8 @@
7174
from authress.models.tenant_collection import TenantCollection
7275
from authress.models.tenant_connection import TenantConnection
7376
from authress.models.tenant_data import TenantData
77+
from authress.models.tenant_domain import TenantDomain
78+
from authress.models.tenant_user import TenantUser
7479
from authress.models.token_request import TokenRequest
7580
from authress.models.user import User
7681
from authress.models.user_connection_credentials import UserConnectionCredentials

authress/models/access_record.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"""
44
Authress
55
6-
<p> <h2>Introduction</h2> <p>Welcome to the Authress Authorization API. <br>The Authress REST API provides the operations and resources necessary to create records, assign permissions, and verify any user in your platform.</p> <p><ul> <li>Manage multitenant platforms and create user tenants for SSO connections.</li> <li>Create records to assign roles and resources to grant access for users.</li> <li>Check user access control by calling the authorization API at the right time.</li> <li>Configure service clients to securely access services in your platform.</li> </ul></p> <p>For more in-depth scenarios check out the <a href=\"https://authress.io/knowledge-base\" target=\"_blank\">Authress knowledge base</a>.</p> </p> # noqa: E501
6+
<p> <h2>Introduction</h2> <p>Welcome to the Authress Authorization API. <br>The Authress REST API provides the operations and resources necessary to create records, assign permissions, and verify any user in your platform.</p> <p><ul> <li>Manage multitenant platforms and create user tenants for SSO connections.</li> <li>Create records to assign roles and resources to grant access for users.</li> <li>Check user access control by calling the authorization API at the right time.</li> <li>Configure service clients to securely access services in your platform.</li> </ul></p> <p>For more in-depth scenarios check out the <a href=\"https://authress.io/knowledge-base\" target=\"_blank\">Authress knowledge base</a>.</p> </p>
77
88
The version of the OpenAPI document: v1
99
Contact: support@authress.io
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
1212
Do not edit the class manually.
13-
"""
13+
""" # noqa: E501
1414

1515

1616
from __future__ import annotations
@@ -32,21 +32,21 @@
3232

3333
class AccessRecord(BaseModel):
3434
"""
35-
The access record which links users to roles.
35+
The access record which links users to roles. # noqa: E501
3636
"""
37-
record_id: Optional[constr(strict=True, max_length=100, min_length=1)] = Field(None, alias="recordId", description="Unique identifier for the record, can be specified on record creation.")
38-
name: constr(strict=True, max_length=128, min_length=1) = Field(..., description="A helpful name for this record")
39-
description: Optional[constr(strict=True, max_length=1024, min_length=0)] = Field(None, description="More details about this record")
40-
capacity: Optional[Union[confloat(le=1, ge=0, strict=True), conint(le=1, ge=0, strict=True)]] = Field(None, description="Percentage capacity of record that is filled.")
41-
last_updated: Optional[datetime] = Field(None, alias="lastUpdated", description="The expected last time the record was updated")
42-
status: Optional[StrictStr] = Field(None, description="Current status of the access record.")
43-
account: Optional[AccessRecordAccount] = Field(...)
44-
users: Optional[conlist(User)] = Field(None, description="The list of users this record applies to")
45-
admins: Optional[conlist(User)] = Field(None, description="The list of admin that can edit this record even if they do not have global record edit permissions.")
46-
groups: Optional[conlist(LinkedGroup)] = Field(None, description="The list of groups this record applies to. Users in these groups will be receive access to the resources listed.")
47-
statements: conlist(Statement, min_items=1) = Field(..., description="A list of statements which match roles to resources.")
48-
links: Optional[AccountLinks] = Field(...)
49-
tags: Optional[Dict[str, constr(strict=True, max_length=128)]] = Field(None, description="The tags associated with this resource, this property is an map. { key1: value1, key2: value2 }")
37+
record_id: Optional[constr(strict=True, max_length=100, min_length=1)] = Field(default=None, alias="recordId", description="Unique identifier for the record, can be specified on record creation.")
38+
name: constr(strict=True, max_length=128, min_length=1) = Field(default=..., description="A helpful name for this record")
39+
description: Optional[constr(strict=True, max_length=1024, min_length=0)] = Field(default=None, description="More details about this record")
40+
capacity: Optional[Union[confloat(le=1, ge=0, strict=True), conint(le=1, ge=0, strict=True)]] = Field(default=None, description="Percentage capacity of record that is filled.")
41+
last_updated: Optional[datetime] = Field(default=None, alias="lastUpdated", description="The expected last time the record was updated")
42+
status: Optional[StrictStr] = Field(default=None, description="Current status of the access record.")
43+
account: Optional[AccessRecordAccount] = None
44+
users: Optional[conlist(User, max_items=1000, min_items=0)] = Field(default=None, description="The list of users this record applies to. The record is finite in size, for patterns where the list of users might grow indefinitely, the recommended solution is to specify each user in their own access record.")
45+
admins: Optional[conlist(User, max_items=100, min_items=0)] = Field(default=None, description="The list of admin that can edit this record even if they do not have global record edit permissions.")
46+
groups: Optional[conlist(LinkedGroup, max_items=100, min_items=0)] = Field(default=None, description="The list of groups this record applies to. Users in these groups will be receive access to the resources listed.")
47+
statements: conlist(Statement, max_items=100, min_items=1) = Field(default=..., description="A list of statements which match roles to resources.")
48+
links: Optional[AccountLinks] = None
49+
tags: Optional[Dict[str, constr(strict=True, max_length=128)]] = Field(default=None, description="The tags associated with this resource, this property is an map. { key1: value1, key2: value2 }")
5050
__properties = ["recordId", "name", "description", "capacity", "lastUpdated", "status", "account", "users", "admins", "groups", "statements", "links", "tags"]
5151

5252
@validator('record_id')

authress/models/access_record_account.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"""
44
Authress
55
6-
<p> <h2>Introduction</h2> <p>Welcome to the Authress Authorization API. <br>The Authress REST API provides the operations and resources necessary to create records, assign permissions, and verify any user in your platform.</p> <p><ul> <li>Manage multitenant platforms and create user tenants for SSO connections.</li> <li>Create records to assign roles and resources to grant access for users.</li> <li>Check user access control by calling the authorization API at the right time.</li> <li>Configure service clients to securely access services in your platform.</li> </ul></p> <p>For more in-depth scenarios check out the <a href=\"https://authress.io/knowledge-base\" target=\"_blank\">Authress knowledge base</a>.</p> </p> # noqa: E501
6+
<p> <h2>Introduction</h2> <p>Welcome to the Authress Authorization API. <br>The Authress REST API provides the operations and resources necessary to create records, assign permissions, and verify any user in your platform.</p> <p><ul> <li>Manage multitenant platforms and create user tenants for SSO connections.</li> <li>Create records to assign roles and resources to grant access for users.</li> <li>Check user access control by calling the authorization API at the right time.</li> <li>Configure service clients to securely access services in your platform.</li> </ul></p> <p>For more in-depth scenarios check out the <a href=\"https://authress.io/knowledge-base\" target=\"_blank\">Authress knowledge base</a>.</p> </p>
77
88
The version of the OpenAPI document: v1
99
Contact: support@authress.io
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
1212
Do not edit the class manually.
13-
"""
13+
""" # noqa: E501
1414

1515

1616
from __future__ import annotations
@@ -29,7 +29,7 @@ class AccessRecordAccount(BaseModel):
2929
"""
3030
AccessRecordAccount
3131
"""
32-
account_id: StrictStr = Field(..., alias="accountId")
32+
account_id: StrictStr = Field(default=..., alias="accountId")
3333
__properties = ["accountId"]
3434

3535
class Config:

authress/models/access_record_collection.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"""
44
Authress
55
6-
<p> <h2>Introduction</h2> <p>Welcome to the Authress Authorization API. <br>The Authress REST API provides the operations and resources necessary to create records, assign permissions, and verify any user in your platform.</p> <p><ul> <li>Manage multitenant platforms and create user tenants for SSO connections.</li> <li>Create records to assign roles and resources to grant access for users.</li> <li>Check user access control by calling the authorization API at the right time.</li> <li>Configure service clients to securely access services in your platform.</li> </ul></p> <p>For more in-depth scenarios check out the <a href=\"https://authress.io/knowledge-base\" target=\"_blank\">Authress knowledge base</a>.</p> </p> # noqa: E501
6+
<p> <h2>Introduction</h2> <p>Welcome to the Authress Authorization API. <br>The Authress REST API provides the operations and resources necessary to create records, assign permissions, and verify any user in your platform.</p> <p><ul> <li>Manage multitenant platforms and create user tenants for SSO connections.</li> <li>Create records to assign roles and resources to grant access for users.</li> <li>Check user access control by calling the authorization API at the right time.</li> <li>Configure service clients to securely access services in your platform.</li> </ul></p> <p>For more in-depth scenarios check out the <a href=\"https://authress.io/knowledge-base\" target=\"_blank\">Authress knowledge base</a>.</p> </p>
77
88
The version of the OpenAPI document: v1
99
Contact: support@authress.io
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
1212
Do not edit the class manually.
13-
"""
13+
""" # noqa: E501
1414

1515

1616
from __future__ import annotations
@@ -30,9 +30,9 @@
3030

3131
class AccessRecordCollection(BaseModel):
3232
"""
33-
A collection of access records
33+
A collection of access records # noqa: E501
3434
"""
35-
records: conlist(AccessRecord) = Field(..., description="A list of access records")
35+
records: conlist(AccessRecord) = Field(default=..., description="A list of access records")
3636
pagination: Optional[Pagination] = None
3737
links: CollectionLinks = Field(...)
3838
__properties = ["records", "pagination", "links"]

authress/models/access_request.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"""
44
Authress
55
6-
<p> <h2>Introduction</h2> <p>Welcome to the Authress Authorization API. <br>The Authress REST API provides the operations and resources necessary to create records, assign permissions, and verify any user in your platform.</p> <p><ul> <li>Manage multitenant platforms and create user tenants for SSO connections.</li> <li>Create records to assign roles and resources to grant access for users.</li> <li>Check user access control by calling the authorization API at the right time.</li> <li>Configure service clients to securely access services in your platform.</li> </ul></p> <p>For more in-depth scenarios check out the <a href=\"https://authress.io/knowledge-base\" target=\"_blank\">Authress knowledge base</a>.</p> </p> # noqa: E501
6+
<p> <h2>Introduction</h2> <p>Welcome to the Authress Authorization API. <br>The Authress REST API provides the operations and resources necessary to create records, assign permissions, and verify any user in your platform.</p> <p><ul> <li>Manage multitenant platforms and create user tenants for SSO connections.</li> <li>Create records to assign roles and resources to grant access for users.</li> <li>Check user access control by calling the authorization API at the right time.</li> <li>Configure service clients to securely access services in your platform.</li> </ul></p> <p>For more in-depth scenarios check out the <a href=\"https://authress.io/knowledge-base\" target=\"_blank\">Authress knowledge base</a>.</p> </p>
77
88
The version of the OpenAPI document: v1
99
Contact: support@authress.io
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
1212
Do not edit the class manually.
13-
"""
13+
""" # noqa: E501
1414

1515

1616
from __future__ import annotations
@@ -29,14 +29,14 @@
2929

3030
class AccessRequest(BaseModel):
3131
"""
32-
The access requested by a user.
32+
The access requested by a user. # noqa: E501
3333
"""
34-
request_id: constr(strict=True, max_length=100, min_length=1) = Field(..., alias="requestId", description="Unique identifier for the request.")
35-
last_updated: Optional[datetime] = Field(None, alias="lastUpdated", description="The expected last time the request was updated")
36-
status: Optional[StrictStr] = Field(None, description="Current status of the access request.")
34+
request_id: constr(strict=True, max_length=100, min_length=1) = Field(default=..., alias="requestId", description="Unique identifier for the request.")
35+
last_updated: Optional[datetime] = Field(default=None, alias="lastUpdated", description="The expected last time the request was updated")
36+
status: Optional[StrictStr] = Field(default=None, description="Current status of the access request.")
3737
access: AccessTemplate = Field(...)
38-
links: Optional[AccountLinks] = Field(...)
39-
tags: Optional[Dict[str, constr(strict=True, max_length=128)]] = Field(None, description="The tags associated with this resource, this property is an map. { key1: value1, key2: value2 }")
38+
links: Optional[AccountLinks] = None
39+
tags: Optional[Dict[str, constr(strict=True, max_length=128)]] = Field(default=None, description="The tags associated with this resource, this property is an map. { key1: value1, key2: value2 }")
4040
__properties = ["requestId", "lastUpdated", "status", "access", "links", "tags"]
4141

4242
@validator('request_id')

0 commit comments

Comments
 (0)