Skip to content

Commit

Permalink
re-patch metal spec and regenerate code; this is not mergeable
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Sep 6, 2024
1 parent 183e19d commit e5056d1
Show file tree
Hide file tree
Showing 55 changed files with 3,137 additions and 128 deletions.
13 changes: 13 additions & 0 deletions equinix/services/metalv1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
from equinix.services.metalv1.models.capacity_input import CapacityInput
from equinix.services.metalv1.models.capacity_level_per_baremetal import CapacityLevelPerBaremetal
from equinix.services.metalv1.models.capacity_list import CapacityList
from equinix.services.metalv1.models.capacity_list1 import CapacityList1
from equinix.services.metalv1.models.component import Component
from equinix.services.metalv1.models.coordinates import Coordinates
from equinix.services.metalv1.models.create_device_request import CreateDeviceRequest
Expand Down Expand Up @@ -129,12 +130,18 @@
from equinix.services.metalv1.models.entitlement import Entitlement
from equinix.services.metalv1.models.error import Error
from equinix.services.metalv1.models.event import Event
from equinix.services.metalv1.models.event1 import Event1
from equinix.services.metalv1.models.event2 import Event2
from equinix.services.metalv1.models.event_list import EventList
from equinix.services.metalv1.models.event_list1 import EventList1
from equinix.services.metalv1.models.event_list2 import EventList2
from equinix.services.metalv1.models.fabric_service_token import FabricServiceToken
from equinix.services.metalv1.models.facility import Facility
from equinix.services.metalv1.models.facility_input import FacilityInput
from equinix.services.metalv1.models.facility_input_facility import FacilityInputFacility
from equinix.services.metalv1.models.facility_list import FacilityList
from equinix.services.metalv1.models.facility_list1 import FacilityList1
from equinix.services.metalv1.models.facility_list2 import FacilityList2
from equinix.services.metalv1.models.filesystem import Filesystem
from equinix.services.metalv1.models.find_ip_address_by_id200_response import FindIPAddressById200Response
from equinix.services.metalv1.models.find_metal_gateway_by_id200_response import FindMetalGatewayById200Response
Expand Down Expand Up @@ -175,8 +182,12 @@
from equinix.services.metalv1.models.interconnection_pricing_list_provider_pricing_inner_tiers_inner import InterconnectionPricingListProviderPricingInnerTiersInner
from equinix.services.metalv1.models.interconnection_update_input import InterconnectionUpdateInput
from equinix.services.metalv1.models.invitation import Invitation
from equinix.services.metalv1.models.invitation1 import Invitation1
from equinix.services.metalv1.models.invitation2 import Invitation2
from equinix.services.metalv1.models.invitation_input import InvitationInput
from equinix.services.metalv1.models.invitation_list import InvitationList
from equinix.services.metalv1.models.invitation_list1 import InvitationList1
from equinix.services.metalv1.models.invitation_list2 import InvitationList2
from equinix.services.metalv1.models.invoice import Invoice
from equinix.services.metalv1.models.invoice_list import InvoiceList
from equinix.services.metalv1.models.license import License
Expand Down Expand Up @@ -207,6 +218,7 @@
from equinix.services.metalv1.models.new_password import NewPassword
from equinix.services.metalv1.models.operating_system import OperatingSystem
from equinix.services.metalv1.models.operating_system_list import OperatingSystemList
from equinix.services.metalv1.models.operating_system_list1 import OperatingSystemList1
from equinix.services.metalv1.models.organization import Organization
from equinix.services.metalv1.models.organization_input import OrganizationInput
from equinix.services.metalv1.models.organization_list import OrganizationList
Expand All @@ -223,6 +235,7 @@
from equinix.services.metalv1.models.plan_available_in_metros_inner import PlanAvailableInMetrosInner
from equinix.services.metalv1.models.plan_id_name import PlanIdName
from equinix.services.metalv1.models.plan_list import PlanList
from equinix.services.metalv1.models.plan_list1 import PlanList1
from equinix.services.metalv1.models.plan_specs import PlanSpecs
from equinix.services.metalv1.models.plan_specs_cpus_inner import PlanSpecsCpusInner
from equinix.services.metalv1.models.plan_specs_drives_inner import PlanSpecsDrivesInner
Expand Down
11 changes: 6 additions & 5 deletions equinix/services/metalv1/api/capacity_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from equinix.services.metalv1.models.capacity_check_per_metro_list import CapacityCheckPerMetroList
from equinix.services.metalv1.models.capacity_input import CapacityInput
from equinix.services.metalv1.models.capacity_list import CapacityList
from equinix.services.metalv1.models.capacity_list1 import CapacityList1

