data_types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2014 License: Apache-2.0 Imports: 1 Imported by: 106

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Billing_Item added in v0.1.0

type Billing_Item struct {
	Id        int         `json:"id"`
	OrderItem *Order_Item `json:"orderItem"`
}

type BlockDevice

type BlockDevice struct {
	//Required
	Device    string    `json:"device,omitempty"`
	DiskImage DiskImage `json:"diskImage,omitempty"`
}

type BlockDeviceTemplateGroup

type BlockDeviceTemplateGroup struct {
	//Required
	GlobalIdentifier string `json:"globalIdentifier,omitempty"`
}

type Datacenter

type Datacenter struct {
	//Required
	Name string `json:"name"`
}

type DiskImage

type DiskImage struct {
	//Required
	Capacity int `json:"capacity,omitempty"`
}

type Item added in v0.1.0

type Item struct {
	Id          int    `json:"id"`
	Description string `json:"description"`
	Capacity    string `json:"capacity"`
}

type NetworkComponents

type NetworkComponents struct {
	//Required, defaults to 10
	MaxSpeed int `json:"maxSpeed,omitempty"`
}

type NetworkVlan

type NetworkVlan struct {
	//Required
	Id int `json:"id,omitempty"`
}

type Order added in v0.1.0

type Order struct {
	Id int `json:"id"`
}

type Order_Item added in v0.1.0

type Order_Item struct {
	Order *Order `json:"order"`
}

type PrimaryBackendNetworkComponent

type PrimaryBackendNetworkComponent struct {
	//Required
	NetworkVlan NetworkVlan `json:"networkVlan,omitempty"`
}

type PrimaryNetworkComponent

type PrimaryNetworkComponent struct {
	//Required
	NetworkVlan NetworkVlan `json:"networkVlan,omitempty"`
}

type SoftLayer_Account_Status

type SoftLayer_Account_Status struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

type SoftLayer_Billing_Item_Cancellation_Request added in v0.1.0

type SoftLayer_Billing_Item_Cancellation_Request struct {
	ComplexType string                                             `json:"complexType"`
	AccountId   int                                                `json:"accountId"`
	Id          int                                                `json:"id"`
	TicketId    int                                                `json:"ticketId"`
	Items       []SoftLayer_Billing_Item_Cancellation_Request_Item `json:"items"`
}

type SoftLayer_Billing_Item_Cancellation_Request_Item added in v0.1.0

type SoftLayer_Billing_Item_Cancellation_Request_Item struct {
	BillingItemId             int  `json:"billingItemId"`
	ImmediateCancellationFlag bool `json:"immediateCancellationFlag"`
}

type SoftLayer_Billing_Item_Cancellation_Request_Parameters added in v0.1.0

type SoftLayer_Billing_Item_Cancellation_Request_Parameters struct {
	Parameters []SoftLayer_Billing_Item_Cancellation_Request `json:"parameters"`
}

type SoftLayer_Item_Price added in v0.1.0

type SoftLayer_Item_Price struct {
	Id   int   `json:"id"`
	Item *Item `json:"item"`
}

type SoftLayer_Location added in v0.1.0

type SoftLayer_Location struct {
	Id       int    `json:"id"`
	LongName string `json:"longName"`
	Name     string `json:"name"`
}

type SoftLayer_Network_Storage

type SoftLayer_Network_Storage struct {
	AccountId                       int           `json:"accountId"`
	CapacityGb                      int           `json:"capacityGb"`
	CreateDate                      time.Time     `json:"createDate"`
	GuestId                         int           `json:"guestId"`
	HardwareId                      int           `json:"hardwareId"`
	HostId                          int           `json:"hostId"`
	Id                              int           `json:"id"`
	NasType                         string        `json:"nasType"`
	Notes                           string        `json:"notes"`
	Password                        string        `json:"password"`
	ServiceProviderId               int           `json:"serviceProviderId"`
	UpgradableFlag                  bool          `json:"upgradableFlag"`
	Username                        string        `json:"username"`
	BillingItem                     *Billing_Item `json:"billingItem"`
	ServiceResourceBackendIpAddress string        `json:"serviceResourceBackendIpAddress"`
}

type SoftLayer_Operating_System added in v0.1.0

type SoftLayer_Operating_System struct {
	Passwords []SoftLayer_Password `json:"passwords"`
}

type SoftLayer_Password added in v0.1.0

type SoftLayer_Password struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type SoftLayer_Product_Order added in v0.1.0

type SoftLayer_Product_Order struct {
	ComplexType string                 `json:"complexType"`
	Location    string                 `json:"location"`
	PackageId   int                    `json:"packageId"`
	Prices      []SoftLayer_Item_Price `json:"prices"`
}

type SoftLayer_Product_Order_Parameters added in v0.1.0

type SoftLayer_Product_Order_Parameters struct {
	Parameters []SoftLayer_Product_Order `json:"parameters"`
}

