forked from pool/python-qcs-api-client
249 lines
11 KiB
Diff
249 lines
11 KiB
Diff
|
Index: qcs-api-client-python-0.21.0/qcs_api_client/api/reservations/find_available_reservations.py
|
||
|
===================================================================
|
||
|
--- qcs-api-client-python-0.21.0.orig/qcs_api_client/api/reservations/find_available_reservations.py
|
||
|
+++ qcs-api-client-python-0.21.0/qcs_api_client/api/reservations/find_available_reservations.py
|
||
|
@@ -3,7 +3,7 @@ from typing import Any, Dict
|
||
|
|
||
|
import httpx
|
||
|
from retrying import retry
|
||
|
-from rfc3339 import rfc3339
|
||
|
+from pyrfc3339 import parse
|
||
|
|
||
|
from ...models.find_available_reservations_response import FindAvailableReservationsResponse
|
||
|
from ...types import UNSET, Response
|
||
|
@@ -27,7 +27,7 @@ def _get_kwargs(
|
||
|
params["quantumProcessorId"] = quantum_processor_id
|
||
|
|
||
|
assert start_time_from.tzinfo is not None, "Datetime must have timezone information"
|
||
|
- json_start_time_from = rfc3339(start_time_from)
|
||
|
+ json_start_time_from = parse(start_time_from)
|
||
|
|
||
|
params["startTimeFrom"] = json_start_time_from
|
||
|
|
||
|
Index: qcs-api-client-python-0.21.0/qcs_api_client/models/available_reservation.py
|
||
|
===================================================================
|
||
|
--- qcs-api-client-python-0.21.0.orig/qcs_api_client/models/available_reservation.py
|
||
|
+++ qcs-api-client-python-0.21.0/qcs_api_client/models/available_reservation.py
|
||
|
@@ -3,7 +3,7 @@ from typing import Any, Callable, Dict,
|
||
|
|
||
|
import attr
|
||
|
from dateutil.parser import isoparse
|
||
|
-from rfc3339 import rfc3339
|
||
|
+from pyrfc3339 import parse
|
||
|
|
||
|
from ..types import UNSET
|
||
|
from ..util.serialization import is_not_none
|
||
|
@@ -32,12 +32,12 @@ class AvailableReservation:
|
||
|
def to_dict(self, pick_by_predicate: Optional[Callable[[Any], bool]] = is_not_none) -> Dict[str, Any]:
|
||
|
duration = self.duration
|
||
|
assert self.end_time.tzinfo is not None, "Datetime must have timezone information"
|
||
|
- end_time = rfc3339(self.end_time)
|
||
|
+ end_time = parse(self.end_time)
|
||
|
|
||
|
price = self.price
|
||
|
quantum_processor_id = self.quantum_processor_id
|
||
|
assert self.start_time.tzinfo is not None, "Datetime must have timezone information"
|
||
|
- start_time = rfc3339(self.start_time)
|
||
|
+ start_time = parse(self.start_time)
|
||
|
|
||
|
field_dict: Dict[str, Any] = {}
|
||
|
field_dict.update(self.additional_properties)
|
||
|
Index: qcs-api-client-python-0.21.0/qcs_api_client/models/billing_invoice.py
|
||
|
===================================================================
|
||
|
--- qcs-api-client-python-0.21.0.orig/qcs_api_client/models/billing_invoice.py
|
||
|
+++ qcs-api-client-python-0.21.0/qcs_api_client/models/billing_invoice.py
|
||
|
@@ -3,7 +3,7 @@ from typing import Any, Callable, Dict,
|
||
|
|
||
|
import attr
|
||
|
from dateutil.parser import isoparse
|
||
|
-from rfc3339 import rfc3339
|
||
|
+from pyrfc3339 import parse
|
||
|
|
||
|
from ..models.billing_invoice_status import BillingInvoiceStatus
|
||
|
from ..types import UNSET
|
||
|
@@ -39,10 +39,10 @@ class BillingInvoice:
|
||
|
|
||
|
def to_dict(self, pick_by_predicate: Optional[Callable[[Any], bool]] = is_not_none) -> Dict[str, Any]:
|
||
|
assert self.period_end.tzinfo is not None, "Datetime must have timezone information"
|
||
|
- period_end = rfc3339(self.period_end)
|
||
|
+ period_end = parse(self.period_end)
|
||
|
|
||
|
assert self.period_start.tzinfo is not None, "Datetime must have timezone information"
|
||
|
- period_start = rfc3339(self.period_start)
|
||
|
+ period_start = parse(self.period_start)
|
||
|
|
||
|
starting_balance = self.starting_balance
|
||
|
status = self.status.value
|
||
|
Index: qcs-api-client-python-0.21.0/qcs_api_client/models/billing_upcoming_invoice.py
|
||
|
===================================================================
|
||
|
--- qcs-api-client-python-0.21.0.orig/qcs_api_client/models/billing_upcoming_invoice.py
|
||
|
+++ qcs-api-client-python-0.21.0/qcs_api_client/models/billing_upcoming_invoice.py
|
||
|
@@ -3,7 +3,7 @@ from typing import Any, Callable, Dict,
|
||
|
|
||
|
import attr
|
||
|
from dateutil.parser import isoparse
|
||
|
-from rfc3339 import rfc3339
|
||
|
+from pyrfc3339 import parse
|
||
|
|
||
|
from ..models.billing_invoice_status import BillingInvoiceStatus
|
||
|
from ..types import UNSET
|
||
|
@@ -37,10 +37,10 @@ class BillingUpcomingInvoice:
|
||
|
|
||
|
def to_dict(self, pick_by_predicate: Optional[Callable[[Any], bool]] = is_not_none) -> Dict[str, Any]:
|
||
|
assert self.period_end.tzinfo is not None, "Datetime must have timezone information"
|
||
|
- period_end = rfc3339(self.period_end)
|
||
|
+ period_end = parse(self.period_end)
|
||
|
|
||
|
assert self.period_start.tzinfo is not None, "Datetime must have timezone information"
|
||
|
- period_start = rfc3339(self.period_start)
|
||
|
+ period_start = parse(self.period_start)
|
||
|
|
||
|
starting_balance = self.starting_balance
|
||
|
status = self.status.value
|
||
|
Index: qcs-api-client-python-0.21.0/qcs_api_client/models/characteristic.py
|
||
|
===================================================================
|
||
|
--- qcs-api-client-python-0.21.0.orig/qcs_api_client/models/characteristic.py
|
||
|
+++ qcs-api-client-python-0.21.0/qcs_api_client/models/characteristic.py
|
||
|
@@ -3,7 +3,7 @@ from typing import Any, Callable, Dict,
|
||
|
|
||
|
import attr
|
||
|
from dateutil.parser import isoparse
|
||
|
-from rfc3339 import rfc3339
|
||
|
+from pyrfc3339 import parse
|
||
|
|
||
|
from ..types import UNSET, Unset
|
||
|
from ..util.serialization import is_not_none
|
||
|
@@ -38,7 +38,7 @@ class Characteristic:
|
||
|
def to_dict(self, pick_by_predicate: Optional[Callable[[Any], bool]] = is_not_none) -> Dict[str, Any]:
|
||
|
name = self.name
|
||
|
assert self.timestamp.tzinfo is not None, "Datetime must have timezone information"
|
||
|
- timestamp = rfc3339(self.timestamp)
|
||
|
+ timestamp = parse(self.timestamp)
|
||
|
|
||
|
value = self.value
|
||
|
error = self.error
|
||
|
Index: qcs-api-client-python-0.21.0/qcs_api_client/models/create_reservation_request.py
|
||
|
===================================================================
|
||
|
--- qcs-api-client-python-0.21.0.orig/qcs_api_client/models/create_reservation_request.py
|
||
|
+++ qcs-api-client-python-0.21.0/qcs_api_client/models/create_reservation_request.py
|
||
|
@@ -3,7 +3,7 @@ from typing import Any, Callable, Dict,
|
||
|
|
||
|
import attr
|
||
|
from dateutil.parser import isoparse
|
||
|
-from rfc3339 import rfc3339
|
||
|
+from pyrfc3339 import parse
|
||
|
|
||
|
from ..models.account_type import AccountType
|
||
|
from ..types import UNSET, Unset
|
||
|
@@ -36,11 +36,11 @@ class CreateReservationRequest:
|
||
|
|
||
|
def to_dict(self, pick_by_predicate: Optional[Callable[[Any], bool]] = is_not_none) -> Dict[str, Any]:
|
||
|
assert self.end_time.tzinfo is not None, "Datetime must have timezone information"
|
||
|
- end_time = rfc3339(self.end_time)
|
||
|
+ end_time = parse(self.end_time)
|
||
|
|
||
|
quantum_processor_id = self.quantum_processor_id
|
||
|
assert self.start_time.tzinfo is not None, "Datetime must have timezone information"
|
||
|
- start_time = rfc3339(self.start_time)
|
||
|
+ start_time = parse(self.start_time)
|
||
|
|
||
|
account_id = self.account_id
|
||
|
account_type: Union[Unset, str] = UNSET
|
||
|
Index: qcs-api-client-python-0.21.0/qcs_api_client/models/group.py
|
||
|
===================================================================
|
||
|
--- qcs-api-client-python-0.21.0.orig/qcs_api_client/models/group.py
|
||
|
+++ qcs-api-client-python-0.21.0/qcs_api_client/models/group.py
|
||
|
@@ -3,7 +3,7 @@ from typing import Any, Callable, Dict,
|
||
|
|
||
|
import attr
|
||
|
from dateutil.parser import isoparse
|
||
|
-from rfc3339 import rfc3339
|
||
|
+from pyrfc3339 import parse
|
||
|
|
||
|
from ..types import UNSET
|
||
|
from ..util.serialization import is_not_none
|
||
|
@@ -33,16 +33,16 @@ class Group:
|
||
|
|
||
|
def to_dict(self, pick_by_predicate: Optional[Callable[[Any], bool]] = is_not_none) -> Dict[str, Any]:
|
||
|
assert self.created_time.tzinfo is not None, "Datetime must have timezone information"
|
||
|
- created_time = rfc3339(self.created_time)
|
||
|
+ created_time = parse(self.created_time)
|
||
|
|
||
|
description = self.description
|
||
|
id = self.id
|
||
|
assert self.last_membership_updated_time.tzinfo is not None, "Datetime must have timezone information"
|
||
|
- last_membership_updated_time = rfc3339(self.last_membership_updated_time)
|
||
|
+ last_membership_updated_time = parse(self.last_membership_updated_time)
|
||
|
|
||
|
name = self.name
|
||
|
assert self.updated_time.tzinfo is not None, "Datetime must have timezone information"
|
||
|
- updated_time = rfc3339(self.updated_time)
|
||
|
+ updated_time = parse(self.updated_time)
|
||
|
|
||
|
field_dict: Dict[str, Any] = {}
|
||
|
field_dict.update(self.additional_properties)
|
||
|
Index: qcs-api-client-python-0.21.0/qcs_api_client/models/reservation.py
|
||
|
===================================================================
|
||
|
--- qcs-api-client-python-0.21.0.orig/qcs_api_client/models/reservation.py
|
||
|
+++ qcs-api-client-python-0.21.0/qcs_api_client/models/reservation.py
|
||
|
@@ -3,7 +3,7 @@ from typing import Any, Callable, Dict,
|
||
|
|
||
|
import attr
|
||
|
from dateutil.parser import isoparse
|
||
|
-from rfc3339 import rfc3339
|
||
|
+from pyrfc3339 import parse
|
||
|
|
||
|
from ..models.account_type import AccountType
|
||
|
from ..types import UNSET, Unset
|
||
|
@@ -55,16 +55,16 @@ class Reservation:
|
||
|
account_type = self.account_type.value
|
||
|
|
||
|
assert self.created_time.tzinfo is not None, "Datetime must have timezone information"
|
||
|
- created_time = rfc3339(self.created_time)
|
||
|
+ created_time = parse(self.created_time)
|
||
|
|
||
|
assert self.end_time.tzinfo is not None, "Datetime must have timezone information"
|
||
|
- end_time = rfc3339(self.end_time)
|
||
|
+ end_time = parse(self.end_time)
|
||
|
|
||
|
id = self.id
|
||
|
price = self.price
|
||
|
quantum_processor_id = self.quantum_processor_id
|
||
|
assert self.start_time.tzinfo is not None, "Datetime must have timezone information"
|
||
|
- start_time = rfc3339(self.start_time)
|
||
|
+ start_time = parse(self.start_time)
|
||
|
|
||
|
user_id = self.user_id
|
||
|
cancellation_billing_invoice_item_id = self.cancellation_billing_invoice_item_id
|
||
|
@@ -73,7 +73,7 @@ class Reservation:
|
||
|
notes = self.notes
|
||
|
updated_time: Union[Unset, str] = UNSET
|
||
|
if not isinstance(self.updated_time, Unset):
|
||
|
- updated_time = rfc3339(self.updated_time)
|
||
|
+ updated_time = parse(self.updated_time)
|
||
|
|
||
|
field_dict: Dict[str, Any] = {}
|
||
|
field_dict.update(self.additional_properties)
|
||
|
Index: qcs-api-client-python-0.21.0/qcs_api_client/models/user.py
|
||
|
===================================================================
|
||
|
--- qcs-api-client-python-0.21.0.orig/qcs_api_client/models/user.py
|
||
|
+++ qcs-api-client-python-0.21.0/qcs_api_client/models/user.py
|
||
|
@@ -3,7 +3,7 @@ from typing import Any, Callable, Dict,
|
||
|
|
||
|
import attr
|
||
|
from dateutil.parser import isoparse
|
||
|
-from rfc3339 import rfc3339
|
||
|
+from pyrfc3339 import parse
|
||
|
|
||
|
from ..models.user_profile import UserProfile
|
||
|
from ..types import UNSET, Unset
|
||
|
@@ -30,7 +30,7 @@ class User:
|
||
|
|
||
|
def to_dict(self, pick_by_predicate: Optional[Callable[[Any], bool]] = is_not_none) -> Dict[str, Any]:
|
||
|
assert self.created_time.tzinfo is not None, "Datetime must have timezone information"
|
||
|
- created_time = rfc3339(self.created_time)
|
||
|
+ created_time = parse(self.created_time)
|
||
|
|
||
|
id = self.id
|
||
|
idp_id = self.idp_id
|