from equinix.services.metalv1.api_client import ApiClient, RequestSerialized
from equinix.services.metalv1.api_response import ApiResponse
Expand Down Expand Up @@ -1095,7 +1096,7 @@ def find_organization_capacity_per_facility(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> CapacityList:
) -> CapacityList1:
"""View available hardware plans per Facility for given organization
Returns a list of facilities and plans with their current capacity.
Expand Down Expand Up @@ -1133,7 +1134,7 @@ def find_organization_capacity_per_facility(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "CapacityList",
'200': "CapacityList1",
'401': "Error",
'403': "Error",
}
Expand Down Expand Up @@ -1164,7 +1165,7 @@ def find_organization_capacity_per_facility_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[CapacityList]:
) -> ApiResponse[CapacityList1]:
"""View available hardware plans per Facility for given organization
Returns a list of facilities and plans with their current capacity.
Expand Down Expand Up @@ -1202,7 +1203,7 @@ def find_organization_capacity_per_facility_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "CapacityList",
'200': "CapacityList1",
'401': "Error",
'403': "Error",
}
Expand Down Expand Up @@ -1271,7 +1272,7 @@ def find_organization_capacity_per_facility_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "CapacityList",
'200': "CapacityList1",
'401': "Error",
'403': "Error",
}
Expand Down
52 changes: 28 additions & 24 deletions equinix/services/metalv1/api/events_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
from typing import List, Optional
from typing_extensions import Annotated
from equinix.services.metalv1.models.event import Event
from equinix.services.metalv1.models.event1 import Event1
from equinix.services.metalv1.models.event2 import Event2
from equinix.services.metalv1.models.event_list import EventList
from equinix.services.metalv1.models.event_list1 import EventList1
from equinix.services.metalv1.models.event_list2 import EventList2

