buyer

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2019 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionsResponse

type ConnectionsResponse struct {
	Items          []interface{}
	PageTotalCount int64
	PageSize       int64
}

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 CreateRoutingInstanceParams

type CreateRoutingInstanceParams struct {
	MetroCode           string
	PrimaryName         string
	SecondaryName       string
	RequiredRedundancy  bool
	RouteType           string
	Asn                 int64
	BgpUseAuth          bool
	BgpAuthorizationKey string
	NotificationEmails  []string
}

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

CreateL2Connection creates an L2 connection to a specific service profile

func (*ECXConnectionsAPI) DeleteByUUID

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

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

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

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 GetAllRoutingInstancesParams

type GetAllRoutingInstancesParams struct {
	MetroCode  *string
	PageSize   int32
	PageNumber int32
	States     []string
}

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL