legit-api-client 1.1.3975__py3-none-any.whl → 1.1.3976__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.
@@ -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.3975/python'
93
+ self.user_agent = 'OpenAPI-Generator/1.1.3976/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.3975".\
514
+ "SDK Package Version: 1.1.3976".\
515
515
  format(env=sys.platform, pyversion=sys.version)
516
516
 
517
517
  def get_host_settings(self) -> List[HostSetting]:
@@ -17,12 +17,15 @@
17
17
  from legit_api_client.models.add_issue_comment_dto import AddIssueCommentDto
18
18
  from legit_api_client.models.ai_validation_result import AiValidationResult
19
19
  from legit_api_client.models.amazon_ecr_key_integration_create_dto import AmazonEcrKeyIntegrationCreateDto
20
+ from legit_api_client.models.amazon_ecr_key_integration_edit_dto import AmazonEcrKeyIntegrationEditDto
20
21
  from legit_api_client.models.amazon_ecr_role_integration_create_dto import AmazonEcrRoleIntegrationCreateDto
22
+ from legit_api_client.models.amazon_ecr_role_integration_edit_dto import AmazonEcrRoleIntegrationEditDto
21
23
  from legit_api_client.models.apply_bulk_workspace_roles_operation_dto import ApplyBulkWorkspaceRolesOperationDto
22
24
  from legit_api_client.models.asset_connection_dto import AssetConnectionDto
23
25
  from legit_api_client.models.automatic_check_dto import AutomaticCheckDto
24
26
  from legit_api_client.models.aws_region import AwsRegion
25
27
  from legit_api_client.models.azure_container_registry_integration_create_dto import AzureContainerRegistryIntegrationCreateDto
28
+ from legit_api_client.models.azure_container_registry_integration_edit_dto import AzureContainerRegistryIntegrationEditDto
26
29
  from legit_api_client.models.basic_issue import BasicIssue
27
30
  from legit_api_client.models.broker_connection_status import BrokerConnectionStatus
28
31
  from legit_api_client.models.broker_dto import BrokerDto
@@ -81,6 +84,7 @@ from legit_api_client.models.framework_policy_type import FrameworkPolicyType
81
84
  from legit_api_client.models.get_custom_fields_response_dto import GetCustomFieldsResponseDto
82
85
  from legit_api_client.models.get_sdlc_asset_graph_evidence_by_ids_response_dto import GetSdlcAssetGraphEvidenceByIdsResponseDto
83
86
  from legit_api_client.models.google_container_registry_integration_create_dto import GoogleContainerRegistryIntegrationCreateDto
87
+ from legit_api_client.models.google_container_registry_integration_edit_dto import GoogleContainerRegistryIntegrationEditDto
84
88
  from legit_api_client.models.integration_bad_response_dto import IntegrationBadResponseDto
85
89
  from legit_api_client.models.integration_dto import IntegrationDto
86
90
  from legit_api_client.models.integration_error import IntegrationError
@@ -104,6 +108,7 @@ from legit_api_client.models.issue_ticketing_dto import IssueTicketingDto
104
108
  from legit_api_client.models.issue_type import IssueType
105
109
  from legit_api_client.models.issues_tag_dto import IssuesTagDto
106
110
  from legit_api_client.models.jenkins_integration_create_dto import JenkinsIntegrationCreateDto
111
+ from legit_api_client.models.jenkins_integration_edit_dto import JenkinsIntegrationEditDto
107
112
  from legit_api_client.models.legit_score_category_dto import LegitScoreCategoryDto
108
113
  from legit_api_client.models.legit_score_dto import LegitScoreDto
109
114
  from legit_api_client.models.legit_score_grade import LegitScoreGrade