from equinix.services.metalv1.api_client import ApiClient, RequestSerialized
from equinix.services.metalv1.api_response import ApiResponse
Expand Down Expand Up @@ -1835,7 +1839,7 @@ def _find_interconnection_port_events_serialize(


@validate_call
def find_organization_events_all_pages(self, id : Annotated[StrictStr, Field(description="Organization UUID")], include : Annotated[Optional[List[StrictStr]], Field(description="Nested attributes to include. Included objects will return their full attributes. Attribute names can be dotted (up to 3 levels) to included deeply nested objects.")] = None, exclude : Annotated[Optional[List[StrictStr]], Field(description="Nested attributes to exclude. Excluded objects will return only the href attribute. Attribute names can be dotted (up to 3 levels) to exclude deeply nested objects.")] = None, per_page : Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Items returned per page")] = None, **kwargs) -> EventList: # noqa: E501
def find_organization_events_all_pages(self, id : Annotated[StrictStr, Field(description="Organization UUID")], include : Annotated[Optional[List[StrictStr]], Field(description="Nested attributes to include. Included objects will return their full attributes. Attribute names can be dotted (up to 3 levels) to included deeply nested objects.")] = None, exclude : Annotated[Optional[List[StrictStr]], Field(description="Nested attributes to exclude. Excluded objects will return only the href attribute. Attribute names can be dotted (up to 3 levels) to exclude deeply nested objects.")] = None, per_page : Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Items returned per page")] = None, **kwargs) -> EventList1: # noqa: E501
"""Retrieve organization's events # noqa: E501
This method is the same as find_organization_events, but fetches resources from all the pages.
Expand Down Expand Up @@ -1868,7 +1872,7 @@ def find_organization_events_all_pages(self, id : Annotated[StrictStr, Field(des
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: EventList
:rtype: EventList1
"""
all_pages = None
Expand Down Expand Up @@ -1909,7 +1913,7 @@ def find_organization_events(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> EventList:
) -> EventList1:
"""Retrieve organization's events
Returns a list of events for a single organization
Expand Down Expand Up @@ -1959,7 +1963,7 @@ def find_organization_events(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "EventList",
'200': "EventList1",
'401': "Error",
'403': "Error",
'404': "Error",
Expand Down Expand Up @@ -1995,7 +1999,7 @@ def find_organization_events_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[EventList]:
) -> ApiResponse[EventList1]:
"""Retrieve organization's events
Returns a list of events for a single organization
Expand Down Expand Up @@ -2045,7 +2049,7 @@ def find_organization_events_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "EventList",
'200': "EventList1",
'401': "Error",
'403': "Error",
'404': "Error",
Expand Down Expand Up @@ -2131,7 +2135,7 @@ def find_organization_events_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "EventList",
'200': "EventList1",
'401': "Error",
'403': "Error",
'404': "Error",
Expand Down Expand Up @@ -2225,7 +2229,7 @@ def _find_organization_events_serialize(


@validate_call
def find_project_events_all_pages(self, id : Annotated[StrictStr, Field(description="Project UUID")], include : Annotated[Optional[List[StrictStr]], Field(description="Nested attributes to include. Included objects will return their full attributes. Attribute names can be dotted (up to 3 levels) to included deeply nested objects.")] = None, exclude : Annotated[Optional[List[StrictStr]], Field(description="Nested attributes to exclude. Excluded objects will return only the href attribute. Attribute names can be dotted (up to 3 levels) to exclude deeply nested objects.")] = None, per_page : Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Items returned per page")] = None, **kwargs) -> EventList: # noqa: E501
def find_project_events_all_pages(self, id : Annotated[StrictStr, Field(description="Project UUID")], include : Annotated[Optional[List[StrictStr]], Field(description="Nested attributes to include. Included objects will return their full attributes. Attribute names can be dotted (up to 3 levels) to included deeply nested objects.")] = None, exclude : Annotated[Optional[List[StrictStr]], Field(description="Nested attributes to exclude. Excluded objects will return only the href attribute. Attribute names can be dotted (up to 3 levels) to exclude deeply nested objects.")] = None, per_page : Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Items returned per page")] = None, **kwargs) -> EventList2: # noqa: E501
"""Retrieve project's events # noqa: E501
This method is the same as find_project_events, but fetches resources from all the pages.
Expand Down Expand Up @@ -2258,7 +2262,7 @@ def find_project_events_all_pages(self, id : Annotated[StrictStr, Field(descript
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: EventList
:rtype: EventList2
"""
all_pages = None
Expand Down Expand Up @@ -2299,7 +2303,7 @@ def find_project_events(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> EventList:
) -> EventList2:
"""Retrieve project's events
Returns a list of events for a single project
Expand Down Expand Up @@ -2349,7 +2353,7 @@ def find_project_events(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "EventList",
'200': "EventList2",
'401': "Error",
'403': "Error",
'404': "Error",
Expand Down Expand Up @@ -2385,7 +2389,7 @@ def find_project_events_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[EventList]:
) -> ApiResponse[EventList2]:
"""Retrieve project's events
Returns a list of events for a single project
Expand Down Expand Up @@ -2435,7 +2439,7 @@ def find_project_events_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "EventList",
'200': "EventList2",
'401': "Error",
'403': "Error",
'404': "Error",
Expand Down Expand Up @@ -2521,7 +2525,7 @@ def find_project_events_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "EventList",
'200': "EventList2",
'401': "Error",
'403': "Error",
'404': "Error",
Expand Down Expand Up @@ -2634,7 +2638,7 @@ def find_virtual_circuit_events(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> Event:
) -> Event2:
"""Retrieve virtual circuit events
Returns a list of the virtual circuit events
Expand Down Expand Up @@ -2684,7 +2688,7 @@ def find_virtual_circuit_events(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "Event",
'200': "Event2",
'401': "Error",
'403': "Error",
'404': "Error",
Expand Down Expand Up @@ -2720,7 +2724,7 @@ def find_virtual_circuit_events_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[Event]:
) -> ApiResponse[Event2]:
"""Retrieve virtual circuit events
Returns a list of the virtual circuit events
Expand Down Expand Up @@ -2770,7 +2774,7 @@ def find_virtual_circuit_events_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "Event",
'200': "Event2",
'401': "Error",
'403': "Error",
'404': "Error",
Expand Down Expand Up @@ -2856,7 +2860,7 @@ def find_virtual_circuit_events_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "Event",
'200': "Event2",
'401': "Error",
'403': "Error",
'404': "Error",
Expand Down Expand Up @@ -2969,7 +2973,7 @@ def find_vrf_route_events(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> Event:
) -> Event1:
"""Retrieve VRF route events
Returns a list of the VRF route events
Expand Down Expand Up @@ -3019,7 +3023,7 @@ def find_vrf_route_events(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "Event",
'200': "Event1",
'401': "Error",
'403': "Error",
'404': "Error",
Expand Down Expand Up @@ -3055,7 +3059,7 @@ def find_vrf_route_events_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[Event]:
) -> ApiResponse[Event1]:
"""Retrieve VRF route events
Returns a list of the VRF route events
Expand Down Expand Up @@ -3105,7 +3109,7 @@ def find_vrf_route_events_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "Event",
'200': "Event1",
'401': "Error",
'403': "Error",
'404': "Error",
Expand Down Expand Up @@ -3191,7 +3195,7 @@ def find_vrf_route_events_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "Event",
'200': "Event1",
'401': "Error",
'403': "Error",
'404': "Error",
Expand Down
Loading

0 comments on commit e5056d1

Please sign in to comment.