configuration.go raw
1 /**
2 * Copyright 2016-2024 IBM Corp.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5 * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6 *
7 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
8 * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9 * See the License for the specific language governing permissions and limitations under the License.
10 */
11
12 // AUTOMATICALLY GENERATED CODE - DO NOT MODIFY
13
14 package services
15
16 import (
17 "fmt"
18 "strings"
19
20 "github.com/softlayer/softlayer-go/datatypes"
21 "github.com/softlayer/softlayer-go/session"
22 "github.com/softlayer/softlayer-go/sl"
23 )
24
25 // Supported hardware raid modes
26 type Configuration_Storage_Group_Array_Type struct {
27 Session session.SLSession
28 Options sl.Options
29 }
30
31 // GetConfigurationStorageGroupArrayTypeService returns an instance of the Configuration_Storage_Group_Array_Type SoftLayer service
32 func GetConfigurationStorageGroupArrayTypeService(sess session.SLSession) Configuration_Storage_Group_Array_Type {
33 return Configuration_Storage_Group_Array_Type{Session: sess}
34 }
35
36 func (r Configuration_Storage_Group_Array_Type) Id(id int) Configuration_Storage_Group_Array_Type {
37 r.Options.Id = &id
38 return r
39 }
40
41 func (r Configuration_Storage_Group_Array_Type) Mask(mask string) Configuration_Storage_Group_Array_Type {
42 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
43 mask = fmt.Sprintf("mask[%s]", mask)
44 }
45
46 r.Options.Mask = mask
47 return r
48 }
49
50 func (r Configuration_Storage_Group_Array_Type) Filter(filter string) Configuration_Storage_Group_Array_Type {
51 r.Options.Filter = filter
52 return r
53 }
54
55 func (r Configuration_Storage_Group_Array_Type) Limit(limit int) Configuration_Storage_Group_Array_Type {
56 r.Options.Limit = &limit
57 return r
58 }
59
60 func (r Configuration_Storage_Group_Array_Type) Offset(offset int) Configuration_Storage_Group_Array_Type {
61 r.Options.Offset = &offset
62 return r
63 }
64
65 // no documentation yet
66 func (r Configuration_Storage_Group_Array_Type) GetAllObjects() (resp []datatypes.Configuration_Storage_Group_Array_Type, err error) {
67 err = r.Session.DoRequest("SoftLayer_Configuration_Storage_Group_Array_Type", "getAllObjects", nil, &r.Options, &resp)
68 return
69 }
70
71 // Retrieve
72 func (r Configuration_Storage_Group_Array_Type) GetHardwareComponentModels() (resp []datatypes.Hardware_Component_Model, err error) {
73 err = r.Session.DoRequest("SoftLayer_Configuration_Storage_Group_Array_Type", "getHardwareComponentModels", nil, &r.Options, &resp)
74 return
75 }
76
77 // no documentation yet
78 func (r Configuration_Storage_Group_Array_Type) GetObject() (resp datatypes.Configuration_Storage_Group_Array_Type, err error) {
79 err = r.Session.DoRequest("SoftLayer_Configuration_Storage_Group_Array_Type", "getObject", nil, &r.Options, &resp)
80 return
81 }
82
83 // The SoftLayer_Configuration_Template data type contains general information of an arbitrary resource.
84 type Configuration_Template struct {
85 Session session.SLSession
86 Options sl.Options
87 }
88
89 // GetConfigurationTemplateService returns an instance of the Configuration_Template SoftLayer service
90 func GetConfigurationTemplateService(sess session.SLSession) Configuration_Template {
91 return Configuration_Template{Session: sess}
92 }
93
94 func (r Configuration_Template) Id(id int) Configuration_Template {
95 r.Options.Id = &id
96 return r
97 }
98
99 func (r Configuration_Template) Mask(mask string) Configuration_Template {
100 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
101 mask = fmt.Sprintf("mask[%s]", mask)
102 }
103
104 r.Options.Mask = mask
105 return r
106 }
107
108 func (r Configuration_Template) Filter(filter string) Configuration_Template {
109 r.Options.Filter = filter
110 return r
111 }
112
113 func (r Configuration_Template) Limit(limit int) Configuration_Template {
114 r.Options.Limit = &limit
115 return r
116 }
117
118 func (r Configuration_Template) Offset(offset int) Configuration_Template {
119 r.Options.Offset = &offset
120 return r
121 }
122
123 // Copy a configuration template and returns a newly created template copy
124 func (r Configuration_Template) CopyTemplate(templateObject *datatypes.Configuration_Template) (resp datatypes.Configuration_Template, err error) {
125 params := []interface{}{
126 templateObject,
127 }
128 err = r.Session.DoRequest("SoftLayer_Configuration_Template", "copyTemplate", params, &r.Options, &resp)
129 return
130 }
131
132 // Deletes a customer configuration template.
133 func (r Configuration_Template) DeleteObject() (resp bool, err error) {
134 err = r.Session.DoRequest("SoftLayer_Configuration_Template", "deleteObject", nil, &r.Options, &resp)
135 return
136 }
137
138 // Edit the object by passing in a modified instance of the object. Use this method to modify configuration template name or description.
139 func (r Configuration_Template) EditObject(templateObject *datatypes.Configuration_Template) (resp bool, err error) {
140 params := []interface{}{
141 templateObject,
142 }
143 err = r.Session.DoRequest("SoftLayer_Configuration_Template", "editObject", params, &r.Options, &resp)
144 return
145 }
146
147 // Retrieve
148 func (r Configuration_Template) GetAccount() (resp datatypes.Account, err error) {
149 err = r.Session.DoRequest("SoftLayer_Configuration_Template", "getAccount", nil, &r.Options, &resp)
150 return
151 }
152
153 // Retrieves all available configuration templates
154 func (r Configuration_Template) GetAllObjects() (resp []datatypes.Configuration_Template, err error) {
155 err = r.Session.DoRequest("SoftLayer_Configuration_Template", "getAllObjects", nil, &r.Options, &resp)
156 return
157 }
158
159 // Retrieve
160 func (r Configuration_Template) GetConfigurationSections() (resp []datatypes.Configuration_Template_Section, err error) {
161 err = r.Session.DoRequest("SoftLayer_Configuration_Template", "getConfigurationSections", nil, &r.Options, &resp)
162 return
163 }
164
165 // Retrieve
166 func (r Configuration_Template) GetDefaultValues() (resp []datatypes.Configuration_Template_Section_Definition_Value, err error) {
167 err = r.Session.DoRequest("SoftLayer_Configuration_Template", "getDefaultValues", nil, &r.Options, &resp)
168 return
169 }
170
171 // Retrieve
172 func (r Configuration_Template) GetDefinitions() (resp []datatypes.Configuration_Template_Section_Definition, err error) {
173 err = r.Session.DoRequest("SoftLayer_Configuration_Template", "getDefinitions", nil, &r.Options, &resp)
174 return
175 }
176
177 // Retrieve
178 func (r Configuration_Template) GetItem() (resp datatypes.Product_Item, err error) {
179 err = r.Session.DoRequest("SoftLayer_Configuration_Template", "getItem", nil, &r.Options, &resp)
180 return
181 }
182
183 // Retrieve
184 func (r Configuration_Template) GetLinkedSectionReferences() (resp datatypes.Configuration_Template_Section_Reference, err error) {
185 err = r.Session.DoRequest("SoftLayer_Configuration_Template", "getLinkedSectionReferences", nil, &r.Options, &resp)
186 return
187 }
188
189 // no documentation yet
190 func (r Configuration_Template) GetObject() (resp datatypes.Configuration_Template, err error) {
191 err = r.Session.DoRequest("SoftLayer_Configuration_Template", "getObject", nil, &r.Options, &resp)
192 return
193 }
194
195 // Retrieve
196 func (r Configuration_Template) GetParent() (resp datatypes.Configuration_Template, err error) {
197 err = r.Session.DoRequest("SoftLayer_Configuration_Template", "getParent", nil, &r.Options, &resp)
198 return
199 }
200
201 // Retrieve
202 func (r Configuration_Template) GetUser() (resp datatypes.User_Customer, err error) {
203 err = r.Session.DoRequest("SoftLayer_Configuration_Template", "getUser", nil, &r.Options, &resp)
204 return
205 }
206
207 // Updates default configuration values.
208 func (r Configuration_Template) UpdateDefaultValues(configurationValues []datatypes.Configuration_Template_Section_Definition_Value) (resp bool, err error) {
209 params := []interface{}{
210 configurationValues,
211 }
212 err = r.Session.DoRequest("SoftLayer_Configuration_Template", "updateDefaultValues", params, &r.Options, &resp)
213 return
214 }
215
216 // The SoftLayer_Configuration_Template_Section data type contains information of a configuration section.
217 //
218 // Configuration can contain sub-sections.
219 type Configuration_Template_Section struct {
220 Session session.SLSession
221 Options sl.Options
222 }
223
224 // GetConfigurationTemplateSectionService returns an instance of the Configuration_Template_Section SoftLayer service
225 func GetConfigurationTemplateSectionService(sess session.SLSession) Configuration_Template_Section {
226 return Configuration_Template_Section{Session: sess}
227 }
228
229 func (r Configuration_Template_Section) Id(id int) Configuration_Template_Section {
230 r.Options.Id = &id
231 return r
232 }
233
234 func (r Configuration_Template_Section) Mask(mask string) Configuration_Template_Section {
235 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
236 mask = fmt.Sprintf("mask[%s]", mask)
237 }
238
239 r.Options.Mask = mask
240 return r
241 }
242
243 func (r Configuration_Template_Section) Filter(filter string) Configuration_Template_Section {
244 r.Options.Filter = filter
245 return r
246 }
247
248 func (r Configuration_Template_Section) Limit(limit int) Configuration_Template_Section {
249 r.Options.Limit = &limit
250 return r
251 }
252
253 func (r Configuration_Template_Section) Offset(offset int) Configuration_Template_Section {
254 r.Options.Offset = &offset
255 return r
256 }
257
258 // Retrieve
259 func (r Configuration_Template_Section) GetDefinitions() (resp []datatypes.Configuration_Template_Section_Definition, err error) {
260 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section", "getDefinitions", nil, &r.Options, &resp)
261 return
262 }
263
264 // Retrieve
265 func (r Configuration_Template_Section) GetDisallowedDeletionFlag() (resp bool, err error) {
266 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section", "getDisallowedDeletionFlag", nil, &r.Options, &resp)
267 return
268 }
269
270 // Retrieve
271 func (r Configuration_Template_Section) GetLinkedTemplate() (resp datatypes.Configuration_Template, err error) {
272 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section", "getLinkedTemplate", nil, &r.Options, &resp)
273 return
274 }
275
276 // Retrieve
277 func (r Configuration_Template_Section) GetLinkedTemplateReference() (resp datatypes.Configuration_Template_Section_Reference, err error) {
278 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section", "getLinkedTemplateReference", nil, &r.Options, &resp)
279 return
280 }
281
282 // no documentation yet
283 func (r Configuration_Template_Section) GetObject() (resp datatypes.Configuration_Template_Section, err error) {
284 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section", "getObject", nil, &r.Options, &resp)
285 return
286 }
287
288 // Retrieve
289 func (r Configuration_Template_Section) GetProfiles() (resp []datatypes.Configuration_Template_Section_Profile, err error) {
290 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section", "getProfiles", nil, &r.Options, &resp)
291 return
292 }
293
294 // Retrieve
295 func (r Configuration_Template_Section) GetSectionType() (resp datatypes.Configuration_Template_Section_Type, err error) {
296 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section", "getSectionType", nil, &r.Options, &resp)
297 return
298 }
299
300 // Retrieve
301 func (r Configuration_Template_Section) GetSectionTypeName() (resp string, err error) {
302 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section", "getSectionTypeName", nil, &r.Options, &resp)
303 return
304 }
305
306 // Retrieve
307 func (r Configuration_Template_Section) GetSubSections() (resp []datatypes.Configuration_Template_Section, err error) {
308 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section", "getSubSections", nil, &r.Options, &resp)
309 return
310 }
311
312 // Retrieve
313 func (r Configuration_Template_Section) GetTemplate() (resp datatypes.Configuration_Template, err error) {
314 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section", "getTemplate", nil, &r.Options, &resp)
315 return
316 }
317
318 // Returns true if the object has sub-sections
319 func (r Configuration_Template_Section) HasSubSections() (resp bool, err error) {
320 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section", "hasSubSections", nil, &r.Options, &resp)
321 return
322 }
323
324 // Configuration definition gives you details of the value that you're setting.
325 //
326 // If value type is defined as "Resource Specific Values", you will have to make an additional API call to retrieve your system specific values.
327 type Configuration_Template_Section_Definition struct {
328 Session session.SLSession
329 Options sl.Options
330 }
331
332 // GetConfigurationTemplateSectionDefinitionService returns an instance of the Configuration_Template_Section_Definition SoftLayer service
333 func GetConfigurationTemplateSectionDefinitionService(sess session.SLSession) Configuration_Template_Section_Definition {
334 return Configuration_Template_Section_Definition{Session: sess}
335 }
336
337 func (r Configuration_Template_Section_Definition) Id(id int) Configuration_Template_Section_Definition {
338 r.Options.Id = &id
339 return r
340 }
341
342 func (r Configuration_Template_Section_Definition) Mask(mask string) Configuration_Template_Section_Definition {
343 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
344 mask = fmt.Sprintf("mask[%s]", mask)
345 }
346
347 r.Options.Mask = mask
348 return r
349 }
350
351 func (r Configuration_Template_Section_Definition) Filter(filter string) Configuration_Template_Section_Definition {
352 r.Options.Filter = filter
353 return r
354 }
355
356 func (r Configuration_Template_Section_Definition) Limit(limit int) Configuration_Template_Section_Definition {
357 r.Options.Limit = &limit
358 return r
359 }
360
361 func (r Configuration_Template_Section_Definition) Offset(offset int) Configuration_Template_Section_Definition {
362 r.Options.Offset = &offset
363 return r
364 }
365
366 // Retrieve
367 func (r Configuration_Template_Section_Definition) GetAttributes() (resp []datatypes.Configuration_Template_Section_Definition_Attribute, err error) {
368 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Definition", "getAttributes", nil, &r.Options, &resp)
369 return
370 }
371
372 // Retrieve
373 func (r Configuration_Template_Section_Definition) GetDefaultValue() (resp datatypes.Configuration_Template_Section_Definition_Value, err error) {
374 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Definition", "getDefaultValue", nil, &r.Options, &resp)
375 return
376 }
377
378 // Retrieve
379 func (r Configuration_Template_Section_Definition) GetGroup() (resp datatypes.Configuration_Template_Section_Definition_Group, err error) {
380 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Definition", "getGroup", nil, &r.Options, &resp)
381 return
382 }
383
384 // Retrieve
385 func (r Configuration_Template_Section_Definition) GetMonitoringDataFlag() (resp bool, err error) {
386 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Definition", "getMonitoringDataFlag", nil, &r.Options, &resp)
387 return
388 }
389
390 // no documentation yet
391 func (r Configuration_Template_Section_Definition) GetObject() (resp datatypes.Configuration_Template_Section_Definition, err error) {
392 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Definition", "getObject", nil, &r.Options, &resp)
393 return
394 }
395
396 // Retrieve
397 func (r Configuration_Template_Section_Definition) GetSection() (resp datatypes.Configuration_Template_Section, err error) {
398 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Definition", "getSection", nil, &r.Options, &resp)
399 return
400 }
401
402 // Retrieve
403 func (r Configuration_Template_Section_Definition) GetValueType() (resp datatypes.Configuration_Template_Section_Definition_Type, err error) {
404 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Definition", "getValueType", nil, &r.Options, &resp)
405 return
406 }
407
408 // Configuration definition group gives you details of the definition and allows extra functionality.
409 type Configuration_Template_Section_Definition_Group struct {
410 Session session.SLSession
411 Options sl.Options
412 }
413
414 // GetConfigurationTemplateSectionDefinitionGroupService returns an instance of the Configuration_Template_Section_Definition_Group SoftLayer service
415 func GetConfigurationTemplateSectionDefinitionGroupService(sess session.SLSession) Configuration_Template_Section_Definition_Group {
416 return Configuration_Template_Section_Definition_Group{Session: sess}
417 }
418
419 func (r Configuration_Template_Section_Definition_Group) Id(id int) Configuration_Template_Section_Definition_Group {
420 r.Options.Id = &id
421 return r
422 }
423
424 func (r Configuration_Template_Section_Definition_Group) Mask(mask string) Configuration_Template_Section_Definition_Group {
425 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
426 mask = fmt.Sprintf("mask[%s]", mask)
427 }
428
429 r.Options.Mask = mask
430 return r
431 }
432
433 func (r Configuration_Template_Section_Definition_Group) Filter(filter string) Configuration_Template_Section_Definition_Group {
434 r.Options.Filter = filter
435 return r
436 }
437
438 func (r Configuration_Template_Section_Definition_Group) Limit(limit int) Configuration_Template_Section_Definition_Group {
439 r.Options.Limit = &limit
440 return r
441 }
442
443 func (r Configuration_Template_Section_Definition_Group) Offset(offset int) Configuration_Template_Section_Definition_Group {
444 r.Options.Offset = &offset
445 return r
446 }
447
448 // Get all configuration definition group objects.
449 //
450 // ”getAllGroups” returns an array of SoftLayer_Configuration_Template_Section_Definition_Group objects upon success.
451 func (r Configuration_Template_Section_Definition_Group) GetAllGroups() (resp []datatypes.Configuration_Template_Section_Definition_Group, err error) {
452 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Definition_Group", "getAllGroups", nil, &r.Options, &resp)
453 return
454 }
455
456 // no documentation yet
457 func (r Configuration_Template_Section_Definition_Group) GetObject() (resp datatypes.Configuration_Template_Section_Definition_Group, err error) {
458 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Definition_Group", "getObject", nil, &r.Options, &resp)
459 return
460 }
461
462 // Retrieve
463 func (r Configuration_Template_Section_Definition_Group) GetParent() (resp datatypes.Configuration_Template_Section_Definition_Group, err error) {
464 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Definition_Group", "getParent", nil, &r.Options, &resp)
465 return
466 }
467
468 // SoftLayer_Configuration_Template_Section_Definition_Type further defines the value of a configuration definition.
469 type Configuration_Template_Section_Definition_Type struct {
470 Session session.SLSession
471 Options sl.Options
472 }
473
474 // GetConfigurationTemplateSectionDefinitionTypeService returns an instance of the Configuration_Template_Section_Definition_Type SoftLayer service
475 func GetConfigurationTemplateSectionDefinitionTypeService(sess session.SLSession) Configuration_Template_Section_Definition_Type {
476 return Configuration_Template_Section_Definition_Type{Session: sess}
477 }
478
479 func (r Configuration_Template_Section_Definition_Type) Id(id int) Configuration_Template_Section_Definition_Type {
480 r.Options.Id = &id
481 return r
482 }
483
484 func (r Configuration_Template_Section_Definition_Type) Mask(mask string) Configuration_Template_Section_Definition_Type {
485 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
486 mask = fmt.Sprintf("mask[%s]", mask)
487 }
488
489 r.Options.Mask = mask
490 return r
491 }
492
493 func (r Configuration_Template_Section_Definition_Type) Filter(filter string) Configuration_Template_Section_Definition_Type {
494 r.Options.Filter = filter
495 return r
496 }
497
498 func (r Configuration_Template_Section_Definition_Type) Limit(limit int) Configuration_Template_Section_Definition_Type {
499 r.Options.Limit = &limit
500 return r
501 }
502
503 func (r Configuration_Template_Section_Definition_Type) Offset(offset int) Configuration_Template_Section_Definition_Type {
504 r.Options.Offset = &offset
505 return r
506 }
507
508 // no documentation yet
509 func (r Configuration_Template_Section_Definition_Type) GetObject() (resp datatypes.Configuration_Template_Section_Definition_Type, err error) {
510 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Definition_Type", "getObject", nil, &r.Options, &resp)
511 return
512 }
513
514 // SoftLayer_Configuration_Section_Value is used to set the value for a configuration definition
515 type Configuration_Template_Section_Definition_Value struct {
516 Session session.SLSession
517 Options sl.Options
518 }
519
520 // GetConfigurationTemplateSectionDefinitionValueService returns an instance of the Configuration_Template_Section_Definition_Value SoftLayer service
521 func GetConfigurationTemplateSectionDefinitionValueService(sess session.SLSession) Configuration_Template_Section_Definition_Value {
522 return Configuration_Template_Section_Definition_Value{Session: sess}
523 }
524
525 func (r Configuration_Template_Section_Definition_Value) Id(id int) Configuration_Template_Section_Definition_Value {
526 r.Options.Id = &id
527 return r
528 }
529
530 func (r Configuration_Template_Section_Definition_Value) Mask(mask string) Configuration_Template_Section_Definition_Value {
531 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
532 mask = fmt.Sprintf("mask[%s]", mask)
533 }
534
535 r.Options.Mask = mask
536 return r
537 }
538
539 func (r Configuration_Template_Section_Definition_Value) Filter(filter string) Configuration_Template_Section_Definition_Value {
540 r.Options.Filter = filter
541 return r
542 }
543
544 func (r Configuration_Template_Section_Definition_Value) Limit(limit int) Configuration_Template_Section_Definition_Value {
545 r.Options.Limit = &limit
546 return r
547 }
548
549 func (r Configuration_Template_Section_Definition_Value) Offset(offset int) Configuration_Template_Section_Definition_Value {
550 r.Options.Offset = &offset
551 return r
552 }
553
554 // Retrieve
555 func (r Configuration_Template_Section_Definition_Value) GetDefinition() (resp datatypes.Configuration_Template_Section_Definition, err error) {
556 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Definition_Value", "getDefinition", nil, &r.Options, &resp)
557 return
558 }
559
560 // no documentation yet
561 func (r Configuration_Template_Section_Definition_Value) GetObject() (resp datatypes.Configuration_Template_Section_Definition_Value, err error) {
562 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Definition_Value", "getObject", nil, &r.Options, &resp)
563 return
564 }
565
566 // Retrieve
567 func (r Configuration_Template_Section_Definition_Value) GetTemplate() (resp datatypes.Configuration_Template, err error) {
568 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Definition_Value", "getTemplate", nil, &r.Options, &resp)
569 return
570 }
571
572 // Some configuration templates let you create a unique configuration profiles.
573 //
574 // For example, you can create multiple configuration profiles to monitor multiple hard drives with "CPU/Memory/Disk Monitoring Agent". SoftLayer_Configuration_Template_Section_Profile help you keep track of custom configuration profiles.
575 type Configuration_Template_Section_Profile struct {
576 Session session.SLSession
577 Options sl.Options
578 }
579
580 // GetConfigurationTemplateSectionProfileService returns an instance of the Configuration_Template_Section_Profile SoftLayer service
581 func GetConfigurationTemplateSectionProfileService(sess session.SLSession) Configuration_Template_Section_Profile {
582 return Configuration_Template_Section_Profile{Session: sess}
583 }
584
585 func (r Configuration_Template_Section_Profile) Id(id int) Configuration_Template_Section_Profile {
586 r.Options.Id = &id
587 return r
588 }
589
590 func (r Configuration_Template_Section_Profile) Mask(mask string) Configuration_Template_Section_Profile {
591 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
592 mask = fmt.Sprintf("mask[%s]", mask)
593 }
594
595 r.Options.Mask = mask
596 return r
597 }
598
599 func (r Configuration_Template_Section_Profile) Filter(filter string) Configuration_Template_Section_Profile {
600 r.Options.Filter = filter
601 return r
602 }
603
604 func (r Configuration_Template_Section_Profile) Limit(limit int) Configuration_Template_Section_Profile {
605 r.Options.Limit = &limit
606 return r
607 }
608
609 func (r Configuration_Template_Section_Profile) Offset(offset int) Configuration_Template_Section_Profile {
610 r.Options.Offset = &offset
611 return r
612 }
613
614 // Retrieve
615 func (r Configuration_Template_Section_Profile) GetConfigurationSection() (resp datatypes.Configuration_Template_Section, err error) {
616 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Profile", "getConfigurationSection", nil, &r.Options, &resp)
617 return
618 }
619
620 // no documentation yet
621 func (r Configuration_Template_Section_Profile) GetObject() (resp datatypes.Configuration_Template_Section_Profile, err error) {
622 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Profile", "getObject", nil, &r.Options, &resp)
623 return
624 }
625
626 // The SoftLayer_Configuration_Template_Section_Reference data type contains information of a configuration section and its associated configuration template.
627 type Configuration_Template_Section_Reference struct {
628 Session session.SLSession
629 Options sl.Options
630 }
631
632 // GetConfigurationTemplateSectionReferenceService returns an instance of the Configuration_Template_Section_Reference SoftLayer service
633 func GetConfigurationTemplateSectionReferenceService(sess session.SLSession) Configuration_Template_Section_Reference {
634 return Configuration_Template_Section_Reference{Session: sess}
635 }
636
637 func (r Configuration_Template_Section_Reference) Id(id int) Configuration_Template_Section_Reference {
638 r.Options.Id = &id
639 return r
640 }
641
642 func (r Configuration_Template_Section_Reference) Mask(mask string) Configuration_Template_Section_Reference {
643 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
644 mask = fmt.Sprintf("mask[%s]", mask)
645 }
646
647 r.Options.Mask = mask
648 return r
649 }
650
651 func (r Configuration_Template_Section_Reference) Filter(filter string) Configuration_Template_Section_Reference {
652 r.Options.Filter = filter
653 return r
654 }
655
656 func (r Configuration_Template_Section_Reference) Limit(limit int) Configuration_Template_Section_Reference {
657 r.Options.Limit = &limit
658 return r
659 }
660
661 func (r Configuration_Template_Section_Reference) Offset(offset int) Configuration_Template_Section_Reference {
662 r.Options.Offset = &offset
663 return r
664 }
665
666 // no documentation yet
667 func (r Configuration_Template_Section_Reference) GetObject() (resp datatypes.Configuration_Template_Section_Reference, err error) {
668 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Reference", "getObject", nil, &r.Options, &resp)
669 return
670 }
671
672 // Retrieve
673 func (r Configuration_Template_Section_Reference) GetSection() (resp datatypes.Configuration_Template_Section, err error) {
674 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Reference", "getSection", nil, &r.Options, &resp)
675 return
676 }
677
678 // Retrieve
679 func (r Configuration_Template_Section_Reference) GetTemplate() (resp datatypes.Configuration_Template, err error) {
680 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Reference", "getTemplate", nil, &r.Options, &resp)
681 return
682 }
683
684 // The SoftLayer_Configuration_Template_Section_Type data type contains information of a configuration section type.
685 //
686 // Configuration can contain sub-sections.
687 type Configuration_Template_Section_Type struct {
688 Session session.SLSession
689 Options sl.Options
690 }
691
692 // GetConfigurationTemplateSectionTypeService returns an instance of the Configuration_Template_Section_Type SoftLayer service
693 func GetConfigurationTemplateSectionTypeService(sess session.SLSession) Configuration_Template_Section_Type {
694 return Configuration_Template_Section_Type{Session: sess}
695 }
696
697 func (r Configuration_Template_Section_Type) Id(id int) Configuration_Template_Section_Type {
698 r.Options.Id = &id
699 return r
700 }
701
702 func (r Configuration_Template_Section_Type) Mask(mask string) Configuration_Template_Section_Type {
703 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
704 mask = fmt.Sprintf("mask[%s]", mask)
705 }
706
707 r.Options.Mask = mask
708 return r
709 }
710
711 func (r Configuration_Template_Section_Type) Filter(filter string) Configuration_Template_Section_Type {
712 r.Options.Filter = filter
713 return r
714 }
715
716 func (r Configuration_Template_Section_Type) Limit(limit int) Configuration_Template_Section_Type {
717 r.Options.Limit = &limit
718 return r
719 }
720
721 func (r Configuration_Template_Section_Type) Offset(offset int) Configuration_Template_Section_Type {
722 r.Options.Offset = &offset
723 return r
724 }
725
726 // no documentation yet
727 func (r Configuration_Template_Section_Type) GetObject() (resp datatypes.Configuration_Template_Section_Type, err error) {
728 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Section_Type", "getObject", nil, &r.Options, &resp)
729 return
730 }
731
732 // The SoftLayer_Configuration_Template_Type data type contains configuration template type information.
733 type Configuration_Template_Type struct {
734 Session session.SLSession
735 Options sl.Options
736 }
737
738 // GetConfigurationTemplateTypeService returns an instance of the Configuration_Template_Type SoftLayer service
739 func GetConfigurationTemplateTypeService(sess session.SLSession) Configuration_Template_Type {
740 return Configuration_Template_Type{Session: sess}
741 }
742
743 func (r Configuration_Template_Type) Id(id int) Configuration_Template_Type {
744 r.Options.Id = &id
745 return r
746 }
747
748 func (r Configuration_Template_Type) Mask(mask string) Configuration_Template_Type {
749 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
750 mask = fmt.Sprintf("mask[%s]", mask)
751 }
752
753 r.Options.Mask = mask
754 return r
755 }
756
757 func (r Configuration_Template_Type) Filter(filter string) Configuration_Template_Type {
758 r.Options.Filter = filter
759 return r
760 }
761
762 func (r Configuration_Template_Type) Limit(limit int) Configuration_Template_Type {
763 r.Options.Limit = &limit
764 return r
765 }
766
767 func (r Configuration_Template_Type) Offset(offset int) Configuration_Template_Type {
768 r.Options.Offset = &offset
769 return r
770 }
771
772 // no documentation yet
773 func (r Configuration_Template_Type) GetObject() (resp datatypes.Configuration_Template_Type, err error) {
774 err = r.Session.DoRequest("SoftLayer_Configuration_Template_Type", "getObject", nil, &r.Options, &resp)
775 return
776 }
777