legit-api-client 1.1.4002__py3-none-any.whl → 1.1.4003__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.
- legit_api_client/__init__.py +3 -1
- legit_api_client/api/integrations_api.py +268 -0
- legit_api_client/api_client.py +1 -1
- legit_api_client/configuration.py +1 -1
- legit_api_client/models/__init__.py +1 -0
- legit_api_client/models/apply_bulk_workspace_operation_dto.py +106 -0
- {legit_api_client-1.1.4002.dist-info → legit_api_client-1.1.4003.dist-info}/METADATA +4 -2
- {legit_api_client-1.1.4002.dist-info → legit_api_client-1.1.4003.dist-info}/RECORD +10 -9
- {legit_api_client-1.1.4002.dist-info → legit_api_client-1.1.4003.dist-info}/WHEEL +0 -0
- {legit_api_client-1.1.4002.dist-info → legit_api_client-1.1.4003.dist-info}/top_level.txt +0 -0
legit_api_client/__init__.py
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
""" # noqa: E501
|
15
15
|
|
16
16
|
|
17
|
-
__version__ = "1.1.
|
17
|
+
__version__ = "1.1.4003"
|
18
18
|
|
19
19
|
# Define package exports
|
20
20
|
__all__ = [
|
@@ -52,6 +52,7 @@ __all__ = [
|
|
52
52
|
"AmazonEcrKeyIntegrationEditDto",
|
53
53
|
"AmazonEcrRoleIntegrationCreateDto",
|
54
54
|
"AmazonEcrRoleIntegrationEditDto",
|
55
|
+
"ApplyBulkWorkspaceOperationDto",
|
55
56
|
"ApplyBulkWorkspaceRolesOperationDto",
|
56
57
|
"AssetConnectionDto",
|
57
58
|
"AutomaticCheckDto",
|
@@ -242,6 +243,7 @@ from legit_api_client.models.amazon_ecr_key_integration_create_dto import Amazon
|
|
242
243
|
from legit_api_client.models.amazon_ecr_key_integration_edit_dto import AmazonEcrKeyIntegrationEditDto as AmazonEcrKeyIntegrationEditDto
|
243
244
|
from legit_api_client.models.amazon_ecr_role_integration_create_dto import AmazonEcrRoleIntegrationCreateDto as AmazonEcrRoleIntegrationCreateDto
|
244
245
|
from legit_api_client.models.amazon_ecr_role_integration_edit_dto import AmazonEcrRoleIntegrationEditDto as AmazonEcrRoleIntegrationEditDto
|
246
|
+
from legit_api_client.models.apply_bulk_workspace_operation_dto import ApplyBulkWorkspaceOperationDto as ApplyBulkWorkspaceOperationDto
|
245
247
|
from legit_api_client.models.apply_bulk_workspace_roles_operation_dto import ApplyBulkWorkspaceRolesOperationDto as ApplyBulkWorkspaceRolesOperationDto
|
246
248
|
from legit_api_client.models.asset_connection_dto import AssetConnectionDto as AssetConnectionDto
|
247
249
|
from legit_api_client.models.automatic_check_dto import AutomaticCheckDto as AutomaticCheckDto
|
@@ -23,6 +23,7 @@ from legit_api_client.models.amazon_ecr_key_integration_create_dto import Amazon
|
|
23
23
|
from legit_api_client.models.amazon_ecr_key_integration_edit_dto import AmazonEcrKeyIntegrationEditDto
|
24
24
|
from legit_api_client.models.amazon_ecr_role_integration_create_dto import AmazonEcrRoleIntegrationCreateDto
|
25
25
|
from legit_api_client.models.amazon_ecr_role_integration_edit_dto import AmazonEcrRoleIntegrationEditDto
|
26
|
+
from legit_api_client.models.apply_bulk_workspace_operation_dto import ApplyBulkWorkspaceOperationDto
|
26
27
|
from legit_api_client.models.azure_container_registry_integration_create_dto import AzureContainerRegistryIntegrationCreateDto
|
27
28
|
from legit_api_client.models.azure_container_registry_integration_edit_dto import AzureContainerRegistryIntegrationEditDto
|
28
29
|
from legit_api_client.models.google_container_registry_integration_create_dto import GoogleContainerRegistryIntegrationCreateDto
|
@@ -4572,3 +4573,270 @@ class IntegrationsApi:
|
|
4572
4573
|
)
|
4573
4574
|
|
4574
4575
|
|
4576
|
+
|
4577
|
+
|
4578
|
+
@validate_call
|
4579
|
+
def api_v10_integrations_workspace_bulk_post(
|
4580
|
+
self,
|
4581
|
+
apply_bulk_workspace_operation_dto: Optional[ApplyBulkWorkspaceOperationDto] = None,
|
4582
|
+
_request_timeout: Union[
|
4583
|
+
None,
|
4584
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4585
|
+
Tuple[
|
4586
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4587
|
+
Annotated[StrictFloat, Field(gt=0)]
|
4588
|
+
]
|
4589
|
+
] = None,
|
4590
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4591
|
+
_content_type: Optional[StrictStr] = None,
|
4592
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4593
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4594
|
+
) -> None:
|
4595
|
+
"""Apply bulk workspace operation
|
4596
|
+
|
4597
|
+
|
4598
|
+
:param apply_bulk_workspace_operation_dto:
|
4599
|
+
:type apply_bulk_workspace_operation_dto: ApplyBulkWorkspaceOperationDto
|
4600
|
+
:param _request_timeout: timeout setting for this request. If one
|
4601
|
+
number provided, it will be total request
|
4602
|
+
timeout. It can also be a pair (tuple) of
|
4603
|
+
(connection, read) timeouts.
|
4604
|
+
:type _request_timeout: int, tuple(int, int), optional
|
4605
|
+
:param _request_auth: set to override the auth_settings for an a single
|
4606
|
+
request; this effectively ignores the
|
4607
|
+
authentication in the spec for a single request.
|
4608
|
+
:type _request_auth: dict, optional
|
4609
|
+
:param _content_type: force content-type for the request.
|
4610
|
+
:type _content_type: str, Optional
|
4611
|
+
:param _headers: set to override the headers for a single
|
4612
|
+
request; this effectively ignores the headers
|
4613
|
+
in the spec for a single request.
|
4614
|
+
:type _headers: dict, optional
|
4615
|
+
:param _host_index: set to override the host_index for a single
|
4616
|
+
request; this effectively ignores the host_index
|
4617
|
+
in the spec for a single request.
|
4618
|
+
:type _host_index: int, optional
|
4619
|
+
:return: Returns the result object.
|
4620
|
+
""" # noqa: E501
|
4621
|
+
|
4622
|
+
_param = self._api_v10_integrations_workspace_bulk_post_serialize(
|
4623
|
+
apply_bulk_workspace_operation_dto=apply_bulk_workspace_operation_dto,
|
4624
|
+
_request_auth=_request_auth,
|
4625
|
+
_content_type=_content_type,
|
4626
|
+
_headers=_headers,
|
4627
|
+
_host_index=_host_index
|
4628
|
+
)
|
4629
|
+
|
4630
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
4631
|
+
'204': None,
|
4632
|
+
}
|
4633
|
+
response_data = self.api_client.call_api(
|
4634
|
+
*_param,
|
4635
|
+
_request_timeout=_request_timeout
|
4636
|
+
)
|
4637
|
+
response_data.read()
|
4638
|
+
return self.api_client.response_deserialize(
|
4639
|
+
response_data=response_data,
|
4640
|
+
response_types_map=_response_types_map,
|
4641
|
+
).data
|
4642
|
+
|
4643
|
+
|
4644
|
+
@validate_call
|
4645
|
+
def api_v10_integrations_workspace_bulk_post_with_http_info(
|
4646
|
+
self,
|
4647
|
+
apply_bulk_workspace_operation_dto: Optional[ApplyBulkWorkspaceOperationDto] = None,
|
4648
|
+
_request_timeout: Union[
|
4649
|
+
None,
|
4650
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4651
|
+
Tuple[
|
4652
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4653
|
+
Annotated[StrictFloat, Field(gt=0)]
|
4654
|
+
]
|
4655
|
+
] = None,
|
4656
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4657
|
+
_content_type: Optional[StrictStr] = None,
|
4658
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4659
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4660
|
+
) -> ApiResponse[None]:
|
4661
|
+
"""Apply bulk workspace operation
|
4662
|
+
|
4663
|
+
|
4664
|
+
:param apply_bulk_workspace_operation_dto:
|
4665
|
+
:type apply_bulk_workspace_operation_dto: ApplyBulkWorkspaceOperationDto
|
4666
|
+
:param _request_timeout: timeout setting for this request. If one
|
4667
|
+
number provided, it will be total request
|
4668
|
+
timeout. It can also be a pair (tuple) of
|
4669
|
+
(connection, read) timeouts.
|
4670
|
+
:type _request_timeout: int, tuple(int, int), optional
|
4671
|
+
:param _request_auth: set to override the auth_settings for an a single
|
4672
|
+
request; this effectively ignores the
|
4673
|
+
authentication in the spec for a single request.
|
4674
|
+
:type _request_auth: dict, optional
|
4675
|
+
:param _content_type: force content-type for the request.
|
4676
|
+
:type _content_type: str, Optional
|
4677
|
+
:param _headers: set to override the headers for a single
|
4678
|
+
request; this effectively ignores the headers
|
4679
|
+
in the spec for a single request.
|
4680
|
+
:type _headers: dict, optional
|
4681
|
+
:param _host_index: set to override the host_index for a single
|
4682
|
+
request; this effectively ignores the host_index
|
4683
|
+
in the spec for a single request.
|
4684
|
+
:type _host_index: int, optional
|
4685
|
+
:return: Returns the result object.
|
4686
|
+
""" # noqa: E501
|
4687
|
+
|
4688
|
+
_param = self._api_v10_integrations_workspace_bulk_post_serialize(
|
4689
|
+
apply_bulk_workspace_operation_dto=apply_bulk_workspace_operation_dto,
|
4690
|
+
_request_auth=_request_auth,
|
4691
|
+
_content_type=_content_type,
|
4692
|
+
_headers=_headers,
|
4693
|
+
_host_index=_host_index
|
4694
|
+
)
|
4695
|
+
|
4696
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
4697
|
+
'204': None,
|
4698
|
+
}
|
4699
|
+
response_data = self.api_client.call_api(
|
4700
|
+
*_param,
|
4701
|
+
_request_timeout=_request_timeout
|
4702
|
+
)
|
4703
|
+
response_data.read()
|
4704
|
+
return self.api_client.response_deserialize(
|
4705
|
+
response_data=response_data,
|
4706
|
+
response_types_map=_response_types_map,
|
4707
|
+
)
|
4708
|
+
|
4709
|
+
|
4710
|
+
@validate_call
|
4711
|
+
def api_v10_integrations_workspace_bulk_post_without_preload_content(
|
4712
|
+
self,
|
4713
|
+
apply_bulk_workspace_operation_dto: Optional[ApplyBulkWorkspaceOperationDto] = None,
|
4714
|
+
_request_timeout: Union[
|
4715
|
+
None,
|
4716
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4717
|
+
Tuple[
|
4718
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4719
|
+
Annotated[StrictFloat, Field(gt=0)]
|
4720
|
+
]
|
4721
|
+
] = None,
|
4722
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4723
|
+
_content_type: Optional[StrictStr] = None,
|
4724
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4725
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4726
|
+
) -> RESTResponseType:
|
4727
|
+
"""Apply bulk workspace operation
|
4728
|
+
|
4729
|
+
|
4730
|
+
:param apply_bulk_workspace_operation_dto:
|
4731
|
+
:type apply_bulk_workspace_operation_dto: ApplyBulkWorkspaceOperationDto
|
4732
|
+
:param _request_timeout: timeout setting for this request. If one
|
4733
|
+
number provided, it will be total request
|
4734
|
+
timeout. It can also be a pair (tuple) of
|
4735
|
+
(connection, read) timeouts.
|
4736
|
+
:type _request_timeout: int, tuple(int, int), optional
|
4737
|
+
:param _request_auth: set to override the auth_settings for an a single
|
4738
|
+
request; this effectively ignores the
|
4739
|
+
authentication in the spec for a single request.
|
4740
|
+
:type _request_auth: dict, optional
|
4741
|
+
:param _content_type: force content-type for the request.
|
4742
|
+
:type _content_type: str, Optional
|
4743
|
+
:param _headers: set to override the headers for a single
|
4744
|
+
request; this effectively ignores the headers
|
4745
|
+
in the spec for a single request.
|
4746
|
+
:type _headers: dict, optional
|
4747
|
+
:param _host_index: set to override the host_index for a single
|
4748
|
+
request; this effectively ignores the host_index
|
4749
|
+
in the spec for a single request.
|
4750
|
+
:type _host_index: int, optional
|
4751
|
+
:return: Returns the result object.
|
4752
|
+
""" # noqa: E501
|
4753
|
+
|
4754
|
+
_param = self._api_v10_integrations_workspace_bulk_post_serialize(
|
4755
|
+
apply_bulk_workspace_operation_dto=apply_bulk_workspace_operation_dto,
|
4756
|
+
_request_auth=_request_auth,
|
4757
|
+
_content_type=_content_type,
|
4758
|
+
_headers=_headers,
|
4759
|
+
_host_index=_host_index
|
4760
|
+
)
|
4761
|
+
|
4762
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
4763
|
+
'204': None,
|
4764
|
+
}
|
4765
|
+
response_data = self.api_client.call_api(
|
4766
|
+
*_param,
|
4767
|
+
_request_timeout=_request_timeout
|
4768
|
+
)
|
4769
|
+
return response_data.response
|
4770
|
+
|
4771
|
+
|
4772
|
+
def _api_v10_integrations_workspace_bulk_post_serialize(
|
4773
|
+
self,
|
4774
|
+
apply_bulk_workspace_operation_dto,
|
4775
|
+
_request_auth,
|
4776
|
+
_content_type,
|
4777
|
+
_headers,
|
4778
|
+
_host_index,
|
4779
|
+
) -> RequestSerialized:
|
4780
|
+
|
4781
|
+
_host = None
|
4782
|
+
|
4783
|
+
_collection_formats: Dict[str, str] = {
|
4784
|
+
}
|
4785
|
+
|
4786
|
+
_path_params: Dict[str, str] = {}
|
4787
|
+
_query_params: List[Tuple[str, str]] = []
|
4788
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
4789
|
+
_form_params: List[Tuple[str, str]] = []
|
4790
|
+
_files: Dict[
|
4791
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
4792
|
+
] = {}
|
4793
|
+
_body_params: Optional[bytes] = None
|
4794
|
+
|
4795
|
+
# process the path parameters
|
4796
|
+
# process the query parameters
|
4797
|
+
# process the header parameters
|
4798
|
+
# process the form parameters
|
4799
|
+
# process the body parameter
|
4800
|
+
if apply_bulk_workspace_operation_dto is not None:
|
4801
|
+
_body_params = apply_bulk_workspace_operation_dto
|
4802
|
+
|
4803
|
+
|
4804
|
+
|
4805
|
+
# set the HTTP header `Content-Type`
|
4806
|
+
if _content_type:
|
4807
|
+
_header_params['Content-Type'] = _content_type
|
4808
|
+
else:
|
4809
|
+
_default_content_type = (
|
4810
|
+
self.api_client.select_header_content_type(
|
4811
|
+
[
|
4812
|
+
'application/json-patch+json',
|
4813
|
+
'application/json',
|
4814
|
+
'text/json',
|
4815
|
+
'application/*+json'
|
4816
|
+
]
|
4817
|
+
)
|
4818
|
+
)
|
4819
|
+
if _default_content_type is not None:
|
4820
|
+
_header_params['Content-Type'] = _default_content_type
|
4821
|
+
|
4822
|
+
# authentication setting
|
4823
|
+
_auth_settings: List[str] = [
|
4824
|
+
'BearerAuth'
|
4825
|
+
]
|
4826
|
+
|
4827
|
+
return self.api_client.param_serialize(
|
4828
|
+
method='POST',
|
4829
|
+
resource_path='/api/v1.0/integrations/workspace/bulk',
|
4830
|
+
path_params=_path_params,
|
4831
|
+
query_params=_query_params,
|
4832
|
+
header_params=_header_params,
|
4833
|
+
body=_body_params,
|
4834
|
+
post_params=_form_params,
|
4835
|
+
files=_files,
|
4836
|
+
auth_settings=_auth_settings,
|
4837
|
+
collection_formats=_collection_formats,
|
4838
|
+
_host=_host,
|
4839
|
+
_request_auth=_request_auth
|
4840
|
+
)
|
4841
|
+
|
4842
|
+
|
legit_api_client/api_client.py
CHANGED
@@ -90,7 +90,7 @@ class ApiClient:
|
|
90
90
|
self.default_headers[header_name] = header_value
|
91
91
|
self.cookie = cookie
|
92
92
|
# Set default User-Agent.
|
93
|
-
self.user_agent = 'OpenAPI-Generator/1.1.
|
93
|
+
self.user_agent = 'OpenAPI-Generator/1.1.4003/python'
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
95
95
|
|
96
96
|
def __enter__(self):
|
@@ -511,7 +511,7 @@ class Configuration:
|
|
511
511
|
"OS: {env}\n"\
|
512
512
|
"Python Version: {pyversion}\n"\
|
513
513
|
"Version of the API: 1.0\n"\
|
514
|
-
"SDK Package Version: 1.1.
|
514
|
+
"SDK Package Version: 1.1.4003".\
|
515
515
|
format(env=sys.platform, pyversion=sys.version)
|
516
516
|
|
517
517
|
def get_host_settings(self) -> List[HostSetting]:
|
@@ -20,6 +20,7 @@ from legit_api_client.models.amazon_ecr_key_integration_create_dto import Amazon
|
|
20
20
|
from legit_api_client.models.amazon_ecr_key_integration_edit_dto import AmazonEcrKeyIntegrationEditDto
|
21
21
|
from legit_api_client.models.amazon_ecr_role_integration_create_dto import AmazonEcrRoleIntegrationCreateDto
|
22
22
|
from legit_api_client.models.amazon_ecr_role_integration_edit_dto import AmazonEcrRoleIntegrationEditDto
|
23
|
+
from legit_api_client.models.apply_bulk_workspace_operation_dto import ApplyBulkWorkspaceOperationDto
|
23
24
|
from legit_api_client.models.apply_bulk_workspace_roles_operation_dto import ApplyBulkWorkspaceRolesOperationDto
|
24
25
|
from legit_api_client.models.asset_connection_dto import AssetConnectionDto
|
25
26
|
from legit_api_client.models.automatic_check_dto import AutomaticCheckDto
|
@@ -0,0 +1,106 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Inventory
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
from __future__ import annotations
|
16
|
+
import pprint
|
17
|
+
import re # noqa: F401
|
18
|
+
import json
|
19
|
+
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
22
|
+
from typing import Optional, Set
|
23
|
+
from typing_extensions import Self
|
24
|
+
|
25
|
+
class ApplyBulkWorkspaceOperationDto(BaseModel):
|
26
|
+
"""
|
27
|
+
ApplyBulkWorkspaceOperationDto
|
28
|
+
""" # noqa: E501
|
29
|
+
workspace_id: Optional[StrictStr] = Field(default=None, alias="workspaceId")
|
30
|
+
attach_integration_ids: Optional[List[StrictStr]] = Field(default=None, alias="attachIntegrationIds")
|
31
|
+
detach_integration_ids: Optional[List[StrictStr]] = Field(default=None, alias="detachIntegrationIds")
|
32
|
+
__properties: ClassVar[List[str]] = ["workspaceId", "attachIntegrationIds", "detachIntegrationIds"]
|
33
|
+
|
34
|
+
model_config = ConfigDict(
|
35
|
+
populate_by_name=True,
|
36
|
+
validate_assignment=True,
|
37
|
+
protected_namespaces=(),
|
38
|
+
)
|
39
|
+
|
40
|
+
|
41
|
+
def to_str(self) -> str:
|
42
|
+
"""Returns the string representation of the model using alias"""
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
44
|
+
|
45
|
+
def to_json(self) -> str:
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
48
|
+
return json.dumps(self.to_dict())
|
49
|
+
|
50
|
+
@classmethod
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
52
|
+
"""Create an instance of ApplyBulkWorkspaceOperationDto from a JSON string"""
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
54
|
+
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
57
|
+
|
58
|
+
This has the following differences from calling pydantic's
|
59
|
+
`self.model_dump(by_alias=True)`:
|
60
|
+
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
62
|
+
were set at model initialization. Other fields with value `None`
|
63
|
+
are ignored.
|
64
|
+
"""
|
65
|
+
excluded_fields: Set[str] = set([
|
66
|
+
])
|
67
|
+
|
68
|
+
_dict = self.model_dump(
|
69
|
+
by_alias=True,
|
70
|
+
exclude=excluded_fields,
|
71
|
+
exclude_none=True,
|
72
|
+
)
|
73
|
+
# set to None if workspace_id (nullable) is None
|
74
|
+
# and model_fields_set contains the field
|
75
|
+
if self.workspace_id is None and "workspace_id" in self.model_fields_set:
|
76
|
+
_dict['workspaceId'] = None
|
77
|
+
|
78
|
+
# set to None if attach_integration_ids (nullable) is None
|
79
|
+
# and model_fields_set contains the field
|
80
|
+
if self.attach_integration_ids is None and "attach_integration_ids" in self.model_fields_set:
|
81
|
+
_dict['attachIntegrationIds'] = None
|
82
|
+
|
83
|
+
# set to None if detach_integration_ids (nullable) is None
|
84
|
+
# and model_fields_set contains the field
|
85
|
+
if self.detach_integration_ids is None and "detach_integration_ids" in self.model_fields_set:
|
86
|
+
_dict['detachIntegrationIds'] = None
|
87
|
+
|
88
|
+
return _dict
|
89
|
+
|
90
|
+
@classmethod
|
91
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
92
|
+
"""Create an instance of ApplyBulkWorkspaceOperationDto from a dict"""
|
93
|
+
if obj is None:
|
94
|
+
return None
|
95
|
+
|
96
|
+
if not isinstance(obj, dict):
|
97
|
+
return cls.model_validate(obj)
|
98
|
+
|
99
|
+
_obj = cls.model_validate({
|
100
|
+
"workspaceId": obj.get("workspaceId"),
|
101
|
+
"attachIntegrationIds": obj.get("attachIntegrationIds"),
|
102
|
+
"detachIntegrationIds": obj.get("detachIntegrationIds")
|
103
|
+
})
|
104
|
+
return _obj
|
105
|
+
|
106
|
+
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: legit_api_client
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.4003
|
4
4
|
Summary: Inventory
|
5
5
|
Home-page:
|
6
6
|
Author: OpenAPI Generator community
|
@@ -22,7 +22,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
22
22
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
23
23
|
|
24
24
|
- API version: 1.0
|
25
|
-
- Package version: 1.1.
|
25
|
+
- Package version: 1.1.4003
|
26
26
|
- Generator version: 7.14.0
|
27
27
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
28
28
|
|
@@ -143,6 +143,7 @@ Class | Method | HTTP request | Description
|
|
143
143
|
*IntegrationsApi* | [**api_v10_integrations_jenkins_id_delete**](docs/IntegrationsApi.md#api_v10_integrations_jenkins_id_delete) | **DELETE** /api/v1.0/integrations/jenkins/{id} | Delete Jenkins integration by Id
|
144
144
|
*IntegrationsApi* | [**api_v10_integrations_jenkins_id_put**](docs/IntegrationsApi.md#api_v10_integrations_jenkins_id_put) | **PUT** /api/v1.0/integrations/jenkins/{id} | Update Jenkins integration
|
145
145
|
*IntegrationsApi* | [**api_v10_integrations_jenkins_post**](docs/IntegrationsApi.md#api_v10_integrations_jenkins_post) | **POST** /api/v1.0/integrations/jenkins | Create Jenkins integration
|
146
|
+
*IntegrationsApi* | [**api_v10_integrations_workspace_bulk_post**](docs/IntegrationsApi.md#api_v10_integrations_workspace_bulk_post) | **POST** /api/v1.0/integrations/workspace/bulk | Apply bulk workspace operation
|
146
147
|
*IssuesApi* | [**add_issue_comment**](docs/IssuesApi.md#add_issue_comment) | **POST** /api/v1.0/issues/{id}/comments | Add issue comment
|
147
148
|
*IssuesApi* | [**add_issue_tag**](docs/IssuesApi.md#add_issue_tag) | **POST** /api/v1.0/issues/{issueId}/tags/{tagId} | Add a tag to an issue
|
148
149
|
*IssuesApi* | [**create_issues_tag**](docs/IssuesApi.md#create_issues_tag) | **POST** /api/v1.0/issues/tags | Create issues tag
|
@@ -208,6 +209,7 @@ Class | Method | HTTP request | Description
|
|
208
209
|
- [AmazonEcrKeyIntegrationEditDto](docs/AmazonEcrKeyIntegrationEditDto.md)
|
209
210
|
- [AmazonEcrRoleIntegrationCreateDto](docs/AmazonEcrRoleIntegrationCreateDto.md)
|
210
211
|
- [AmazonEcrRoleIntegrationEditDto](docs/AmazonEcrRoleIntegrationEditDto.md)
|
212
|
+
- [ApplyBulkWorkspaceOperationDto](docs/ApplyBulkWorkspaceOperationDto.md)
|
211
213
|
- [ApplyBulkWorkspaceRolesOperationDto](docs/ApplyBulkWorkspaceRolesOperationDto.md)
|
212
214
|
- [AssetConnectionDto](docs/AssetConnectionDto.md)
|
213
215
|
- [AutomaticCheckDto](docs/AutomaticCheckDto.md)
|
@@ -1,7 +1,7 @@
|
|
1
|
-
legit_api_client/__init__.py,sha256
|
2
|
-
legit_api_client/api_client.py,sha256=
|
1
|
+
legit_api_client/__init__.py,sha256=-YwJAhaZVxjV-7GDKZRz6JaNOxeOHbJb6_kzdGVYZt0,24614
|
2
|
+
legit_api_client/api_client.py,sha256=7tGOFDeuG3Gi2bHYrOnmT5i7lYoEcgoZYHKdI26hEH8,27723
|
3
3
|
legit_api_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
4
|
-
legit_api_client/configuration.py,sha256
|
4
|
+
legit_api_client/configuration.py,sha256=qBIeCB7cF07GcYTXAKulfKf0rzuhDKtHa-uJx5NEVq8,18267
|
5
5
|
legit_api_client/exceptions.py,sha256=ZxE8OUrStEfTktxeRN53ssT8GDIHHW3DyK0blVuIrkE,6471
|
6
6
|
legit_api_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
legit_api_client/rest.py,sha256=6msKxIt5Oczs_qT7cXDA8B7yiawgOz7DUSQUh64E6q0,9470
|
@@ -14,7 +14,7 @@ legit_api_client/api/collaborators_api.py,sha256=IvdjqHfq_0WJE8iQ_XuktVwHZvs6-as
|
|
14
14
|
legit_api_client/api/compliance_api.py,sha256=ml0w42-MrXQvl3YfHkuGIFtmk2DF6j5OzaNdvNBwoR0,55726
|
15
15
|
legit_api_client/api/container_images_api.py,sha256=3ZK4yLSVf36SK3Ix7cnA8ElngWIAlSqtaO_5CBOw3ag,54964
|
16
16
|
legit_api_client/api/custom_fields_api.py,sha256=Jg963zdSXRqaUxYTAzmQY_-BC5xOFa3WzeB8zUZepkE,11027
|
17
|
-
legit_api_client/api/integrations_api.py,sha256=
|
17
|
+
legit_api_client/api/integrations_api.py,sha256=IhQaqexoT_0RBNXKz-_Mw-tDzJeuY2PPRE5IoscWZO8,191902
|
18
18
|
legit_api_client/api/issues_api.py,sha256=Qj83dXPX5QE2RAOjMXQEXN9kTmN2_1uejDdT91SmvHA,169532
|
19
19
|
legit_api_client/api/issues_v2_api.py,sha256=-awuaEHgm2W5IxnJUZRO1CSQ1GnaByFRwCDIxYTwz2U,135335
|
20
20
|
legit_api_client/api/policies_api.py,sha256=2oJ4T8IUpKD8YXxiPg1FqIaJ699nBc9XvqavUTuyEwE,39158
|
@@ -25,13 +25,14 @@ legit_api_client/api/saved_queries_api.py,sha256=7cPQhuoBnb1yl_sMY76-UnpY_1TR6GB
|
|
25
25
|
legit_api_client/api/sdlc_assets_api.py,sha256=AclBVmDQzJJYWhkm98WLXjDyBcVlBjQmyC6do2sLppk,37685
|
26
26
|
legit_api_client/api/tags_api.py,sha256=Rs5-RyIDxQKrDgAFl-RazKhbgbv_q0Q-3wBYeXhSUjE,32570
|
27
27
|
legit_api_client/api/workspaces_api.py,sha256=Eb_BTJkE-zt5fnGEY6wnHH6OHp_nboh9TEsOGyxI-eg,85370
|
28
|
-
legit_api_client/models/__init__.py,sha256=
|
28
|
+
legit_api_client/models/__init__.py,sha256=fyT5K2ZKopM58CTd1vPHPcNguPLs1s-DG4X8XMr08DY,13225
|
29
29
|
legit_api_client/models/add_issue_comment_dto.py,sha256=yXcBOfZzi0UcojpCcFqpO_umOpZZp53qCX3GY4x2DaQ,2575
|
30
30
|
legit_api_client/models/ai_validation_result.py,sha256=rNF_6uz5NWl_qIXEdCILBcwxrtwF0tpdAnOxRGaNAz4,835
|
31
31
|
legit_api_client/models/amazon_ecr_key_integration_create_dto.py,sha256=Inj8_WcHKM26G26o730PYiuPsD2wMP0RLOnjnf-Pw2E,4616
|
32
32
|
legit_api_client/models/amazon_ecr_key_integration_edit_dto.py,sha256=y-G8TXc3AkUieV9SKtp6OB5R5fSmnbjmAeD5jfFeqzs,4608
|
33
33
|
legit_api_client/models/amazon_ecr_role_integration_create_dto.py,sha256=gssNYlaKw5by8RUEay5KQch5cgdwyH_qr_uBsYTLPT0,4163
|
34
34
|
legit_api_client/models/amazon_ecr_role_integration_edit_dto.py,sha256=5zMtAA-RCtyQWs3F86-a9orJSk4dQihCU6D9Vedxh9Y,4155
|
35
|
+
legit_api_client/models/apply_bulk_workspace_operation_dto.py,sha256=XFjKE1RyhDEbTvVuVtjOGy7nYOksKMy_Jsw5ANbeAUg,3801
|
35
36
|
legit_api_client/models/apply_bulk_workspace_roles_operation_dto.py,sha256=l0Z4g_ZIXWafnJbqRK49yboNM55Hc7qo-7s11Ghi1cE,3469
|
36
37
|
legit_api_client/models/asset_connection_dto.py,sha256=4kr4XQNhaIyMlm1vbGzqcGz8QkjFPckEetBWMUZ6PWM,3959
|
37
38
|
legit_api_client/models/automatic_check_dto.py,sha256=4yywratPbVvfh1yZy5Es1-q1g2ZVVV4WhRChOE9_BgQ,3841
|
@@ -181,7 +182,7 @@ legit_api_client/models/workspace_group_tree_node_dto.py,sha256=zV5vmSc0bjqkH7hS
|
|
181
182
|
legit_api_client/models/workspace_hierarchy_dto.py,sha256=qU9eTOHNh3d-XeOM6CbrkTLEwSX0cdjJkbVb03GHS_Y,4522
|
182
183
|
legit_api_client/models/workspace_tree_node_dto.py,sha256=TlM1PPVbuGDQKlgl3Ht_EEj8lJLMqTdVE3_k8QFJldE,3527
|
183
184
|
legit_api_client/models/workspace_type.py,sha256=d-Dy1JkWLAZgZgTHMTaF01QT2Cv1Eexg6HqcKqPEOjs,756
|
184
|
-
legit_api_client-1.1.
|
185
|
-
legit_api_client-1.1.
|
186
|
-
legit_api_client-1.1.
|
187
|
-
legit_api_client-1.1.
|
185
|
+
legit_api_client-1.1.4003.dist-info/METADATA,sha256=SKRUb4VsOa-FmRMOQOCuTcrDX87j3d161GUwIODntFo,28625
|
186
|
+
legit_api_client-1.1.4003.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
187
|
+
legit_api_client-1.1.4003.dist-info/top_level.txt,sha256=3k94tIhdKXTBXkGPCBDQSOnARVo5IwVYlyIfQ18xaDM,17
|
188
|
+
legit_api_client-1.1.4003.dist-info/RECORD,,
|
File without changes
|
File without changes
|