@@ -0,0 +1,123 @@
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, StrictBool, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from legit_api_client.models.aws_region import AwsRegion
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class AmazonEcrKeyIntegrationEditDto(BaseModel):
27
+ """
28
+ AmazonEcrKeyIntegrationEditDto
29
+ """ # noqa: E501
30
+ name: Optional[StrictStr] = None
31
+ aws_region: Optional[AwsRegion] = Field(default=None, alias="awsRegion")
32
+ access_key_id: Optional[StrictStr] = Field(default=None, alias="accessKeyId")
33
+ secret_access_key: Optional[StrictStr] = Field(default=None, alias="secretAccessKey")
34
+ workspace_id: Optional[StrictStr] = Field(default=None, alias="workspaceId")
35
+ ignore_warnings: Optional[StrictBool] = Field(default=False, alias="ignoreWarnings")
36
+ __properties: ClassVar[List[str]] = ["name", "awsRegion", "accessKeyId", "secretAccessKey", "workspaceId", "ignoreWarnings"]
37
+
38
+ model_config = ConfigDict(
39
+ populate_by_name=True,
40
+ validate_assignment=True,
41
+ protected_namespaces=(),
42
+ )
43
+
44
+
45
+ def to_str(self) -> str:
46
+ """Returns the string representation of the model using alias"""
47
+ return pprint.pformat(self.model_dump(by_alias=True))
48
+
49
+ def to_json(self) -> str:
50
+ """Returns the JSON representation of the model using alias"""
51
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
52
+ return json.dumps(self.to_dict())
53
+
54
+ @classmethod
55
+ def from_json(cls, json_str: str) -> Optional[Self]:
56
+ """Create an instance of AmazonEcrKeyIntegrationEditDto from a JSON string"""
57
+ return cls.from_dict(json.loads(json_str))
58
+
59
+ def to_dict(self) -> Dict[str, Any]:
60
+ """Return the dictionary representation of the model using alias.
61
+
62
+ This has the following differences from calling pydantic's
63
+ `self.model_dump(by_alias=True)`:
64
+
65
+ * `None` is only added to the output dict for nullable fields that
66
+ were set at model initialization. Other fields with value `None`
67
+ are ignored.
68
+ """
69
+ excluded_fields: Set[str] = set([
70
+ ])
71
+
72
+ _dict = self.model_dump(
73
+ by_alias=True,
74
+ exclude=excluded_fields,
75
+ exclude_none=True,
76
+ )
77
+ # set to None if name (nullable) is None
78
+ # and model_fields_set contains the field
79
+ if self.name is None and "name" in self.model_fields_set:
80
+ _dict['name'] = None
81
+
82
+ # set to None if access_key_id (nullable) is None
83
+ # and model_fields_set contains the field
84
+ if self.access_key_id is None and "access_key_id" in self.model_fields_set:
85
+ _dict['accessKeyId'] = None
86
+
87
+ # set to None if secret_access_key (nullable) is None
88
+ # and model_fields_set contains the field
89
+ if self.secret_access_key is None and "secret_access_key" in self.model_fields_set:
90
+ _dict['secretAccessKey'] = None
91
+
92
+ # set to None if workspace_id (nullable) is None
93
+ # and model_fields_set contains the field
94
+ if self.workspace_id is None and "workspace_id" in self.model_fields_set:
95
+ _dict['workspaceId'] = None
96
+
97
+ # set to None if ignore_warnings (nullable) is None
98
+ # and model_fields_set contains the field
99
+ if self.ignore_warnings is None and "ignore_warnings" in self.model_fields_set:
100
+ _dict['ignoreWarnings'] = None
101
+
102
+ return _dict
103
+
104
+ @classmethod
105
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
106
+ """Create an instance of AmazonEcrKeyIntegrationEditDto from a dict"""
107
+ if obj is None:
108
+ return None
109
+
110
+ if not isinstance(obj, dict):
111
+ return cls.model_validate(obj)
112
+
113
+ _obj = cls.model_validate({
114
+ "name": obj.get("name"),
115
+ "awsRegion": obj.get("awsRegion"),
116
+ "accessKeyId": obj.get("accessKeyId"),
117
+ "secretAccessKey": obj.get("secretAccessKey"),
118
+ "workspaceId": obj.get("workspaceId"),
119
+ "ignoreWarnings": obj.get("ignoreWarnings") if obj.get("ignoreWarnings") is not None else False
120
+ })
121
+ return _obj
122
+
123
+
@@ -0,0 +1,116 @@
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, StrictBool, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from legit_api_client.models.aws_region import AwsRegion
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class AmazonEcrRoleIntegrationEditDto(BaseModel):
27
+ """
28
+ AmazonEcrRoleIntegrationEditDto
29
+ """ # noqa: E501
30
+ name: Optional[StrictStr] = None
31
+ aws_region: Optional[AwsRegion] = Field(default=None, alias="awsRegion")
32
+ role_arn: Optional[StrictStr] = Field(default=None, alias="roleArn")
33
+ workspace_id: Optional[StrictStr] = Field(default=None, alias="workspaceId")
34
+ ignore_warnings: Optional[StrictBool] = Field(default=False, alias="ignoreWarnings")
35
+ __properties: ClassVar[List[str]] = ["name", "awsRegion", "roleArn", "workspaceId", "ignoreWarnings"]
36
+
37
+ model_config = ConfigDict(
38
+ populate_by_name=True,
39
+ validate_assignment=True,
40
+ protected_namespaces=(),
41
+ )
42
+
43
+
44
+ def to_str(self) -> str:
45
+ """Returns the string representation of the model using alias"""
46
+ return pprint.pformat(self.model_dump(by_alias=True))
47
+
48
+ def to_json(self) -> str:
49
+ """Returns the JSON representation of the model using alias"""
50
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
51
+ return json.dumps(self.to_dict())
52
+
53
+ @classmethod
54
+ def from_json(cls, json_str: str) -> Optional[Self]:
55
+ """Create an instance of AmazonEcrRoleIntegrationEditDto from a JSON string"""
56
+ return cls.from_dict(json.loads(json_str))
57
+
58
+ def to_dict(self) -> Dict[str, Any]:
59
+ """Return the dictionary representation of the model using alias.
60
+
61
+ This has the following differences from calling pydantic's
62
+ `self.model_dump(by_alias=True)`:
63
+
64
+ * `None` is only added to the output dict for nullable fields that
65
+ were set at model initialization. Other fields with value `None`
66
+ are ignored.
67
+ """
68
+ excluded_fields: Set[str] = set([
69
+ ])
70
+
71
+ _dict = self.model_dump(
72
+ by_alias=True,
73
+ exclude=excluded_fields,
74
+ exclude_none=True,
75
+ )
76
+ # set to None if name (nullable) is None
77
+ # and model_fields_set contains the field
78
+ if self.name is None and "name" in self.model_fields_set:
79
+ _dict['name'] = None
80
+
81
+ # set to None if role_arn (nullable) is None
82
+ # and model_fields_set contains the field
83
+ if self.role_arn is None and "role_arn" in self.model_fields_set:
84
+ _dict['roleArn'] = None
85
+
86
+ # set to None if workspace_id (nullable) is None
87
+ # and model_fields_set contains the field
88
+ if self.workspace_id is None and "workspace_id" in self.model_fields_set:
89
+ _dict['workspaceId'] = None
90
+
91
+ # set to None if ignore_warnings (nullable) is None
92
+ # and model_fields_set contains the field
93
+ if self.ignore_warnings is None and "ignore_warnings" in self.model_fields_set:
94
+ _dict['ignoreWarnings'] = None
95
+
96
+ return _dict
97
+
98
+ @classmethod
99
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
100
+ """Create an instance of AmazonEcrRoleIntegrationEditDto from a dict"""
101
+ if obj is None:
102
+ return None
103
+
104
+ if not isinstance(obj, dict):
105
+ return cls.model_validate(obj)
106
+
107
+ _obj = cls.model_validate({
108
+ "name": obj.get("name"),
109
+ "awsRegion": obj.get("awsRegion"),
110
+ "roleArn": obj.get("roleArn"),
111
+ "workspaceId": obj.get("workspaceId"),
112
+ "ignoreWarnings": obj.get("ignoreWarnings") if obj.get("ignoreWarnings") is not None else False
113
+ })
114
+ return _obj
115
+
116
+
@@ -0,0 +1,141 @@
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, StrictBool, 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 AzureContainerRegistryIntegrationEditDto(BaseModel):
26
+ """
27
+ AzureContainerRegistryIntegrationEditDto
28
+ """ # noqa: E501
29
+ azure_tenant_id: Optional[StrictStr] = Field(default=None, alias="azureTenantId")
30
+ client_id: Optional[StrictStr] = Field(default=None, alias="clientId")
31
+ client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret")
32
+ subscription_id: Optional[StrictStr] = Field(default=None, alias="subscriptionId")
33
+ broker_id: Optional[StrictStr] = Field(default=None, alias="brokerId")
34
+ name: Optional[StrictStr] = None
35
+ workspace_id: Optional[StrictStr] = Field(default=None, alias="workspaceId")
36
+ ignore_warnings: Optional[StrictBool] = Field(default=False, alias="ignoreWarnings")
37
+ __properties: ClassVar[List[str]] = ["azureTenantId", "clientId", "clientSecret", "subscriptionId", "brokerId", "name", "workspaceId", "ignoreWarnings"]
38
+
39
+ model_config = ConfigDict(
40
+ populate_by_name=True,
41
+ validate_assignment=True,
42
+ protected_namespaces=(),
43
+ )
44
+
45
+
46
+ def to_str(self) -> str:
47
+ """Returns the string representation of the model using alias"""
48
+ return pprint.pformat(self.model_dump(by_alias=True))
49
+
50
+ def to_json(self) -> str:
51
+ """Returns the JSON representation of the model using alias"""
52
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
53
+ return json.dumps(self.to_dict())
54
+
55
+ @classmethod
56
+ def from_json(cls, json_str: str) -> Optional[Self]:
57
+ """Create an instance of AzureContainerRegistryIntegrationEditDto from a JSON string"""
58
+ return cls.from_dict(json.loads(json_str))
59
+
60
+ def to_dict(self) -> Dict[str, Any]:
61
+ """Return the dictionary representation of the model using alias.
62
+
63
+ This has the following differences from calling pydantic's
64
+ `self.model_dump(by_alias=True)`:
65
+
66
+ * `None` is only added to the output dict for nullable fields that
67
+ were set at model initialization. Other fields with value `None`
68
+ are ignored.
69
+ """
70
+ excluded_fields: Set[str] = set([
71
+ ])
72
+
73
+ _dict = self.model_dump(
74
+ by_alias=True,
75
+ exclude=excluded_fields,
76
+ exclude_none=True,
77
+ )
78
+ # set to None if azure_tenant_id (nullable) is None
79
+ # and model_fields_set contains the field
80
+ if self.azure_tenant_id is None and "azure_tenant_id" in self.model_fields_set:
81
+ _dict['azureTenantId'] = None
82
+
83
+ # set to None if client_id (nullable) is None
84
+ # and model_fields_set contains the field
85
+ if self.client_id is None and "client_id" in self.model_fields_set:
86
+ _dict['clientId'] = None
87
+
88
+ # set to None if client_secret (nullable) is None
89
+ # and model_fields_set contains the field
90
+ if self.client_secret is None and "client_secret" in self.model_fields_set:
91
+ _dict['clientSecret'] = None
92
+
93
+ # set to None if subscription_id (nullable) is None
94
+ # and model_fields_set contains the field
95
+ if self.subscription_id is None and "subscription_id" in self.model_fields_set:
96
+ _dict['subscriptionId'] = None
97
+
98
+ # set to None if broker_id (nullable) is None
99
+ # and model_fields_set contains the field
100
+ if self.broker_id is None and "broker_id" in self.model_fields_set:
101
+ _dict['brokerId'] = None
102
+
103
+ # set to None if name (nullable) is None
104
+ # and model_fields_set contains the field
105
+ if self.name is None and "name" in self.model_fields_set:
106
+ _dict['name'] = None
107
+
108
+ # set to None if workspace_id (nullable) is None
109
+ # and model_fields_set contains the field
110
+ if self.workspace_id is None and "workspace_id" in self.model_fields_set:
111
+ _dict['workspaceId'] = None
112
+
113
+ # set to None if ignore_warnings (nullable) is None
114
+ # and model_fields_set contains the field
115
+ if self.ignore_warnings is None and "ignore_warnings" in self.model_fields_set:
116
+ _dict['ignoreWarnings'] = None
117
+
118
+ return _dict
119
+
120
+ @classmethod
121
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
122
+ """Create an instance of AzureContainerRegistryIntegrationEditDto from a dict"""
123
+ if obj is None:
124
+ return None
125
+
126
+ if not isinstance(obj, dict):
127
+ return cls.model_validate(obj)
128
+
129
+ _obj = cls.model_validate({
130
+ "azureTenantId": obj.get("azureTenantId"),
131
+ "clientId": obj.get("clientId"),
132
+ "clientSecret": obj.get("clientSecret"),
133
+ "subscriptionId": obj.get("subscriptionId"),
134
+ "brokerId": obj.get("brokerId"),
135
+ "name": obj.get("name"),
136
+ "workspaceId": obj.get("workspaceId"),
137
+ "ignoreWarnings": obj.get("ignoreWarnings") if obj.get("ignoreWarnings") is not None else False
138
+ })
139
+ return _obj
140
+
141
+
@@ -0,0 +1,120 @@
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, StrictBool, 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 GoogleContainerRegistryIntegrationEditDto(BaseModel):
26
+ """
27
+ GoogleContainerRegistryIntegrationEditDto
28
+ """ # noqa: E501
29
+ name: Optional[StrictStr] = None
30
+ url: Optional[StrictStr] = None
31
+ token: Optional[StrictStr] = None
32
+ workspace_id: Optional[StrictStr] = Field(default=None, alias="workspaceId")
33
+ ignore_warnings: Optional[StrictBool] = Field(default=False, alias="ignoreWarnings")
34
+ __properties: ClassVar[List[str]] = ["name", "url", "token", "workspaceId", "ignoreWarnings"]
35
+
36
+ model_config = ConfigDict(
37
+ populate_by_name=True,
38
+ validate_assignment=True,
39
+ protected_namespaces=(),
40
+ )
41
+
42
+
43
+ def to_str(self) -> str:
44
+ """Returns the string representation of the model using alias"""
45
+ return pprint.pformat(self.model_dump(by_alias=True))
46
+
47
+ def to_json(self) -> str:
48
+ """Returns the JSON representation of the model using alias"""
49
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
50
+ return json.dumps(self.to_dict())
51
+
52
+ @classmethod
53
+ def from_json(cls, json_str: str) -> Optional[Self]:
54
+ """Create an instance of GoogleContainerRegistryIntegrationEditDto from a JSON string"""
55
+ return cls.from_dict(json.loads(json_str))
56
+
57
+ def to_dict(self) -> Dict[str, Any]:
58
+ """Return the dictionary representation of the model using alias.
59
+
60
+ This has the following differences from calling pydantic's
61
+ `self.model_dump(by_alias=True)`:
62
+
63
+ * `None` is only added to the output dict for nullable fields that
64
+ were set at model initialization. Other fields with value `None`
65
+ are ignored.
66
+ """
67
+ excluded_fields: Set[str] = set([
68
+ ])
69
+
70
+ _dict = self.model_dump(
71
+ by_alias=True,
72
+ exclude=excluded_fields,
73
+ exclude_none=True,
74
+ )
75
+ # set to None if name (nullable) is None
76
+ # and model_fields_set contains the field
77
+ if self.name is None and "name" in self.model_fields_set:
78
+ _dict['name'] = None
79
+
80
+ # set to None if url (nullable) is None
81
+ # and model_fields_set contains the field
82
+ if self.url is None and "url" in self.model_fields_set:
83
+ _dict['url'] = None
84
+
85
+ # set to None if token (nullable) is None
86
+ # and model_fields_set contains the field
87
+ if self.token is None and "token" in self.model_fields_set:
88
+ _dict['token'] = None
89
+
90
+ # set to None if workspace_id (nullable) is None
91
+ # and model_fields_set contains the field
92
+ if self.workspace_id is None and "workspace_id" in self.model_fields_set:
93
+ _dict['workspaceId'] = None
94
+
95
+ # set to None if ignore_warnings (nullable) is None
96
+ # and model_fields_set contains the field
97
+ if self.ignore_warnings is None and "ignore_warnings" in self.model_fields_set:
98
+ _dict['ignoreWarnings'] = None
99
+
100
+ return _dict
101
+
102
+ @classmethod
103
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
104
+ """Create an instance of GoogleContainerRegistryIntegrationEditDto from a dict"""
105
+ if obj is None:
106
+ return None
107
+
108
+ if not isinstance(obj, dict):
109
+ return cls.model_validate(obj)
110
+
111
+ _obj = cls.model_validate({
112
+ "name": obj.get("name"),
113
+ "url": obj.get("url"),
114
+ "token": obj.get("token"),
115
+ "workspaceId": obj.get("workspaceId"),
116
+ "ignoreWarnings": obj.get("ignoreWarnings") if obj.get("ignoreWarnings") is not None else False
117
+ })
118
+ return _obj
119
+
120
+