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 listlengths 21 1.41k | docstring stringlengths 6 2.61k | docstring_tokens listlengths 3 215 | sha stringlengths 40 40 | url stringlengths 85 252 |
|---|---|---|---|---|---|---|---|---|---|---|---|
128,600 | 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"... | // 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 |
128,601 | 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, &... | 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, &... | [
"func",
"(",
"r",
"Hardware_Server",
")",
"GetBandwidthForDateRange",
"(",
"startDate",
"*",
"datatypes",
".",
"Time",
",",
"endDate",
"*",
"datatypes",
".",
"Time",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Metric_Tracking_Object_Data",
",",
"err",
"erro... | // 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",
"gr... | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L8917-L8924 |
128,602 | 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",
"(",
"\"",
"\"",
",",
"\"",
"\"",
"... | // 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 |
128,603 | 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",
"(",
"\"",
... | // 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",
... | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L9523-L9526 |
128,604 | 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",
"... | // 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 |
128,605 | 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... | // 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 |
128,606 | 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",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",... | // 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 |
128,607 | 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",
"(",
"\"",
"\"",
",",
"\"",
"\"",
... | // 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 |
128,608 | 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, &res... | 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, &res... | [
"func",
"(",
"r",
"Hardware_Server",
")",
"RemoveAccessToNetworkStorageList",
"(",
"networkStorageTemplateObjects",
"[",
"]",
"datatypes",
".",
"Network_Storage",
")",
"(",
"resp",
"bool",
",",
"err",
"error",
")",
"{",
"params",
":=",
"[",
"]",
"interface",
"{"... | // 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 |
128,609 | 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... | // 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",
"... | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/hardware.go#L10537-L10544 |
128,610 | 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()
... | 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()
... | [
"func",
"GetLocationByName",
"(",
"sess",
"*",
"session",
".",
"Session",
",",
"name",
"string",
",",
"args",
"...",
"interface",
"{",
"}",
")",
"(",
"datatypes",
".",
"Location",
",",
"error",
")",
"{",
"var",
"mask",
"string",
"\n",
"if",
"len",
"(",... | // 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",
"propert... | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/helpers/location/location.go#L33-L54 |
128,611 | 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",
":=",
"[",
"]",
"inter... | // 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 |
128,612 | 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, &res... | 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, &res... | [
"func",
"(",
"r",
"Configuration_Template",
")",
"UpdateDefaultValues",
"(",
"configurationValues",
"[",
"]",
"datatypes",
".",
"Configuration_Template_Section_Definition_Value",
")",
"(",
"resp",
"bool",
",",
"err",
"error",
")",
"{",
"params",
":=",
"[",
"]",
"i... | // Updates default configuration values. | [
"Updates",
"default",
"configuration",
"values",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/configuration.go#L221-L227 |
128,613 | 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",
"(",
"\"",
"\"",... | // 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 |
128,614 | 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",
":=",
"[",
"]",
"i... | // 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 |
128,615 | 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",
"(",
"\"",
"\"",
",",
"\"",
"... | // 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 |
128,616 | softlayer/softlayer-go | services/virtual.go | GetPciDeviceAllocationStatus | func (r Virtual_DedicatedHost) GetPciDeviceAllocationStatus() (resp datatypes.Container_Virtual_DedicatedHost_Pci_Device_AllocationStatus, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_DedicatedHost", "getPciDeviceAllocationStatus", nil, &r.Options, &resp)
return
} | go | func (r Virtual_DedicatedHost) GetPciDeviceAllocationStatus() (resp datatypes.Container_Virtual_DedicatedHost_Pci_Device_AllocationStatus, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_DedicatedHost", "getPciDeviceAllocationStatus", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_DedicatedHost",
")",
"GetPciDeviceAllocationStatus",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Container_Virtual_DedicatedHost_Pci_Device_AllocationStatus",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
... | // Retrieve The container that represents PCI device allocations on the dedicated host. | [
"Retrieve",
"The",
"container",
"that",
"represents",
"PCI",
"device",
"allocations",
"on",
"the",
"dedicated",
"host",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L145-L148 |
128,617 | softlayer/softlayer-go | services/virtual.go | GetPciDevices | func (r Virtual_DedicatedHost) GetPciDevices() (resp []datatypes.Virtual_Host_PciDevice, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_DedicatedHost", "getPciDevices", nil, &r.Options, &resp)
return
} | go | func (r Virtual_DedicatedHost) GetPciDevices() (resp []datatypes.Virtual_Host_PciDevice, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_DedicatedHost", "getPciDevices", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_DedicatedHost",
")",
"GetPciDevices",
"(",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Virtual_Host_PciDevice",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
... | // Retrieve A collection of SoftLayer_Virtual_Host_PciDevice objects on the host. | [
"Retrieve",
"A",
"collection",
"of",
"SoftLayer_Virtual_Host_PciDevice",
"objects",
"on",
"the",
"host",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L151-L154 |
128,618 | softlayer/softlayer-go | services/virtual.go | GetBillingItem | func (r Virtual_Disk_Image) GetBillingItem() (resp datatypes.Billing_Item_Virtual_Disk_Image, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Disk_Image", "getBillingItem", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Disk_Image) GetBillingItem() (resp datatypes.Billing_Item_Virtual_Disk_Image, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Disk_Image", "getBillingItem", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Disk_Image",
")",
"GetBillingItem",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Billing_Item_Virtual_Disk_Image",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
... | // Retrieve The billing item for a virtual disk image. | [
"Retrieve",
"The",
"billing",
"item",
"for",
"a",
"virtual",
"disk",
"image",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L229-L232 |
128,619 | softlayer/softlayer-go | services/virtual.go | GetBlockDevices | func (r Virtual_Disk_Image) GetBlockDevices() (resp []datatypes.Virtual_Guest_Block_Device, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Disk_Image", "getBlockDevices", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Disk_Image) GetBlockDevices() (resp []datatypes.Virtual_Guest_Block_Device, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Disk_Image", "getBlockDevices", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Disk_Image",
")",
"GetBlockDevices",
"(",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Virtual_Guest_Block_Device",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",... | // Retrieve The block devices that a disk image is attached to. Block devices connect computing instances to disk images. | [
"Retrieve",
"The",
"block",
"devices",
"that",
"a",
"disk",
"image",
"is",
"attached",
"to",
".",
"Block",
"devices",
"connect",
"computing",
"instances",
"to",
"disk",
"images",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L235-L238 |
128,620 | softlayer/softlayer-go | services/virtual.go | GetImportedDiskType | func (r Virtual_Disk_Image) GetImportedDiskType() (resp string, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Disk_Image", "getImportedDiskType", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Disk_Image) GetImportedDiskType() (resp string, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Disk_Image", "getImportedDiskType", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Disk_Image",
")",
"GetImportedDiskType",
"(",
")",
"(",
"resp",
"string",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
"nil",
",",
"&",
"r",
".",... | // Retrieve Return imported disk type | [
"Retrieve",
"Return",
"imported",
"disk",
"type"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L259-L262 |
128,621 | softlayer/softlayer-go | services/virtual.go | GetSoftwareReferences | func (r Virtual_Disk_Image) GetSoftwareReferences() (resp []datatypes.Virtual_Disk_Image_Software, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Disk_Image", "getSoftwareReferences", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Disk_Image) GetSoftwareReferences() (resp []datatypes.Virtual_Disk_Image_Software, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Disk_Image", "getSoftwareReferences", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Disk_Image",
")",
"GetSoftwareReferences",
"(",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Virtual_Disk_Image_Software",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
... | // Retrieve References to the software that resides on a disk image. | [
"Retrieve",
"References",
"to",
"the",
"software",
"that",
"resides",
"on",
"a",
"disk",
"image",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L295-L298 |
128,622 | softlayer/softlayer-go | services/virtual.go | GetStorageRepositoryType | func (r Virtual_Disk_Image) GetStorageRepositoryType() (resp datatypes.Virtual_Storage_Repository_Type, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Disk_Image", "getStorageRepositoryType", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Disk_Image) GetStorageRepositoryType() (resp datatypes.Virtual_Storage_Repository_Type, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Disk_Image", "getStorageRepositoryType", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Disk_Image",
")",
"GetStorageRepositoryType",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Virtual_Storage_Repository_Type",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",... | // Retrieve The type of storage repository that a disk image resides in. | [
"Retrieve",
"The",
"type",
"of",
"storage",
"repository",
"that",
"a",
"disk",
"image",
"resides",
"in",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L313-L316 |
128,623 | softlayer/softlayer-go | services/virtual.go | GetType | func (r Virtual_Disk_Image) GetType() (resp datatypes.Virtual_Disk_Image_Type, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Disk_Image", "getType", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Disk_Image) GetType() (resp datatypes.Virtual_Disk_Image_Type, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Disk_Image", "getType", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Disk_Image",
")",
"GetType",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Virtual_Disk_Image_Type",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
"nil",
... | // Retrieve A virtual disk image's type. | [
"Retrieve",
"A",
"virtual",
"disk",
"image",
"s",
"type",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L325-L328 |
128,624 | softlayer/softlayer-go | services/virtual.go | CaptureImage | func (r Virtual_Guest) CaptureImage(captureTemplate *datatypes.Container_Disk_Image_Capture_Template) (resp datatypes.Virtual_Guest_Block_Device_Template_Group, err error) {
params := []interface{}{
captureTemplate,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "captureImage", params, &r.Options, &resp)
... | go | func (r Virtual_Guest) CaptureImage(captureTemplate *datatypes.Container_Disk_Image_Capture_Template) (resp datatypes.Virtual_Guest_Block_Device_Template_Group, err error) {
params := []interface{}{
captureTemplate,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "captureImage", params, &r.Options, &resp)
... | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"CaptureImage",
"(",
"captureTemplate",
"*",
"datatypes",
".",
"Container_Disk_Image_Capture_Template",
")",
"(",
"resp",
"datatypes",
".",
"Virtual_Guest_Block_Device_Template_Group",
",",
"err",
"error",
")",
"{",
"params",
":... | // Captures a Flex Image of the hard disk on the virtual machine, based on the capture template parameter. Returns the image template group containing the disk image. | [
"Captures",
"a",
"Flex",
"Image",
"of",
"the",
"hard",
"disk",
"on",
"the",
"virtual",
"machine",
"based",
"on",
"the",
"capture",
"template",
"parameter",
".",
"Returns",
"the",
"image",
"template",
"group",
"containing",
"the",
"disk",
"image",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L421-L427 |
128,625 | softlayer/softlayer-go | services/virtual.go | CloseAlarm | func (r Virtual_Guest) CloseAlarm(alarmId *string) (resp bool, err error) {
params := []interface{}{
alarmId,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "closeAlarm", params, &r.Options, &resp)
return
} | go | func (r Virtual_Guest) CloseAlarm(alarmId *string) (resp bool, err error) {
params := []interface{}{
alarmId,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "closeAlarm", params, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"CloseAlarm",
"(",
"alarmId",
"*",
"string",
")",
"(",
"resp",
"bool",
",",
"err",
"error",
")",
"{",
"params",
":=",
"[",
"]",
"interface",
"{",
"}",
"{",
"alarmId",
",",
"}",
"\n",
"err",
"=",
"r",
".",
"... | // Returns monitoring alarm detailed history | [
"Returns",
"monitoring",
"alarm",
"detailed",
"history"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L439-L445 |
128,626 | softlayer/softlayer-go | services/virtual.go | CreateArchiveTransaction | func (r Virtual_Guest) CreateArchiveTransaction(groupName *string, blockDevices []datatypes.Virtual_Guest_Block_Device, note *string) (resp datatypes.Provisioning_Version1_Transaction, err error) {
params := []interface{}{
groupName,
blockDevices,
note,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "c... | go | func (r Virtual_Guest) CreateArchiveTransaction(groupName *string, blockDevices []datatypes.Virtual_Guest_Block_Device, note *string) (resp datatypes.Provisioning_Version1_Transaction, err error) {
params := []interface{}{
groupName,
blockDevices,
note,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "c... | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"CreateArchiveTransaction",
"(",
"groupName",
"*",
"string",
",",
"blockDevices",
"[",
"]",
"datatypes",
".",
"Virtual_Guest_Block_Device",
",",
"note",
"*",
"string",
")",
"(",
"resp",
"datatypes",
".",
"Provisioning_Versio... | // Create a transaction to archive a computing instance's block devices | [
"Create",
"a",
"transaction",
"to",
"archive",
"a",
"computing",
"instance",
"s",
"block",
"devices"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L456-L464 |
128,627 | softlayer/softlayer-go | services/virtual.go | GetAdditionalRequiredPricesForOsReload | func (r Virtual_Guest) GetAdditionalRequiredPricesForOsReload(config *datatypes.Container_Hardware_Server_Configuration) (resp []datatypes.Product_Item_Price, err error) {
params := []interface{}{
config,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getAdditionalRequiredPricesForOsReload", params, &r.Op... | go | func (r Virtual_Guest) GetAdditionalRequiredPricesForOsReload(config *datatypes.Container_Hardware_Server_Configuration) (resp []datatypes.Product_Item_Price, err error) {
params := []interface{}{
config,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getAdditionalRequiredPricesForOsReload", params, &r.Op... | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetAdditionalRequiredPricesForOsReload",
"(",
"config",
"*",
"datatypes",
".",
"Container_Hardware_Server_Configuration",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Product_Item_Price",
",",
"err",
"error",
")",
"{",
"par... | // Return a collection of SoftLayer_Item_Price objects for an OS reload | [
"Return",
"a",
"collection",
"of",
"SoftLayer_Item_Price",
"objects",
"for",
"an",
"OS",
"reload"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1034-L1040 |
128,628 | softlayer/softlayer-go | services/virtual.go | GetAllowedHost | func (r Virtual_Guest) GetAllowedHost() (resp datatypes.Network_Storage_Allowed_Host, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getAllowedHost", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest) GetAllowedHost() (resp datatypes.Network_Storage_Allowed_Host, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getAllowedHost", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetAllowedHost",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Network_Storage_Allowed_Host",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
... | // Retrieve The SoftLayer_Network_Storage_Allowed_Host information to connect this Virtual Guest to Network Storage volumes that require access control lists. | [
"Retrieve",
"The",
"SoftLayer_Network_Storage_Allowed_Host",
"information",
"to",
"connect",
"this",
"Virtual",
"Guest",
"to",
"Network",
"Storage",
"volumes",
"that",
"require",
"access",
"control",
"lists",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1054-L1057 |
128,629 | softlayer/softlayer-go | services/virtual.go | GetBandwidthDataByDate | func (r Virtual_Guest) GetBandwidthDataByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time, networkType *string) (resp []datatypes.Metric_Tracking_Object_Data, err error) {
params := []interface{}{
startDateTime,
endDateTime,
networkType,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "ge... | go | func (r Virtual_Guest) GetBandwidthDataByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time, networkType *string) (resp []datatypes.Metric_Tracking_Object_Data, err error) {
params := []interface{}{
startDateTime,
endDateTime,
networkType,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "ge... | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetBandwidthDataByDate",
"(",
"startDateTime",
"*",
"datatypes",
".",
"Time",
",",
"endDateTime",
"*",
"datatypes",
".",
"Time",
",",
"networkType",
"*",
"string",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Metric... | // Use this method when needing the metric data for bandwidth for a single guest. It will gather the correct input parameters based on the date ranges | [
"Use",
"this",
"method",
"when",
"needing",
"the",
"metric",
"data",
"for",
"bandwidth",
"for",
"a",
"single",
"guest",
".",
"It",
"will",
"gather",
"the",
"correct",
"input",
"parameters",
"based",
"on",
"the",
"date",
"ranges"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1156-L1164 |
128,630 | softlayer/softlayer-go | services/virtual.go | GetBillingItem | func (r Virtual_Guest) GetBillingItem() (resp datatypes.Billing_Item_Virtual_Guest, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getBillingItem", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest) GetBillingItem() (resp datatypes.Billing_Item_Virtual_Guest, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getBillingItem", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetBillingItem",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Billing_Item_Virtual_Guest",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
"n... | // Retrieve The billing item for a CloudLayer Compute Instance. | [
"Retrieve",
"The",
"billing",
"item",
"for",
"a",
"CloudLayer",
"Compute",
"Instance",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1230-L1233 |
128,631 | softlayer/softlayer-go | services/virtual.go | GetBlockDeviceTemplateGroup | func (r Virtual_Guest) GetBlockDeviceTemplateGroup() (resp datatypes.Virtual_Guest_Block_Device_Template_Group, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getBlockDeviceTemplateGroup", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest) GetBlockDeviceTemplateGroup() (resp datatypes.Virtual_Guest_Block_Device_Template_Group, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getBlockDeviceTemplateGroup", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetBlockDeviceTemplateGroup",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Virtual_Guest_Block_Device_Template_Group",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",... | // Retrieve The global identifier for the image template that was used to provision or reload a guest. | [
"Retrieve",
"The",
"global",
"identifier",
"for",
"the",
"image",
"template",
"that",
"was",
"used",
"to",
"provision",
"or",
"reload",
"a",
"guest",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1242-L1245 |
128,632 | softlayer/softlayer-go | services/virtual.go | GetConsoleAccessLog | func (r Virtual_Guest) GetConsoleAccessLog() (resp []datatypes.Network_Logging_Syslog, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getConsoleAccessLog", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest) GetConsoleAccessLog() (resp []datatypes.Network_Logging_Syslog, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getConsoleAccessLog", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetConsoleAccessLog",
"(",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Network_Logging_Syslog",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\... | // Gets the console access logs for a computing instance | [
"Gets",
"the",
"console",
"access",
"logs",
"for",
"a",
"computing",
"instance"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1266-L1269 |
128,633 | softlayer/softlayer-go | services/virtual.go | GetConsoleIpAddressRecord | func (r Virtual_Guest) GetConsoleIpAddressRecord() (resp datatypes.Virtual_Guest_Network_Component_IpAddress, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getConsoleIpAddressRecord", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest) GetConsoleIpAddressRecord() (resp datatypes.Virtual_Guest_Network_Component_IpAddress, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getConsoleIpAddressRecord", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetConsoleIpAddressRecord",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Virtual_Guest_Network_Component_IpAddress",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
... | // Retrieve A record containing information about a computing instance's console IP and port number. | [
"Retrieve",
"A",
"record",
"containing",
"information",
"about",
"a",
"computing",
"instance",
"s",
"console",
"IP",
"and",
"port",
"number",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1278-L1281 |
128,634 | softlayer/softlayer-go | services/virtual.go | GetCpuMetricDataByDate | func (r Virtual_Guest) GetCpuMetricDataByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time, cpuIndexes []int) (resp []datatypes.Metric_Tracking_Object_Data, err error) {
params := []interface{}{
startDateTime,
endDateTime,
cpuIndexes,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getCpu... | go | func (r Virtual_Guest) GetCpuMetricDataByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time, cpuIndexes []int) (resp []datatypes.Metric_Tracking_Object_Data, err error) {
params := []interface{}{
startDateTime,
endDateTime,
cpuIndexes,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getCpu... | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetCpuMetricDataByDate",
"(",
"startDateTime",
"*",
"datatypes",
".",
"Time",
",",
"endDateTime",
"*",
"datatypes",
".",
"Time",
",",
"cpuIndexes",
"[",
"]",
"int",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Met... | // Use this method when needing the metric data for a single guest's CPUs. It will gather the correct input parameters based on the date ranges | [
"Use",
"this",
"method",
"when",
"needing",
"the",
"metric",
"data",
"for",
"a",
"single",
"guest",
"s",
"CPUs",
".",
"It",
"will",
"gather",
"the",
"correct",
"input",
"parameters",
"based",
"on",
"the",
"date",
"ranges"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1302-L1310 |
128,635 | softlayer/softlayer-go | services/virtual.go | GetCpuMetricImageByDate | func (r Virtual_Guest) GetCpuMetricImageByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time, cpuIndexes []int) (resp datatypes.Container_Bandwidth_GraphOutputs, err error) {
params := []interface{}{
startDateTime,
endDateTime,
cpuIndexes,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "ge... | go | func (r Virtual_Guest) GetCpuMetricImageByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time, cpuIndexes []int) (resp datatypes.Container_Bandwidth_GraphOutputs, err error) {
params := []interface{}{
startDateTime,
endDateTime,
cpuIndexes,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "ge... | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetCpuMetricImageByDate",
"(",
"startDateTime",
"*",
"datatypes",
".",
"Time",
",",
"endDateTime",
"*",
"datatypes",
".",
"Time",
",",
"cpuIndexes",
"[",
"]",
"int",
")",
"(",
"resp",
"datatypes",
".",
"Container_Bandwi... | // Use this method when needing a CPU usage image for a single guest. It will gather the correct input parameters for the generic graphing utility based on the date ranges | [
"Use",
"this",
"method",
"when",
"needing",
"a",
"CPU",
"usage",
"image",
"for",
"a",
"single",
"guest",
".",
"It",
"will",
"gather",
"the",
"correct",
"input",
"parameters",
"for",
"the",
"generic",
"graphing",
"utility",
"based",
"on",
"the",
"date",
"ra... | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1323-L1331 |
128,636 | softlayer/softlayer-go | services/virtual.go | GetCurrentBandwidthSummary | func (r Virtual_Guest) GetCurrentBandwidthSummary() (resp datatypes.Metric_Tracking_Object_Bandwidth_Summary, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getCurrentBandwidthSummary", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest) GetCurrentBandwidthSummary() (resp datatypes.Metric_Tracking_Object_Bandwidth_Summary, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getCurrentBandwidthSummary", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetCurrentBandwidthSummary",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Metric_Tracking_Object_Bandwidth_Summary",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
... | // Retrieve An object that provides commonly used bandwidth summary components for the current billing cycle. | [
"Retrieve",
"An",
"object",
"that",
"provides",
"commonly",
"used",
"bandwidth",
"summary",
"components",
"for",
"the",
"current",
"billing",
"cycle",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1344-L1347 |
128,637 | softlayer/softlayer-go | services/virtual.go | GetLastKnownPowerState | func (r Virtual_Guest) GetLastKnownPowerState() (resp datatypes.Virtual_Guest_Power_State, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getLastKnownPowerState", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest) GetLastKnownPowerState() (resp datatypes.Virtual_Guest_Power_State, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getLastKnownPowerState", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetLastKnownPowerState",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Virtual_Guest_Power_State",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",... | // Retrieve The last known power state of a virtual guest in the event the guest is turned off outside of IMS or has gone offline. | [
"Retrieve",
"The",
"last",
"known",
"power",
"state",
"of",
"a",
"virtual",
"guest",
"in",
"the",
"event",
"the",
"guest",
"is",
"turned",
"off",
"outside",
"of",
"IMS",
"or",
"has",
"gone",
"offline",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1499-L1502 |
128,638 | softlayer/softlayer-go | services/virtual.go | GetMemoryMetricDataByDate | func (r Virtual_Guest) GetMemoryMetricDataByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp []datatypes.Metric_Tracking_Object_Data, err error) {
params := []interface{}{
startDateTime,
endDateTime,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getMemoryMetricDataByDate", params,... | go | func (r Virtual_Guest) GetMemoryMetricDataByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp []datatypes.Metric_Tracking_Object_Data, err error) {
params := []interface{}{
startDateTime,
endDateTime,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getMemoryMetricDataByDate", params,... | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetMemoryMetricDataByDate",
"(",
"startDateTime",
"*",
"datatypes",
".",
"Time",
",",
"endDateTime",
"*",
"datatypes",
".",
"Time",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Metric_Tracking_Object_Data",
",",
"err",
... | // Use this method when needing the metric data for memory for a single computing instance. | [
"Use",
"this",
"method",
"when",
"needing",
"the",
"metric",
"data",
"for",
"memory",
"for",
"a",
"single",
"computing",
"instance",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1541-L1548 |
128,639 | softlayer/softlayer-go | services/virtual.go | GetMemoryMetricImage | func (r Virtual_Guest) GetMemoryMetricImage(snapshotRange *string, dateSpecified *datatypes.Time) (resp datatypes.Container_Bandwidth_GraphOutputs, err error) {
params := []interface{}{
snapshotRange,
dateSpecified,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getMemoryMetricImage", params, &r.Options... | go | func (r Virtual_Guest) GetMemoryMetricImage(snapshotRange *string, dateSpecified *datatypes.Time) (resp datatypes.Container_Bandwidth_GraphOutputs, err error) {
params := []interface{}{
snapshotRange,
dateSpecified,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getMemoryMetricImage", params, &r.Options... | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetMemoryMetricImage",
"(",
"snapshotRange",
"*",
"string",
",",
"dateSpecified",
"*",
"datatypes",
".",
"Time",
")",
"(",
"resp",
"datatypes",
".",
"Container_Bandwidth_GraphOutputs",
",",
"err",
"error",
")",
"{",
"para... | // Use this method when needing a memory usage image for a single guest. It will gather the correct input parameters for the generic graphing utility automatically based on the snapshot specified. | [
"Use",
"this",
"method",
"when",
"needing",
"a",
"memory",
"usage",
"image",
"for",
"a",
"single",
"guest",
".",
"It",
"will",
"gather",
"the",
"correct",
"input",
"parameters",
"for",
"the",
"generic",
"graphing",
"utility",
"automatically",
"based",
"on",
... | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1551-L1558 |
128,640 | softlayer/softlayer-go | services/virtual.go | GetMemoryMetricImageByDate | func (r Virtual_Guest) GetMemoryMetricImageByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp datatypes.Container_Bandwidth_GraphOutputs, err error) {
params := []interface{}{
startDateTime,
endDateTime,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getMemoryMetricImageByDate", pa... | go | func (r Virtual_Guest) GetMemoryMetricImageByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp datatypes.Container_Bandwidth_GraphOutputs, err error) {
params := []interface{}{
startDateTime,
endDateTime,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getMemoryMetricImageByDate", pa... | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetMemoryMetricImageByDate",
"(",
"startDateTime",
"*",
"datatypes",
".",
"Time",
",",
"endDateTime",
"*",
"datatypes",
".",
"Time",
")",
"(",
"resp",
"datatypes",
".",
"Container_Bandwidth_GraphOutputs",
",",
"err",
"error... | // Use this method when needing a image displaying the amount of memory used over time for a single computing instance. It will gather the correct input parameters for the generic graphing utility based on the date ranges | [
"Use",
"this",
"method",
"when",
"needing",
"a",
"image",
"displaying",
"the",
"amount",
"of",
"memory",
"used",
"over",
"time",
"for",
"a",
"single",
"computing",
"instance",
".",
"It",
"will",
"gather",
"the",
"correct",
"input",
"parameters",
"for",
"the"... | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1561-L1568 |
128,641 | softlayer/softlayer-go | services/virtual.go | GetOperatingSystem | func (r Virtual_Guest) GetOperatingSystem() (resp datatypes.Software_Component_OperatingSystem, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getOperatingSystem", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest) GetOperatingSystem() (resp datatypes.Software_Component_OperatingSystem, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getOperatingSystem", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetOperatingSystem",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Software_Component_OperatingSystem",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",... | // Retrieve A guest's operating system. | [
"Retrieve",
"A",
"guest",
"s",
"operating",
"system",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1687-L1690 |
128,642 | softlayer/softlayer-go | services/virtual.go | GetRecentMetricData | func (r Virtual_Guest) GetRecentMetricData(time *uint) (resp []datatypes.Metric_Tracking_Object, err error) {
params := []interface{}{
time,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getRecentMetricData", params, &r.Options, &resp)
return
} | go | func (r Virtual_Guest) GetRecentMetricData(time *uint) (resp []datatypes.Metric_Tracking_Object, err error) {
params := []interface{}{
time,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getRecentMetricData", params, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetRecentMetricData",
"(",
"time",
"*",
"uint",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Metric_Tracking_Object",
",",
"err",
"error",
")",
"{",
"params",
":=",
"[",
"]",
"interface",
"{",
"}",
"{",
"time",
... | // Recent metric data for a guest | [
"Recent",
"metric",
"data",
"for",
"a",
"guest"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1805-L1811 |
128,643 | softlayer/softlayer-go | services/virtual.go | GetRegionalGroup | func (r Virtual_Guest) GetRegionalGroup() (resp datatypes.Location_Group_Regional, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getRegionalGroup", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest) GetRegionalGroup() (resp datatypes.Location_Group_Regional, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getRegionalGroup", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetRegionalGroup",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Location_Group_Regional",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
"ni... | // Retrieve The regional group this guest is in. | [
"Retrieve",
"The",
"regional",
"group",
"this",
"guest",
"is",
"in",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1814-L1817 |
128,644 | softlayer/softlayer-go | services/virtual.go | GetStatus | func (r Virtual_Guest) GetStatus() (resp datatypes.Virtual_Guest_Status, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getStatus", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest) GetStatus() (resp datatypes.Virtual_Guest_Status, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getStatus", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetStatus",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Virtual_Guest_Status",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
"nil",
",",... | // Retrieve A computing instance's status. | [
"Retrieve",
"A",
"computing",
"instance",
"s",
"status",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1916-L1919 |
128,645 | softlayer/softlayer-go | services/virtual.go | GetType | func (r Virtual_Guest) GetType() (resp datatypes.Virtual_Guest_Type, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getType", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest) GetType() (resp datatypes.Virtual_Guest_Type, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getType", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetType",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Virtual_Guest_Type",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
"nil",
",",
"... | // Retrieve The type of this virtual guest. | [
"Retrieve",
"The",
"type",
"of",
"this",
"virtual",
"guest",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1940-L1943 |
128,646 | softlayer/softlayer-go | services/virtual.go | GetUserData | func (r Virtual_Guest) GetUserData() (resp []datatypes.Virtual_Guest_Attribute, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getUserData", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest) GetUserData() (resp []datatypes.Virtual_Guest_Attribute, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getUserData", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetUserData",
"(",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Virtual_Guest_Attribute",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
"... | // Retrieve A base64 encoded string containing custom user data for a Cloud Computing Instance order. | [
"Retrieve",
"A",
"base64",
"encoded",
"string",
"containing",
"custom",
"user",
"data",
"for",
"a",
"Cloud",
"Computing",
"Instance",
"order",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1963-L1966 |
128,647 | softlayer/softlayer-go | services/virtual.go | GetValidBlockDeviceTemplateGroups | func (r Virtual_Guest) GetValidBlockDeviceTemplateGroups(visibility *string) (resp []datatypes.Virtual_Guest_Block_Device_Template_Group, err error) {
params := []interface{}{
visibility,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getValidBlockDeviceTemplateGroups", params, &r.Options, &resp)
return
... | go | func (r Virtual_Guest) GetValidBlockDeviceTemplateGroups(visibility *string) (resp []datatypes.Virtual_Guest_Block_Device_Template_Group, err error) {
params := []interface{}{
visibility,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "getValidBlockDeviceTemplateGroups", params, &r.Options, &resp)
return
... | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"GetValidBlockDeviceTemplateGroups",
"(",
"visibility",
"*",
"string",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Virtual_Guest_Block_Device_Template_Group",
",",
"err",
"error",
")",
"{",
"params",
":=",
"[",
"]",
"in... | // This method will return the list of block device template groups that are valid to the host. For instance, it will validate that the template groups returned are compatible with the size and number of disks on the host. | [
"This",
"method",
"will",
"return",
"the",
"list",
"of",
"block",
"device",
"template",
"groups",
"that",
"are",
"valid",
"to",
"the",
"host",
".",
"For",
"instance",
"it",
"will",
"validate",
"that",
"the",
"template",
"groups",
"returned",
"are",
"compatib... | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L1975-L1981 |
128,648 | softlayer/softlayer-go | services/virtual.go | MigrateDedicatedHost | func (r Virtual_Guest) MigrateDedicatedHost(destinationHostId *int) (err error) {
var resp datatypes.Void
params := []interface{}{
destinationHostId,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "migrateDedicatedHost", params, &r.Options, &resp)
return
} | go | func (r Virtual_Guest) MigrateDedicatedHost(destinationHostId *int) (err error) {
var resp datatypes.Void
params := []interface{}{
destinationHostId,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "migrateDedicatedHost", params, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"MigrateDedicatedHost",
"(",
"destinationHostId",
"*",
"int",
")",
"(",
"err",
"error",
")",
"{",
"var",
"resp",
"datatypes",
".",
"Void",
"\n",
"params",
":=",
"[",
"]",
"interface",
"{",
"}",
"{",
"destinationHostI... | // Create a transaction to migrate an instance from one dedicated host to another dedicated host | [
"Create",
"a",
"transaction",
"to",
"migrate",
"an",
"instance",
"from",
"one",
"dedicated",
"host",
"to",
"another",
"dedicated",
"host"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2027-L2034 |
128,649 | softlayer/softlayer-go | services/virtual.go | ValidateImageTemplate | func (r Virtual_Guest) ValidateImageTemplate(imageTemplateId *int) (resp bool, err error) {
params := []interface{}{
imageTemplateId,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "validateImageTemplate", params, &r.Options, &resp)
return
} | go | func (r Virtual_Guest) ValidateImageTemplate(imageTemplateId *int) (resp bool, err error) {
params := []interface{}{
imageTemplateId,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "validateImageTemplate", params, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"ValidateImageTemplate",
"(",
"imageTemplateId",
"*",
"int",
")",
"(",
"resp",
"bool",
",",
"err",
"error",
")",
"{",
"params",
":=",
"[",
"]",
"interface",
"{",
"}",
"{",
"imageTemplateId",
",",
"}",
"\n",
"err",
... | // Validate an image template for OS Reload | [
"Validate",
"an",
"image",
"template",
"for",
"OS",
"Reload"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2225-L2231 |
128,650 | softlayer/softlayer-go | services/virtual.go | VerifyReloadOperatingSystem | func (r Virtual_Guest) VerifyReloadOperatingSystem(config *datatypes.Container_Hardware_Server_Configuration) (resp bool, err error) {
params := []interface{}{
config,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "verifyReloadOperatingSystem", params, &r.Options, &resp)
return
} | go | func (r Virtual_Guest) VerifyReloadOperatingSystem(config *datatypes.Container_Hardware_Server_Configuration) (resp bool, err error) {
params := []interface{}{
config,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest", "verifyReloadOperatingSystem", params, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest",
")",
"VerifyReloadOperatingSystem",
"(",
"config",
"*",
"datatypes",
".",
"Container_Hardware_Server_Configuration",
")",
"(",
"resp",
"bool",
",",
"err",
"error",
")",
"{",
"params",
":=",
"[",
"]",
"interface",
"{",
"}",
"{... | // Verify that a virtual server can go through the operating system reload process. It may be useful to call this method before attempting to actually reload the operating system just to verify that the reload will go smoothly. If the server configuration is not setup correctly or there is some other issue, an exceptio... | [
"Verify",
"that",
"a",
"virtual",
"server",
"can",
"go",
"through",
"the",
"operating",
"system",
"reload",
"process",
".",
"It",
"may",
"be",
"useful",
"to",
"call",
"this",
"method",
"before",
"attempting",
"to",
"actually",
"reload",
"the",
"operating",
"... | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2234-L2240 |
128,651 | softlayer/softlayer-go | services/virtual.go | AddSupportedBootMode | func (r Virtual_Guest_Block_Device_Template_Group) AddSupportedBootMode(bootMode *string) (resp bool, err error) {
params := []interface{}{
bootMode,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "addSupportedBootMode", params, &r.Options, &resp)
return
} | go | func (r Virtual_Guest_Block_Device_Template_Group) AddSupportedBootMode(bootMode *string) (resp bool, err error) {
params := []interface{}{
bootMode,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "addSupportedBootMode", params, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest_Block_Device_Template_Group",
")",
"AddSupportedBootMode",
"(",
"bootMode",
"*",
"string",
")",
"(",
"resp",
"bool",
",",
"err",
"error",
")",
"{",
"params",
":=",
"[",
"]",
"interface",
"{",
"}",
"{",
"bootMode",
",",
"}",
... | // This method allows you to mark this image's supported boot modes as 'HVM' or 'PV'. | [
"This",
"method",
"allows",
"you",
"to",
"mark",
"this",
"image",
"s",
"supported",
"boot",
"modes",
"as",
"HVM",
"or",
"PV",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2306-L2312 |
128,652 | softlayer/softlayer-go | services/virtual.go | CreateFromIcos | func (r Virtual_Guest_Block_Device_Template_Group) CreateFromIcos(configuration *datatypes.Container_Virtual_Guest_Block_Device_Template_Configuration) (resp datatypes.Virtual_Guest_Block_Device_Template_Group, err error) {
params := []interface{}{
configuration,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Gues... | go | func (r Virtual_Guest_Block_Device_Template_Group) CreateFromIcos(configuration *datatypes.Container_Virtual_Guest_Block_Device_Template_Configuration) (resp datatypes.Virtual_Guest_Block_Device_Template_Group, err error) {
params := []interface{}{
configuration,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Gues... | [
"func",
"(",
"r",
"Virtual_Guest_Block_Device_Template_Group",
")",
"CreateFromIcos",
"(",
"configuration",
"*",
"datatypes",
".",
"Container_Virtual_Guest_Block_Device_Template_Configuration",
")",
"(",
"resp",
"datatypes",
".",
"Virtual_Guest_Block_Device_Template_Group",
",",
... | // Create a process to import a disk image from ICOS and create a standard | [
"Create",
"a",
"process",
"to",
"import",
"a",
"disk",
"image",
"from",
"ICOS",
"and",
"create",
"a",
"standard"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2342-L2348 |
128,653 | softlayer/softlayer-go | services/virtual.go | CreatePublicArchiveTransaction | func (r Virtual_Guest_Block_Device_Template_Group) CreatePublicArchiveTransaction(groupName *string, summary *string, note *string, locations []datatypes.Location) (resp int, err error) {
params := []interface{}{
groupName,
summary,
note,
locations,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_... | go | func (r Virtual_Guest_Block_Device_Template_Group) CreatePublicArchiveTransaction(groupName *string, summary *string, note *string, locations []datatypes.Location) (resp int, err error) {
params := []interface{}{
groupName,
summary,
note,
locations,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_... | [
"func",
"(",
"r",
"Virtual_Guest_Block_Device_Template_Group",
")",
"CreatePublicArchiveTransaction",
"(",
"groupName",
"*",
"string",
",",
"summary",
"*",
"string",
",",
"note",
"*",
"string",
",",
"locations",
"[",
"]",
"datatypes",
".",
"Location",
")",
"(",
... | // Create a transaction to copy archived block devices into public repository | [
"Create",
"a",
"transaction",
"to",
"copy",
"archived",
"block",
"devices",
"into",
"public",
"repository"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2351-L2360 |
128,654 | softlayer/softlayer-go | services/virtual.go | FindGcImagesByCurrentUser | func (r Virtual_Guest_Block_Device_Template_Group) FindGcImagesByCurrentUser(dataCenters []string) (resp []datatypes.Virtual_Guest_Block_Device_Template_Group, err error) {
params := []interface{}{
dataCenters,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "findGcImagesByCurren... | go | func (r Virtual_Guest_Block_Device_Template_Group) FindGcImagesByCurrentUser(dataCenters []string) (resp []datatypes.Virtual_Guest_Block_Device_Template_Group, err error) {
params := []interface{}{
dataCenters,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "findGcImagesByCurren... | [
"func",
"(",
"r",
"Virtual_Guest_Block_Device_Template_Group",
")",
"FindGcImagesByCurrentUser",
"(",
"dataCenters",
"[",
"]",
"string",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Virtual_Guest_Block_Device_Template_Group",
",",
"err",
"error",
")",
"{",
"params",... | // Find block device template groups containing a GC enabled image for the current active user. A sorted collection of groups is returned. The Caller can optionally specify data center names to retrieve GC images only from those data centers. | [
"Find",
"block",
"device",
"template",
"groups",
"containing",
"a",
"GC",
"enabled",
"image",
"for",
"the",
"current",
"active",
"user",
".",
"A",
"sorted",
"collection",
"of",
"groups",
"is",
"returned",
".",
"The",
"Caller",
"can",
"optionally",
"specify",
... | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2399-L2405 |
128,655 | softlayer/softlayer-go | services/virtual.go | GetAccountReferences | func (r Virtual_Guest_Block_Device_Template_Group) GetAccountReferences() (resp []datatypes.Virtual_Guest_Block_Device_Template_Group_Accounts, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "getAccountReferences", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest_Block_Device_Template_Group) GetAccountReferences() (resp []datatypes.Virtual_Guest_Block_Device_Template_Group_Accounts, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "getAccountReferences", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest_Block_Device_Template_Group",
")",
"GetAccountReferences",
"(",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Virtual_Guest_Block_Device_Template_Group_Accounts",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
... | // Retrieve The accounts which may have read-only access to an image template group. Will only be populated for parent template group objects. | [
"Retrieve",
"The",
"accounts",
"which",
"may",
"have",
"read",
"-",
"only",
"access",
"to",
"an",
"image",
"template",
"group",
".",
"Will",
"only",
"be",
"populated",
"for",
"parent",
"template",
"group",
"objects",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2420-L2423 |
128,656 | softlayer/softlayer-go | services/virtual.go | GetBlockDevices | func (r Virtual_Guest_Block_Device_Template_Group) GetBlockDevices() (resp []datatypes.Virtual_Guest_Block_Device_Template, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "getBlockDevices", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest_Block_Device_Template_Group) GetBlockDevices() (resp []datatypes.Virtual_Guest_Block_Device_Template, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "getBlockDevices", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest_Block_Device_Template_Group",
")",
"GetBlockDevices",
"(",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Virtual_Guest_Block_Device_Template",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"("... | // Retrieve The block devices that are part of an image template group | [
"Retrieve",
"The",
"block",
"devices",
"that",
"are",
"part",
"of",
"an",
"image",
"template",
"group"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2432-L2435 |
128,657 | softlayer/softlayer-go | services/virtual.go | GetBlockDevicesDiskSpaceTotal | func (r Virtual_Guest_Block_Device_Template_Group) GetBlockDevicesDiskSpaceTotal() (resp datatypes.Float64, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "getBlockDevicesDiskSpaceTotal", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest_Block_Device_Template_Group) GetBlockDevicesDiskSpaceTotal() (resp datatypes.Float64, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "getBlockDevicesDiskSpaceTotal", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest_Block_Device_Template_Group",
")",
"GetBlockDevicesDiskSpaceTotal",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Float64",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"... | // Retrieve The total disk space of all images in a image template group. | [
"Retrieve",
"The",
"total",
"disk",
"space",
"of",
"all",
"images",
"in",
"a",
"image",
"template",
"group",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2438-L2441 |
128,658 | softlayer/softlayer-go | services/virtual.go | GetImageType | func (r Virtual_Guest_Block_Device_Template_Group) GetImageType() (resp datatypes.Virtual_Disk_Image_Type, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "getImageType", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest_Block_Device_Template_Group) GetImageType() (resp datatypes.Virtual_Disk_Image_Type, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "getImageType", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest_Block_Device_Template_Group",
")",
"GetImageType",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Virtual_Disk_Image_Type",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\... | // Retrieve The virtual disk image type of this template. Value will be populated on parent and child, but only supports object filtering on the parent. | [
"Retrieve",
"The",
"virtual",
"disk",
"image",
"type",
"of",
"this",
"template",
".",
"Value",
"will",
"be",
"populated",
"on",
"parent",
"and",
"child",
"but",
"only",
"supports",
"object",
"filtering",
"on",
"the",
"parent",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2504-L2507 |
128,659 | softlayer/softlayer-go | services/virtual.go | GetStatus | func (r Virtual_Guest_Block_Device_Template_Group) GetStatus() (resp datatypes.Virtual_Guest_Block_Device_Template_Group_Status, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "getStatus", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest_Block_Device_Template_Group) GetStatus() (resp datatypes.Virtual_Guest_Block_Device_Template_Group_Status, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "getStatus", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest_Block_Device_Template_Group",
")",
"GetStatus",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Virtual_Guest_Block_Device_Template_Group_Status",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"... | // Retrieve A template group's status. | [
"Retrieve",
"A",
"template",
"group",
"s",
"status",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2546-L2549 |
128,660 | softlayer/softlayer-go | services/virtual.go | GetStorageRepository | func (r Virtual_Guest_Block_Device_Template_Group) GetStorageRepository() (resp datatypes.Virtual_Storage_Repository, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "getStorageRepository", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest_Block_Device_Template_Group) GetStorageRepository() (resp datatypes.Virtual_Storage_Repository, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "getStorageRepository", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest_Block_Device_Template_Group",
")",
"GetStorageRepository",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Virtual_Storage_Repository",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
... | // Retrieve The storage repository that an image template group resides on. | [
"Retrieve",
"The",
"storage",
"repository",
"that",
"an",
"image",
"template",
"group",
"resides",
"on",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2558-L2561 |
128,661 | softlayer/softlayer-go | services/virtual.go | GetTransaction | func (r Virtual_Guest_Block_Device_Template_Group) GetTransaction() (resp datatypes.Provisioning_Version1_Transaction, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "getTransaction", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest_Block_Device_Template_Group) GetTransaction() (resp datatypes.Provisioning_Version1_Transaction, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "getTransaction", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest_Block_Device_Template_Group",
")",
"GetTransaction",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Provisioning_Version1_Transaction",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",... | // Retrieve A transaction that is being performed on a image template group. | [
"Retrieve",
"A",
"transaction",
"that",
"is",
"being",
"performed",
"on",
"a",
"image",
"template",
"group",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2576-L2579 |
128,662 | softlayer/softlayer-go | services/virtual.go | GetVhdImportSoftwareDescriptions | func (r Virtual_Guest_Block_Device_Template_Group) GetVhdImportSoftwareDescriptions() (resp []datatypes.Software_Description, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "getVhdImportSoftwareDescriptions", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest_Block_Device_Template_Group) GetVhdImportSoftwareDescriptions() (resp []datatypes.Software_Description, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "getVhdImportSoftwareDescriptions", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest_Block_Device_Template_Group",
")",
"GetVhdImportSoftwareDescriptions",
"(",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Software_Description",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"... | // Returns an array of SoftLayer_Software_Description that are supported for VHD imports. | [
"Returns",
"an",
"array",
"of",
"SoftLayer_Software_Description",
"that",
"are",
"supported",
"for",
"VHD",
"imports",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2582-L2585 |
128,663 | softlayer/softlayer-go | services/virtual.go | IsByolOnlyOperatingSystem | func (r Virtual_Guest_Block_Device_Template_Group) IsByolOnlyOperatingSystem() (resp bool, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "isByolOnlyOperatingSystem", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest_Block_Device_Template_Group) IsByolOnlyOperatingSystem() (resp bool, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "isByolOnlyOperatingSystem", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest_Block_Device_Template_Group",
")",
"IsByolOnlyOperatingSystem",
"(",
")",
"(",
"resp",
"bool",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
"nil",
... | // This method indicates whether or not this image uses an operating system that requires using a customer supplied license image | [
"This",
"method",
"indicates",
"whether",
"or",
"not",
"this",
"image",
"uses",
"an",
"operating",
"system",
"that",
"requires",
"using",
"a",
"customer",
"supplied",
"license",
"image"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2600-L2603 |
128,664 | softlayer/softlayer-go | services/virtual.go | PermitSharingAccess | func (r Virtual_Guest_Block_Device_Template_Group) PermitSharingAccess(accountId *int) (resp bool, err error) {
params := []interface{}{
accountId,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "permitSharingAccess", params, &r.Options, &resp)
return
} | go | func (r Virtual_Guest_Block_Device_Template_Group) PermitSharingAccess(accountId *int) (resp bool, err error) {
params := []interface{}{
accountId,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "permitSharingAccess", params, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest_Block_Device_Template_Group",
")",
"PermitSharingAccess",
"(",
"accountId",
"*",
"int",
")",
"(",
"resp",
"bool",
",",
"err",
"error",
")",
"{",
"params",
":=",
"[",
"]",
"interface",
"{",
"}",
"{",
"accountId",
",",
"}",
"... | // This method will permit another SoftLayer customer account access to provision CloudLayer Computing Instances from an image template group. Template access should only be given to the parent template group object, not the child. | [
"This",
"method",
"will",
"permit",
"another",
"SoftLayer",
"customer",
"account",
"access",
"to",
"provision",
"CloudLayer",
"Computing",
"Instances",
"from",
"an",
"image",
"template",
"group",
".",
"Template",
"access",
"should",
"only",
"be",
"given",
"to",
... | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2624-L2630 |
128,665 | softlayer/softlayer-go | services/virtual.go | SetBootMode | func (r Virtual_Guest_Block_Device_Template_Group) SetBootMode(newBootMode *string) (resp bool, err error) {
params := []interface{}{
newBootMode,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "setBootMode", params, &r.Options, &resp)
return
} | go | func (r Virtual_Guest_Block_Device_Template_Group) SetBootMode(newBootMode *string) (resp bool, err error) {
params := []interface{}{
newBootMode,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "setBootMode", params, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest_Block_Device_Template_Group",
")",
"SetBootMode",
"(",
"newBootMode",
"*",
"string",
")",
"(",
"resp",
"bool",
",",
"err",
"error",
")",
"{",
"params",
":=",
"[",
"]",
"interface",
"{",
"}",
"{",
"newBootMode",
",",
"}",
"\... | // This method allows you to specify the boot mode for a given image template. | [
"This",
"method",
"allows",
"you",
"to",
"specify",
"the",
"boot",
"mode",
"for",
"a",
"given",
"image",
"template",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2660-L2666 |
128,666 | softlayer/softlayer-go | services/virtual.go | SetCompatiblePlatforms | func (r Virtual_Guest_Block_Device_Template_Group) SetCompatiblePlatforms(platformNames []string) (resp bool, err error) {
params := []interface{}{
platformNames,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "setCompatiblePlatforms", params, &r.Options, &resp)
return
} | go | func (r Virtual_Guest_Block_Device_Template_Group) SetCompatiblePlatforms(platformNames []string) (resp bool, err error) {
params := []interface{}{
platformNames,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Block_Device_Template_Group", "setCompatiblePlatforms", params, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest_Block_Device_Template_Group",
")",
"SetCompatiblePlatforms",
"(",
"platformNames",
"[",
"]",
"string",
")",
"(",
"resp",
"bool",
",",
"err",
"error",
")",
"{",
"params",
":=",
"[",
"]",
"interface",
"{",
"}",
"{",
"platformName... | // Sets compatible platforms on the template group. | [
"Sets",
"compatible",
"platforms",
"on",
"the",
"template",
"group",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2669-L2675 |
128,667 | softlayer/softlayer-go | services/virtual.go | GetIpAddressBindings | func (r Virtual_Guest_Network_Component) GetIpAddressBindings() (resp []datatypes.Virtual_Guest_Network_Component_IpAddress, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Network_Component", "getIpAddressBindings", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest_Network_Component) GetIpAddressBindings() (resp []datatypes.Virtual_Guest_Network_Component_IpAddress, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Network_Component", "getIpAddressBindings", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest_Network_Component",
")",
"GetIpAddressBindings",
"(",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Virtual_Guest_Network_Component_IpAddress",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(... | // Retrieve The records of all IP addresses bound to a computing instance's network component. | [
"Retrieve",
"The",
"records",
"of",
"all",
"IP",
"addresses",
"bound",
"to",
"a",
"computing",
"instance",
"s",
"network",
"component",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2893-L2896 |
128,668 | softlayer/softlayer-go | services/virtual.go | GetRouter | func (r Virtual_Guest_Network_Component) GetRouter() (resp datatypes.Hardware_Router, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Network_Component", "getRouter", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest_Network_Component) GetRouter() (resp datatypes.Hardware_Router, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Network_Component", "getRouter", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest_Network_Component",
")",
"GetRouter",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Hardware_Router",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
... | // Retrieve A network component's routers. | [
"Retrieve",
"A",
"network",
"component",
"s",
"routers",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2941-L2944 |
128,669 | softlayer/softlayer-go | services/virtual.go | GetSecurityGroupBindings | func (r Virtual_Guest_Network_Component) GetSecurityGroupBindings() (resp []datatypes.Virtual_Network_SecurityGroup_NetworkComponentBinding, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Network_Component", "getSecurityGroupBindings", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Guest_Network_Component) GetSecurityGroupBindings() (resp []datatypes.Virtual_Network_SecurityGroup_NetworkComponentBinding, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Guest_Network_Component", "getSecurityGroupBindings", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Guest_Network_Component",
")",
"GetSecurityGroupBindings",
"(",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Virtual_Network_SecurityGroup_NetworkComponentBinding",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"... | // Retrieve The bindings associating security groups to this network component | [
"Retrieve",
"The",
"bindings",
"associating",
"security",
"groups",
"to",
"this",
"network",
"component"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L2947-L2950 |
128,670 | softlayer/softlayer-go | services/virtual.go | GetBilledPerGuestFlag | func (r Virtual_Host) GetBilledPerGuestFlag() (resp bool, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Host", "getBilledPerGuestFlag", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Host) GetBilledPerGuestFlag() (resp bool, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Host", "getBilledPerGuestFlag", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Host",
")",
"GetBilledPerGuestFlag",
"(",
")",
"(",
"resp",
"bool",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
"nil",
",",
"&",
"r",
".",
"Op... | // Retrieve Boolean flag indicating whether this virtualization platform gets billed per guest rather than at a fixed rate. | [
"Retrieve",
"Boolean",
"flag",
"indicating",
"whether",
"this",
"virtualization",
"platform",
"gets",
"billed",
"per",
"guest",
"rather",
"than",
"at",
"a",
"fixed",
"rate",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L3017-L3020 |
128,671 | softlayer/softlayer-go | services/virtual.go | GetGuests | func (r Virtual_Host) GetGuests() (resp []datatypes.Virtual_Guest, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Host", "getGuests", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Host) GetGuests() (resp []datatypes.Virtual_Guest, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Host", "getGuests", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Host",
")",
"GetGuests",
"(",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Virtual_Guest",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
"nil",
... | // Retrieve The guests associated with a virtual host. | [
"Retrieve",
"The",
"guests",
"associated",
"with",
"a",
"virtual",
"host",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L3029-L3032 |
128,672 | softlayer/softlayer-go | services/virtual.go | GetHardware | func (r Virtual_Host) GetHardware() (resp datatypes.Hardware_Server, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Host", "getHardware", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Host) GetHardware() (resp datatypes.Hardware_Server, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Host", "getHardware", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Host",
")",
"GetHardware",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Hardware_Server",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
"nil",
",",
"... | // Retrieve The hardware record which a virtual host resides on. | [
"Retrieve",
"The",
"hardware",
"record",
"which",
"a",
"virtual",
"host",
"resides",
"on",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L3035-L3038 |
128,673 | softlayer/softlayer-go | services/virtual.go | GetLiveGuestByUuid | func (r Virtual_Host) GetLiveGuestByUuid(uuid *string) (resp datatypes.Virtual_Guest, err error) {
params := []interface{}{
uuid,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Host", "getLiveGuestByUuid", params, &r.Options, &resp)
return
} | go | func (r Virtual_Host) GetLiveGuestByUuid(uuid *string) (resp datatypes.Virtual_Guest, err error) {
params := []interface{}{
uuid,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Host", "getLiveGuestByUuid", params, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Host",
")",
"GetLiveGuestByUuid",
"(",
"uuid",
"*",
"string",
")",
"(",
"resp",
"datatypes",
".",
"Virtual_Guest",
",",
"err",
"error",
")",
"{",
"params",
":=",
"[",
"]",
"interface",
"{",
"}",
"{",
"uuid",
",",
"}",
"\n",
... | // Query a virtualization platform directly to retrieve details regarding a guest. | [
"Query",
"a",
"virtualization",
"platform",
"directly",
"to",
"retrieve",
"details",
"regarding",
"a",
"guest",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L3041-L3047 |
128,674 | softlayer/softlayer-go | services/virtual.go | GetLiveGuestRecentMetricData | func (r Virtual_Host) GetLiveGuestRecentMetricData(uuid *string, time *int, limit *int, interval *int) (resp []datatypes.Metric_Tracking_Object, err error) {
params := []interface{}{
uuid,
time,
limit,
interval,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Host", "getLiveGuestRecentMetricData", params, &r.... | go | func (r Virtual_Host) GetLiveGuestRecentMetricData(uuid *string, time *int, limit *int, interval *int) (resp []datatypes.Metric_Tracking_Object, err error) {
params := []interface{}{
uuid,
time,
limit,
interval,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Host", "getLiveGuestRecentMetricData", params, &r.... | [
"func",
"(",
"r",
"Virtual_Host",
")",
"GetLiveGuestRecentMetricData",
"(",
"uuid",
"*",
"string",
",",
"time",
"*",
"int",
",",
"limit",
"*",
"int",
",",
"interval",
"*",
"int",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Metric_Tracking_Object",
",",
... | // Query a virtualization platform directly to retrieve recent metric data for a guest. | [
"Query",
"a",
"virtualization",
"platform",
"directly",
"to",
"retrieve",
"recent",
"metric",
"data",
"for",
"a",
"guest",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L3056-L3065 |
128,675 | softlayer/softlayer-go | services/virtual.go | PauseLiveGuest | func (r Virtual_Host) PauseLiveGuest(uuid *string) (resp bool, err error) {
params := []interface{}{
uuid,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Host", "pauseLiveGuest", params, &r.Options, &resp)
return
} | go | func (r Virtual_Host) PauseLiveGuest(uuid *string) (resp bool, err error) {
params := []interface{}{
uuid,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Host", "pauseLiveGuest", params, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Host",
")",
"PauseLiveGuest",
"(",
"uuid",
"*",
"string",
")",
"(",
"resp",
"bool",
",",
"err",
"error",
")",
"{",
"params",
":=",
"[",
"]",
"interface",
"{",
"}",
"{",
"uuid",
",",
"}",
"\n",
"err",
"=",
"r",
".",
"Ses... | // Pause a virtual guest | [
"Pause",
"a",
"virtual",
"guest"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L3086-L3092 |
128,676 | softlayer/softlayer-go | services/virtual.go | GetAvailableRouters | func (r Virtual_PlacementGroup) GetAvailableRouters(datacenterId *int) (resp []datatypes.Hardware, err error) {
params := []interface{}{
datacenterId,
}
err = r.Session.DoRequest("SoftLayer_Virtual_PlacementGroup", "getAvailableRouters", params, &r.Options, &resp)
return
} | go | func (r Virtual_PlacementGroup) GetAvailableRouters(datacenterId *int) (resp []datatypes.Hardware, err error) {
params := []interface{}{
datacenterId,
}
err = r.Session.DoRequest("SoftLayer_Virtual_PlacementGroup", "getAvailableRouters", params, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_PlacementGroup",
")",
"GetAvailableRouters",
"(",
"datacenterId",
"*",
"int",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Hardware",
",",
"err",
"error",
")",
"{",
"params",
":=",
"[",
"]",
"interface",
"{",
"}",
"{",
"datac... | // Returns all routers available for use with placement groups. If a datacenter location ID is provided, this method will further restrict the list of routers to ones contained within that datacenter. | [
"Returns",
"all",
"routers",
"available",
"for",
"use",
"with",
"placement",
"groups",
".",
"If",
"a",
"datacenter",
"location",
"ID",
"is",
"provided",
"this",
"method",
"will",
"further",
"restrict",
"the",
"list",
"of",
"routers",
"to",
"ones",
"contained",... | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L3210-L3216 |
128,677 | softlayer/softlayer-go | services/virtual.go | GetBackendRouter | func (r Virtual_PlacementGroup) GetBackendRouter() (resp datatypes.Hardware_Router_Backend, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_PlacementGroup", "getBackendRouter", nil, &r.Options, &resp)
return
} | go | func (r Virtual_PlacementGroup) GetBackendRouter() (resp datatypes.Hardware_Router_Backend, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_PlacementGroup", "getBackendRouter", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_PlacementGroup",
")",
"GetBackendRouter",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Hardware_Router_Backend",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
"... | // Retrieve The router the placement group is implemented on. | [
"Retrieve",
"The",
"router",
"the",
"placement",
"group",
"is",
"implemented",
"on",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L3219-L3222 |
128,678 | softlayer/softlayer-go | services/virtual.go | GetRule | func (r Virtual_PlacementGroup) GetRule() (resp datatypes.Virtual_PlacementGroup_Rule, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_PlacementGroup", "getRule", nil, &r.Options, &resp)
return
} | go | func (r Virtual_PlacementGroup) GetRule() (resp datatypes.Virtual_PlacementGroup_Rule, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_PlacementGroup", "getRule", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_PlacementGroup",
")",
"GetRule",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Virtual_PlacementGroup_Rule",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
... | // Retrieve The placement rule that the placement group is implementing. | [
"Retrieve",
"The",
"placement",
"rule",
"that",
"the",
"placement",
"group",
"is",
"implementing",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L3237-L3240 |
128,679 | softlayer/softlayer-go | services/virtual.go | GetAvailableInstances | func (r Virtual_ReservedCapacityGroup) GetAvailableInstances() (resp []datatypes.Virtual_ReservedCapacityGroup_Instance, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_ReservedCapacityGroup", "getAvailableInstances", nil, &r.Options, &resp)
return
} | go | func (r Virtual_ReservedCapacityGroup) GetAvailableInstances() (resp []datatypes.Virtual_ReservedCapacityGroup_Instance, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_ReservedCapacityGroup", "getAvailableInstances", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_ReservedCapacityGroup",
")",
"GetAvailableInstances",
"(",
")",
"(",
"resp",
"[",
"]",
"datatypes",
".",
"Virtual_ReservedCapacityGroup_Instance",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
... | // Retrieve The instances available for guest provisions on this reserved capacity group. | [
"Retrieve",
"The",
"instances",
"available",
"for",
"guest",
"provisions",
"on",
"this",
"reserved",
"capacity",
"group",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L3350-L3353 |
128,680 | softlayer/softlayer-go | services/virtual.go | GetInstancesCount | func (r Virtual_ReservedCapacityGroup) GetInstancesCount() (resp uint, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_ReservedCapacityGroup", "getInstancesCount", nil, &r.Options, &resp)
return
} | go | func (r Virtual_ReservedCapacityGroup) GetInstancesCount() (resp uint, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_ReservedCapacityGroup", "getInstancesCount", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_ReservedCapacityGroup",
")",
"GetInstancesCount",
"(",
")",
"(",
"resp",
"uint",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
"nil",
",",
"&",
"r",... | // Retrieve The number of instances that are members of this reserved capacity group. | [
"Retrieve",
"The",
"number",
"of",
"instances",
"that",
"are",
"members",
"of",
"this",
"reserved",
"capacity",
"group",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L3368-L3371 |
128,681 | softlayer/softlayer-go | services/virtual.go | GetAvailableFlag | func (r Virtual_ReservedCapacityGroup_Instance) GetAvailableFlag() (resp bool, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_ReservedCapacityGroup_Instance", "getAvailableFlag", nil, &r.Options, &resp)
return
} | go | func (r Virtual_ReservedCapacityGroup_Instance) GetAvailableFlag() (resp bool, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_ReservedCapacityGroup_Instance", "getAvailableFlag", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_ReservedCapacityGroup_Instance",
")",
"GetAvailableFlag",
"(",
")",
"(",
"resp",
"bool",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
"nil",
",",
"&"... | // Retrieve Flag to indecate whether or not the reserved instance is available or not. | [
"Retrieve",
"Flag",
"to",
"indecate",
"whether",
"or",
"not",
"the",
"reserved",
"instance",
"is",
"available",
"or",
"not",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L3426-L3429 |
128,682 | softlayer/softlayer-go | services/virtual.go | GetArchiveDiskUsageRatePerGb | func (r Virtual_Storage_Repository) GetArchiveDiskUsageRatePerGb() (resp datatypes.Float64, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Storage_Repository", "getArchiveDiskUsageRatePerGb", nil, &r.Options, &resp)
return
} | go | func (r Virtual_Storage_Repository) GetArchiveDiskUsageRatePerGb() (resp datatypes.Float64, err error) {
err = r.Session.DoRequest("SoftLayer_Virtual_Storage_Repository", "getArchiveDiskUsageRatePerGb", nil, &r.Options, &resp)
return
} | [
"func",
"(",
"r",
"Virtual_Storage_Repository",
")",
"GetArchiveDiskUsageRatePerGb",
"(",
")",
"(",
"resp",
"datatypes",
".",
"Float64",
",",
"err",
"error",
")",
"{",
"err",
"=",
"r",
".",
"Session",
".",
"DoRequest",
"(",
"\"",
"\"",
",",
"\"",
"\"",
"... | // Returns the archive storage disk usage fee rate per gigabyte. | [
"Returns",
"the",
"archive",
"storage",
"disk",
"usage",
"fee",
"rate",
"per",
"gigabyte",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L3502-L3505 |
128,683 | softlayer/softlayer-go | services/virtual.go | GetAverageDiskUsageMetricDataFromInfluxByDate | func (r Virtual_Storage_Repository) GetAverageDiskUsageMetricDataFromInfluxByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp datatypes.Float64, err error) {
params := []interface{}{
startDateTime,
endDateTime,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Storage_Repository", "getAverageD... | go | func (r Virtual_Storage_Repository) GetAverageDiskUsageMetricDataFromInfluxByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp datatypes.Float64, err error) {
params := []interface{}{
startDateTime,
endDateTime,
}
err = r.Session.DoRequest("SoftLayer_Virtual_Storage_Repository", "getAverageD... | [
"func",
"(",
"r",
"Virtual_Storage_Repository",
")",
"GetAverageDiskUsageMetricDataFromInfluxByDate",
"(",
"startDateTime",
"*",
"datatypes",
".",
"Time",
",",
"endDateTime",
"*",
"datatypes",
".",
"Time",
")",
"(",
"resp",
"datatypes",
".",
"Float64",
",",
"err",
... | // Returns the average disk space usage for a storage repository. | [
"Returns",
"the",
"average",
"disk",
"space",
"usage",
"for",
"a",
"storage",
"repository",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/services/virtual.go#L3508-L3515 |
128,684 | softlayer/softlayer-go | filter/filters.go | Path | func Path(path string, val ...interface{}) Filter {
if len(val) > 0 {
return Filter{Path: path, Val: val[0]}
}
return Filter{Path: path}
} | go | func Path(path string, val ...interface{}) Filter {
if len(val) > 0 {
return Filter{Path: path, Val: val[0]}
}
return Filter{Path: path}
} | [
"func",
"Path",
"(",
"path",
"string",
",",
"val",
"...",
"interface",
"{",
"}",
")",
"Filter",
"{",
"if",
"len",
"(",
"val",
")",
">",
"0",
"{",
"return",
"Filter",
"{",
"Path",
":",
"path",
",",
"Val",
":",
"val",
"[",
"0",
"]",
"}",
"\n",
... | // This creates a new Filter. The path is a dot-delimited path down
// to the attribute this filter is for. The second value parameter
// is optional. | [
"This",
"creates",
"a",
"new",
"Filter",
".",
"The",
"path",
"is",
"a",
"dot",
"-",
"delimited",
"path",
"down",
"to",
"the",
"attribute",
"this",
"filter",
"is",
"for",
".",
"The",
"second",
"value",
"parameter",
"is",
"optional",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/filter/filters.go#L56-L62 |
128,685 | softlayer/softlayer-go | filter/filters.go | Build | func (fs Filters) Build() string {
// Loops around filters,
// splitting path on '.' and looping around path pieces.
// Idea is to create a map/tree like map[string]interface{}.
// Every component in the path is a node to create in the tree.
// Once we get to the leaf, we set the operation.
// map[string]interfac... | go | func (fs Filters) Build() string {
// Loops around filters,
// splitting path on '.' and looping around path pieces.
// Idea is to create a map/tree like map[string]interface{}.
// Every component in the path is a node to create in the tree.
// Once we get to the leaf, we set the operation.
// map[string]interfac... | [
"func",
"(",
"fs",
"Filters",
")",
"Build",
"(",
")",
"string",
"{",
"// Loops around filters,",
"// splitting path on '.' and looping around path pieces.",
"// Idea is to create a map/tree like map[string]interface{}.",
"// Every component in the path is a node to create in the tree.",
... | // Builds the filter string in JSON format | [
"Builds",
"the",
"filter",
"string",
"in",
"JSON",
"format"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/filter/filters.go#L65-L136 |
128,686 | softlayer/softlayer-go | filter/filters.go | Opt | func (f Filter) Opt(name string, value interface{}) Filter {
if f.Opts == nil {
f.Opts = map[string]interface{}{}
}
f.Opts[name] = value
return f
} | go | func (f Filter) Opt(name string, value interface{}) Filter {
if f.Opts == nil {
f.Opts = map[string]interface{}{}
}
f.Opts[name] = value
return f
} | [
"func",
"(",
"f",
"Filter",
")",
"Opt",
"(",
"name",
"string",
",",
"value",
"interface",
"{",
"}",
")",
"Filter",
"{",
"if",
"f",
".",
"Opts",
"==",
"nil",
"{",
"f",
".",
"Opts",
"=",
"map",
"[",
"string",
"]",
"interface",
"{",
"}",
"{",
"}",... | // Add options to the filter. Can be chained for multiple options. | [
"Add",
"options",
"to",
"the",
"filter",
".",
"Can",
"be",
"chained",
"for",
"multiple",
"options",
"."
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/filter/filters.go#L144-L151 |
128,687 | softlayer/softlayer-go | filter/filters.go | Eq | func (f Filter) Eq(val interface{}) Filter {
f.Op = ""
f.Val = val
return f
} | go | func (f Filter) Eq(val interface{}) Filter {
f.Op = ""
f.Val = val
return f
} | [
"func",
"(",
"f",
"Filter",
")",
"Eq",
"(",
"val",
"interface",
"{",
"}",
")",
"Filter",
"{",
"f",
".",
"Op",
"=",
"\"",
"\"",
"\n",
"f",
".",
"Val",
"=",
"val",
"\n",
"return",
"f",
"\n",
"}"
] | // Set this filter to test if property is equal to the value | [
"Set",
"this",
"filter",
"to",
"test",
"if",
"property",
"is",
"equal",
"to",
"the",
"value"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/filter/filters.go#L154-L158 |
128,688 | softlayer/softlayer-go | filter/filters.go | NotEq | func (f Filter) NotEq(val interface{}) Filter {
f.Op = "!="
f.Val = val
return f
} | go | func (f Filter) NotEq(val interface{}) Filter {
f.Op = "!="
f.Val = val
return f
} | [
"func",
"(",
"f",
"Filter",
")",
"NotEq",
"(",
"val",
"interface",
"{",
"}",
")",
"Filter",
"{",
"f",
".",
"Op",
"=",
"\"",
"\"",
"\n",
"f",
".",
"Val",
"=",
"val",
"\n",
"return",
"f",
"\n",
"}"
] | // Set this filter to test if property is not equal to the value | [
"Set",
"this",
"filter",
"to",
"test",
"if",
"property",
"is",
"not",
"equal",
"to",
"the",
"value"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/filter/filters.go#L161-L165 |
128,689 | softlayer/softlayer-go | filter/filters.go | Like | func (f Filter) Like(val interface{}) Filter {
f.Op = "~"
f.Val = val
return f
} | go | func (f Filter) Like(val interface{}) Filter {
f.Op = "~"
f.Val = val
return f
} | [
"func",
"(",
"f",
"Filter",
")",
"Like",
"(",
"val",
"interface",
"{",
"}",
")",
"Filter",
"{",
"f",
".",
"Op",
"=",
"\"",
"\"",
"\n",
"f",
".",
"Val",
"=",
"val",
"\n",
"return",
"f",
"\n",
"}"
] | // Set this filter to test if property is like the value | [
"Set",
"this",
"filter",
"to",
"test",
"if",
"property",
"is",
"like",
"the",
"value"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/filter/filters.go#L168-L172 |
128,690 | softlayer/softlayer-go | filter/filters.go | NotLike | func (f Filter) NotLike(val interface{}) Filter {
f.Op = "!~"
f.Val = val
return f
} | go | func (f Filter) NotLike(val interface{}) Filter {
f.Op = "!~"
f.Val = val
return f
} | [
"func",
"(",
"f",
"Filter",
")",
"NotLike",
"(",
"val",
"interface",
"{",
"}",
")",
"Filter",
"{",
"f",
".",
"Op",
"=",
"\"",
"\"",
"\n",
"f",
".",
"Val",
"=",
"val",
"\n",
"return",
"f",
"\n",
"}"
] | // Set this filter to test if property is unlike value | [
"Set",
"this",
"filter",
"to",
"test",
"if",
"property",
"is",
"unlike",
"value"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/filter/filters.go#L175-L179 |
128,691 | softlayer/softlayer-go | filter/filters.go | LessThan | func (f Filter) LessThan(val interface{}) Filter {
f.Op = "<"
f.Val = val
return f
} | go | func (f Filter) LessThan(val interface{}) Filter {
f.Op = "<"
f.Val = val
return f
} | [
"func",
"(",
"f",
"Filter",
")",
"LessThan",
"(",
"val",
"interface",
"{",
"}",
")",
"Filter",
"{",
"f",
".",
"Op",
"=",
"\"",
"\"",
"\n",
"f",
".",
"Val",
"=",
"val",
"\n",
"return",
"f",
"\n",
"}"
] | // Set this filter to test if property is less than value | [
"Set",
"this",
"filter",
"to",
"test",
"if",
"property",
"is",
"less",
"than",
"value"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/filter/filters.go#L182-L186 |
128,692 | softlayer/softlayer-go | filter/filters.go | LessThanOrEqual | func (f Filter) LessThanOrEqual(val interface{}) Filter {
f.Op = "<="
f.Val = val
return f
} | go | func (f Filter) LessThanOrEqual(val interface{}) Filter {
f.Op = "<="
f.Val = val
return f
} | [
"func",
"(",
"f",
"Filter",
")",
"LessThanOrEqual",
"(",
"val",
"interface",
"{",
"}",
")",
"Filter",
"{",
"f",
".",
"Op",
"=",
"\"",
"\"",
"\n",
"f",
".",
"Val",
"=",
"val",
"\n",
"return",
"f",
"\n",
"}"
] | // Set this filter to test if property is less than or equal to the value | [
"Set",
"this",
"filter",
"to",
"test",
"if",
"property",
"is",
"less",
"than",
"or",
"equal",
"to",
"the",
"value"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/filter/filters.go#L189-L193 |
128,693 | softlayer/softlayer-go | filter/filters.go | GreaterThan | func (f Filter) GreaterThan(val interface{}) Filter {
f.Op = ">"
f.Val = val
return f
} | go | func (f Filter) GreaterThan(val interface{}) Filter {
f.Op = ">"
f.Val = val
return f
} | [
"func",
"(",
"f",
"Filter",
")",
"GreaterThan",
"(",
"val",
"interface",
"{",
"}",
")",
"Filter",
"{",
"f",
".",
"Op",
"=",
"\"",
"\"",
"\n",
"f",
".",
"Val",
"=",
"val",
"\n",
"return",
"f",
"\n",
"}"
] | // Set this filter to test if property is greater than value | [
"Set",
"this",
"filter",
"to",
"test",
"if",
"property",
"is",
"greater",
"than",
"value"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/filter/filters.go#L196-L200 |
128,694 | softlayer/softlayer-go | filter/filters.go | GreaterThanOrEqual | func (f Filter) GreaterThanOrEqual(val interface{}) Filter {
f.Op = ">="
f.Val = val
return f
} | go | func (f Filter) GreaterThanOrEqual(val interface{}) Filter {
f.Op = ">="
f.Val = val
return f
} | [
"func",
"(",
"f",
"Filter",
")",
"GreaterThanOrEqual",
"(",
"val",
"interface",
"{",
"}",
")",
"Filter",
"{",
"f",
".",
"Op",
"=",
"\"",
"\"",
"\n",
"f",
".",
"Val",
"=",
"val",
"\n",
"return",
"f",
"\n",
"}"
] | // Set this filter to test if property is greater than or equal to value | [
"Set",
"this",
"filter",
"to",
"test",
"if",
"property",
"is",
"greater",
"than",
"or",
"equal",
"to",
"value"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/filter/filters.go#L203-L207 |
128,695 | softlayer/softlayer-go | filter/filters.go | Contains | func (f Filter) Contains(val interface{}) Filter {
f.Op = "*="
f.Val = val
return f
} | go | func (f Filter) Contains(val interface{}) Filter {
f.Op = "*="
f.Val = val
return f
} | [
"func",
"(",
"f",
"Filter",
")",
"Contains",
"(",
"val",
"interface",
"{",
"}",
")",
"Filter",
"{",
"f",
".",
"Op",
"=",
"\"",
"\"",
"\n",
"f",
".",
"Val",
"=",
"val",
"\n",
"return",
"f",
"\n",
"}"
] | // Set this filter to test if property contains the value | [
"Set",
"this",
"filter",
"to",
"test",
"if",
"property",
"contains",
"the",
"value"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/filter/filters.go#L224-L228 |
128,696 | softlayer/softlayer-go | filter/filters.go | NotContains | func (f Filter) NotContains(val interface{}) Filter {
f.Op = "!*="
f.Val = val
return f
} | go | func (f Filter) NotContains(val interface{}) Filter {
f.Op = "!*="
f.Val = val
return f
} | [
"func",
"(",
"f",
"Filter",
")",
"NotContains",
"(",
"val",
"interface",
"{",
"}",
")",
"Filter",
"{",
"f",
".",
"Op",
"=",
"\"",
"\"",
"\n",
"f",
".",
"Val",
"=",
"val",
"\n",
"return",
"f",
"\n",
"}"
] | // Set this filter to test if property does not contain the value | [
"Set",
"this",
"filter",
"to",
"test",
"if",
"property",
"does",
"not",
"contain",
"the",
"value"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/filter/filters.go#L231-L235 |
128,697 | softlayer/softlayer-go | filter/filters.go | StartsWith | func (f Filter) StartsWith(val interface{}) Filter {
f.Op = "^="
f.Val = val
return f
} | go | func (f Filter) StartsWith(val interface{}) Filter {
f.Op = "^="
f.Val = val
return f
} | [
"func",
"(",
"f",
"Filter",
")",
"StartsWith",
"(",
"val",
"interface",
"{",
"}",
")",
"Filter",
"{",
"f",
".",
"Op",
"=",
"\"",
"\"",
"\n",
"f",
".",
"Val",
"=",
"val",
"\n",
"return",
"f",
"\n",
"}"
] | // Set this filter to test if property starts with the value | [
"Set",
"this",
"filter",
"to",
"test",
"if",
"property",
"starts",
"with",
"the",
"value"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/filter/filters.go#L238-L242 |
128,698 | softlayer/softlayer-go | filter/filters.go | NotStartsWith | func (f Filter) NotStartsWith(val interface{}) Filter {
f.Op = "!^="
f.Val = val
return f
} | go | func (f Filter) NotStartsWith(val interface{}) Filter {
f.Op = "!^="
f.Val = val
return f
} | [
"func",
"(",
"f",
"Filter",
")",
"NotStartsWith",
"(",
"val",
"interface",
"{",
"}",
")",
"Filter",
"{",
"f",
".",
"Op",
"=",
"\"",
"\"",
"\n",
"f",
".",
"Val",
"=",
"val",
"\n",
"return",
"f",
"\n",
"}"
] | // Set this filter to test if property does not start with the value | [
"Set",
"this",
"filter",
"to",
"test",
"if",
"property",
"does",
"not",
"start",
"with",
"the",
"value"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/filter/filters.go#L245-L249 |
128,699 | softlayer/softlayer-go | filter/filters.go | EndsWith | func (f Filter) EndsWith(val interface{}) Filter {
f.Op = "$="
f.Val = val
return f
} | go | func (f Filter) EndsWith(val interface{}) Filter {
f.Op = "$="
f.Val = val
return f
} | [
"func",
"(",
"f",
"Filter",
")",
"EndsWith",
"(",
"val",
"interface",
"{",
"}",
")",
"Filter",
"{",
"f",
".",
"Op",
"=",
"\"",
"\"",
"\n",
"f",
".",
"Val",
"=",
"val",
"\n",
"return",
"f",
"\n",
"}"
] | // Set this filter to test if property ends with the value | [
"Set",
"this",
"filter",
"to",
"test",
"if",
"property",
"ends",
"with",
"the",
"value"
] | aa510384a41b6450fa6a50e943ed32f5e838fada | https://github.com/softlayer/softlayer-go/blob/aa510384a41b6450fa6a50e943ed32f5e838fada/filter/filters.go#L252-L256 |
Subsets and Splits
SQL Console for google/code_x_glue_ct_code_to_text
This query implements a thoughtful three-tier curation strategy to build a balanced safety dataset, categorizing code by destructive operations, safe I/O operations, and pure computational negatives with subsampling—revealing important patterns about how destructive intent manifests in Python code for model safety research.
SQL Console for google/code_x_glue_ct_code_to_text
This query performs meaningful classification of Python code samples into safety-relevant tiers based on destructive operations, I/O patterns, and pure computation, which could be valuable for building safety classifiers or curating training data, though the output itself is a filtered/ranked dataset rather than revealing novel statistical insights.