forked from softlayer/softlayer-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduct.go
2064 lines (1796 loc) · 94.7 KB
/
product.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* Copyright 2016 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* AUTOMATICALLY GENERATED CODE - DO NOT MODIFY
*/
package services
import (
"fmt"
"strings"
"github.com/softlayer/softlayer-go/datatypes"
"github.com/softlayer/softlayer-go/session"
"github.com/softlayer/softlayer-go/sl"
)
// The SoftLayer_Product_Item_Category data type contains general category information for prices.
type Product_Item_Category struct {
Session *session.Session
Options sl.Options
}
// GetProductItemCategoryService returns an instance of the Product_Item_Category SoftLayer service
func GetProductItemCategoryService(sess *session.Session) Product_Item_Category {
return Product_Item_Category{Session: sess}
}
func (r Product_Item_Category) Id(id int) Product_Item_Category {
r.Options.Id = &id
return r
}
func (r Product_Item_Category) Mask(mask string) Product_Item_Category {
if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
mask = fmt.Sprintf("mask[%s]", mask)
}
r.Options.Mask = mask
return r
}
func (r Product_Item_Category) Filter(filter string) Product_Item_Category {
r.Options.Filter = filter
return r
}
func (r Product_Item_Category) Limit(limit int) Product_Item_Category {
r.Options.Limit = &limit
return r
}
func (r Product_Item_Category) Offset(offset int) Product_Item_Category {
r.Options.Offset = &offset
return r
}
// Returns a list of of active Items in the "Additional Services" package with their active prices for a given product item category and sorts them by price.
func (r Product_Item_Category) GetAdditionalProductsForCategory() (resp []datatypes.Product_Item, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getAdditionalProductsForCategory", nil, &r.Options, &resp)
return
}
// no documentation yet
func (r Product_Item_Category) GetBandwidthCategories() (resp []datatypes.Product_Item_Category, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getBandwidthCategories", nil, &r.Options, &resp)
return
}
// Retrieve The billing items associated with an account that share a category code with an item category's category code.
func (r Product_Item_Category) GetBillingItems() (resp []datatypes.Billing_Item, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getBillingItems", nil, &r.Options, &resp)
return
}
// This method returns a collection of computing categories. These categories are also top level items in a service offering.
func (r Product_Item_Category) GetComputingCategories(resetCache *bool) (resp []datatypes.Product_Item_Category, err error) {
params := []interface{}{
resetCache,
}
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getComputingCategories", params, &r.Options, &resp)
return
}
// no documentation yet
func (r Product_Item_Category) GetCustomUsageRatesCategories(resetCache *bool) (resp []datatypes.Product_Item_Category, err error) {
params := []interface{}{
resetCache,
}
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getCustomUsageRatesCategories", params, &r.Options, &resp)
return
}
// Retrieve This invoice item's "item category group".
func (r Product_Item_Category) GetGroup() (resp datatypes.Product_Item_Category_Group, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getGroup", nil, &r.Options, &resp)
return
}
// Retrieve A collection of service offering category groups. Each group contains a collection of items associated with this category.
func (r Product_Item_Category) GetGroups() (resp []datatypes.Product_Package_Item_Category_Group, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getGroups", nil, &r.Options, &resp)
return
}
// Each product item price must be tied to a category for it to be sold. These categories describe how a particular product item is sold. For example, the 250GB hard drive can be sold as disk0, disk1, ... disk11. There are different prices for this product item depending on which category it is. This keeps down the number of products in total.
func (r Product_Item_Category) GetObject() (resp datatypes.Product_Item_Category, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getObject", nil, &r.Options, &resp)
return
}
// no documentation yet
func (r Product_Item_Category) GetObjectStorageCategories(resetCache *bool) (resp []datatypes.Product_Item_Category, err error) {
params := []interface{}{
resetCache,
}
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getObjectStorageCategories", params, &r.Options, &resp)
return
}
// Retrieve Any unique options associated with an item category.
func (r Product_Item_Category) GetOrderOptions() (resp []datatypes.Product_Item_Category_Order_Option_Type, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getOrderOptions", nil, &r.Options, &resp)
return
}
// Retrieve A list of configuration available in this category.'
func (r Product_Item_Category) GetPackageConfigurations() (resp []datatypes.Product_Package_Order_Configuration, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getPackageConfigurations", nil, &r.Options, &resp)
return
}
// Retrieve A list of preset configurations this category is used in.'
func (r Product_Item_Category) GetPresetConfigurations() (resp []datatypes.Product_Package_Preset_Configuration, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getPresetConfigurations", nil, &r.Options, &resp)
return
}
// Retrieve The question references that are associated with an item category.
func (r Product_Item_Category) GetQuestionReferences() (resp []datatypes.Product_Item_Category_Question_Xref, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getQuestionReferences", nil, &r.Options, &resp)
return
}
// Retrieve The questions that are associated with an item category.
func (r Product_Item_Category) GetQuestions() (resp []datatypes.Product_Item_Category_Question, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getQuestions", nil, &r.Options, &resp)
return
}
// no documentation yet
func (r Product_Item_Category) GetSoftwareCategories() (resp []datatypes.Product_Item_Category, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getSoftwareCategories", nil, &r.Options, &resp)
return
}
// This method returns a list of subnet categories.
func (r Product_Item_Category) GetSubnetCategories() (resp []datatypes.Product_Item_Category, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getSubnetCategories", nil, &r.Options, &resp)
return
}
// This method returns a collection of computing categories. These categories are also top level items in a service offering.
func (r Product_Item_Category) GetTopLevelCategories(resetCache *bool) (resp []datatypes.Product_Item_Category, err error) {
params := []interface{}{
resetCache,
}
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getTopLevelCategories", params, &r.Options, &resp)
return
}
// This method returns service product categories that can be canceled via API. You can use these categories to find the billing items you wish to cancel.
func (r Product_Item_Category) GetValidCancelableServiceItemCategories() (resp []datatypes.Product_Item_Category, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getValidCancelableServiceItemCategories", nil, &r.Options, &resp)
return
}
// no documentation yet
func (r Product_Item_Category) GetVlanCategories() (resp []datatypes.Product_Item_Category, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Category", "getVlanCategories", nil, &r.Options, &resp)
return
}
// The SoftLayer_Product_Item_Category_Group data type contains general category group information.
type Product_Item_Category_Group struct {
Session *session.Session
Options sl.Options
}
// GetProductItemCategoryGroupService returns an instance of the Product_Item_Category_Group SoftLayer service
func GetProductItemCategoryGroupService(sess *session.Session) Product_Item_Category_Group {
return Product_Item_Category_Group{Session: sess}
}
func (r Product_Item_Category_Group) Id(id int) Product_Item_Category_Group {
r.Options.Id = &id
return r
}
func (r Product_Item_Category_Group) Mask(mask string) Product_Item_Category_Group {
if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
mask = fmt.Sprintf("mask[%s]", mask)
}
r.Options.Mask = mask
return r
}
func (r Product_Item_Category_Group) Filter(filter string) Product_Item_Category_Group {
r.Options.Filter = filter
return r
}
func (r Product_Item_Category_Group) Limit(limit int) Product_Item_Category_Group {
r.Options.Limit = &limit
return r
}
func (r Product_Item_Category_Group) Offset(offset int) Product_Item_Category_Group {
r.Options.Offset = &offset
return r
}
// Each product item category must be tied to a category group. These category groups describe how a particular product item category is categorized. For example, the disk0, disk1, ... disk11 can be categorized as Server and Attached Services. There are different groups for each of this product item category depending on the function of the item product in the subject category.
func (r Product_Item_Category_Group) GetObject() (resp datatypes.Product_Item_Category_Group, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Category_Group", "getObject", nil, &r.Options, &resp)
return
}
// Represents the assignment of a policy to a product. The existence of a record means that the associated product is subject to the terms defined in the document content of the policy.
type Product_Item_Policy_Assignment struct {
Session *session.Session
Options sl.Options
}
// GetProductItemPolicyAssignmentService returns an instance of the Product_Item_Policy_Assignment SoftLayer service
func GetProductItemPolicyAssignmentService(sess *session.Session) Product_Item_Policy_Assignment {
return Product_Item_Policy_Assignment{Session: sess}
}
func (r Product_Item_Policy_Assignment) Id(id int) Product_Item_Policy_Assignment {
r.Options.Id = &id
return r
}
func (r Product_Item_Policy_Assignment) Mask(mask string) Product_Item_Policy_Assignment {
if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
mask = fmt.Sprintf("mask[%s]", mask)
}
r.Options.Mask = mask
return r
}
func (r Product_Item_Policy_Assignment) Filter(filter string) Product_Item_Policy_Assignment {
r.Options.Filter = filter
return r
}
func (r Product_Item_Policy_Assignment) Limit(limit int) Product_Item_Policy_Assignment {
r.Options.Limit = &limit
return r
}
func (r Product_Item_Policy_Assignment) Offset(offset int) Product_Item_Policy_Assignment {
r.Options.Offset = &offset
return r
}
// Register the acceptance of the associated policy to product assignment, and link the created record to a Ticket.
func (r Product_Item_Policy_Assignment) AcceptFromTicket(ticketId *int) (resp bool, err error) {
params := []interface{}{
ticketId,
}
err = r.Session.DoRequest("SoftLayer_Product_Item_Policy_Assignment", "acceptFromTicket", params, &r.Options, &resp)
return
}
// no documentation yet
func (r Product_Item_Policy_Assignment) GetObject() (resp datatypes.Product_Item_Policy_Assignment, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Policy_Assignment", "getObject", nil, &r.Options, &resp)
return
}
// Retrieve the binary contents of the associated PDF policy document.
func (r Product_Item_Policy_Assignment) GetPolicyDocumentContents() (resp []byte, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Policy_Assignment", "getPolicyDocumentContents", nil, &r.Options, &resp)
return
}
// Retrieve The name of the assigned policy.
func (r Product_Item_Policy_Assignment) GetPolicyName() (resp string, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Policy_Assignment", "getPolicyName", nil, &r.Options, &resp)
return
}
// Retrieve The [[SoftLayer_Product_Item]] for this policy assignment.
func (r Product_Item_Policy_Assignment) GetProduct() (resp datatypes.Product_Item, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Policy_Assignment", "getProduct", nil, &r.Options, &resp)
return
}
// The SoftLayer_Product_Item_Price data type contains general information relating to a single SoftLayer product item price. You can find out what packages each price is in as well as which category under which this price is sold. All prices are returned in floating point values measured in US Dollars ($USD).
type Product_Item_Price struct {
Session *session.Session
Options sl.Options
}
// GetProductItemPriceService returns an instance of the Product_Item_Price SoftLayer service
func GetProductItemPriceService(sess *session.Session) Product_Item_Price {
return Product_Item_Price{Session: sess}
}
func (r Product_Item_Price) Id(id int) Product_Item_Price {
r.Options.Id = &id
return r
}
func (r Product_Item_Price) Mask(mask string) Product_Item_Price {
if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
mask = fmt.Sprintf("mask[%s]", mask)
}
r.Options.Mask = mask
return r
}
func (r Product_Item_Price) Filter(filter string) Product_Item_Price {
r.Options.Filter = filter
return r
}
func (r Product_Item_Price) Limit(limit int) Product_Item_Price {
r.Options.Limit = &limit
return r
}
func (r Product_Item_Price) Offset(offset int) Product_Item_Price {
r.Options.Offset = &offset
return r
}
// Retrieve The account that the item price is restricted to.
func (r Product_Item_Price) GetAccountRestrictions() (resp []datatypes.Product_Item_Price_Account_Restriction, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getAccountRestrictions", nil, &r.Options, &resp)
return
}
// Retrieve
func (r Product_Item_Price) GetAttributes() (resp []datatypes.Product_Item_Price_Attribute, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getAttributes", nil, &r.Options, &resp)
return
}
// Retrieve Whether the price is for Big Data OS/Journal disks only. (Deprecated)
func (r Product_Item_Price) GetBigDataOsJournalDiskFlag() (resp bool, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getBigDataOsJournalDiskFlag", nil, &r.Options, &resp)
return
}
// Retrieve cross reference for bundles
func (r Product_Item_Price) GetBundleReferences() (resp []datatypes.Product_Item_Bundles, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getBundleReferences", nil, &r.Options, &resp)
return
}
// Retrieve The maximum capacity value for which this price is suitable.
func (r Product_Item_Price) GetCapacityRestrictionMaximum() (resp string, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getCapacityRestrictionMaximum", nil, &r.Options, &resp)
return
}
// Retrieve The minimum capacity value for which this price is suitable.
func (r Product_Item_Price) GetCapacityRestrictionMinimum() (resp string, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getCapacityRestrictionMinimum", nil, &r.Options, &resp)
return
}
// Retrieve The type of capacity restriction by which this price must abide.
func (r Product_Item_Price) GetCapacityRestrictionType() (resp string, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getCapacityRestrictionType", nil, &r.Options, &resp)
return
}
// Retrieve All categories which this item is a member.
func (r Product_Item_Price) GetCategories() (resp []datatypes.Product_Item_Category, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getCategories", nil, &r.Options, &resp)
return
}
// Retrieve Signifies pricing that is only available on a dedicated host virtual server order.
func (r Product_Item_Price) GetDedicatedHostInstanceFlag() (resp bool, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getDedicatedHostInstanceFlag", nil, &r.Options, &resp)
return
}
// Retrieve Whether this price defines a software license for its product item.
func (r Product_Item_Price) GetDefinedSoftwareLicenseFlag() (resp bool, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getDefinedSoftwareLicenseFlag", nil, &r.Options, &resp)
return
}
// Retrieve An item price's inventory status per datacenter.
func (r Product_Item_Price) GetInventory() (resp []datatypes.Product_Package_Inventory, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getInventory", nil, &r.Options, &resp)
return
}
// Retrieve The product item a price is tied to.
func (r Product_Item_Price) GetItem() (resp datatypes.Product_Item, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getItem", nil, &r.Options, &resp)
return
}
// no documentation yet
func (r Product_Item_Price) GetObject() (resp datatypes.Product_Item_Price, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getObject", nil, &r.Options, &resp)
return
}
// Retrieve
func (r Product_Item_Price) GetOrderPremiums() (resp []datatypes.Product_Item_Price_Premium, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getOrderPremiums", nil, &r.Options, &resp)
return
}
// Retrieve cross reference for packages
func (r Product_Item_Price) GetPackageReferences() (resp []datatypes.Product_Package_Item_Prices, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getPackageReferences", nil, &r.Options, &resp)
return
}
// Retrieve A price's packages under which this item is sold.
func (r Product_Item_Price) GetPackages() (resp []datatypes.Product_Package, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getPackages", nil, &r.Options, &resp)
return
}
// Retrieve A list of preset configurations this price is used in.'
func (r Product_Item_Price) GetPresetConfigurations() (resp []datatypes.Product_Package_Preset_Configuration, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getPresetConfigurations", nil, &r.Options, &resp)
return
}
// Retrieve The type keyname of this price which can be STANDARD or TIERED.
func (r Product_Item_Price) GetPriceType() (resp string, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getPriceType", nil, &r.Options, &resp)
return
}
// Retrieve The pricing location group that this price is applicable for. Prices that have a pricing location group will only be available for ordering with the locations specified on the location group.
func (r Product_Item_Price) GetPricingLocationGroup() (resp datatypes.Location_Group_Pricing, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getPricingLocationGroup", nil, &r.Options, &resp)
return
}
// Retrieve The number of server cores required to order this item. This is deprecated. Use [[SoftLayer_Product_Item_Price/getCapacityRestrictionMinimum|getCapacityRestrictionMinimum]] and [[SoftLayer_Product_Item_Price/getCapacityRestrictionMaximum|getCapacityRestrictionMaximum]]
func (r Product_Item_Price) GetRequiredCoreCount() (resp int, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getRequiredCoreCount", nil, &r.Options, &resp)
return
}
// Returns a collection of rate-based [[SoftLayer_Product_Item_Price]] objects associated with the [[SoftLayer_Product_Item]] objects and the [[SoftLayer_Location]] specified. The location is required to get the appropriate rate-based prices because the usage rates may vary from datacenter to datacenter.
func (r Product_Item_Price) GetUsageRatePrices(location *datatypes.Location, items []datatypes.Product_Item) (resp []datatypes.Product_Item_Price, err error) {
params := []interface{}{
location,
items,
}
err = r.Session.DoRequest("SoftLayer_Product_Item_Price", "getUsageRatePrices", params, &r.Options, &resp)
return
}
// no documentation yet
type Product_Item_Price_Premium struct {
Session *session.Session
Options sl.Options
}
// GetProductItemPricePremiumService returns an instance of the Product_Item_Price_Premium SoftLayer service
func GetProductItemPricePremiumService(sess *session.Session) Product_Item_Price_Premium {
return Product_Item_Price_Premium{Session: sess}
}
func (r Product_Item_Price_Premium) Id(id int) Product_Item_Price_Premium {
r.Options.Id = &id
return r
}
func (r Product_Item_Price_Premium) Mask(mask string) Product_Item_Price_Premium {
if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
mask = fmt.Sprintf("mask[%s]", mask)
}
r.Options.Mask = mask
return r
}
func (r Product_Item_Price_Premium) Filter(filter string) Product_Item_Price_Premium {
r.Options.Filter = filter
return r
}
func (r Product_Item_Price_Premium) Limit(limit int) Product_Item_Price_Premium {
r.Options.Limit = &limit
return r
}
func (r Product_Item_Price_Premium) Offset(offset int) Product_Item_Price_Premium {
r.Options.Offset = &offset
return r
}
// Retrieve
func (r Product_Item_Price_Premium) GetItemPrice() (resp datatypes.Product_Item_Price, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price_Premium", "getItemPrice", nil, &r.Options, &resp)
return
}
// Retrieve
func (r Product_Item_Price_Premium) GetLocation() (resp datatypes.Location, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price_Premium", "getLocation", nil, &r.Options, &resp)
return
}
// no documentation yet
func (r Product_Item_Price_Premium) GetObject() (resp datatypes.Product_Item_Price_Premium, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price_Premium", "getObject", nil, &r.Options, &resp)
return
}
// Retrieve
func (r Product_Item_Price_Premium) GetPackage() (resp datatypes.Product_Package, err error) {
err = r.Session.DoRequest("SoftLayer_Product_Item_Price_Premium", "getPackage", nil, &r.Options, &resp)
return
}
// no documentation yet
type Product_Order struct {
Session *session.Session
Options sl.Options
}
// GetProductOrderService returns an instance of the Product_Order SoftLayer service
func GetProductOrderService(sess *session.Session) Product_Order {
return Product_Order{Session: sess}
}
func (r Product_Order) Id(id int) Product_Order {
r.Options.Id = &id
return r
}
func (r Product_Order) Mask(mask string) Product_Order {
if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
mask = fmt.Sprintf("mask[%s]", mask)
}
r.Options.Mask = mask
return r
}
func (r Product_Order) Filter(filter string) Product_Order {
r.Options.Filter = filter
return r
}
func (r Product_Order) Limit(limit int) Product_Order {
r.Options.Limit = &limit
return r
}
func (r Product_Order) Offset(offset int) Product_Order {
r.Options.Offset = &offset
return r
}
// no documentation yet
func (r Product_Order) CheckItemAvailability(itemPrices []datatypes.Product_Item_Price, accountId *int, availabilityTypeKeyNames []string) (resp bool, err error) {
params := []interface{}{
itemPrices,
accountId,
availabilityTypeKeyNames,
}
err = r.Session.DoRequest("SoftLayer_Product_Order", "checkItemAvailability", params, &r.Options, &resp)
return
}
// no documentation yet
func (r Product_Order) CheckItemAvailabilityForImageTemplate(imageTemplateId *int, accountId *int, packageId *int, availabilityTypeKeyNames []string) (resp bool, err error) {
params := []interface{}{
imageTemplateId,
accountId,
packageId,
availabilityTypeKeyNames,
}
err = r.Session.DoRequest("SoftLayer_Product_Order", "checkItemAvailabilityForImageTemplate", params, &r.Options, &resp)
return
}
// Check order items for conflicts
func (r Product_Order) CheckItemConflicts(itemPrices []datatypes.Product_Item_Price) (resp bool, err error) {
params := []interface{}{
itemPrices,
}
err = r.Session.DoRequest("SoftLayer_Product_Order", "checkItemConflicts", params, &r.Options, &resp)
return
}
// This method simply returns a receipt for a previously finalized payment authorization from PayPal. The response matches the response returned from placeOrder when the order was originally placed with PayPal as the payment type.
func (r Product_Order) GetExternalPaymentAuthorizationReceipt(token *string, payerId *string) (resp datatypes.Container_Product_Order_Receipt, err error) {
params := []interface{}{
token,
payerId,
}
err = r.Session.DoRequest("SoftLayer_Product_Order", "getExternalPaymentAuthorizationReceipt", params, &r.Options, &resp)
return
}
// This method returns a collection of [[SoftLayer_Container_Product_Order_Network]] objects. This will contain the available networks that can be used when ordering services.
//
// If a location id is supplied, the list of networks will be trimmed down to only those that are available at that particular datacenter.
//
// If a package id is supplied, the list of public VLANs and subnets will be trimmed down to those that are available for that particular package.
//
// The account id is for internal use only and will be ignored when supplied by customers.
func (r Product_Order) GetNetworks(locationId *int, packageId *int, accountId *int) (resp []datatypes.Container_Product_Order_Network, err error) {
params := []interface{}{
locationId,
packageId,
accountId,
}
err = r.Session.DoRequest("SoftLayer_Product_Order", "getNetworks", params, &r.Options, &resp)
return
}
// When the account is on an external reseller brand, this service will provide a SoftLayer_Product_Order with the the pricing adjusted by the external reseller.
func (r Product_Order) GetResellerOrder(orderContainer *datatypes.Container_Product_Order) (resp datatypes.Container_Product_Order, err error) {
params := []interface{}{
orderContainer,
}
err = r.Session.DoRequest("SoftLayer_Product_Order", "getResellerOrder", params, &r.Options, &resp)
return
}
// Sometimes taxes cannot be calculated immediately, so we start the calculations and let them run in the background. This method will return the current progress and information related to a specific tax calculation, which allows real-time progress updates on tax calculations.
func (r Product_Order) GetTaxCalculationResult(orderHash *string) (resp datatypes.Container_Tax_Cache, err error) {
params := []interface{}{
orderHash,
}
err = r.Session.DoRequest("SoftLayer_Product_Order", "getTaxCalculationResult", params, &r.Options, &resp)
return
}
// Return collections of public and private VLANs that are available during ordering. If a location ID is provided, the resulting VLANs will be limited to that location. If the Virtual Server package id (46) is provided, the VLANs will be narrowed down to those locations that contain routers with the VIRTUAL_IMAGE_STORE data attribute.
//
// For the selectedItems parameter, this is a comma-separated string of category codes and item values. For example:
//
// <ul> <li><code>port_speed=10,guest_disk0=LOCAL_DISK</code></li> <li><code>port_speed=100,disk0=SAN_DISK</code></li> <li><code>port_speed=100,private_network_only=1,guest_disk0=LOCAL_DISK</code></li> </ul>
//
// This parameter is used to narrow the available results down even further. It's not necessary when selecting a VLAN, but it will help avoid errors when attempting to place an order. The only acceptable category codes are:
//
// <ul> <li><code>port_speed</code></li> <li>A disk category, such as <code>guest_disk0</code> or <code>disk0</code>, with values of either <code>LOCAL_DISK</code> or <code>SAN_DISK</code></li> <li><code>private_network_only</code></li> <li><code>dual_path_network</code></li> </ul>
//
// For most customers, it's sufficient to only provide the first 2 parameters.
func (r Product_Order) GetVlans(locationId *int, packageId *int, selectedItems *string, vlanIds []int, subnetIds []int, accountId *int, orderContainer *datatypes.Container_Product_Order, hardwareFirewallOrderedFlag *bool) (resp datatypes.Container_Product_Order_Network_Vlans, err error) {
params := []interface{}{
locationId,
packageId,
selectedItems,
vlanIds,
subnetIds,
accountId,
orderContainer,
hardwareFirewallOrderedFlag,
}
err = r.Session.DoRequest("SoftLayer_Product_Order", "getVlans", params, &r.Options, &resp)
return
}
//
// Use this method to place bare metal server, virtual server and additional service orders with SoftLayer. Upon success, your credit card or PayPal account will incur charges for the monthly order total (or prorated value if ordered mid billing cycle). If all products on the order are only billed hourly, you will be charged on your billing anniversary date, which occurs monthly on the day you ordered your first service with SoftLayer. For new customers, you are required to provide billing information when you place an order. For existing customers, the credit card on file will be charged. If you're a PayPal customer, a URL will be returned from the call to [[SoftLayer_Product_Order/placeOrder|placeOrder]] which is to be used to finish the authorization process. This authorization tells PayPal that you indeed want to place an order with SoftLayer. From PayPal's web site, you will be redirected back to SoftLayer for your order receipt.<br/><br/>
//
//
// When an order is placed, your order will be in a "pending approval" state. When all internal checks pass, your order will be automatically approved. For orders that may need extra attention, a Sales representative will review the order and contact you if necessary. Once the order is approved, your server or service will be provisioned and available to you shortly thereafter. Depending on the type of server or service ordered, provisioning times will vary.<br/><br/>
//
//
// <h2>Order Containers</h2>
//
//
// When placing API orders, it's important to order your server and services on the appropriate [[SoftLayer_Container_Product_Order (type)|order container]]. Failing to provide the correct container may delay your server or service from being provisioned in a timely manner. Some common order containers are included below.<br/><br/>
//
//
// <strong>Note:</strong> <code>SoftLayer_Container_Product_Order_</code> has been removed from the containers in the table below for readability.<br/><br/>
//
//
// <table style="word-wrap:break-word;">
// <tr style="text-align:left;">
// <th>Product</th>
// <th>Order container</th>
// <th>Package type</th>
// </tr>
// <tr>
// <td>Bare metal server by CPU</td>
// <td>[[SoftLayer_Container_Product_Order_Hardware_Server (type)|Hardware_Server]]</td>
// <td>BARE_METAL_CPU</td>
// </tr>
// <tr>
// <td>Bare metal server by core</td>
// <td>[[SoftLayer_Container_Product_Order_Hardware_Server (type)|Hardware_Server]]</td>
// <td>BARE_METAL_CORE</td>
// </tr>
// <tr>
// <td>Virtual server</td>
// <td>[[SoftLayer_Container_Product_Order_Virtual_Guest (type)|Virtual_Guest]]</td>
// <td>VIRTUAL_SERVER_INSTANCE</td>
// </tr>
// <tr>
// <td>DNS domain registration</td>
// <td>[[SoftLayer_Container_Product_Order_Dns_Domain_Registration (type)|Dns_Domain_Registration]]</td>
// <td>ADDITIONAL_SERVICES</td>
// </tr>
// <tr>
// <td>Local & dedicated load balancers</td>
// <td>[[SoftLayer_Container_Product_Order_Network_LoadBalancer (type)|Network_LoadBalancer]]</td>
// <td>ADDITIONAL_SERVICES_LOAD_BALANCER</td>
// </tr>
// <tr>
// <td>Content delivery network</td>
// <td>[[SoftLayer_Container_Product_Order_Network_ContentDelivery_Account (type)|Network_ContentDelivery_Account]]</td>
// <td>ADDITIONAL_SERVICES_CDN</td>
// </tr>
// <tr>
// <td>Content delivery network Addon</td>
// <td>[[SoftLayer_Container_Product_Order_Network_ContentDelivery_Account_Addon (type)|Network_ContentDelivery_Account_Addon]]</td>
// <td>ADDITIONAL_SERVICES_CDN_ADDON</td>
// </tr>
// <tr>
// <td>Message queue</td>
// <td>[[SoftLayer_Container_Product_Order_Network_Message_Queue (type)|Network_Message_Queue]]</td>
// <td>ADDITIONAL_SERVICES_MESSAGE_QUEUE</td>
// </tr>
// <tr>
// <td>Hardware & software firewalls</td>
// <td>[[SoftLayer_Container_Product_Order_Network_Protection_Firewall (type)|Network_Protection_Firewall]]</td>
// <td>ADDITIONAL_SERVICES_FIREWALL</td>
// </tr>
// <tr>
// <td>Dedicated firewall</td>
// <td>[[SoftLayer_Container_Product_Order_Network_Protection_Firewall_Dedicated (type)|Network_Protection_Firewall_Dedicated]]</td>
// <td>ADDITIONAL_SERVICES_FIREWALL</td>
// </tr>
// <tr>
// <td>Object storage</td>
// <td>[[SoftLayer_Container_Product_Order_Network_Storage_Object (type)|Network_Storage_Object]]</td>
// <td>ADDITIONAL_SERVICES_OBJECT_STORAGE</td>
// </tr>
// <tr>
// <td>Object storage (hub)</td>
// <td>[[SoftLayer_Container_Product_Order_Network_Storage_Hub (type)|Network_Storage_Hub]]</td>
// <td>ADDITIONAL_SERVICES_OBJECT_STORAGE</td>
// </tr>
// <tr>
// <td>Network attached storage</td>
// <td>[[SoftLayer_Container_Product_Order_Network_Storage_Nas (type)|Network_Storage_Nas]]</td>
// <td>ADDITIONAL_SERVICES_NETWORK_ATTACHED_STORAGE</td>
// </tr>
// <tr>
// <td>Iscsi storage</td>
// <td>[[SoftLayer_Container_Product_Order_Network_Storage_Iscsi (type)|Network_Storage_Iscsi]]</td>
// <td>ADDITIONAL_SERVICES_ISCSI_STORAGE</td>
// </tr>
// <tr>
// <td>Evault</td>
// <td>[[SoftLayer_Container_Product_Order_Network_Storage_Backup_Evault_Vault (type)|Network_Storage_Backup_Evault_Vault]]</td>
// <td>ADDITIONAL_SERVICES</td>
// </tr>
// <tr>
// <td>Evault Plugin</td>
// <td>[[SoftLayer_Container_Product_Order_Network_Storage_Backup_Evault_Plugin (type)|Network_Storage_Backup_Evault_Plugin]]</td>
// <td>ADDITIONAL_SERVICES</td>
// </tr>
// <tr>
// <td>Application delivery appliance</td>
// <td>[[SoftLayer_Container_Product_Order_Network_Application_Delivery_Controller (type)|Network_Application_Delivery_Controller]]</td>
// <td>ADDITIONAL_SERVICES_APPLICATION_DELIVERY_APPLIANCE</td>
// </tr>
// <tr>
// <td>Network subnet</td>
// <td>[[SoftLayer_Container_Product_Order_Network_Subnet (type)|Network_Subnet]]</td>
// <td>ADDITIONAL_SERVICES</td>
// </tr>
// <tr>
// <td>Global IPv4</td>
// <td>[[SoftLayer_Container_Product_Order_Network_Subnet (type)|Network_Subnet]]</td>
// <td>ADDITIONAL_SERVICES_GLOBAL_IP_ADDRESSES</td>
// </tr>
// <tr>
// <td>Global IPv6</td>
// <td>[[SoftLayer_Container_Product_Order_Network_Subnet (type)|Network_Subnet]]</td>
// <td>ADDITIONAL_SERVICES_GLOBAL_IP_ADDRESSES</td>
// </tr>
// <tr>
// <td>Network VLAN</td>
// <td>[[SoftLayer_Container_Product_Order_Network_Vlan (type)|Network_Vlan]]</td>
// <td>ADDITIONAL_SERVICES_NETWORK_VLAN</td>
// </tr>
// <tr>
// <td>Portable storage</td>
// <td>[[SoftLayer_Container_Product_Order_Virtual_Disk_Image (type)|Virtual_Disk_Image]]</td>
// <td>ADDITIONAL_SERVICES_PORTABLE_STORAGE</td>
// </tr>
// <tr>
// <td>SSL certificate</td>
// <td>[[SoftLayer_Container_Product_Order_Security_Certificate (type)|Security_Certificate]]</td>
// <td>ADDITIONAL_SERVICES_SSL_CERTIFICATE</td>
// </tr>
// <tr>
// <td>External authentication</td>
// <td>[[SoftLayer_Container_Product_Order_User_Customer_External_Binding (type)|User_Customer_External_Binding]]</td>
// <td>ADDITIONAL_SERVICES</td>
// </tr>
// <tr>
// <td>Dedicated Host</td>
// <td>[[SoftLayer_Container_Product_Order_Virtual_DedicatedHost (type)|Virtual_DedicatedHosts]]</td>
// <td>DEDICATED_HOST</td>
// </tr>
// </table>
//
//
// <h2>Server example</h2>
//
//
// This example includes a single bare metal server being ordered with monthly billing.<br/><br/>
//
//
// <strong>Warning:</strong> the price ids provided below may be outdated or unavailable, so you will need to determine the available prices from the bare metal server [[SoftLayer_Product_Package/getAllObjects|packages]], which have a [[SoftLayer_Product_Package_Type (type)|package type]] of '''BARE_METAL_CPU''' or '''BARE_METAL_CORE'''. You can get a full list of [[SoftLayer_Product_Package_Type/getAllObjects|package types]] to see other potentially available server packages.<br/><br/>
//
//
// <http title="Bare metal server">
// <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api.service.softlayer.com/soap/v3/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
// <SOAP-ENV:Header>
// <ns1:authenticate>
// <username>your username</username>
// <apiKey>your api key</apiKey>
// </ns1:authenticate>
// </SOAP-ENV:Header>
// <SOAP-ENV:Body>
// <ns1:placeOrder>
// <orderData xsi:type="ns1:SoftLayer_Container_Product_Order_Hardware_Server">
// <hardware SOAP-ENC:arrayType="ns1:SoftLayer_Hardware[1]" xsi:type="ns1:SoftLayer_HardwareArray">
// <item xsi:type="ns1:SoftLayer_Hardware">
// <domain xsi:type="xsd:string">example.com</domain>
// <hostname xsi:type="xsd:string">server1</hostname>
// </item>
// </hardware>
// <location xsi:type="xsd:string">138124</location>
// <packageId xsi:type="xsd:int">142</packageId>
// <prices SOAP-ENC:arrayType="ns1:SoftLayer_Product_Item_Price[14]" xsi:type="ns1:SoftLayer_Product_Item_PriceArray">
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">58</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">22337</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">21189</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">876</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">57</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">55</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">21190</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">36381</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">21</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">22013</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">906</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">420</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">418</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">342</id>
// </item>
// </prices>
// <useHourlyPricing xsi:type="xsd:boolean">false</useHourlyPricing>
// </orderData>
// <saveAsQuote xsi:nil="true" />
// </ns1:placeOrder>
// </SOAP-ENV:Body>
// </SOAP-ENV:Envelope>
// </http><br/><br/>
//
//
// <h2>Virtual server example</h2>
//
//
// This example includes 2 identical virtual servers (except for hostname) being ordered for hourly billing. It includes an optional image template id and VLAN data specified on the virtualGuest objects - <code>primaryBackendNetworkComponent</code> and <code>primaryNetworkComponent</code>.<br/><br/>
//
//
// <strong>Warning:</strong> the price ids provided below may be outdated or unavailable, so you will need to determine the available prices from the virtual server [[SoftLayer_Product_Package/getAllObjects|package]], which has a [[SoftLayer_Product_Package_Type (type)|package type]] of '''VIRTUAL_SERVER_INSTANCE'''.<br/><br/>
//
//
// <http title="Virtual server">
// <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api.service.softlayer.com/soap/v3/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
// <SOAP-ENV:Header>
// <ns1:authenticate>
// <username>your username</username>
// <apiKey>your api key</apiKey>
// </ns1:authenticate>
// </SOAP-ENV:Header>
// <SOAP-ENV:Body>
// <ns1:placeOrder>
// <orderData xsi:type="ns1:SoftLayer_Container_Product_Order_Virtual_Guest">
// <imageTemplateId xsi:type="xsd:int">13251</imageTemplateId>
// <location xsi:type="xsd:string">37473</location>
// <packageId xsi:type="xsd:int">46</packageId>
// <prices SOAP-ENC:arrayType="ns1:SoftLayer_Product_Item_Price[13]" xsi:type="ns1:SoftLayer_Product_Item_PriceArray">
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">2159</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">55</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">13754</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">1641</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">905</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">1800</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">58</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">21</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">1645</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">272</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">57</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">418</id>
// </item>
// <item xsi:type="ns1:SoftLayer_Product_Item_Price">
// <id xsi:type="xsd:int">420</id>
// </item>
// </prices>
// <quantity xsi:type="xsd:int">2</quantity>
// <useHourlyPricing xsi:type="xsd:boolean">true</useHourlyPricing>
// <virtualGuests SOAP-ENC:arrayType="ns1:SoftLayer_Virtual_Guest[1]" xsi:type="ns1:SoftLayer_Virtual_GuestArray">
// <item xsi:type="ns1:SoftLayer_Virtual_Guest">
// <domain xsi:type="xsd:string">example.com</domain>
// <hostname xsi:type="xsd:string">server1</hostname>
// <primaryBackendNetworkComponent xsi:type="ns1:SoftLayer_Virtual_Guest_Network_Component">
// <networkVlan xsi:type="ns1:SoftLayer_Network_Vlan">
// <id xsi:type="xsd:int">12345</id>
// </networkVlan>
// </primaryBackendNetworkComponent>
// <primaryNetworkComponent xsi:type="ns1:SoftLayer_Virtual_Guest_Network_Component">