prod swagger

This commit is contained in:
Loïc Gremaud 2025-07-11 12:04:45 +02:00
parent e9938d349c
commit 57dbfa1ef9
Signed by: Legrems
GPG Key ID: D4620E6DF3E0121D
5 changed files with 2 additions and 82 deletions

View File

@ -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,
)

View File

@ -21,16 +21,12 @@ class PatchedAccessManagementPlace:
name (Union[Unset, str]):
configuration (Union[Unset, int]):
expires_at (Union[None, Unset, datetime.datetime]):
monomode_testing_url (Union[Unset, str]): URL of the access management scanner for this place, in testing mode.
monomode_url (Union[Unset, str]): URL of the access management scanner for this place.
"""
id: Union[Unset, int] = UNSET
name: Union[Unset, str] = UNSET
configuration: Union[Unset, int] = UNSET
expires_at: Union[None, Unset, datetime.datetime] = UNSET
monomode_testing_url: Union[Unset, str] = UNSET
monomode_url: Union[Unset, str] = UNSET
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
def to_dict(self) -> dict[str, Any]:
@ -48,10 +44,6 @@ class PatchedAccessManagementPlace:
else:
expires_at = self.expires_at
monomode_testing_url = self.monomode_testing_url
monomode_url = self.monomode_url
field_dict: dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@ -63,10 +55,6 @@ class PatchedAccessManagementPlace:
field_dict["configuration"] = configuration
if expires_at is not UNSET:
field_dict["expires_at"] = expires_at
if monomode_testing_url is not UNSET:
field_dict["monomode_testing_url"] = monomode_testing_url
if monomode_url is not UNSET:
field_dict["monomode_url"] = monomode_url
return field_dict
@ -88,12 +76,6 @@ class PatchedAccessManagementPlace:
else:
files.append(("expires_at", (None, str(self.expires_at).encode(), "text/plain")))
if not isinstance(self.monomode_testing_url, Unset):
files.append(("monomode_testing_url", (None, str(self.monomode_testing_url).encode(), "text/plain")))
if not isinstance(self.monomode_url, Unset):
files.append(("monomode_url", (None, str(self.monomode_url).encode(), "text/plain")))
for prop_name, prop in self.additional_properties.items():
files.append((prop_name, (None, str(prop).encode(), "text/plain")))
@ -125,17 +107,11 @@ class PatchedAccessManagementPlace:
expires_at = _parse_expires_at(d.pop("expires_at", UNSET))
monomode_testing_url = d.pop("monomode_testing_url", UNSET)
monomode_url = d.pop("monomode_url", UNSET)
patched_access_management_place = cls(
id=id,
name=name,
configuration=configuration,
expires_at=expires_at,
monomode_testing_url=monomode_testing_url,
monomode_url=monomode_url,
)
patched_access_management_place.additional_properties = d

View File

@ -14,5 +14,5 @@ import { type Config, type ClientOptions as DefaultClientOptions, createClient,
export type CreateClientConfig<T extends DefaultClientOptions = ClientOptions> = (override?: Config<DefaultClientOptions & T>) => Config<Required<DefaultClientOptions> & T>;
export const client = createClient(createConfig<ClientOptions>({
baseUrl: 'https://api.dev.v2.polyticket.ch'
baseUrl: 'https://api.v2.polyticket.ch'
}));

View File

@ -8,14 +8,6 @@ export type AccessManagementPlace = {
name: string;
configuration: number;
expires_at?: string | null;
/**
* URL of the access management scanner for this place, in testing mode.
*/
readonly monomode_testing_url: string;
/**
* URL of the access management scanner for this place.
*/
readonly monomode_url: string;
};
/**
@ -1533,14 +1525,6 @@ export type PatchedAccessManagementPlace = {
name?: string;
configuration?: number;
expires_at?: string | null;
/**
* URL of the access management scanner for this place, in testing mode.
*/
readonly monomode_testing_url?: string;
/**
* URL of the access management scanner for this place.
*/
readonly monomode_url?: string;
};
/**
@ -8616,5 +8600,5 @@ export type SchemaRetrieveResponses = {
export type SchemaRetrieveResponse = SchemaRetrieveResponses[keyof SchemaRetrieveResponses];
export type ClientOptions = {
baseUrl: 'https://api.dev.v2.polyticket.ch' | (string & {});
baseUrl: 'https://api.v2.polyticket.ch' | (string & {});
};

View File

@ -7587,20 +7587,9 @@ components:
type: string
format: date-time
nullable: true
monomode_testing_url:
type: string
readOnly: true
description: URL of the access management scanner for this place, in testing
mode.
monomode_url:
type: string
readOnly: true
description: URL of the access management scanner for this place.
required:
- configuration
- id
- monomode_testing_url
- monomode_url
- name
AddToBasketNodeExtraInfo:
type: object
@ -10919,15 +10908,6 @@ components:
type: string
format: date-time
nullable: true
monomode_testing_url:
type: string
readOnly: true
description: URL of the access management scanner for this place, in testing
mode.
monomode_url:
type: string
readOnly: true
description: URL of the access management scanner for this place.
PatchedCondition:
type: object
description: Serializer (read/write) for `Condition` model