prod swagger
This commit is contained in:
parent
e9938d349c
commit
57dbfa1ef9
@ -20,16 +20,12 @@ class AccessManagementPlace:
|
|||||||
id (int):
|
id (int):
|
||||||
name (str):
|
name (str):
|
||||||
configuration (int):
|
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]):
|
expires_at (Union[None, Unset, datetime.datetime]):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
id: int
|
id: int
|
||||||
name: str
|
name: str
|
||||||
configuration: int
|
configuration: int
|
||||||
monomode_testing_url: str
|
|
||||||
monomode_url: str
|
|
||||||
expires_at: Union[None, Unset, datetime.datetime] = UNSET
|
expires_at: Union[None, Unset, datetime.datetime] = UNSET
|
||||||
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
||||||
|
|
||||||
@ -40,10 +36,6 @@ class AccessManagementPlace:
|
|||||||
|
|
||||||
configuration = self.configuration
|
configuration = self.configuration
|
||||||
|
|
||||||
monomode_testing_url = self.monomode_testing_url
|
|
||||||
|
|
||||||
monomode_url = self.monomode_url
|
|
||||||
|
|
||||||
expires_at: Union[None, Unset, str]
|
expires_at: Union[None, Unset, str]
|
||||||
if isinstance(self.expires_at, Unset):
|
if isinstance(self.expires_at, Unset):
|
||||||
expires_at = UNSET
|
expires_at = UNSET
|
||||||
@ -59,8 +51,6 @@ class AccessManagementPlace:
|
|||||||
"id": id,
|
"id": id,
|
||||||
"name": name,
|
"name": name,
|
||||||
"configuration": configuration,
|
"configuration": configuration,
|
||||||
"monomode_testing_url": monomode_testing_url,
|
|
||||||
"monomode_url": monomode_url,
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
if expires_at is not UNSET:
|
if expires_at is not UNSET:
|
||||||
@ -77,10 +67,6 @@ class AccessManagementPlace:
|
|||||||
|
|
||||||
files.append(("configuration", (None, str(self.configuration).encode(), "text/plain")))
|
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 not isinstance(self.expires_at, Unset):
|
||||||
if isinstance(self.expires_at, datetime.datetime):
|
if isinstance(self.expires_at, datetime.datetime):
|
||||||
files.append(("expires_at", (None, self.expires_at.isoformat().encode(), "text/plain")))
|
files.append(("expires_at", (None, self.expires_at.isoformat().encode(), "text/plain")))
|
||||||
@ -101,10 +87,6 @@ class AccessManagementPlace:
|
|||||||
|
|
||||||
configuration = d.pop("configuration")
|
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]:
|
def _parse_expires_at(data: object) -> Union[None, Unset, datetime.datetime]:
|
||||||
if data is None:
|
if data is None:
|
||||||
return data
|
return data
|
||||||
@ -126,8 +108,6 @@ class AccessManagementPlace:
|
|||||||
id=id,
|
id=id,
|
||||||
name=name,
|
name=name,
|
||||||
configuration=configuration,
|
configuration=configuration,
|
||||||
monomode_testing_url=monomode_testing_url,
|
|
||||||
monomode_url=monomode_url,
|
|
||||||
expires_at=expires_at,
|
expires_at=expires_at,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -21,16 +21,12 @@ class PatchedAccessManagementPlace:
|
|||||||
name (Union[Unset, str]):
|
name (Union[Unset, str]):
|
||||||
configuration (Union[Unset, int]):
|
configuration (Union[Unset, int]):
|
||||||
expires_at (Union[None, Unset, datetime.datetime]):
|
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
|
id: Union[Unset, int] = UNSET
|
||||||
name: Union[Unset, str] = UNSET
|
name: Union[Unset, str] = UNSET
|
||||||
configuration: Union[Unset, int] = UNSET
|
configuration: Union[Unset, int] = UNSET
|
||||||
expires_at: Union[None, Unset, datetime.datetime] = 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)
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
||||||
|
|
||||||
def to_dict(self) -> dict[str, Any]:
|
def to_dict(self) -> dict[str, Any]:
|
||||||
@ -48,10 +44,6 @@ class PatchedAccessManagementPlace:
|
|||||||
else:
|
else:
|
||||||
expires_at = self.expires_at
|
expires_at = self.expires_at
|
||||||
|
|
||||||
monomode_testing_url = self.monomode_testing_url
|
|
||||||
|
|
||||||
monomode_url = self.monomode_url
|
|
||||||
|
|
||||||
field_dict: dict[str, Any] = {}
|
field_dict: dict[str, Any] = {}
|
||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
@ -63,10 +55,6 @@ class PatchedAccessManagementPlace:
|
|||||||
field_dict["configuration"] = configuration
|
field_dict["configuration"] = configuration
|
||||||
if expires_at is not UNSET:
|
if expires_at is not UNSET:
|
||||||
field_dict["expires_at"] = expires_at
|
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
|
return field_dict
|
||||||
|
|
||||||
@ -88,12 +76,6 @@ class PatchedAccessManagementPlace:
|
|||||||
else:
|
else:
|
||||||
files.append(("expires_at", (None, str(self.expires_at).encode(), "text/plain")))
|
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():
|
for prop_name, prop in self.additional_properties.items():
|
||||||
files.append((prop_name, (None, str(prop).encode(), "text/plain")))
|
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))
|
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(
|
patched_access_management_place = cls(
|
||||||
id=id,
|
id=id,
|
||||||
name=name,
|
name=name,
|
||||||
configuration=configuration,
|
configuration=configuration,
|
||||||
expires_at=expires_at,
|
expires_at=expires_at,
|
||||||
monomode_testing_url=monomode_testing_url,
|
|
||||||
monomode_url=monomode_url,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
patched_access_management_place.additional_properties = d
|
patched_access_management_place.additional_properties = d
|
||||||
|
|||||||
@ -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 type CreateClientConfig<T extends DefaultClientOptions = ClientOptions> = (override?: Config<DefaultClientOptions & T>) => Config<Required<DefaultClientOptions> & T>;
|
||||||
|
|
||||||
export const client = createClient(createConfig<ClientOptions>({
|
export const client = createClient(createConfig<ClientOptions>({
|
||||||
baseUrl: 'https://api.dev.v2.polyticket.ch'
|
baseUrl: 'https://api.v2.polyticket.ch'
|
||||||
}));
|
}));
|
||||||
@ -8,14 +8,6 @@ export type AccessManagementPlace = {
|
|||||||
name: string;
|
name: string;
|
||||||
configuration: number;
|
configuration: number;
|
||||||
expires_at?: string | null;
|
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;
|
name?: string;
|
||||||
configuration?: number;
|
configuration?: number;
|
||||||
expires_at?: string | null;
|
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 SchemaRetrieveResponse = SchemaRetrieveResponses[keyof SchemaRetrieveResponses];
|
||||||
|
|
||||||
export type ClientOptions = {
|
export type ClientOptions = {
|
||||||
baseUrl: 'https://api.dev.v2.polyticket.ch' | (string & {});
|
baseUrl: 'https://api.v2.polyticket.ch' | (string & {});
|
||||||
};
|
};
|
||||||
20
swagger.yaml
20
swagger.yaml
@ -7587,20 +7587,9 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
nullable: true
|
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:
|
required:
|
||||||
- configuration
|
- configuration
|
||||||
- id
|
- id
|
||||||
- monomode_testing_url
|
|
||||||
- monomode_url
|
|
||||||
- name
|
- name
|
||||||
AddToBasketNodeExtraInfo:
|
AddToBasketNodeExtraInfo:
|
||||||
type: object
|
type: object
|
||||||
@ -10919,15 +10908,6 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
nullable: true
|
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:
|
PatchedCondition:
|
||||||
type: object
|
type: object
|
||||||
description: Serializer (read/write) for `Condition` model
|
description: Serializer (read/write) for `Condition` model
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user