prod swagger
This commit is contained in:
@@ -20,16 +20,12 @@ class AccessManagementPlace:
|
||||
id (int):
|
||||
name (str):
|
||||
configuration (int):
|
||||
monomode_testing_url (str): URL of the access management scanner for this place, in testing mode.
|
||||
monomode_url (str): URL of the access management scanner for this place.
|
||||
expires_at (Union[None, Unset, datetime.datetime]):
|
||||
"""
|
||||
|
||||
id: int
|
||||
name: str
|
||||
configuration: int
|
||||
monomode_testing_url: str
|
||||
monomode_url: str
|
||||
expires_at: Union[None, Unset, datetime.datetime] = UNSET
|
||||
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
||||
|
||||
@@ -40,10 +36,6 @@ class AccessManagementPlace:
|
||||
|
||||
configuration = self.configuration
|
||||
|
||||
monomode_testing_url = self.monomode_testing_url
|
||||
|
||||
monomode_url = self.monomode_url
|
||||
|
||||
expires_at: Union[None, Unset, str]
|
||||
if isinstance(self.expires_at, Unset):
|
||||
expires_at = UNSET
|
||||
@@ -59,8 +51,6 @@ class AccessManagementPlace:
|
||||
"id": id,
|
||||
"name": name,
|
||||
"configuration": configuration,
|
||||
"monomode_testing_url": monomode_testing_url,
|
||||
"monomode_url": monomode_url,
|
||||
}
|
||||
)
|
||||
if expires_at is not UNSET:
|
||||
@@ -77,10 +67,6 @@ class AccessManagementPlace:
|
||||
|
||||
files.append(("configuration", (None, str(self.configuration).encode(), "text/plain")))
|
||||
|
||||
files.append(("monomode_testing_url", (None, str(self.monomode_testing_url).encode(), "text/plain")))
|
||||
|
||||
files.append(("monomode_url", (None, str(self.monomode_url).encode(), "text/plain")))
|
||||
|
||||
if not isinstance(self.expires_at, Unset):
|
||||
if isinstance(self.expires_at, datetime.datetime):
|
||||
files.append(("expires_at", (None, self.expires_at.isoformat().encode(), "text/plain")))
|
||||
@@ -101,10 +87,6 @@ class AccessManagementPlace:
|
||||
|
||||
configuration = d.pop("configuration")
|
||||
|
||||
monomode_testing_url = d.pop("monomode_testing_url")
|
||||
|
||||
monomode_url = d.pop("monomode_url")
|
||||
|
||||
def _parse_expires_at(data: object) -> Union[None, Unset, datetime.datetime]:
|
||||
if data is None:
|
||||
return data
|
||||
@@ -126,8 +108,6 @@ class AccessManagementPlace:
|
||||
id=id,
|
||||
name=name,
|
||||
configuration=configuration,
|
||||
monomode_testing_url=monomode_testing_url,
|
||||
monomode_url=monomode_url,
|
||||
expires_at=expires_at,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user