Documentation ¶
Index ¶
- type ConnectionsResponse
- type CreateL2SellerConnectionParams
- type CreateRoutingInstanceParams
- type ECXConnectionsAPI
- func (m *ECXConnectionsAPI) CreateL2ConnectionSellerProfile(params *CreateL2SellerConnectionParams, ecxseller *ECXSellerServicesAPI) (*apiconnections.CreateConnectionUsingPOSTOK, error)
- func (m *ECXConnectionsAPI) DeleteByUUID(uuid string) (*apiconnections.DeleteConnectionUsingDELETEOK, error)
- func (m *ECXConnectionsAPI) GetAllBuyerConnections(metro *string) (*ConnectionsResponse, error)
- func (m *ECXConnectionsAPI) GetBuyerConnections(pageNumber *int32, pageSize *int32, metro *string) (*ConnectionsResponse, error)
- func (m *ECXConnectionsAPI) GetByUUID(uuid string) (*apiconnections.GetConnectionByUUIDUsingGETOK, error)
- func (m *ECXConnectionsAPI) NewCreateL2SellerConnectionParams() *CreateL2SellerConnectionParams
- type ECXMetrosAPI
- type ECXPortsAPI
- type ECXRoutingInstanceAPI
- func (ec *ECXRoutingInstanceAPI) CheckRoutingInstanceNameExists(name string, metroCode string) (bool, error)
- func (ec *ECXRoutingInstanceAPI) CreateRoutingInstance(params *CreateRoutingInstanceParams) (string, error)
- func (ec *ECXRoutingInstanceAPI) GetAllRoutingInstances(params *GetAllRoutingInstancesParams) (*apiroutinginstance.GetAllRoutingInstancesUsingGETOK, error)
- type ECXSellerServicesAPI
- func (ec *ECXSellerServicesAPI) GetAllL2SellerProfiles(metroCode *[]string) (*L2SellerProfiles, error)
- func (ec *ECXSellerServicesAPI) GetAllL3SellerServices(metroCode *[]string) (*L3SellerServices, error)
- func (ec *ECXSellerServicesAPI) GetL2SellerProfiles(metroCode *[]string, pageNumber *int32, pageSize *int32) (*L2SellerProfiles, error)
- func (ec *ECXSellerServicesAPI) GetL3SellerServices(metroCode *[]string, pageNumber *int32, pageSize *int32) (*L3SellerServices, error)
- func (ec *ECXSellerServicesAPI) GetSellerProfileByUUID(uuid string) (*api_seller_service_profiles.GetProfileByIDOrNameUsingGETOK, error)
- func (ec *ECXSellerServicesAPI) ValidateIntegrationID(integrationid string) (bool, error)
- type GetAllRoutingInstancesParams
- type L2SellerProfiles
- type L3SellerServices
- type MetrosAPIHandler
- type PortsAPIHandler
- type RoutingInstanceAPIHandler
- type SellerProfile
- type SellerServicesAPIHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionsResponse ¶
ConnectionsResponse initial wrapper for swagger GetBuyerConResContent
func (*ConnectionsResponse) AppendItems ¶
func (c *ConnectionsResponse) AppendItems(items []interface{})
AppendItems appends slice of interface items to internal Items
func (*ConnectionsResponse) Count ¶
func (c *ConnectionsResponse) Count() int
Count return total count of items
func (*ConnectionsResponse) FilterItems ¶
func (c *ConnectionsResponse) FilterItems(filters map[string]string)
FilterItems applies specific filters to items and updates internal items
func (*ConnectionsResponse) GetItems ¶
func (c *ConnectionsResponse) GetItems() []interface{}
GetItems retrieves all Items
func (*ConnectionsResponse) SetItems ¶
func (c *ConnectionsResponse) SetItems(items []interface{})
SetItems replaces internal slice of interface items with items
type CreateL2SellerConnectionParams ¶
type CreateL2SellerConnectionParams struct { // authorization key AuthorizationKey string `json:"authorizationKey,omitempty"` // named tag NamedTag string `json:"namedTag,omitempty"` // notifications Notifications []string `json:"notifications"` // primary name PrimaryName string `json:"primaryName,omitempty"` // primary port UUID PrimaryPortUUID string `json:"primaryPortUUID,omitempty"` // primary vlan c tag PrimaryVlanCTag string `json:"primaryVlanCTag,omitempty"` // primary vlan s tag PrimaryVlanSTag int64 `json:"primaryVlanSTag,omitempty"` // primary z side port UUID PrimaryZSidePortUUID string `json:"primaryZSidePortUUID,omitempty"` // primary z side vlan c tag PrimaryZSideVlanCTag int64 `json:"primaryZSideVlanCTag,omitempty"` // primary z side vlan s tag PrimaryZSideVlanSTag int64 `json:"primaryZSideVlanSTag,omitempty"` // profile UUID ProfileUUID string `json:"profileUUID,omitempty"` // purchase order number PurchaseOrderNumber string `json:"purchaseOrderNumber,omitempty"` // secondary name SecondaryName string `json:"secondaryName,omitempty"` // secondary port UUID SecondaryPortUUID string `json:"secondaryPortUUID,omitempty"` // secondary vlan c tag SecondaryVlanCTag string `json:"secondaryVlanCTag,omitempty"` // secondary vlan s tag SecondaryVlanSTag int64 `json:"secondaryVlanSTag,omitempty"` // secondary z side port UUID SecondaryZSidePortUUID string `json:"secondaryZSidePortUUID,omitempty"` // secondary z side vlan c tag SecondaryZSideVlanCTag int64 `json:"secondaryZSideVlanCTag,omitempty"` // secondary z side vlan s tag SecondaryZSideVlanSTag int64 `json:"secondaryZSideVlanSTag,omitempty"` // seller metro code SellerMetroCode string `json:"sellerMetroCode,omitempty"` // seller region SellerRegion string `json:"sellerRegion,omitempty"` // speed Speed int64 `json:"speed,omitempty"` // speed unit SpeedUnit string `json:"speedUnit,omitempty"` }
type ECXConnectionsAPI ¶
type ECXConnectionsAPI struct {
*client.EquinixAPIClient
}
ECXConnectionsAPI Connections api client container
func NewECXConnectionsAPI ¶
func NewECXConnectionsAPI(equinixAPIClient *client.EquinixAPIClient) *ECXConnectionsAPI
NewECXConnectionsAPI returns instantiated ECXConnectionsAPI struct
func (*ECXConnectionsAPI) CreateL2ConnectionSellerProfile ¶
func (m *ECXConnectionsAPI) CreateL2ConnectionSellerProfile(params *CreateL2SellerConnectionParams, ecxseller *ECXSellerServicesAPI) (*apiconnections.CreateConnectionUsingPOSTOK, error)
CreateL2Connection creates an L2 connection to a specific service profile
func (*ECXConnectionsAPI) DeleteByUUID ¶
func (m *ECXConnectionsAPI) DeleteByUUID(uuid string) (*apiconnections.DeleteConnectionUsingDELETEOK, error)
DeleteByUUID delete connection by uuid
func (*ECXConnectionsAPI) GetAllBuyerConnections ¶
func (m *ECXConnectionsAPI) GetAllBuyerConnections(metro *string) (*ConnectionsResponse, error)
GetAllBuyerConnections get all buyer connections (traversing pagination)
func (*ECXConnectionsAPI) GetBuyerConnections ¶
func (m *ECXConnectionsAPI) GetBuyerConnections(pageNumber *int32, pageSize *int32, metro *string) (*ConnectionsResponse, error)
GetBuyerConnections retrieve list of buyer connections for a specific page number and specific page size
func (*ECXConnectionsAPI) GetByUUID ¶
func (m *ECXConnectionsAPI) GetByUUID(uuid string) (*apiconnections.GetConnectionByUUIDUsingGETOK, error)
GetByUUID get connection by uuid
func (*ECXConnectionsAPI) NewCreateL2SellerConnectionParams ¶
func (m *ECXConnectionsAPI) NewCreateL2SellerConnectionParams() *CreateL2SellerConnectionParams
type ECXMetrosAPI ¶
type ECXMetrosAPI struct {
*api.EquinixAPIClient
}
func NewECXMetrosAPI ¶
func NewECXMetrosAPI(equinixAPIClient *api.EquinixAPIClient) *ECXMetrosAPI
NewECXMetrosAPI returns instantiated ECXMetrosAPI struct
func (*ECXMetrosAPI) GetAllMetros ¶
func (ec *ECXMetrosAPI) GetAllMetros() (*apimetros.GetMetrosUsingGETOK, error)
GetAllMetros returns array of GetMetrosUsingGETOK with list of customer connections
type ECXPortsAPI ¶
type ECXPortsAPI struct {
*api.EquinixAPIClient
}
func NewECXPortsAPI ¶
func NewECXPortsAPI(equinixAPIClient *api.EquinixAPIClient) *ECXPortsAPI
NewECXPortsAPI returns instantiated ECXMetrosAPI struct
func (*ECXPortsAPI) GetAllPorts ¶
func (ec *ECXPortsAPI) GetAllPorts() (*apiports.GetPortInfoUsingGET2OK, error)
GetAllPorts returns array of ports
type ECXRoutingInstanceAPI ¶
type ECXRoutingInstanceAPI struct {
*api.EquinixAPIClient
}
func NewECXRoutingInstanceAPI ¶
func NewECXRoutingInstanceAPI(equinixAPIClient *api.EquinixAPIClient) *ECXRoutingInstanceAPI
NewECXRoutingInstanceAPI returns instantiated ECXMetrosAPI struct
func (*ECXRoutingInstanceAPI) CheckRoutingInstanceNameExists ¶
func (ec *ECXRoutingInstanceAPI) CheckRoutingInstanceNameExists(name string, metroCode string) (bool, error)
CheckRoutingInstanceNameExists returns bool or error
func (*ECXRoutingInstanceAPI) CreateRoutingInstance ¶
func (ec *ECXRoutingInstanceAPI) CreateRoutingInstance(params *CreateRoutingInstanceParams) (string, error)
CreateRoutingInstance returns routing instance primary uuid or error
func (*ECXRoutingInstanceAPI) GetAllRoutingInstances ¶
func (ec *ECXRoutingInstanceAPI) GetAllRoutingInstances(params *GetAllRoutingInstancesParams) (*apiroutinginstance.GetAllRoutingInstancesUsingGETOK, error)
GetAllRoutingInstances returns array of GetAllRoutingInstancesUsingGETOK with list of routing instances
type ECXSellerServicesAPI ¶
type ECXSellerServicesAPI struct {
*api.EquinixAPIClient
}
func NewECXSellerServicesAPI ¶
func NewECXSellerServicesAPI(equinixAPIClient *api.EquinixAPIClient) *ECXSellerServicesAPI
NewECXSellerServicesAPI returns instantiated ECXSellerServicesAPI struct
func (*ECXSellerServicesAPI) GetAllL2SellerProfiles ¶
func (ec *ECXSellerServicesAPI) GetAllL2SellerProfiles(metroCode *[]string) (*L2SellerProfiles, error)
GetAllL2SellerProfiles list all L2 seller profiles for given metro
func (*ECXSellerServicesAPI) GetAllL3SellerServices ¶
func (ec *ECXSellerServicesAPI) GetAllL3SellerServices(metroCode *[]string) (*L3SellerServices, error)
GetAllL3SellerServices list all L3 seller profiles for given metro
func (*ECXSellerServicesAPI) GetL2SellerProfiles ¶
func (ec *ECXSellerServicesAPI) GetL2SellerProfiles(metroCode *[]string, pageNumber *int32, pageSize *int32) (*L2SellerProfiles, error)
GetL2SellerProfiles retrieve list of L2 seller profiles for a given metro with specific page number and specific page size
func (*ECXSellerServicesAPI) GetL3SellerServices ¶
func (ec *ECXSellerServicesAPI) GetL3SellerServices(metroCode *[]string, pageNumber *int32, pageSize *int32) (*L3SellerServices, error)
GetL3SellerServices retrieve list of L3 seller services for a given metro with specific page number and specific page size
func (*ECXSellerServicesAPI) GetSellerProfileByUUID ¶
func (ec *ECXSellerServicesAPI) GetSellerProfileByUUID(uuid string) (*api_seller_service_profiles.GetProfileByIDOrNameUsingGETOK, error)
GetSellerProfileByUUID fetch service profile by uuid
func (*ECXSellerServicesAPI) ValidateIntegrationID ¶
func (ec *ECXSellerServicesAPI) ValidateIntegrationID(integrationid string) (bool, error)
ValidateIntegrationID validates profile integrationId and returns true only if state == VALID
type L2SellerProfiles ¶
type L2SellerProfiles struct { Items []*models.GetServProfServicesRespContent TotalCount int64 PageSize int64 }
SellerProfiles initial wrapper for swagger GetBuyerConResContent
type L3SellerServices ¶
type L3SellerServices struct { Items []*models.SellerService TotalCount int64 PageSize int64 }
L3SellerServices initial wrapper for swagger GetBuyerConResContent
type MetrosAPIHandler ¶
type MetrosAPIHandler interface {
GetAllMetros() (*apimetros.GetMetrosUsingGETOK, error)
}
type PortsAPIHandler ¶
type PortsAPIHandler interface {
GetAllMetros() (*apiports.GetPortInfoUsingGET2OK, error)
}
type RoutingInstanceAPIHandler ¶
type RoutingInstanceAPIHandler interface {
GetAllRoutingInstances() (*apiroutinginstance.GetAllRoutingInstancesUsingGETOK, error)
}
type SellerProfile ¶
type SellerProfile struct {
*models.GetServProfServicesRespContent
}
type SellerServicesAPIHandler ¶
type SellerServicesAPIHandler interface {
GetAllSellerProfiles() (*api_buyer_seller_services.GetProfilesByMetroUsingGETOK, error)
}