1/** 2 * Copyright 2016 IBM Corp. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17/** 18 * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY 19 */ 20 21package services 22 23import ( 24 "fmt" 25 "strings" 26 27 "github.com/softlayer/softlayer-go/datatypes" 28 "github.com/softlayer/softlayer-go/session" 29 "github.com/softlayer/softlayer-go/sl" 30) 31 32// The SoftLayer_Account data type contains general information relating to a single SoftLayer customer account. Personal information in this type such as names, addresses, and phone numbers are assigned to the account only and not to users belonging to the account. The SoftLayer_Account data type contains a number of relational properties that are used by the SoftLayer customer portal to quickly present a variety of account related services to it's users. 33// 34// SoftLayer customers are unable to change their company account information in the portal or the API. If you need to change this information please open a sales ticket in our customer portal and our account management staff will assist you. 35type Account struct { 36 Session *session.Session 37 Options sl.Options 38} 39 40// GetAccountService returns an instance of the Account SoftLayer service 41func GetAccountService(sess *session.Session) Account { 42 return Account{Session: sess} 43} 44 45func (r Account) Id(id int) Account { 46 r.Options.Id = &id 47 return r 48} 49 50func (r Account) Mask(mask string) Account { 51 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 52 mask = fmt.Sprintf("mask[%s]", mask) 53 } 54 55 r.Options.Mask = mask 56 return r 57} 58 59func (r Account) Filter(filter string) Account { 60 r.Options.Filter = filter 61 return r 62} 63 64func (r Account) Limit(limit int) Account { 65 r.Options.Limit = &limit 66 return r 67} 68 69func (r Account) Offset(offset int) Account { 70 r.Options.Offset = &offset 71 return r 72} 73 74// no documentation yet 75func (r Account) ActivatePartner(accountId *string, hashCode *string) (resp datatypes.Account, err error) { 76 params := []interface{}{ 77 accountId, 78 hashCode, 79 } 80 err = r.Session.DoRequest("SoftLayer_Account", "activatePartner", params, &r.Options, &resp) 81 return 82} 83 84// no documentation yet 85func (r Account) AddAchInformation(achInformation *datatypes.Container_Billing_Info_Ach) (resp bool, err error) { 86 params := []interface{}{ 87 achInformation, 88 } 89 err = r.Session.DoRequest("SoftLayer_Account", "addAchInformation", params, &r.Options, &resp) 90 return 91} 92 93// no documentation yet 94func (r Account) AddReferralPartnerPaymentOption(paymentOption *datatypes.Container_Referral_Partner_Payment_Option) (resp bool, err error) { 95 params := []interface{}{ 96 paymentOption, 97 } 98 err = r.Session.DoRequest("SoftLayer_Account", "addReferralPartnerPaymentOption", params, &r.Options, &resp) 99 return 100} 101 102// This method indicates whether or not Bandwidth Pooling updates are blocked for the account so the billing cycle can run. Generally, accounts are restricted from moving servers in or out of Bandwidth Pools from 12:00 CST on the day prior to billing, until the billing batch completes, sometime after midnight the day of actual billing for the account. 103func (r Account) AreVdrUpdatesBlockedForBilling() (resp bool, err error) { 104 err = r.Session.DoRequest("SoftLayer_Account", "areVdrUpdatesBlockedForBilling", nil, &r.Options, &resp) 105 return 106} 107 108// Cancel the PayPal Payment Request process. During the process of submitting a PayPal payment request, the customer is redirected to PayPal to confirm the request. If the customer elects to cancel the payment from PayPal, they are returned to SoftLayer where the manual payment record is updated to a status of canceled. 109func (r Account) CancelPayPalTransaction(token *string, payerId *string) (resp bool, err error) { 110 params := []interface{}{ 111 token, 112 payerId, 113 } 114 err = r.Session.DoRequest("SoftLayer_Account", "cancelPayPalTransaction", params, &r.Options, &resp) 115 return 116} 117 118// Complete the PayPal Payment Request process and receive confirmation message. During the process of submitting a PayPal payment request, the customer is redirected to PayPal to confirm the request. Once confirmed, PayPal returns the customer to SoftLayer where an attempt is made to finalize the transaction. A status message regarding the attempt is returned to the calling function. 119func (r Account) CompletePayPalTransaction(token *string, payerId *string) (resp string, err error) { 120 params := []interface{}{ 121 token, 122 payerId, 123 } 124 err = r.Session.DoRequest("SoftLayer_Account", "completePayPalTransaction", params, &r.Options, &resp) 125 return 126} 127 128// Retrieve the number of hourly services on an account that are active, plus any pending orders with hourly services attached. 129func (r Account) CountHourlyInstances() (resp int, err error) { 130 err = r.Session.DoRequest("SoftLayer_Account", "countHourlyInstances", nil, &r.Options, &resp) 131 return 132} 133 134// Create a new Customer user record in the SoftLayer customer portal. This is a wrapper around the Customer::createObject call, please see the documentation of that API. This wrapper adds the feature of the "silentlyCreate" option, which bypasses the IBMid invitation email process. False (the default) goes through the IBMid invitation email process, which creates the IBMid/SoftLayer Single-Sign-On (SSO) user link when the invitation is accepted (meaning the email has been received, opened, and the link(s) inside the email have been clicked to complete the process). True will silently (no email) create the IBMid/SoftLayer user SSO link immediately. Either case will use the value in the template object 'email' field to indicate the IBMid to use. This can be the username or, if unique, the email address of an IBMid. In the silent case, the IBMid must already exist. In the non-silent invitation email case, the IBMid can be created during this flow, by specifying an email address to be used to create the IBMid.All the features and restrictions of createObject apply to this API as well. In addition, note that the "silentlyCreate" flag is ONLY valid for IBMid-authenticated accounts. 135func (r Account) CreateUser(templateObject *datatypes.User_Customer, password *string, vpnPassword *string, silentlyCreateFlag *bool) (resp datatypes.User_Customer, err error) { 136 params := []interface{}{ 137 templateObject, 138 password, 139 vpnPassword, 140 silentlyCreateFlag, 141 } 142 err = r.Session.DoRequest("SoftLayer_Account", "createUser", params, &r.Options, &resp) 143 return 144} 145 146// <p style="color:red"><strong>Warning</strong>: If you remove the EU Supported account flag, you are removing the restriction that limits Processing activities to EU personnel.</p> 147func (r Account) DisableEuSupport() (err error) { 148 var resp datatypes.Void 149 err = r.Session.DoRequest("SoftLayer_Account", "disableEuSupport", nil, &r.Options, &resp) 150 return 151} 152 153// <p> If you select the EU Supported option, the most common Support issues will be limited to IBM Cloud staff located in the EU. In the event your issue requires non-EU expert assistance, it will be reviewed and approval given prior to any non-EU intervention. Additionally, in order to support and update the services, cross-border Processing of your data may still occur. Please ensure you take the necessary actions to allow this Processing, as detailed in the <strong><a href="http://www-03.ibm.com/software/sla/sladb.nsf/sla/bm-6605-12">Cloud Service Terms</a></strong>. A standard Data Processing Addendum is available <strong><a href="https://www-05.ibm.com/support/operations/zz/en/dpa.html">here</a></strong>. </p> 154// 155// <p> <strong>Important note (you will only see this once):</strong> Orders using the API will proceed without additional notifications. The terms related to selecting products, services, or locations outside the EU apply to API orders. Users you create and API keys you generate will have the ability to order products, services, and locations outside of the EU. It is your responsibility to educate anyone you grant access to your account on the consequences and requirements if they make a selection that is not in the EU Supported option. In order to meet EU Supported requirements, the current PPTP VPN solution will no longer be offered or supported. </p> 156// 157// <p> If PPTP has been selected as an option for any users in your account by itself (or in combination with another VPN offering), you will need to disable PPTP before selecting the EU Supported account feature. For more information on VPN changes, click <strong><a href="http://knowledgelayer.softlayer.com/procedure/activate-or-deactivate-pptp-vpn-access-user"> here</a></strong>. </p> 158func (r Account) EnableEuSupport() (err error) { 159 var resp datatypes.Void 160 err = r.Session.DoRequest("SoftLayer_Account", "enableEuSupport", nil, &r.Options, &resp) 161 return 162} 163 164// Retrieve An email address that is responsible for abuse and legal inquiries on behalf of an account. For instance, new legal and abuse tickets are sent to this address. 165func (r Account) GetAbuseEmail() (resp string, err error) { 166 err = r.Session.DoRequest("SoftLayer_Account", "getAbuseEmail", nil, &r.Options, &resp) 167 return 168} 169 170// Retrieve Email addresses that are responsible for abuse and legal inquiries on behalf of an account. For instance, new legal and abuse tickets are sent to these addresses. 171func (r Account) GetAbuseEmails() (resp []datatypes.Account_AbuseEmail, err error) { 172 err = r.Session.DoRequest("SoftLayer_Account", "getAbuseEmails", nil, &r.Options, &resp) 173 return 174} 175 176// This method returns an array of SoftLayer_Container_Network_Storage_Evault_WebCc_JobDetails objects for the given start and end dates. Start and end dates should be be valid ISO 8601 dates. The backupStatus can be one of null, 'success', 'failed', or 'conflict'. The 'success' backupStatus returns jobs with a status of 'COMPLETED', the 'failed' backupStatus returns jobs with a status of 'FAILED', while the 'conflict' backupStatus will return jobs that are not 'COMPLETED' or 'FAILED'. 177func (r Account) GetAccountBackupHistory(startDate *datatypes.Time, endDate *datatypes.Time, backupStatus *string) (resp []datatypes.Container_Network_Storage_Evault_WebCc_JobDetails, err error) { 178 params := []interface{}{ 179 startDate, 180 endDate, 181 backupStatus, 182 } 183 err = r.Session.DoRequest("SoftLayer_Account", "getAccountBackupHistory", params, &r.Options, &resp) 184 return 185} 186 187// Retrieve The account contacts on an account. 188func (r Account) GetAccountContacts() (resp []datatypes.Account_Contact, err error) { 189 err = r.Session.DoRequest("SoftLayer_Account", "getAccountContacts", nil, &r.Options, &resp) 190 return 191} 192 193// Retrieve The account software licenses owned by an account 194func (r Account) GetAccountLicenses() (resp []datatypes.Software_AccountLicense, err error) { 195 err = r.Session.DoRequest("SoftLayer_Account", "getAccountLicenses", nil, &r.Options, &resp) 196 return 197} 198 199// Retrieve 200func (r Account) GetAccountLinks() (resp []datatypes.Account_Link, err error) { 201 err = r.Session.DoRequest("SoftLayer_Account", "getAccountLinks", nil, &r.Options, &resp) 202 return 203} 204 205// Retrieve An account's status presented in a more detailed data type. 206func (r Account) GetAccountStatus() (resp datatypes.Account_Status, err error) { 207 err = r.Session.DoRequest("SoftLayer_Account", "getAccountStatus", nil, &r.Options, &resp) 208 return 209} 210 211// This method pulls an account trait by its key. 212func (r Account) GetAccountTraitValue(keyName *string) (resp string, err error) { 213 params := []interface{}{ 214 keyName, 215 } 216 err = r.Session.DoRequest("SoftLayer_Account", "getAccountTraitValue", params, &r.Options, &resp) 217 return 218} 219 220// Retrieve The billing item associated with an account's monthly discount. 221func (r Account) GetActiveAccountDiscountBillingItem() (resp datatypes.Billing_Item, err error) { 222 err = r.Session.DoRequest("SoftLayer_Account", "getActiveAccountDiscountBillingItem", nil, &r.Options, &resp) 223 return 224} 225 226// Retrieve The active account software licenses owned by an account 227func (r Account) GetActiveAccountLicenses() (resp []datatypes.Software_AccountLicense, err error) { 228 err = r.Session.DoRequest("SoftLayer_Account", "getActiveAccountLicenses", nil, &r.Options, &resp) 229 return 230} 231 232// Retrieve The active address(es) that belong to an account. 233func (r Account) GetActiveAddresses() (resp []datatypes.Account_Address, err error) { 234 err = r.Session.DoRequest("SoftLayer_Account", "getActiveAddresses", nil, &r.Options, &resp) 235 return 236} 237 238// Return all currently active alarms on this account. Only alarms on hardware and virtual servers accessible to the current user will be returned. 239func (r Account) GetActiveAlarms() (resp []datatypes.Container_Monitoring_Alarm_History, err error) { 240 err = r.Session.DoRequest("SoftLayer_Account", "getActiveAlarms", nil, &r.Options, &resp) 241 return 242} 243 244// Retrieve All billing agreements for an account 245func (r Account) GetActiveBillingAgreements() (resp []datatypes.Account_Agreement, err error) { 246 err = r.Session.DoRequest("SoftLayer_Account", "getActiveBillingAgreements", nil, &r.Options, &resp) 247 return 248} 249 250// Retrieve 251func (r Account) GetActiveCatalystEnrollment() (resp datatypes.Catalyst_Enrollment, err error) { 252 err = r.Session.DoRequest("SoftLayer_Account", "getActiveCatalystEnrollment", nil, &r.Options, &resp) 253 return 254} 255 256// Retrieve The account's active top level colocation containers. 257func (r Account) GetActiveColocationContainers() (resp []datatypes.Billing_Item, err error) { 258 err = r.Session.DoRequest("SoftLayer_Account", "getActiveColocationContainers", nil, &r.Options, &resp) 259 return 260} 261 262// Retrieve Account's currently active Flexible Credit enrollment. 263func (r Account) GetActiveFlexibleCreditEnrollment() (resp datatypes.FlexibleCredit_Enrollment, err error) { 264 err = r.Session.DoRequest("SoftLayer_Account", "getActiveFlexibleCreditEnrollment", nil, &r.Options, &resp) 265 return 266} 267 268// Retrieve 269func (r Account) GetActiveNotificationSubscribers() (resp []datatypes.Notification_Subscriber, err error) { 270 err = r.Session.DoRequest("SoftLayer_Account", "getActiveNotificationSubscribers", nil, &r.Options, &resp) 271 return 272} 273 274// This is deprecated and will not return any results. 275func (r Account) GetActiveOutletPackages() (resp []datatypes.Product_Package, err error) { 276 err = r.Session.DoRequest("SoftLayer_Account", "getActiveOutletPackages", nil, &r.Options, &resp) 277 return 278} 279 280// This method will return the [[SoftLayer_Product_Package]] objects from which you can order a bare metal server, virtual server, service (such as CDN or Object Storage) or other software. Once you have the package you want to order from, you may query one of various endpoints from that package to get specific information about its products and pricing. See [[SoftLayer_Product_Package/getCategories|getCategories]] or [[SoftLayer_Product_Package/getItems|getItems]] for more information. 281// 282// Packages that have been retired will not appear in this result set. 283func (r Account) GetActivePackages() (resp []datatypes.Product_Package, err error) { 284 err = r.Session.DoRequest("SoftLayer_Account", "getActivePackages", nil, &r.Options, &resp) 285 return 286} 287 288// <strong>This method is deprecated and should not be used in production code.</strong> 289// 290// This method will return the [[SoftLayer_Product_Package]] objects from which you can order a bare metal server, virtual server, service (such as CDN or Object Storage) or other software filtered by an attribute type associated with the package. Once you have the package you want to order from, you may query one of various endpoints from that package to get specific information about its products and pricing. See [[SoftLayer_Product_Package/getCategories|getCategories]] or [[SoftLayer_Product_Package/getItems|getItems]] for more information. 291func (r Account) GetActivePackagesByAttribute(attributeKeyName *string) (resp []datatypes.Product_Package, err error) { 292 params := []interface{}{ 293 attributeKeyName, 294 } 295 err = r.Session.DoRequest("SoftLayer_Account", "getActivePackagesByAttribute", params, &r.Options, &resp) 296 return 297} 298 299// This method pulls all the active private hosted cloud packages. This will give you a basic description of the packages that are currently active and from which you can order private hosted cloud configurations. 300func (r Account) GetActivePrivateHostedCloudPackages() (resp []datatypes.Product_Package, err error) { 301 err = r.Session.DoRequest("SoftLayer_Account", "getActivePrivateHostedCloudPackages", nil, &r.Options, &resp) 302 return 303} 304 305// Retrieve An account's non-expired quotes. 306func (r Account) GetActiveQuotes() (resp []datatypes.Billing_Order_Quote, err error) { 307 err = r.Session.DoRequest("SoftLayer_Account", "getActiveQuotes", nil, &r.Options, &resp) 308 return 309} 310 311// Retrieve The virtual software licenses controlled by an account 312func (r Account) GetActiveVirtualLicenses() (resp []datatypes.Software_VirtualLicense, err error) { 313 err = r.Session.DoRequest("SoftLayer_Account", "getActiveVirtualLicenses", nil, &r.Options, &resp) 314 return 315} 316 317// Retrieve An account's associated load balancers. 318func (r Account) GetAdcLoadBalancers() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress, err error) { 319 err = r.Session.DoRequest("SoftLayer_Account", "getAdcLoadBalancers", nil, &r.Options, &resp) 320 return 321} 322 323// Retrieve All the address(es) that belong to an account. 324func (r Account) GetAddresses() (resp []datatypes.Account_Address, err error) { 325 err = r.Session.DoRequest("SoftLayer_Account", "getAddresses", nil, &r.Options, &resp) 326 return 327} 328 329// Retrieve An affiliate identifier associated with the customer account. 330func (r Account) GetAffiliateId() (resp string, err error) { 331 err = r.Session.DoRequest("SoftLayer_Account", "getAffiliateId", nil, &r.Options, &resp) 332 return 333} 334 335// Returns URL uptime data for your account 336func (r Account) GetAggregatedUptimeGraph(startDate *datatypes.Time, endDate *datatypes.Time) (resp datatypes.Container_Graph, err error) { 337 params := []interface{}{ 338 startDate, 339 endDate, 340 } 341 err = r.Session.DoRequest("SoftLayer_Account", "getAggregatedUptimeGraph", params, &r.Options, &resp) 342 return 343} 344 345// Retrieve The billing items that will be on an account's next invoice. 346func (r Account) GetAllBillingItems() (resp []datatypes.Billing_Item, err error) { 347 err = r.Session.DoRequest("SoftLayer_Account", "getAllBillingItems", nil, &r.Options, &resp) 348 return 349} 350 351// Retrieve The billing items that will be on an account's next invoice. 352func (r Account) GetAllCommissionBillingItems() (resp []datatypes.Billing_Item, err error) { 353 err = r.Session.DoRequest("SoftLayer_Account", "getAllCommissionBillingItems", nil, &r.Options, &resp) 354 return 355} 356 357// Retrieve The billing items that will be on an account's next invoice. 358func (r Account) GetAllRecurringTopLevelBillingItems() (resp []datatypes.Billing_Item, err error) { 359 err = r.Session.DoRequest("SoftLayer_Account", "getAllRecurringTopLevelBillingItems", nil, &r.Options, &resp) 360 return 361} 362 363// Retrieve The billing items that will be on an account's next invoice. Does not consider associated items. 364func (r Account) GetAllRecurringTopLevelBillingItemsUnfiltered() (resp []datatypes.Billing_Item, err error) { 365 err = r.Session.DoRequest("SoftLayer_Account", "getAllRecurringTopLevelBillingItemsUnfiltered", nil, &r.Options, &resp) 366 return 367} 368 369// Retrieve The billing items that will be on an account's next invoice. 370func (r Account) GetAllSubnetBillingItems() (resp []datatypes.Billing_Item, err error) { 371 err = r.Session.DoRequest("SoftLayer_Account", "getAllSubnetBillingItems", nil, &r.Options, &resp) 372 return 373} 374 375// Retrieve All billing items of an account. 376func (r Account) GetAllTopLevelBillingItems() (resp []datatypes.Billing_Item, err error) { 377 err = r.Session.DoRequest("SoftLayer_Account", "getAllTopLevelBillingItems", nil, &r.Options, &resp) 378 return 379} 380 381// Retrieve The billing items that will be on an account's next invoice. Does not consider associated items. 382func (r Account) GetAllTopLevelBillingItemsUnfiltered() (resp []datatypes.Billing_Item, err error) { 383 err = r.Session.DoRequest("SoftLayer_Account", "getAllTopLevelBillingItemsUnfiltered", nil, &r.Options, &resp) 384 return 385} 386 387// Retrieve Indicates whether this account is allowed to silently migrate to use IBMid Authentication. 388func (r Account) GetAllowIbmIdSilentMigrationFlag() (resp bool, err error) { 389 err = r.Session.DoRequest("SoftLayer_Account", "getAllowIbmIdSilentMigrationFlag", nil, &r.Options, &resp) 390 return 391} 392 393// Retrieve Flag indicating if this account can be linked with Bluemix. 394func (r Account) GetAllowsBluemixAccountLinkingFlag() (resp bool, err error) { 395 err = r.Session.DoRequest("SoftLayer_Account", "getAllowsBluemixAccountLinkingFlag", nil, &r.Options, &resp) 396 return 397} 398 399// no documentation yet 400func (r Account) GetAlternateCreditCardData() (resp datatypes.Container_Account_Payment_Method_CreditCard, err error) { 401 err = r.Session.DoRequest("SoftLayer_Account", "getAlternateCreditCardData", nil, &r.Options, &resp) 402 return 403} 404 405// Retrieve An account's associated application delivery controller records. 406func (r Account) GetApplicationDeliveryControllers() (resp []datatypes.Network_Application_Delivery_Controller, err error) { 407 err = r.Session.DoRequest("SoftLayer_Account", "getApplicationDeliveryControllers", nil, &r.Options, &resp) 408 return 409} 410 411// Retrieve a single [[SoftLayer_Account_Attribute]] record by its [[SoftLayer_Account_Attribute_Type|types's]] key name. 412func (r Account) GetAttributeByType(attributeType *string) (resp datatypes.Account_Attribute, err error) { 413 params := []interface{}{ 414 attributeType, 415 } 416 err = r.Session.DoRequest("SoftLayer_Account", "getAttributeByType", params, &r.Options, &resp) 417 return 418} 419 420// Retrieve The account attribute values for a SoftLayer customer account. 421func (r Account) GetAttributes() (resp []datatypes.Account_Attribute, err error) { 422 err = r.Session.DoRequest("SoftLayer_Account", "getAttributes", nil, &r.Options, &resp) 423 return 424} 425 426// no documentation yet 427func (r Account) GetAuxiliaryNotifications() (resp []datatypes.Container_Utility_Message, err error) { 428 err = r.Session.DoRequest("SoftLayer_Account", "getAuxiliaryNotifications", nil, &r.Options, &resp) 429 return 430} 431 432// Retrieve The public network VLANs assigned to an account. 433func (r Account) GetAvailablePublicNetworkVlans() (resp []datatypes.Network_Vlan, err error) { 434 err = r.Session.DoRequest("SoftLayer_Account", "getAvailablePublicNetworkVlans", nil, &r.Options, &resp) 435 return 436} 437 438// Returns the average disk space usage for all archive repositories. 439func (r Account) GetAverageArchiveUsageMetricDataByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp datatypes.Float64, err error) { 440 params := []interface{}{ 441 startDateTime, 442 endDateTime, 443 } 444 err = r.Session.DoRequest("SoftLayer_Account", "getAverageArchiveUsageMetricDataByDate", params, &r.Options, &resp) 445 return 446} 447 448// Returns the average disk space usage for all public repositories. 449func (r Account) GetAveragePublicUsageMetricDataByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp datatypes.Float64, err error) { 450 params := []interface{}{ 451 startDateTime, 452 endDateTime, 453 } 454 err = r.Session.DoRequest("SoftLayer_Account", "getAveragePublicUsageMetricDataByDate", params, &r.Options, &resp) 455 return 456} 457 458// Retrieve The account balance of a SoftLayer customer account. An account's balance is the amount of money owed to SoftLayer by the account holder, returned as a floating point number with two decimal places, measured in US Dollars ($USD). A negative account balance means the account holder has overpaid and is owed money by SoftLayer. 459func (r Account) GetBalance() (resp datatypes.Float64, err error) { 460 err = r.Session.DoRequest("SoftLayer_Account", "getBalance", nil, &r.Options, &resp) 461 return 462} 463 464// Retrieve The bandwidth allotments for an account. 465func (r Account) GetBandwidthAllotments() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { 466 err = r.Session.DoRequest("SoftLayer_Account", "getBandwidthAllotments", nil, &r.Options, &resp) 467 return 468} 469 470// Retrieve The bandwidth allotments for an account currently over allocation. 471func (r Account) GetBandwidthAllotmentsOverAllocation() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { 472 err = r.Session.DoRequest("SoftLayer_Account", "getBandwidthAllotmentsOverAllocation", nil, &r.Options, &resp) 473 return 474} 475 476// Retrieve The bandwidth allotments for an account projected to go over allocation. 477func (r Account) GetBandwidthAllotmentsProjectedOverAllocation() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { 478 err = r.Session.DoRequest("SoftLayer_Account", "getBandwidthAllotmentsProjectedOverAllocation", nil, &r.Options, &resp) 479 return 480} 481 482// Retrieve An account's associated bare metal server objects. 483func (r Account) GetBareMetalInstances() (resp []datatypes.Hardware, err error) { 484 err = r.Session.DoRequest("SoftLayer_Account", "getBareMetalInstances", nil, &r.Options, &resp) 485 return 486} 487 488// Retrieve All billing agreements for an account 489func (r Account) GetBillingAgreements() (resp []datatypes.Account_Agreement, err error) { 490 err = r.Session.DoRequest("SoftLayer_Account", "getBillingAgreements", nil, &r.Options, &resp) 491 return 492} 493 494// Retrieve An account's billing information. 495func (r Account) GetBillingInfo() (resp datatypes.Billing_Info, err error) { 496 err = r.Session.DoRequest("SoftLayer_Account", "getBillingInfo", nil, &r.Options, &resp) 497 return 498} 499 500// Retrieve Private template group objects (parent and children) and the shared template group objects (parent only) for an account. 501func (r Account) GetBlockDeviceTemplateGroups() (resp []datatypes.Virtual_Guest_Block_Device_Template_Group, err error) { 502 err = r.Session.DoRequest("SoftLayer_Account", "getBlockDeviceTemplateGroups", nil, &r.Options, &resp) 503 return 504} 505 506// Retrieve The Bluemix account link associated with this SoftLayer account, if one exists. 507func (r Account) GetBluemixAccountLink() (resp datatypes.Account_Link_Bluemix, err error) { 508 err = r.Session.DoRequest("SoftLayer_Account", "getBluemixAccountLink", nil, &r.Options, &resp) 509 return 510} 511 512// Retrieve Returns true if this account is linked to IBM Bluemix, false if not. 513func (r Account) GetBluemixLinkedFlag() (resp bool, err error) { 514 err = r.Session.DoRequest("SoftLayer_Account", "getBluemixLinkedFlag", nil, &r.Options, &resp) 515 return 516} 517 518// Retrieve 519func (r Account) GetBrand() (resp datatypes.Brand, err error) { 520 err = r.Session.DoRequest("SoftLayer_Account", "getBrand", nil, &r.Options, &resp) 521 return 522} 523 524// Retrieve 525func (r Account) GetBrandAccountFlag() (resp bool, err error) { 526 err = r.Session.DoRequest("SoftLayer_Account", "getBrandAccountFlag", nil, &r.Options, &resp) 527 return 528} 529 530// Retrieve The brand keyName. 531func (r Account) GetBrandKeyName() (resp string, err error) { 532 err = r.Session.DoRequest("SoftLayer_Account", "getBrandKeyName", nil, &r.Options, &resp) 533 return 534} 535 536// Retrieve The Business Partner details for the account. Country Enterprise Code, Channel, Segment, Reseller Level. 537func (r Account) GetBusinessPartner() (resp datatypes.Account_Business_Partner, err error) { 538 err = r.Session.DoRequest("SoftLayer_Account", "getBusinessPartner", nil, &r.Options, &resp) 539 return 540} 541 542// Retrieve Indicating whether this account can order additional Vlans. 543func (r Account) GetCanOrderAdditionalVlansFlag() (resp bool, err error) { 544 err = r.Session.DoRequest("SoftLayer_Account", "getCanOrderAdditionalVlansFlag", nil, &r.Options, &resp) 545 return 546} 547 548// Retrieve An account's active carts. 549func (r Account) GetCarts() (resp []datatypes.Billing_Order_Quote, err error) { 550 err = r.Session.DoRequest("SoftLayer_Account", "getCarts", nil, &r.Options, &resp) 551 return 552} 553 554// Retrieve 555func (r Account) GetCatalystEnrollments() (resp []datatypes.Catalyst_Enrollment, err error) { 556 err = r.Session.DoRequest("SoftLayer_Account", "getCatalystEnrollments", nil, &r.Options, &resp) 557 return 558} 559 560// Retrieve An account's associated CDN accounts. 561func (r Account) GetCdnAccounts() (resp []datatypes.Network_ContentDelivery_Account, err error) { 562 err = r.Session.DoRequest("SoftLayer_Account", "getCdnAccounts", nil, &r.Options, &resp) 563 return 564} 565 566// Retrieve All closed tickets associated with an account. 567func (r Account) GetClosedTickets() (resp []datatypes.Ticket, err error) { 568 err = r.Session.DoRequest("SoftLayer_Account", "getClosedTickets", nil, &r.Options, &resp) 569 return 570} 571 572// This method returns a SoftLayer_Container_Account_Graph_Outputs containing a base64 string PNG image. The optional parameter, detailedGraph, can be passed to get a more detailed graph. 573func (r Account) GetCurrentBackupStatisticsGraph(detailedGraph *bool) (resp datatypes.Container_Account_Graph_Outputs, err error) { 574 params := []interface{}{ 575 detailedGraph, 576 } 577 err = r.Session.DoRequest("SoftLayer_Account", "getCurrentBackupStatisticsGraph", params, &r.Options, &resp) 578 return 579} 580 581// no documentation yet 582func (r Account) GetCurrentTicketStatisticsGraph(detailedGraph *bool) (resp datatypes.Container_Account_Graph_Outputs, err error) { 583 params := []interface{}{ 584 detailedGraph, 585 } 586 err = r.Session.DoRequest("SoftLayer_Account", "getCurrentTicketStatisticsGraph", params, &r.Options, &resp) 587 return 588} 589 590// Retrieve the user record of the user calling the SoftLayer API. 591func (r Account) GetCurrentUser() (resp datatypes.User_Customer, err error) { 592 err = r.Session.DoRequest("SoftLayer_Account", "getCurrentUser", nil, &r.Options, &resp) 593 return 594} 595 596// Retrieve Datacenters which contain subnets that the account has access to route. 597func (r Account) GetDatacentersWithSubnetAllocations() (resp []datatypes.Location, err error) { 598 err = r.Session.DoRequest("SoftLayer_Account", "getDatacentersWithSubnetAllocations", nil, &r.Options, &resp) 599 return 600} 601 602// Retrieve An account's associated virtual dedicated host objects. 603func (r Account) GetDedicatedHosts() (resp []datatypes.Virtual_DedicatedHost, err error) { 604 err = r.Session.DoRequest("SoftLayer_Account", "getDedicatedHosts", nil, &r.Options, &resp) 605 return 606} 607 608// Retrieve A flag indicating whether payments are processed for this account. 609func (r Account) GetDisablePaymentProcessingFlag() (resp bool, err error) { 610 err = r.Session.DoRequest("SoftLayer_Account", "getDisablePaymentProcessingFlag", nil, &r.Options, &resp) 611 return 612} 613 614// Retrieve disk usage data on a [[SoftLayer_Virtual_Guest|Cloud Computing Instance]] image for the time range you provide from the Metric Tracking Object System and Legacy Data Warehouse. Each data entry objects contain ''dateTime'' and ''counter'' properties. ''dateTime'' property indicates the time that the disk usage data was measured and ''counter'' property holds the disk usage in bytes. 615func (r Account) GetDiskUsageMetricDataByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp []datatypes.Metric_Tracking_Object_Data, err error) { 616 params := []interface{}{ 617 startDateTime, 618 endDateTime, 619 } 620 err = r.Session.DoRequest("SoftLayer_Account", "getDiskUsageMetricDataByDate", params, &r.Options, &resp) 621 return 622} 623 624// Retrieve disk usage data on a [[SoftLayer_Virtual_Guest|Cloud Computing Instance]] image for the time range you provide from the Legacy Data Warehouse. Each data entry objects contain ''dateTime'' and ''counter'' properties. ''dateTime'' property indicates the time that the disk usage data was measured and ''counter'' property holds the disk usage in bytes. 625func (r Account) GetDiskUsageMetricDataFromLegacyByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp []datatypes.Metric_Tracking_Object_Data, err error) { 626 params := []interface{}{ 627 startDateTime, 628 endDateTime, 629 } 630 err = r.Session.DoRequest("SoftLayer_Account", "getDiskUsageMetricDataFromLegacyByDate", params, &r.Options, &resp) 631 return 632} 633 634// Retrieve disk usage data on a [[SoftLayer_Virtual_Guest|Cloud Computing Instance]] image for the time range you provide from the Metric Tracking Object System. Each data entry object contains ''dateTime'' and ''counter'' properties. ''dateTime'' property indicates the time that the disk usage data was measured and ''counter'' property holds the disk usage in bytes. 635func (r Account) GetDiskUsageMetricDataFromMetricTrackingObjectSystemByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp []datatypes.Metric_Tracking_Object_Data, err error) { 636 params := []interface{}{ 637 startDateTime, 638 endDateTime, 639 } 640 err = r.Session.DoRequest("SoftLayer_Account", "getDiskUsageMetricDataFromMetricTrackingObjectSystemByDate", params, &r.Options, &resp) 641 return 642} 643 644// Returns a disk usage image based on disk usage specified by the input parameters. 645func (r Account) GetDiskUsageMetricImageByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time) (resp datatypes.Container_Account_Graph_Outputs, err error) { 646 params := []interface{}{ 647 startDateTime, 648 endDateTime, 649 } 650 err = r.Session.DoRequest("SoftLayer_Account", "getDiskUsageMetricImageByDate", params, &r.Options, &resp) 651 return 652} 653 654// Retrieve The SoftLayer employees that an account is assigned to. 655func (r Account) GetDisplaySupportRepresentativeAssignments() (resp []datatypes.Account_Attachment_Employee, err error) { 656 err = r.Session.DoRequest("SoftLayer_Account", "getDisplaySupportRepresentativeAssignments", nil, &r.Options, &resp) 657 return 658} 659 660// Retrieve 661func (r Account) GetDomainRegistrations() (resp []datatypes.Dns_Domain_Registration, err error) { 662 err = r.Session.DoRequest("SoftLayer_Account", "getDomainRegistrations", nil, &r.Options, &resp) 663 return 664} 665 666// Retrieve The DNS domains associated with an account. 667func (r Account) GetDomains() (resp []datatypes.Dns_Domain, err error) { 668 err = r.Session.DoRequest("SoftLayer_Account", "getDomains", nil, &r.Options, &resp) 669 return 670} 671 672// Retrieve The DNS domains associated with an account that were not created as a result of a secondary DNS zone transfer. 673func (r Account) GetDomainsWithoutSecondaryDnsRecords() (resp []datatypes.Dns_Domain, err error) { 674 err = r.Session.DoRequest("SoftLayer_Account", "getDomainsWithoutSecondaryDnsRecords", nil, &r.Options, &resp) 675 return 676} 677 678// Retrieve Boolean flag dictating whether or not this account has the EU Supported flag. This flag indicates that this account uses IBM Cloud services to process EU citizen's personal data. 679func (r Account) GetEuSupportedFlag() (resp bool, err error) { 680 err = r.Session.DoRequest("SoftLayer_Account", "getEuSupportedFlag", nil, &r.Options, &resp) 681 return 682} 683 684// Retrieve The total capacity of Legacy EVault Volumes on an account, in GB. 685func (r Account) GetEvaultCapacityGB() (resp uint, err error) { 686 err = r.Session.DoRequest("SoftLayer_Account", "getEvaultCapacityGB", nil, &r.Options, &resp) 687 return 688} 689 690// Retrieve An account's master EVault user. This is only used when an account has EVault service. 691func (r Account) GetEvaultMasterUsers() (resp []datatypes.Account_Password, err error) { 692 err = r.Session.DoRequest("SoftLayer_Account", "getEvaultMasterUsers", nil, &r.Options, &resp) 693 return 694} 695 696// Retrieve An account's associated EVault storage volumes. 697func (r Account) GetEvaultNetworkStorage() (resp []datatypes.Network_Storage, err error) { 698 err = r.Session.DoRequest("SoftLayer_Account", "getEvaultNetworkStorage", nil, &r.Options, &resp) 699 return 700} 701 702// This method will return a PDF of the specified report, with the specified period within the start and end dates. The pdfType must be one of 'snapshot', or 'historical'. Possible historicalType parameters are 'monthly', 'yearly', and 'quarterly'. Start and end dates should be in ISO 8601 date format. 703func (r Account) GetExecutiveSummaryPdf(pdfType *string, historicalType *string, startDate *string, endDate *string) (resp []byte, err error) { 704 params := []interface{}{ 705 pdfType, 706 historicalType, 707 startDate, 708 endDate, 709 } 710 err = r.Session.DoRequest("SoftLayer_Account", "getExecutiveSummaryPdf", params, &r.Options, &resp) 711 return 712} 713 714// Retrieve Stored security certificates that are expired (ie. SSL) 715func (r Account) GetExpiredSecurityCertificates() (resp []datatypes.Security_Certificate, err error) { 716 err = r.Session.DoRequest("SoftLayer_Account", "getExpiredSecurityCertificates", nil, &r.Options, &resp) 717 return 718} 719 720// Retrieve Logs of who entered a colocation area which is assigned to this account, or when a user under this account enters a datacenter. 721func (r Account) GetFacilityLogs() (resp []datatypes.User_Access_Facility_Log, err error) { 722 err = r.Session.DoRequest("SoftLayer_Account", "getFacilityLogs", nil, &r.Options, &resp) 723 return 724} 725 726// Retrieve All of the account's current and former Flexible Credit enrollments. 727func (r Account) GetFlexibleCreditEnrollments() (resp []datatypes.FlexibleCredit_Enrollment, err error) { 728 err = r.Session.DoRequest("SoftLayer_Account", "getFlexibleCreditEnrollments", nil, &r.Options, &resp) 729 return 730} 731 732// This method will return a [[SoftLayer_Container_Account_Discount_Program]] object containing the Flexible Credit Program information for this account. To be considered an active participant, the account must have an enrollment record with a monthly credit amount set and the current date must be within the range defined by the enrollment and graduation date. The forNextBillCycle parameter can be set to true to return a SoftLayer_Container_Account_Discount_Program object with information with relation to the next bill cycle. The forNextBillCycle parameter defaults to false. Please note that all discount amount entries are reported as pre-tax amounts and the legacy tax fields in the [[SoftLayer_Container_Account_Discount_Program]] are deprecated. 733func (r Account) GetFlexibleCreditProgramInfo(forNextBillCycle *bool) (resp datatypes.Container_Account_Discount_Program, err error) { 734 params := []interface{}{ 735 forNextBillCycle, 736 } 737 err = r.Session.DoRequest("SoftLayer_Account", "getFlexibleCreditProgramInfo", params, &r.Options, &resp) 738 return 739} 740 741// Retrieve Timestamp representing the point in time when an account is required to link with PaaS. 742func (r Account) GetForcePaasAccountLinkDate() (resp string, err error) { 743 err = r.Session.DoRequest("SoftLayer_Account", "getForcePaasAccountLinkDate", nil, &r.Options, &resp) 744 return 745} 746 747// Retrieve 748func (r Account) GetGlobalIpRecords() (resp []datatypes.Network_Subnet_IpAddress_Global, err error) { 749 err = r.Session.DoRequest("SoftLayer_Account", "getGlobalIpRecords", nil, &r.Options, &resp) 750 return 751} 752 753// Retrieve 754func (r Account) GetGlobalIpv4Records() (resp []datatypes.Network_Subnet_IpAddress_Global, err error) { 755 err = r.Session.DoRequest("SoftLayer_Account", "getGlobalIpv4Records", nil, &r.Options, &resp) 756 return 757} 758 759// Retrieve 760func (r Account) GetGlobalIpv6Records() (resp []datatypes.Network_Subnet_IpAddress_Global, err error) { 761 err = r.Session.DoRequest("SoftLayer_Account", "getGlobalIpv6Records", nil, &r.Options, &resp) 762 return 763} 764 765// Retrieve The global load balancer accounts for a softlayer customer account. 766func (r Account) GetGlobalLoadBalancerAccounts() (resp []datatypes.Network_LoadBalancer_Global_Account, err error) { 767 err = r.Session.DoRequest("SoftLayer_Account", "getGlobalLoadBalancerAccounts", nil, &r.Options, &resp) 768 return 769} 770 771// Retrieve An account's associated hardware objects. 772func (r Account) GetHardware() (resp []datatypes.Hardware, err error) { 773 err = r.Session.DoRequest("SoftLayer_Account", "getHardware", nil, &r.Options, &resp) 774 return 775} 776 777// Retrieve An account's associated hardware objects currently over bandwidth allocation. 778func (r Account) GetHardwareOverBandwidthAllocation() (resp []datatypes.Hardware, err error) { 779 err = r.Session.DoRequest("SoftLayer_Account", "getHardwareOverBandwidthAllocation", nil, &r.Options, &resp) 780 return 781} 782 783// Return a collection of managed hardware pools. 784func (r Account) GetHardwarePools() (resp []datatypes.Container_Hardware_Pool_Details, err error) { 785 err = r.Session.DoRequest("SoftLayer_Account", "getHardwarePools", nil, &r.Options, &resp) 786 return 787} 788 789// Retrieve An account's associated hardware objects projected to go over bandwidth allocation. 790func (r Account) GetHardwareProjectedOverBandwidthAllocation() (resp []datatypes.Hardware, err error) { 791 err = r.Session.DoRequest("SoftLayer_Account", "getHardwareProjectedOverBandwidthAllocation", nil, &r.Options, &resp) 792 return 793} 794 795// Retrieve All hardware associated with an account that has the cPanel web hosting control panel installed. 796func (r Account) GetHardwareWithCpanel() (resp []datatypes.Hardware, err error) { 797 err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithCpanel", nil, &r.Options, &resp) 798 return 799} 800 801// Retrieve All hardware associated with an account that has the Helm web hosting control panel installed. 802func (r Account) GetHardwareWithHelm() (resp []datatypes.Hardware, err error) { 803 err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithHelm", nil, &r.Options, &resp) 804 return 805} 806 807// Retrieve All hardware associated with an account that has McAfee Secure software components. 808func (r Account) GetHardwareWithMcafee() (resp []datatypes.Hardware, err error) { 809 err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithMcafee", nil, &r.Options, &resp) 810 return 811} 812 813// Retrieve All hardware associated with an account that has McAfee Secure AntiVirus for Redhat software components. 814func (r Account) GetHardwareWithMcafeeAntivirusRedhat() (resp []datatypes.Hardware, err error) { 815 err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithMcafeeAntivirusRedhat", nil, &r.Options, &resp) 816 return 817} 818 819// Retrieve All hardware associated with an account that has McAfee Secure AntiVirus for Windows software components. 820func (r Account) GetHardwareWithMcafeeAntivirusWindows() (resp []datatypes.Hardware, err error) { 821 err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithMcafeeAntivirusWindows", nil, &r.Options, &resp) 822 return 823} 824 825// Retrieve All hardware associated with an account that has McAfee Secure Intrusion Detection System software components. 826func (r Account) GetHardwareWithMcafeeIntrusionDetectionSystem() (resp []datatypes.Hardware, err error) { 827 err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithMcafeeIntrusionDetectionSystem", nil, &r.Options, &resp) 828 return 829} 830 831// Retrieve All hardware associated with an account that has the Plesk web hosting control panel installed. 832func (r Account) GetHardwareWithPlesk() (resp []datatypes.Hardware, err error) { 833 err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithPlesk", nil, &r.Options, &resp) 834 return 835} 836 837// Retrieve All hardware associated with an account that has the QuantaStor storage system installed. 838func (r Account) GetHardwareWithQuantastor() (resp []datatypes.Hardware, err error) { 839 err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithQuantastor", nil, &r.Options, &resp) 840 return 841} 842 843// Retrieve All hardware associated with an account that has the Urchin web traffic analytics package installed. 844func (r Account) GetHardwareWithUrchin() (resp []datatypes.Hardware, err error) { 845 err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithUrchin", nil, &r.Options, &resp) 846 return 847} 848 849// Retrieve All hardware associated with an account that is running a version of the Microsoft Windows operating system. 850func (r Account) GetHardwareWithWindows() (resp []datatypes.Hardware, err error) { 851 err = r.Session.DoRequest("SoftLayer_Account", "getHardwareWithWindows", nil, &r.Options, &resp) 852 return 853} 854 855// Retrieve Return 1 if one of the account's hardware has the EVault Bare Metal Server Restore Plugin otherwise 0. 856func (r Account) GetHasEvaultBareMetalRestorePluginFlag() (resp bool, err error) { 857 err = r.Session.DoRequest("SoftLayer_Account", "getHasEvaultBareMetalRestorePluginFlag", nil, &r.Options, &resp) 858 return 859} 860 861// Retrieve Return 1 if one of the account's hardware has an installation of Idera Server Backup otherwise 0. 862func (r Account) GetHasIderaBareMetalRestorePluginFlag() (resp bool, err error) { 863 err = r.Session.DoRequest("SoftLayer_Account", "getHasIderaBareMetalRestorePluginFlag", nil, &r.Options, &resp) 864 return 865} 866 867// Retrieve The number of orders in a PENDING status for a SoftLayer customer account. 868func (r Account) GetHasPendingOrder() (resp uint, err error) { 869 err = r.Session.DoRequest("SoftLayer_Account", "getHasPendingOrder", nil, &r.Options, &resp) 870 return 871} 872 873// Retrieve Return 1 if one of the account's hardware has an installation of R1Soft CDP otherwise 0. 874func (r Account) GetHasR1softBareMetalRestorePluginFlag() (resp bool, err error) { 875 err = r.Session.DoRequest("SoftLayer_Account", "getHasR1softBareMetalRestorePluginFlag", nil, &r.Options, &resp) 876 return 877} 878 879// no documentation yet 880func (r Account) GetHistoricalBackupGraph(startDate *datatypes.Time, endDate *datatypes.Time) (resp datatypes.Container_Account_Graph_Outputs, err error) { 881 params := []interface{}{ 882 startDate, 883 endDate, 884 } 885 err = r.Session.DoRequest("SoftLayer_Account", "getHistoricalBackupGraph", params, &r.Options, &resp) 886 return 887} 888 889// This method will return a SoftLayer_Container_Account_Graph_Outputs object containing a base64 string PNG image of a line graph of bandwidth statistics given the start and end dates. The start and end dates should be valid ISO 8601 date formatted strings. 890func (r Account) GetHistoricalBandwidthGraph(startDate *datatypes.Time, endDate *datatypes.Time) (resp datatypes.Container_Account_Graph_Outputs, err error) { 891 params := []interface{}{ 892 startDate, 893 endDate, 894 } 895 err = r.Session.DoRequest("SoftLayer_Account", "getHistoricalBandwidthGraph", params, &r.Options, &resp) 896 return 897} 898 899// Given the start and end dates, this method will return a pie chart of ticket statistics in the form of SoftLayer_Container_Account_Graph_Outputs object with a base64 PNG string. If an error occurs the graphError parameter will be populated. Possible errors include: SoftLayer_Exception_Public Thrown if an invalid start or end date is provided. SoftLayer_Exception Thrown if there is an error connecting to HBase. SoftLayer_Exception Thrown if there is no data available for the specified date range. SoftLayer_Exception Thrown if there is an error retrieving data or generating the graph. 900func (r Account) GetHistoricalTicketGraph(startDate *datatypes.Time, endDate *datatypes.Time) (resp datatypes.Container_Account_Graph_Outputs, err error) { 901 params := []interface{}{ 902 startDate, 903 endDate, 904 } 905 err = r.Session.DoRequest("SoftLayer_Account", "getHistoricalTicketGraph", params, &r.Options, &resp) 906 return 907} 908 909// The graph image is returned as a base64 PNG string. Start and end dates should be formatted using the ISO 8601 date standard. If there is an error retrieving graph data or generating the graph string a graphError attribute will be returned. The graphError attribute may contain any of the following error messages: SoftLayer_Exception_Public Thrown if an invalid start or end date is provided. SoftLayer_Exception Thrown if there is an error connecting to HBase. SoftLayer_Exception Thrown if there is no data available for the specified date range. SoftLayer_Exception Thrown if there is an error retrieving data or generating the graph. 910func (r Account) GetHistoricalUptimeGraph(startDate *datatypes.Time, endDate *datatypes.Time) (resp datatypes.Container_Account_Graph_Outputs, err error) { 911 params := []interface{}{ 912 startDate, 913 endDate, 914 } 915 err = r.Session.DoRequest("SoftLayer_Account", "getHistoricalUptimeGraph", params, &r.Options, &resp) 916 return 917} 918 919// Retrieve An account's associated hourly bare metal server objects. 920func (r Account) GetHourlyBareMetalInstances() (resp []datatypes.Hardware, err error) { 921 err = r.Session.DoRequest("SoftLayer_Account", "getHourlyBareMetalInstances", nil, &r.Options, &resp) 922 return 923} 924 925// Retrieve Hourly service billing items that will be on an account's next invoice. 926func (r Account) GetHourlyServiceBillingItems() (resp []datatypes.Billing_Item, err error) { 927 err = r.Session.DoRequest("SoftLayer_Account", "getHourlyServiceBillingItems", nil, &r.Options, &resp) 928 return 929} 930 931// Retrieve An account's associated hourly virtual guest objects. 932func (r Account) GetHourlyVirtualGuests() (resp []datatypes.Virtual_Guest, err error) { 933 err = r.Session.DoRequest("SoftLayer_Account", "getHourlyVirtualGuests", nil, &r.Options, &resp) 934 return 935} 936 937// Retrieve An account's associated Virtual Storage volumes. 938func (r Account) GetHubNetworkStorage() (resp []datatypes.Network_Storage, err error) { 939 err = r.Session.DoRequest("SoftLayer_Account", "getHubNetworkStorage", nil, &r.Options, &resp) 940 return 941} 942 943// Retrieve Unique identifier for a customer used throughout IBM. 944func (r Account) GetIbmCustomerNumber() (resp string, err error) { 945 err = r.Session.DoRequest("SoftLayer_Account", "getIbmCustomerNumber", nil, &r.Options, &resp) 946 return 947} 948 949// Retrieve Indicates whether this account requires IBMid authentication. 950func (r Account) GetIbmIdAuthenticationRequiredFlag() (resp bool, err error) { 951 err = r.Session.DoRequest("SoftLayer_Account", "getIbmIdAuthenticationRequiredFlag", nil, &r.Options, &resp) 952 return 953} 954 955// Retrieve Timestamp representing the point in time when an account is required to use IBMid authentication. 956func (r Account) GetIbmIdMigrationExpirationTimestamp() (resp string, err error) { 957 err = r.Session.DoRequest("SoftLayer_Account", "getIbmIdMigrationExpirationTimestamp", nil, &r.Options, &resp) 958 return 959} 960 961// Retrieve An in progress request to switch billing systems. 962func (r Account) GetInProgressExternalAccountSetup() (resp datatypes.Account_External_Setup, err error) { 963 err = r.Session.DoRequest("SoftLayer_Account", "getInProgressExternalAccountSetup", nil, &r.Options, &resp) 964 return 965} 966 967// Retrieve 968func (r Account) GetInternalNotes() (resp []datatypes.Account_Note, err error) { 969 err = r.Session.DoRequest("SoftLayer_Account", "getInternalNotes", nil, &r.Options, &resp) 970 return 971} 972 973// Retrieve An account's associated billing invoices. 974func (r Account) GetInvoices() (resp []datatypes.Billing_Invoice, err error) { 975 err = r.Session.DoRequest("SoftLayer_Account", "getInvoices", nil, &r.Options, &resp) 976 return 977} 978 979// Retrieve 980func (r Account) GetIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) { 981 err = r.Session.DoRequest("SoftLayer_Account", "getIpAddresses", nil, &r.Options, &resp) 982 return 983} 984 985// Retrieve An account's associated iSCSI storage volumes. 986func (r Account) GetIscsiNetworkStorage() (resp []datatypes.Network_Storage, err error) { 987 err = r.Session.DoRequest("SoftLayer_Account", "getIscsiNetworkStorage", nil, &r.Options, &resp) 988 return 989} 990 991// Computes the number of available public secondary IP addresses, aligned to a subnet size. 992func (r Account) GetLargestAllowedSubnetCidr(numberOfHosts *int, locationId *int) (resp int, err error) { 993 params := []interface{}{ 994 numberOfHosts, 995 locationId, 996 } 997 err = r.Session.DoRequest("SoftLayer_Account", "getLargestAllowedSubnetCidr", params, &r.Options, &resp) 998 return 999} 1000 1001// Retrieve The most recently canceled billing item. 1002func (r Account) GetLastCanceledBillingItem() (resp datatypes.Billing_Item, err error) { 1003 err = r.Session.DoRequest("SoftLayer_Account", "getLastCanceledBillingItem", nil, &r.Options, &resp) 1004 return 1005} 1006 1007// Retrieve The most recent cancelled server billing item. 1008func (r Account) GetLastCancelledServerBillingItem() (resp datatypes.Billing_Item, err error) { 1009 err = r.Session.DoRequest("SoftLayer_Account", "getLastCancelledServerBillingItem", nil, &r.Options, &resp) 1010 return 1011} 1012 1013// Retrieve The five most recently closed abuse tickets associated with an account. 1014func (r Account) GetLastFiveClosedAbuseTickets() (resp []datatypes.Ticket, err error) { 1015 err = r.Session.DoRequest("SoftLayer_Account", "getLastFiveClosedAbuseTickets", nil, &r.Options, &resp) 1016 return 1017} 1018 1019// Retrieve The five most recently closed accounting tickets associated with an account. 1020func (r Account) GetLastFiveClosedAccountingTickets() (resp []datatypes.Ticket, err error) { 1021 err = r.Session.DoRequest("SoftLayer_Account", "getLastFiveClosedAccountingTickets", nil, &r.Options, &resp) 1022 return 1023} 1024 1025// Retrieve The five most recently closed tickets that do not belong to the abuse, accounting, sales, or support groups associated with an account. 1026func (r Account) GetLastFiveClosedOtherTickets() (resp []datatypes.Ticket, err error) { 1027 err = r.Session.DoRequest("SoftLayer_Account", "getLastFiveClosedOtherTickets", nil, &r.Options, &resp) 1028 return 1029} 1030 1031// Retrieve The five most recently closed sales tickets associated with an account. 1032func (r Account) GetLastFiveClosedSalesTickets() (resp []datatypes.Ticket, err error) { 1033 err = r.Session.DoRequest("SoftLayer_Account", "getLastFiveClosedSalesTickets", nil, &r.Options, &resp) 1034 return 1035} 1036 1037// Retrieve The five most recently closed support tickets associated with an account. 1038func (r Account) GetLastFiveClosedSupportTickets() (resp []datatypes.Ticket, err error) { 1039 err = r.Session.DoRequest("SoftLayer_Account", "getLastFiveClosedSupportTickets", nil, &r.Options, &resp) 1040 return 1041} 1042 1043// Retrieve The five most recently closed tickets associated with an account. 1044func (r Account) GetLastFiveClosedTickets() (resp []datatypes.Ticket, err error) { 1045 err = r.Session.DoRequest("SoftLayer_Account", "getLastFiveClosedTickets", nil, &r.Options, &resp) 1046 return 1047} 1048 1049// Retrieve An account's most recent billing date. 1050func (r Account) GetLatestBillDate() (resp datatypes.Time, err error) { 1051 err = r.Session.DoRequest("SoftLayer_Account", "getLatestBillDate", nil, &r.Options, &resp) 1052 return 1053} 1054 1055// Retrieve An account's latest recurring invoice. 1056func (r Account) GetLatestRecurringInvoice() (resp datatypes.Billing_Invoice, err error) { 1057 err = r.Session.DoRequest("SoftLayer_Account", "getLatestRecurringInvoice", nil, &r.Options, &resp) 1058 return 1059} 1060 1061// Retrieve An account's latest recurring pending invoice. 1062func (r Account) GetLatestRecurringPendingInvoice() (resp datatypes.Billing_Invoice, err error) { 1063 err = r.Session.DoRequest("SoftLayer_Account", "getLatestRecurringPendingInvoice", nil, &r.Options, &resp) 1064 return 1065} 1066 1067// Retrieve The legacy bandwidth allotments for an account. 1068func (r Account) GetLegacyBandwidthAllotments() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { 1069 err = r.Session.DoRequest("SoftLayer_Account", "getLegacyBandwidthAllotments", nil, &r.Options, &resp) 1070 return 1071} 1072 1073// Retrieve The total capacity of Legacy iSCSI Volumes on an account, in GB. 1074func (r Account) GetLegacyIscsiCapacityGB() (resp uint, err error) { 1075 err = r.Session.DoRequest("SoftLayer_Account", "getLegacyIscsiCapacityGB", nil, &r.Options, &resp) 1076 return 1077} 1078 1079// Retrieve An account's associated load balancers. 1080func (r Account) GetLoadBalancers() (resp []datatypes.Network_LoadBalancer_VirtualIpAddress, err error) { 1081 err = r.Session.DoRequest("SoftLayer_Account", "getLoadBalancers", nil, &r.Options, &resp) 1082 return 1083} 1084 1085// Retrieve The total capacity of Legacy lockbox Volumes on an account, in GB. 1086func (r Account) GetLockboxCapacityGB() (resp uint, err error) { 1087 err = r.Session.DoRequest("SoftLayer_Account", "getLockboxCapacityGB", nil, &r.Options, &resp) 1088 return 1089} 1090 1091// Retrieve An account's associated Lockbox storage volumes. 1092func (r Account) GetLockboxNetworkStorage() (resp []datatypes.Network_Storage, err error) { 1093 err = r.Session.DoRequest("SoftLayer_Account", "getLockboxNetworkStorage", nil, &r.Options, &resp) 1094 return 1095} 1096 1097// Retrieve 1098func (r Account) GetManualPaymentsUnderReview() (resp []datatypes.Billing_Payment_Card_ManualPayment, err error) { 1099 err = r.Session.DoRequest("SoftLayer_Account", "getManualPaymentsUnderReview", nil, &r.Options, &resp) 1100 return 1101} 1102 1103// Retrieve An account's master user. 1104func (r Account) GetMasterUser() (resp datatypes.User_Customer, err error) { 1105 err = r.Session.DoRequest("SoftLayer_Account", "getMasterUser", nil, &r.Options, &resp) 1106 return 1107} 1108 1109// Retrieve An account's media transfer service requests. 1110func (r Account) GetMediaDataTransferRequests() (resp []datatypes.Account_Media_Data_Transfer_Request, err error) { 1111 err = r.Session.DoRequest("SoftLayer_Account", "getMediaDataTransferRequests", nil, &r.Options, &resp) 1112 return 1113} 1114 1115// Retrieve An account's associated monthly bare metal server objects. 1116func (r Account) GetMonthlyBareMetalInstances() (resp []datatypes.Hardware, err error) { 1117 err = r.Session.DoRequest("SoftLayer_Account", "getMonthlyBareMetalInstances", nil, &r.Options, &resp) 1118 return 1119} 1120 1121// Retrieve An account's associated monthly virtual guest objects. 1122func (r Account) GetMonthlyVirtualGuests() (resp []datatypes.Virtual_Guest, err error) { 1123 err = r.Session.DoRequest("SoftLayer_Account", "getMonthlyVirtualGuests", nil, &r.Options, &resp) 1124 return 1125} 1126 1127// Retrieve An account's associated NAS storage volumes. 1128func (r Account) GetNasNetworkStorage() (resp []datatypes.Network_Storage, err error) { 1129 err = r.Session.DoRequest("SoftLayer_Account", "getNasNetworkStorage", nil, &r.Options, &resp) 1130 return 1131} 1132 1133// This returns a collection of active NetApp software account license keys. 1134func (r Account) GetNetAppActiveAccountLicenseKeys() (resp []string, err error) { 1135 err = r.Session.DoRequest("SoftLayer_Account", "getNetAppActiveAccountLicenseKeys", nil, &r.Options, &resp) 1136 return 1137} 1138 1139// Retrieve Whether or not this account can define their own networks. 1140func (r Account) GetNetworkCreationFlag() (resp bool, err error) { 1141 err = r.Session.DoRequest("SoftLayer_Account", "getNetworkCreationFlag", nil, &r.Options, &resp) 1142 return 1143} 1144 1145// Retrieve All network gateway devices on this account. 1146func (r Account) GetNetworkGateways() (resp []datatypes.Network_Gateway, err error) { 1147 err = r.Session.DoRequest("SoftLayer_Account", "getNetworkGateways", nil, &r.Options, &resp) 1148 return 1149} 1150 1151// Retrieve An account's associated network hardware. 1152func (r Account) GetNetworkHardware() (resp []datatypes.Hardware, err error) { 1153 err = r.Session.DoRequest("SoftLayer_Account", "getNetworkHardware", nil, &r.Options, &resp) 1154 return 1155} 1156 1157// Retrieve 1158func (r Account) GetNetworkMessageDeliveryAccounts() (resp []datatypes.Network_Message_Delivery, err error) { 1159 err = r.Session.DoRequest("SoftLayer_Account", "getNetworkMessageDeliveryAccounts", nil, &r.Options, &resp) 1160 return 1161} 1162 1163// Retrieve Hardware which is currently experiencing a service failure. 1164func (r Account) GetNetworkMonitorDownHardware() (resp []datatypes.Hardware, err error) { 1165 err = r.Session.DoRequest("SoftLayer_Account", "getNetworkMonitorDownHardware", nil, &r.Options, &resp) 1166 return 1167} 1168 1169// Retrieve Virtual guest which is currently experiencing a service failure. 1170func (r Account) GetNetworkMonitorDownVirtualGuests() (resp []datatypes.Virtual_Guest, err error) { 1171 err = r.Session.DoRequest("SoftLayer_Account", "getNetworkMonitorDownVirtualGuests", nil, &r.Options, &resp) 1172 return 1173} 1174 1175// Retrieve Hardware which is currently recovering from a service failure. 1176func (r Account) GetNetworkMonitorRecoveringHardware() (resp []datatypes.Hardware, err error) { 1177 err = r.Session.DoRequest("SoftLayer_Account", "getNetworkMonitorRecoveringHardware", nil, &r.Options, &resp) 1178 return 1179} 1180 1181// Retrieve Virtual guest which is currently recovering from a service failure. 1182func (r Account) GetNetworkMonitorRecoveringVirtualGuests() (resp []datatypes.Virtual_Guest, err error) { 1183 err = r.Session.DoRequest("SoftLayer_Account", "getNetworkMonitorRecoveringVirtualGuests", nil, &r.Options, &resp) 1184 return 1185} 1186 1187// Retrieve Hardware which is currently online. 1188func (r Account) GetNetworkMonitorUpHardware() (resp []datatypes.Hardware, err error) { 1189 err = r.Session.DoRequest("SoftLayer_Account", "getNetworkMonitorUpHardware", nil, &r.Options, &resp) 1190 return 1191} 1192 1193// Retrieve Virtual guest which is currently online. 1194func (r Account) GetNetworkMonitorUpVirtualGuests() (resp []datatypes.Virtual_Guest, err error) { 1195 err = r.Session.DoRequest("SoftLayer_Account", "getNetworkMonitorUpVirtualGuests", nil, &r.Options, &resp) 1196 return 1197} 1198 1199// Retrieve An account's associated storage volumes. This includes Lockbox, NAS, EVault, and iSCSI volumes. 1200func (r Account) GetNetworkStorage() (resp []datatypes.Network_Storage, err error) { 1201 err = r.Session.DoRequest("SoftLayer_Account", "getNetworkStorage", nil, &r.Options, &resp) 1202 return 1203} 1204 1205// Retrieve An account's Network Storage groups. 1206func (r Account) GetNetworkStorageGroups() (resp []datatypes.Network_Storage_Group, err error) { 1207 err = r.Session.DoRequest("SoftLayer_Account", "getNetworkStorageGroups", nil, &r.Options, &resp) 1208 return 1209} 1210 1211// Retrieve IPSec network tunnels for an account. 1212func (r Account) GetNetworkTunnelContexts() (resp []datatypes.Network_Tunnel_Module_Context, err error) { 1213 err = r.Session.DoRequest("SoftLayer_Account", "getNetworkTunnelContexts", nil, &r.Options, &resp) 1214 return 1215} 1216 1217// Retrieve Whether or not an account has automatic private VLAN spanning enabled. 1218func (r Account) GetNetworkVlanSpan() (resp datatypes.Account_Network_Vlan_Span, err error) { 1219 err = r.Session.DoRequest("SoftLayer_Account", "getNetworkVlanSpan", nil, &r.Options, &resp) 1220 return 1221} 1222 1223// Retrieve All network VLANs assigned to an account. 1224func (r Account) GetNetworkVlans() (resp []datatypes.Network_Vlan, err error) { 1225 err = r.Session.DoRequest("SoftLayer_Account", "getNetworkVlans", nil, &r.Options, &resp) 1226 return 1227} 1228 1229// Retrieve DEPRECATED - This information can be pulled directly through tapping keys now - DEPRECATED. The allotments for this account and their servers for the next billing cycle. The public inbound and outbound bandwidth is calculated for each server in addition to the daily average network traffic since the last billing date. 1230func (r Account) GetNextBillingPublicAllotmentHardwareBandwidthDetails() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { 1231 err = r.Session.DoRequest("SoftLayer_Account", "getNextBillingPublicAllotmentHardwareBandwidthDetails", nil, &r.Options, &resp) 1232 return 1233} 1234 1235// Return an account's next invoice in a Microsoft excel format. The "next invoice" is what a customer will be billed on their next invoice, assuming no changes are made. Currently this does not include Bandwidth Pooling charges. 1236func (r Account) GetNextInvoiceExcel(documentCreateDate *datatypes.Time) (resp []byte, err error) { 1237 params := []interface{}{ 1238 documentCreateDate, 1239 } 1240 err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceExcel", params, &r.Options, &resp) 1241 return 1242} 1243 1244// Retrieve The pre-tax total amount exempt from incubator credit for the account's next invoice. This field is now deprecated and will soon be removed. Please update all references to instead use nextInvoiceTotalAmount 1245func (r Account) GetNextInvoiceIncubatorExemptTotal() (resp datatypes.Float64, err error) { 1246 err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceIncubatorExemptTotal", nil, &r.Options, &resp) 1247 return 1248} 1249 1250// Return an account's next invoice in PDF format. The "next invoice" is what a customer will be billed on their next invoice, assuming no changes are made. Currently this does not include Bandwidth Pooling charges. 1251func (r Account) GetNextInvoicePdf(documentCreateDate *datatypes.Time) (resp []byte, err error) { 1252 params := []interface{}{ 1253 documentCreateDate, 1254 } 1255 err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoicePdf", params, &r.Options, &resp) 1256 return 1257} 1258 1259// Return an account's next invoice detailed portion in PDF format. The "next invoice" is what a customer will be billed on their next invoice, assuming no changes are made. Currently this does not include Bandwidth Pooling charges. 1260func (r Account) GetNextInvoicePdfDetailed(documentCreateDate *datatypes.Time) (resp []byte, err error) { 1261 params := []interface{}{ 1262 documentCreateDate, 1263 } 1264 err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoicePdfDetailed", params, &r.Options, &resp) 1265 return 1266} 1267 1268// Retrieve The billing items that will be on an account's next invoice. 1269func (r Account) GetNextInvoiceTopLevelBillingItems() (resp []datatypes.Billing_Item, err error) { 1270 err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceTopLevelBillingItems", nil, &r.Options, &resp) 1271 return 1272} 1273 1274// Retrieve The pre-tax total amount of an account's next invoice measured in US Dollars ($USD), assuming no changes or charges occur between now and time of billing. 1275func (r Account) GetNextInvoiceTotalAmount() (resp datatypes.Float64, err error) { 1276 err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceTotalAmount", nil, &r.Options, &resp) 1277 return 1278} 1279 1280// Retrieve The total one-time charge amount of an account's next invoice measured in US Dollars ($USD), assuming no changes or charges occur between now and time of billing. 1281func (r Account) GetNextInvoiceTotalOneTimeAmount() (resp datatypes.Float64, err error) { 1282 err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceTotalOneTimeAmount", nil, &r.Options, &resp) 1283 return 1284} 1285 1286// Retrieve The total one-time tax amount of an account's next invoice measured in US Dollars ($USD), assuming no changes or charges occur between now and time of billing. 1287func (r Account) GetNextInvoiceTotalOneTimeTaxAmount() (resp datatypes.Float64, err error) { 1288 err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceTotalOneTimeTaxAmount", nil, &r.Options, &resp) 1289 return 1290} 1291 1292// Retrieve The total recurring charge amount of an account's next invoice measured in US Dollars ($USD), assuming no changes or charges occur between now and time of billing. 1293func (r Account) GetNextInvoiceTotalRecurringAmount() (resp datatypes.Float64, err error) { 1294 err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceTotalRecurringAmount", nil, &r.Options, &resp) 1295 return 1296} 1297 1298// Retrieve The total recurring charge amount of an account's next invoice measured in US Dollars ($USD), assuming no changes or charges occur between now and time of billing. 1299func (r Account) GetNextInvoiceTotalRecurringAmountBeforeAccountDiscount() (resp datatypes.Float64, err error) { 1300 err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceTotalRecurringAmountBeforeAccountDiscount", nil, &r.Options, &resp) 1301 return 1302} 1303 1304// Retrieve The total recurring tax amount of an account's next invoice measured in US Dollars ($USD), assuming no changes or charges occur between now and time of billing. 1305func (r Account) GetNextInvoiceTotalRecurringTaxAmount() (resp datatypes.Float64, err error) { 1306 err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceTotalRecurringTaxAmount", nil, &r.Options, &resp) 1307 return 1308} 1309 1310// Retrieve The total recurring charge amount of an account's next invoice measured in US Dollars ($USD), assuming no changes or charges occur between now and time of billing. 1311func (r Account) GetNextInvoiceTotalTaxableRecurringAmount() (resp datatypes.Float64, err error) { 1312 err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceTotalTaxableRecurringAmount", nil, &r.Options, &resp) 1313 return 1314} 1315 1316// no documentation yet 1317func (r Account) GetNextInvoiceZeroFeeItemCounts() (resp []datatypes.Container_Product_Item_Category_ZeroFee_Count, err error) { 1318 err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceZeroFeeItemCounts", nil, &r.Options, &resp) 1319 return 1320} 1321 1322// Retrieve 1323func (r Account) GetNotificationSubscribers() (resp []datatypes.Notification_Subscriber, err error) { 1324 err = r.Session.DoRequest("SoftLayer_Account", "getNotificationSubscribers", nil, &r.Options, &resp) 1325 return 1326} 1327 1328// getObject retrieves the SoftLayer_Account object whose ID number corresponds to the ID number of the init parameter passed to the SoftLayer_Account service. You can only retrieve the account that your portal user is assigned to. 1329func (r Account) GetObject() (resp datatypes.Account, err error) { 1330 err = r.Session.DoRequest("SoftLayer_Account", "getObject", nil, &r.Options, &resp) 1331 return 1332} 1333 1334// Retrieve The open abuse tickets associated with an account. 1335func (r Account) GetOpenAbuseTickets() (resp []datatypes.Ticket, err error) { 1336 err = r.Session.DoRequest("SoftLayer_Account", "getOpenAbuseTickets", nil, &r.Options, &resp) 1337 return 1338} 1339 1340// Retrieve The open accounting tickets associated with an account. 1341func (r Account) GetOpenAccountingTickets() (resp []datatypes.Ticket, err error) { 1342 err = r.Session.DoRequest("SoftLayer_Account", "getOpenAccountingTickets", nil, &r.Options, &resp) 1343 return 1344} 1345 1346// Retrieve The open billing tickets associated with an account. 1347func (r Account) GetOpenBillingTickets() (resp []datatypes.Ticket, err error) { 1348 err = r.Session.DoRequest("SoftLayer_Account", "getOpenBillingTickets", nil, &r.Options, &resp) 1349 return 1350} 1351 1352// Retrieve An open ticket requesting cancellation of this server, if one exists. 1353func (r Account) GetOpenCancellationRequests() (resp []datatypes.Billing_Item_Cancellation_Request, err error) { 1354 err = r.Session.DoRequest("SoftLayer_Account", "getOpenCancellationRequests", nil, &r.Options, &resp) 1355 return 1356} 1357 1358// Retrieve The open tickets that do not belong to the abuse, accounting, sales, or support groups associated with an account. 1359func (r Account) GetOpenOtherTickets() (resp []datatypes.Ticket, err error) { 1360 err = r.Session.DoRequest("SoftLayer_Account", "getOpenOtherTickets", nil, &r.Options, &resp) 1361 return 1362} 1363 1364// Retrieve An account's recurring invoices. 1365func (r Account) GetOpenRecurringInvoices() (resp []datatypes.Billing_Invoice, err error) { 1366 err = r.Session.DoRequest("SoftLayer_Account", "getOpenRecurringInvoices", nil, &r.Options, &resp) 1367 return 1368} 1369 1370// Retrieve The open sales tickets associated with an account. 1371func (r Account) GetOpenSalesTickets() (resp []datatypes.Ticket, err error) { 1372 err = r.Session.DoRequest("SoftLayer_Account", "getOpenSalesTickets", nil, &r.Options, &resp) 1373 return 1374} 1375 1376// Retrieve 1377func (r Account) GetOpenStackAccountLinks() (resp []datatypes.Account_Link, err error) { 1378 err = r.Session.DoRequest("SoftLayer_Account", "getOpenStackAccountLinks", nil, &r.Options, &resp) 1379 return 1380} 1381 1382// Retrieve An account's associated Openstack related Object Storage accounts. 1383func (r Account) GetOpenStackObjectStorage() (resp []datatypes.Network_Storage, err error) { 1384 err = r.Session.DoRequest("SoftLayer_Account", "getOpenStackObjectStorage", nil, &r.Options, &resp) 1385 return 1386} 1387 1388// Retrieve The open support tickets associated with an account. 1389func (r Account) GetOpenSupportTickets() (resp []datatypes.Ticket, err error) { 1390 err = r.Session.DoRequest("SoftLayer_Account", "getOpenSupportTickets", nil, &r.Options, &resp) 1391 return 1392} 1393 1394// Retrieve All open tickets associated with an account. 1395func (r Account) GetOpenTickets() (resp []datatypes.Ticket, err error) { 1396 err = r.Session.DoRequest("SoftLayer_Account", "getOpenTickets", nil, &r.Options, &resp) 1397 return 1398} 1399 1400// Retrieve All open tickets associated with an account last edited by an employee. 1401func (r Account) GetOpenTicketsWaitingOnCustomer() (resp []datatypes.Ticket, err error) { 1402 err = r.Session.DoRequest("SoftLayer_Account", "getOpenTicketsWaitingOnCustomer", nil, &r.Options, &resp) 1403 return 1404} 1405 1406// Retrieve An account's associated billing orders excluding upgrades. 1407func (r Account) GetOrders() (resp []datatypes.Billing_Order, err error) { 1408 err = r.Session.DoRequest("SoftLayer_Account", "getOrders", nil, &r.Options, &resp) 1409 return 1410} 1411 1412// Retrieve The billing items that have no parent billing item. These are items that don't necessarily belong to a single server. 1413func (r Account) GetOrphanBillingItems() (resp []datatypes.Billing_Item, err error) { 1414 err = r.Session.DoRequest("SoftLayer_Account", "getOrphanBillingItems", nil, &r.Options, &resp) 1415 return 1416} 1417 1418// Retrieve 1419func (r Account) GetOwnedBrands() (resp []datatypes.Brand, err error) { 1420 err = r.Session.DoRequest("SoftLayer_Account", "getOwnedBrands", nil, &r.Options, &resp) 1421 return 1422} 1423 1424// Retrieve 1425func (r Account) GetOwnedHardwareGenericComponentModels() (resp []datatypes.Hardware_Component_Model_Generic, err error) { 1426 err = r.Session.DoRequest("SoftLayer_Account", "getOwnedHardwareGenericComponentModels", nil, &r.Options, &resp) 1427 return 1428} 1429 1430// Retrieve 1431func (r Account) GetPaymentProcessors() (resp []datatypes.Billing_Payment_Processor, err error) { 1432 err = r.Session.DoRequest("SoftLayer_Account", "getPaymentProcessors", nil, &r.Options, &resp) 1433 return 1434} 1435 1436// Before being approved for general use, a credit card must be approved by a SoftLayer agent. Once a credit card change request has been either approved or denied, the change request will no longer appear in the list of pending change requests. This method will return a list of all pending change requests as well as a portion of the data from the original request. 1437func (r Account) GetPendingCreditCardChangeRequestData() (resp []datatypes.Container_Account_Payment_Method_CreditCard, err error) { 1438 err = r.Session.DoRequest("SoftLayer_Account", "getPendingCreditCardChangeRequestData", nil, &r.Options, &resp) 1439 return 1440} 1441 1442// Retrieve 1443func (r Account) GetPendingEvents() (resp []datatypes.Notification_Occurrence_Event, err error) { 1444 err = r.Session.DoRequest("SoftLayer_Account", "getPendingEvents", nil, &r.Options, &resp) 1445 return 1446} 1447 1448// Retrieve An account's latest open (pending) invoice. 1449func (r Account) GetPendingInvoice() (resp datatypes.Billing_Invoice, err error) { 1450 err = r.Session.DoRequest("SoftLayer_Account", "getPendingInvoice", nil, &r.Options, &resp) 1451 return 1452} 1453 1454// Retrieve A list of top-level invoice items that are on an account's currently pending invoice. 1455func (r Account) GetPendingInvoiceTopLevelItems() (resp []datatypes.Billing_Invoice_Item, err error) { 1456 err = r.Session.DoRequest("SoftLayer_Account", "getPendingInvoiceTopLevelItems", nil, &r.Options, &resp) 1457 return 1458} 1459 1460// Retrieve The total amount of an account's pending invoice, if one exists. 1461func (r Account) GetPendingInvoiceTotalAmount() (resp datatypes.Float64, err error) { 1462 err = r.Session.DoRequest("SoftLayer_Account", "getPendingInvoiceTotalAmount", nil, &r.Options, &resp) 1463 return 1464} 1465 1466// Retrieve The total one-time charges for an account's pending invoice, if one exists. In other words, it is the sum of one-time charges, setup fees, and labor fees. It does not include taxes. 1467func (r Account) GetPendingInvoiceTotalOneTimeAmount() (resp datatypes.Float64, err error) { 1468 err = r.Session.DoRequest("SoftLayer_Account", "getPendingInvoiceTotalOneTimeAmount", nil, &r.Options, &resp) 1469 return 1470} 1471 1472// Retrieve The sum of all the taxes related to one time charges for an account's pending invoice, if one exists. 1473func (r Account) GetPendingInvoiceTotalOneTimeTaxAmount() (resp datatypes.Float64, err error) { 1474 err = r.Session.DoRequest("SoftLayer_Account", "getPendingInvoiceTotalOneTimeTaxAmount", nil, &r.Options, &resp) 1475 return 1476} 1477 1478// Retrieve The total recurring amount of an account's pending invoice, if one exists. 1479func (r Account) GetPendingInvoiceTotalRecurringAmount() (resp datatypes.Float64, err error) { 1480 err = r.Session.DoRequest("SoftLayer_Account", "getPendingInvoiceTotalRecurringAmount", nil, &r.Options, &resp) 1481 return 1482} 1483 1484// Retrieve The total amount of the recurring taxes on an account's pending invoice, if one exists. 1485func (r Account) GetPendingInvoiceTotalRecurringTaxAmount() (resp datatypes.Float64, err error) { 1486 err = r.Session.DoRequest("SoftLayer_Account", "getPendingInvoiceTotalRecurringTaxAmount", nil, &r.Options, &resp) 1487 return 1488} 1489 1490// Retrieve An account's permission groups. 1491func (r Account) GetPermissionGroups() (resp []datatypes.User_Permission_Group, err error) { 1492 err = r.Session.DoRequest("SoftLayer_Account", "getPermissionGroups", nil, &r.Options, &resp) 1493 return 1494} 1495 1496// Retrieve An account's user roles. 1497func (r Account) GetPermissionRoles() (resp []datatypes.User_Permission_Role, err error) { 1498 err = r.Session.DoRequest("SoftLayer_Account", "getPermissionRoles", nil, &r.Options, &resp) 1499 return 1500} 1501 1502// Retrieve 1503func (r Account) GetPortableStorageVolumes() (resp []datatypes.Virtual_Disk_Image, err error) { 1504 err = r.Session.DoRequest("SoftLayer_Account", "getPortableStorageVolumes", nil, &r.Options, &resp) 1505 return 1506} 1507 1508// Retrieve Customer specified URIs that are downloaded onto a newly provisioned or reloaded server. If the URI is sent over https it will be executed directly on the server. 1509func (r Account) GetPostProvisioningHooks() (resp []datatypes.Provisioning_Hook, err error) { 1510 err = r.Session.DoRequest("SoftLayer_Account", "getPostProvisioningHooks", nil, &r.Options, &resp) 1511 return 1512} 1513 1514// Retrieve Boolean flag dictating whether or not this account supports PPTP VPN Access. 1515func (r Account) GetPptpVpnAllowedFlag() (resp bool, err error) { 1516 err = r.Session.DoRequest("SoftLayer_Account", "getPptpVpnAllowedFlag", nil, &r.Options, &resp) 1517 return 1518} 1519 1520// Retrieve An account's associated portal users with PPTP VPN access. 1521func (r Account) GetPptpVpnUsers() (resp []datatypes.User_Customer, err error) { 1522 err = r.Session.DoRequest("SoftLayer_Account", "getPptpVpnUsers", nil, &r.Options, &resp) 1523 return 1524} 1525 1526// Retrieve The total recurring amount for an accounts previous revenue. 1527func (r Account) GetPreviousRecurringRevenue() (resp datatypes.Float64, err error) { 1528 err = r.Session.DoRequest("SoftLayer_Account", "getPreviousRecurringRevenue", nil, &r.Options, &resp) 1529 return 1530} 1531 1532// Retrieve The item price that an account is restricted to. 1533func (r Account) GetPriceRestrictions() (resp []datatypes.Product_Item_Price_Account_Restriction, err error) { 1534 err = r.Session.DoRequest("SoftLayer_Account", "getPriceRestrictions", nil, &r.Options, &resp) 1535 return 1536} 1537 1538// Retrieve All priority one tickets associated with an account. 1539func (r Account) GetPriorityOneTickets() (resp []datatypes.Ticket, err error) { 1540 err = r.Session.DoRequest("SoftLayer_Account", "getPriorityOneTickets", nil, &r.Options, &resp) 1541 return 1542} 1543 1544// Retrieve DEPRECATED - This information can be pulled directly through tapping keys now - DEPRECATED. The allotments for this account and their servers. The private inbound and outbound bandwidth is calculated for each server in addition to the daily average network traffic since the last billing date. 1545func (r Account) GetPrivateAllotmentHardwareBandwidthDetails() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { 1546 err = r.Session.DoRequest("SoftLayer_Account", "getPrivateAllotmentHardwareBandwidthDetails", nil, &r.Options, &resp) 1547 return 1548} 1549 1550// Retrieve Private and shared template group objects (parent only) for an account. 1551func (r Account) GetPrivateBlockDeviceTemplateGroups() (resp []datatypes.Virtual_Guest_Block_Device_Template_Group, err error) { 1552 err = r.Session.DoRequest("SoftLayer_Account", "getPrivateBlockDeviceTemplateGroups", nil, &r.Options, &resp) 1553 return 1554} 1555 1556// Retrieve 1557func (r Account) GetPrivateIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) { 1558 err = r.Session.DoRequest("SoftLayer_Account", "getPrivateIpAddresses", nil, &r.Options, &resp) 1559 return 1560} 1561 1562// Retrieve The private network VLANs assigned to an account. 1563func (r Account) GetPrivateNetworkVlans() (resp []datatypes.Network_Vlan, err error) { 1564 err = r.Session.DoRequest("SoftLayer_Account", "getPrivateNetworkVlans", nil, &r.Options, &resp) 1565 return 1566} 1567 1568// Retrieve All private subnets associated with an account. 1569func (r Account) GetPrivateSubnets() (resp []datatypes.Network_Subnet, err error) { 1570 err = r.Session.DoRequest("SoftLayer_Account", "getPrivateSubnets", nil, &r.Options, &resp) 1571 return 1572} 1573 1574// Retrieve Boolean flag indicating whether or not this account is a Proof of Concept account. 1575func (r Account) GetProofOfConceptAccountFlag() (resp bool, err error) { 1576 err = r.Session.DoRequest("SoftLayer_Account", "getProofOfConceptAccountFlag", nil, &r.Options, &resp) 1577 return 1578} 1579 1580// Retrieve DEPRECATED - This information can be pulled directly through tapping keys now - DEPRECATED. The allotments for this account and their servers. The public inbound and outbound bandwidth is calculated for each server in addition to the daily average network traffic since the last billing date. 1581func (r Account) GetPublicAllotmentHardwareBandwidthDetails() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { 1582 err = r.Session.DoRequest("SoftLayer_Account", "getPublicAllotmentHardwareBandwidthDetails", nil, &r.Options, &resp) 1583 return 1584} 1585 1586// Retrieve 1587func (r Account) GetPublicIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) { 1588 err = r.Session.DoRequest("SoftLayer_Account", "getPublicIpAddresses", nil, &r.Options, &resp) 1589 return 1590} 1591 1592// Retrieve The public network VLANs assigned to an account. 1593func (r Account) GetPublicNetworkVlans() (resp []datatypes.Network_Vlan, err error) { 1594 err = r.Session.DoRequest("SoftLayer_Account", "getPublicNetworkVlans", nil, &r.Options, &resp) 1595 return 1596} 1597 1598// Retrieve All public network subnets associated with an account. 1599func (r Account) GetPublicSubnets() (resp []datatypes.Network_Subnet, err error) { 1600 err = r.Session.DoRequest("SoftLayer_Account", "getPublicSubnets", nil, &r.Options, &resp) 1601 return 1602} 1603 1604// Retrieve An account's quotes. 1605func (r Account) GetQuotes() (resp []datatypes.Billing_Order_Quote, err error) { 1606 err = r.Session.DoRequest("SoftLayer_Account", "getQuotes", nil, &r.Options, &resp) 1607 return 1608} 1609 1610// Retrieve 1611func (r Account) GetRecentEvents() (resp []datatypes.Notification_Occurrence_Event, err error) { 1612 err = r.Session.DoRequest("SoftLayer_Account", "getRecentEvents", nil, &r.Options, &resp) 1613 return 1614} 1615 1616// Retrieve The Referral Partner for this account, if any. 1617func (r Account) GetReferralPartner() (resp datatypes.Account, err error) { 1618 err = r.Session.DoRequest("SoftLayer_Account", "getReferralPartner", nil, &r.Options, &resp) 1619 return 1620} 1621 1622// no documentation yet 1623func (r Account) GetReferralPartnerCommissionForecast() (resp []datatypes.Container_Referral_Partner_Commission, err error) { 1624 err = r.Session.DoRequest("SoftLayer_Account", "getReferralPartnerCommissionForecast", nil, &r.Options, &resp) 1625 return 1626} 1627 1628// no documentation yet 1629func (r Account) GetReferralPartnerCommissionHistory() (resp []datatypes.Container_Referral_Partner_Commission, err error) { 1630 err = r.Session.DoRequest("SoftLayer_Account", "getReferralPartnerCommissionHistory", nil, &r.Options, &resp) 1631 return 1632} 1633 1634// no documentation yet 1635func (r Account) GetReferralPartnerCommissionPending() (resp []datatypes.Container_Referral_Partner_Commission, err error) { 1636 err = r.Session.DoRequest("SoftLayer_Account", "getReferralPartnerCommissionPending", nil, &r.Options, &resp) 1637 return 1638} 1639 1640// Retrieve If this is a account is a referral partner, the accounts this referral partner has referred 1641func (r Account) GetReferredAccounts() (resp []datatypes.Account, err error) { 1642 err = r.Session.DoRequest("SoftLayer_Account", "getReferredAccounts", nil, &r.Options, &resp) 1643 return 1644} 1645 1646// Retrieve 1647func (r Account) GetRegulatedWorkloads() (resp []datatypes.Legal_RegulatedWorkload, err error) { 1648 err = r.Session.DoRequest("SoftLayer_Account", "getRegulatedWorkloads", nil, &r.Options, &resp) 1649 return 1650} 1651 1652// Retrieve Remote management command requests for an account 1653func (r Account) GetRemoteManagementCommandRequests() (resp []datatypes.Hardware_Component_RemoteManagement_Command_Request, err error) { 1654 err = r.Session.DoRequest("SoftLayer_Account", "getRemoteManagementCommandRequests", nil, &r.Options, &resp) 1655 return 1656} 1657 1658// Retrieve The Replication events for all Network Storage volumes on an account. 1659func (r Account) GetReplicationEvents() (resp []datatypes.Network_Storage_Event, err error) { 1660 err = r.Session.DoRequest("SoftLayer_Account", "getReplicationEvents", nil, &r.Options, &resp) 1661 return 1662} 1663 1664// Retrieve Indicates whether newly created users under this account will be associated with IBMid via an email requiring a response, or not. 1665func (r Account) GetRequireSilentIBMidUserCreation() (resp bool, err error) { 1666 err = r.Session.DoRequest("SoftLayer_Account", "getRequireSilentIBMidUserCreation", nil, &r.Options, &resp) 1667 return 1668} 1669 1670// Retrieve An account's associated top-level resource groups. 1671func (r Account) GetResourceGroups() (resp []datatypes.Resource_Group, err error) { 1672 err = r.Session.DoRequest("SoftLayer_Account", "getResourceGroups", nil, &r.Options, &resp) 1673 return 1674} 1675 1676// Retrieve All Routers that an accounts VLANs reside on 1677func (r Account) GetRouters() (resp []datatypes.Hardware, err error) { 1678 err = r.Session.DoRequest("SoftLayer_Account", "getRouters", nil, &r.Options, &resp) 1679 return 1680} 1681 1682// Retrieve An account's reverse WHOIS data. This data is used when making SWIP requests. 1683func (r Account) GetRwhoisData() (resp datatypes.Network_Subnet_Rwhois_Data, err error) { 1684 err = r.Session.DoRequest("SoftLayer_Account", "getRwhoisData", nil, &r.Options, &resp) 1685 return 1686} 1687 1688// Retrieve 1689func (r Account) GetSalesforceAccountLink() (resp datatypes.Account_Link, err error) { 1690 err = r.Session.DoRequest("SoftLayer_Account", "getSalesforceAccountLink", nil, &r.Options, &resp) 1691 return 1692} 1693 1694// Retrieve The SAML configuration for this account. 1695func (r Account) GetSamlAuthentication() (resp datatypes.Account_Authentication_Saml, err error) { 1696 err = r.Session.DoRequest("SoftLayer_Account", "getSamlAuthentication", nil, &r.Options, &resp) 1697 return 1698} 1699 1700// Retrieve All scale groups on this account. 1701func (r Account) GetScaleGroups() (resp []datatypes.Scale_Group, err error) { 1702 err = r.Session.DoRequest("SoftLayer_Account", "getScaleGroups", nil, &r.Options, &resp) 1703 return 1704} 1705 1706// Retrieve The secondary DNS records for a SoftLayer customer account. 1707func (r Account) GetSecondaryDomains() (resp []datatypes.Dns_Secondary, err error) { 1708 err = r.Session.DoRequest("SoftLayer_Account", "getSecondaryDomains", nil, &r.Options, &resp) 1709 return 1710} 1711 1712// Retrieve Stored security certificates (ie. SSL) 1713func (r Account) GetSecurityCertificates() (resp []datatypes.Security_Certificate, err error) { 1714 err = r.Session.DoRequest("SoftLayer_Account", "getSecurityCertificates", nil, &r.Options, &resp) 1715 return 1716} 1717 1718// Retrieve The security groups belonging to this account. 1719func (r Account) GetSecurityGroups() (resp []datatypes.Network_SecurityGroup, err error) { 1720 err = r.Session.DoRequest("SoftLayer_Account", "getSecurityGroups", nil, &r.Options, &resp) 1721 return 1722} 1723 1724// Retrieve 1725func (r Account) GetSecurityLevel() (resp datatypes.Security_Level, err error) { 1726 err = r.Session.DoRequest("SoftLayer_Account", "getSecurityLevel", nil, &r.Options, &resp) 1727 return 1728} 1729 1730// Retrieve An account's vulnerability scan requests. 1731func (r Account) GetSecurityScanRequests() (resp []datatypes.Network_Security_Scanner_Request, err error) { 1732 err = r.Session.DoRequest("SoftLayer_Account", "getSecurityScanRequests", nil, &r.Options, &resp) 1733 return 1734} 1735 1736// Retrieve The service billing items that will be on an account's next invoice. 1737func (r Account) GetServiceBillingItems() (resp []datatypes.Billing_Item, err error) { 1738 err = r.Session.DoRequest("SoftLayer_Account", "getServiceBillingItems", nil, &r.Options, &resp) 1739 return 1740} 1741 1742// This method returns the [[SoftLayer_Virtual_Guest_Block_Device_Template_Group]] objects that have been shared with this account 1743func (r Account) GetSharedBlockDeviceTemplateGroups() (resp []datatypes.Virtual_Guest_Block_Device_Template_Group, err error) { 1744 err = r.Session.DoRequest("SoftLayer_Account", "getSharedBlockDeviceTemplateGroups", nil, &r.Options, &resp) 1745 return 1746} 1747 1748// Retrieve Shipments that belong to the customer's account. 1749func (r Account) GetShipments() (resp []datatypes.Account_Shipment, err error) { 1750 err = r.Session.DoRequest("SoftLayer_Account", "getShipments", nil, &r.Options, &resp) 1751 return 1752} 1753 1754// Retrieve Customer specified SSH keys that can be implemented onto a newly provisioned or reloaded server. 1755func (r Account) GetSshKeys() (resp []datatypes.Security_Ssh_Key, err error) { 1756 err = r.Session.DoRequest("SoftLayer_Account", "getSshKeys", nil, &r.Options, &resp) 1757 return 1758} 1759 1760// Retrieve An account's associated portal users with SSL VPN access. 1761func (r Account) GetSslVpnUsers() (resp []datatypes.User_Customer, err error) { 1762 err = r.Session.DoRequest("SoftLayer_Account", "getSslVpnUsers", nil, &r.Options, &resp) 1763 return 1764} 1765 1766// Retrieve An account's virtual guest objects that are hosted on a user provisioned hypervisor. 1767func (r Account) GetStandardPoolVirtualGuests() (resp []datatypes.Virtual_Guest, err error) { 1768 err = r.Session.DoRequest("SoftLayer_Account", "getStandardPoolVirtualGuests", nil, &r.Options, &resp) 1769 return 1770} 1771 1772// Retrieve 1773func (r Account) GetSubnetRegistrationDetails() (resp []datatypes.Account_Regional_Registry_Detail, err error) { 1774 err = r.Session.DoRequest("SoftLayer_Account", "getSubnetRegistrationDetails", nil, &r.Options, &resp) 1775 return 1776} 1777 1778// Retrieve 1779func (r Account) GetSubnetRegistrations() (resp []datatypes.Network_Subnet_Registration, err error) { 1780 err = r.Session.DoRequest("SoftLayer_Account", "getSubnetRegistrations", nil, &r.Options, &resp) 1781 return 1782} 1783 1784// Retrieve All network subnets associated with an account. 1785func (r Account) GetSubnets() (resp []datatypes.Network_Subnet, err error) { 1786 err = r.Session.DoRequest("SoftLayer_Account", "getSubnets", nil, &r.Options, &resp) 1787 return 1788} 1789 1790// Retrieve The SoftLayer employees that an account is assigned to. 1791func (r Account) GetSupportRepresentatives() (resp []datatypes.User_Employee, err error) { 1792 err = r.Session.DoRequest("SoftLayer_Account", "getSupportRepresentatives", nil, &r.Options, &resp) 1793 return 1794} 1795 1796// Retrieve The active support subscriptions for this account. 1797func (r Account) GetSupportSubscriptions() (resp []datatypes.Billing_Item, err error) { 1798 err = r.Session.DoRequest("SoftLayer_Account", "getSupportSubscriptions", nil, &r.Options, &resp) 1799 return 1800} 1801 1802// Retrieve 1803func (r Account) GetSupportTier() (resp string, err error) { 1804 err = r.Session.DoRequest("SoftLayer_Account", "getSupportTier", nil, &r.Options, &resp) 1805 return 1806} 1807 1808// Retrieve A flag indicating to suppress invoices. 1809func (r Account) GetSuppressInvoicesFlag() (resp bool, err error) { 1810 err = r.Session.DoRequest("SoftLayer_Account", "getSuppressInvoicesFlag", nil, &r.Options, &resp) 1811 return 1812} 1813 1814// Retrieve 1815func (r Account) GetTags() (resp []datatypes.Tag, err error) { 1816 err = r.Session.DoRequest("SoftLayer_Account", "getTags", nil, &r.Options, &resp) 1817 return 1818} 1819 1820// This method will return a SoftLayer_Container_Account_Discount_Program object containing the Technology Incubator Program information for this account. To be considered an active participant, the account must have an enrollment record with a monthly credit amount set and the current date must be within the range defined by the enrollment and graduation date. The forNextBillCycle parameter can be set to true to return a SoftLayer_Container_Account_Discount_Program object with information with relation to the next bill cycle. The forNextBillCycle parameter defaults to false. 1821func (r Account) GetTechIncubatorProgramInfo(forNextBillCycle *bool) (resp datatypes.Container_Account_Discount_Program, err error) { 1822 params := []interface{}{ 1823 forNextBillCycle, 1824 } 1825 err = r.Session.DoRequest("SoftLayer_Account", "getTechIncubatorProgramInfo", params, &r.Options, &resp) 1826 return 1827} 1828 1829// Returns multiple [[SoftLayer_Container_Policy_Acceptance]] that represent the acceptance status of the applicable third-party policies for this account. 1830func (r Account) GetThirdPartyPoliciesAcceptanceStatus() (resp []datatypes.Container_Policy_Acceptance, err error) { 1831 err = r.Session.DoRequest("SoftLayer_Account", "getThirdPartyPoliciesAcceptanceStatus", nil, &r.Options, &resp) 1832 return 1833} 1834 1835// Retrieve An account's associated tickets. 1836func (r Account) GetTickets() (resp []datatypes.Ticket, err error) { 1837 err = r.Session.DoRequest("SoftLayer_Account", "getTickets", nil, &r.Options, &resp) 1838 return 1839} 1840 1841// Retrieve Tickets closed within the last 72 hours or last 10 tickets, whichever is less, associated with an account. 1842func (r Account) GetTicketsClosedInTheLastThreeDays() (resp []datatypes.Ticket, err error) { 1843 err = r.Session.DoRequest("SoftLayer_Account", "getTicketsClosedInTheLastThreeDays", nil, &r.Options, &resp) 1844 return 1845} 1846 1847// Retrieve Tickets closed today associated with an account. 1848func (r Account) GetTicketsClosedToday() (resp []datatypes.Ticket, err error) { 1849 err = r.Session.DoRequest("SoftLayer_Account", "getTicketsClosedToday", nil, &r.Options, &resp) 1850 return 1851} 1852 1853// Retrieve An account's associated Transcode account. 1854func (r Account) GetTranscodeAccounts() (resp []datatypes.Network_Media_Transcode_Account, err error) { 1855 err = r.Session.DoRequest("SoftLayer_Account", "getTranscodeAccounts", nil, &r.Options, &resp) 1856 return 1857} 1858 1859// Retrieve An account's associated upgrade requests. 1860func (r Account) GetUpgradeRequests() (resp []datatypes.Product_Upgrade_Request, err error) { 1861 err = r.Session.DoRequest("SoftLayer_Account", "getUpgradeRequests", nil, &r.Options, &resp) 1862 return 1863} 1864 1865// Retrieve An account's portal users. 1866func (r Account) GetUsers() (resp []datatypes.User_Customer, err error) { 1867 err = r.Session.DoRequest("SoftLayer_Account", "getUsers", nil, &r.Options, &resp) 1868 return 1869} 1870 1871// Retrieve a list of valid (non-expired) security certificates without the sensitive certificate information. This allows non-privileged users to view and select security certificates when configuring associated services. 1872func (r Account) GetValidSecurityCertificateEntries() (resp []datatypes.Security_Certificate_Entry, err error) { 1873 err = r.Session.DoRequest("SoftLayer_Account", "getValidSecurityCertificateEntries", nil, &r.Options, &resp) 1874 return 1875} 1876 1877// Retrieve Stored security certificates that are not expired (ie. SSL) 1878func (r Account) GetValidSecurityCertificates() (resp []datatypes.Security_Certificate, err error) { 1879 err = r.Session.DoRequest("SoftLayer_Account", "getValidSecurityCertificates", nil, &r.Options, &resp) 1880 return 1881} 1882 1883// Retrieve Return 0 if vpn updates are currently in progress on this account otherwise 1. 1884func (r Account) GetVdrUpdatesInProgressFlag() (resp bool, err error) { 1885 err = r.Session.DoRequest("SoftLayer_Account", "getVdrUpdatesInProgressFlag", nil, &r.Options, &resp) 1886 return 1887} 1888 1889// Retrieve The bandwidth pooling for this account. 1890func (r Account) GetVirtualDedicatedRacks() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { 1891 err = r.Session.DoRequest("SoftLayer_Account", "getVirtualDedicatedRacks", nil, &r.Options, &resp) 1892 return 1893} 1894 1895// Retrieve An account's associated virtual server virtual disk images. 1896func (r Account) GetVirtualDiskImages() (resp []datatypes.Virtual_Disk_Image, err error) { 1897 err = r.Session.DoRequest("SoftLayer_Account", "getVirtualDiskImages", nil, &r.Options, &resp) 1898 return 1899} 1900 1901// Retrieve An account's associated virtual guest objects. 1902func (r Account) GetVirtualGuests() (resp []datatypes.Virtual_Guest, err error) { 1903 err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuests", nil, &r.Options, &resp) 1904 return 1905} 1906 1907// Retrieve An account's associated virtual guest objects currently over bandwidth allocation. 1908func (r Account) GetVirtualGuestsOverBandwidthAllocation() (resp []datatypes.Virtual_Guest, err error) { 1909 err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsOverBandwidthAllocation", nil, &r.Options, &resp) 1910 return 1911} 1912 1913// Retrieve An account's associated virtual guest objects currently over bandwidth allocation. 1914func (r Account) GetVirtualGuestsProjectedOverBandwidthAllocation() (resp []datatypes.Virtual_Guest, err error) { 1915 err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsProjectedOverBandwidthAllocation", nil, &r.Options, &resp) 1916 return 1917} 1918 1919// Retrieve All virtual guests associated with an account that has the cPanel web hosting control panel installed. 1920func (r Account) GetVirtualGuestsWithCpanel() (resp []datatypes.Virtual_Guest, err error) { 1921 err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsWithCpanel", nil, &r.Options, &resp) 1922 return 1923} 1924 1925// Retrieve All virtual guests associated with an account that have McAfee Secure software components. 1926func (r Account) GetVirtualGuestsWithMcafee() (resp []datatypes.Virtual_Guest, err error) { 1927 err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsWithMcafee", nil, &r.Options, &resp) 1928 return 1929} 1930 1931// Retrieve All virtual guests associated with an account that have McAfee Secure AntiVirus for Redhat software components. 1932func (r Account) GetVirtualGuestsWithMcafeeAntivirusRedhat() (resp []datatypes.Virtual_Guest, err error) { 1933 err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsWithMcafeeAntivirusRedhat", nil, &r.Options, &resp) 1934 return 1935} 1936 1937// Retrieve All virtual guests associated with an account that has McAfee Secure AntiVirus for Windows software components. 1938func (r Account) GetVirtualGuestsWithMcafeeAntivirusWindows() (resp []datatypes.Virtual_Guest, err error) { 1939 err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsWithMcafeeAntivirusWindows", nil, &r.Options, &resp) 1940 return 1941} 1942 1943// Retrieve All virtual guests associated with an account that has McAfee Secure Intrusion Detection System software components. 1944func (r Account) GetVirtualGuestsWithMcafeeIntrusionDetectionSystem() (resp []datatypes.Virtual_Guest, err error) { 1945 err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsWithMcafeeIntrusionDetectionSystem", nil, &r.Options, &resp) 1946 return 1947} 1948 1949// Retrieve All virtual guests associated with an account that has the Plesk web hosting control panel installed. 1950func (r Account) GetVirtualGuestsWithPlesk() (resp []datatypes.Virtual_Guest, err error) { 1951 err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsWithPlesk", nil, &r.Options, &resp) 1952 return 1953} 1954 1955// Retrieve All virtual guests associated with an account that have the QuantaStor storage system installed. 1956func (r Account) GetVirtualGuestsWithQuantastor() (resp []datatypes.Virtual_Guest, err error) { 1957 err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsWithQuantastor", nil, &r.Options, &resp) 1958 return 1959} 1960 1961// Retrieve All virtual guests associated with an account that has the Urchin web traffic analytics package installed. 1962func (r Account) GetVirtualGuestsWithUrchin() (resp []datatypes.Virtual_Guest, err error) { 1963 err = r.Session.DoRequest("SoftLayer_Account", "getVirtualGuestsWithUrchin", nil, &r.Options, &resp) 1964 return 1965} 1966 1967// Retrieve The bandwidth pooling for this account. 1968func (r Account) GetVirtualPrivateRack() (resp datatypes.Network_Bandwidth_Version1_Allotment, err error) { 1969 err = r.Session.DoRequest("SoftLayer_Account", "getVirtualPrivateRack", nil, &r.Options, &resp) 1970 return 1971} 1972 1973// Retrieve An account's associated virtual server archived storage repositories. 1974func (r Account) GetVirtualStorageArchiveRepositories() (resp []datatypes.Virtual_Storage_Repository, err error) { 1975 err = r.Session.DoRequest("SoftLayer_Account", "getVirtualStorageArchiveRepositories", nil, &r.Options, &resp) 1976 return 1977} 1978 1979// Retrieve An account's associated virtual server public storage repositories. 1980func (r Account) GetVirtualStoragePublicRepositories() (resp []datatypes.Virtual_Storage_Repository, err error) { 1981 err = r.Session.DoRequest("SoftLayer_Account", "getVirtualStoragePublicRepositories", nil, &r.Options, &resp) 1982 return 1983} 1984 1985// This returns a collection of active VMware software account license keys. 1986func (r Account) GetVmWareActiveAccountLicenseKeys() (resp []string, err error) { 1987 err = r.Session.DoRequest("SoftLayer_Account", "getVmWareActiveAccountLicenseKeys", nil, &r.Options, &resp) 1988 return 1989} 1990 1991// Retrieve An account's associated VPC configured virtual guest objects. 1992func (r Account) GetVpcVirtualGuests() (resp []datatypes.Virtual_Guest, err error) { 1993 err = r.Session.DoRequest("SoftLayer_Account", "getVpcVirtualGuests", nil, &r.Options, &resp) 1994 return 1995} 1996 1997// Retrieve a list of an account's hardware's Windows Update status. This list includes which servers have available updates, which servers require rebooting due to updates, which servers have failed retrieving updates, and which servers have failed to communicate with the SoftLayer private Windows Software Update Services server. 1998func (r Account) GetWindowsUpdateStatus() (resp []datatypes.Container_Utility_Microsoft_Windows_UpdateServices_Status, err error) { 1999 err = r.Session.DoRequest("SoftLayer_Account", "getWindowsUpdateStatus", nil, &r.Options, &resp) 2000 return 2001} 2002 2003// Determine if an account has an [[SoftLayer_Account_Attribute|attribute]] associated with it. hasAttribute() returns false if the attribute does not exist or if it does not have a value. 2004func (r Account) HasAttribute(attributeType *string) (resp bool, err error) { 2005 params := []interface{}{ 2006 attributeType, 2007 } 2008 err = r.Session.DoRequest("SoftLayer_Account", "hasAttribute", params, &r.Options, &resp) 2009 return 2010} 2011 2012// This method will return the limit (number) of hourly services the account is allowed to have. 2013func (r Account) HourlyInstanceLimit() (resp int, err error) { 2014 err = r.Session.DoRequest("SoftLayer_Account", "hourlyInstanceLimit", nil, &r.Options, &resp) 2015 return 2016} 2017 2018// This method will return the limit (number) of hourly bare metal servers the account is allowed to have. 2019func (r Account) HourlyServerLimit() (resp int, err error) { 2020 err = r.Session.DoRequest("SoftLayer_Account", "hourlyServerLimit", nil, &r.Options, &resp) 2021 return 2022} 2023 2024// Returns true if this account is eligible for the local currency program, false otherwise. 2025func (r Account) IsEligibleForLocalCurrencyProgram() (resp bool, err error) { 2026 err = r.Session.DoRequest("SoftLayer_Account", "isEligibleForLocalCurrencyProgram", nil, &r.Options, &resp) 2027 return 2028} 2029 2030// Returns true if this account is eligible to link with PaaS. False otherwise. 2031func (r Account) IsEligibleToLinkWithPaas() (resp bool, err error) { 2032 err = r.Session.DoRequest("SoftLayer_Account", "isEligibleToLinkWithPaas", nil, &r.Options, &resp) 2033 return 2034} 2035 2036// This method will link this SoftLayer account with the provided external account. 2037func (r Account) LinkExternalAccount(externalAccountId *string, authorizationToken *string, externalServiceProviderKey *string) (err error) { 2038 var resp datatypes.Void 2039 params := []interface{}{ 2040 externalAccountId, 2041 authorizationToken, 2042 externalServiceProviderKey, 2043 } 2044 err = r.Session.DoRequest("SoftLayer_Account", "linkExternalAccount", params, &r.Options, &resp) 2045 return 2046} 2047 2048// no documentation yet 2049func (r Account) RemoveAlternateCreditCard() (resp bool, err error) { 2050 err = r.Session.DoRequest("SoftLayer_Account", "removeAlternateCreditCard", nil, &r.Options, &resp) 2051 return 2052} 2053 2054// Retrieve the record data associated with the submission of a Credit Card Change Request. Softlayer customers are permitted to request a change in Credit Card information. Part of the process calls for an attempt by SoftLayer to submit at $1.00 charge to the financial institution backing the credit card as a means of verifying that the information provided in the change request is valid. The data associated with this change request returned to the calling function. 2055// 2056// If the onlyChangeNicknameFlag parameter is set to true, the nickname of the credit card will be changed immediately without requiring approval by an agent. To change the nickname of the active payment method, pass the empty string for paymentRoleName. To change the nickname for the alternate credit card, pass ALTERNATE_CREDIT_CARD as the paymentRoleName. vatId must be set, but the value will not be used and the empty string is acceptable. 2057func (r Account) RequestCreditCardChange(request *datatypes.Billing_Payment_Card_ChangeRequest, vatId *string, paymentRoleName *string, onlyChangeNicknameFlag *bool) (resp datatypes.Billing_Payment_Card_ChangeRequest, err error) { 2058 params := []interface{}{ 2059 request, 2060 vatId, 2061 paymentRoleName, 2062 onlyChangeNicknameFlag, 2063 } 2064 err = r.Session.DoRequest("SoftLayer_Account", "requestCreditCardChange", params, &r.Options, &resp) 2065 return 2066} 2067 2068// Retrieve the record data associated with the submission of a Manual Payment Request. Softlayer customers are permitted to request a manual one-time payment at a minimum amount of $2.00. Customers may submit a Credit Card Payment (Mastercard, Visa, American Express) or a PayPal payment. For Credit Card Payments, SoftLayer engages the credit card financial institution to submit the payment request. The financial institution's response and other data associated with the transaction are returned to the calling function. In the case of PayPal Payments, SoftLayer engages the PayPal system to initiate the PayPal payment sequence. The applicable data generated during the request is returned to the calling function. 2069func (r Account) RequestManualPayment(request *datatypes.Billing_Payment_Card_ManualPayment) (resp datatypes.Billing_Payment_Card_ManualPayment, err error) { 2070 params := []interface{}{ 2071 request, 2072 } 2073 err = r.Session.DoRequest("SoftLayer_Account", "requestManualPayment", params, &r.Options, &resp) 2074 return 2075} 2076 2077// Retrieve the record data associated with the submission of a Manual Payment Request for a manual payment using a credit card which is on file and does not require an approval process. Softlayer customers are permitted to request a manual one-time payment at a minimum amount of $2.00. Customers may use an existing Credit Card on file (Mastercard, Visa, American Express). SoftLayer engages the credit card financial institution to submit the payment request. The financial institution's response and other data associated with the transaction are returned to the calling function. The applicable data generated during the request is returned to the calling function. 2078func (r Account) RequestManualPaymentUsingCreditCardOnFile(amount *string, payWithAlternateCardFlag *bool, note *string) (resp datatypes.Billing_Payment_Card_ManualPayment, err error) { 2079 params := []interface{}{ 2080 amount, 2081 payWithAlternateCardFlag, 2082 note, 2083 } 2084 err = r.Session.DoRequest("SoftLayer_Account", "requestManualPaymentUsingCreditCardOnFile", params, &r.Options, &resp) 2085 return 2086} 2087 2088// Set this account's abuse emails. Takes an array of email addresses as strings. 2089func (r Account) SetAbuseEmails(emails []string) (resp bool, err error) { 2090 params := []interface{}{ 2091 emails, 2092 } 2093 err = r.Session.DoRequest("SoftLayer_Account", "setAbuseEmails", params, &r.Options, &resp) 2094 return 2095} 2096 2097// Set the total number of servers that are to be maintained in the given pool. When a server is ordered a new server will be put in the pool to replace the server that was removed to fill an order to maintain the desired pool availability quantity. 2098func (r Account) SetManagedPoolQuantity(poolKeyName *string, backendRouter *string, quantity *int) (resp []byte, err error) { 2099 params := []interface{}{ 2100 poolKeyName, 2101 backendRouter, 2102 quantity, 2103 } 2104 err = r.Session.DoRequest("SoftLayer_Account", "setManagedPoolQuantity", params, &r.Options, &resp) 2105 return 2106} 2107 2108// Set the flag that enables or disables automatic private network VLAN spanning for a SoftLayer customer account. Enabling VLAN spanning allows an account's servers to talk on the same broadcast domain even if they reside within different private vlans. 2109func (r Account) SetVlanSpan(enabled *bool) (resp bool, err error) { 2110 params := []interface{}{ 2111 enabled, 2112 } 2113 err = r.Session.DoRequest("SoftLayer_Account", "setVlanSpan", params, &r.Options, &resp) 2114 return 2115} 2116 2117// no documentation yet 2118func (r Account) SwapCreditCards() (resp bool, err error) { 2119 err = r.Session.DoRequest("SoftLayer_Account", "swapCreditCards", nil, &r.Options, &resp) 2120 return 2121} 2122 2123// no documentation yet 2124func (r Account) SyncCurrentUserPopulationWithPaas() (err error) { 2125 var resp datatypes.Void 2126 err = r.Session.DoRequest("SoftLayer_Account", "syncCurrentUserPopulationWithPaas", nil, &r.Options, &resp) 2127 return 2128} 2129 2130// Some larger SoftLayer customer accounts may have servers and virtual servers on more subnets than SoftLayer's private network VPN devices can assign routes for. In those cases routes for individual servers and virtual servers may be assigned individually to an account's servers via this method. 2131// 2132// Always call this method to enable changes when manually configuring VPN subnet access. 2133func (r Account) UpdateVpnUsersForResource(objectId *int, objectType *string) (resp bool, err error) { 2134 params := []interface{}{ 2135 objectId, 2136 objectType, 2137 } 2138 err = r.Session.DoRequest("SoftLayer_Account", "updateVpnUsersForResource", params, &r.Options, &resp) 2139 return 2140} 2141 2142// This method will validate the following account fields. Included are the allowed characters for each field.<br> <strong>Email Address<sup>*</sup>:</strong> letters, numbers, space, period, dash, parenthesis, exclamation point, at sign, ampersand, colon, comma, underscore, apostrophe, octothorpe.<br><br> <strong>Company Name<sup>*</sup>:</strong> alphabet, numbers, space, period, dash, octothorpe, forward slash, backward slash, comma, colon, at sign, ampersand, underscore, apostrophe, parenthesis, exclamation point. (Note: may not contain an email address)<br> <strong>First Name<sup>*</sup>:</strong> alphabet, space, period, dash, comma, apostrophe.<br> <strong>Last Name<sup>*</sup>:</strong> alphabet, space, period, dash, comma, apostrophe.<br> <strong>Address 1<sup>*</sup>:</strong> alphabet, numbers, space, period, dash, octothorpe, forward slash, backward slash, comma, colon, at sign, ampersand, underscore, apostrophe.<br> <strong>Address 2:</strong> alphabet, numbers, space, period, dash, octothorpe, forward slash, backward slash, comma, colon, at sign, ampersand, underscore, apostrophe.<br> <strong>City<sup>*</sup>:</strong> alphabet, space, period, dash, apostrophe.<br> <strong>State<sup>*</sup>:</strong> Required if country is US or Canada. Must be valid Alpha-2 ISO 3166-1 state code for that country.<br> <strong>Postal Code<sup>*</sup>:</strong> alphabet, numbers, dash, space.<br> <strong>Country<sup>*</sup>:</strong> alphabet, numbers. Must be valid Alpha-2 ISO 3166-1 country code.<br> <strong>Office Phone<sup>*</sup>:</strong> alphabet, numbers, space, period, dash, parenthesis, plus sign.<br> <strong>Alternate Phone:</strong> alphabet, numbers, space, period, dash, parenthesis, plus sign.<br> <strong>Fax Phone:</strong> alphabet, numbers, space, period, dash, parenthesis, plus sign.<br> 2143// * denotes a required field. 2144func (r Account) Validate(account *datatypes.Account) (resp []string, err error) { 2145 params := []interface{}{ 2146 account, 2147 } 2148 err = r.Session.DoRequest("SoftLayer_Account", "validate", params, &r.Options, &resp) 2149 return 2150} 2151 2152// This method checks global and account specific requirements and returns true if the dollar amount entered is acceptable for this account and false otherwise. Please note the dollar amount is in USD. 2153func (r Account) ValidateManualPaymentAmount(amount *string) (resp bool, err error) { 2154 params := []interface{}{ 2155 amount, 2156 } 2157 err = r.Session.DoRequest("SoftLayer_Account", "validateManualPaymentAmount", params, &r.Options, &resp) 2158 return 2159} 2160 2161// The SoftLayer_Account_Address data type contains information on an address associated with a SoftLayer account. 2162type Account_Address struct { 2163 Session *session.Session 2164 Options sl.Options 2165} 2166 2167// GetAccountAddressService returns an instance of the Account_Address SoftLayer service 2168func GetAccountAddressService(sess *session.Session) Account_Address { 2169 return Account_Address{Session: sess} 2170} 2171 2172func (r Account_Address) Id(id int) Account_Address { 2173 r.Options.Id = &id 2174 return r 2175} 2176 2177func (r Account_Address) Mask(mask string) Account_Address { 2178 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 2179 mask = fmt.Sprintf("mask[%s]", mask) 2180 } 2181 2182 r.Options.Mask = mask 2183 return r 2184} 2185 2186func (r Account_Address) Filter(filter string) Account_Address { 2187 r.Options.Filter = filter 2188 return r 2189} 2190 2191func (r Account_Address) Limit(limit int) Account_Address { 2192 r.Options.Limit = &limit 2193 return r 2194} 2195 2196func (r Account_Address) Offset(offset int) Account_Address { 2197 r.Options.Offset = &offset 2198 return r 2199} 2200 2201// Create a new address record. The ''typeId'', ''accountId'', ''description'', ''address1'', ''city'', ''state'', ''country'', and ''postalCode'' properties in the templateObject parameter are required properties and may not be null or empty. Users will be restricted to creating addresses for their account. 2202func (r Account_Address) CreateObject(templateObject *datatypes.Account_Address) (resp datatypes.Account_Address, err error) { 2203 params := []interface{}{ 2204 templateObject, 2205 } 2206 err = r.Session.DoRequest("SoftLayer_Account_Address", "createObject", params, &r.Options, &resp) 2207 return 2208} 2209 2210// Edit the properties of an address record by passing in a modified instance of a SoftLayer_Account_Address object. Users will be restricted to modifying addresses for their account. 2211func (r Account_Address) EditObject(templateObject *datatypes.Account_Address) (resp bool, err error) { 2212 params := []interface{}{ 2213 templateObject, 2214 } 2215 err = r.Session.DoRequest("SoftLayer_Account_Address", "editObject", params, &r.Options, &resp) 2216 return 2217} 2218 2219// Retrieve The account to which this address belongs. 2220func (r Account_Address) GetAccount() (resp datatypes.Account, err error) { 2221 err = r.Session.DoRequest("SoftLayer_Account_Address", "getAccount", nil, &r.Options, &resp) 2222 return 2223} 2224 2225// Retrieve a list of SoftLayer datacenter addresses. 2226func (r Account_Address) GetAllDataCenters() (resp []datatypes.Account_Address, err error) { 2227 err = r.Session.DoRequest("SoftLayer_Account_Address", "getAllDataCenters", nil, &r.Options, &resp) 2228 return 2229} 2230 2231// Retrieve The customer user who created this address. 2232func (r Account_Address) GetCreateUser() (resp datatypes.User_Customer, err error) { 2233 err = r.Session.DoRequest("SoftLayer_Account_Address", "getCreateUser", nil, &r.Options, &resp) 2234 return 2235} 2236 2237// Retrieve The location of this address. 2238func (r Account_Address) GetLocation() (resp datatypes.Location, err error) { 2239 err = r.Session.DoRequest("SoftLayer_Account_Address", "getLocation", nil, &r.Options, &resp) 2240 return 2241} 2242 2243// Retrieve The employee who last modified this address. 2244func (r Account_Address) GetModifyEmployee() (resp datatypes.User_Employee, err error) { 2245 err = r.Session.DoRequest("SoftLayer_Account_Address", "getModifyEmployee", nil, &r.Options, &resp) 2246 return 2247} 2248 2249// Retrieve The customer user who last modified this address. 2250func (r Account_Address) GetModifyUser() (resp datatypes.User_Customer, err error) { 2251 err = r.Session.DoRequest("SoftLayer_Account_Address", "getModifyUser", nil, &r.Options, &resp) 2252 return 2253} 2254 2255// Retrieve a list of SoftLayer datacenter addresses. 2256func (r Account_Address) GetNetworkAddress(name *string) (resp []datatypes.Account_Address, err error) { 2257 params := []interface{}{ 2258 name, 2259 } 2260 err = r.Session.DoRequest("SoftLayer_Account_Address", "getNetworkAddress", params, &r.Options, &resp) 2261 return 2262} 2263 2264// no documentation yet 2265func (r Account_Address) GetObject() (resp datatypes.Account_Address, err error) { 2266 err = r.Session.DoRequest("SoftLayer_Account_Address", "getObject", nil, &r.Options, &resp) 2267 return 2268} 2269 2270// Retrieve An account address' type. 2271func (r Account_Address) GetType() (resp datatypes.Account_Address_Type, err error) { 2272 err = r.Session.DoRequest("SoftLayer_Account_Address", "getType", nil, &r.Options, &resp) 2273 return 2274} 2275 2276// no documentation yet 2277type Account_Address_Type struct { 2278 Session *session.Session 2279 Options sl.Options 2280} 2281 2282// GetAccountAddressTypeService returns an instance of the Account_Address_Type SoftLayer service 2283func GetAccountAddressTypeService(sess *session.Session) Account_Address_Type { 2284 return Account_Address_Type{Session: sess} 2285} 2286 2287func (r Account_Address_Type) Id(id int) Account_Address_Type { 2288 r.Options.Id = &id 2289 return r 2290} 2291 2292func (r Account_Address_Type) Mask(mask string) Account_Address_Type { 2293 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 2294 mask = fmt.Sprintf("mask[%s]", mask) 2295 } 2296 2297 r.Options.Mask = mask 2298 return r 2299} 2300 2301func (r Account_Address_Type) Filter(filter string) Account_Address_Type { 2302 r.Options.Filter = filter 2303 return r 2304} 2305 2306func (r Account_Address_Type) Limit(limit int) Account_Address_Type { 2307 r.Options.Limit = &limit 2308 return r 2309} 2310 2311func (r Account_Address_Type) Offset(offset int) Account_Address_Type { 2312 r.Options.Offset = &offset 2313 return r 2314} 2315 2316// no documentation yet 2317func (r Account_Address_Type) GetObject() (resp datatypes.Account_Address_Type, err error) { 2318 err = r.Session.DoRequest("SoftLayer_Account_Address_Type", "getObject", nil, &r.Options, &resp) 2319 return 2320} 2321 2322// This service allows for a unique identifier to be associated to an existing customer account. 2323type Account_Affiliation struct { 2324 Session *session.Session 2325 Options sl.Options 2326} 2327 2328// GetAccountAffiliationService returns an instance of the Account_Affiliation SoftLayer service 2329func GetAccountAffiliationService(sess *session.Session) Account_Affiliation { 2330 return Account_Affiliation{Session: sess} 2331} 2332 2333func (r Account_Affiliation) Id(id int) Account_Affiliation { 2334 r.Options.Id = &id 2335 return r 2336} 2337 2338func (r Account_Affiliation) Mask(mask string) Account_Affiliation { 2339 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 2340 mask = fmt.Sprintf("mask[%s]", mask) 2341 } 2342 2343 r.Options.Mask = mask 2344 return r 2345} 2346 2347func (r Account_Affiliation) Filter(filter string) Account_Affiliation { 2348 r.Options.Filter = filter 2349 return r 2350} 2351 2352func (r Account_Affiliation) Limit(limit int) Account_Affiliation { 2353 r.Options.Limit = &limit 2354 return r 2355} 2356 2357func (r Account_Affiliation) Offset(offset int) Account_Affiliation { 2358 r.Options.Offset = &offset 2359 return r 2360} 2361 2362// Create a new affiliation to associate with an existing account. 2363func (r Account_Affiliation) CreateObject(templateObject *datatypes.Account_Affiliation) (resp datatypes.Account_Affiliation, err error) { 2364 params := []interface{}{ 2365 templateObject, 2366 } 2367 err = r.Session.DoRequest("SoftLayer_Account_Affiliation", "createObject", params, &r.Options, &resp) 2368 return 2369} 2370 2371// deleteObject permanently removes an account affiliation 2372func (r Account_Affiliation) DeleteObject() (resp bool, err error) { 2373 err = r.Session.DoRequest("SoftLayer_Account_Affiliation", "deleteObject", nil, &r.Options, &resp) 2374 return 2375} 2376 2377// Edit an affiliation that is associated to an existing account. 2378func (r Account_Affiliation) EditObject(templateObject *datatypes.Account_Affiliation) (resp bool, err error) { 2379 params := []interface{}{ 2380 templateObject, 2381 } 2382 err = r.Session.DoRequest("SoftLayer_Account_Affiliation", "editObject", params, &r.Options, &resp) 2383 return 2384} 2385 2386// Retrieve The account that an affiliation belongs to. 2387func (r Account_Affiliation) GetAccount() (resp datatypes.Account, err error) { 2388 err = r.Session.DoRequest("SoftLayer_Account_Affiliation", "getAccount", nil, &r.Options, &resp) 2389 return 2390} 2391 2392// Get account affiliation information associated with affiliate id. 2393func (r Account_Affiliation) GetAccountAffiliationsByAffiliateId(affiliateId *string) (resp []datatypes.Account_Affiliation, err error) { 2394 params := []interface{}{ 2395 affiliateId, 2396 } 2397 err = r.Session.DoRequest("SoftLayer_Account_Affiliation", "getAccountAffiliationsByAffiliateId", params, &r.Options, &resp) 2398 return 2399} 2400 2401// no documentation yet 2402func (r Account_Affiliation) GetObject() (resp datatypes.Account_Affiliation, err error) { 2403 err = r.Session.DoRequest("SoftLayer_Account_Affiliation", "getObject", nil, &r.Options, &resp) 2404 return 2405} 2406 2407// no documentation yet 2408type Account_Agreement struct { 2409 Session *session.Session 2410 Options sl.Options 2411} 2412 2413// GetAccountAgreementService returns an instance of the Account_Agreement SoftLayer service 2414func GetAccountAgreementService(sess *session.Session) Account_Agreement { 2415 return Account_Agreement{Session: sess} 2416} 2417 2418func (r Account_Agreement) Id(id int) Account_Agreement { 2419 r.Options.Id = &id 2420 return r 2421} 2422 2423func (r Account_Agreement) Mask(mask string) Account_Agreement { 2424 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 2425 mask = fmt.Sprintf("mask[%s]", mask) 2426 } 2427 2428 r.Options.Mask = mask 2429 return r 2430} 2431 2432func (r Account_Agreement) Filter(filter string) Account_Agreement { 2433 r.Options.Filter = filter 2434 return r 2435} 2436 2437func (r Account_Agreement) Limit(limit int) Account_Agreement { 2438 r.Options.Limit = &limit 2439 return r 2440} 2441 2442func (r Account_Agreement) Offset(offset int) Account_Agreement { 2443 r.Options.Offset = &offset 2444 return r 2445} 2446 2447// Retrieve 2448func (r Account_Agreement) GetAccount() (resp datatypes.Account, err error) { 2449 err = r.Session.DoRequest("SoftLayer_Account_Agreement", "getAccount", nil, &r.Options, &resp) 2450 return 2451} 2452 2453// Retrieve The type of agreement. 2454func (r Account_Agreement) GetAgreementType() (resp datatypes.Account_Agreement_Type, err error) { 2455 err = r.Session.DoRequest("SoftLayer_Account_Agreement", "getAgreementType", nil, &r.Options, &resp) 2456 return 2457} 2458 2459// Retrieve The files attached to an agreement. 2460func (r Account_Agreement) GetAttachedBillingAgreementFiles() (resp []datatypes.Account_MasterServiceAgreement, err error) { 2461 err = r.Session.DoRequest("SoftLayer_Account_Agreement", "getAttachedBillingAgreementFiles", nil, &r.Options, &resp) 2462 return 2463} 2464 2465// Retrieve The billing items associated with an agreement. 2466func (r Account_Agreement) GetBillingItems() (resp []datatypes.Billing_Item, err error) { 2467 err = r.Session.DoRequest("SoftLayer_Account_Agreement", "getBillingItems", nil, &r.Options, &resp) 2468 return 2469} 2470 2471// no documentation yet 2472func (r Account_Agreement) GetObject() (resp datatypes.Account_Agreement, err error) { 2473 err = r.Session.DoRequest("SoftLayer_Account_Agreement", "getObject", nil, &r.Options, &resp) 2474 return 2475} 2476 2477// Retrieve The status of the agreement. 2478func (r Account_Agreement) GetStatus() (resp datatypes.Account_Agreement_Status, err error) { 2479 err = r.Session.DoRequest("SoftLayer_Account_Agreement", "getStatus", nil, &r.Options, &resp) 2480 return 2481} 2482 2483// Retrieve The top level billing item associated with an agreement. 2484func (r Account_Agreement) GetTopLevelBillingItems() (resp []datatypes.Billing_Item, err error) { 2485 err = r.Session.DoRequest("SoftLayer_Account_Agreement", "getTopLevelBillingItems", nil, &r.Options, &resp) 2486 return 2487} 2488 2489// Account authentication has many different settings that can be set. This class allows the customer or employee to set these settigns. 2490type Account_Authentication_Attribute struct { 2491 Session *session.Session 2492 Options sl.Options 2493} 2494 2495// GetAccountAuthenticationAttributeService returns an instance of the Account_Authentication_Attribute SoftLayer service 2496func GetAccountAuthenticationAttributeService(sess *session.Session) Account_Authentication_Attribute { 2497 return Account_Authentication_Attribute{Session: sess} 2498} 2499 2500func (r Account_Authentication_Attribute) Id(id int) Account_Authentication_Attribute { 2501 r.Options.Id = &id 2502 return r 2503} 2504 2505func (r Account_Authentication_Attribute) Mask(mask string) Account_Authentication_Attribute { 2506 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 2507 mask = fmt.Sprintf("mask[%s]", mask) 2508 } 2509 2510 r.Options.Mask = mask 2511 return r 2512} 2513 2514func (r Account_Authentication_Attribute) Filter(filter string) Account_Authentication_Attribute { 2515 r.Options.Filter = filter 2516 return r 2517} 2518 2519func (r Account_Authentication_Attribute) Limit(limit int) Account_Authentication_Attribute { 2520 r.Options.Limit = &limit 2521 return r 2522} 2523 2524func (r Account_Authentication_Attribute) Offset(offset int) Account_Authentication_Attribute { 2525 r.Options.Offset = &offset 2526 return r 2527} 2528 2529// Retrieve The SoftLayer customer account. 2530func (r Account_Authentication_Attribute) GetAccount() (resp datatypes.Account, err error) { 2531 err = r.Session.DoRequest("SoftLayer_Account_Authentication_Attribute", "getAccount", nil, &r.Options, &resp) 2532 return 2533} 2534 2535// Retrieve The SoftLayer account authentication that has an attribute. 2536func (r Account_Authentication_Attribute) GetAuthenticationRecord() (resp datatypes.Account_Authentication_Saml, err error) { 2537 err = r.Session.DoRequest("SoftLayer_Account_Authentication_Attribute", "getAuthenticationRecord", nil, &r.Options, &resp) 2538 return 2539} 2540 2541// no documentation yet 2542func (r Account_Authentication_Attribute) GetObject() (resp datatypes.Account_Authentication_Attribute, err error) { 2543 err = r.Session.DoRequest("SoftLayer_Account_Authentication_Attribute", "getObject", nil, &r.Options, &resp) 2544 return 2545} 2546 2547// Retrieve The type of attribute assigned to a SoftLayer account authentication. 2548func (r Account_Authentication_Attribute) GetType() (resp datatypes.Account_Authentication_Attribute_Type, err error) { 2549 err = r.Session.DoRequest("SoftLayer_Account_Authentication_Attribute", "getType", nil, &r.Options, &resp) 2550 return 2551} 2552 2553// SoftLayer_Account_Authentication_Attribute_Type models the type of attribute that can be assigned to a SoftLayer customer account authentication. 2554type Account_Authentication_Attribute_Type struct { 2555 Session *session.Session 2556 Options sl.Options 2557} 2558 2559// GetAccountAuthenticationAttributeTypeService returns an instance of the Account_Authentication_Attribute_Type SoftLayer service 2560func GetAccountAuthenticationAttributeTypeService(sess *session.Session) Account_Authentication_Attribute_Type { 2561 return Account_Authentication_Attribute_Type{Session: sess} 2562} 2563 2564func (r Account_Authentication_Attribute_Type) Id(id int) Account_Authentication_Attribute_Type { 2565 r.Options.Id = &id 2566 return r 2567} 2568 2569func (r Account_Authentication_Attribute_Type) Mask(mask string) Account_Authentication_Attribute_Type { 2570 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 2571 mask = fmt.Sprintf("mask[%s]", mask) 2572 } 2573 2574 r.Options.Mask = mask 2575 return r 2576} 2577 2578func (r Account_Authentication_Attribute_Type) Filter(filter string) Account_Authentication_Attribute_Type { 2579 r.Options.Filter = filter 2580 return r 2581} 2582 2583func (r Account_Authentication_Attribute_Type) Limit(limit int) Account_Authentication_Attribute_Type { 2584 r.Options.Limit = &limit 2585 return r 2586} 2587 2588func (r Account_Authentication_Attribute_Type) Offset(offset int) Account_Authentication_Attribute_Type { 2589 r.Options.Offset = &offset 2590 return r 2591} 2592 2593// no documentation yet 2594func (r Account_Authentication_Attribute_Type) GetAllObjects() (resp []datatypes.Account_Attribute_Type, err error) { 2595 err = r.Session.DoRequest("SoftLayer_Account_Authentication_Attribute_Type", "getAllObjects", nil, &r.Options, &resp) 2596 return 2597} 2598 2599// no documentation yet 2600func (r Account_Authentication_Attribute_Type) GetObject() (resp datatypes.Account_Authentication_Attribute_Type, err error) { 2601 err = r.Session.DoRequest("SoftLayer_Account_Authentication_Attribute_Type", "getObject", nil, &r.Options, &resp) 2602 return 2603} 2604 2605// no documentation yet 2606type Account_Authentication_Saml struct { 2607 Session *session.Session 2608 Options sl.Options 2609} 2610 2611// GetAccountAuthenticationSamlService returns an instance of the Account_Authentication_Saml SoftLayer service 2612func GetAccountAuthenticationSamlService(sess *session.Session) Account_Authentication_Saml { 2613 return Account_Authentication_Saml{Session: sess} 2614} 2615 2616func (r Account_Authentication_Saml) Id(id int) Account_Authentication_Saml { 2617 r.Options.Id = &id 2618 return r 2619} 2620 2621func (r Account_Authentication_Saml) Mask(mask string) Account_Authentication_Saml { 2622 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 2623 mask = fmt.Sprintf("mask[%s]", mask) 2624 } 2625 2626 r.Options.Mask = mask 2627 return r 2628} 2629 2630func (r Account_Authentication_Saml) Filter(filter string) Account_Authentication_Saml { 2631 r.Options.Filter = filter 2632 return r 2633} 2634 2635func (r Account_Authentication_Saml) Limit(limit int) Account_Authentication_Saml { 2636 r.Options.Limit = &limit 2637 return r 2638} 2639 2640func (r Account_Authentication_Saml) Offset(offset int) Account_Authentication_Saml { 2641 r.Options.Offset = &offset 2642 return r 2643} 2644 2645// no documentation yet 2646func (r Account_Authentication_Saml) CreateObject(templateObject *datatypes.Account_Authentication_Saml) (resp datatypes.Account_Authentication_Saml, err error) { 2647 params := []interface{}{ 2648 templateObject, 2649 } 2650 err = r.Session.DoRequest("SoftLayer_Account_Authentication_Saml", "createObject", params, &r.Options, &resp) 2651 return 2652} 2653 2654// no documentation yet 2655func (r Account_Authentication_Saml) DeleteObject() (resp bool, err error) { 2656 err = r.Session.DoRequest("SoftLayer_Account_Authentication_Saml", "deleteObject", nil, &r.Options, &resp) 2657 return 2658} 2659 2660// Edit the object by passing in a modified instance of the object 2661func (r Account_Authentication_Saml) EditObject(templateObject *datatypes.Account_Authentication_Saml) (resp bool, err error) { 2662 params := []interface{}{ 2663 templateObject, 2664 } 2665 err = r.Session.DoRequest("SoftLayer_Account_Authentication_Saml", "editObject", params, &r.Options, &resp) 2666 return 2667} 2668 2669// Retrieve The account associated with this saml configuration. 2670func (r Account_Authentication_Saml) GetAccount() (resp datatypes.Account, err error) { 2671 err = r.Session.DoRequest("SoftLayer_Account_Authentication_Saml", "getAccount", nil, &r.Options, &resp) 2672 return 2673} 2674 2675// Retrieve The saml attribute values for a SoftLayer customer account. 2676func (r Account_Authentication_Saml) GetAttributes() (resp []datatypes.Account_Authentication_Attribute, err error) { 2677 err = r.Session.DoRequest("SoftLayer_Account_Authentication_Saml", "getAttributes", nil, &r.Options, &resp) 2678 return 2679} 2680 2681// This method will return the service provider metadata in XML format. 2682func (r Account_Authentication_Saml) GetMetadata() (resp string, err error) { 2683 err = r.Session.DoRequest("SoftLayer_Account_Authentication_Saml", "getMetadata", nil, &r.Options, &resp) 2684 return 2685} 2686 2687// no documentation yet 2688func (r Account_Authentication_Saml) GetObject() (resp datatypes.Account_Authentication_Saml, err error) { 2689 err = r.Session.DoRequest("SoftLayer_Account_Authentication_Saml", "getObject", nil, &r.Options, &resp) 2690 return 2691} 2692 2693// Contains business partner details associated with an account. Country Enterprise Identifier (CEID), Channel ID, Segment ID and Reseller Level. 2694type Account_Business_Partner struct { 2695 Session *session.Session 2696 Options sl.Options 2697} 2698 2699// GetAccountBusinessPartnerService returns an instance of the Account_Business_Partner SoftLayer service 2700func GetAccountBusinessPartnerService(sess *session.Session) Account_Business_Partner { 2701 return Account_Business_Partner{Session: sess} 2702} 2703 2704func (r Account_Business_Partner) Id(id int) Account_Business_Partner { 2705 r.Options.Id = &id 2706 return r 2707} 2708 2709func (r Account_Business_Partner) Mask(mask string) Account_Business_Partner { 2710 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 2711 mask = fmt.Sprintf("mask[%s]", mask) 2712 } 2713 2714 r.Options.Mask = mask 2715 return r 2716} 2717 2718func (r Account_Business_Partner) Filter(filter string) Account_Business_Partner { 2719 r.Options.Filter = filter 2720 return r 2721} 2722 2723func (r Account_Business_Partner) Limit(limit int) Account_Business_Partner { 2724 r.Options.Limit = &limit 2725 return r 2726} 2727 2728func (r Account_Business_Partner) Offset(offset int) Account_Business_Partner { 2729 r.Options.Offset = &offset 2730 return r 2731} 2732 2733// Retrieve Account associated with the business partner data 2734func (r Account_Business_Partner) GetAccount() (resp datatypes.Account, err error) { 2735 err = r.Session.DoRequest("SoftLayer_Account_Business_Partner", "getAccount", nil, &r.Options, &resp) 2736 return 2737} 2738 2739// Retrieve Channel indicator used to categorize business partner revenue. 2740func (r Account_Business_Partner) GetChannel() (resp datatypes.Business_Partner_Channel, err error) { 2741 err = r.Session.DoRequest("SoftLayer_Account_Business_Partner", "getChannel", nil, &r.Options, &resp) 2742 return 2743} 2744 2745// no documentation yet 2746func (r Account_Business_Partner) GetObject() (resp datatypes.Account_Business_Partner, err error) { 2747 err = r.Session.DoRequest("SoftLayer_Account_Business_Partner", "getObject", nil, &r.Options, &resp) 2748 return 2749} 2750 2751// Retrieve Segment indicator used to categorize business partner revenue. 2752func (r Account_Business_Partner) GetSegment() (resp datatypes.Business_Partner_Segment, err error) { 2753 err = r.Session.DoRequest("SoftLayer_Account_Business_Partner", "getSegment", nil, &r.Options, &resp) 2754 return 2755} 2756 2757// no documentation yet 2758type Account_Contact struct { 2759 Session *session.Session 2760 Options sl.Options 2761} 2762 2763// GetAccountContactService returns an instance of the Account_Contact SoftLayer service 2764func GetAccountContactService(sess *session.Session) Account_Contact { 2765 return Account_Contact{Session: sess} 2766} 2767 2768func (r Account_Contact) Id(id int) Account_Contact { 2769 r.Options.Id = &id 2770 return r 2771} 2772 2773func (r Account_Contact) Mask(mask string) Account_Contact { 2774 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 2775 mask = fmt.Sprintf("mask[%s]", mask) 2776 } 2777 2778 r.Options.Mask = mask 2779 return r 2780} 2781 2782func (r Account_Contact) Filter(filter string) Account_Contact { 2783 r.Options.Filter = filter 2784 return r 2785} 2786 2787func (r Account_Contact) Limit(limit int) Account_Contact { 2788 r.Options.Limit = &limit 2789 return r 2790} 2791 2792func (r Account_Contact) Offset(offset int) Account_Contact { 2793 r.Options.Offset = &offset 2794 return r 2795} 2796 2797// This method creates an account contact. The accountId is fixed, other properties can be set during creation. The typeId indicates the SoftLayer_Account_Contact_Type for the contact. This method returns the SoftLayer_Account_Contact object that is created. 2798func (r Account_Contact) CreateObject(templateObject *datatypes.Account_Contact) (resp datatypes.Account_Contact, err error) { 2799 params := []interface{}{ 2800 templateObject, 2801 } 2802 err = r.Session.DoRequest("SoftLayer_Account_Contact", "createObject", params, &r.Options, &resp) 2803 return 2804} 2805 2806// deleteObject permanently removes an account contact 2807func (r Account_Contact) DeleteObject() (resp bool, err error) { 2808 err = r.Session.DoRequest("SoftLayer_Account_Contact", "deleteObject", nil, &r.Options, &resp) 2809 return 2810} 2811 2812// This method allows you to modify an account contact. Only master users are permitted to modify an account contact. 2813func (r Account_Contact) EditObject(templateObject *datatypes.Account_Contact) (resp bool, err error) { 2814 params := []interface{}{ 2815 templateObject, 2816 } 2817 err = r.Session.DoRequest("SoftLayer_Account_Contact", "editObject", params, &r.Options, &resp) 2818 return 2819} 2820 2821// Retrieve 2822func (r Account_Contact) GetAccount() (resp datatypes.Account, err error) { 2823 err = r.Session.DoRequest("SoftLayer_Account_Contact", "getAccount", nil, &r.Options, &resp) 2824 return 2825} 2826 2827// This method will return an array of SoftLayer_Account_Contact_Type objects which can be used when creating or editing an account contact. 2828func (r Account_Contact) GetAllContactTypes() (resp []datatypes.Account_Contact_Type, err error) { 2829 err = r.Session.DoRequest("SoftLayer_Account_Contact", "getAllContactTypes", nil, &r.Options, &resp) 2830 return 2831} 2832 2833// no documentation yet 2834func (r Account_Contact) GetObject() (resp datatypes.Account_Contact, err error) { 2835 err = r.Session.DoRequest("SoftLayer_Account_Contact", "getObject", nil, &r.Options, &resp) 2836 return 2837} 2838 2839// Retrieve 2840func (r Account_Contact) GetType() (resp datatypes.Account_Contact_Type, err error) { 2841 err = r.Session.DoRequest("SoftLayer_Account_Contact", "getType", nil, &r.Options, &resp) 2842 return 2843} 2844 2845// no documentation yet 2846type Account_External_Setup struct { 2847 Session *session.Session 2848 Options sl.Options 2849} 2850 2851// GetAccountExternalSetupService returns an instance of the Account_External_Setup SoftLayer service 2852func GetAccountExternalSetupService(sess *session.Session) Account_External_Setup { 2853 return Account_External_Setup{Session: sess} 2854} 2855 2856func (r Account_External_Setup) Id(id int) Account_External_Setup { 2857 r.Options.Id = &id 2858 return r 2859} 2860 2861func (r Account_External_Setup) Mask(mask string) Account_External_Setup { 2862 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 2863 mask = fmt.Sprintf("mask[%s]", mask) 2864 } 2865 2866 r.Options.Mask = mask 2867 return r 2868} 2869 2870func (r Account_External_Setup) Filter(filter string) Account_External_Setup { 2871 r.Options.Filter = filter 2872 return r 2873} 2874 2875func (r Account_External_Setup) Limit(limit int) Account_External_Setup { 2876 r.Options.Limit = &limit 2877 return r 2878} 2879 2880func (r Account_External_Setup) Offset(offset int) Account_External_Setup { 2881 r.Options.Offset = &offset 2882 return r 2883} 2884 2885// Calling this method signals that the account with the provided account id is ready to be billed by the external billing system. 2886func (r Account_External_Setup) FinalizeExternalBillingForAccount(accountId *int) (resp datatypes.Container_Account_External_Setup_ProvisioningHoldLifted, err error) { 2887 params := []interface{}{ 2888 accountId, 2889 } 2890 err = r.Session.DoRequest("SoftLayer_Account_External_Setup", "finalizeExternalBillingForAccount", params, &r.Options, &resp) 2891 return 2892} 2893 2894// no documentation yet 2895func (r Account_External_Setup) GetObject() (resp datatypes.Account_External_Setup, err error) { 2896 err = r.Session.DoRequest("SoftLayer_Account_External_Setup", "getObject", nil, &r.Options, &resp) 2897 return 2898} 2899 2900// Retrieve The transaction information related to verifying the customer credit card. 2901func (r Account_External_Setup) GetVerifyCardTransaction() (resp datatypes.Billing_Payment_Card_Transaction, err error) { 2902 err = r.Session.DoRequest("SoftLayer_Account_External_Setup", "getVerifyCardTransaction", nil, &r.Options, &resp) 2903 return 2904} 2905 2906// no documentation yet 2907type Account_Historical_Report struct { 2908 Session *session.Session 2909 Options sl.Options 2910} 2911 2912// GetAccountHistoricalReportService returns an instance of the Account_Historical_Report SoftLayer service 2913func GetAccountHistoricalReportService(sess *session.Session) Account_Historical_Report { 2914 return Account_Historical_Report{Session: sess} 2915} 2916 2917func (r Account_Historical_Report) Id(id int) Account_Historical_Report { 2918 r.Options.Id = &id 2919 return r 2920} 2921 2922func (r Account_Historical_Report) Mask(mask string) Account_Historical_Report { 2923 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 2924 mask = fmt.Sprintf("mask[%s]", mask) 2925 } 2926 2927 r.Options.Mask = mask 2928 return r 2929} 2930 2931func (r Account_Historical_Report) Filter(filter string) Account_Historical_Report { 2932 r.Options.Filter = filter 2933 return r 2934} 2935 2936func (r Account_Historical_Report) Limit(limit int) Account_Historical_Report { 2937 r.Options.Limit = &limit 2938 return r 2939} 2940 2941func (r Account_Historical_Report) Offset(offset int) Account_Historical_Report { 2942 r.Options.Offset = &offset 2943 return r 2944} 2945 2946// no documentation yet 2947func (r Account_Historical_Report) GetAccountHostUptimeGraphData(startDate *string, endDate *string) (resp datatypes.Container_Graph, err error) { 2948 params := []interface{}{ 2949 startDate, 2950 endDate, 2951 } 2952 err = r.Session.DoRequest("SoftLayer_Account_Historical_Report", "getAccountHostUptimeGraphData", params, &r.Options, &resp) 2953 return 2954} 2955 2956// no documentation yet 2957func (r Account_Historical_Report) GetAccountHostUptimeSummary(startDateTime *string, endDateTime *string) (resp datatypes.Container_Account_Historical_Summary, err error) { 2958 params := []interface{}{ 2959 startDateTime, 2960 endDateTime, 2961 } 2962 err = r.Session.DoRequest("SoftLayer_Account_Historical_Report", "getAccountHostUptimeSummary", params, &r.Options, &resp) 2963 return 2964} 2965 2966// no documentation yet 2967func (r Account_Historical_Report) GetAccountUrlUptimeGraphData(startDate *string, endDate *string) (resp datatypes.Container_Graph, err error) { 2968 params := []interface{}{ 2969 startDate, 2970 endDate, 2971 } 2972 err = r.Session.DoRequest("SoftLayer_Account_Historical_Report", "getAccountUrlUptimeGraphData", params, &r.Options, &resp) 2973 return 2974} 2975 2976// no documentation yet 2977func (r Account_Historical_Report) GetAccountUrlUptimeSummary(startDateTime *string, endDateTime *string) (resp datatypes.Container_Account_Historical_Summary, err error) { 2978 params := []interface{}{ 2979 startDateTime, 2980 endDateTime, 2981 } 2982 err = r.Session.DoRequest("SoftLayer_Account_Historical_Report", "getAccountUrlUptimeSummary", params, &r.Options, &resp) 2983 return 2984} 2985 2986// no documentation yet 2987func (r Account_Historical_Report) GetHostUptimeDetail(configurationValueId *int, startDateTime *string, endDateTime *string) (resp datatypes.Container_Account_Historical_Summary_Detail, err error) { 2988 params := []interface{}{ 2989 configurationValueId, 2990 startDateTime, 2991 endDateTime, 2992 } 2993 err = r.Session.DoRequest("SoftLayer_Account_Historical_Report", "getHostUptimeDetail", params, &r.Options, &resp) 2994 return 2995} 2996 2997// no documentation yet 2998func (r Account_Historical_Report) GetHostUptimeGraphData(configurationValueId *int, startDate *string, endDate *string) (resp datatypes.Container_Graph, err error) { 2999 params := []interface{}{ 3000 configurationValueId, 3001 startDate, 3002 endDate, 3003 } 3004 err = r.Session.DoRequest("SoftLayer_Account_Historical_Report", "getHostUptimeGraphData", params, &r.Options, &resp) 3005 return 3006} 3007 3008// no documentation yet 3009func (r Account_Historical_Report) GetUrlUptimeDetail(configurationValueId *int, startDateTime *string, endDateTime *string) (resp datatypes.Container_Account_Historical_Summary_Detail, err error) { 3010 params := []interface{}{ 3011 configurationValueId, 3012 startDateTime, 3013 endDateTime, 3014 } 3015 err = r.Session.DoRequest("SoftLayer_Account_Historical_Report", "getUrlUptimeDetail", params, &r.Options, &resp) 3016 return 3017} 3018 3019// no documentation yet 3020func (r Account_Historical_Report) GetUrlUptimeGraphData(configurationValueId *int, startDate *string, endDate *string) (resp datatypes.Container_Graph, err error) { 3021 params := []interface{}{ 3022 configurationValueId, 3023 startDate, 3024 endDate, 3025 } 3026 err = r.Session.DoRequest("SoftLayer_Account_Historical_Report", "getUrlUptimeGraphData", params, &r.Options, &resp) 3027 return 3028} 3029 3030// no documentation yet 3031type Account_Internal_Ibm struct { 3032 Session *session.Session 3033 Options sl.Options 3034} 3035 3036// GetAccountInternalIbmService returns an instance of the Account_Internal_Ibm SoftLayer service 3037func GetAccountInternalIbmService(sess *session.Session) Account_Internal_Ibm { 3038 return Account_Internal_Ibm{Session: sess} 3039} 3040 3041func (r Account_Internal_Ibm) Id(id int) Account_Internal_Ibm { 3042 r.Options.Id = &id 3043 return r 3044} 3045 3046func (r Account_Internal_Ibm) Mask(mask string) Account_Internal_Ibm { 3047 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 3048 mask = fmt.Sprintf("mask[%s]", mask) 3049 } 3050 3051 r.Options.Mask = mask 3052 return r 3053} 3054 3055func (r Account_Internal_Ibm) Filter(filter string) Account_Internal_Ibm { 3056 r.Options.Filter = filter 3057 return r 3058} 3059 3060func (r Account_Internal_Ibm) Limit(limit int) Account_Internal_Ibm { 3061 r.Options.Limit = &limit 3062 return r 3063} 3064 3065func (r Account_Internal_Ibm) Offset(offset int) Account_Internal_Ibm { 3066 r.Options.Offset = &offset 3067 return r 3068} 3069 3070// Validates request and, if the request is approved, returns a list of allowed uses for an automatically created IBMer IaaS account. 3071func (r Account_Internal_Ibm) GetAccountTypes() (resp []string, err error) { 3072 err = r.Session.DoRequest("SoftLayer_Account_Internal_Ibm", "getAccountTypes", nil, &r.Options, &resp) 3073 return 3074} 3075 3076// Gets the URL used to perform manager validation. 3077func (r Account_Internal_Ibm) GetAuthorizationUrl(requestId *int) (resp string, err error) { 3078 params := []interface{}{ 3079 requestId, 3080 } 3081 err = r.Session.DoRequest("SoftLayer_Account_Internal_Ibm", "getAuthorizationUrl", params, &r.Options, &resp) 3082 return 3083} 3084 3085// no documentation yet 3086func (r Account_Internal_Ibm) GetBmsCountryList() (resp []string, err error) { 3087 err = r.Session.DoRequest("SoftLayer_Account_Internal_Ibm", "getBmsCountryList", nil, &r.Options, &resp) 3088 return 3089} 3090 3091// Exchanges a code for a token during manager validation. 3092func (r Account_Internal_Ibm) GetEmployeeAccessToken(unverifiedAuthenticationCode *string) (resp string, err error) { 3093 params := []interface{}{ 3094 unverifiedAuthenticationCode, 3095 } 3096 err = r.Session.DoRequest("SoftLayer_Account_Internal_Ibm", "getEmployeeAccessToken", params, &r.Options, &resp) 3097 return 3098} 3099 3100// After validating the requesting user through the access token, generates a container with the relevant request information and returns it. 3101func (r Account_Internal_Ibm) GetManagerPreview(requestId *int, accessToken *string) (resp datatypes.Container_Account_Internal_Ibm_Request, err error) { 3102 params := []interface{}{ 3103 requestId, 3104 accessToken, 3105 } 3106 err = r.Session.DoRequest("SoftLayer_Account_Internal_Ibm", "getManagerPreview", params, &r.Options, &resp) 3107 return 3108} 3109 3110// Checks for an existing request which would block an IBMer from submitting a new request. Such a request could be denied, approved, or awaiting manager action. 3111func (r Account_Internal_Ibm) HasExistingRequest(employeeUid *string, managerUid *string) (resp bool, err error) { 3112 params := []interface{}{ 3113 employeeUid, 3114 managerUid, 3115 } 3116 err = r.Session.DoRequest("SoftLayer_Account_Internal_Ibm", "hasExistingRequest", params, &r.Options, &resp) 3117 return 3118} 3119 3120// Applies manager approval to a pending internal IBM account request. If cost recovery is already configured, this will create an account. If not, this will remind the internal team to configure cost recovery and create the account when possible. 3121func (r Account_Internal_Ibm) ManagerApprove(requestId *int, accessToken *string) (err error) { 3122 var resp datatypes.Void 3123 params := []interface{}{ 3124 requestId, 3125 accessToken, 3126 } 3127 err = r.Session.DoRequest("SoftLayer_Account_Internal_Ibm", "managerApprove", params, &r.Options, &resp) 3128 return 3129} 3130 3131// Denies a pending request and prevents additional requests from the same applicant for as long as the manager remains the same. 3132func (r Account_Internal_Ibm) ManagerDeny(requestId *int, accessToken *string) (err error) { 3133 var resp datatypes.Void 3134 params := []interface{}{ 3135 requestId, 3136 accessToken, 3137 } 3138 err = r.Session.DoRequest("SoftLayer_Account_Internal_Ibm", "managerDeny", params, &r.Options, &resp) 3139 return 3140} 3141 3142// Validates request and kicks off the approval process. 3143func (r Account_Internal_Ibm) RequestAccount(requestContainer *datatypes.Container_Account_Internal_Ibm_Request) (err error) { 3144 var resp datatypes.Void 3145 params := []interface{}{ 3146 requestContainer, 3147 } 3148 err = r.Session.DoRequest("SoftLayer_Account_Internal_Ibm", "requestAccount", params, &r.Options, &resp) 3149 return 3150} 3151 3152// no documentation yet 3153type Account_Link_Bluemix struct { 3154 Session *session.Session 3155 Options sl.Options 3156} 3157 3158// GetAccountLinkBluemixService returns an instance of the Account_Link_Bluemix SoftLayer service 3159func GetAccountLinkBluemixService(sess *session.Session) Account_Link_Bluemix { 3160 return Account_Link_Bluemix{Session: sess} 3161} 3162 3163func (r Account_Link_Bluemix) Id(id int) Account_Link_Bluemix { 3164 r.Options.Id = &id 3165 return r 3166} 3167 3168func (r Account_Link_Bluemix) Mask(mask string) Account_Link_Bluemix { 3169 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 3170 mask = fmt.Sprintf("mask[%s]", mask) 3171 } 3172 3173 r.Options.Mask = mask 3174 return r 3175} 3176 3177func (r Account_Link_Bluemix) Filter(filter string) Account_Link_Bluemix { 3178 r.Options.Filter = filter 3179 return r 3180} 3181 3182func (r Account_Link_Bluemix) Limit(limit int) Account_Link_Bluemix { 3183 r.Options.Limit = &limit 3184 return r 3185} 3186 3187func (r Account_Link_Bluemix) Offset(offset int) Account_Link_Bluemix { 3188 r.Options.Offset = &offset 3189 return r 3190} 3191 3192// no documentation yet 3193func (r Account_Link_Bluemix) GetObject() (resp datatypes.Account_Link_Bluemix, err error) { 3194 err = r.Session.DoRequest("SoftLayer_Account_Link_Bluemix", "getObject", nil, &r.Options, &resp) 3195 return 3196} 3197 3198// no documentation yet 3199func (r Account_Link_Bluemix) GetSupportTierType() (resp string, err error) { 3200 err = r.Session.DoRequest("SoftLayer_Account_Link_Bluemix", "getSupportTierType", nil, &r.Options, &resp) 3201 return 3202} 3203 3204// no documentation yet 3205type Account_Link_OpenStack struct { 3206 Session *session.Session 3207 Options sl.Options 3208} 3209 3210// GetAccountLinkOpenStackService returns an instance of the Account_Link_OpenStack SoftLayer service 3211func GetAccountLinkOpenStackService(sess *session.Session) Account_Link_OpenStack { 3212 return Account_Link_OpenStack{Session: sess} 3213} 3214 3215func (r Account_Link_OpenStack) Id(id int) Account_Link_OpenStack { 3216 r.Options.Id = &id 3217 return r 3218} 3219 3220func (r Account_Link_OpenStack) Mask(mask string) Account_Link_OpenStack { 3221 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 3222 mask = fmt.Sprintf("mask[%s]", mask) 3223 } 3224 3225 r.Options.Mask = mask 3226 return r 3227} 3228 3229func (r Account_Link_OpenStack) Filter(filter string) Account_Link_OpenStack { 3230 r.Options.Filter = filter 3231 return r 3232} 3233 3234func (r Account_Link_OpenStack) Limit(limit int) Account_Link_OpenStack { 3235 r.Options.Limit = &limit 3236 return r 3237} 3238 3239func (r Account_Link_OpenStack) Offset(offset int) Account_Link_OpenStack { 3240 r.Options.Offset = &offset 3241 return r 3242} 3243 3244// no documentation yet 3245func (r Account_Link_OpenStack) CreateOSDomain(request *datatypes.Account_Link_OpenStack_LinkRequest) (resp datatypes.Account_Link_OpenStack_DomainCreationDetails, err error) { 3246 params := []interface{}{ 3247 request, 3248 } 3249 err = r.Session.DoRequest("SoftLayer_Account_Link_OpenStack", "createOSDomain", params, &r.Options, &resp) 3250 return 3251} 3252 3253// no documentation yet 3254func (r Account_Link_OpenStack) CreateOSProject(request *datatypes.Account_Link_OpenStack_LinkRequest) (resp datatypes.Account_Link_OpenStack_ProjectCreationDetails, err error) { 3255 params := []interface{}{ 3256 request, 3257 } 3258 err = r.Session.DoRequest("SoftLayer_Account_Link_OpenStack", "createOSProject", params, &r.Options, &resp) 3259 return 3260} 3261 3262// no documentation yet 3263func (r Account_Link_OpenStack) DeleteOSDomain(domainId *string) (resp bool, err error) { 3264 params := []interface{}{ 3265 domainId, 3266 } 3267 err = r.Session.DoRequest("SoftLayer_Account_Link_OpenStack", "deleteOSDomain", params, &r.Options, &resp) 3268 return 3269} 3270 3271// no documentation yet 3272func (r Account_Link_OpenStack) DeleteOSProject(projectId *string) (resp bool, err error) { 3273 params := []interface{}{ 3274 projectId, 3275 } 3276 err = r.Session.DoRequest("SoftLayer_Account_Link_OpenStack", "deleteOSProject", params, &r.Options, &resp) 3277 return 3278} 3279 3280// deleteObject permanently removes an account link and all of it's associated keystone data (including users for the associated project). '''This cannot be undone.''' Be wary of running this method. If you remove an account link in error you will need to re-create it by creating a new SoftLayer_Account_Link_OpenStack object. 3281func (r Account_Link_OpenStack) DeleteObject() (resp bool, err error) { 3282 err = r.Session.DoRequest("SoftLayer_Account_Link_OpenStack", "deleteObject", nil, &r.Options, &resp) 3283 return 3284} 3285 3286// no documentation yet 3287func (r Account_Link_OpenStack) GetOSProject(projectId *string) (resp datatypes.Account_Link_OpenStack_ProjectDetails, err error) { 3288 params := []interface{}{ 3289 projectId, 3290 } 3291 err = r.Session.DoRequest("SoftLayer_Account_Link_OpenStack", "getOSProject", params, &r.Options, &resp) 3292 return 3293} 3294 3295// no documentation yet 3296func (r Account_Link_OpenStack) GetObject() (resp datatypes.Account_Link_OpenStack, err error) { 3297 err = r.Session.DoRequest("SoftLayer_Account_Link_OpenStack", "getObject", nil, &r.Options, &resp) 3298 return 3299} 3300 3301// no documentation yet 3302func (r Account_Link_OpenStack) ListOSProjects() (resp []datatypes.Account_Link_OpenStack_ProjectDetails, err error) { 3303 err = r.Session.DoRequest("SoftLayer_Account_Link_OpenStack", "listOSProjects", nil, &r.Options, &resp) 3304 return 3305} 3306 3307// The SoftLayer_Account_Lockdown_Request data type holds information on API requests from brand customers. 3308type Account_Lockdown_Request struct { 3309 Session *session.Session 3310 Options sl.Options 3311} 3312 3313// GetAccountLockdownRequestService returns an instance of the Account_Lockdown_Request SoftLayer service 3314func GetAccountLockdownRequestService(sess *session.Session) Account_Lockdown_Request { 3315 return Account_Lockdown_Request{Session: sess} 3316} 3317 3318func (r Account_Lockdown_Request) Id(id int) Account_Lockdown_Request { 3319 r.Options.Id = &id 3320 return r 3321} 3322 3323func (r Account_Lockdown_Request) Mask(mask string) Account_Lockdown_Request { 3324 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 3325 mask = fmt.Sprintf("mask[%s]", mask) 3326 } 3327 3328 r.Options.Mask = mask 3329 return r 3330} 3331 3332func (r Account_Lockdown_Request) Filter(filter string) Account_Lockdown_Request { 3333 r.Options.Filter = filter 3334 return r 3335} 3336 3337func (r Account_Lockdown_Request) Limit(limit int) Account_Lockdown_Request { 3338 r.Options.Limit = &limit 3339 return r 3340} 3341 3342func (r Account_Lockdown_Request) Offset(offset int) Account_Lockdown_Request { 3343 r.Options.Offset = &offset 3344 return r 3345} 3346 3347// Will cancel a lockdown request scheduled in the future. Once canceled, the lockdown request cannot be reconciled and new requests must be made for subsequent actions on the account. 3348func (r Account_Lockdown_Request) CancelRequest() (err error) { 3349 var resp datatypes.Void 3350 err = r.Session.DoRequest("SoftLayer_Account_Lockdown_Request", "cancelRequest", nil, &r.Options, &resp) 3351 return 3352} 3353 3354// Takes the original lockdown request ID, and an optional disable date. If no date is passed with the API call, the account will be disabled immediately. Otherwise, the account will be disabled on the date given. All hardware will be reclaimed and all accounts permanently disabled. 3355func (r Account_Lockdown_Request) DisableLockedAccount(disableDate *string) (resp int, err error) { 3356 params := []interface{}{ 3357 disableDate, 3358 } 3359 err = r.Session.DoRequest("SoftLayer_Account_Lockdown_Request", "disableLockedAccount", params, &r.Options, &resp) 3360 return 3361} 3362 3363// Takes an account ID and an optional disconnect date. If no disconnect date is passed into the API call, the account disconnection will happen immediately. Otherwise, the account disconnection will happen on the date given. A brand account request ID will be returned and will then be updated when the disconnection occurs. 3364func (r Account_Lockdown_Request) DisconnectCompute(accountId *int, disconnectDate *string) (resp int, err error) { 3365 params := []interface{}{ 3366 accountId, 3367 disconnectDate, 3368 } 3369 err = r.Session.DoRequest("SoftLayer_Account_Lockdown_Request", "disconnectCompute", params, &r.Options, &resp) 3370 return 3371} 3372 3373// Provides a history of an account's lockdown requests and their status. 3374func (r Account_Lockdown_Request) GetAccountHistory(accountId *int) (resp []datatypes.Account_Lockdown_Request, err error) { 3375 params := []interface{}{ 3376 accountId, 3377 } 3378 err = r.Session.DoRequest("SoftLayer_Account_Lockdown_Request", "getAccountHistory", params, &r.Options, &resp) 3379 return 3380} 3381 3382// no documentation yet 3383func (r Account_Lockdown_Request) GetObject() (resp datatypes.Account_Lockdown_Request, err error) { 3384 err = r.Session.DoRequest("SoftLayer_Account_Lockdown_Request", "getObject", nil, &r.Options, &resp) 3385 return 3386} 3387 3388// Takes the original disconnected lockdown event ID, and an optional reconnect date. If no reconnect date is passed with the API call, the account reconnection will happen immediately. Otherwise, the account reconnection will happen on the date given. The associated lockdown event will be unlocked and closed at that time. 3389func (r Account_Lockdown_Request) ReconnectCompute(reconnectDate *string) (resp int, err error) { 3390 params := []interface{}{ 3391 reconnectDate, 3392 } 3393 err = r.Session.DoRequest("SoftLayer_Account_Lockdown_Request", "reconnectCompute", params, &r.Options, &resp) 3394 return 3395} 3396 3397// no documentation yet 3398type Account_MasterServiceAgreement struct { 3399 Session *session.Session 3400 Options sl.Options 3401} 3402 3403// GetAccountMasterServiceAgreementService returns an instance of the Account_MasterServiceAgreement SoftLayer service 3404func GetAccountMasterServiceAgreementService(sess *session.Session) Account_MasterServiceAgreement { 3405 return Account_MasterServiceAgreement{Session: sess} 3406} 3407 3408func (r Account_MasterServiceAgreement) Id(id int) Account_MasterServiceAgreement { 3409 r.Options.Id = &id 3410 return r 3411} 3412 3413func (r Account_MasterServiceAgreement) Mask(mask string) Account_MasterServiceAgreement { 3414 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 3415 mask = fmt.Sprintf("mask[%s]", mask) 3416 } 3417 3418 r.Options.Mask = mask 3419 return r 3420} 3421 3422func (r Account_MasterServiceAgreement) Filter(filter string) Account_MasterServiceAgreement { 3423 r.Options.Filter = filter 3424 return r 3425} 3426 3427func (r Account_MasterServiceAgreement) Limit(limit int) Account_MasterServiceAgreement { 3428 r.Options.Limit = &limit 3429 return r 3430} 3431 3432func (r Account_MasterServiceAgreement) Offset(offset int) Account_MasterServiceAgreement { 3433 r.Options.Offset = &offset 3434 return r 3435} 3436 3437// Retrieve 3438func (r Account_MasterServiceAgreement) GetAccount() (resp datatypes.Account, err error) { 3439 err = r.Session.DoRequest("SoftLayer_Account_MasterServiceAgreement", "getAccount", nil, &r.Options, &resp) 3440 return 3441} 3442 3443// Gets a File Entity container with the user's account's current MSA PDF. Gets a translation if one is available. Otherwise, gets the master document. 3444func (r Account_MasterServiceAgreement) GetFile() (resp datatypes.Container_Utility_File_Entity, err error) { 3445 err = r.Session.DoRequest("SoftLayer_Account_MasterServiceAgreement", "getFile", nil, &r.Options, &resp) 3446 return 3447} 3448 3449// no documentation yet 3450func (r Account_MasterServiceAgreement) GetObject() (resp datatypes.Account_MasterServiceAgreement, err error) { 3451 err = r.Session.DoRequest("SoftLayer_Account_MasterServiceAgreement", "getObject", nil, &r.Options, &resp) 3452 return 3453} 3454 3455// The SoftLayer_Account_Media data type contains information on a single piece of media associated with a Data Transfer Service request. 3456type Account_Media struct { 3457 Session *session.Session 3458 Options sl.Options 3459} 3460 3461// GetAccountMediaService returns an instance of the Account_Media SoftLayer service 3462func GetAccountMediaService(sess *session.Session) Account_Media { 3463 return Account_Media{Session: sess} 3464} 3465 3466func (r Account_Media) Id(id int) Account_Media { 3467 r.Options.Id = &id 3468 return r 3469} 3470 3471func (r Account_Media) Mask(mask string) Account_Media { 3472 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 3473 mask = fmt.Sprintf("mask[%s]", mask) 3474 } 3475 3476 r.Options.Mask = mask 3477 return r 3478} 3479 3480func (r Account_Media) Filter(filter string) Account_Media { 3481 r.Options.Filter = filter 3482 return r 3483} 3484 3485func (r Account_Media) Limit(limit int) Account_Media { 3486 r.Options.Limit = &limit 3487 return r 3488} 3489 3490func (r Account_Media) Offset(offset int) Account_Media { 3491 r.Options.Offset = &offset 3492 return r 3493} 3494 3495// Edit the properties of a media record by passing in a modified instance of a SoftLayer_Account_Media object. 3496func (r Account_Media) EditObject(templateObject *datatypes.Account_Media) (resp bool, err error) { 3497 params := []interface{}{ 3498 templateObject, 3499 } 3500 err = r.Session.DoRequest("SoftLayer_Account_Media", "editObject", params, &r.Options, &resp) 3501 return 3502} 3503 3504// Retrieve The account to which the media belongs. 3505func (r Account_Media) GetAccount() (resp datatypes.Account, err error) { 3506 err = r.Session.DoRequest("SoftLayer_Account_Media", "getAccount", nil, &r.Options, &resp) 3507 return 3508} 3509 3510// Retrieve a list supported media types for SoftLayer's Data Transfer Service. 3511func (r Account_Media) GetAllMediaTypes() (resp []datatypes.Account_Media_Type, err error) { 3512 err = r.Session.DoRequest("SoftLayer_Account_Media", "getAllMediaTypes", nil, &r.Options, &resp) 3513 return 3514} 3515 3516// Retrieve The customer user who created the media object. 3517func (r Account_Media) GetCreateUser() (resp datatypes.User_Customer, err error) { 3518 err = r.Session.DoRequest("SoftLayer_Account_Media", "getCreateUser", nil, &r.Options, &resp) 3519 return 3520} 3521 3522// Retrieve The datacenter where the media resides. 3523func (r Account_Media) GetDatacenter() (resp datatypes.Location, err error) { 3524 err = r.Session.DoRequest("SoftLayer_Account_Media", "getDatacenter", nil, &r.Options, &resp) 3525 return 3526} 3527 3528// Retrieve The employee who last modified the media. 3529func (r Account_Media) GetModifyEmployee() (resp datatypes.User_Employee, err error) { 3530 err = r.Session.DoRequest("SoftLayer_Account_Media", "getModifyEmployee", nil, &r.Options, &resp) 3531 return 3532} 3533 3534// Retrieve The customer user who last modified the media. 3535func (r Account_Media) GetModifyUser() (resp datatypes.User_Customer, err error) { 3536 err = r.Session.DoRequest("SoftLayer_Account_Media", "getModifyUser", nil, &r.Options, &resp) 3537 return 3538} 3539 3540// no documentation yet 3541func (r Account_Media) GetObject() (resp datatypes.Account_Media, err error) { 3542 err = r.Session.DoRequest("SoftLayer_Account_Media", "getObject", nil, &r.Options, &resp) 3543 return 3544} 3545 3546// Retrieve The request to which the media belongs. 3547func (r Account_Media) GetRequest() (resp datatypes.Account_Media_Data_Transfer_Request, err error) { 3548 err = r.Session.DoRequest("SoftLayer_Account_Media", "getRequest", nil, &r.Options, &resp) 3549 return 3550} 3551 3552// Retrieve The media's type. 3553func (r Account_Media) GetType() (resp datatypes.Account_Media_Type, err error) { 3554 err = r.Session.DoRequest("SoftLayer_Account_Media", "getType", nil, &r.Options, &resp) 3555 return 3556} 3557 3558// Retrieve A guest's associated EVault network storage service account. 3559func (r Account_Media) GetVolume() (resp datatypes.Network_Storage, err error) { 3560 err = r.Session.DoRequest("SoftLayer_Account_Media", "getVolume", nil, &r.Options, &resp) 3561 return 3562} 3563 3564// Remove a media from a SoftLayer account's list of media. The media record is not deleted. 3565func (r Account_Media) RemoveMediaFromList(mediaTemplate *datatypes.Account_Media) (resp int, err error) { 3566 params := []interface{}{ 3567 mediaTemplate, 3568 } 3569 err = r.Session.DoRequest("SoftLayer_Account_Media", "removeMediaFromList", params, &r.Options, &resp) 3570 return 3571} 3572 3573// The SoftLayer_Account_Media_Data_Transfer_Request data type contains information on a single Data Transfer Service request. Creation of these requests is limited to SoftLayer customers through the SoftLayer Customer Portal. 3574type Account_Media_Data_Transfer_Request struct { 3575 Session *session.Session 3576 Options sl.Options 3577} 3578 3579// GetAccountMediaDataTransferRequestService returns an instance of the Account_Media_Data_Transfer_Request SoftLayer service 3580func GetAccountMediaDataTransferRequestService(sess *session.Session) Account_Media_Data_Transfer_Request { 3581 return Account_Media_Data_Transfer_Request{Session: sess} 3582} 3583 3584func (r Account_Media_Data_Transfer_Request) Id(id int) Account_Media_Data_Transfer_Request { 3585 r.Options.Id = &id 3586 return r 3587} 3588 3589func (r Account_Media_Data_Transfer_Request) Mask(mask string) Account_Media_Data_Transfer_Request { 3590 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 3591 mask = fmt.Sprintf("mask[%s]", mask) 3592 } 3593 3594 r.Options.Mask = mask 3595 return r 3596} 3597 3598func (r Account_Media_Data_Transfer_Request) Filter(filter string) Account_Media_Data_Transfer_Request { 3599 r.Options.Filter = filter 3600 return r 3601} 3602 3603func (r Account_Media_Data_Transfer_Request) Limit(limit int) Account_Media_Data_Transfer_Request { 3604 r.Options.Limit = &limit 3605 return r 3606} 3607 3608func (r Account_Media_Data_Transfer_Request) Offset(offset int) Account_Media_Data_Transfer_Request { 3609 r.Options.Offset = &offset 3610 return r 3611} 3612 3613// Edit the properties of a data transfer request record by passing in a modified instance of a SoftLayer_Account_Media_Data_Transfer_Request object. 3614func (r Account_Media_Data_Transfer_Request) EditObject(templateObject *datatypes.Account_Media_Data_Transfer_Request) (resp bool, err error) { 3615 params := []interface{}{ 3616 templateObject, 3617 } 3618 err = r.Session.DoRequest("SoftLayer_Account_Media_Data_Transfer_Request", "editObject", params, &r.Options, &resp) 3619 return 3620} 3621 3622// Retrieve The account to which the request belongs. 3623func (r Account_Media_Data_Transfer_Request) GetAccount() (resp datatypes.Account, err error) { 3624 err = r.Session.DoRequest("SoftLayer_Account_Media_Data_Transfer_Request", "getAccount", nil, &r.Options, &resp) 3625 return 3626} 3627 3628// Retrieve The active tickets that are attached to the data transfer request. 3629func (r Account_Media_Data_Transfer_Request) GetActiveTickets() (resp []datatypes.Ticket, err error) { 3630 err = r.Session.DoRequest("SoftLayer_Account_Media_Data_Transfer_Request", "getActiveTickets", nil, &r.Options, &resp) 3631 return 3632} 3633 3634// Retrieves a list of all the possible statuses to which a request may be set. 3635func (r Account_Media_Data_Transfer_Request) GetAllRequestStatuses() (resp []datatypes.Account_Media_Data_Transfer_Request_Status, err error) { 3636 err = r.Session.DoRequest("SoftLayer_Account_Media_Data_Transfer_Request", "getAllRequestStatuses", nil, &r.Options, &resp) 3637 return 3638} 3639 3640// Retrieve The billing item for the original request. 3641func (r Account_Media_Data_Transfer_Request) GetBillingItem() (resp datatypes.Billing_Item, err error) { 3642 err = r.Session.DoRequest("SoftLayer_Account_Media_Data_Transfer_Request", "getBillingItem", nil, &r.Options, &resp) 3643 return 3644} 3645 3646// Retrieve The customer user who created the request. 3647func (r Account_Media_Data_Transfer_Request) GetCreateUser() (resp datatypes.User_Customer, err error) { 3648 err = r.Session.DoRequest("SoftLayer_Account_Media_Data_Transfer_Request", "getCreateUser", nil, &r.Options, &resp) 3649 return 3650} 3651 3652// Retrieve The media of the request. 3653func (r Account_Media_Data_Transfer_Request) GetMedia() (resp datatypes.Account_Media, err error) { 3654 err = r.Session.DoRequest("SoftLayer_Account_Media_Data_Transfer_Request", "getMedia", nil, &r.Options, &resp) 3655 return 3656} 3657 3658// Retrieve The employee who last modified the request. 3659func (r Account_Media_Data_Transfer_Request) GetModifyEmployee() (resp datatypes.User_Employee, err error) { 3660 err = r.Session.DoRequest("SoftLayer_Account_Media_Data_Transfer_Request", "getModifyEmployee", nil, &r.Options, &resp) 3661 return 3662} 3663 3664// Retrieve The customer user who last modified the request. 3665func (r Account_Media_Data_Transfer_Request) GetModifyUser() (resp datatypes.User_Customer, err error) { 3666 err = r.Session.DoRequest("SoftLayer_Account_Media_Data_Transfer_Request", "getModifyUser", nil, &r.Options, &resp) 3667 return 3668} 3669 3670// no documentation yet 3671func (r Account_Media_Data_Transfer_Request) GetObject() (resp datatypes.Account_Media_Data_Transfer_Request, err error) { 3672 err = r.Session.DoRequest("SoftLayer_Account_Media_Data_Transfer_Request", "getObject", nil, &r.Options, &resp) 3673 return 3674} 3675 3676// Retrieve The shipments of the request. 3677func (r Account_Media_Data_Transfer_Request) GetShipments() (resp []datatypes.Account_Shipment, err error) { 3678 err = r.Session.DoRequest("SoftLayer_Account_Media_Data_Transfer_Request", "getShipments", nil, &r.Options, &resp) 3679 return 3680} 3681 3682// Retrieve The status of the request. 3683func (r Account_Media_Data_Transfer_Request) GetStatus() (resp datatypes.Account_Media_Data_Transfer_Request_Status, err error) { 3684 err = r.Session.DoRequest("SoftLayer_Account_Media_Data_Transfer_Request", "getStatus", nil, &r.Options, &resp) 3685 return 3686} 3687 3688// Retrieve All tickets that are attached to the data transfer request. 3689func (r Account_Media_Data_Transfer_Request) GetTickets() (resp []datatypes.Ticket, err error) { 3690 err = r.Session.DoRequest("SoftLayer_Account_Media_Data_Transfer_Request", "getTickets", nil, &r.Options, &resp) 3691 return 3692} 3693 3694// no documentation yet 3695type Account_Note struct { 3696 Session *session.Session 3697 Options sl.Options 3698} 3699 3700// GetAccountNoteService returns an instance of the Account_Note SoftLayer service 3701func GetAccountNoteService(sess *session.Session) Account_Note { 3702 return Account_Note{Session: sess} 3703} 3704 3705func (r Account_Note) Id(id int) Account_Note { 3706 r.Options.Id = &id 3707 return r 3708} 3709 3710func (r Account_Note) Mask(mask string) Account_Note { 3711 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 3712 mask = fmt.Sprintf("mask[%s]", mask) 3713 } 3714 3715 r.Options.Mask = mask 3716 return r 3717} 3718 3719func (r Account_Note) Filter(filter string) Account_Note { 3720 r.Options.Filter = filter 3721 return r 3722} 3723 3724func (r Account_Note) Limit(limit int) Account_Note { 3725 r.Options.Limit = &limit 3726 return r 3727} 3728 3729func (r Account_Note) Offset(offset int) Account_Note { 3730 r.Options.Offset = &offset 3731 return r 3732} 3733 3734// no documentation yet 3735func (r Account_Note) CreateObject(templateObject *datatypes.Account_Note) (resp datatypes.Account_Note, err error) { 3736 params := []interface{}{ 3737 templateObject, 3738 } 3739 err = r.Session.DoRequest("SoftLayer_Account_Note", "createObject", params, &r.Options, &resp) 3740 return 3741} 3742 3743// no documentation yet 3744func (r Account_Note) DeleteObject() (resp bool, err error) { 3745 err = r.Session.DoRequest("SoftLayer_Account_Note", "deleteObject", nil, &r.Options, &resp) 3746 return 3747} 3748 3749// no documentation yet 3750func (r Account_Note) EditObject(templateObject *datatypes.Account_Note) (resp bool, err error) { 3751 params := []interface{}{ 3752 templateObject, 3753 } 3754 err = r.Session.DoRequest("SoftLayer_Account_Note", "editObject", params, &r.Options, &resp) 3755 return 3756} 3757 3758// Retrieve 3759func (r Account_Note) GetAccount() (resp datatypes.Account, err error) { 3760 err = r.Session.DoRequest("SoftLayer_Account_Note", "getAccount", nil, &r.Options, &resp) 3761 return 3762} 3763 3764// Retrieve 3765func (r Account_Note) GetCustomer() (resp datatypes.User_Customer, err error) { 3766 err = r.Session.DoRequest("SoftLayer_Account_Note", "getCustomer", nil, &r.Options, &resp) 3767 return 3768} 3769 3770// Retrieve 3771func (r Account_Note) GetNoteHistory() (resp []datatypes.Account_Note_History, err error) { 3772 err = r.Session.DoRequest("SoftLayer_Account_Note", "getNoteHistory", nil, &r.Options, &resp) 3773 return 3774} 3775 3776// Retrieve 3777func (r Account_Note) GetNoteType() (resp datatypes.Account_Note_Type, err error) { 3778 err = r.Session.DoRequest("SoftLayer_Account_Note", "getNoteType", nil, &r.Options, &resp) 3779 return 3780} 3781 3782// no documentation yet 3783func (r Account_Note) GetObject() (resp datatypes.Account_Note, err error) { 3784 err = r.Session.DoRequest("SoftLayer_Account_Note", "getObject", nil, &r.Options, &resp) 3785 return 3786} 3787 3788// no documentation yet 3789type Account_Note_Type struct { 3790 Session *session.Session 3791 Options sl.Options 3792} 3793 3794// GetAccountNoteTypeService returns an instance of the Account_Note_Type SoftLayer service 3795func GetAccountNoteTypeService(sess *session.Session) Account_Note_Type { 3796 return Account_Note_Type{Session: sess} 3797} 3798 3799func (r Account_Note_Type) Id(id int) Account_Note_Type { 3800 r.Options.Id = &id 3801 return r 3802} 3803 3804func (r Account_Note_Type) Mask(mask string) Account_Note_Type { 3805 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 3806 mask = fmt.Sprintf("mask[%s]", mask) 3807 } 3808 3809 r.Options.Mask = mask 3810 return r 3811} 3812 3813func (r Account_Note_Type) Filter(filter string) Account_Note_Type { 3814 r.Options.Filter = filter 3815 return r 3816} 3817 3818func (r Account_Note_Type) Limit(limit int) Account_Note_Type { 3819 r.Options.Limit = &limit 3820 return r 3821} 3822 3823func (r Account_Note_Type) Offset(offset int) Account_Note_Type { 3824 r.Options.Offset = &offset 3825 return r 3826} 3827 3828// no documentation yet 3829func (r Account_Note_Type) CreateObject(templateObject *datatypes.Account_Note_Type) (resp datatypes.Account_Note_Type, err error) { 3830 params := []interface{}{ 3831 templateObject, 3832 } 3833 err = r.Session.DoRequest("SoftLayer_Account_Note_Type", "createObject", params, &r.Options, &resp) 3834 return 3835} 3836 3837// no documentation yet 3838func (r Account_Note_Type) DeleteObject() (resp bool, err error) { 3839 err = r.Session.DoRequest("SoftLayer_Account_Note_Type", "deleteObject", nil, &r.Options, &resp) 3840 return 3841} 3842 3843// no documentation yet 3844func (r Account_Note_Type) EditObject(templateObject *datatypes.Account_Note_Type) (resp bool, err error) { 3845 params := []interface{}{ 3846 templateObject, 3847 } 3848 err = r.Session.DoRequest("SoftLayer_Account_Note_Type", "editObject", params, &r.Options, &resp) 3849 return 3850} 3851 3852// no documentation yet 3853func (r Account_Note_Type) GetAllObjects() (resp []datatypes.Account_Note_Type, err error) { 3854 err = r.Session.DoRequest("SoftLayer_Account_Note_Type", "getAllObjects", nil, &r.Options, &resp) 3855 return 3856} 3857 3858// no documentation yet 3859func (r Account_Note_Type) GetObject() (resp datatypes.Account_Note_Type, err error) { 3860 err = r.Session.DoRequest("SoftLayer_Account_Note_Type", "getObject", nil, &r.Options, &resp) 3861 return 3862} 3863 3864// no documentation yet 3865type Account_Partner_Referral_Prospect struct { 3866 Session *session.Session 3867 Options sl.Options 3868} 3869 3870// GetAccountPartnerReferralProspectService returns an instance of the Account_Partner_Referral_Prospect SoftLayer service 3871func GetAccountPartnerReferralProspectService(sess *session.Session) Account_Partner_Referral_Prospect { 3872 return Account_Partner_Referral_Prospect{Session: sess} 3873} 3874 3875func (r Account_Partner_Referral_Prospect) Id(id int) Account_Partner_Referral_Prospect { 3876 r.Options.Id = &id 3877 return r 3878} 3879 3880func (r Account_Partner_Referral_Prospect) Mask(mask string) Account_Partner_Referral_Prospect { 3881 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 3882 mask = fmt.Sprintf("mask[%s]", mask) 3883 } 3884 3885 r.Options.Mask = mask 3886 return r 3887} 3888 3889func (r Account_Partner_Referral_Prospect) Filter(filter string) Account_Partner_Referral_Prospect { 3890 r.Options.Filter = filter 3891 return r 3892} 3893 3894func (r Account_Partner_Referral_Prospect) Limit(limit int) Account_Partner_Referral_Prospect { 3895 r.Options.Limit = &limit 3896 return r 3897} 3898 3899func (r Account_Partner_Referral_Prospect) Offset(offset int) Account_Partner_Referral_Prospect { 3900 r.Options.Offset = &offset 3901 return r 3902} 3903 3904// Create a new Referral Partner Prospect 3905func (r Account_Partner_Referral_Prospect) CreateProspect(templateObject *datatypes.Container_Referral_Partner_Prospect, commit *bool) (resp datatypes.Account_Partner_Referral_Prospect, err error) { 3906 params := []interface{}{ 3907 templateObject, 3908 commit, 3909 } 3910 err = r.Session.DoRequest("SoftLayer_Account_Partner_Referral_Prospect", "createProspect", params, &r.Options, &resp) 3911 return 3912} 3913 3914// no documentation yet 3915func (r Account_Partner_Referral_Prospect) GetObject() (resp datatypes.Account_Partner_Referral_Prospect, err error) { 3916 err = r.Session.DoRequest("SoftLayer_Account_Partner_Referral_Prospect", "getObject", nil, &r.Options, &resp) 3917 return 3918} 3919 3920// Retrieves Questions for a Referral Partner Survey 3921func (r Account_Partner_Referral_Prospect) GetSurveyQuestions() (resp []datatypes.Survey_Question, err error) { 3922 err = r.Session.DoRequest("SoftLayer_Account_Partner_Referral_Prospect", "getSurveyQuestions", nil, &r.Options, &resp) 3923 return 3924} 3925 3926// The SoftLayer_Account_Password contains username, passwords and notes for services that may require for external applications such the Webcc interface for the EVault Storage service. 3927type Account_Password struct { 3928 Session *session.Session 3929 Options sl.Options 3930} 3931 3932// GetAccountPasswordService returns an instance of the Account_Password SoftLayer service 3933func GetAccountPasswordService(sess *session.Session) Account_Password { 3934 return Account_Password{Session: sess} 3935} 3936 3937func (r Account_Password) Id(id int) Account_Password { 3938 r.Options.Id = &id 3939 return r 3940} 3941 3942func (r Account_Password) Mask(mask string) Account_Password { 3943 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 3944 mask = fmt.Sprintf("mask[%s]", mask) 3945 } 3946 3947 r.Options.Mask = mask 3948 return r 3949} 3950 3951func (r Account_Password) Filter(filter string) Account_Password { 3952 r.Options.Filter = filter 3953 return r 3954} 3955 3956func (r Account_Password) Limit(limit int) Account_Password { 3957 r.Options.Limit = &limit 3958 return r 3959} 3960 3961func (r Account_Password) Offset(offset int) Account_Password { 3962 r.Options.Offset = &offset 3963 return r 3964} 3965 3966// The password and/or notes may be modified. Modifying the EVault passwords here will also update the password the Webcc interface will use. 3967func (r Account_Password) EditObject(templateObject *datatypes.Account_Password) (resp bool, err error) { 3968 params := []interface{}{ 3969 templateObject, 3970 } 3971 err = r.Session.DoRequest("SoftLayer_Account_Password", "editObject", params, &r.Options, &resp) 3972 return 3973} 3974 3975// Retrieve 3976func (r Account_Password) GetAccount() (resp datatypes.Account, err error) { 3977 err = r.Session.DoRequest("SoftLayer_Account_Password", "getAccount", nil, &r.Options, &resp) 3978 return 3979} 3980 3981// getObject retrieves the SoftLayer_Account_Password object whose ID corresponds to the ID number of the init parameter passed to the SoftLayer_Account_Password service. 3982func (r Account_Password) GetObject() (resp datatypes.Account_Password, err error) { 3983 err = r.Session.DoRequest("SoftLayer_Account_Password", "getObject", nil, &r.Options, &resp) 3984 return 3985} 3986 3987// Retrieve The service that an account/password combination is tied to. 3988func (r Account_Password) GetType() (resp datatypes.Account_Password_Type, err error) { 3989 err = r.Session.DoRequest("SoftLayer_Account_Password", "getType", nil, &r.Options, &resp) 3990 return 3991} 3992 3993// no documentation yet 3994type Account_PersonalData_RemoveRequestReview struct { 3995 Session *session.Session 3996 Options sl.Options 3997} 3998 3999// GetAccountPersonalDataRemoveRequestReviewService returns an instance of the Account_PersonalData_RemoveRequestReview SoftLayer service 4000func GetAccountPersonalDataRemoveRequestReviewService(sess *session.Session) Account_PersonalData_RemoveRequestReview { 4001 return Account_PersonalData_RemoveRequestReview{Session: sess} 4002} 4003 4004func (r Account_PersonalData_RemoveRequestReview) Id(id int) Account_PersonalData_RemoveRequestReview { 4005 r.Options.Id = &id 4006 return r 4007} 4008 4009func (r Account_PersonalData_RemoveRequestReview) Mask(mask string) Account_PersonalData_RemoveRequestReview { 4010 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 4011 mask = fmt.Sprintf("mask[%s]", mask) 4012 } 4013 4014 r.Options.Mask = mask 4015 return r 4016} 4017 4018func (r Account_PersonalData_RemoveRequestReview) Filter(filter string) Account_PersonalData_RemoveRequestReview { 4019 r.Options.Filter = filter 4020 return r 4021} 4022 4023func (r Account_PersonalData_RemoveRequestReview) Limit(limit int) Account_PersonalData_RemoveRequestReview { 4024 r.Options.Limit = &limit 4025 return r 4026} 4027 4028func (r Account_PersonalData_RemoveRequestReview) Offset(offset int) Account_PersonalData_RemoveRequestReview { 4029 r.Options.Offset = &offset 4030 return r 4031} 4032 4033// Approve a personal information removal request. 4034func (r Account_PersonalData_RemoveRequestReview) ApproveRequest(requestId *int, accessToken *string) (err error) { 4035 var resp datatypes.Void 4036 params := []interface{}{ 4037 requestId, 4038 accessToken, 4039 } 4040 err = r.Session.DoRequest("SoftLayer_Account_PersonalData_RemoveRequestReview", "approveRequest", params, &r.Options, &resp) 4041 return 4042} 4043 4044// Retrieve 4045func (r Account_PersonalData_RemoveRequestReview) GetAccount() (resp datatypes.Account, err error) { 4046 err = r.Session.DoRequest("SoftLayer_Account_PersonalData_RemoveRequestReview", "getAccount", nil, &r.Options, &resp) 4047 return 4048} 4049 4050// Retrieve 4051func (r Account_PersonalData_RemoveRequestReview) GetApprovedFlag() (resp datatypes.Account_PersonalData_RemoveRequestReview, err error) { 4052 err = r.Session.DoRequest("SoftLayer_Account_PersonalData_RemoveRequestReview", "getApprovedFlag", nil, &r.Options, &resp) 4053 return 4054} 4055 4056// Gets the redirect URL for GDPR removal review. 4057func (r Account_PersonalData_RemoveRequestReview) GetAuthorizationUrl() (resp string, err error) { 4058 err = r.Session.DoRequest("SoftLayer_Account_PersonalData_RemoveRequestReview", "getAuthorizationUrl", nil, &r.Options, &resp) 4059 return 4060} 4061 4062// no documentation yet 4063func (r Account_PersonalData_RemoveRequestReview) GetObject() (resp datatypes.Account_PersonalData_RemoveRequestReview, err error) { 4064 err = r.Session.DoRequest("SoftLayer_Account_PersonalData_RemoveRequestReview", "getObject", nil, &r.Options, &resp) 4065 return 4066} 4067 4068// Gets information removal requests to review. 4069func (r Account_PersonalData_RemoveRequestReview) GetPendingRequests(accessToken *string) (resp []datatypes.Container_Account_PersonalInformation, err error) { 4070 params := []interface{}{ 4071 accessToken, 4072 } 4073 err = r.Session.DoRequest("SoftLayer_Account_PersonalData_RemoveRequestReview", "getPendingRequests", params, &r.Options, &resp) 4074 return 4075} 4076 4077// Retrieves an access token. 4078func (r Account_PersonalData_RemoveRequestReview) GetReviewerAccessToken(code *string) (resp string, err error) { 4079 params := []interface{}{ 4080 code, 4081 } 4082 err = r.Session.DoRequest("SoftLayer_Account_PersonalData_RemoveRequestReview", "getReviewerAccessToken", params, &r.Options, &resp) 4083 return 4084} 4085 4086// Finds a reviewer's email using the access token 4087func (r Account_PersonalData_RemoveRequestReview) GetReviewerEmailFromAccessToken(accessToken *string) (resp string, err error) { 4088 params := []interface{}{ 4089 accessToken, 4090 } 4091 err = r.Session.DoRequest("SoftLayer_Account_PersonalData_RemoveRequestReview", "getReviewerEmailFromAccessToken", params, &r.Options, &resp) 4092 return 4093} 4094 4095// no documentation yet 4096type Account_ProofOfConcept struct { 4097 Session *session.Session 4098 Options sl.Options 4099} 4100 4101// GetAccountProofOfConceptService returns an instance of the Account_ProofOfConcept SoftLayer service 4102func GetAccountProofOfConceptService(sess *session.Session) Account_ProofOfConcept { 4103 return Account_ProofOfConcept{Session: sess} 4104} 4105 4106func (r Account_ProofOfConcept) Id(id int) Account_ProofOfConcept { 4107 r.Options.Id = &id 4108 return r 4109} 4110 4111func (r Account_ProofOfConcept) Mask(mask string) Account_ProofOfConcept { 4112 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 4113 mask = fmt.Sprintf("mask[%s]", mask) 4114 } 4115 4116 r.Options.Mask = mask 4117 return r 4118} 4119 4120func (r Account_ProofOfConcept) Filter(filter string) Account_ProofOfConcept { 4121 r.Options.Filter = filter 4122 return r 4123} 4124 4125func (r Account_ProofOfConcept) Limit(limit int) Account_ProofOfConcept { 4126 r.Options.Limit = &limit 4127 return r 4128} 4129 4130func (r Account_ProofOfConcept) Offset(offset int) Account_ProofOfConcept { 4131 r.Options.Offset = &offset 4132 return r 4133} 4134 4135// Allows a verified reviewer to approve a request 4136func (r Account_ProofOfConcept) ApproveReview(requestId *int, accessToken *string) (err error) { 4137 var resp datatypes.Void 4138 params := []interface{}{ 4139 requestId, 4140 accessToken, 4141 } 4142 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept", "approveReview", params, &r.Options, &resp) 4143 return 4144} 4145 4146// Allows verified reviewer to deny a request 4147func (r Account_ProofOfConcept) DenyReview(requestId *int, accessToken *string, reason *string) (err error) { 4148 var resp datatypes.Void 4149 params := []interface{}{ 4150 requestId, 4151 accessToken, 4152 reason, 4153 } 4154 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept", "denyReview", params, &r.Options, &resp) 4155 return 4156} 4157 4158// Returns URL used to authenticate reviewers 4159func (r Account_ProofOfConcept) GetAuthenticationUrl(targetPage *string) (resp string, err error) { 4160 params := []interface{}{ 4161 targetPage, 4162 } 4163 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept", "getAuthenticationUrl", params, &r.Options, &resp) 4164 return 4165} 4166 4167// Retrieves a list of requests that are pending review in the specified regions 4168func (r Account_ProofOfConcept) GetRequestsPendingIntegratedOfferingTeamReview(accessToken *string) (resp []datatypes.Container_Account_ProofOfConcept_Review_Summary, err error) { 4169 params := []interface{}{ 4170 accessToken, 4171 } 4172 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept", "getRequestsPendingIntegratedOfferingTeamReview", params, &r.Options, &resp) 4173 return 4174} 4175 4176// Retrieves a list of requests that are pending over threshold review 4177func (r Account_ProofOfConcept) GetRequestsPendingOverThresholdReview(accessToken *string) (resp []datatypes.Container_Account_ProofOfConcept_Review_Summary, err error) { 4178 params := []interface{}{ 4179 accessToken, 4180 } 4181 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept", "getRequestsPendingOverThresholdReview", params, &r.Options, &resp) 4182 return 4183} 4184 4185// Exchanges a code for a token during reviewer validation. 4186func (r Account_ProofOfConcept) GetReviewerAccessToken(unverifiedAuthenticationCode *string) (resp string, err error) { 4187 params := []interface{}{ 4188 unverifiedAuthenticationCode, 4189 } 4190 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept", "getReviewerAccessToken", params, &r.Options, &resp) 4191 return 4192} 4193 4194// Finds a reviewer's email using the access token 4195func (r Account_ProofOfConcept) GetReviewerEmailFromAccessToken(accessToken *string) (resp string, err error) { 4196 params := []interface{}{ 4197 accessToken, 4198 } 4199 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept", "getReviewerEmailFromAccessToken", params, &r.Options, &resp) 4200 return 4201} 4202 4203// Allows authorized IBMer to pull all the details of a single proof of concept account request. 4204func (r Account_ProofOfConcept) GetSubmittedRequest(requestId *int) (resp datatypes.Container_Account_ProofOfConcept_Review, err error) { 4205 params := []interface{}{ 4206 requestId, 4207 } 4208 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept", "getSubmittedRequest", params, &r.Options, &resp) 4209 return 4210} 4211 4212// Allows authorized IBMer to retrieve a list summarizing all previously submitted proof of concept requests. 4213// 4214// Note that the proof of concept system is for internal IBM employees only and is not applicable to users outside the IBM organization. 4215func (r Account_ProofOfConcept) GetSubmittedRequests(email *string, sortOrder *string) (resp []datatypes.Container_Account_ProofOfConcept_Review_Summary, err error) { 4216 params := []interface{}{ 4217 email, 4218 sortOrder, 4219 } 4220 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept", "getSubmittedRequests", params, &r.Options, &resp) 4221 return 4222} 4223 4224// Gets email address users can use to ask for help/support 4225func (r Account_ProofOfConcept) GetSupportEmailAddress() (resp string, err error) { 4226 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept", "getSupportEmailAddress", nil, &r.Options, &resp) 4227 return 4228} 4229 4230// Indicates whether or not a reviewer belongs to the integrated offering team 4231func (r Account_ProofOfConcept) IsIntegratedOfferingTeamReviewer(emailAddress *string) (resp bool, err error) { 4232 params := []interface{}{ 4233 emailAddress, 4234 } 4235 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept", "isIntegratedOfferingTeamReviewer", params, &r.Options, &resp) 4236 return 4237} 4238 4239// Indicates whether or not a reviewer belongs to the threshold team. 4240func (r Account_ProofOfConcept) IsOverThresholdReviewer(emailAddress *string) (resp bool, err error) { 4241 params := []interface{}{ 4242 emailAddress, 4243 } 4244 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept", "isOverThresholdReviewer", params, &r.Options, &resp) 4245 return 4246} 4247 4248// Allows authorized IBMer's to apply for a proof of concept account using account team funding. Requests will be reviewed by multiple internal teams before an account is created. 4249// 4250// Note that the proof of concept system is for internal IBM employees only and is not applicable to users outside the IBM organization. 4251func (r Account_ProofOfConcept) RequestAccountTeamFundedAccount(request *datatypes.Container_Account_ProofOfConcept_Request_AccountFunded) (resp datatypes.Container_Account_ProofOfConcept_Review_Summary, err error) { 4252 params := []interface{}{ 4253 request, 4254 } 4255 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept", "requestAccountTeamFundedAccount", params, &r.Options, &resp) 4256 return 4257} 4258 4259// Allows authorized IBMer's to apply for a proof of concept account using global funding. Requests will be reviewed by multiple internal teams before an account is created. 4260// 4261// Note that the proof of concept system is for internal IBM employees only and is not applicable to users outside the IBM organization. 4262func (r Account_ProofOfConcept) RequestGlobalFundedAccount(request *datatypes.Container_Account_ProofOfConcept_Request_GlobalFunded) (resp datatypes.Container_Account_ProofOfConcept_Review_Summary, err error) { 4263 params := []interface{}{ 4264 request, 4265 } 4266 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept", "requestGlobalFundedAccount", params, &r.Options, &resp) 4267 return 4268} 4269 4270// Verifies that a potential reviewer is an approved internal IBM employee 4271func (r Account_ProofOfConcept) VerifyReviewer(requestId *int, reviewerEmailAddress *string) (err error) { 4272 var resp datatypes.Void 4273 params := []interface{}{ 4274 requestId, 4275 reviewerEmailAddress, 4276 } 4277 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept", "verifyReviewer", params, &r.Options, &resp) 4278 return 4279} 4280 4281// This class represents a Proof of Concept account approver. 4282type Account_ProofOfConcept_Approver struct { 4283 Session *session.Session 4284 Options sl.Options 4285} 4286 4287// GetAccountProofOfConceptApproverService returns an instance of the Account_ProofOfConcept_Approver SoftLayer service 4288func GetAccountProofOfConceptApproverService(sess *session.Session) Account_ProofOfConcept_Approver { 4289 return Account_ProofOfConcept_Approver{Session: sess} 4290} 4291 4292func (r Account_ProofOfConcept_Approver) Id(id int) Account_ProofOfConcept_Approver { 4293 r.Options.Id = &id 4294 return r 4295} 4296 4297func (r Account_ProofOfConcept_Approver) Mask(mask string) Account_ProofOfConcept_Approver { 4298 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 4299 mask = fmt.Sprintf("mask[%s]", mask) 4300 } 4301 4302 r.Options.Mask = mask 4303 return r 4304} 4305 4306func (r Account_ProofOfConcept_Approver) Filter(filter string) Account_ProofOfConcept_Approver { 4307 r.Options.Filter = filter 4308 return r 4309} 4310 4311func (r Account_ProofOfConcept_Approver) Limit(limit int) Account_ProofOfConcept_Approver { 4312 r.Options.Limit = &limit 4313 return r 4314} 4315 4316func (r Account_ProofOfConcept_Approver) Offset(offset int) Account_ProofOfConcept_Approver { 4317 r.Options.Offset = &offset 4318 return r 4319} 4320 4321// Retrieves a list of reviewers 4322func (r Account_ProofOfConcept_Approver) GetAllObjects() (resp []datatypes.Account_ProofOfConcept_Approver, err error) { 4323 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept_Approver", "getAllObjects", nil, &r.Options, &resp) 4324 return 4325} 4326 4327// no documentation yet 4328func (r Account_ProofOfConcept_Approver) GetObject() (resp datatypes.Account_ProofOfConcept_Approver, err error) { 4329 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept_Approver", "getObject", nil, &r.Options, &resp) 4330 return 4331} 4332 4333// Retrieve 4334func (r Account_ProofOfConcept_Approver) GetRole() (resp datatypes.Account_ProofOfConcept_Approver_Role, err error) { 4335 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept_Approver", "getRole", nil, &r.Options, &resp) 4336 return 4337} 4338 4339// Retrieve 4340func (r Account_ProofOfConcept_Approver) GetType() (resp datatypes.Account_ProofOfConcept_Approver_Type, err error) { 4341 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept_Approver", "getType", nil, &r.Options, &resp) 4342 return 4343} 4344 4345// This class represents a Proof of Concept account approver type. The current roles are Primary and Backup approvers. 4346type Account_ProofOfConcept_Approver_Role struct { 4347 Session *session.Session 4348 Options sl.Options 4349} 4350 4351// GetAccountProofOfConceptApproverRoleService returns an instance of the Account_ProofOfConcept_Approver_Role SoftLayer service 4352func GetAccountProofOfConceptApproverRoleService(sess *session.Session) Account_ProofOfConcept_Approver_Role { 4353 return Account_ProofOfConcept_Approver_Role{Session: sess} 4354} 4355 4356func (r Account_ProofOfConcept_Approver_Role) Id(id int) Account_ProofOfConcept_Approver_Role { 4357 r.Options.Id = &id 4358 return r 4359} 4360 4361func (r Account_ProofOfConcept_Approver_Role) Mask(mask string) Account_ProofOfConcept_Approver_Role { 4362 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 4363 mask = fmt.Sprintf("mask[%s]", mask) 4364 } 4365 4366 r.Options.Mask = mask 4367 return r 4368} 4369 4370func (r Account_ProofOfConcept_Approver_Role) Filter(filter string) Account_ProofOfConcept_Approver_Role { 4371 r.Options.Filter = filter 4372 return r 4373} 4374 4375func (r Account_ProofOfConcept_Approver_Role) Limit(limit int) Account_ProofOfConcept_Approver_Role { 4376 r.Options.Limit = &limit 4377 return r 4378} 4379 4380func (r Account_ProofOfConcept_Approver_Role) Offset(offset int) Account_ProofOfConcept_Approver_Role { 4381 r.Options.Offset = &offset 4382 return r 4383} 4384 4385// no documentation yet 4386func (r Account_ProofOfConcept_Approver_Role) GetObject() (resp datatypes.Account_ProofOfConcept_Approver_Role, err error) { 4387 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept_Approver_Role", "getObject", nil, &r.Options, &resp) 4388 return 4389} 4390 4391// This class represents a Proof of Concept account approver type. 4392type Account_ProofOfConcept_Approver_Type struct { 4393 Session *session.Session 4394 Options sl.Options 4395} 4396 4397// GetAccountProofOfConceptApproverTypeService returns an instance of the Account_ProofOfConcept_Approver_Type SoftLayer service 4398func GetAccountProofOfConceptApproverTypeService(sess *session.Session) Account_ProofOfConcept_Approver_Type { 4399 return Account_ProofOfConcept_Approver_Type{Session: sess} 4400} 4401 4402func (r Account_ProofOfConcept_Approver_Type) Id(id int) Account_ProofOfConcept_Approver_Type { 4403 r.Options.Id = &id 4404 return r 4405} 4406 4407func (r Account_ProofOfConcept_Approver_Type) Mask(mask string) Account_ProofOfConcept_Approver_Type { 4408 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 4409 mask = fmt.Sprintf("mask[%s]", mask) 4410 } 4411 4412 r.Options.Mask = mask 4413 return r 4414} 4415 4416func (r Account_ProofOfConcept_Approver_Type) Filter(filter string) Account_ProofOfConcept_Approver_Type { 4417 r.Options.Filter = filter 4418 return r 4419} 4420 4421func (r Account_ProofOfConcept_Approver_Type) Limit(limit int) Account_ProofOfConcept_Approver_Type { 4422 r.Options.Limit = &limit 4423 return r 4424} 4425 4426func (r Account_ProofOfConcept_Approver_Type) Offset(offset int) Account_ProofOfConcept_Approver_Type { 4427 r.Options.Offset = &offset 4428 return r 4429} 4430 4431// Retrieve 4432func (r Account_ProofOfConcept_Approver_Type) GetApprovers() (resp []datatypes.Account_ProofOfConcept_Approver, err error) { 4433 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept_Approver_Type", "getApprovers", nil, &r.Options, &resp) 4434 return 4435} 4436 4437// no documentation yet 4438func (r Account_ProofOfConcept_Approver_Type) GetObject() (resp datatypes.Account_ProofOfConcept_Approver_Type, err error) { 4439 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept_Approver_Type", "getObject", nil, &r.Options, &resp) 4440 return 4441} 4442 4443// no documentation yet 4444type Account_ProofOfConcept_Funding_Type struct { 4445 Session *session.Session 4446 Options sl.Options 4447} 4448 4449// GetAccountProofOfConceptFundingTypeService returns an instance of the Account_ProofOfConcept_Funding_Type SoftLayer service 4450func GetAccountProofOfConceptFundingTypeService(sess *session.Session) Account_ProofOfConcept_Funding_Type { 4451 return Account_ProofOfConcept_Funding_Type{Session: sess} 4452} 4453 4454func (r Account_ProofOfConcept_Funding_Type) Id(id int) Account_ProofOfConcept_Funding_Type { 4455 r.Options.Id = &id 4456 return r 4457} 4458 4459func (r Account_ProofOfConcept_Funding_Type) Mask(mask string) Account_ProofOfConcept_Funding_Type { 4460 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 4461 mask = fmt.Sprintf("mask[%s]", mask) 4462 } 4463 4464 r.Options.Mask = mask 4465 return r 4466} 4467 4468func (r Account_ProofOfConcept_Funding_Type) Filter(filter string) Account_ProofOfConcept_Funding_Type { 4469 r.Options.Filter = filter 4470 return r 4471} 4472 4473func (r Account_ProofOfConcept_Funding_Type) Limit(limit int) Account_ProofOfConcept_Funding_Type { 4474 r.Options.Limit = &limit 4475 return r 4476} 4477 4478func (r Account_ProofOfConcept_Funding_Type) Offset(offset int) Account_ProofOfConcept_Funding_Type { 4479 r.Options.Offset = &offset 4480 return r 4481} 4482 4483// no documentation yet 4484func (r Account_ProofOfConcept_Funding_Type) GetAllObjects() (resp []datatypes.Account_ProofOfConcept_Funding_Type, err error) { 4485 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept_Funding_Type", "getAllObjects", nil, &r.Options, &resp) 4486 return 4487} 4488 4489// Retrieve 4490func (r Account_ProofOfConcept_Funding_Type) GetApproverTypes() (resp []datatypes.Account_ProofOfConcept_Approver_Type, err error) { 4491 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept_Funding_Type", "getApproverTypes", nil, &r.Options, &resp) 4492 return 4493} 4494 4495// Retrieve 4496func (r Account_ProofOfConcept_Funding_Type) GetApprovers() (resp []datatypes.Account_ProofOfConcept_Approver, err error) { 4497 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept_Funding_Type", "getApprovers", nil, &r.Options, &resp) 4498 return 4499} 4500 4501// no documentation yet 4502func (r Account_ProofOfConcept_Funding_Type) GetObject() (resp datatypes.Account_ProofOfConcept_Funding_Type, err error) { 4503 err = r.Session.DoRequest("SoftLayer_Account_ProofOfConcept_Funding_Type", "getObject", nil, &r.Options, &resp) 4504 return 4505} 4506 4507// 4508// 4509// 4510// 4511// 4512type Account_Regional_Registry_Detail struct { 4513 Session *session.Session 4514 Options sl.Options 4515} 4516 4517// GetAccountRegionalRegistryDetailService returns an instance of the Account_Regional_Registry_Detail SoftLayer service 4518func GetAccountRegionalRegistryDetailService(sess *session.Session) Account_Regional_Registry_Detail { 4519 return Account_Regional_Registry_Detail{Session: sess} 4520} 4521 4522func (r Account_Regional_Registry_Detail) Id(id int) Account_Regional_Registry_Detail { 4523 r.Options.Id = &id 4524 return r 4525} 4526 4527func (r Account_Regional_Registry_Detail) Mask(mask string) Account_Regional_Registry_Detail { 4528 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 4529 mask = fmt.Sprintf("mask[%s]", mask) 4530 } 4531 4532 r.Options.Mask = mask 4533 return r 4534} 4535 4536func (r Account_Regional_Registry_Detail) Filter(filter string) Account_Regional_Registry_Detail { 4537 r.Options.Filter = filter 4538 return r 4539} 4540 4541func (r Account_Regional_Registry_Detail) Limit(limit int) Account_Regional_Registry_Detail { 4542 r.Options.Limit = &limit 4543 return r 4544} 4545 4546func (r Account_Regional_Registry_Detail) Offset(offset int) Account_Regional_Registry_Detail { 4547 r.Options.Offset = &offset 4548 return r 4549} 4550 4551// <style type="text/css">.create_object > li > div { padding-top: .5em; padding-bottom: .5em}</style> This method will create a new SoftLayer_Account_Regional_Registry_Detail object. 4552// 4553// <b>Input</b> - [[SoftLayer_Account_Regional_Registry_Detail (type)|SoftLayer_Account_Regional_Registry_Detail]] <ul class="create_object"> <li><code>detailTypeId</code> <div>The [[SoftLayer_Account_Regional_Registry_Detail_Type|type id]] of this detail object</div> <ul> <li><b>Required</b></li> <li><b>Type</b> - integer</li> </ul> </li> <li><code>regionalInternetRegistryHandleId</code> <div> The id of the [[SoftLayer_Account_Rwhois_Handle|RWhois handle]] object. This is only to be used for detailed registrations, where a subnet is registered to an organization. The associated handle will be required to be a valid organization object id at the relevant registry. In this case, the detail object will only be valid for the registry the organization belongs to. </div> <ul> <li><b>Optional</b></li> <li><b>Type</b> - integer</li> </ul> </li> </ul> 4554func (r Account_Regional_Registry_Detail) CreateObject(templateObject *datatypes.Account_Regional_Registry_Detail) (resp datatypes.Account_Regional_Registry_Detail, err error) { 4555 params := []interface{}{ 4556 templateObject, 4557 } 4558 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "createObject", params, &r.Options, &resp) 4559 return 4560} 4561 4562// This method will delete an existing SoftLayer_Account_Regional_Registry_Detail object. 4563func (r Account_Regional_Registry_Detail) DeleteObject() (resp bool, err error) { 4564 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "deleteObject", nil, &r.Options, &resp) 4565 return 4566} 4567 4568// This method will edit an existing SoftLayer_Account_Regional_Registry_Detail object. For more detail, see [[SoftLayer_Account_Regional_Registry_Detail::createObject|createObject]]. 4569func (r Account_Regional_Registry_Detail) EditObject(templateObject *datatypes.Account_Regional_Registry_Detail) (resp bool, err error) { 4570 params := []interface{}{ 4571 templateObject, 4572 } 4573 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "editObject", params, &r.Options, &resp) 4574 return 4575} 4576 4577// Retrieve The account that this detail object belongs to. 4578func (r Account_Regional_Registry_Detail) GetAccount() (resp datatypes.Account, err error) { 4579 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "getAccount", nil, &r.Options, &resp) 4580 return 4581} 4582 4583// Retrieve The associated type of this detail object. 4584func (r Account_Regional_Registry_Detail) GetDetailType() (resp datatypes.Account_Regional_Registry_Detail_Type, err error) { 4585 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "getDetailType", nil, &r.Options, &resp) 4586 return 4587} 4588 4589// Retrieve References to the [[SoftLayer_Network_Subnet_Registration|registration objects]] that consume this detail object. 4590func (r Account_Regional_Registry_Detail) GetDetails() (resp []datatypes.Network_Subnet_Registration_Details, err error) { 4591 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "getDetails", nil, &r.Options, &resp) 4592 return 4593} 4594 4595// no documentation yet 4596func (r Account_Regional_Registry_Detail) GetObject() (resp datatypes.Account_Regional_Registry_Detail, err error) { 4597 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "getObject", nil, &r.Options, &resp) 4598 return 4599} 4600 4601// Retrieve The individual properties that define this detail object's values. 4602func (r Account_Regional_Registry_Detail) GetProperties() (resp []datatypes.Account_Regional_Registry_Detail_Property, err error) { 4603 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "getProperties", nil, &r.Options, &resp) 4604 return 4605} 4606 4607// Retrieve The associated RWhois handle of this detail object. Used only when detailed reassignments are necessary. 4608func (r Account_Regional_Registry_Detail) GetRegionalInternetRegistryHandle() (resp datatypes.Account_Rwhois_Handle, err error) { 4609 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "getRegionalInternetRegistryHandle", nil, &r.Options, &resp) 4610 return 4611} 4612 4613// This method will create a bulk transaction to update any registrations that reference this detail object. It should only be called from a child class such as [[SoftLayer_Account_Regional_Registry_Detail_Person]] or [[SoftLayer_Account_Regional_Registry_Detail_Network]]. The registrations should be in the Open or Registration_Complete status. 4614func (r Account_Regional_Registry_Detail) UpdateReferencedRegistrations() (resp datatypes.Container_Network_Subnet_Registration_TransactionDetails, err error) { 4615 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "updateReferencedRegistrations", nil, &r.Options, &resp) 4616 return 4617} 4618 4619// Subnet registration properties are used to define various attributes of the [[SoftLayer_Account_Regional_Registry_Detail|detail objects]]. These properties are defined by the [[SoftLayer_Account_Regional_Registry_Detail_Property_Type]] objects, which describe the available value formats. 4620type Account_Regional_Registry_Detail_Property struct { 4621 Session *session.Session 4622 Options sl.Options 4623} 4624 4625// GetAccountRegionalRegistryDetailPropertyService returns an instance of the Account_Regional_Registry_Detail_Property SoftLayer service 4626func GetAccountRegionalRegistryDetailPropertyService(sess *session.Session) Account_Regional_Registry_Detail_Property { 4627 return Account_Regional_Registry_Detail_Property{Session: sess} 4628} 4629 4630func (r Account_Regional_Registry_Detail_Property) Id(id int) Account_Regional_Registry_Detail_Property { 4631 r.Options.Id = &id 4632 return r 4633} 4634 4635func (r Account_Regional_Registry_Detail_Property) Mask(mask string) Account_Regional_Registry_Detail_Property { 4636 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 4637 mask = fmt.Sprintf("mask[%s]", mask) 4638 } 4639 4640 r.Options.Mask = mask 4641 return r 4642} 4643 4644func (r Account_Regional_Registry_Detail_Property) Filter(filter string) Account_Regional_Registry_Detail_Property { 4645 r.Options.Filter = filter 4646 return r 4647} 4648 4649func (r Account_Regional_Registry_Detail_Property) Limit(limit int) Account_Regional_Registry_Detail_Property { 4650 r.Options.Limit = &limit 4651 return r 4652} 4653 4654func (r Account_Regional_Registry_Detail_Property) Offset(offset int) Account_Regional_Registry_Detail_Property { 4655 r.Options.Offset = &offset 4656 return r 4657} 4658 4659// <style type="text/css">.create_object > li > div { padding-top: .5em; padding-bottom: .5em}</style> This method will create a new SoftLayer_Account_Regional_Registry_Detail_Property object. 4660// 4661// <b>Input</b> - [[SoftLayer_Account_Regional_Registry_Detail_Property (type)|SoftLayer_Account_Regional_Registry_Detail_Property]] <ul class="create_object"> <li><code>registrationDetailId</code> <div>The numeric ID of the [[SoftLayer_Account_Regional_Registry_Detail|detail object]] this property belongs to</div> <ul> <li><b>Required</b></li> <li><b>Type</b> - integer</li> </ul> </li> <li><code>propertyTypeId</code> <div> The numeric ID of the associated [[SoftLayer_Account_Regional_Registry_Detail_Property_Type]] object </div> <ul> <li><b>Required</b></li> <li><b>Type</b> - integer</li> </ul> </li> <li><code>sequencePosition</code> <div> When more than one property of the same type exists on a detail object, this value determines the position in that collection. This can be thought of more as a sort order. </div> <ul> <li><b>Required</b></li> <li><b>Type</b> - integer</li> </ul> </li> <li><code>value</code> <div> The actual value of the property. </div> <ul> <li><b>Required</b></li> <li><b>Type</b> - string</li> </ul> </li> </ul> 4662func (r Account_Regional_Registry_Detail_Property) CreateObject(templateObject *datatypes.Account_Regional_Registry_Detail_Property) (resp datatypes.Account_Regional_Registry_Detail_Property, err error) { 4663 params := []interface{}{ 4664 templateObject, 4665 } 4666 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail_Property", "createObject", params, &r.Options, &resp) 4667 return 4668} 4669 4670// Edit multiple [[SoftLayer_Account_Regional_Registry_Detail_Property]] objects. 4671func (r Account_Regional_Registry_Detail_Property) CreateObjects(templateObjects []datatypes.Account_Regional_Registry_Detail_Property) (resp []datatypes.Account_Regional_Registry_Detail_Property, err error) { 4672 params := []interface{}{ 4673 templateObjects, 4674 } 4675 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail_Property", "createObjects", params, &r.Options, &resp) 4676 return 4677} 4678 4679// This method will delete an existing SoftLayer_Account_Regional_Registry_Detail_Property object. 4680func (r Account_Regional_Registry_Detail_Property) DeleteObject() (resp bool, err error) { 4681 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail_Property", "deleteObject", nil, &r.Options, &resp) 4682 return 4683} 4684 4685// This method will edit an existing SoftLayer_Account_Regional_Registry_Detail_Property object. For more detail, see [[SoftLayer_Account_Regional_Registry_Detail_Property::createObject|createObject]]. 4686func (r Account_Regional_Registry_Detail_Property) EditObject(templateObject *datatypes.Account_Regional_Registry_Detail_Property) (resp bool, err error) { 4687 params := []interface{}{ 4688 templateObject, 4689 } 4690 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail_Property", "editObject", params, &r.Options, &resp) 4691 return 4692} 4693 4694// Edit multiple [[SoftLayer_Account_Regional_Registry_Detail_Property]] objects. 4695func (r Account_Regional_Registry_Detail_Property) EditObjects(templateObjects []datatypes.Account_Regional_Registry_Detail_Property) (resp bool, err error) { 4696 params := []interface{}{ 4697 templateObjects, 4698 } 4699 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail_Property", "editObjects", params, &r.Options, &resp) 4700 return 4701} 4702 4703// Retrieve The [[SoftLayer_Account_Regional_Registry_Detail]] object this property belongs to 4704func (r Account_Regional_Registry_Detail_Property) GetDetail() (resp datatypes.Account_Regional_Registry_Detail, err error) { 4705 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail_Property", "getDetail", nil, &r.Options, &resp) 4706 return 4707} 4708 4709// no documentation yet 4710func (r Account_Regional_Registry_Detail_Property) GetObject() (resp datatypes.Account_Regional_Registry_Detail_Property, err error) { 4711 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail_Property", "getObject", nil, &r.Options, &resp) 4712 return 4713} 4714 4715// Retrieve The [[SoftLayer_Account_Regional_Registry_Detail_Property_Type]] object this property belongs to 4716func (r Account_Regional_Registry_Detail_Property) GetPropertyType() (resp datatypes.Account_Regional_Registry_Detail_Property_Type, err error) { 4717 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail_Property", "getPropertyType", nil, &r.Options, &resp) 4718 return 4719} 4720 4721// Subnet Registration Detail Property Type objects describe the nature of a [[SoftLayer_Account_Regional_Registry_Detail_Property]] object. These types use [http://php.net/pcre.pattern.php Perl-Compatible Regular Expressions] to validate the value of a property object. 4722type Account_Regional_Registry_Detail_Property_Type struct { 4723 Session *session.Session 4724 Options sl.Options 4725} 4726 4727// GetAccountRegionalRegistryDetailPropertyTypeService returns an instance of the Account_Regional_Registry_Detail_Property_Type SoftLayer service 4728func GetAccountRegionalRegistryDetailPropertyTypeService(sess *session.Session) Account_Regional_Registry_Detail_Property_Type { 4729 return Account_Regional_Registry_Detail_Property_Type{Session: sess} 4730} 4731 4732func (r Account_Regional_Registry_Detail_Property_Type) Id(id int) Account_Regional_Registry_Detail_Property_Type { 4733 r.Options.Id = &id 4734 return r 4735} 4736 4737func (r Account_Regional_Registry_Detail_Property_Type) Mask(mask string) Account_Regional_Registry_Detail_Property_Type { 4738 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 4739 mask = fmt.Sprintf("mask[%s]", mask) 4740 } 4741 4742 r.Options.Mask = mask 4743 return r 4744} 4745 4746func (r Account_Regional_Registry_Detail_Property_Type) Filter(filter string) Account_Regional_Registry_Detail_Property_Type { 4747 r.Options.Filter = filter 4748 return r 4749} 4750 4751func (r Account_Regional_Registry_Detail_Property_Type) Limit(limit int) Account_Regional_Registry_Detail_Property_Type { 4752 r.Options.Limit = &limit 4753 return r 4754} 4755 4756func (r Account_Regional_Registry_Detail_Property_Type) Offset(offset int) Account_Regional_Registry_Detail_Property_Type { 4757 r.Options.Offset = &offset 4758 return r 4759} 4760 4761// no documentation yet 4762func (r Account_Regional_Registry_Detail_Property_Type) GetAllObjects() (resp []datatypes.Account_Regional_Registry_Detail_Property_Type, err error) { 4763 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail_Property_Type", "getAllObjects", nil, &r.Options, &resp) 4764 return 4765} 4766 4767// no documentation yet 4768func (r Account_Regional_Registry_Detail_Property_Type) GetObject() (resp datatypes.Account_Regional_Registry_Detail_Property_Type, err error) { 4769 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail_Property_Type", "getObject", nil, &r.Options, &resp) 4770 return 4771} 4772 4773// Subnet Registration Detail Type objects describe the nature of a [[SoftLayer_Account_Regional_Registry_Detail]] object. 4774// 4775// The standard values for these objects are as follows: <ul> <li><strong>NETWORK</strong> - The detail object represents the information for a [[SoftLayer_Network_Subnet|subnet]]</li> <li><strong>NETWORK6</strong> - The detail object represents the information for an [[SoftLayer_Network_Subnet_Version6|IPv6 subnet]]</li> <li><strong>PERSON</strong> - The detail object represents the information for a customer with the RIR</li> </ul> 4776type Account_Regional_Registry_Detail_Type struct { 4777 Session *session.Session 4778 Options sl.Options 4779} 4780 4781// GetAccountRegionalRegistryDetailTypeService returns an instance of the Account_Regional_Registry_Detail_Type SoftLayer service 4782func GetAccountRegionalRegistryDetailTypeService(sess *session.Session) Account_Regional_Registry_Detail_Type { 4783 return Account_Regional_Registry_Detail_Type{Session: sess} 4784} 4785 4786func (r Account_Regional_Registry_Detail_Type) Id(id int) Account_Regional_Registry_Detail_Type { 4787 r.Options.Id = &id 4788 return r 4789} 4790 4791func (r Account_Regional_Registry_Detail_Type) Mask(mask string) Account_Regional_Registry_Detail_Type { 4792 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 4793 mask = fmt.Sprintf("mask[%s]", mask) 4794 } 4795 4796 r.Options.Mask = mask 4797 return r 4798} 4799 4800func (r Account_Regional_Registry_Detail_Type) Filter(filter string) Account_Regional_Registry_Detail_Type { 4801 r.Options.Filter = filter 4802 return r 4803} 4804 4805func (r Account_Regional_Registry_Detail_Type) Limit(limit int) Account_Regional_Registry_Detail_Type { 4806 r.Options.Limit = &limit 4807 return r 4808} 4809 4810func (r Account_Regional_Registry_Detail_Type) Offset(offset int) Account_Regional_Registry_Detail_Type { 4811 r.Options.Offset = &offset 4812 return r 4813} 4814 4815// no documentation yet 4816func (r Account_Regional_Registry_Detail_Type) GetAllObjects() (resp []datatypes.Account_Regional_Registry_Detail_Type, err error) { 4817 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail_Type", "getAllObjects", nil, &r.Options, &resp) 4818 return 4819} 4820 4821// no documentation yet 4822func (r Account_Regional_Registry_Detail_Type) GetObject() (resp datatypes.Account_Regional_Registry_Detail_Type, err error) { 4823 err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail_Type", "getObject", nil, &r.Options, &resp) 4824 return 4825} 4826 4827// no documentation yet 4828type Account_Reports_Request struct { 4829 Session *session.Session 4830 Options sl.Options 4831} 4832 4833// GetAccountReportsRequestService returns an instance of the Account_Reports_Request SoftLayer service 4834func GetAccountReportsRequestService(sess *session.Session) Account_Reports_Request { 4835 return Account_Reports_Request{Session: sess} 4836} 4837 4838func (r Account_Reports_Request) Id(id int) Account_Reports_Request { 4839 r.Options.Id = &id 4840 return r 4841} 4842 4843func (r Account_Reports_Request) Mask(mask string) Account_Reports_Request { 4844 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 4845 mask = fmt.Sprintf("mask[%s]", mask) 4846 } 4847 4848 r.Options.Mask = mask 4849 return r 4850} 4851 4852func (r Account_Reports_Request) Filter(filter string) Account_Reports_Request { 4853 r.Options.Filter = filter 4854 return r 4855} 4856 4857func (r Account_Reports_Request) Limit(limit int) Account_Reports_Request { 4858 r.Options.Limit = &limit 4859 return r 4860} 4861 4862func (r Account_Reports_Request) Offset(offset int) Account_Reports_Request { 4863 r.Options.Offset = &offset 4864 return r 4865} 4866 4867// no documentation yet 4868func (r Account_Reports_Request) CreateRequest(contact *datatypes.Account_Contact, reason *string, reportType *string) (resp datatypes.Account_Reports_Request, err error) { 4869 params := []interface{}{ 4870 contact, 4871 reason, 4872 reportType, 4873 } 4874 err = r.Session.DoRequest("SoftLayer_Account_Reports_Request", "createRequest", params, &r.Options, &resp) 4875 return 4876} 4877 4878// Retrieve 4879func (r Account_Reports_Request) GetAccount() (resp datatypes.Account, err error) { 4880 err = r.Session.DoRequest("SoftLayer_Account_Reports_Request", "getAccount", nil, &r.Options, &resp) 4881 return 4882} 4883 4884// Retrieve A request's corresponding external contact, if one exists. 4885func (r Account_Reports_Request) GetAccountContact() (resp datatypes.Account_Contact, err error) { 4886 err = r.Session.DoRequest("SoftLayer_Account_Reports_Request", "getAccountContact", nil, &r.Options, &resp) 4887 return 4888} 4889 4890// no documentation yet 4891func (r Account_Reports_Request) GetAllObjects() (resp datatypes.Account_Reports_Request, err error) { 4892 err = r.Session.DoRequest("SoftLayer_Account_Reports_Request", "getAllObjects", nil, &r.Options, &resp) 4893 return 4894} 4895 4896// no documentation yet 4897func (r Account_Reports_Request) GetObject() (resp datatypes.Account_Reports_Request, err error) { 4898 err = r.Session.DoRequest("SoftLayer_Account_Reports_Request", "getObject", nil, &r.Options, &resp) 4899 return 4900} 4901 4902// Retrieve Type of the report customer is requesting for. 4903func (r Account_Reports_Request) GetReportType() (resp datatypes.Compliance_Report_Type, err error) { 4904 err = r.Session.DoRequest("SoftLayer_Account_Reports_Request", "getReportType", nil, &r.Options, &resp) 4905 return 4906} 4907 4908// no documentation yet 4909func (r Account_Reports_Request) GetRequestByRequestKey(requestKey *string) (resp datatypes.Account_Reports_Request, err error) { 4910 params := []interface{}{ 4911 requestKey, 4912 } 4913 err = r.Session.DoRequest("SoftLayer_Account_Reports_Request", "getRequestByRequestKey", params, &r.Options, &resp) 4914 return 4915} 4916 4917// Retrieve 4918func (r Account_Reports_Request) GetTicket() (resp datatypes.Ticket, err error) { 4919 err = r.Session.DoRequest("SoftLayer_Account_Reports_Request", "getTicket", nil, &r.Options, &resp) 4920 return 4921} 4922 4923// Retrieve The customer user that initiated a report request. 4924func (r Account_Reports_Request) GetUser() (resp datatypes.User_Customer, err error) { 4925 err = r.Session.DoRequest("SoftLayer_Account_Reports_Request", "getUser", nil, &r.Options, &resp) 4926 return 4927} 4928 4929// no documentation yet 4930func (r Account_Reports_Request) SendReportEmail(request *datatypes.Account_Reports_Request) (resp bool, err error) { 4931 params := []interface{}{ 4932 request, 4933 } 4934 err = r.Session.DoRequest("SoftLayer_Account_Reports_Request", "sendReportEmail", params, &r.Options, &resp) 4935 return 4936} 4937 4938// no documentation yet 4939func (r Account_Reports_Request) UpdateTicketOnDecline(request *datatypes.Account_Reports_Request) (resp bool, err error) { 4940 params := []interface{}{ 4941 request, 4942 } 4943 err = r.Session.DoRequest("SoftLayer_Account_Reports_Request", "updateTicketOnDecline", params, &r.Options, &resp) 4944 return 4945} 4946 4947// The SoftLayer_Account_Shipment data type contains information relating to a shipment. Basic information such as addresses, the shipment courier, and any tracking information for as shipment is accessible with this data type. 4948type Account_Shipment struct { 4949 Session *session.Session 4950 Options sl.Options 4951} 4952 4953// GetAccountShipmentService returns an instance of the Account_Shipment SoftLayer service 4954func GetAccountShipmentService(sess *session.Session) Account_Shipment { 4955 return Account_Shipment{Session: sess} 4956} 4957 4958func (r Account_Shipment) Id(id int) Account_Shipment { 4959 r.Options.Id = &id 4960 return r 4961} 4962 4963func (r Account_Shipment) Mask(mask string) Account_Shipment { 4964 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 4965 mask = fmt.Sprintf("mask[%s]", mask) 4966 } 4967 4968 r.Options.Mask = mask 4969 return r 4970} 4971 4972func (r Account_Shipment) Filter(filter string) Account_Shipment { 4973 r.Options.Filter = filter 4974 return r 4975} 4976 4977func (r Account_Shipment) Limit(limit int) Account_Shipment { 4978 r.Options.Limit = &limit 4979 return r 4980} 4981 4982func (r Account_Shipment) Offset(offset int) Account_Shipment { 4983 r.Options.Offset = &offset 4984 return r 4985} 4986 4987// Edit the properties of a shipment record by passing in a modified instance of a SoftLayer_Account_Shipment object. 4988func (r Account_Shipment) EditObject(templateObject *datatypes.Account_Shipment) (resp bool, err error) { 4989 params := []interface{}{ 4990 templateObject, 4991 } 4992 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "editObject", params, &r.Options, &resp) 4993 return 4994} 4995 4996// Retrieve The account to which the shipment belongs. 4997func (r Account_Shipment) GetAccount() (resp datatypes.Account, err error) { 4998 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "getAccount", nil, &r.Options, &resp) 4999 return 5000} 5001 5002// Retrieve a list of available shipping couriers. 5003func (r Account_Shipment) GetAllCouriers() (resp []datatypes.Auxiliary_Shipping_Courier, err error) { 5004 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "getAllCouriers", nil, &r.Options, &resp) 5005 return 5006} 5007 5008// Retrieve a list of available shipping couriers. 5009func (r Account_Shipment) GetAllCouriersByType(courierTypeKeyName *string) (resp []datatypes.Auxiliary_Shipping_Courier, err error) { 5010 params := []interface{}{ 5011 courierTypeKeyName, 5012 } 5013 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "getAllCouriersByType", params, &r.Options, &resp) 5014 return 5015} 5016 5017// Retrieve a a list of shipment statuses. 5018func (r Account_Shipment) GetAllShipmentStatuses() (resp []datatypes.Account_Shipment_Status, err error) { 5019 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "getAllShipmentStatuses", nil, &r.Options, &resp) 5020 return 5021} 5022 5023// Retrieve a a list of shipment types. 5024func (r Account_Shipment) GetAllShipmentTypes() (resp []datatypes.Account_Shipment_Type, err error) { 5025 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "getAllShipmentTypes", nil, &r.Options, &resp) 5026 return 5027} 5028 5029// Retrieve The courier handling the shipment. 5030func (r Account_Shipment) GetCourier() (resp datatypes.Auxiliary_Shipping_Courier, err error) { 5031 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "getCourier", nil, &r.Options, &resp) 5032 return 5033} 5034 5035// Retrieve The employee who created the shipment. 5036func (r Account_Shipment) GetCreateEmployee() (resp datatypes.User_Employee, err error) { 5037 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "getCreateEmployee", nil, &r.Options, &resp) 5038 return 5039} 5040 5041// Retrieve The customer user who created the shipment. 5042func (r Account_Shipment) GetCreateUser() (resp datatypes.User_Customer, err error) { 5043 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "getCreateUser", nil, &r.Options, &resp) 5044 return 5045} 5046 5047// Retrieve The address at which the shipment is received. 5048func (r Account_Shipment) GetDestinationAddress() (resp datatypes.Account_Address, err error) { 5049 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "getDestinationAddress", nil, &r.Options, &resp) 5050 return 5051} 5052 5053// Retrieve The employee who last modified the shipment. 5054func (r Account_Shipment) GetModifyEmployee() (resp datatypes.User_Employee, err error) { 5055 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "getModifyEmployee", nil, &r.Options, &resp) 5056 return 5057} 5058 5059// Retrieve The customer user who last modified the shipment. 5060func (r Account_Shipment) GetModifyUser() (resp datatypes.User_Customer, err error) { 5061 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "getModifyUser", nil, &r.Options, &resp) 5062 return 5063} 5064 5065// no documentation yet 5066func (r Account_Shipment) GetObject() (resp datatypes.Account_Shipment, err error) { 5067 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "getObject", nil, &r.Options, &resp) 5068 return 5069} 5070 5071// Retrieve The address from which the shipment is sent. 5072func (r Account_Shipment) GetOriginationAddress() (resp datatypes.Account_Address, err error) { 5073 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "getOriginationAddress", nil, &r.Options, &resp) 5074 return 5075} 5076 5077// Retrieve The items in the shipment. 5078func (r Account_Shipment) GetShipmentItems() (resp []datatypes.Account_Shipment_Item, err error) { 5079 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "getShipmentItems", nil, &r.Options, &resp) 5080 return 5081} 5082 5083// Retrieve The status of the shipment. 5084func (r Account_Shipment) GetStatus() (resp datatypes.Account_Shipment_Status, err error) { 5085 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "getStatus", nil, &r.Options, &resp) 5086 return 5087} 5088 5089// Retrieve The tracking data for the shipment. 5090func (r Account_Shipment) GetTrackingData() (resp []datatypes.Account_Shipment_Tracking_Data, err error) { 5091 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "getTrackingData", nil, &r.Options, &resp) 5092 return 5093} 5094 5095// Retrieve The type of shipment (e.g. for Data Transfer Service or Colocation Service). 5096func (r Account_Shipment) GetType() (resp datatypes.Account_Shipment_Type, err error) { 5097 err = r.Session.DoRequest("SoftLayer_Account_Shipment", "getType", nil, &r.Options, &resp) 5098 return 5099} 5100 5101// The SoftLayer_Account_Shipment_Item data type contains information relating to a shipment's item. Basic information such as addresses, the shipment courier, and any tracking information for as shipment is accessible with this data type. 5102type Account_Shipment_Item struct { 5103 Session *session.Session 5104 Options sl.Options 5105} 5106 5107// GetAccountShipmentItemService returns an instance of the Account_Shipment_Item SoftLayer service 5108func GetAccountShipmentItemService(sess *session.Session) Account_Shipment_Item { 5109 return Account_Shipment_Item{Session: sess} 5110} 5111 5112func (r Account_Shipment_Item) Id(id int) Account_Shipment_Item { 5113 r.Options.Id = &id 5114 return r 5115} 5116 5117func (r Account_Shipment_Item) Mask(mask string) Account_Shipment_Item { 5118 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 5119 mask = fmt.Sprintf("mask[%s]", mask) 5120 } 5121 5122 r.Options.Mask = mask 5123 return r 5124} 5125 5126func (r Account_Shipment_Item) Filter(filter string) Account_Shipment_Item { 5127 r.Options.Filter = filter 5128 return r 5129} 5130 5131func (r Account_Shipment_Item) Limit(limit int) Account_Shipment_Item { 5132 r.Options.Limit = &limit 5133 return r 5134} 5135 5136func (r Account_Shipment_Item) Offset(offset int) Account_Shipment_Item { 5137 r.Options.Offset = &offset 5138 return r 5139} 5140 5141// Edit the properties of a shipment record by passing in a modified instance of a SoftLayer_Account_Shipment_Item object. 5142func (r Account_Shipment_Item) EditObject(templateObject *datatypes.Account_Shipment_Item) (resp bool, err error) { 5143 params := []interface{}{ 5144 templateObject, 5145 } 5146 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Item", "editObject", params, &r.Options, &resp) 5147 return 5148} 5149 5150// no documentation yet 5151func (r Account_Shipment_Item) GetObject() (resp datatypes.Account_Shipment_Item, err error) { 5152 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Item", "getObject", nil, &r.Options, &resp) 5153 return 5154} 5155 5156// Retrieve The shipment to which this item belongs. 5157func (r Account_Shipment_Item) GetShipment() (resp datatypes.Account_Shipment, err error) { 5158 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Item", "getShipment", nil, &r.Options, &resp) 5159 return 5160} 5161 5162// Retrieve The type of this shipment item. 5163func (r Account_Shipment_Item) GetShipmentItemType() (resp datatypes.Account_Shipment_Item_Type, err error) { 5164 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Item", "getShipmentItemType", nil, &r.Options, &resp) 5165 return 5166} 5167 5168// no documentation yet 5169type Account_Shipment_Item_Type struct { 5170 Session *session.Session 5171 Options sl.Options 5172} 5173 5174// GetAccountShipmentItemTypeService returns an instance of the Account_Shipment_Item_Type SoftLayer service 5175func GetAccountShipmentItemTypeService(sess *session.Session) Account_Shipment_Item_Type { 5176 return Account_Shipment_Item_Type{Session: sess} 5177} 5178 5179func (r Account_Shipment_Item_Type) Id(id int) Account_Shipment_Item_Type { 5180 r.Options.Id = &id 5181 return r 5182} 5183 5184func (r Account_Shipment_Item_Type) Mask(mask string) Account_Shipment_Item_Type { 5185 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 5186 mask = fmt.Sprintf("mask[%s]", mask) 5187 } 5188 5189 r.Options.Mask = mask 5190 return r 5191} 5192 5193func (r Account_Shipment_Item_Type) Filter(filter string) Account_Shipment_Item_Type { 5194 r.Options.Filter = filter 5195 return r 5196} 5197 5198func (r Account_Shipment_Item_Type) Limit(limit int) Account_Shipment_Item_Type { 5199 r.Options.Limit = &limit 5200 return r 5201} 5202 5203func (r Account_Shipment_Item_Type) Offset(offset int) Account_Shipment_Item_Type { 5204 r.Options.Offset = &offset 5205 return r 5206} 5207 5208// no documentation yet 5209func (r Account_Shipment_Item_Type) GetObject() (resp datatypes.Account_Shipment_Item_Type, err error) { 5210 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Item_Type", "getObject", nil, &r.Options, &resp) 5211 return 5212} 5213 5214// no documentation yet 5215type Account_Shipment_Resource_Type struct { 5216 Session *session.Session 5217 Options sl.Options 5218} 5219 5220// GetAccountShipmentResourceTypeService returns an instance of the Account_Shipment_Resource_Type SoftLayer service 5221func GetAccountShipmentResourceTypeService(sess *session.Session) Account_Shipment_Resource_Type { 5222 return Account_Shipment_Resource_Type{Session: sess} 5223} 5224 5225func (r Account_Shipment_Resource_Type) Id(id int) Account_Shipment_Resource_Type { 5226 r.Options.Id = &id 5227 return r 5228} 5229 5230func (r Account_Shipment_Resource_Type) Mask(mask string) Account_Shipment_Resource_Type { 5231 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 5232 mask = fmt.Sprintf("mask[%s]", mask) 5233 } 5234 5235 r.Options.Mask = mask 5236 return r 5237} 5238 5239func (r Account_Shipment_Resource_Type) Filter(filter string) Account_Shipment_Resource_Type { 5240 r.Options.Filter = filter 5241 return r 5242} 5243 5244func (r Account_Shipment_Resource_Type) Limit(limit int) Account_Shipment_Resource_Type { 5245 r.Options.Limit = &limit 5246 return r 5247} 5248 5249func (r Account_Shipment_Resource_Type) Offset(offset int) Account_Shipment_Resource_Type { 5250 r.Options.Offset = &offset 5251 return r 5252} 5253 5254// no documentation yet 5255func (r Account_Shipment_Resource_Type) GetObject() (resp datatypes.Account_Shipment_Resource_Type, err error) { 5256 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Resource_Type", "getObject", nil, &r.Options, &resp) 5257 return 5258} 5259 5260// no documentation yet 5261type Account_Shipment_Status struct { 5262 Session *session.Session 5263 Options sl.Options 5264} 5265 5266// GetAccountShipmentStatusService returns an instance of the Account_Shipment_Status SoftLayer service 5267func GetAccountShipmentStatusService(sess *session.Session) Account_Shipment_Status { 5268 return Account_Shipment_Status{Session: sess} 5269} 5270 5271func (r Account_Shipment_Status) Id(id int) Account_Shipment_Status { 5272 r.Options.Id = &id 5273 return r 5274} 5275 5276func (r Account_Shipment_Status) Mask(mask string) Account_Shipment_Status { 5277 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 5278 mask = fmt.Sprintf("mask[%s]", mask) 5279 } 5280 5281 r.Options.Mask = mask 5282 return r 5283} 5284 5285func (r Account_Shipment_Status) Filter(filter string) Account_Shipment_Status { 5286 r.Options.Filter = filter 5287 return r 5288} 5289 5290func (r Account_Shipment_Status) Limit(limit int) Account_Shipment_Status { 5291 r.Options.Limit = &limit 5292 return r 5293} 5294 5295func (r Account_Shipment_Status) Offset(offset int) Account_Shipment_Status { 5296 r.Options.Offset = &offset 5297 return r 5298} 5299 5300// no documentation yet 5301func (r Account_Shipment_Status) GetObject() (resp datatypes.Account_Shipment_Status, err error) { 5302 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Status", "getObject", nil, &r.Options, &resp) 5303 return 5304} 5305 5306// The SoftLayer_Account_Shipment_Tracking_Data data type contains information on a single piece of tracking information pertaining to a shipment. This tracking information tracking numbers by which the shipment may be tracked through the shipping courier. 5307type Account_Shipment_Tracking_Data struct { 5308 Session *session.Session 5309 Options sl.Options 5310} 5311 5312// GetAccountShipmentTrackingDataService returns an instance of the Account_Shipment_Tracking_Data SoftLayer service 5313func GetAccountShipmentTrackingDataService(sess *session.Session) Account_Shipment_Tracking_Data { 5314 return Account_Shipment_Tracking_Data{Session: sess} 5315} 5316 5317func (r Account_Shipment_Tracking_Data) Id(id int) Account_Shipment_Tracking_Data { 5318 r.Options.Id = &id 5319 return r 5320} 5321 5322func (r Account_Shipment_Tracking_Data) Mask(mask string) Account_Shipment_Tracking_Data { 5323 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 5324 mask = fmt.Sprintf("mask[%s]", mask) 5325 } 5326 5327 r.Options.Mask = mask 5328 return r 5329} 5330 5331func (r Account_Shipment_Tracking_Data) Filter(filter string) Account_Shipment_Tracking_Data { 5332 r.Options.Filter = filter 5333 return r 5334} 5335 5336func (r Account_Shipment_Tracking_Data) Limit(limit int) Account_Shipment_Tracking_Data { 5337 r.Options.Limit = &limit 5338 return r 5339} 5340 5341func (r Account_Shipment_Tracking_Data) Offset(offset int) Account_Shipment_Tracking_Data { 5342 r.Options.Offset = &offset 5343 return r 5344} 5345 5346// Create a new shipment tracking data. The ''shipmentId'', ''sequence'', and ''trackingData'' properties in the templateObject parameter are required parameters to create a tracking data record. 5347func (r Account_Shipment_Tracking_Data) CreateObject(templateObject *datatypes.Account_Shipment_Tracking_Data) (resp datatypes.Account_Shipment_Tracking_Data, err error) { 5348 params := []interface{}{ 5349 templateObject, 5350 } 5351 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Tracking_Data", "createObject", params, &r.Options, &resp) 5352 return 5353} 5354 5355// Create a new shipment tracking data. The ''shipmentId'', ''sequence'', and ''trackingData'' properties of each templateObject in the templateObjects array are required parameters to create a tracking data record. 5356func (r Account_Shipment_Tracking_Data) CreateObjects(templateObjects []datatypes.Account_Shipment_Tracking_Data) (resp []datatypes.Account_Shipment_Tracking_Data, err error) { 5357 params := []interface{}{ 5358 templateObjects, 5359 } 5360 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Tracking_Data", "createObjects", params, &r.Options, &resp) 5361 return 5362} 5363 5364// deleteObject permanently removes a shipment tracking datum (number) 5365func (r Account_Shipment_Tracking_Data) DeleteObject() (resp bool, err error) { 5366 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Tracking_Data", "deleteObject", nil, &r.Options, &resp) 5367 return 5368} 5369 5370// Edit the properties of a tracking data record by passing in a modified instance of a SoftLayer_Account_Shipment_Tracking_Data object. 5371func (r Account_Shipment_Tracking_Data) EditObject(templateObject *datatypes.Account_Shipment_Tracking_Data) (resp bool, err error) { 5372 params := []interface{}{ 5373 templateObject, 5374 } 5375 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Tracking_Data", "editObject", params, &r.Options, &resp) 5376 return 5377} 5378 5379// Retrieve The employee who created the tracking datum. 5380func (r Account_Shipment_Tracking_Data) GetCreateEmployee() (resp datatypes.User_Employee, err error) { 5381 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Tracking_Data", "getCreateEmployee", nil, &r.Options, &resp) 5382 return 5383} 5384 5385// Retrieve The customer user who created the tracking datum. 5386func (r Account_Shipment_Tracking_Data) GetCreateUser() (resp datatypes.User_Customer, err error) { 5387 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Tracking_Data", "getCreateUser", nil, &r.Options, &resp) 5388 return 5389} 5390 5391// Retrieve The employee who last modified the tracking datum. 5392func (r Account_Shipment_Tracking_Data) GetModifyEmployee() (resp datatypes.User_Employee, err error) { 5393 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Tracking_Data", "getModifyEmployee", nil, &r.Options, &resp) 5394 return 5395} 5396 5397// Retrieve The customer user who last modified the tracking datum. 5398func (r Account_Shipment_Tracking_Data) GetModifyUser() (resp datatypes.User_Customer, err error) { 5399 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Tracking_Data", "getModifyUser", nil, &r.Options, &resp) 5400 return 5401} 5402 5403// no documentation yet 5404func (r Account_Shipment_Tracking_Data) GetObject() (resp datatypes.Account_Shipment_Tracking_Data, err error) { 5405 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Tracking_Data", "getObject", nil, &r.Options, &resp) 5406 return 5407} 5408 5409// Retrieve The shipment of the tracking datum. 5410func (r Account_Shipment_Tracking_Data) GetShipment() (resp datatypes.Account_Shipment, err error) { 5411 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Tracking_Data", "getShipment", nil, &r.Options, &resp) 5412 return 5413} 5414 5415// no documentation yet 5416type Account_Shipment_Type struct { 5417 Session *session.Session 5418 Options sl.Options 5419} 5420 5421// GetAccountShipmentTypeService returns an instance of the Account_Shipment_Type SoftLayer service 5422func GetAccountShipmentTypeService(sess *session.Session) Account_Shipment_Type { 5423 return Account_Shipment_Type{Session: sess} 5424} 5425 5426func (r Account_Shipment_Type) Id(id int) Account_Shipment_Type { 5427 r.Options.Id = &id 5428 return r 5429} 5430 5431func (r Account_Shipment_Type) Mask(mask string) Account_Shipment_Type { 5432 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { 5433 mask = fmt.Sprintf("mask[%s]", mask) 5434 } 5435 5436 r.Options.Mask = mask 5437 return r 5438} 5439 5440func (r Account_Shipment_Type) Filter(filter string) Account_Shipment_Type { 5441 r.Options.Filter = filter 5442 return r 5443} 5444 5445func (r Account_Shipment_Type) Limit(limit int) Account_Shipment_Type { 5446 r.Options.Limit = &limit 5447 return r 5448} 5449 5450func (r Account_Shipment_Type) Offset(offset int) Account_Shipment_Type { 5451 r.Options.Offset = &offset 5452 return r 5453} 5454 5455// no documentation yet 5456func (r Account_Shipment_Type) GetObject() (resp datatypes.Account_Shipment_Type, err error) { 5457 err = r.Session.DoRequest("SoftLayer_Account_Shipment_Type", "getObject", nil, &r.Options, &resp) 5458 return 5459} 5460