type SoftLayer_Product_Order_Receipt added in v0.1.0

type SoftLayer_Product_Order_Receipt struct {
	OrderId int `json:"orderId"`
}

type SoftLayer_Provisioning_Version1_Transaction

type SoftLayer_Provisioning_Version1_Transaction struct {
	CreateDate       *time.Time `json:"createDate"`
	ElapsedSeconds   int        `json:"elapsedSeconds"`
	GuestId          int        `json:"guestId"`
	HardwareId       int        `json:"hardwareId"`
	Id               int        `json:"id"`
	ModifyDate       *time.Time `json:"modifyDate"`
	StatusChangeDate *time.Time `json:"statusChangeDate"`

	TransactionGroup  TransactionGroup  `json:"transactionGroup,omitempty"`
	TransactionStatus TransactionStatus `json:"transactionStatus,omitempty"`
}

type SoftLayer_Security_Ssh_Key

type SoftLayer_Security_Ssh_Key struct {
	CreateDate  *time.Time `json:"createDate"`
	Fingerprint string     `json:"fingerprint"`
	Id          int        `json:"id"`
	Key         string     `json:"key"`
	Label       string     `json:"label"`
	ModifyDate  *time.Time `json:"modifyDate"`
	Notes       string     `json:"notes"`
}

type SoftLayer_SetUserMetadata_Parameters added in v0.0.2

type SoftLayer_SetUserMetadata_Parameters struct {
	Parameters []UserMetadataArray `json:"parameters"`
}

type SoftLayer_Shh_Key_Parameters

type SoftLayer_Shh_Key_Parameters struct {
	Parameters []SoftLayer_Security_Ssh_Key `json:"parameters"`
}

type SoftLayer_Software_Component_Password added in v0.0.2

type SoftLayer_Software_Component_Password struct {
	CreateDate *time.Time `json:"createDate"`
	Id         int        `json:"id"`
	ModifyDate *time.Time `json:"modifyDate"`
	Notes      string     `json:"notes"`
	Password   string     `json:"password"`
	Port       int        `json:"port"`
	SoftwareId int        `json:"softwareId"`
	Username   string     `json:"username"`

	Software Software `json:"software"`
}

type SoftLayer_Virtual_Disk_Image

type SoftLayer_Virtual_Disk_Image struct {
	Capacity            int        `json:"capacity"`
	Checksum            string     `json:"checksum"`
	CreateDate          *time.Time `json:"createDate"`
	Description         string     `json:"description"`
	Id                  int        `json:"id"`
	ModifyDate          *time.Time `json:"modifyDate"`
	Name                string     `json:"name"`
	ParentId            int        `json:"parentId"`
	StorageRepositoryId int        `json:"storageRepositoryId"`
	TypeId              int        `json:"typeId"`
	Units               string     `json:"units"`
	Uuid                string     `json:"uuid"`
}

type SoftLayer_Virtual_Guest

type SoftLayer_Virtual_Guest struct {
	AccountId                    int        `json:"accountId,omitempty"`
	CreateDate                   *time.Time `json:"createDate,omitempty"`
	DedicatedAccountHostOnlyFlag bool       `json:"dedicatedAccountHostOnlyFlag,omitempty"`
	Domain                       string     `json:"domain,omitempty"`
	FullyQualifiedDomainName     string     `json:"fullyQualifiedDomainName,omitempty"`
	Hostname                     string     `json:"hostname,omitempty"`
	Id                           int        `json:"id,omitempty"`
	LastPowerStateId             int        `json:"lastPowerStateId,omitempty"`
	LastVerifiedDate             *time.Time `json:"lastVerifiedDate,omitempty"`
	MaxCpu                       int        `json:"maxCpu,omitempty"`
	MaxCpuUnits                  string     `json:"maxCpuUnits,omitempty"`
	MaxMemory                    int        `json:"maxMemory,omitempty"`
	MetricPollDate               *time.Time `json:"metricPollDate,omitempty"`
	ModifyDate                   *time.Time `json:"modifyDate,omitempty"`
	Notes                        string     `json:"notes,omitempty"`
	PostInstallScriptUri         string     `json:"postInstallScriptUri,omitempty"`
	PrivateNetworkOnlyFlag       bool       `json:"privateNetworkOnlyFlag,omitempty"`
	StartCpus                    int        `json:"startCpus,omitempty"`
	StatusId                     int        `json:"statusId,omitempty"`
	Uuid                         string     `json:"uuid,omitempty"`

	GlobalIdentifier        string `json:"globalIdentifier,omitempty"`
	ManagedResourceFlag     bool   `json:"managedResourceFlag,omitempty"`
	PrimaryBackendIpAddress string `json:"primaryBackendIpAddress,omitempty"`
	PrimaryIpAddress        string `json:"primaryIpAddress,omitempty"`

	Location *SoftLayer_Location `json:"location"`

	OperatingSystem *SoftLayer_Operating_System `json:"operatingSystem"`
}

