Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
regenerate SDK with new template
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Mar 15, 2024
1 parent a014771 commit 80f9310
Show file tree
Hide file tree
Showing 62 changed files with 186 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class AWSFabricProviderType(str, Enum):
"""
CSP_AWS = 'CSP_AWS'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of AWSFabricProviderType from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class BgpConfigDeploymentType(str, Enum):
GLOBAL = 'global'
LOCAL = 'local'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of BgpConfigDeploymentType from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class BgpConfigRequestInputDeploymentType(str, Enum):
LOCAL = 'local'
GLOBAL = 'global'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of BgpConfigRequestInputDeploymentType from a JSON string"""
Expand Down
3 changes: 3 additions & 0 deletions equinix_metal/equinix_metal/models/bgp_config_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class BgpConfigStatus(str, Enum):
ENABLED = 'enabled'
DISABLED = 'disabled'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of BgpConfigStatus from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class BgpDynamicNeighborState(str, Enum):
PENDING = 'pending'
READY = 'ready'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of BgpDynamicNeighborState from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class BgpSessionAddressFamily(str, Enum):
IPV4 = 'ipv4'
IPV6 = 'ipv6'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of BgpSessionAddressFamily from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class BGPSessionInputAddressFamily(str, Enum):
IPV4 = 'ipv4'
IPV6 = 'ipv6'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of BGPSessionInputAddressFamily from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class CreateSelfServiceReservationRequestPeriodCount(int, Enum):
NUMBER_12 = 12
NUMBER_36 = 36

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of CreateSelfServiceReservationRequestPeriodCount from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class CreateSelfServiceReservationRequestPeriodUnit(str, Enum):
"""
MONTHLY = 'monthly'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of CreateSelfServiceReservationRequestPeriodUnit from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class DedicatedPortCreateInputMode(str, Enum):
STANDARD = 'standard'
TUNNEL = 'tunnel'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of DedicatedPortCreateInputMode from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class DedicatedPortCreateInputType(str, Enum):
"""
DEDICATED = 'dedicated'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of DedicatedPortCreateInputType from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class DeviceActionInputType(str, Enum):
RESCUE = 'rescue'
REINSTALL = 'reinstall'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of DeviceActionInputType from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class DeviceCreateInputBillingCycle(str, Enum):
MONTHLY = 'monthly'
YEARLY = 'yearly'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of DeviceCreateInputBillingCycle from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class DeviceHealthRollupHealthRollup(str, Enum):
WARNING = 'warning'
CRITICAL = 'critical'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of DeviceHealthRollupHealthRollup from a JSON string"""
Expand Down
3 changes: 3 additions & 0 deletions equinix_metal/equinix_metal/models/device_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ class DeviceState(str, Enum):
POWERING_OFF = 'powering_off'
DELETED = 'deleted'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of DeviceState from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class FabricServiceTokenRole(str, Enum):
PRIMARY = 'primary'
SECONDARY = 'secondary'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of FabricServiceTokenRole from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class FabricServiceTokenServiceTokenType(str, Enum):
A_SIDE = 'a_side'
Z_SIDE = 'z_side'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of FabricServiceTokenServiceTokenType from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class FabricServiceTokenState(str, Enum):
ACTIVE = 'active'
EXPIRED = 'expired'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of FabricServiceTokenState from a JSON string"""
Expand Down
3 changes: 3 additions & 0 deletions equinix_metal/equinix_metal/models/facility_features_inner.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class FacilityFeaturesInner(str, Enum):
GLOBAL_IPV4 = 'global_ipv4'
IBX = 'ibx'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of FacilityFeaturesInner from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class FindFacilitiesIncludeParameterInner(str, Enum):
ADDRESS = 'address'
LABELS = 'labels'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of FindFacilitiesIncludeParameterInner from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ class FindIPAvailabilitiesCidrParameter(str, Enum):
ENUM_127 = '127'
ENUM_128 = '128'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of FindIPAvailabilitiesCidrParameter from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class FindIPReservationsTypesParameterInner(str, Enum):
PUBLIC_IPV6 = 'public_ipv6'
VRF = 'vrf'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of FindIPReservationsTypesParameterInner from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class FindOrganizationDevicesCategoriesParameterInner(str, Enum):
LEGACY_GEN = 'legacy_gen'
CURRENT_GEN = 'current_gen'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of FindOrganizationDevicesCategoriesParameterInner from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class FindOrganizationsPersonalParameter(str, Enum):
EXCLUDE = 'exclude'
ONLY = 'only'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of FindOrganizationsPersonalParameter from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class FindPlansTypeParameter(str, Enum):
WORKLOAD_OPTIMIZED = 'workload_optimized'
CUSTOM = 'custom'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of FindPlansTypeParameter from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class FindProjectHardwareReservationsProvisionableParameter(str, Enum):
"""
ONLY = 'only'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of FindProjectHardwareReservationsProvisionableParameter from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class FindProjectHardwareReservationsStateParameter(str, Enum):
SPARE = 'spare'
NEED_OF_SERVICE = 'need_of_service'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of FindProjectHardwareReservationsStateParameter from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class FindTrafficBucketParameter(str, Enum):
INTERNAL = 'internal'
EXTERNAL = 'external'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of FindTrafficBucketParameter from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class FindTrafficDirectionParameter(str, Enum):
INBOUND = 'inbound'
OUTBOUND = 'outbound'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of FindTrafficDirectionParameter from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ class FindTrafficIntervalParameter(str, Enum):
DAY_OF_MONTH = 'day_of_month'
MONTH_OF_YEAR = 'month_of_year'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of FindTrafficIntervalParameter from a JSON string"""
Expand Down
3 changes: 3 additions & 0 deletions equinix_metal/equinix_metal/models/interconnection_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class InterconnectionMode(str, Enum):
STANDARD = 'standard'
TUNNEL = 'tunnel'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of InterconnectionMode from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class InterconnectionPortRole(str, Enum):
PRIMARY = 'primary'
SECONDARY = 'secondary'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of InterconnectionPortRole from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class InterconnectionPortStatus(str, Enum):
EXPIRED = 'expired'
DELETE_FAILED = 'delete_failed'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of InterconnectionPortStatus from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class InterconnectionRedundancy(str, Enum):
PRIMARY = 'primary'
REDUNDANT = 'redundant'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of InterconnectionRedundancy from a JSON string"""
Expand Down
3 changes: 3 additions & 0 deletions equinix_metal/equinix_metal/models/interconnection_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class InterconnectionType(str, Enum):
SHARED_PORT_VLAN = 'shared_port_vlan'
SHARED_PORT_VLAN_TO_CSP = 'shared_port_vlan_to_csp'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of InterconnectionType from a JSON string"""
Expand Down
3 changes: 3 additions & 0 deletions equinix_metal/equinix_metal/models/invitation_roles_inner.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class InvitationRolesInner(str, Enum):
COLLABORATOR = 'collaborator'
LIMITED_COLLABORATOR = 'limited_collaborator'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of InvitationRolesInner from a JSON string"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class IPAddressAddressFamily(int, Enum):
NUMBER_4 = 4
NUMBER_6 = 6

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of IPAddressAddressFamily from a JSON string"""
Expand Down
3 changes: 3 additions & 0 deletions equinix_metal/equinix_metal/models/ip_assignment_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class IPAssignmentState(str, Enum):
ACTIVE = 'active'
DELETING = 'deleting'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of IPAssignmentState from a JSON string"""
Expand Down
3 changes: 3 additions & 0 deletions equinix_metal/equinix_metal/models/ip_reservation_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class IPReservationType(str, Enum):
PRIVATE_IPV4 = 'private_ipv4'
PUBLIC_IPV6 = 'public_ipv6'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of IPReservationType from a JSON string"""
Expand Down
3 changes: 3 additions & 0 deletions equinix_metal/equinix_metal/models/metal_gateway_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class MetalGatewayState(str, Enum):
ACTIVE = 'active'
DELETING = 'deleting'

def __str__(self) -> string:
return self.value.__str__()

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of MetalGatewayState from a JSON string"""
Expand Down
Loading

0 comments on commit 80f9310

Please sign in to comment.