id
int32
0
167k
repo
stringlengths
5
54
path
stringlengths
4
155
func_name
stringlengths
1
118
original_string
stringlengths
52
85.5k
language
stringclasses
1 value
code
stringlengths
52
85.5k
code_tokens
sequence
docstring
stringlengths
6
2.61k
docstring_tokens
sequence
sha
stringlengths
40
40
url
stringlengths
85
252
6,500
softlayer/softlayer-go
services/network.go
Route
func (r Network_Subnet_IpAddress_Global) Route(newEndPointIpAddress *string) (resp datatypes.Provisioning_Version1_Transaction, err error) { params := []interface{}{ newEndPointIpAddress, } err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress_Global", "route", params, &r.Options, &resp) return }
go
func (r Network_Subnet_IpAddress_Global) Route(newEndPointIpAddress *string) (resp datatypes.Provisioning_Version1_Transaction, err error) { params := []interface{}{ newEndPointIpAddress, } err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress_Global", "route", params, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Subnet_IpAddress_Global", ")", "Route", "(", "newEndPointIpAddress", "*", "string", ")", "(", "resp", "datatypes", ".", "Provisioning_Version1_Transaction", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "newEndPointIpAddress", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// This function is used to create a new transaction to modify a global IP route. Routes are updated in one to two minutes depending on the number of transactions that are pending for a router.
[ "This", "function", "is", "used", "to", "create", "a", "new", "transaction", "to", "modify", "a", "global", "IP", "route", ".", "Routes", "are", "updated", "in", "one", "to", "two", "minutes", "depending", "on", "the", "number", "of", "transactions", "that", "are", "pending", "for", "a", "router", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L14703-L14709
6,501
softlayer/softlayer-go
services/network.go
ClearRegistration
func (r Network_Subnet_Registration) ClearRegistration() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "clearRegistration", nil, &r.Options, &resp) return }
go
func (r Network_Subnet_Registration) ClearRegistration() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "clearRegistration", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Subnet_Registration", ")", "ClearRegistration", "(", ")", "(", "resp", "bool", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// This method will initiate the removal of a subnet registration.
[ "This", "method", "will", "initiate", "the", "removal", "of", "a", "subnet", "registration", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L14758-L14761
6,502
softlayer/softlayer-go
services/network.go
GetEvents
func (r Network_Subnet_Registration) GetEvents() (resp []datatypes.Network_Subnet_Registration_Event, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "getEvents", nil, &r.Options, &resp) return }
go
func (r Network_Subnet_Registration) GetEvents() (resp []datatypes.Network_Subnet_Registration_Event, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "getEvents", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Subnet_Registration", ")", "GetEvents", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Network_Subnet_Registration_Event", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The related registration events.
[ "Retrieve", "The", "related", "registration", "events", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L14827-L14830
6,503
softlayer/softlayer-go
services/network.go
GetNetworkDetail
func (r Network_Subnet_Registration) GetNetworkDetail() (resp datatypes.Account_Regional_Registry_Detail, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "getNetworkDetail", nil, &r.Options, &resp) return }
go
func (r Network_Subnet_Registration) GetNetworkDetail() (resp datatypes.Account_Regional_Registry_Detail, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "getNetworkDetail", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Subnet_Registration", ")", "GetNetworkDetail", "(", ")", "(", "resp", "datatypes", ".", "Account_Regional_Registry_Detail", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The "network" detail object.
[ "Retrieve", "The", "network", "detail", "object", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L14833-L14836
6,504
softlayer/softlayer-go
services/network.go
GetRegionalInternetRegistry
func (r Network_Subnet_Registration) GetRegionalInternetRegistry() (resp datatypes.Network_Regional_Internet_Registry, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "getRegionalInternetRegistry", nil, &r.Options, &resp) return }
go
func (r Network_Subnet_Registration) GetRegionalInternetRegistry() (resp datatypes.Network_Regional_Internet_Registry, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "getRegionalInternetRegistry", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Subnet_Registration", ")", "GetRegionalInternetRegistry", "(", ")", "(", "resp", "datatypes", ".", "Network_Regional_Internet_Registry", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The related Regional Internet Registry.
[ "Retrieve", "The", "related", "Regional", "Internet", "Registry", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L14851-L14854
6,505
softlayer/softlayer-go
services/network.go
GetStatus
func (r Network_Subnet_Registration) GetStatus() (resp datatypes.Network_Subnet_Registration_Status, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "getStatus", nil, &r.Options, &resp) return }
go
func (r Network_Subnet_Registration) GetStatus() (resp datatypes.Network_Subnet_Registration_Status, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "getStatus", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Subnet_Registration", ")", "GetStatus", "(", ")", "(", "resp", "datatypes", ".", "Network_Subnet_Registration_Status", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The status of this registration.
[ "Retrieve", "The", "status", "of", "this", "registration", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L14863-L14866
6,506
softlayer/softlayer-go
services/network.go
ResendSwipData
func (r Network_Subnet_Swip_Transaction) ResendSwipData() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Swip_Transaction", "resendSwipData", nil, &r.Options, &resp) return }
go
func (r Network_Subnet_Swip_Transaction) ResendSwipData() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Swip_Transaction", "resendSwipData", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Subnet_Swip_Transaction", ")", "ResendSwipData", "(", ")", "(", "resp", "bool", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// This function will allow you to update ARIN's registration data for a subnet to your current RWHOIS data.
[ "This", "function", "will", "allow", "you", "to", "update", "ARIN", "s", "registration", "data", "for", "a", "subnet", "to", "your", "current", "RWHOIS", "data", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L15156-L15159
6,507
softlayer/softlayer-go
services/network.go
SwipAllSubnets
func (r Network_Subnet_Swip_Transaction) SwipAllSubnets() (resp int, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Swip_Transaction", "swipAllSubnets", nil, &r.Options, &resp) return }
go
func (r Network_Subnet_Swip_Transaction) SwipAllSubnets() (resp int, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Swip_Transaction", "swipAllSubnets", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Subnet_Swip_Transaction", ")", "SwipAllSubnets", "(", ")", "(", "resp", "int", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// swipAllSubnets finds all subnets attached to your account and attempts to create a SWIP transaction for all subnets that do not already have a SWIP transaction in progress.
[ "swipAllSubnets", "finds", "all", "subnets", "attached", "to", "your", "account", "and", "attempts", "to", "create", "a", "SWIP", "transaction", "for", "all", "subnets", "that", "do", "not", "already", "have", "a", "SWIP", "transaction", "in", "progress", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L15162-L15165
6,508
softlayer/softlayer-go
services/network.go
ApplyConfigurationsToDevice
func (r Network_Tunnel_Module_Context) ApplyConfigurationsToDevice() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "applyConfigurationsToDevice", nil, &r.Options, &resp) return }
go
func (r Network_Tunnel_Module_Context) ApplyConfigurationsToDevice() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "applyConfigurationsToDevice", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Tunnel_Module_Context", ")", "ApplyConfigurationsToDevice", "(", ")", "(", "resp", "bool", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// A transaction will be created to apply the IPSec network tunnel's configuration to SoftLayer network devices. During this time, an IPSec network tunnel cannot be modified in anyway. Only one network tunnel configuration transaction can be created. If a transaction has been created or is running, a new transaction cannot be created until the previous transaction completes.
[ "A", "transaction", "will", "be", "created", "to", "apply", "the", "IPSec", "network", "tunnel", "s", "configuration", "to", "SoftLayer", "network", "devices", ".", "During", "this", "time", "an", "IPSec", "network", "tunnel", "cannot", "be", "modified", "in", "anyway", ".", "Only", "one", "network", "tunnel", "configuration", "transaction", "can", "be", "created", ".", "If", "a", "transaction", "has", "been", "created", "or", "is", "running", "a", "new", "transaction", "cannot", "be", "created", "until", "the", "previous", "transaction", "completes", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L15354-L15357
6,509
softlayer/softlayer-go
services/network.go
DownloadAddressTranslationConfigurations
func (r Network_Tunnel_Module_Context) DownloadAddressTranslationConfigurations() (resp datatypes.Container_Utility_File_Entity, err error) { err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "downloadAddressTranslationConfigurations", nil, &r.Options, &resp) return }
go
func (r Network_Tunnel_Module_Context) DownloadAddressTranslationConfigurations() (resp datatypes.Container_Utility_File_Entity, err error) { err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "downloadAddressTranslationConfigurations", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Tunnel_Module_Context", ")", "DownloadAddressTranslationConfigurations", "(", ")", "(", "resp", "datatypes", ".", "Container_Utility_File_Entity", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Provides all of the address translation configurations for an IPSec VPN tunnel in a text file
[ "Provides", "all", "of", "the", "address", "translation", "configurations", "for", "an", "IPSec", "VPN", "tunnel", "in", "a", "text", "file" ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L15397-L15400
6,510
softlayer/softlayer-go
services/network.go
GetAddressTranslations
func (r Network_Tunnel_Module_Context) GetAddressTranslations() (resp []datatypes.Network_Tunnel_Module_Context_Address_Translation, err error) { err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getAddressTranslations", nil, &r.Options, &resp) return }
go
func (r Network_Tunnel_Module_Context) GetAddressTranslations() (resp []datatypes.Network_Tunnel_Module_Context_Address_Translation, err error) { err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getAddressTranslations", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Tunnel_Module_Context", ")", "GetAddressTranslations", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Network_Tunnel_Module_Context_Address_Translation", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve A network tunnel's address translations.
[ "Retrieve", "A", "network", "tunnel", "s", "address", "translations", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L15515-L15518
6,511
softlayer/softlayer-go
services/network.go
GetCustomerSubnets
func (r Network_Tunnel_Module_Context) GetCustomerSubnets() (resp []datatypes.Network_Customer_Subnet, err error) { err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getCustomerSubnets", nil, &r.Options, &resp) return }
go
func (r Network_Tunnel_Module_Context) GetCustomerSubnets() (resp []datatypes.Network_Customer_Subnet, err error) { err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getCustomerSubnets", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Tunnel_Module_Context", ")", "GetCustomerSubnets", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Network_Customer_Subnet", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve Remote subnets that are allowed access through a network tunnel.
[ "Retrieve", "Remote", "subnets", "that", "are", "allowed", "access", "through", "a", "network", "tunnel", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L15550-L15553
6,512
softlayer/softlayer-go
services/network.go
GetDiffieHellmanGroupDefault
func (r Network_Tunnel_Module_Context) GetDiffieHellmanGroupDefault() (resp int, err error) { err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getDiffieHellmanGroupDefault", nil, &r.Options, &resp) return }
go
func (r Network_Tunnel_Module_Context) GetDiffieHellmanGroupDefault() (resp int, err error) { err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getDiffieHellmanGroupDefault", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Tunnel_Module_Context", ")", "GetDiffieHellmanGroupDefault", "(", ")", "(", "resp", "int", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// The default Diffie-Hellman group used for both phases of the negotiation process. The default value is set to 2.
[ "The", "default", "Diffie", "-", "Hellman", "group", "used", "for", "both", "phases", "of", "the", "negotiation", "process", ".", "The", "default", "value", "is", "set", "to", "2", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L15562-L15565
6,513
softlayer/softlayer-go
services/network.go
GetEncryptionDefault
func (r Network_Tunnel_Module_Context) GetEncryptionDefault() (resp string, err error) { err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getEncryptionDefault", nil, &r.Options, &resp) return }
go
func (r Network_Tunnel_Module_Context) GetEncryptionDefault() (resp string, err error) { err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getEncryptionDefault", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Tunnel_Module_Context", ")", "GetEncryptionDefault", "(", ")", "(", "resp", "string", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// The default encryption type used for both phases of the negotiation process. The default value is set to 3DES.
[ "The", "default", "encryption", "type", "used", "for", "both", "phases", "of", "the", "negotiation", "process", ".", "The", "default", "value", "is", "set", "to", "3DES", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L15580-L15583
6,514
softlayer/softlayer-go
services/network.go
GetCancelFailureReasons
func (r Network_Vlan) GetCancelFailureReasons() (resp []string, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getCancelFailureReasons", nil, &r.Options, &resp) return }
go
func (r Network_Vlan) GetCancelFailureReasons() (resp []string, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getCancelFailureReasons", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Vlan", ")", "GetCancelFailureReasons", "(", ")", "(", "resp", "[", "]", "string", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Get a set of reasons why this VLAN may not be cancelled. If the result is empty, this VLAN may be cancelled.
[ "Get", "a", "set", "of", "reasons", "why", "this", "VLAN", "may", "not", "be", "cancelled", ".", "If", "the", "result", "is", "empty", "this", "VLAN", "may", "be", "cancelled", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L15771-L15774
6,515
softlayer/softlayer-go
services/network.go
GetFirewallGuestNetworkComponents
func (r Network_Vlan) GetFirewallGuestNetworkComponents() (resp []datatypes.Network_Component_Firewall, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getFirewallGuestNetworkComponents", nil, &r.Options, &resp) return }
go
func (r Network_Vlan) GetFirewallGuestNetworkComponents() (resp []datatypes.Network_Component_Firewall, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getFirewallGuestNetworkComponents", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Vlan", ")", "GetFirewallGuestNetworkComponents", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Network_Component_Firewall", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve A firewalled Vlan's network components.
[ "Retrieve", "A", "firewalled", "Vlan", "s", "network", "components", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L15789-L15792
6,516
softlayer/softlayer-go
services/network.go
GetFirewallRules
func (r Network_Vlan) GetFirewallRules() (resp []datatypes.Network_Vlan_Firewall_Rule, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getFirewallRules", nil, &r.Options, &resp) return }
go
func (r Network_Vlan) GetFirewallRules() (resp []datatypes.Network_Vlan_Firewall_Rule, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getFirewallRules", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Vlan", ")", "GetFirewallRules", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Network_Vlan_Firewall_Rule", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The currently running rule set of a firewalled VLAN.
[ "Retrieve", "The", "currently", "running", "rule", "set", "of", "a", "firewalled", "VLAN", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L15819-L15822
6,517
softlayer/softlayer-go
services/network.go
GetNetwork
func (r Network_Vlan) GetNetwork() (resp datatypes.Network, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getNetwork", nil, &r.Options, &resp) return }
go
func (r Network_Vlan) GetNetwork() (resp datatypes.Network, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getNetwork", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Vlan", ")", "GetNetwork", "(", ")", "(", "resp", "datatypes", ".", "Network", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The network in which this VLAN resides.
[ "Retrieve", "The", "network", "in", "which", "this", "VLAN", "resides", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L15849-L15852
6,518
softlayer/softlayer-go
services/network.go
GetNetworkComponentTrunks
func (r Network_Vlan) GetNetworkComponentTrunks() (resp []datatypes.Network_Component_Network_Vlan_Trunk, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getNetworkComponentTrunks", nil, &r.Options, &resp) return }
go
func (r Network_Vlan) GetNetworkComponentTrunks() (resp []datatypes.Network_Component_Network_Vlan_Trunk, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getNetworkComponentTrunks", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Vlan", ")", "GetNetworkComponentTrunks", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Network_Component_Network_Vlan_Trunk", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The network components that are connected to this VLAN through a trunk.
[ "Retrieve", "The", "network", "components", "that", "are", "connected", "to", "this", "VLAN", "through", "a", "trunk", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L15855-L15858
6,519
softlayer/softlayer-go
services/network.go
GetPublicVlanByFqdn
func (r Network_Vlan) GetPublicVlanByFqdn(fqdn *string) (resp datatypes.Network_Vlan, err error) { params := []interface{}{ fqdn, } err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getPublicVlanByFqdn", params, &r.Options, &resp) return }
go
func (r Network_Vlan) GetPublicVlanByFqdn(fqdn *string) (resp datatypes.Network_Vlan, err error) { params := []interface{}{ fqdn, } err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getPublicVlanByFqdn", params, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Vlan", ")", "GetPublicVlanByFqdn", "(", "fqdn", "*", "string", ")", "(", "resp", "datatypes", ".", "Network_Vlan", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "fqdn", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve the VLAN that belongs to a server's public network interface, as described by a server's fully-qualified domain name. A server's ''FQDN'' is it's hostname, followed by a period then it's domain name.
[ "Retrieve", "the", "VLAN", "that", "belongs", "to", "a", "server", "s", "public", "network", "interface", "as", "described", "by", "a", "server", "s", "fully", "-", "qualified", "domain", "name", ".", "A", "server", "s", "FQDN", "is", "it", "s", "hostname", "followed", "by", "a", "period", "then", "it", "s", "domain", "name", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L15942-L15948
6,520
softlayer/softlayer-go
services/network.go
GetTotalPrimaryIpAddressCount
func (r Network_Vlan) GetTotalPrimaryIpAddressCount() (resp uint, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getTotalPrimaryIpAddressCount", nil, &r.Options, &resp) return }
go
func (r Network_Vlan) GetTotalPrimaryIpAddressCount() (resp uint, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getTotalPrimaryIpAddressCount", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Vlan", ")", "GetTotalPrimaryIpAddressCount", "(", ")", "(", "resp", "uint", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The number of primary IP addresses in a VLAN.
[ "Retrieve", "The", "number", "of", "primary", "IP", "addresses", "in", "a", "VLAN", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L15993-L15996
6,521
softlayer/softlayer-go
services/network.go
GetType
func (r Network_Vlan) GetType() (resp datatypes.Network_Vlan_Type, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getType", nil, &r.Options, &resp) return }
go
func (r Network_Vlan) GetType() (resp datatypes.Network_Vlan_Type, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getType", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Vlan", ")", "GetType", "(", ")", "(", "resp", "datatypes", ".", "Network_Vlan_Type", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The type of this VLAN.
[ "Retrieve", "The", "type", "of", "this", "VLAN", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L15999-L16002
6,522
softlayer/softlayer-go
services/network.go
UpdateFirewallIntraVlanCommunication
func (r Network_Vlan) UpdateFirewallIntraVlanCommunication(enabled *bool) (err error) { var resp datatypes.Void params := []interface{}{ enabled, } err = r.Session.DoRequest("SoftLayer_Network_Vlan", "updateFirewallIntraVlanCommunication", params, &r.Options, &resp) return }
go
func (r Network_Vlan) UpdateFirewallIntraVlanCommunication(enabled *bool) (err error) { var resp datatypes.Void params := []interface{}{ enabled, } err = r.Session.DoRequest("SoftLayer_Network_Vlan", "updateFirewallIntraVlanCommunication", params, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Vlan", ")", "UpdateFirewallIntraVlanCommunication", "(", "enabled", "*", "bool", ")", "(", "err", "error", ")", "{", "var", "resp", "datatypes", ".", "Void", "\n", "params", ":=", "[", "]", "interface", "{", "}", "{", "enabled", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// The '''getSensorData''' method updates a VLAN's firewall to allow or disallow intra-VLAN communication.
[ "The", "getSensorData", "method", "updates", "a", "VLAN", "s", "firewall", "to", "allow", "or", "disallow", "intra", "-", "VLAN", "communication", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L16029-L16036
6,523
softlayer/softlayer-go
services/network.go
Upgrade
func (r Network_Vlan) Upgrade() (resp datatypes.Container_Product_Order_Network_Vlan, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan", "upgrade", nil, &r.Options, &resp) return }
go
func (r Network_Vlan) Upgrade() (resp datatypes.Container_Product_Order_Network_Vlan, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan", "upgrade", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Vlan", ")", "Upgrade", "(", ")", "(", "resp", "datatypes", ".", "Container_Product_Order_Network_Vlan", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Convert the VLAN to a paid resource. This can be done for any VLAN which was automatically allocated. Upgrading an existing VLAN provides the same benefits as a purchased VLAN. A purchased VLAN will remain on the account until cancelled. This operation cannot be undone! Once a VLAN is purchased, it can only be cancelled which will result in it being reclaimed. // // This operation is a convenience for utilizing the SoftLayer_Product_Order.placeOrder operation. It will place an order to upgrade the VLAN it is executed against. It will take a few moments for the order to be processed and the upgrade to complete. Note that the order is placed in such a way that any account state which prevents automatic order approval will prevent the order from being placed. Thus, if no error is received, the order was placed and approved, and the VLAN will be upgraded shortly.
[ "Convert", "the", "VLAN", "to", "a", "paid", "resource", ".", "This", "can", "be", "done", "for", "any", "VLAN", "which", "was", "automatically", "allocated", ".", "Upgrading", "an", "existing", "VLAN", "provides", "the", "same", "benefits", "as", "a", "purchased", "VLAN", ".", "A", "purchased", "VLAN", "will", "remain", "on", "the", "account", "until", "cancelled", ".", "This", "operation", "cannot", "be", "undone!", "Once", "a", "VLAN", "is", "purchased", "it", "can", "only", "be", "cancelled", "which", "will", "result", "in", "it", "being", "reclaimed", ".", "This", "operation", "is", "a", "convenience", "for", "utilizing", "the", "SoftLayer_Product_Order", ".", "placeOrder", "operation", ".", "It", "will", "place", "an", "order", "to", "upgrade", "the", "VLAN", "it", "is", "executed", "against", ".", "It", "will", "take", "a", "few", "moments", "for", "the", "order", "to", "be", "processed", "and", "the", "upgrade", "to", "complete", ".", "Note", "that", "the", "order", "is", "placed", "in", "such", "a", "way", "that", "any", "account", "state", "which", "prevents", "automatic", "order", "approval", "will", "prevent", "the", "order", "from", "being", "placed", ".", "Thus", "if", "no", "error", "is", "received", "the", "order", "was", "placed", "and", "approved", "and", "the", "VLAN", "will", "be", "upgraded", "shortly", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L16041-L16044
6,524
softlayer/softlayer-go
services/network.go
GetManagementCredentials
func (r Network_Vlan_Firewall) GetManagementCredentials() (resp datatypes.Software_Component_Password, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getManagementCredentials", nil, &r.Options, &resp) return }
go
func (r Network_Vlan_Firewall) GetManagementCredentials() (resp datatypes.Software_Component_Password, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getManagementCredentials", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Vlan_Firewall", ")", "GetManagementCredentials", "(", ")", "(", "resp", "datatypes", ".", "Software_Component_Password", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The credentials to log in to a firewall device. This is only present for dedicated appliances.
[ "Retrieve", "The", "credentials", "to", "log", "in", "to", "a", "firewall", "device", ".", "This", "is", "only", "present", "for", "dedicated", "appliances", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L16154-L16157
6,525
softlayer/softlayer-go
services/network.go
GetNetworkFirewallUpdateRequests
func (r Network_Vlan_Firewall) GetNetworkFirewallUpdateRequests() (resp []datatypes.Network_Firewall_Update_Request, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getNetworkFirewallUpdateRequests", nil, &r.Options, &resp) return }
go
func (r Network_Vlan_Firewall) GetNetworkFirewallUpdateRequests() (resp []datatypes.Network_Firewall_Update_Request, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getNetworkFirewallUpdateRequests", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Vlan_Firewall", ")", "GetNetworkFirewallUpdateRequests", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Network_Firewall_Update_Request", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The update requests made for this firewall.
[ "Retrieve", "The", "update", "requests", "made", "for", "this", "firewall", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L16172-L16175
6,526
softlayer/softlayer-go
services/network.go
IsHighAvailabilityUpgradeAvailable
func (r Network_Vlan_Firewall) IsHighAvailabilityUpgradeAvailable() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "isHighAvailabilityUpgradeAvailable", nil, &r.Options, &resp) return }
go
func (r Network_Vlan_Firewall) IsHighAvailabilityUpgradeAvailable() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "isHighAvailabilityUpgradeAvailable", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Vlan_Firewall", ")", "IsHighAvailabilityUpgradeAvailable", "(", ")", "(", "resp", "bool", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Whether this firewall qualifies for High Availability upgrade.
[ "Whether", "this", "firewall", "qualifies", "for", "High", "Availability", "upgrade", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L16220-L16223
6,527
softlayer/softlayer-go
services/network.go
RejectBypassRequest
func (r Network_Vlan_Firewall) RejectBypassRequest() (err error) { var resp datatypes.Void err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "rejectBypassRequest", nil, &r.Options, &resp) return }
go
func (r Network_Vlan_Firewall) RejectBypassRequest() (err error) { var resp datatypes.Void err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "rejectBypassRequest", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Vlan_Firewall", ")", "RejectBypassRequest", "(", ")", "(", "err", "error", ")", "{", "var", "resp", "datatypes", ".", "Void", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Reject a request from technical support to bypass the firewall. Once rejected, IBM support will not be able to route and unroute the VLAN on the firewall.
[ "Reject", "a", "request", "from", "technical", "support", "to", "bypass", "the", "firewall", ".", "Once", "rejected", "IBM", "support", "will", "not", "be", "able", "to", "route", "and", "unroute", "the", "VLAN", "on", "the", "firewall", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L16226-L16230
6,528
softlayer/softlayer-go
services/network.go
RestoreDefaults
func (r Network_Vlan_Firewall) RestoreDefaults() (resp datatypes.Provisioning_Version1_Transaction, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "restoreDefaults", nil, &r.Options, &resp) return }
go
func (r Network_Vlan_Firewall) RestoreDefaults() (resp datatypes.Provisioning_Version1_Transaction, err error) { err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "restoreDefaults", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Network_Vlan_Firewall", ")", "RestoreDefaults", "(", ")", "(", "resp", "datatypes", ".", "Provisioning_Version1_Transaction", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// This will completely reset the firewall to factory settings. If the firewall is not a dedicated appliance an error will occur. Note, this process is performed asynchronously. During the process all traffic will not be routed through the firewall.
[ "This", "will", "completely", "reset", "the", "firewall", "to", "factory", "settings", ".", "If", "the", "firewall", "is", "not", "a", "dedicated", "appliance", "an", "error", "will", "occur", ".", "Note", "this", "process", "is", "performed", "asynchronously", ".", "During", "the", "process", "all", "traffic", "will", "not", "be", "routed", "through", "the", "firewall", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/network.go#L16233-L16236
6,529
softlayer/softlayer-go
session/rest.go
DoRequest
func (r *RestTransport) DoRequest(sess *Session, service string, method string, args []interface{}, options *sl.Options, pResult interface{}) error { restMethod := httpMethod(method, args) // Parse any method parameters and determine the HTTP method var parameters []byte if len(args) > 0 { // parse the parameters parameters, _ = json.Marshal( map[string]interface{}{ "parameters": args, }) } path := buildPath(service, method, options) resp, code, err := sendHTTPRequest( sess, path, restMethod, bytes.NewBuffer(parameters), options) if err != nil { //Preserve the original sl error if _, ok := err.(sl.Error); ok { return err } return sl.Error{Wrapped: err, StatusCode: code} } err = findResponseError(code, resp) if err != nil { return err } // Some APIs that normally return a collection, omit the []'s when the API returns a single value returnType := reflect.TypeOf(pResult).String() if strings.Index(returnType, "[]") == 1 && strings.Index(string(resp), "[") != 0 { resp = []byte("[" + string(resp) + "]") } // At this point, all that's left to do is parse the return value to the appropriate type, and return // any parse errors (or nil if successful) err = nil switch pResult.(type) { case *[]uint8: // exclude quotes *pResult.(*[]uint8) = resp[1 : len(resp)-1] case *datatypes.Void: case *uint: var val uint64 val, err = strconv.ParseUint(string(resp), 0, 64) if err == nil { *pResult.(*uint) = uint(val) } case *bool: *pResult.(*bool), err = strconv.ParseBool(string(resp)) case *string: str := string(resp) strIdx := len(str) - 1 if str == "null" { str = "" } else if str[0] == '"' && str[strIdx] == '"' { rawStr := rawString{str} err = json.Unmarshal([]byte(`{"val":`+str+`}`), &rawStr) if err == nil { str = rawStr.Val } } *pResult.(*string) = str default: // Must be a json representation of one of the many softlayer datatypes err = json.Unmarshal(resp, pResult) } if err != nil { err = sl.Error{Message: err.Error(), Wrapped: err} } return err }
go
func (r *RestTransport) DoRequest(sess *Session, service string, method string, args []interface{}, options *sl.Options, pResult interface{}) error { restMethod := httpMethod(method, args) // Parse any method parameters and determine the HTTP method var parameters []byte if len(args) > 0 { // parse the parameters parameters, _ = json.Marshal( map[string]interface{}{ "parameters": args, }) } path := buildPath(service, method, options) resp, code, err := sendHTTPRequest( sess, path, restMethod, bytes.NewBuffer(parameters), options) if err != nil { //Preserve the original sl error if _, ok := err.(sl.Error); ok { return err } return sl.Error{Wrapped: err, StatusCode: code} } err = findResponseError(code, resp) if err != nil { return err } // Some APIs that normally return a collection, omit the []'s when the API returns a single value returnType := reflect.TypeOf(pResult).String() if strings.Index(returnType, "[]") == 1 && strings.Index(string(resp), "[") != 0 { resp = []byte("[" + string(resp) + "]") } // At this point, all that's left to do is parse the return value to the appropriate type, and return // any parse errors (or nil if successful) err = nil switch pResult.(type) { case *[]uint8: // exclude quotes *pResult.(*[]uint8) = resp[1 : len(resp)-1] case *datatypes.Void: case *uint: var val uint64 val, err = strconv.ParseUint(string(resp), 0, 64) if err == nil { *pResult.(*uint) = uint(val) } case *bool: *pResult.(*bool), err = strconv.ParseBool(string(resp)) case *string: str := string(resp) strIdx := len(str) - 1 if str == "null" { str = "" } else if str[0] == '"' && str[strIdx] == '"' { rawStr := rawString{str} err = json.Unmarshal([]byte(`{"val":`+str+`}`), &rawStr) if err == nil { str = rawStr.Val } } *pResult.(*string) = str default: // Must be a json representation of one of the many softlayer datatypes err = json.Unmarshal(resp, pResult) } if err != nil { err = sl.Error{Message: err.Error(), Wrapped: err} } return err }
[ "func", "(", "r", "*", "RestTransport", ")", "DoRequest", "(", "sess", "*", "Session", ",", "service", "string", ",", "method", "string", ",", "args", "[", "]", "interface", "{", "}", ",", "options", "*", "sl", ".", "Options", ",", "pResult", "interface", "{", "}", ")", "error", "{", "restMethod", ":=", "httpMethod", "(", "method", ",", "args", ")", "\n\n", "// Parse any method parameters and determine the HTTP method", "var", "parameters", "[", "]", "byte", "\n", "if", "len", "(", "args", ")", ">", "0", "{", "// parse the parameters", "parameters", ",", "_", "=", "json", ".", "Marshal", "(", "map", "[", "string", "]", "interface", "{", "}", "{", "\"", "\"", ":", "args", ",", "}", ")", "\n", "}", "\n\n", "path", ":=", "buildPath", "(", "service", ",", "method", ",", "options", ")", "\n\n", "resp", ",", "code", ",", "err", ":=", "sendHTTPRequest", "(", "sess", ",", "path", ",", "restMethod", ",", "bytes", ".", "NewBuffer", "(", "parameters", ")", ",", "options", ")", "\n\n", "if", "err", "!=", "nil", "{", "//Preserve the original sl error", "if", "_", ",", "ok", ":=", "err", ".", "(", "sl", ".", "Error", ")", ";", "ok", "{", "return", "err", "\n", "}", "\n", "return", "sl", ".", "Error", "{", "Wrapped", ":", "err", ",", "StatusCode", ":", "code", "}", "\n", "}", "\n\n", "err", "=", "findResponseError", "(", "code", ",", "resp", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n\n", "// Some APIs that normally return a collection, omit the []'s when the API returns a single value", "returnType", ":=", "reflect", ".", "TypeOf", "(", "pResult", ")", ".", "String", "(", ")", "\n", "if", "strings", ".", "Index", "(", "returnType", ",", "\"", "\"", ")", "==", "1", "&&", "strings", ".", "Index", "(", "string", "(", "resp", ")", ",", "\"", "\"", ")", "!=", "0", "{", "resp", "=", "[", "]", "byte", "(", "\"", "\"", "+", "string", "(", "resp", ")", "+", "\"", "\"", ")", "\n", "}", "\n\n", "// At this point, all that's left to do is parse the return value to the appropriate type, and return", "// any parse errors (or nil if successful)", "err", "=", "nil", "\n", "switch", "pResult", ".", "(", "type", ")", "{", "case", "*", "[", "]", "uint8", ":", "// exclude quotes", "*", "pResult", ".", "(", "*", "[", "]", "uint8", ")", "=", "resp", "[", "1", ":", "len", "(", "resp", ")", "-", "1", "]", "\n", "case", "*", "datatypes", ".", "Void", ":", "case", "*", "uint", ":", "var", "val", "uint64", "\n", "val", ",", "err", "=", "strconv", ".", "ParseUint", "(", "string", "(", "resp", ")", ",", "0", ",", "64", ")", "\n", "if", "err", "==", "nil", "{", "*", "pResult", ".", "(", "*", "uint", ")", "=", "uint", "(", "val", ")", "\n", "}", "\n", "case", "*", "bool", ":", "*", "pResult", ".", "(", "*", "bool", ")", ",", "err", "=", "strconv", ".", "ParseBool", "(", "string", "(", "resp", ")", ")", "\n", "case", "*", "string", ":", "str", ":=", "string", "(", "resp", ")", "\n", "strIdx", ":=", "len", "(", "str", ")", "-", "1", "\n", "if", "str", "==", "\"", "\"", "{", "str", "=", "\"", "\"", "\n", "}", "else", "if", "str", "[", "0", "]", "==", "'\"'", "&&", "str", "[", "strIdx", "]", "==", "'\"'", "{", "rawStr", ":=", "rawString", "{", "str", "}", "\n", "err", "=", "json", ".", "Unmarshal", "(", "[", "]", "byte", "(", "`{\"val\":`", "+", "str", "+", "`}`", ")", ",", "&", "rawStr", ")", "\n", "if", "err", "==", "nil", "{", "str", "=", "rawStr", ".", "Val", "\n", "}", "\n", "}", "\n", "*", "pResult", ".", "(", "*", "string", ")", "=", "str", "\n", "default", ":", "// Must be a json representation of one of the many softlayer datatypes", "err", "=", "json", ".", "Unmarshal", "(", "resp", ",", "pResult", ")", "\n", "}", "\n\n", "if", "err", "!=", "nil", "{", "err", "=", "sl", ".", "Error", "{", "Message", ":", "err", ".", "Error", "(", ")", ",", "Wrapped", ":", "err", "}", "\n", "}", "\n\n", "return", "err", "\n", "}" ]
// DoRequest - Implementation of the TransportHandler interface for handling // calls to the REST endpoint.
[ "DoRequest", "-", "Implementation", "of", "the", "TransportHandler", "interface", "for", "handling", "calls", "to", "the", "REST", "endpoint", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/session/rest.go#L40-L121
6,530
softlayer/softlayer-go
helpers/hardware/hardware.go
GetRouterByName
func GetRouterByName(sess *session.Session, hostname string, args ...interface{}) (datatypes.Hardware, error) { var mask string if len(args) > 0 { mask = args[0].(string) } r, _ := regexp.Compile("[A-Za-z]+[0-9]+$") dcName := r.FindString(hostname) if len(dcName) == 0 { return datatypes.Hardware{}, fmt.Errorf("Cannot get datacenter name from hostname %s", hostname) } datacenter, err := location.GetDatacenterByName(sess, dcName, "hardwareRouters[id,hostname]") if err != nil { return datatypes.Hardware{}, err } for _, router := range datacenter.HardwareRouters { if *router.Hostname == hostname { return services.GetHardwareService(sess). Id(*router.Id). Mask(mask). GetObject() } } return datatypes.Hardware{}, fmt.Errorf("No routers found with hostname of %s", hostname) }
go
func GetRouterByName(sess *session.Session, hostname string, args ...interface{}) (datatypes.Hardware, error) { var mask string if len(args) > 0 { mask = args[0].(string) } r, _ := regexp.Compile("[A-Za-z]+[0-9]+$") dcName := r.FindString(hostname) if len(dcName) == 0 { return datatypes.Hardware{}, fmt.Errorf("Cannot get datacenter name from hostname %s", hostname) } datacenter, err := location.GetDatacenterByName(sess, dcName, "hardwareRouters[id,hostname]") if err != nil { return datatypes.Hardware{}, err } for _, router := range datacenter.HardwareRouters { if *router.Hostname == hostname { return services.GetHardwareService(sess). Id(*router.Id). Mask(mask). GetObject() } } return datatypes.Hardware{}, fmt.Errorf("No routers found with hostname of %s", hostname) }
[ "func", "GetRouterByName", "(", "sess", "*", "session", ".", "Session", ",", "hostname", "string", ",", "args", "...", "interface", "{", "}", ")", "(", "datatypes", ".", "Hardware", ",", "error", ")", "{", "var", "mask", "string", "\n", "if", "len", "(", "args", ")", ">", "0", "{", "mask", "=", "args", "[", "0", "]", ".", "(", "string", ")", "\n", "}", "\n\n", "r", ",", "_", ":=", "regexp", ".", "Compile", "(", "\"", "\"", ")", "\n", "dcName", ":=", "r", ".", "FindString", "(", "hostname", ")", "\n", "if", "len", "(", "dcName", ")", "==", "0", "{", "return", "datatypes", ".", "Hardware", "{", "}", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "hostname", ")", "\n", "}", "\n\n", "datacenter", ",", "err", ":=", "location", ".", "GetDatacenterByName", "(", "sess", ",", "dcName", ",", "\"", "\"", ")", "\n", "if", "err", "!=", "nil", "{", "return", "datatypes", ".", "Hardware", "{", "}", ",", "err", "\n", "}", "\n\n", "for", "_", ",", "router", ":=", "range", "datacenter", ".", "HardwareRouters", "{", "if", "*", "router", ".", "Hostname", "==", "hostname", "{", "return", "services", ".", "GetHardwareService", "(", "sess", ")", ".", "Id", "(", "*", "router", ".", "Id", ")", ".", "Mask", "(", "mask", ")", ".", "GetObject", "(", ")", "\n", "}", "\n", "}", "\n\n", "return", "datatypes", ".", "Hardware", "{", "}", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "hostname", ")", "\n", "}" ]
// GeRouterByName returns a Hardware that matches the provided hostname, // or an error if no matching Hardware can be found. // SoftLayer does not provide a direct path to retrieve a list of router // objects. So, get Location_Datacenter object at first and get an array of // router objects from the Datacenter
[ "GeRouterByName", "returns", "a", "Hardware", "that", "matches", "the", "provided", "hostname", "or", "an", "error", "if", "no", "matching", "Hardware", "can", "be", "found", ".", "SoftLayer", "does", "not", "provide", "a", "direct", "path", "to", "retrieve", "a", "list", "of", "router", "objects", ".", "So", "get", "Location_Datacenter", "object", "at", "first", "and", "get", "an", "array", "of", "router", "objects", "from", "the", "Datacenter" ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/helpers/hardware/hardware.go#L34-L61
6,531
softlayer/softlayer-go
services/hardware.go
GetAlarmHistory
func (r Hardware) GetAlarmHistory(startDate *datatypes.Time, endDate *datatypes.Time, alarmId *string) (resp []datatypes.Container_Monitoring_Alarm_History, err error) { params := []interface{}{ startDate, endDate, alarmId, } err = r.Session.DoRequest("SoftLayer_Hardware", "getAlarmHistory", params, &r.Options, &resp) return }
go
func (r Hardware) GetAlarmHistory(startDate *datatypes.Time, endDate *datatypes.Time, alarmId *string) (resp []datatypes.Container_Monitoring_Alarm_History, err error) { params := []interface{}{ startDate, endDate, alarmId, } err = r.Session.DoRequest("SoftLayer_Hardware", "getAlarmHistory", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware", ")", "GetAlarmHistory", "(", "startDate", "*", "datatypes", ".", "Time", ",", "endDate", "*", "datatypes", ".", "Time", ",", "alarmId", "*", "string", ")", "(", "resp", "[", "]", "datatypes", ".", "Container_Monitoring_Alarm_History", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "startDate", ",", "endDate", ",", "alarmId", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// The '''getAlarmHistory''' method retrieves a detailed history for the monitoring alarm. When calling this method, a start and end date for the history to be retrieved must be entered.
[ "The", "getAlarmHistory", "method", "retrieves", "a", "detailed", "history", "for", "the", "monitoring", "alarm", ".", "When", "calling", "this", "method", "a", "start", "and", "end", "date", "for", "the", "history", "to", "be", "retrieved", "must", "be", "entered", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L470-L478
6,532
softlayer/softlayer-go
services/hardware.go
GetServerFanSpeedGraphs
func (r Hardware) GetServerFanSpeedGraphs() (resp []datatypes.Container_RemoteManagement_Graphs_SensorSpeed, err error) { err = r.Session.DoRequest("SoftLayer_Hardware", "getServerFanSpeedGraphs", nil, &r.Options, &resp) return }
go
func (r Hardware) GetServerFanSpeedGraphs() (resp []datatypes.Container_RemoteManagement_Graphs_SensorSpeed, err error) { err = r.Session.DoRequest("SoftLayer_Hardware", "getServerFanSpeedGraphs", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware", ")", "GetServerFanSpeedGraphs", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Container_RemoteManagement_Graphs_SensorSpeed", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// The '''getServerFanSpeedGraphs''' method retrieves the server's fan speeds and displays the speeds using tachometer graphs. data used to construct these graphs is retrieved from the server's remote management card. Each graph returned will have an associated title.
[ "The", "getServerFanSpeedGraphs", "method", "retrieves", "the", "server", "s", "fan", "speeds", "and", "displays", "the", "speeds", "using", "tachometer", "graphs", ".", "data", "used", "to", "construct", "these", "graphs", "is", "retrieved", "from", "the", "server", "s", "remote", "management", "card", ".", "Each", "graph", "returned", "will", "have", "an", "associated", "title", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L1299-L1302
6,533
softlayer/softlayer-go
services/hardware.go
GetResultFile
func (r Hardware_Benchmark_Certification) GetResultFile() (resp []byte, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Benchmark_Certification", "getResultFile", nil, &r.Options, &resp) return }
go
func (r Hardware_Benchmark_Certification) GetResultFile() (resp []byte, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Benchmark_Certification", "getResultFile", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Benchmark_Certification", ")", "GetResultFile", "(", ")", "(", "resp", "[", "]", "byte", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Attempt to retrieve the file associated with a benchmark certification result, if such a file exists. If there is no file for this benchmark certification result, calling this method throws an exception. The "getResultFile" method attempts to retrieve the file associated with a benchmark certification result, if such a file exists. If no file exists for the benchmark certification, an exception is thrown.
[ "Attempt", "to", "retrieve", "the", "file", "associated", "with", "a", "benchmark", "certification", "result", "if", "such", "a", "file", "exists", ".", "If", "there", "is", "no", "file", "for", "this", "benchmark", "certification", "result", "calling", "this", "method", "throws", "an", "exception", ".", "The", "getResultFile", "method", "attempts", "to", "retrieve", "the", "file", "associated", "with", "a", "benchmark", "certification", "result", "if", "such", "a", "file", "exists", ".", "If", "no", "file", "exists", "for", "the", "benchmark", "certification", "an", "exception", "is", "thrown", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L1629-L1632
6,534
softlayer/softlayer-go
services/hardware.go
GetHardwareComponents
func (r Hardware_Component_Model) GetHardwareComponents() (resp []datatypes.Hardware_Component, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Component_Model", "getHardwareComponents", nil, &r.Options, &resp) return }
go
func (r Hardware_Component_Model) GetHardwareComponents() (resp []datatypes.Hardware_Component, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Component_Model", "getHardwareComponents", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Component_Model", ")", "GetHardwareComponents", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Hardware_Component", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve A hardware component model's physical components in inventory.
[ "Retrieve", "A", "hardware", "component", "model", "s", "physical", "components", "in", "inventory", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L1775-L1778
6,535
softlayer/softlayer-go
services/hardware.go
GetHardwareGenericComponentModel
func (r Hardware_Component_Model) GetHardwareGenericComponentModel() (resp datatypes.Hardware_Component_Model_Generic, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Component_Model", "getHardwareGenericComponentModel", nil, &r.Options, &resp) return }
go
func (r Hardware_Component_Model) GetHardwareGenericComponentModel() (resp datatypes.Hardware_Component_Model_Generic, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Component_Model", "getHardwareGenericComponentModel", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Component_Model", ")", "GetHardwareGenericComponentModel", "(", ")", "(", "resp", "datatypes", ".", "Hardware_Component_Model_Generic", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The non-vendor specific generic component model for a hardware component model.
[ "Retrieve", "The", "non", "-", "vendor", "specific", "generic", "component", "model", "for", "a", "hardware", "component", "model", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L1781-L1784
6,536
softlayer/softlayer-go
services/hardware.go
GetRebootTime
func (r Hardware_Component_Model) GetRebootTime() (resp datatypes.Hardware_Component_Motherboard_Reboot_Time, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Component_Model", "getRebootTime", nil, &r.Options, &resp) return }
go
func (r Hardware_Component_Model) GetRebootTime() (resp datatypes.Hardware_Component_Motherboard_Reboot_Time, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Component_Model", "getRebootTime", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Component_Model", ")", "GetRebootTime", "(", ")", "(", "resp", "datatypes", ".", "Hardware_Component_Motherboard_Reboot_Time", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve A motherboard's average reboot time.
[ "Retrieve", "A", "motherboard", "s", "average", "reboot", "time", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L1811-L1814
6,537
softlayer/softlayer-go
services/hardware.go
GetType
func (r Hardware_Component_Model) GetType() (resp string, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Component_Model", "getType", nil, &r.Options, &resp) return }
go
func (r Hardware_Component_Model) GetType() (resp string, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Component_Model", "getType", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Component_Model", ")", "GetType", "(", ")", "(", "resp", "string", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve A hardware component model's type.
[ "Retrieve", "A", "hardware", "component", "model", "s", "type", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L1817-L1820
6,538
softlayer/softlayer-go
services/hardware.go
GetValidAttributeTypes
func (r Hardware_Component_Model) GetValidAttributeTypes() (resp []datatypes.Hardware_Component_Model_Attribute_Type, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Component_Model", "getValidAttributeTypes", nil, &r.Options, &resp) return }
go
func (r Hardware_Component_Model) GetValidAttributeTypes() (resp []datatypes.Hardware_Component_Model_Attribute_Type, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Component_Model", "getValidAttributeTypes", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Component_Model", ")", "GetValidAttributeTypes", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Hardware_Component_Model_Attribute_Type", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The types of attributes that are allowed for a given hardware component model.
[ "Retrieve", "The", "types", "of", "attributes", "that", "are", "allowed", "for", "a", "given", "hardware", "component", "model", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L1823-L1826
6,539
softlayer/softlayer-go
services/hardware.go
GetData
func (r Hardware_Component_Partition_Template) GetData() (resp []datatypes.Hardware_Component_Partition_Template_Partition, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Component_Partition_Template", "getData", nil, &r.Options, &resp) return }
go
func (r Hardware_Component_Partition_Template) GetData() (resp []datatypes.Hardware_Component_Partition_Template_Partition, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Component_Partition_Template", "getData", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Component_Partition_Template", ")", "GetData", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Hardware_Component_Partition_Template_Partition", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve An individual partition for a partition template. This is identical to 'partitionTemplatePartition' except this will sort unix partitions.
[ "Retrieve", "An", "individual", "partition", "for", "a", "partition", "template", ".", "This", "is", "identical", "to", "partitionTemplatePartition", "except", "this", "will", "sort", "unix", "partitions", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L1942-L1945
6,540
softlayer/softlayer-go
services/hardware.go
GetAttachedNetworkStorages
func (r Hardware_Router) GetAttachedNetworkStorages(nasType *string) (resp []datatypes.Network_Storage, err error) { params := []interface{}{ nasType, } err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getAttachedNetworkStorages", params, &r.Options, &resp) return }
go
func (r Hardware_Router) GetAttachedNetworkStorages(nasType *string) (resp []datatypes.Network_Storage, err error) { params := []interface{}{ nasType, } err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getAttachedNetworkStorages", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Router", ")", "GetAttachedNetworkStorages", "(", "nasType", "*", "string", ")", "(", "resp", "[", "]", "datatypes", ".", "Network_Storage", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "nasType", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// This method is retrieve a list of SoftLayer_Network_Storage volumes that are authorized access to this SoftLayer_Hardware.
[ "This", "method", "is", "retrieve", "a", "list", "of", "SoftLayer_Network_Storage", "volumes", "that", "are", "authorized", "access", "to", "this", "SoftLayer_Hardware", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L2450-L2456
6,541
softlayer/softlayer-go
services/hardware.go
GetBandwidthAllotmentDetail
func (r Hardware_Router) GetBandwidthAllotmentDetail() (resp datatypes.Network_Bandwidth_Version1_Allotment_Detail, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getBandwidthAllotmentDetail", nil, &r.Options, &resp) return }
go
func (r Hardware_Router) GetBandwidthAllotmentDetail() (resp datatypes.Network_Bandwidth_Version1_Allotment_Detail, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getBandwidthAllotmentDetail", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Router", ")", "GetBandwidthAllotmentDetail", "(", ")", "(", "resp", "datatypes", ".", "Network_Bandwidth_Version1_Allotment_Detail", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve A hardware's allotted detail record. Allotment details link bandwidth allocation with allotments.
[ "Retrieve", "A", "hardware", "s", "allotted", "detail", "record", ".", "Allotment", "details", "link", "bandwidth", "allocation", "with", "allotments", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L2518-L2521
6,542
softlayer/softlayer-go
services/hardware.go
GetBoundSubnets
func (r Hardware_Router) GetBoundSubnets() (resp []datatypes.Network_Subnet, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getBoundSubnets", nil, &r.Options, &resp) return }
go
func (r Hardware_Router) GetBoundSubnets() (resp []datatypes.Network_Subnet, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getBoundSubnets", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Router", ")", "GetBoundSubnets", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Network_Subnet", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve Associated subnets for a router object.
[ "Retrieve", "Associated", "subnets", "for", "a", "router", "object", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L2548-L2551
6,543
softlayer/softlayer-go
services/hardware.go
GetHardwareChassis
func (r Hardware_Router) GetHardwareChassis() (resp datatypes.Hardware_Chassis, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getHardwareChassis", nil, &r.Options, &resp) return }
go
func (r Hardware_Router) GetHardwareChassis() (resp datatypes.Hardware_Chassis, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getHardwareChassis", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Router", ")", "GetHardwareChassis", "(", ")", "(", "resp", "datatypes", ".", "Hardware_Chassis", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The chassis that a piece of hardware is housed in.
[ "Retrieve", "The", "chassis", "that", "a", "piece", "of", "hardware", "is", "housed", "in", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L2762-L2765
6,544
softlayer/softlayer-go
services/hardware.go
GetHardwareFunction
func (r Hardware_Router) GetHardwareFunction() (resp datatypes.Hardware_Function, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getHardwareFunction", nil, &r.Options, &resp) return }
go
func (r Hardware_Router) GetHardwareFunction() (resp datatypes.Hardware_Function, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getHardwareFunction", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Router", ")", "GetHardwareFunction", "(", ")", "(", "resp", "datatypes", ".", "Hardware_Function", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve A hardware's function.
[ "Retrieve", "A", "hardware", "s", "function", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L2768-L2771
6,545
softlayer/softlayer-go
services/hardware.go
GetMetricTrackingObject
func (r Hardware_Router) GetMetricTrackingObject() (resp datatypes.Metric_Tracking_Object_HardwareServer, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getMetricTrackingObject", nil, &r.Options, &resp) return }
go
func (r Hardware_Router) GetMetricTrackingObject() (resp datatypes.Metric_Tracking_Object_HardwareServer, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getMetricTrackingObject", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Router", ")", "GetMetricTrackingObject", "(", ")", "(", "resp", "datatypes", ".", "Metric_Tracking_Object_HardwareServer", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve A piece of hardware's metric tracking object.
[ "Retrieve", "A", "piece", "of", "hardware", "s", "metric", "tracking", "object", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L2886-L2889
6,546
softlayer/softlayer-go
services/hardware.go
GetMonitoringActiveAlarms
func (r Hardware_Router) GetMonitoringActiveAlarms(startDate *datatypes.Time, endDate *datatypes.Time) (resp []datatypes.Container_Monitoring_Alarm_History, err error) { params := []interface{}{ startDate, endDate, } err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getMonitoringActiveAlarms", params, &r.Options, &resp) return }
go
func (r Hardware_Router) GetMonitoringActiveAlarms(startDate *datatypes.Time, endDate *datatypes.Time) (resp []datatypes.Container_Monitoring_Alarm_History, err error) { params := []interface{}{ startDate, endDate, } err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getMonitoringActiveAlarms", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Router", ")", "GetMonitoringActiveAlarms", "(", "startDate", "*", "datatypes", ".", "Time", ",", "endDate", "*", "datatypes", ".", "Time", ")", "(", "resp", "[", "]", "datatypes", ".", "Container_Monitoring_Alarm_History", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "startDate", ",", "endDate", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Returns open monitoring alarms for a given time period
[ "Returns", "open", "monitoring", "alarms", "for", "a", "given", "time", "period" ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L2892-L2899
6,547
softlayer/softlayer-go
services/hardware.go
GetMonitoringRobot
func (r Hardware_Router) GetMonitoringRobot() (resp datatypes.Monitoring_Robot, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getMonitoringRobot", nil, &r.Options, &resp) return }
go
func (r Hardware_Router) GetMonitoringRobot() (resp datatypes.Monitoring_Robot, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getMonitoringRobot", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Router", ")", "GetMonitoringRobot", "(", ")", "(", "resp", "datatypes", ".", "Monitoring_Robot", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve Information regarding the hardware's monitoring robot.
[ "Retrieve", "Information", "regarding", "the", "hardware", "s", "monitoring", "robot", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L2918-L2921
6,548
softlayer/softlayer-go
services/hardware.go
GetParentBay
func (r Hardware_Router) GetParentBay() (resp datatypes.Hardware_Blade, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getParentBay", nil, &r.Options, &resp) return }
go
func (r Hardware_Router) GetParentBay() (resp datatypes.Hardware_Blade, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getParentBay", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Router", ")", "GetParentBay", "(", ")", "(", "resp", "datatypes", ".", "Hardware_Blade", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve Blade Bay
[ "Retrieve", "Blade", "Bay" ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L3068-L3071
6,549
softlayer/softlayer-go
services/hardware.go
GetServiceProvider
func (r Hardware_Router) GetServiceProvider() (resp datatypes.Service_Provider, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getServiceProvider", nil, &r.Options, &resp) return }
go
func (r Hardware_Router) GetServiceProvider() (resp datatypes.Service_Provider, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getServiceProvider", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Router", ")", "GetServiceProvider", "(", ")", "(", "resp", "datatypes", ".", "Service_Provider", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve Information regarding the piece of hardware's service provider.
[ "Retrieve", "Information", "regarding", "the", "piece", "of", "hardware", "s", "service", "provider", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L3280-L3283
6,550
softlayer/softlayer-go
services/hardware.go
GetTransactionHistory
func (r Hardware_Router) GetTransactionHistory() (resp []datatypes.Provisioning_Version1_Transaction_History, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getTransactionHistory", nil, &r.Options, &resp) return }
go
func (r Hardware_Router) GetTransactionHistory() (resp []datatypes.Provisioning_Version1_Transaction_History, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getTransactionHistory", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Router", ")", "GetTransactionHistory", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Provisioning_Version1_Transaction_History", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// // This method will query transaction history for a piece of hardware.
[ "This", "method", "will", "query", "transaction", "history", "for", "a", "piece", "of", "hardware", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L3323-L3326
6,551
softlayer/softlayer-go
services/hardware.go
GetUpgradeItemPrices
func (r Hardware_Router) GetUpgradeItemPrices() (resp []datatypes.Product_Item_Price, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getUpgradeItemPrices", nil, &r.Options, &resp) return }
go
func (r Hardware_Router) GetUpgradeItemPrices() (resp []datatypes.Product_Item_Price, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getUpgradeItemPrices", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Router", ")", "GetUpgradeItemPrices", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Product_Item_Price", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve a list of upgradeable items available to this piece of hardware. Currently, getUpgradeItemPrices retrieves upgrades available for a server's memory, hard drives, network port speed, bandwidth allocation and GPUs.
[ "Retrieve", "a", "list", "of", "upgradeable", "items", "available", "to", "this", "piece", "of", "hardware", ".", "Currently", "getUpgradeItemPrices", "retrieves", "upgrades", "available", "for", "a", "server", "s", "memory", "hard", "drives", "network", "port", "speed", "bandwidth", "allocation", "and", "GPUs", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L3329-L3332
6,552
softlayer/softlayer-go
services/hardware.go
GetVirtualChassis
func (r Hardware_Router) GetVirtualChassis() (resp datatypes.Hardware_Group, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getVirtualChassis", nil, &r.Options, &resp) return }
go
func (r Hardware_Router) GetVirtualChassis() (resp datatypes.Hardware_Group, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getVirtualChassis", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Router", ")", "GetVirtualChassis", "(", ")", "(", "resp", "datatypes", ".", "Hardware_Group", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve Information regarding the virtual chassis for a piece of hardware.
[ "Retrieve", "Information", "regarding", "the", "virtual", "chassis", "for", "a", "piece", "of", "hardware", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L3359-L3362
6,553
softlayer/softlayer-go
services/hardware.go
RemoveAccessToNetworkStorage
func (r Hardware_Router) RemoveAccessToNetworkStorage(networkStorageTemplateObject *datatypes.Network_Storage) (resp bool, err error) { params := []interface{}{ networkStorageTemplateObject, } err = r.Session.DoRequest("SoftLayer_Hardware_Router", "removeAccessToNetworkStorage", params, &r.Options, &resp) return }
go
func (r Hardware_Router) RemoveAccessToNetworkStorage(networkStorageTemplateObject *datatypes.Network_Storage) (resp bool, err error) { params := []interface{}{ networkStorageTemplateObject, } err = r.Session.DoRequest("SoftLayer_Hardware_Router", "removeAccessToNetworkStorage", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Router", ")", "RemoveAccessToNetworkStorage", "(", "networkStorageTemplateObject", "*", "datatypes", ".", "Network_Storage", ")", "(", "resp", "bool", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "networkStorageTemplateObject", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// This method is used to remove access to s SoftLayer_Network_Storage volumes that supports host- or network-level access control.
[ "This", "method", "is", "used", "to", "remove", "access", "to", "s", "SoftLayer_Network_Storage", "volumes", "that", "supports", "host", "-", "or", "network", "-", "level", "access", "control", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L3483-L3489
6,554
softlayer/softlayer-go
services/hardware.go
UpdateIpmiPassword
func (r Hardware_Router) UpdateIpmiPassword(password *string) (resp bool, err error) { params := []interface{}{ password, } err = r.Session.DoRequest("SoftLayer_Hardware_Router", "updateIpmiPassword", params, &r.Options, &resp) return }
go
func (r Hardware_Router) UpdateIpmiPassword(password *string) (resp bool, err error) { params := []interface{}{ password, } err = r.Session.DoRequest("SoftLayer_Hardware_Router", "updateIpmiPassword", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Router", ")", "UpdateIpmiPassword", "(", "password", "*", "string", ")", "(", "resp", "bool", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "password", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// This method will update the root IPMI password on this SoftLayer_Hardware.
[ "This", "method", "will", "update", "the", "root", "IPMI", "password", "on", "this", "SoftLayer_Hardware", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L3519-L3525
6,555
softlayer/softlayer-go
services/hardware.go
CreateFirmwareReflashTransaction
func (r Hardware_SecurityModule) CreateFirmwareReflashTransaction(ipmi *int, raidController *int, bios *int) (resp bool, err error) { params := []interface{}{ ipmi, raidController, bios, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "createFirmwareReflashTransaction", params, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule) CreateFirmwareReflashTransaction(ipmi *int, raidController *int, bios *int) (resp bool, err error) { params := []interface{}{ ipmi, raidController, bios, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "createFirmwareReflashTransaction", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule", ")", "CreateFirmwareReflashTransaction", "(", "ipmi", "*", "int", ",", "raidController", "*", "int", ",", "bios", "*", "int", ")", "(", "resp", "bool", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "ipmi", ",", "raidController", ",", "bios", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// You can launch firmware reflash by selecting from your server list. It will bring your server offline for approximately 60 minutes while the flashes are in progress. // // In the event of a hardware failure during this our datacenter engineers will be notified of the problem automatically. They will then replace any failed components to bring your server back online, and will be contacting you to ensure that impact on your server is minimal.
[ "You", "can", "launch", "firmware", "reflash", "by", "selecting", "from", "your", "server", "list", ".", "It", "will", "bring", "your", "server", "offline", "for", "approximately", "60", "minutes", "while", "the", "flashes", "are", "in", "progress", ".", "In", "the", "event", "of", "a", "hardware", "failure", "during", "this", "our", "datacenter", "engineers", "will", "be", "notified", "of", "the", "problem", "automatically", ".", "They", "will", "then", "replace", "any", "failed", "components", "to", "bring", "your", "server", "back", "online", "and", "will", "be", "contacting", "you", "to", "ensure", "that", "impact", "on", "your", "server", "is", "minimal", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L3635-L3643
6,556
softlayer/softlayer-go
services/hardware.go
GetActiveNetworkFirewallBillingItem
func (r Hardware_SecurityModule) GetActiveNetworkFirewallBillingItem() (resp datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getActiveNetworkFirewallBillingItem", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule) GetActiveNetworkFirewallBillingItem() (resp datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getActiveNetworkFirewallBillingItem", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule", ")", "GetActiveNetworkFirewallBillingItem", "(", ")", "(", "resp", "datatypes", ".", "Billing_Item", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The billing item for a server's attached network firewall.
[ "Retrieve", "The", "billing", "item", "for", "a", "server", "s", "attached", "network", "firewall", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L4034-L4037
6,557
softlayer/softlayer-go
services/hardware.go
GetActiveNetworkMonitorIncident
func (r Hardware_SecurityModule) GetActiveNetworkMonitorIncident() (resp []datatypes.Network_Monitor_Version1_Incident, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getActiveNetworkMonitorIncident", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule) GetActiveNetworkMonitorIncident() (resp []datatypes.Network_Monitor_Version1_Incident, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getActiveNetworkMonitorIncident", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule", ")", "GetActiveNetworkMonitorIncident", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Network_Monitor_Version1_Incident", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve A piece of hardware's active network monitoring incidents.
[ "Retrieve", "A", "piece", "of", "hardware", "s", "active", "network", "monitoring", "incidents", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L4040-L4043
6,558
softlayer/softlayer-go
services/hardware.go
GetBillingItem
func (r Hardware_SecurityModule) GetBillingItem() (resp datatypes.Billing_Item_Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getBillingItem", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule) GetBillingItem() (resp datatypes.Billing_Item_Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getBillingItem", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule", ")", "GetBillingItem", "(", ")", "(", "resp", "datatypes", ".", "Billing_Item_Hardware", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve Information regarding the billing item for a server.
[ "Retrieve", "Information", "regarding", "the", "billing", "item", "for", "a", "server", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L4266-L4269
6,559
softlayer/softlayer-go
services/hardware.go
GetDriveControllers
func (r Hardware_SecurityModule) GetDriveControllers() (resp []datatypes.Hardware_Component, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getDriveControllers", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule) GetDriveControllers() (resp []datatypes.Hardware_Component, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getDriveControllers", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule", ")", "GetDriveControllers", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Hardware_Component", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The drive controllers contained within a piece of hardware.
[ "Retrieve", "The", "drive", "controllers", "contained", "within", "a", "piece", "of", "hardware", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L4487-L4490
6,560
softlayer/softlayer-go
services/hardware.go
GetFirewallServiceComponent
func (r Hardware_SecurityModule) GetFirewallServiceComponent() (resp datatypes.Network_Component_Firewall, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getFirewallServiceComponent", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule) GetFirewallServiceComponent() (resp datatypes.Network_Component_Firewall, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getFirewallServiceComponent", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule", ")", "GetFirewallServiceComponent", "(", ")", "(", "resp", "datatypes", ".", "Network_Component_Firewall", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve Information regarding a piece of hardware's firewall services.
[ "Retrieve", "Information", "regarding", "a", "piece", "of", "hardware", "s", "firewall", "services", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L4505-L4508
6,561
softlayer/softlayer-go
services/hardware.go
GetFixedConfigurationPreset
func (r Hardware_SecurityModule) GetFixedConfigurationPreset() (resp datatypes.Product_Package_Preset, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getFixedConfigurationPreset", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule) GetFixedConfigurationPreset() (resp datatypes.Product_Package_Preset, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getFixedConfigurationPreset", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule", ")", "GetFixedConfigurationPreset", "(", ")", "(", "resp", "datatypes", ".", "Product_Package_Preset", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve Defines the fixed components in a fixed configuration bare metal server.
[ "Retrieve", "Defines", "the", "fixed", "components", "in", "a", "fixed", "configuration", "bare", "metal", "server", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L4511-L4514
6,562
softlayer/softlayer-go
services/hardware.go
GetNetworkStatusAttribute
func (r Hardware_SecurityModule) GetNetworkStatusAttribute() (resp datatypes.Hardware_Attribute, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getNetworkStatusAttribute", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule) GetNetworkStatusAttribute() (resp datatypes.Hardware_Attribute, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getNetworkStatusAttribute", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule", ")", "GetNetworkStatusAttribute", "(", ")", "(", "resp", "datatypes", ".", "Hardware_Attribute", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The hardware's related network status attribute.
[ "Retrieve", "The", "hardware", "s", "related", "network", "status", "attribute", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L4903-L4906
6,563
softlayer/softlayer-go
services/hardware.go
GetPrivateVlanByIpAddress
func (r Hardware_SecurityModule) GetPrivateVlanByIpAddress(ipAddress *string) (resp datatypes.Network_Vlan, err error) { params := []interface{}{ ipAddress, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getPrivateVlanByIpAddress", params, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule) GetPrivateVlanByIpAddress(ipAddress *string) (resp datatypes.Network_Vlan, err error) { params := []interface{}{ ipAddress, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getPrivateVlanByIpAddress", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule", ")", "GetPrivateVlanByIpAddress", "(", "ipAddress", "*", "string", ")", "(", "resp", "datatypes", ".", "Network_Vlan", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "ipAddress", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve a backend network VLAN by searching for an IP address
[ "Retrieve", "a", "backend", "network", "VLAN", "by", "searching", "for", "an", "IP", "address" ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L5097-L5103
6,564
softlayer/softlayer-go
services/hardware.go
GetProcessorCoreAmount
func (r Hardware_SecurityModule) GetProcessorCoreAmount() (resp uint, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getProcessorCoreAmount", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule) GetProcessorCoreAmount() (resp uint, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getProcessorCoreAmount", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule", ")", "GetProcessorCoreAmount", "(", ")", "(", "resp", "uint", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The total number of processor cores, summed from all processors that are attached to a piece of hardware
[ "Retrieve", "The", "total", "number", "of", "processor", "cores", "summed", "from", "all", "processors", "that", "are", "attached", "to", "a", "piece", "of", "hardware" ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L5106-L5109
6,565
softlayer/softlayer-go
services/hardware.go
GetSensorDataWithGraphs
func (r Hardware_SecurityModule) GetSensorDataWithGraphs() (resp datatypes.Container_RemoteManagement_SensorReadingsWithGraphs, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getSensorDataWithGraphs", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule) GetSensorDataWithGraphs() (resp datatypes.Container_RemoteManagement_SensorReadingsWithGraphs, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getSensorDataWithGraphs", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule", ")", "GetSensorDataWithGraphs", "(", ")", "(", "resp", "datatypes", ".", "Container_RemoteManagement_SensorReadingsWithGraphs", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieves the raw data returned from the server's remote management card. For more details of what is returned please refer to the getSensorData method. Along with the raw data, graphs for the cpu and system temperatures and fan speeds are also returned.
[ "Retrieves", "the", "raw", "data", "returned", "from", "the", "server", "s", "remote", "management", "card", ".", "For", "more", "details", "of", "what", "is", "returned", "please", "refer", "to", "the", "getSensorData", "method", ".", "Along", "with", "the", "raw", "data", "graphs", "for", "the", "cpu", "and", "system", "temperatures", "and", "fan", "speeds", "are", "also", "returned", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L5313-L5316
6,566
softlayer/softlayer-go
services/hardware.go
GetStatisticsRemoteManagement
func (r Hardware_SecurityModule) GetStatisticsRemoteManagement() (resp datatypes.Hardware_Component_RemoteManagement, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getStatisticsRemoteManagement", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule) GetStatisticsRemoteManagement() (resp datatypes.Hardware_Component_RemoteManagement, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getStatisticsRemoteManagement", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule", ")", "GetStatisticsRemoteManagement", "(", ")", "(", "resp", "datatypes", ".", "Hardware_Component_RemoteManagement", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve A server's remote management card used for statistics.
[ "Retrieve", "A", "server", "s", "remote", "management", "card", "used", "for", "statistics", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L5379-L5382
6,567
softlayer/softlayer-go
services/hardware.go
MassFirmwareReflash
func (r Hardware_SecurityModule) MassFirmwareReflash(hardwareIds []int, ipmi *bool, raidController *bool, bios *bool) (resp []datatypes.Container_Hardware_Server_Request, err error) { params := []interface{}{ hardwareIds, ipmi, raidController, bios, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "massFirmwareReflash", params, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule) MassFirmwareReflash(hardwareIds []int, ipmi *bool, raidController *bool, bios *bool) (resp []datatypes.Container_Hardware_Server_Request, err error) { params := []interface{}{ hardwareIds, ipmi, raidController, bios, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "massFirmwareReflash", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule", ")", "MassFirmwareReflash", "(", "hardwareIds", "[", "]", "int", ",", "ipmi", "*", "bool", ",", "raidController", "*", "bool", ",", "bios", "*", "bool", ")", "(", "resp", "[", "]", "datatypes", ".", "Container_Hardware_Server_Request", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "hardwareIds", ",", "ipmi", ",", "raidController", ",", "bios", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// You can launch firmware reflashes by selecting from your server list. It will bring your server offline for approximately 60 minutes while the reflashes are in progress. // // In the event of a hardware failure during this test our datacenter engineers will be notified of the problem automatically. They will then replace any failed components to bring your server back online. They will be contact you to ensure that impact on your server is minimal.
[ "You", "can", "launch", "firmware", "reflashes", "by", "selecting", "from", "your", "server", "list", ".", "It", "will", "bring", "your", "server", "offline", "for", "approximately", "60", "minutes", "while", "the", "reflashes", "are", "in", "progress", ".", "In", "the", "event", "of", "a", "hardware", "failure", "during", "this", "test", "our", "datacenter", "engineers", "will", "be", "notified", "of", "the", "problem", "automatically", ".", "They", "will", "then", "replace", "any", "failed", "components", "to", "bring", "your", "server", "back", "online", ".", "They", "will", "be", "contact", "you", "to", "ensure", "that", "impact", "on", "your", "server", "is", "minimal", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L5571-L5580
6,568
softlayer/softlayer-go
services/hardware.go
MassReloadOperatingSystem
func (r Hardware_SecurityModule) MassReloadOperatingSystem(hardwareIds []string, token *string, config *datatypes.Container_Hardware_Server_Configuration) (resp string, err error) { params := []interface{}{ hardwareIds, token, config, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "massReloadOperatingSystem", params, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule) MassReloadOperatingSystem(hardwareIds []string, token *string, config *datatypes.Container_Hardware_Server_Configuration) (resp string, err error) { params := []interface{}{ hardwareIds, token, config, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "massReloadOperatingSystem", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule", ")", "MassReloadOperatingSystem", "(", "hardwareIds", "[", "]", "string", ",", "token", "*", "string", ",", "config", "*", "datatypes", ".", "Container_Hardware_Server_Configuration", ")", "(", "resp", "string", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "hardwareIds", ",", "token", ",", "config", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Reloads current or customer specified operating system configuration. // // This service has a confirmation protocol for proceeding with the reload. To proceed with the reload without confirmation, simply pass in 'FORCE' as the token parameter. To proceed with the reload with confirmation, simply call the service with no parameter. A token string will be returned by this service. The token will remain active for 10 minutes. Use this token as the parameter to confirm that a reload is to be performed for the server. // // As a precaution, we strongly recommend backing up all data before reloading the operating system. The reload will format the primary disk and will reconfigure the server to the current specifications on record. // // The reload will take AT MINIMUM 66 minutes.
[ "Reloads", "current", "or", "customer", "specified", "operating", "system", "configuration", ".", "This", "service", "has", "a", "confirmation", "protocol", "for", "proceeding", "with", "the", "reload", ".", "To", "proceed", "with", "the", "reload", "without", "confirmation", "simply", "pass", "in", "FORCE", "as", "the", "token", "parameter", ".", "To", "proceed", "with", "the", "reload", "with", "confirmation", "simply", "call", "the", "service", "with", "no", "parameter", ".", "A", "token", "string", "will", "be", "returned", "by", "this", "service", ".", "The", "token", "will", "remain", "active", "for", "10", "minutes", ".", "Use", "this", "token", "as", "the", "parameter", "to", "confirm", "that", "a", "reload", "is", "to", "be", "performed", "for", "the", "server", ".", "As", "a", "precaution", "we", "strongly", "recommend", "backing", "up", "all", "data", "before", "reloading", "the", "operating", "system", ".", "The", "reload", "will", "format", "the", "primary", "disk", "and", "will", "reconfigure", "the", "server", "to", "the", "current", "specifications", "on", "record", ".", "The", "reload", "will", "take", "AT", "MINIMUM", "66", "minutes", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L5604-L5612
6,569
softlayer/softlayer-go
services/hardware.go
GetBillingCycleBandwidthUsage
func (r Hardware_SecurityModule750) GetBillingCycleBandwidthUsage() (resp []datatypes.Network_Bandwidth_Usage, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getBillingCycleBandwidthUsage", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule750) GetBillingCycleBandwidthUsage() (resp []datatypes.Network_Bandwidth_Usage, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getBillingCycleBandwidthUsage", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule750", ")", "GetBillingCycleBandwidthUsage", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Network_Bandwidth_Usage", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The raw bandwidth usage data for the current billing cycle. One object will be returned for each network this server is attached to.
[ "Retrieve", "The", "raw", "bandwidth", "usage", "data", "for", "the", "current", "billing", "cycle", ".", "One", "object", "will", "be", "returned", "for", "each", "network", "this", "server", "is", "attached", "to", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L6597-L6600
6,570
softlayer/softlayer-go
services/hardware.go
GetCurrentBenchmarkCertificationResultFile
func (r Hardware_SecurityModule750) GetCurrentBenchmarkCertificationResultFile() (resp []byte, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getCurrentBenchmarkCertificationResultFile", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule750) GetCurrentBenchmarkCertificationResultFile() (resp []byte, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getCurrentBenchmarkCertificationResultFile", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule750", ")", "GetCurrentBenchmarkCertificationResultFile", "(", ")", "(", "resp", "[", "]", "byte", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Attempt to retrieve the file associated with the current benchmark certification result, if such a file exists. If there is no file for this benchmark certification result, calling this method throws an exception.
[ "Attempt", "to", "retrieve", "the", "file", "associated", "with", "the", "current", "benchmark", "certification", "result", "if", "such", "a", "file", "exists", ".", "If", "there", "is", "no", "file", "for", "this", "benchmark", "certification", "result", "calling", "this", "method", "throws", "an", "exception", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L6709-L6712
6,571
softlayer/softlayer-go
services/hardware.go
GetDownstreamHardwareBindings
func (r Hardware_SecurityModule750) GetDownstreamHardwareBindings() (resp []datatypes.Network_Component_Uplink_Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getDownstreamHardwareBindings", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule750) GetDownstreamHardwareBindings() (resp []datatypes.Network_Component_Uplink_Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getDownstreamHardwareBindings", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule750", ")", "GetDownstreamHardwareBindings", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Network_Component_Uplink_Hardware", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve All hardware downstream from a network device.
[ "Retrieve", "All", "hardware", "downstream", "from", "a", "network", "device", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L6806-L6809
6,572
softlayer/softlayer-go
services/hardware.go
GetHardwareStatus
func (r Hardware_SecurityModule750) GetHardwareStatus() (resp datatypes.Hardware_Status, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getHardwareStatus", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule750) GetHardwareStatus() (resp datatypes.Hardware_Status, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getHardwareStatus", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule750", ")", "GetHardwareStatus", "(", ")", "(", "resp", "datatypes", ".", "Hardware_Status", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve A hardware's status.
[ "Retrieve", "A", "hardware", "s", "status", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L6959-L6962
6,573
softlayer/softlayer-go
services/hardware.go
GetProjectedOverBandwidthAllocationFlag
func (r Hardware_SecurityModule750) GetProjectedOverBandwidthAllocationFlag() (resp int, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getProjectedOverBandwidthAllocationFlag", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule750) GetProjectedOverBandwidthAllocationFlag() (resp int, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getProjectedOverBandwidthAllocationFlag", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule750", ")", "GetProjectedOverBandwidthAllocationFlag", "(", ")", "(", "resp", "int", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve Whether the bandwidth usage for this hardware for the current billing cycle is projected to exceed the allocation.
[ "Retrieve", "Whether", "the", "bandwidth", "usage", "for", "this", "hardware", "for", "the", "current", "billing", "cycle", "is", "projected", "to", "exceed", "the", "allocation", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L7473-L7476
6,574
softlayer/softlayer-go
services/hardware.go
GetProjectedPublicBandwidthUsage
func (r Hardware_SecurityModule750) GetProjectedPublicBandwidthUsage() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getProjectedPublicBandwidthUsage", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule750) GetProjectedPublicBandwidthUsage() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getProjectedPublicBandwidthUsage", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule750", ")", "GetProjectedPublicBandwidthUsage", "(", ")", "(", "resp", "datatypes", ".", "Float64", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The projected public outbound bandwidth for this hardware for the current billing cycle.
[ "Retrieve", "The", "projected", "public", "outbound", "bandwidth", "for", "this", "hardware", "for", "the", "current", "billing", "cycle", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L7479-L7482
6,575
softlayer/softlayer-go
services/hardware.go
GetPublicVlanByHostname
func (r Hardware_SecurityModule750) GetPublicVlanByHostname(hostname *string) (resp datatypes.Network_Vlan, err error) { params := []interface{}{ hostname, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getPublicVlanByHostname", params, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule750) GetPublicVlanByHostname(hostname *string) (resp datatypes.Network_Vlan, err error) { params := []interface{}{ hostname, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getPublicVlanByHostname", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule750", ")", "GetPublicVlanByHostname", "(", "hostname", "*", "string", ")", "(", "resp", "datatypes", ".", "Network_Vlan", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "hostname", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve the frontend network Vlan by searching the hostname of a server
[ "Retrieve", "the", "frontend", "network", "Vlan", "by", "searching", "the", "hostname", "of", "a", "server" ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L7539-L7545
6,576
softlayer/softlayer-go
services/hardware.go
GetScaleAssets
func (r Hardware_SecurityModule750) GetScaleAssets() (resp []datatypes.Scale_Asset, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getScaleAssets", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule750) GetScaleAssets() (resp []datatypes.Scale_Asset, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getScaleAssets", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule750", ")", "GetScaleAssets", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Scale_Asset", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve Collection of scale assets this hardware corresponds to.
[ "Retrieve", "Collection", "of", "scale", "assets", "this", "hardware", "corresponds", "to", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L7644-L7647
6,577
softlayer/softlayer-go
services/hardware.go
GetVirtualLicenses
func (r Hardware_SecurityModule750) GetVirtualLicenses() (resp []datatypes.Software_VirtualLicense, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getVirtualLicenses", nil, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule750) GetVirtualLicenses() (resp []datatypes.Software_VirtualLicense, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getVirtualLicenses", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule750", ")", "GetVirtualLicenses", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Software_VirtualLicense", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve Information regarding a piece of hardware's virtual software licenses.
[ "Retrieve", "Information", "regarding", "a", "piece", "of", "hardware", "s", "virtual", "software", "licenses", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L7834-L7837
6,578
softlayer/softlayer-go
services/hardware.go
MassSparePool
func (r Hardware_SecurityModule750) MassSparePool(hardwareIds []string, action *string, newOrder *bool) (resp []datatypes.Container_Hardware_Server_Request, err error) { params := []interface{}{ hardwareIds, action, newOrder, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "massSparePool", params, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule750) MassSparePool(hardwareIds []string, action *string, newOrder *bool) (resp []datatypes.Container_Hardware_Server_Request, err error) { params := []interface{}{ hardwareIds, action, newOrder, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "massSparePool", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule750", ")", "MassSparePool", "(", "hardwareIds", "[", "]", "string", ",", "action", "*", "string", ",", "newOrder", "*", "bool", ")", "(", "resp", "[", "]", "datatypes", ".", "Container_Hardware_Server_Request", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "hardwareIds", ",", "action", ",", "newOrder", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// The ability to place multiple bare metal servers in a state where they are powered down and ports closed yet still allocated to the customer as a part of the Spare Pool program.
[ "The", "ability", "to", "place", "multiple", "bare", "metal", "servers", "in", "a", "state", "where", "they", "are", "powered", "down", "and", "ports", "closed", "yet", "still", "allocated", "to", "the", "customer", "as", "a", "part", "of", "the", "Spare", "Pool", "program", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L7964-L7972
6,579
softlayer/softlayer-go
services/hardware.go
ReloadCurrentOperatingSystemConfiguration
func (r Hardware_SecurityModule750) ReloadCurrentOperatingSystemConfiguration(token *string) (resp string, err error) { params := []interface{}{ token, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "reloadCurrentOperatingSystemConfiguration", params, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule750) ReloadCurrentOperatingSystemConfiguration(token *string) (resp string, err error) { params := []interface{}{ token, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "reloadCurrentOperatingSystemConfiguration", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule750", ")", "ReloadCurrentOperatingSystemConfiguration", "(", "token", "*", "string", ")", "(", "resp", "string", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "token", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Reloads current operating system configuration. // // This service has a confirmation protocol for proceeding with the reload. To proceed with the reload without confirmation, simply pass in 'FORCE' as the token parameter. To proceed with the reload with confirmation, simply call the service with no parameter. A token string will be returned by this service. The token will remain active for 10 minutes. Use this token as the parameter to confirm that a reload is to be performed for the server. // // As a precaution, we strongly recommend backing up all data before reloading the operating system. The reload will format the primary disk and will reconfigure the server to the current specifications on record. // // The reload will take AT MINIMUM 66 minutes.
[ "Reloads", "current", "operating", "system", "configuration", ".", "This", "service", "has", "a", "confirmation", "protocol", "for", "proceeding", "with", "the", "reload", ".", "To", "proceed", "with", "the", "reload", "without", "confirmation", "simply", "pass", "in", "FORCE", "as", "the", "token", "parameter", ".", "To", "proceed", "with", "the", "reload", "with", "confirmation", "simply", "call", "the", "service", "with", "no", "parameter", ".", "A", "token", "string", "will", "be", "returned", "by", "this", "service", ".", "The", "token", "will", "remain", "active", "for", "10", "minutes", ".", "Use", "this", "token", "as", "the", "parameter", "to", "confirm", "that", "a", "reload", "is", "to", "be", "performed", "for", "the", "server", ".", "As", "a", "precaution", "we", "strongly", "recommend", "backing", "up", "all", "data", "before", "reloading", "the", "operating", "system", ".", "The", "reload", "will", "format", "the", "primary", "disk", "and", "will", "reconfigure", "the", "server", "to", "the", "current", "specifications", "on", "record", ".", "The", "reload", "will", "take", "AT", "MINIMUM", "66", "minutes", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L8033-L8039
6,580
softlayer/softlayer-go
services/hardware.go
SetOperatingSystemPassword
func (r Hardware_SecurityModule750) SetOperatingSystemPassword(newPassword *string) (resp bool, err error) { params := []interface{}{ newPassword, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "setOperatingSystemPassword", params, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule750) SetOperatingSystemPassword(newPassword *string) (resp bool, err error) { params := []interface{}{ newPassword, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "setOperatingSystemPassword", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule750", ")", "SetOperatingSystemPassword", "(", "newPassword", "*", "string", ")", "(", "resp", "bool", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "newPassword", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Changes the password that we have stored in our database for a servers' Operating System
[ "Changes", "the", "password", "that", "we", "have", "stored", "in", "our", "database", "for", "a", "servers", "Operating", "System" ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L8097-L8103
6,581
softlayer/softlayer-go
services/hardware.go
ToggleManagementInterface
func (r Hardware_SecurityModule750) ToggleManagementInterface(enabled *bool) (resp bool, err error) { params := []interface{}{ enabled, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "toggleManagementInterface", params, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule750) ToggleManagementInterface(enabled *bool) (resp bool, err error) { params := []interface{}{ enabled, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "toggleManagementInterface", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule750", ")", "ToggleManagementInterface", "(", "enabled", "*", "bool", ")", "(", "resp", "bool", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "enabled", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Attempt to toggle the IPMI interface. If there is an active transaction on the server, it will throw an exception. This method creates a transaction to toggle the interface. It is not instant.
[ "Attempt", "to", "toggle", "the", "IPMI", "interface", ".", "If", "there", "is", "an", "active", "transaction", "on", "the", "server", "it", "will", "throw", "an", "exception", ".", "This", "method", "creates", "a", "transaction", "to", "toggle", "the", "interface", ".", "It", "is", "not", "instant", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L8198-L8204
6,582
softlayer/softlayer-go
services/hardware.go
ValidatePartitionsForOperatingSystem
func (r Hardware_SecurityModule750) ValidatePartitionsForOperatingSystem(operatingSystem *datatypes.Software_Description, partitions []datatypes.Hardware_Component_Partition) (resp bool, err error) { params := []interface{}{ operatingSystem, partitions, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "validatePartitionsForOperatingSystem", params, &r.Options, &resp) return }
go
func (r Hardware_SecurityModule750) ValidatePartitionsForOperatingSystem(operatingSystem *datatypes.Software_Description, partitions []datatypes.Hardware_Component_Partition) (resp bool, err error) { params := []interface{}{ operatingSystem, partitions, } err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "validatePartitionsForOperatingSystem", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_SecurityModule750", ")", "ValidatePartitionsForOperatingSystem", "(", "operatingSystem", "*", "datatypes", ".", "Software_Description", ",", "partitions", "[", "]", "datatypes", ".", "Hardware_Component_Partition", ")", "(", "resp", "bool", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "operatingSystem", ",", "partitions", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Validates a collection of partitions for an operating system
[ "Validates", "a", "collection", "of", "partitions", "for", "an", "operating", "system" ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L8216-L8223
6,583
softlayer/softlayer-go
services/hardware.go
EditSoftwareComponentPasswords
func (r Hardware_Server) EditSoftwareComponentPasswords(softwareComponentPasswords []datatypes.Software_Component_Password) (resp bool, err error) { params := []interface{}{ softwareComponentPasswords, } err = r.Session.DoRequest("SoftLayer_Hardware_Server", "editSoftwareComponentPasswords", params, &r.Options, &resp) return }
go
func (r Hardware_Server) EditSoftwareComponentPasswords(softwareComponentPasswords []datatypes.Software_Component_Password) (resp bool, err error) { params := []interface{}{ softwareComponentPasswords, } err = r.Session.DoRequest("SoftLayer_Hardware_Server", "editSoftwareComponentPasswords", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Server", ")", "EditSoftwareComponentPasswords", "(", "softwareComponentPasswords", "[", "]", "datatypes", ".", "Software_Component_Password", ")", "(", "resp", "bool", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "softwareComponentPasswords", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Edit the properties of a software component password such as the username, password, and notes.
[ "Edit", "the", "properties", "of", "a", "software", "component", "password", "such", "as", "the", "username", "password", "and", "notes", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L8676-L8682
6,584
softlayer/softlayer-go
services/hardware.go
ExecuteRemoteScript
func (r Hardware_Server) ExecuteRemoteScript(uri *string) (err error) { var resp datatypes.Void params := []interface{}{ uri, } err = r.Session.DoRequest("SoftLayer_Hardware_Server", "executeRemoteScript", params, &r.Options, &resp) return }
go
func (r Hardware_Server) ExecuteRemoteScript(uri *string) (err error) { var resp datatypes.Void params := []interface{}{ uri, } err = r.Session.DoRequest("SoftLayer_Hardware_Server", "executeRemoteScript", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Server", ")", "ExecuteRemoteScript", "(", "uri", "*", "string", ")", "(", "err", "error", ")", "{", "var", "resp", "datatypes", ".", "Void", "\n", "params", ":=", "[", "]", "interface", "{", "}", "{", "uri", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Download and run remote script from uri on the hardware.
[ "Download", "and", "run", "remote", "script", "from", "uri", "on", "the", "hardware", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L8685-L8692
6,585
softlayer/softlayer-go
services/hardware.go
GetBandwidthForDateRange
func (r Hardware_Server) GetBandwidthForDateRange(startDate *datatypes.Time, endDate *datatypes.Time) (resp []datatypes.Metric_Tracking_Object_Data, err error) { params := []interface{}{ startDate, endDate, } err = r.Session.DoRequest("SoftLayer_Hardware_Server", "getBandwidthForDateRange", params, &r.Options, &resp) return }
go
func (r Hardware_Server) GetBandwidthForDateRange(startDate *datatypes.Time, endDate *datatypes.Time) (resp []datatypes.Metric_Tracking_Object_Data, err error) { params := []interface{}{ startDate, endDate, } err = r.Session.DoRequest("SoftLayer_Hardware_Server", "getBandwidthForDateRange", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Server", ")", "GetBandwidthForDateRange", "(", "startDate", "*", "datatypes", ".", "Time", ",", "endDate", "*", "datatypes", ".", "Time", ")", "(", "resp", "[", "]", "datatypes", ".", "Metric_Tracking_Object_Data", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "startDate", ",", "endDate", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve a collection of bandwidth data from an individual public or private network tracking object. Data is ideal if you with to employ your own traffic storage and graphing systems.
[ "Retrieve", "a", "collection", "of", "bandwidth", "data", "from", "an", "individual", "public", "or", "private", "network", "tracking", "object", ".", "Data", "is", "ideal", "if", "you", "with", "to", "employ", "your", "own", "traffic", "storage", "and", "graphing", "systems", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L8917-L8924
6,586
softlayer/softlayer-go
services/hardware.go
GetControlPanel
func (r Hardware_Server) GetControlPanel() (resp datatypes.Software_Component_ControlPanel, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Server", "getControlPanel", nil, &r.Options, &resp) return }
go
func (r Hardware_Server) GetControlPanel() (resp datatypes.Software_Component_ControlPanel, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Server", "getControlPanel", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Server", ")", "GetControlPanel", "(", ")", "(", "resp", "datatypes", ".", "Software_Component_ControlPanel", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve A server's control panel.
[ "Retrieve", "A", "server", "s", "control", "panel", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L9030-L9033
6,587
softlayer/softlayer-go
services/hardware.go
GetMonitoringUserNotification
func (r Hardware_Server) GetMonitoringUserNotification() (resp []datatypes.User_Customer_Notification_Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Server", "getMonitoringUserNotification", nil, &r.Options, &resp) return }
go
func (r Hardware_Server) GetMonitoringUserNotification() (resp []datatypes.User_Customer_Notification_Hardware, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Server", "getMonitoringUserNotification", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Server", ")", "GetMonitoringUserNotification", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "User_Customer_Notification_Hardware", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The monitoring notification objects for this hardware. Each object links this hardware instance to a user account that will be notified if monitoring on this hardware object fails
[ "Retrieve", "The", "monitoring", "notification", "objects", "for", "this", "hardware", ".", "Each", "object", "links", "this", "hardware", "instance", "to", "a", "user", "account", "that", "will", "be", "notified", "if", "monitoring", "on", "this", "hardware", "object", "fails" ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L9523-L9526
6,588
softlayer/softlayer-go
services/hardware.go
GetPublicBandwidthTotal
func (r Hardware_Server) GetPublicBandwidthTotal(startTime *int, endTime *int) (resp uint, err error) { params := []interface{}{ startTime, endTime, } err = r.Session.DoRequest("SoftLayer_Hardware_Server", "getPublicBandwidthTotal", params, &r.Options, &resp) return }
go
func (r Hardware_Server) GetPublicBandwidthTotal(startTime *int, endTime *int) (resp uint, err error) { params := []interface{}{ startTime, endTime, } err = r.Session.DoRequest("SoftLayer_Hardware_Server", "getPublicBandwidthTotal", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Server", ")", "GetPublicBandwidthTotal", "(", "startTime", "*", "int", ",", "endTime", "*", "int", ")", "(", "resp", "uint", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "startTime", ",", "endTime", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve the total number of bytes used by a server over a specified time period via the data warehouse tracking objects for this hardware.
[ "Retrieve", "the", "total", "number", "of", "bytes", "used", "by", "a", "server", "over", "a", "specified", "time", "period", "via", "the", "data", "warehouse", "tracking", "objects", "for", "this", "hardware", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L9866-L9873
6,589
softlayer/softlayer-go
services/hardware.go
GetRecentRemoteManagementCommands
func (r Hardware_Server) GetRecentRemoteManagementCommands() (resp []datatypes.Hardware_Component_RemoteManagement_Command_Request, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Server", "getRecentRemoteManagementCommands", nil, &r.Options, &resp) return }
go
func (r Hardware_Server) GetRecentRemoteManagementCommands() (resp []datatypes.Hardware_Component_RemoteManagement_Command_Request, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Server", "getRecentRemoteManagementCommands", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Server", ")", "GetRecentRemoteManagementCommands", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Hardware_Component_RemoteManagement_Command_Request", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The last five commands issued to the server's remote management card.
[ "Retrieve", "The", "last", "five", "commands", "issued", "to", "the", "server", "s", "remote", "management", "card", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L9921-L9924
6,590
softlayer/softlayer-go
services/hardware.go
GetResourceGroups
func (r Hardware_Server) GetResourceGroups() (resp []datatypes.Resource_Group, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Server", "getResourceGroups", nil, &r.Options, &resp) return }
go
func (r Hardware_Server) GetResourceGroups() (resp []datatypes.Resource_Group, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Server", "getResourceGroups", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Server", ")", "GetResourceGroups", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Resource_Group", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The resource groups in which this hardware is a member.
[ "Retrieve", "The", "resource", "groups", "in", "which", "this", "hardware", "is", "a", "member", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L9975-L9978
6,591
softlayer/softlayer-go
services/hardware.go
GetReverseDomainRecords
func (r Hardware_Server) GetReverseDomainRecords() (resp []datatypes.Dns_Domain, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Server", "getReverseDomainRecords", nil, &r.Options, &resp) return }
go
func (r Hardware_Server) GetReverseDomainRecords() (resp []datatypes.Dns_Domain, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Server", "getReverseDomainRecords", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Server", ")", "GetReverseDomainRecords", "(", ")", "(", "resp", "[", "]", "datatypes", ".", "Dns_Domain", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve the reverse domain records associated with this server.
[ "Retrieve", "the", "reverse", "domain", "records", "associated", "with", "this", "server", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L9981-L9984
6,592
softlayer/softlayer-go
services/hardware.go
RemoveAccessToNetworkStorageList
func (r Hardware_Server) RemoveAccessToNetworkStorageList(networkStorageTemplateObjects []datatypes.Network_Storage) (resp bool, err error) { params := []interface{}{ networkStorageTemplateObjects, } err = r.Session.DoRequest("SoftLayer_Hardware_Server", "removeAccessToNetworkStorageList", params, &r.Options, &resp) return }
go
func (r Hardware_Server) RemoveAccessToNetworkStorageList(networkStorageTemplateObjects []datatypes.Network_Storage) (resp bool, err error) { params := []interface{}{ networkStorageTemplateObjects, } err = r.Session.DoRequest("SoftLayer_Hardware_Server", "removeAccessToNetworkStorageList", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Server", ")", "RemoveAccessToNetworkStorageList", "(", "networkStorageTemplateObjects", "[", "]", "datatypes", ".", "Network_Storage", ")", "(", "resp", "bool", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "networkStorageTemplateObjects", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// This method is used to allow access to multiple SoftLayer_Network_Storage volumes that support host- or network-level access control.
[ "This", "method", "is", "used", "to", "allow", "access", "to", "multiple", "SoftLayer_Network_Storage", "volumes", "that", "support", "host", "-", "or", "network", "-", "level", "access", "control", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L10416-L10422
6,593
softlayer/softlayer-go
services/hardware.go
SparePool
func (r Hardware_Server) SparePool(action *string, newOrder *bool) (resp bool, err error) { params := []interface{}{ action, newOrder, } err = r.Session.DoRequest("SoftLayer_Hardware_Server", "sparePool", params, &r.Options, &resp) return }
go
func (r Hardware_Server) SparePool(action *string, newOrder *bool) (resp bool, err error) { params := []interface{}{ action, newOrder, } err = r.Session.DoRequest("SoftLayer_Hardware_Server", "sparePool", params, &r.Options, &resp) return }
[ "func", "(", "r", "Hardware_Server", ")", "SparePool", "(", "action", "*", "string", ",", "newOrder", "*", "bool", ")", "(", "resp", "bool", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "action", ",", "newOrder", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// The ability to place bare metal servers in a state where they are powered down, and ports closed yet still allocated to the customer as a part of the Spare Pool program.
[ "The", "ability", "to", "place", "bare", "metal", "servers", "in", "a", "state", "where", "they", "are", "powered", "down", "and", "ports", "closed", "yet", "still", "allocated", "to", "the", "customer", "as", "a", "part", "of", "the", "Spare", "Pool", "program", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L10537-L10544
6,594
softlayer/softlayer-go
helpers/location/location.go
GetLocationByName
func GetLocationByName(sess *session.Session, name string, args ...interface{}) (datatypes.Location, error) { var mask string if len(args) > 0 { mask = args[0].(string) } locs, err := services.GetLocationService(sess). Mask(mask). Filter(filter.New(filter.Path("name").Eq(name)).Build()). GetDatacenters() if err != nil { return datatypes.Location{}, err } // An empty filtered result set does not raise an error if len(locs) == 0 { return datatypes.Location{}, fmt.Errorf("No locations found with name of %s", name) } return locs[0], nil }
go
func GetLocationByName(sess *session.Session, name string, args ...interface{}) (datatypes.Location, error) { var mask string if len(args) > 0 { mask = args[0].(string) } locs, err := services.GetLocationService(sess). Mask(mask). Filter(filter.New(filter.Path("name").Eq(name)).Build()). GetDatacenters() if err != nil { return datatypes.Location{}, err } // An empty filtered result set does not raise an error if len(locs) == 0 { return datatypes.Location{}, fmt.Errorf("No locations found with name of %s", name) } return locs[0], nil }
[ "func", "GetLocationByName", "(", "sess", "*", "session", ".", "Session", ",", "name", "string", ",", "args", "...", "interface", "{", "}", ")", "(", "datatypes", ".", "Location", ",", "error", ")", "{", "var", "mask", "string", "\n", "if", "len", "(", "args", ")", ">", "0", "{", "mask", "=", "args", "[", "0", "]", ".", "(", "string", ")", "\n", "}", "\n\n", "locs", ",", "err", ":=", "services", ".", "GetLocationService", "(", "sess", ")", ".", "Mask", "(", "mask", ")", ".", "Filter", "(", "filter", ".", "New", "(", "filter", ".", "Path", "(", "\"", "\"", ")", ".", "Eq", "(", "name", ")", ")", ".", "Build", "(", ")", ")", ".", "GetDatacenters", "(", ")", "\n\n", "if", "err", "!=", "nil", "{", "return", "datatypes", ".", "Location", "{", "}", ",", "err", "\n", "}", "\n\n", "// An empty filtered result set does not raise an error", "if", "len", "(", "locs", ")", "==", "0", "{", "return", "datatypes", ".", "Location", "{", "}", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}", "\n\n", "return", "locs", "[", "0", "]", ",", "nil", "\n", "}" ]
// GetLocationByName returns a Location that matches the provided name, or an // error if no matching Location can be found. // // If you need to access a datacenter's unique properties, use // GetDatacenterByName instead
[ "GetLocationByName", "returns", "a", "Location", "that", "matches", "the", "provided", "name", "or", "an", "error", "if", "no", "matching", "Location", "can", "be", "found", ".", "If", "you", "need", "to", "access", "a", "datacenter", "s", "unique", "properties", "use", "GetDatacenterByName", "instead" ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/helpers/location/location.go#L33-L54
6,595
softlayer/softlayer-go
services/configuration.go
CopyTemplate
func (r Configuration_Template) CopyTemplate(templateObject *datatypes.Configuration_Template) (resp datatypes.Configuration_Template, err error) { params := []interface{}{ templateObject, } err = r.Session.DoRequest("SoftLayer_Configuration_Template", "copyTemplate", params, &r.Options, &resp) return }
go
func (r Configuration_Template) CopyTemplate(templateObject *datatypes.Configuration_Template) (resp datatypes.Configuration_Template, err error) { params := []interface{}{ templateObject, } err = r.Session.DoRequest("SoftLayer_Configuration_Template", "copyTemplate", params, &r.Options, &resp) return }
[ "func", "(", "r", "Configuration_Template", ")", "CopyTemplate", "(", "templateObject", "*", "datatypes", ".", "Configuration_Template", ")", "(", "resp", "datatypes", ".", "Configuration_Template", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "templateObject", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Copy a configuration template and returns a newly created template copy
[ "Copy", "a", "configuration", "template", "and", "returns", "a", "newly", "created", "template", "copy" ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/configuration.go#L131-L137
6,596
softlayer/softlayer-go
services/configuration.go
UpdateDefaultValues
func (r Configuration_Template) UpdateDefaultValues(configurationValues []datatypes.Configuration_Template_Section_Definition_Value) (resp bool, err error) { params := []interface{}{ configurationValues, } err = r.Session.DoRequest("SoftLayer_Configuration_Template", "updateDefaultValues", params, &r.Options, &resp) return }
go
func (r Configuration_Template) UpdateDefaultValues(configurationValues []datatypes.Configuration_Template_Section_Definition_Value) (resp bool, err error) { params := []interface{}{ configurationValues, } err = r.Session.DoRequest("SoftLayer_Configuration_Template", "updateDefaultValues", params, &r.Options, &resp) return }
[ "func", "(", "r", "Configuration_Template", ")", "UpdateDefaultValues", "(", "configurationValues", "[", "]", "datatypes", ".", "Configuration_Template_Section_Definition_Value", ")", "(", "resp", "bool", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "configurationValues", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Updates default configuration values.
[ "Updates", "default", "configuration", "values", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/configuration.go#L221-L227
6,597
softlayer/softlayer-go
services/virtual.go
GetAllocationStatus
func (r Virtual_DedicatedHost) GetAllocationStatus() (resp datatypes.Container_Virtual_DedicatedHost_AllocationStatus, err error) { err = r.Session.DoRequest("SoftLayer_Virtual_DedicatedHost", "getAllocationStatus", nil, &r.Options, &resp) return }
go
func (r Virtual_DedicatedHost) GetAllocationStatus() (resp datatypes.Container_Virtual_DedicatedHost_AllocationStatus, err error) { err = r.Session.DoRequest("SoftLayer_Virtual_DedicatedHost", "getAllocationStatus", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Virtual_DedicatedHost", ")", "GetAllocationStatus", "(", ")", "(", "resp", "datatypes", ".", "Container_Virtual_DedicatedHost_AllocationStatus", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The container that represents allocations on the dedicated host.
[ "Retrieve", "The", "container", "that", "represents", "allocations", "on", "the", "dedicated", "host", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L94-L97
6,598
softlayer/softlayer-go
services/virtual.go
GetAvailableRouters
func (r Virtual_DedicatedHost) GetAvailableRouters(dedicatedHost *datatypes.Virtual_DedicatedHost) (resp []datatypes.Hardware, err error) { params := []interface{}{ dedicatedHost, } err = r.Session.DoRequest("SoftLayer_Virtual_DedicatedHost", "getAvailableRouters", params, &r.Options, &resp) return }
go
func (r Virtual_DedicatedHost) GetAvailableRouters(dedicatedHost *datatypes.Virtual_DedicatedHost) (resp []datatypes.Hardware, err error) { params := []interface{}{ dedicatedHost, } err = r.Session.DoRequest("SoftLayer_Virtual_DedicatedHost", "getAvailableRouters", params, &r.Options, &resp) return }
[ "func", "(", "r", "Virtual_DedicatedHost", ")", "GetAvailableRouters", "(", "dedicatedHost", "*", "datatypes", ".", "Virtual_DedicatedHost", ")", "(", "resp", "[", "]", "datatypes", ".", "Hardware", ",", "err", "error", ")", "{", "params", ":=", "[", "]", "interface", "{", "}", "{", "dedicatedHost", ",", "}", "\n", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "params", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// This method will get the available backend routers to order a dedicated host.
[ "This", "method", "will", "get", "the", "available", "backend", "routers", "to", "order", "a", "dedicated", "host", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L100-L106
6,599
softlayer/softlayer-go
services/virtual.go
GetBillingItem
func (r Virtual_DedicatedHost) GetBillingItem() (resp datatypes.Billing_Item_Virtual_DedicatedHost, err error) { err = r.Session.DoRequest("SoftLayer_Virtual_DedicatedHost", "getBillingItem", nil, &r.Options, &resp) return }
go
func (r Virtual_DedicatedHost) GetBillingItem() (resp datatypes.Billing_Item_Virtual_DedicatedHost, err error) { err = r.Session.DoRequest("SoftLayer_Virtual_DedicatedHost", "getBillingItem", nil, &r.Options, &resp) return }
[ "func", "(", "r", "Virtual_DedicatedHost", ")", "GetBillingItem", "(", ")", "(", "resp", "datatypes", ".", "Billing_Item_Virtual_DedicatedHost", ",", "err", "error", ")", "{", "err", "=", "r", ".", "Session", ".", "DoRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ",", "&", "r", ".", "Options", ",", "&", "resp", ")", "\n", "return", "\n", "}" ]
// Retrieve The billing item for the dedicated host.
[ "Retrieve", "The", "billing", "item", "for", "the", "dedicated", "host", "." ]
aa510384a41b6450fa6a50e943ed32f5e838fada
https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L115-L118