type SoftLayer_Virtual_Guest_Attribute added in v0.1.0

type SoftLayer_Virtual_Guest_Attribute struct {
	Value string `json:"value"`

	Type SoftLayer_Virtual_Guest_Attribute_Type `json:"type"`
}

type SoftLayer_Virtual_Guest_Attribute_Type added in v0.1.0

type SoftLayer_Virtual_Guest_Attribute_Type struct {
	Keyname string `json:"keyname"`
	Name    string `json:"name"`
}

type SoftLayer_Virtual_Guest_Block_Device_Template_Group added in v0.1.0

type SoftLayer_Virtual_Guest_Block_Device_Template_Group struct {
	AccountId        int        `json:"accountId"`
	CreateDate       *time.Time `json:"createDate"`
	Id               int        `json:"id"`
	Name             string     `json:"name"`
	Note             string     `json:"note"`
	ParentId         *int       `json:"parentId"`
	PublicFlag       int        `json:"publicFlag"`
	StatusId         int        `json:"statusId"`
	Summary          string     `json:"summary"`
	TransactionId    *int       `json:"transactionId"`
	UserRecordId     int        `json:"userRecordId"`
	GlobalIdentifier string     `json:"globalIdentifier"`
}

type SoftLayer_Virtual_Guest_Block_Device_Template_Group_Status added in v0.1.0

type SoftLayer_Virtual_Guest_Block_Device_Template_Group_Status struct {
	Description string `json:"description"`
	KeyName     string `json:"keyName"`
	Name        string `json:"name"`
}

type SoftLayer_Virtual_Guest_Parameters

type SoftLayer_Virtual_Guest_Parameters struct {
	Parameters []SoftLayer_Virtual_Guest `json:"parameters"`
}

type SoftLayer_Virtual_Guest_Power_State

type SoftLayer_Virtual_Guest_Power_State struct {
	Description string `json:"description"`
	KeyName     string `json:"keyName"`
	Name        string `json:"name"`
}

type SoftLayer_Virtual_Guest_Template

type SoftLayer_Virtual_Guest_Template struct {
	//Required
	Hostname          string     `json:"hostname"`
	Domain            string     `json:"domain"`
	StartCpus         int        `json:"startCpus"`
	MaxMemory         int        `json:"maxMemory"`
	Datacenter        Datacenter `json:"datacenter"`
	HourlyBillingFlag bool       `json:"hourlyBillingFlag"`
	LocalDiskFlag     bool       `json:"localDiskFlag"`

	//Conditionally required
	OperatingSystemReferenceCode string                    `json:"operatingSystemReferenceCode,omitempty"`
	BlockDeviceTemplateGroup     *BlockDeviceTemplateGroup `json:"blockDeviceTemplateGroup,omitempty"`

	//Optional
	DedicatedAccountHostOnlyFlag   bool                            `json:"dedicatedAccountHostOnlyFlag,omitempty"`
	NetworkComponents              []NetworkComponents             `json:"networkComponents,omitempty"`
	PrivateNetworkOnlyFlag         bool                            `json:"privateNetworkOnlyFlag,omitempty"`
	PrimaryNetworkComponent        *PrimaryNetworkComponent        `json:"primaryNetworkComponent,omitempty"`
	PrimaryBackendNetworkComponent *PrimaryBackendNetworkComponent `json:"primaryBackendNetworkComponent,omitempty"`

	BlockDevices []BlockDevice `json:"blockDevices,omitempty"`
	UserData     []UserData    `json:"userData,omitempty"`
	SshKeys      []SshKey      `json:"sshKeys,omitempty"`

	PostInstallScriptUri string `json:"postInstallScriptUri,omitempty"`
}

type SoftLayer_Virtual_Guest_Template_Parameters

type SoftLayer_Virtual_Guest_Template_Parameters struct {
	Parameters []SoftLayer_Virtual_Guest_Template `json:"parameters"`
}

type Software added in v0.0.2

type Software struct {
	HardwareId                  int    `json:"hardwareId,omitempty"`
	Id                          int    `json:"id"`
	ManufacturerLicenseInstance string `json:"manufacturerLicenseInstance"`
}

type SshKey

type SshKey struct {
	//Required
	Id int `json:"id,omitempty"`
}

type TransactionGroup added in v0.0.2

type TransactionGroup struct {
	AverageTimeToComplete string `json:"averageTimeToComplete"`
	Name                  string `json:"name"`
}

type TransactionStatus added in v0.0.2

type TransactionStatus struct {
	AverageDuration string `json:"averageDuration"`
	FriendlyName    string `json:"friendlyName"`
	Name            string `json:"name"`
}

type UserData

type UserData struct {
	//Required
	Value string `json:"value,omitempty"`
}

type UserMetadata added in v0.0.2

type UserMetadata string

type UserMetadataArray added in v0.0.2

type UserMetadataArray []UserMetadata

Jump to

Keyboard shortcuts

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