daytona_api_client 0.28.0rc1__py3-none-any.whl → 0.102.0rc2__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.
Potentially problematic release.
This version of daytona_api_client might be problematic. Click here for more details.
- daytona_api_client/__init__.py +1 -4
- daytona_api_client/api/organizations_api.py +27 -330
- daytona_api_client/api/preview_api.py +12 -5
- daytona_api_client/api/toolbox_api.py +38 -574
- daytona_api_client/models/__init__.py +1 -4
- daytona_api_client/models/create_audit_log.py +2 -2
- daytona_api_client/models/update_organization_member_access.py +110 -0
- {daytona_api_client-0.28.0rc1.dist-info → daytona_api_client-0.102.0rc2.dist-info}/METADATA +1 -1
- {daytona_api_client-0.28.0rc1.dist-info → daytona_api_client-0.102.0rc2.dist-info}/RECORD +12 -11
- {daytona_api_client-0.28.0rc1.dist-info → daytona_api_client-0.102.0rc2.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.28.0rc1.dist-info → daytona_api_client-0.102.0rc2.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client-0.28.0rc1.dist-info → daytona_api_client-0.102.0rc2.dist-info}/top_level.txt +0 -0
daytona_api_client/__init__.py
CHANGED
|
@@ -155,14 +155,12 @@ from daytona_api_client.models.snapshot_state import SnapshotState
|
|
|
155
155
|
from daytona_api_client.models.ssh_access_dto import SshAccessDto
|
|
156
156
|
from daytona_api_client.models.ssh_access_validation_dto import SshAccessValidationDto
|
|
157
157
|
from daytona_api_client.models.storage_access_dto import StorageAccessDto
|
|
158
|
-
from daytona_api_client.models.update_assigned_organization_roles import UpdateAssignedOrganizationRoles
|
|
159
158
|
from daytona_api_client.models.update_docker_registry import UpdateDockerRegistry
|
|
160
159
|
from daytona_api_client.models.update_organization_invitation import UpdateOrganizationInvitation
|
|
161
|
-
from daytona_api_client.models.
|
|
160
|
+
from daytona_api_client.models.update_organization_member_access import UpdateOrganizationMemberAccess
|
|
162
161
|
from daytona_api_client.models.update_organization_quota import UpdateOrganizationQuota
|
|
163
162
|
from daytona_api_client.models.update_organization_role import UpdateOrganizationRole
|
|
164
163
|
from daytona_api_client.models.user import User
|
|
165
|
-
from daytona_api_client.models.user_home_dir_response import UserHomeDirResponse
|
|
166
164
|
from daytona_api_client.models.user_public_key import UserPublicKey
|
|
167
165
|
from daytona_api_client.models.volume_dto import VolumeDto
|
|
168
166
|
from daytona_api_client.models.volume_state import VolumeState
|
|
@@ -170,5 +168,4 @@ from daytona_api_client.models.webhook_app_portal_access import WebhookAppPortal
|
|
|
170
168
|
from daytona_api_client.models.webhook_controller_get_status200_response import WebhookControllerGetStatus200Response
|
|
171
169
|
from daytona_api_client.models.webhook_initialization_status import WebhookInitializationStatus
|
|
172
170
|
from daytona_api_client.models.windows_response import WindowsResponse
|
|
173
|
-
from daytona_api_client.models.work_dir_response import WorkDirResponse
|
|
174
171
|
from daytona_api_client.models.workspace import Workspace
|
|
@@ -29,9 +29,8 @@ from daytona_api_client.models.organization_role import OrganizationRole
|
|
|
29
29
|
from daytona_api_client.models.organization_suspension import OrganizationSuspension
|
|
30
30
|
from daytona_api_client.models.organization_usage_overview import OrganizationUsageOverview
|
|
31
31
|
from daytona_api_client.models.organization_user import OrganizationUser
|
|
32
|
-
from daytona_api_client.models.update_assigned_organization_roles import UpdateAssignedOrganizationRoles
|
|
33
32
|
from daytona_api_client.models.update_organization_invitation import UpdateOrganizationInvitation
|
|
34
|
-
from daytona_api_client.models.
|
|
33
|
+
from daytona_api_client.models.update_organization_member_access import UpdateOrganizationMemberAccess
|
|
35
34
|
from daytona_api_client.models.update_organization_quota import UpdateOrganizationQuota
|
|
36
35
|
from daytona_api_client.models.update_organization_role import UpdateOrganizationRole
|
|
37
36
|
|
|
@@ -5527,11 +5526,11 @@ class OrganizationsApi:
|
|
|
5527
5526
|
|
|
5528
5527
|
|
|
5529
5528
|
@validate_call
|
|
5530
|
-
def
|
|
5529
|
+
def update_access_for_organization_member(
|
|
5531
5530
|
self,
|
|
5532
5531
|
organization_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
5533
5532
|
user_id: Annotated[StrictStr, Field(description="User ID")],
|
|
5534
|
-
|
|
5533
|
+
update_organization_member_access: UpdateOrganizationMemberAccess,
|
|
5535
5534
|
_request_timeout: Union[
|
|
5536
5535
|
None,
|
|
5537
5536
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5545,15 +5544,15 @@ class OrganizationsApi:
|
|
|
5545
5544
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5546
5545
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5547
5546
|
) -> OrganizationUser:
|
|
5548
|
-
"""Update
|
|
5547
|
+
"""Update access for organization member
|
|
5549
5548
|
|
|
5550
5549
|
|
|
5551
5550
|
:param organization_id: Organization ID (required)
|
|
5552
5551
|
:type organization_id: str
|
|
5553
5552
|
:param user_id: User ID (required)
|
|
5554
5553
|
:type user_id: str
|
|
5555
|
-
:param
|
|
5556
|
-
:type
|
|
5554
|
+
:param update_organization_member_access: (required)
|
|
5555
|
+
:type update_organization_member_access: UpdateOrganizationMemberAccess
|
|
5557
5556
|
:param _request_timeout: timeout setting for this request. If one
|
|
5558
5557
|
number provided, it will be total request
|
|
5559
5558
|
timeout. It can also be a pair (tuple) of
|
|
@@ -5576,10 +5575,10 @@ class OrganizationsApi:
|
|
|
5576
5575
|
:return: Returns the result object.
|
|
5577
5576
|
""" # noqa: E501
|
|
5578
5577
|
|
|
5579
|
-
_param = self.
|
|
5578
|
+
_param = self._update_access_for_organization_member_serialize(
|
|
5580
5579
|
organization_id=organization_id,
|
|
5581
5580
|
user_id=user_id,
|
|
5582
|
-
|
|
5581
|
+
update_organization_member_access=update_organization_member_access,
|
|
5583
5582
|
_request_auth=_request_auth,
|
|
5584
5583
|
_content_type=_content_type,
|
|
5585
5584
|
_headers=_headers,
|
|
@@ -5601,11 +5600,11 @@ class OrganizationsApi:
|
|
|
5601
5600
|
|
|
5602
5601
|
|
|
5603
5602
|
@validate_call
|
|
5604
|
-
def
|
|
5603
|
+
def update_access_for_organization_member_with_http_info(
|
|
5605
5604
|
self,
|
|
5606
5605
|
organization_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
5607
5606
|
user_id: Annotated[StrictStr, Field(description="User ID")],
|
|
5608
|
-
|
|
5607
|
+
update_organization_member_access: UpdateOrganizationMemberAccess,
|
|
5609
5608
|
_request_timeout: Union[
|
|
5610
5609
|
None,
|
|
5611
5610
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5619,15 +5618,15 @@ class OrganizationsApi:
|
|
|
5619
5618
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5620
5619
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5621
5620
|
) -> ApiResponse[OrganizationUser]:
|
|
5622
|
-
"""Update
|
|
5621
|
+
"""Update access for organization member
|
|
5623
5622
|
|
|
5624
5623
|
|
|
5625
5624
|
:param organization_id: Organization ID (required)
|
|
5626
5625
|
:type organization_id: str
|
|
5627
5626
|
:param user_id: User ID (required)
|
|
5628
5627
|
:type user_id: str
|
|
5629
|
-
:param
|
|
5630
|
-
:type
|
|
5628
|
+
:param update_organization_member_access: (required)
|
|
5629
|
+
:type update_organization_member_access: UpdateOrganizationMemberAccess
|
|
5631
5630
|
:param _request_timeout: timeout setting for this request. If one
|
|
5632
5631
|
number provided, it will be total request
|
|
5633
5632
|
timeout. It can also be a pair (tuple) of
|
|
@@ -5650,10 +5649,10 @@ class OrganizationsApi:
|
|
|
5650
5649
|
:return: Returns the result object.
|
|
5651
5650
|
""" # noqa: E501
|
|
5652
5651
|
|
|
5653
|
-
_param = self.
|
|
5652
|
+
_param = self._update_access_for_organization_member_serialize(
|
|
5654
5653
|
organization_id=organization_id,
|
|
5655
5654
|
user_id=user_id,
|
|
5656
|
-
|
|
5655
|
+
update_organization_member_access=update_organization_member_access,
|
|
5657
5656
|
_request_auth=_request_auth,
|
|
5658
5657
|
_content_type=_content_type,
|
|
5659
5658
|
_headers=_headers,
|
|
@@ -5675,11 +5674,11 @@ class OrganizationsApi:
|
|
|
5675
5674
|
|
|
5676
5675
|
|
|
5677
5676
|
@validate_call
|
|
5678
|
-
def
|
|
5677
|
+
def update_access_for_organization_member_without_preload_content(
|
|
5679
5678
|
self,
|
|
5680
5679
|
organization_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
5681
5680
|
user_id: Annotated[StrictStr, Field(description="User ID")],
|
|
5682
|
-
|
|
5681
|
+
update_organization_member_access: UpdateOrganizationMemberAccess,
|
|
5683
5682
|
_request_timeout: Union[
|
|
5684
5683
|
None,
|
|
5685
5684
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5693,15 +5692,15 @@ class OrganizationsApi:
|
|
|
5693
5692
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5694
5693
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5695
5694
|
) -> RESTResponseType:
|
|
5696
|
-
"""Update
|
|
5695
|
+
"""Update access for organization member
|
|
5697
5696
|
|
|
5698
5697
|
|
|
5699
5698
|
:param organization_id: Organization ID (required)
|
|
5700
5699
|
:type organization_id: str
|
|
5701
5700
|
:param user_id: User ID (required)
|
|
5702
5701
|
:type user_id: str
|
|
5703
|
-
:param
|
|
5704
|
-
:type
|
|
5702
|
+
:param update_organization_member_access: (required)
|
|
5703
|
+
:type update_organization_member_access: UpdateOrganizationMemberAccess
|
|
5705
5704
|
:param _request_timeout: timeout setting for this request. If one
|
|
5706
5705
|
number provided, it will be total request
|
|
5707
5706
|
timeout. It can also be a pair (tuple) of
|
|
@@ -5724,10 +5723,10 @@ class OrganizationsApi:
|
|
|
5724
5723
|
:return: Returns the result object.
|
|
5725
5724
|
""" # noqa: E501
|
|
5726
5725
|
|
|
5727
|
-
_param = self.
|
|
5726
|
+
_param = self._update_access_for_organization_member_serialize(
|
|
5728
5727
|
organization_id=organization_id,
|
|
5729
5728
|
user_id=user_id,
|
|
5730
|
-
|
|
5729
|
+
update_organization_member_access=update_organization_member_access,
|
|
5731
5730
|
_request_auth=_request_auth,
|
|
5732
5731
|
_content_type=_content_type,
|
|
5733
5732
|
_headers=_headers,
|
|
@@ -5744,11 +5743,11 @@ class OrganizationsApi:
|
|
|
5744
5743
|
return response_data.response
|
|
5745
5744
|
|
|
5746
5745
|
|
|
5747
|
-
def
|
|
5746
|
+
def _update_access_for_organization_member_serialize(
|
|
5748
5747
|
self,
|
|
5749
5748
|
organization_id,
|
|
5750
5749
|
user_id,
|
|
5751
|
-
|
|
5750
|
+
update_organization_member_access,
|
|
5752
5751
|
_request_auth,
|
|
5753
5752
|
_content_type,
|
|
5754
5753
|
_headers,
|
|
@@ -5778,8 +5777,8 @@ class OrganizationsApi:
|
|
|
5778
5777
|
# process the header parameters
|
|
5779
5778
|
# process the form parameters
|
|
5780
5779
|
# process the body parameter
|
|
5781
|
-
if
|
|
5782
|
-
_body_params =
|
|
5780
|
+
if update_organization_member_access is not None:
|
|
5781
|
+
_body_params = update_organization_member_access
|
|
5783
5782
|
|
|
5784
5783
|
|
|
5785
5784
|
# set the HTTP header `Accept`
|
|
@@ -5812,7 +5811,7 @@ class OrganizationsApi:
|
|
|
5812
5811
|
|
|
5813
5812
|
return self.api_client.param_serialize(
|
|
5814
5813
|
method='POST',
|
|
5815
|
-
resource_path='/organizations/{organizationId}/users/{userId}/
|
|
5814
|
+
resource_path='/organizations/{organizationId}/users/{userId}/access',
|
|
5816
5815
|
path_params=_path_params,
|
|
5817
5816
|
query_params=_query_params,
|
|
5818
5817
|
header_params=_header_params,
|
|
@@ -6717,305 +6716,3 @@ class OrganizationsApi:
|
|
|
6717
6716
|
)
|
|
6718
6717
|
|
|
6719
6718
|
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
@validate_call
|
|
6723
|
-
def update_role_for_organization_member(
|
|
6724
|
-
self,
|
|
6725
|
-
organization_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
6726
|
-
user_id: Annotated[StrictStr, Field(description="User ID")],
|
|
6727
|
-
update_organization_member_role: UpdateOrganizationMemberRole,
|
|
6728
|
-
_request_timeout: Union[
|
|
6729
|
-
None,
|
|
6730
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
6731
|
-
Tuple[
|
|
6732
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
6733
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
6734
|
-
]
|
|
6735
|
-
] = None,
|
|
6736
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6737
|
-
_content_type: Optional[StrictStr] = None,
|
|
6738
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6739
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6740
|
-
) -> OrganizationUser:
|
|
6741
|
-
"""Update role for organization member
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
:param organization_id: Organization ID (required)
|
|
6745
|
-
:type organization_id: str
|
|
6746
|
-
:param user_id: User ID (required)
|
|
6747
|
-
:type user_id: str
|
|
6748
|
-
:param update_organization_member_role: (required)
|
|
6749
|
-
:type update_organization_member_role: UpdateOrganizationMemberRole
|
|
6750
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
6751
|
-
number provided, it will be total request
|
|
6752
|
-
timeout. It can also be a pair (tuple) of
|
|
6753
|
-
(connection, read) timeouts.
|
|
6754
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
6755
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
6756
|
-
request; this effectively ignores the
|
|
6757
|
-
authentication in the spec for a single request.
|
|
6758
|
-
:type _request_auth: dict, optional
|
|
6759
|
-
:param _content_type: force content-type for the request.
|
|
6760
|
-
:type _content_type: str, Optional
|
|
6761
|
-
:param _headers: set to override the headers for a single
|
|
6762
|
-
request; this effectively ignores the headers
|
|
6763
|
-
in the spec for a single request.
|
|
6764
|
-
:type _headers: dict, optional
|
|
6765
|
-
:param _host_index: set to override the host_index for a single
|
|
6766
|
-
request; this effectively ignores the host_index
|
|
6767
|
-
in the spec for a single request.
|
|
6768
|
-
:type _host_index: int, optional
|
|
6769
|
-
:return: Returns the result object.
|
|
6770
|
-
""" # noqa: E501
|
|
6771
|
-
|
|
6772
|
-
_param = self._update_role_for_organization_member_serialize(
|
|
6773
|
-
organization_id=organization_id,
|
|
6774
|
-
user_id=user_id,
|
|
6775
|
-
update_organization_member_role=update_organization_member_role,
|
|
6776
|
-
_request_auth=_request_auth,
|
|
6777
|
-
_content_type=_content_type,
|
|
6778
|
-
_headers=_headers,
|
|
6779
|
-
_host_index=_host_index
|
|
6780
|
-
)
|
|
6781
|
-
|
|
6782
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
6783
|
-
'200': "OrganizationUser",
|
|
6784
|
-
}
|
|
6785
|
-
response_data = self.api_client.call_api(
|
|
6786
|
-
*_param,
|
|
6787
|
-
_request_timeout=_request_timeout
|
|
6788
|
-
)
|
|
6789
|
-
response_data.read()
|
|
6790
|
-
return self.api_client.response_deserialize(
|
|
6791
|
-
response_data=response_data,
|
|
6792
|
-
response_types_map=_response_types_map,
|
|
6793
|
-
).data
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
@validate_call
|
|
6797
|
-
def update_role_for_organization_member_with_http_info(
|
|
6798
|
-
self,
|
|
6799
|
-
organization_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
6800
|
-
user_id: Annotated[StrictStr, Field(description="User ID")],
|
|
6801
|
-
update_organization_member_role: UpdateOrganizationMemberRole,
|
|
6802
|
-
_request_timeout: Union[
|
|
6803
|
-
None,
|
|
6804
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
6805
|
-
Tuple[
|
|
6806
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
6807
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
6808
|
-
]
|
|
6809
|
-
] = None,
|
|
6810
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6811
|
-
_content_type: Optional[StrictStr] = None,
|
|
6812
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6813
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6814
|
-
) -> ApiResponse[OrganizationUser]:
|
|
6815
|
-
"""Update role for organization member
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
:param organization_id: Organization ID (required)
|
|
6819
|
-
:type organization_id: str
|
|
6820
|
-
:param user_id: User ID (required)
|
|
6821
|
-
:type user_id: str
|
|
6822
|
-
:param update_organization_member_role: (required)
|
|
6823
|
-
:type update_organization_member_role: UpdateOrganizationMemberRole
|
|
6824
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
6825
|
-
number provided, it will be total request
|
|
6826
|
-
timeout. It can also be a pair (tuple) of
|
|
6827
|
-
(connection, read) timeouts.
|
|
6828
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
6829
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
6830
|
-
request; this effectively ignores the
|
|
6831
|
-
authentication in the spec for a single request.
|
|
6832
|
-
:type _request_auth: dict, optional
|
|
6833
|
-
:param _content_type: force content-type for the request.
|
|
6834
|
-
:type _content_type: str, Optional
|
|
6835
|
-
:param _headers: set to override the headers for a single
|
|
6836
|
-
request; this effectively ignores the headers
|
|
6837
|
-
in the spec for a single request.
|
|
6838
|
-
:type _headers: dict, optional
|
|
6839
|
-
:param _host_index: set to override the host_index for a single
|
|
6840
|
-
request; this effectively ignores the host_index
|
|
6841
|
-
in the spec for a single request.
|
|
6842
|
-
:type _host_index: int, optional
|
|
6843
|
-
:return: Returns the result object.
|
|
6844
|
-
""" # noqa: E501
|
|
6845
|
-
|
|
6846
|
-
_param = self._update_role_for_organization_member_serialize(
|
|
6847
|
-
organization_id=organization_id,
|
|
6848
|
-
user_id=user_id,
|
|
6849
|
-
update_organization_member_role=update_organization_member_role,
|
|
6850
|
-
_request_auth=_request_auth,
|
|
6851
|
-
_content_type=_content_type,
|
|
6852
|
-
_headers=_headers,
|
|
6853
|
-
_host_index=_host_index
|
|
6854
|
-
)
|
|
6855
|
-
|
|
6856
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
6857
|
-
'200': "OrganizationUser",
|
|
6858
|
-
}
|
|
6859
|
-
response_data = self.api_client.call_api(
|
|
6860
|
-
*_param,
|
|
6861
|
-
_request_timeout=_request_timeout
|
|
6862
|
-
)
|
|
6863
|
-
response_data.read()
|
|
6864
|
-
return self.api_client.response_deserialize(
|
|
6865
|
-
response_data=response_data,
|
|
6866
|
-
response_types_map=_response_types_map,
|
|
6867
|
-
)
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
@validate_call
|
|
6871
|
-
def update_role_for_organization_member_without_preload_content(
|
|
6872
|
-
self,
|
|
6873
|
-
organization_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
6874
|
-
user_id: Annotated[StrictStr, Field(description="User ID")],
|
|
6875
|
-
update_organization_member_role: UpdateOrganizationMemberRole,
|
|
6876
|
-
_request_timeout: Union[
|
|
6877
|
-
None,
|
|
6878
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
6879
|
-
Tuple[
|
|
6880
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
6881
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
6882
|
-
]
|
|
6883
|
-
] = None,
|
|
6884
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
6885
|
-
_content_type: Optional[StrictStr] = None,
|
|
6886
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6887
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6888
|
-
) -> RESTResponseType:
|
|
6889
|
-
"""Update role for organization member
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
:param organization_id: Organization ID (required)
|
|
6893
|
-
:type organization_id: str
|
|
6894
|
-
:param user_id: User ID (required)
|
|
6895
|
-
:type user_id: str
|
|
6896
|
-
:param update_organization_member_role: (required)
|
|
6897
|
-
:type update_organization_member_role: UpdateOrganizationMemberRole
|
|
6898
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
6899
|
-
number provided, it will be total request
|
|
6900
|
-
timeout. It can also be a pair (tuple) of
|
|
6901
|
-
(connection, read) timeouts.
|
|
6902
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
6903
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
6904
|
-
request; this effectively ignores the
|
|
6905
|
-
authentication in the spec for a single request.
|
|
6906
|
-
:type _request_auth: dict, optional
|
|
6907
|
-
:param _content_type: force content-type for the request.
|
|
6908
|
-
:type _content_type: str, Optional
|
|
6909
|
-
:param _headers: set to override the headers for a single
|
|
6910
|
-
request; this effectively ignores the headers
|
|
6911
|
-
in the spec for a single request.
|
|
6912
|
-
:type _headers: dict, optional
|
|
6913
|
-
:param _host_index: set to override the host_index for a single
|
|
6914
|
-
request; this effectively ignores the host_index
|
|
6915
|
-
in the spec for a single request.
|
|
6916
|
-
:type _host_index: int, optional
|
|
6917
|
-
:return: Returns the result object.
|
|
6918
|
-
""" # noqa: E501
|
|
6919
|
-
|
|
6920
|
-
_param = self._update_role_for_organization_member_serialize(
|
|
6921
|
-
organization_id=organization_id,
|
|
6922
|
-
user_id=user_id,
|
|
6923
|
-
update_organization_member_role=update_organization_member_role,
|
|
6924
|
-
_request_auth=_request_auth,
|
|
6925
|
-
_content_type=_content_type,
|
|
6926
|
-
_headers=_headers,
|
|
6927
|
-
_host_index=_host_index
|
|
6928
|
-
)
|
|
6929
|
-
|
|
6930
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
6931
|
-
'200': "OrganizationUser",
|
|
6932
|
-
}
|
|
6933
|
-
response_data = self.api_client.call_api(
|
|
6934
|
-
*_param,
|
|
6935
|
-
_request_timeout=_request_timeout
|
|
6936
|
-
)
|
|
6937
|
-
return response_data.response
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
def _update_role_for_organization_member_serialize(
|
|
6941
|
-
self,
|
|
6942
|
-
organization_id,
|
|
6943
|
-
user_id,
|
|
6944
|
-
update_organization_member_role,
|
|
6945
|
-
_request_auth,
|
|
6946
|
-
_content_type,
|
|
6947
|
-
_headers,
|
|
6948
|
-
_host_index,
|
|
6949
|
-
) -> RequestSerialized:
|
|
6950
|
-
|
|
6951
|
-
_host = None
|
|
6952
|
-
|
|
6953
|
-
_collection_formats: Dict[str, str] = {
|
|
6954
|
-
}
|
|
6955
|
-
|
|
6956
|
-
_path_params: Dict[str, str] = {}
|
|
6957
|
-
_query_params: List[Tuple[str, str]] = []
|
|
6958
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
6959
|
-
_form_params: List[Tuple[str, str]] = []
|
|
6960
|
-
_files: Dict[
|
|
6961
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
6962
|
-
] = {}
|
|
6963
|
-
_body_params: Optional[bytes] = None
|
|
6964
|
-
|
|
6965
|
-
# process the path parameters
|
|
6966
|
-
if organization_id is not None:
|
|
6967
|
-
_path_params['organizationId'] = organization_id
|
|
6968
|
-
if user_id is not None:
|
|
6969
|
-
_path_params['userId'] = user_id
|
|
6970
|
-
# process the query parameters
|
|
6971
|
-
# process the header parameters
|
|
6972
|
-
# process the form parameters
|
|
6973
|
-
# process the body parameter
|
|
6974
|
-
if update_organization_member_role is not None:
|
|
6975
|
-
_body_params = update_organization_member_role
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
# set the HTTP header `Accept`
|
|
6979
|
-
if 'Accept' not in _header_params:
|
|
6980
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
6981
|
-
[
|
|
6982
|
-
'application/json'
|
|
6983
|
-
]
|
|
6984
|
-
)
|
|
6985
|
-
|
|
6986
|
-
# set the HTTP header `Content-Type`
|
|
6987
|
-
if _content_type:
|
|
6988
|
-
_header_params['Content-Type'] = _content_type
|
|
6989
|
-
else:
|
|
6990
|
-
_default_content_type = (
|
|
6991
|
-
self.api_client.select_header_content_type(
|
|
6992
|
-
[
|
|
6993
|
-
'application/json'
|
|
6994
|
-
]
|
|
6995
|
-
)
|
|
6996
|
-
)
|
|
6997
|
-
if _default_content_type is not None:
|
|
6998
|
-
_header_params['Content-Type'] = _default_content_type
|
|
6999
|
-
|
|
7000
|
-
# authentication setting
|
|
7001
|
-
_auth_settings: List[str] = [
|
|
7002
|
-
'bearer',
|
|
7003
|
-
'oauth2'
|
|
7004
|
-
]
|
|
7005
|
-
|
|
7006
|
-
return self.api_client.param_serialize(
|
|
7007
|
-
method='POST',
|
|
7008
|
-
resource_path='/organizations/{organizationId}/users/{userId}/role',
|
|
7009
|
-
path_params=_path_params,
|
|
7010
|
-
query_params=_query_params,
|
|
7011
|
-
header_params=_header_params,
|
|
7012
|
-
body=_body_params,
|
|
7013
|
-
post_params=_form_params,
|
|
7014
|
-
files=_files,
|
|
7015
|
-
auth_settings=_auth_settings,
|
|
7016
|
-
collection_formats=_collection_formats,
|
|
7017
|
-
_host=_host,
|
|
7018
|
-
_request_auth=_request_auth
|
|
7019
|
-
)
|
|
7020
|
-
|
|
7021
|
-
|
|
@@ -54,7 +54,7 @@ class PreviewApi:
|
|
|
54
54
|
_content_type: Optional[StrictStr] = None,
|
|
55
55
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
56
56
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
57
|
-
) ->
|
|
57
|
+
) -> bool:
|
|
58
58
|
"""Check if user has access to the sandbox
|
|
59
59
|
|
|
60
60
|
|
|
@@ -91,7 +91,7 @@ class PreviewApi:
|
|
|
91
91
|
)
|
|
92
92
|
|
|
93
93
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
94
|
-
'200':
|
|
94
|
+
'200': "bool",
|
|
95
95
|
}
|
|
96
96
|
response_data = self.api_client.call_api(
|
|
97
97
|
*_param,
|
|
@@ -120,7 +120,7 @@ class PreviewApi:
|
|
|
120
120
|
_content_type: Optional[StrictStr] = None,
|
|
121
121
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
122
122
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
123
|
-
) -> ApiResponse[
|
|
123
|
+
) -> ApiResponse[bool]:
|
|
124
124
|
"""Check if user has access to the sandbox
|
|
125
125
|
|
|
126
126
|
|
|
@@ -157,7 +157,7 @@ class PreviewApi:
|
|
|
157
157
|
)
|
|
158
158
|
|
|
159
159
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
160
|
-
'200':
|
|
160
|
+
'200': "bool",
|
|
161
161
|
}
|
|
162
162
|
response_data = self.api_client.call_api(
|
|
163
163
|
*_param,
|
|
@@ -223,7 +223,7 @@ class PreviewApi:
|
|
|
223
223
|
)
|
|
224
224
|
|
|
225
225
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
226
|
-
'200':
|
|
226
|
+
'200': "bool",
|
|
227
227
|
}
|
|
228
228
|
response_data = self.api_client.call_api(
|
|
229
229
|
*_param,
|
|
@@ -264,6 +264,13 @@ class PreviewApi:
|
|
|
264
264
|
# process the body parameter
|
|
265
265
|
|
|
266
266
|
|
|
267
|
+
# set the HTTP header `Accept`
|
|
268
|
+
if 'Accept' not in _header_params:
|
|
269
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
270
|
+
[
|
|
271
|
+
'application/json'
|
|
272
|
+
]
|
|
273
|
+
)
|
|
267
274
|
|
|
268
275
|
|
|
269
276
|
# authentication setting
|