(permissions)
Create a permission
import airbyte_api
from airbyte_api import models
s = airbyte_api.AirbyteAPI(
security=models.Security(
basic_auth=models.SchemeBasicAuth(
password="",
username="",
),
),
)
res = s.permissions.create_permission(request=models.PermissionCreateRequest(
permission_type=models.PublicPermissionType.WORKSPACE_ADMIN,
user_id='7d08fd6c-531e-4a00-937e-3d355f253e63',
workspace_id='9924bcd0-99be-453d-ba47-c2c9766f7da5',
))
if res.permission_response is not None:
# handle response
pass
api.CreatePermissionResponse
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |
Delete a Permission
import airbyte_api
from airbyte_api import api, models
s = airbyte_api.AirbyteAPI(
security=models.Security(
basic_auth=models.SchemeBasicAuth(
password="",
username="",
),
),
)
res = s.permissions.delete_permission(request=api.DeletePermissionRequest(
permission_id='<value>',
))
if res is not None:
# handle response
pass
api.DeletePermissionResponse
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |
Get Permission details
import airbyte_api
from airbyte_api import api, models
s = airbyte_api.AirbyteAPI(
security=models.Security(
basic_auth=models.SchemeBasicAuth(
password="",
username="",
),
),
)
res = s.permissions.get_permission(request=api.GetPermissionRequest(
permission_id='<value>',
))
if res.permission_response is not None:
# handle response
pass
api.GetPermissionResponse
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |
List Permissions by user id
import airbyte_api
from airbyte_api import api, models
s = airbyte_api.AirbyteAPI(
security=models.Security(
basic_auth=models.SchemeBasicAuth(
password="",
username="",
),
),
)
res = s.permissions.list_permissions(request=api.ListPermissionsRequest())
if res.permissions_response is not None:
# handle response
pass
api.ListPermissionsResponse
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |
Update a permission
import airbyte_api
from airbyte_api import api, models
s = airbyte_api.AirbyteAPI(
security=models.Security(
basic_auth=models.SchemeBasicAuth(
password="",
username="",
),
),
)
res = s.permissions.update_permission(request=api.UpdatePermissionRequest(
permission_update_request=models.PermissionUpdateRequest(
permission_type=models.PermissionType.ORGANIZATION_MEMBER,
),
permission_id='<value>',
))
if res.permission_response is not None:
# handle response
pass
api.UpdatePermissionResponse
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |