network.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 // no documentation yet
26 type Network struct {
27 Session session.SLSession
28 Options sl.Options
29 }
30
31 // GetNetworkService returns an instance of the Network SoftLayer service
32 func GetNetworkService(sess session.SLSession) Network {
33 return Network{Session: sess}
34 }
35
36 func (r Network) Id(id int) Network {
37 r.Options.Id = &id
38 return r
39 }
40
41 func (r Network) Mask(mask string) Network {
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 Network) Filter(filter string) Network {
51 r.Options.Filter = filter
52 return r
53 }
54
55 func (r Network) Limit(limit int) Network {
56 r.Options.Limit = &limit
57 return r
58 }
59
60 func (r Network) Offset(offset int) Network {
61 r.Options.Offset = &offset
62 return r
63 }
64
65 // Initiate the automated process to establish connectivity granting the account private back-end network access to the services available through IBM Cloud Service Endpoint. Once initiated, the configuration process occurs asynchronously in the background.
66 //
67 // <h2>Responses</h2>
68 //
69 // <code>True</code> The request to connect was successfully initiated.
70 //
71 // <code>False</code> The account and Service Endpoint networks are already connected.
72 //
73 // <h2>Exceptions</h2>
74 //
75 // <code>SoftLayer_Exception_NotReady</code> Thrown when the current network configuration will not support connection alteration.
76 func (r Network) ConnectPrivateEndpointService() (resp bool, err error) {
77 err = r.Session.DoRequest("SoftLayer_Network", "connectPrivateEndpointService", nil, &r.Options, &resp)
78 return
79 }
80
81 // Initiate the automated process to revoke mutual connectivity from the account network and IBM Cloud Service Endpoint network. Once initiated, the configuration process occurs asynchronously in the background.
82 //
83 // <h2>Responses</h2>
84 //
85 // <code>True</code> The request to disconnect was successfully initiated.
86 //
87 // <code>False</code> The account and Service Endpoint networks are already disconnected.
88 //
89 // <h2>Exceptions</h2>
90 //
91 // <code>SoftLayer_Exception_NotReady</code> Thrown when the current network configuration will not support connection alteration.
92 func (r Network) DisconnectPrivateEndpointService() (resp bool, err error) {
93 err = r.Session.DoRequest("SoftLayer_Network", "disconnectPrivateEndpointService", nil, &r.Options, &resp)
94 return
95 }
96
97 // Initiate the change of the private network to VRF, which will cause a brief private network outage.
98 //
99 // @SLDNDocumentation Method Permissions NETWORK_VLAN_SPANNING
100 //
101 // <h2>Responses</h2>
102 //
103 // <code>True</code> The request to change the private network has been accepted and the change will begin immediately.
104 //
105 // <code>False</code> The request had no change because the private network is already in a VRF or in the process of converting to VRF.
106 //
107 // <h2>Exceptions</h2>
108 //
109 // <code>SoftLayer_Exception_NotReady</code> Thrown when the current private network cannot be converted to VRF without specialized assistance.
110 func (r Network) EnableVrf() (resp bool, err error) {
111 err = r.Session.DoRequest("SoftLayer_Network", "enableVrf", nil, &r.Options, &resp)
112 return
113 }
114
115 // Accessing select IBM Cloud services attached to the private back-end network is made possible by establishing a network relationship between an account's private network and the Service Endpoint network.
116 //
117 // <h2>Responses</h2>
118 //
119 // <code>True</code> The account and Service Endpoint networks are currently connected.
120 //
121 // <code>False</code> The account and Service Endpoint networks are not connected; both networks are properly configured to connect.
122 //
123 // <h2>Exceptions</h2>
124 //
125 // <code>SoftLayer_Exception_NotReady</code> Thrown when the current network configuration will not support connection alteration.
126 func (r Network) IsConnectedToPrivateEndpointService() (resp bool, err error) {
127 err = r.Session.DoRequest("SoftLayer_Network", "isConnectedToPrivateEndpointService", nil, &r.Options, &resp)
128 return
129 }
130
131 // The SoftLayer_Network_Application_Delivery_Controller data type models a single instance of an application delivery controller. Local properties are read only, except for a ”notes” property, which can be used to describe your application delivery controller service. The type's relational properties provide more information to the service's function and login information to the controller's backend management if advanced view is enabled.
132 type Network_Application_Delivery_Controller struct {
133 Session session.SLSession
134 Options sl.Options
135 }
136
137 // GetNetworkApplicationDeliveryControllerService returns an instance of the Network_Application_Delivery_Controller SoftLayer service
138 func GetNetworkApplicationDeliveryControllerService(sess session.SLSession) Network_Application_Delivery_Controller {
139 return Network_Application_Delivery_Controller{Session: sess}
140 }
141
142 func (r Network_Application_Delivery_Controller) Id(id int) Network_Application_Delivery_Controller {
143 r.Options.Id = &id
144 return r
145 }
146
147 func (r Network_Application_Delivery_Controller) Mask(mask string) Network_Application_Delivery_Controller {
148 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
149 mask = fmt.Sprintf("mask[%s]", mask)
150 }
151
152 r.Options.Mask = mask
153 return r
154 }
155
156 func (r Network_Application_Delivery_Controller) Filter(filter string) Network_Application_Delivery_Controller {
157 r.Options.Filter = filter
158 return r
159 }
160
161 func (r Network_Application_Delivery_Controller) Limit(limit int) Network_Application_Delivery_Controller {
162 r.Options.Limit = &limit
163 return r
164 }
165
166 func (r Network_Application_Delivery_Controller) Offset(offset int) Network_Application_Delivery_Controller {
167 r.Options.Offset = &offset
168 return r
169 }
170
171 // Create or add to an application delivery controller based load balancer service. The loadBalancer parameter must have its ”name”, ”type”, ”sourcePort”, and ”virtualIpAddress” properties populated. Changes are reflected immediately in the application delivery controller.
172 func (r Network_Application_Delivery_Controller) CreateLiveLoadBalancer(loadBalancer *datatypes.Network_LoadBalancer_VirtualIpAddress) (resp bool, err error) {
173 params := []interface{}{
174 loadBalancer,
175 }
176 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "createLiveLoadBalancer", params, &r.Options, &resp)
177 return
178 }
179
180 // Remove a virtual IP address from an application delivery controller based load balancer. Only the ”name” property in the loadBalancer parameter must be populated. Changes are reflected immediately in the application delivery controller.
181 func (r Network_Application_Delivery_Controller) DeleteLiveLoadBalancer(loadBalancer *datatypes.Network_LoadBalancer_VirtualIpAddress) (resp bool, err error) {
182 params := []interface{}{
183 loadBalancer,
184 }
185 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "deleteLiveLoadBalancer", params, &r.Options, &resp)
186 return
187 }
188
189 // Remove an entire load balancer service, including all virtual IP addresses, from and application delivery controller based load balancer. The ”name” property the and ”name” property within the ”vip” property of the service parameter must be provided. Changes are reflected immediately in the application delivery controller.
190 func (r Network_Application_Delivery_Controller) DeleteLiveLoadBalancerService(service *datatypes.Network_LoadBalancer_Service) (err error) {
191 var resp datatypes.Void
192 params := []interface{}{
193 service,
194 }
195 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "deleteLiveLoadBalancerService", params, &r.Options, &resp)
196 return
197 }
198
199 // Edit an applications delivery controller record. Currently only a controller's notes property is editable.
200 func (r Network_Application_Delivery_Controller) EditObject(templateObject *datatypes.Network_Application_Delivery_Controller) (resp bool, err error) {
201 params := []interface{}{
202 templateObject,
203 }
204 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "editObject", params, &r.Options, &resp)
205 return
206 }
207
208 // Retrieve The SoftLayer customer account that owns an application delivery controller record.
209 func (r Network_Application_Delivery_Controller) GetAccount() (resp datatypes.Account, err error) {
210 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getAccount", nil, &r.Options, &resp)
211 return
212 }
213
214 // Retrieve The average daily public bandwidth usage for the current billing cycle.
215 func (r Network_Application_Delivery_Controller) GetAverageDailyPublicBandwidthUsage() (resp datatypes.Float64, err error) {
216 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getAverageDailyPublicBandwidthUsage", nil, &r.Options, &resp)
217 return
218 }
219
220 // no documentation yet
221 func (r Network_Application_Delivery_Controller) GetBandwidthDataByDate(startDateTime *datatypes.Time, endDateTime *datatypes.Time, networkType *string) (resp []datatypes.Metric_Tracking_Object_Data, err error) {
222 params := []interface{}{
223 startDateTime,
224 endDateTime,
225 networkType,
226 }
227 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getBandwidthDataByDate", params, &r.Options, &resp)
228 return
229 }
230
231 // Retrieve The billing item for a Application Delivery Controller.
232 func (r Network_Application_Delivery_Controller) GetBillingItem() (resp datatypes.Billing_Item_Network_Application_Delivery_Controller, err error) {
233 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getBillingItem", nil, &r.Options, &resp)
234 return
235 }
236
237 // Retrieve Previous configurations for an Application Delivery Controller.
238 func (r Network_Application_Delivery_Controller) GetConfigurationHistory() (resp []datatypes.Network_Application_Delivery_Controller_Configuration_History, err error) {
239 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getConfigurationHistory", nil, &r.Options, &resp)
240 return
241 }
242
243 // Retrieve The datacenter that the application delivery controller resides in.
244 func (r Network_Application_Delivery_Controller) GetDatacenter() (resp datatypes.Location, err error) {
245 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getDatacenter", nil, &r.Options, &resp)
246 return
247 }
248
249 // Retrieve A brief description of an application delivery controller record.
250 func (r Network_Application_Delivery_Controller) GetDescription() (resp string, err error) {
251 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getDescription", nil, &r.Options, &resp)
252 return
253 }
254
255 // Retrieve The total public inbound bandwidth for the current billing cycle.
256 func (r Network_Application_Delivery_Controller) GetInboundPublicBandwidthUsage() (resp datatypes.Float64, err error) {
257 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getInboundPublicBandwidthUsage", nil, &r.Options, &resp)
258 return
259 }
260
261 // Retrieve The date in which the license for this application delivery controller will expire.
262 func (r Network_Application_Delivery_Controller) GetLicenseExpirationDate() (resp datatypes.Time, err error) {
263 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getLicenseExpirationDate", nil, &r.Options, &resp)
264 return
265 }
266
267 // Retrieve The virtual IP address records that belong to an application delivery controller based load balancer.
268 func (r Network_Application_Delivery_Controller) GetLoadBalancers() (resp []datatypes.Network_LoadBalancer_VirtualIpAddress, err error) {
269 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getLoadBalancers", nil, &r.Options, &resp)
270 return
271 }
272
273 // Retrieve A flag indicating that this Application Delivery Controller is a managed resource.
274 func (r Network_Application_Delivery_Controller) GetManagedResourceFlag() (resp bool, err error) {
275 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getManagedResourceFlag", nil, &r.Options, &resp)
276 return
277 }
278
279 // Retrieve An application delivery controller's management ip address.
280 func (r Network_Application_Delivery_Controller) GetManagementIpAddress() (resp string, err error) {
281 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getManagementIpAddress", nil, &r.Options, &resp)
282 return
283 }
284
285 // Retrieve The network VLAN that an application delivery controller resides on.
286 func (r Network_Application_Delivery_Controller) GetNetworkVlan() (resp datatypes.Network_Vlan, err error) {
287 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getNetworkVlan", nil, &r.Options, &resp)
288 return
289 }
290
291 // Retrieve The network VLANs that an application delivery controller resides on.
292 func (r Network_Application_Delivery_Controller) GetNetworkVlans() (resp []datatypes.Network_Vlan, err error) {
293 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getNetworkVlans", nil, &r.Options, &resp)
294 return
295 }
296
297 // getObject retrieves the SoftLayer_Network_Application_Delivery_Controller object whose ID number corresponds to the ID number of the init parameter passed to the SoftLayer_Network_Application_Delivery_Controller service. You can only retrieve application delivery controllers that are associated with your SoftLayer customer account.
298 func (r Network_Application_Delivery_Controller) GetObject() (resp datatypes.Network_Application_Delivery_Controller, err error) {
299 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getObject", nil, &r.Options, &resp)
300 return
301 }
302
303 // Retrieve The total public outbound bandwidth for the current billing cycle.
304 func (r Network_Application_Delivery_Controller) GetOutboundPublicBandwidthUsage() (resp datatypes.Float64, err error) {
305 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getOutboundPublicBandwidthUsage", nil, &r.Options, &resp)
306 return
307 }
308
309 // Retrieve The password used to connect to an application delivery controller's management interface when it is operating in advanced view mode.
310 func (r Network_Application_Delivery_Controller) GetPassword() (resp datatypes.Software_Component_Password, err error) {
311 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getPassword", nil, &r.Options, &resp)
312 return
313 }
314
315 // Retrieve An application delivery controller's primary public IP address.
316 func (r Network_Application_Delivery_Controller) GetPrimaryIpAddress() (resp string, err error) {
317 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getPrimaryIpAddress", nil, &r.Options, &resp)
318 return
319 }
320
321 // Retrieve The projected public outbound bandwidth for the current billing cycle.
322 func (r Network_Application_Delivery_Controller) GetProjectedPublicBandwidthUsage() (resp datatypes.Float64, err error) {
323 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getProjectedPublicBandwidthUsage", nil, &r.Options, &resp)
324 return
325 }
326
327 // Retrieve A network application controller's subnets. A subnet is a group of IP addresses
328 func (r Network_Application_Delivery_Controller) GetSubnets() (resp []datatypes.Network_Subnet, err error) {
329 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getSubnets", nil, &r.Options, &resp)
330 return
331 }
332
333 // Retrieve
334 func (r Network_Application_Delivery_Controller) GetTagReferences() (resp []datatypes.Tag_Reference, err error) {
335 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getTagReferences", nil, &r.Options, &resp)
336 return
337 }
338
339 // Retrieve
340 func (r Network_Application_Delivery_Controller) GetType() (resp datatypes.Network_Application_Delivery_Controller_Type, err error) {
341 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getType", nil, &r.Options, &resp)
342 return
343 }
344
345 // Retrieve
346 func (r Network_Application_Delivery_Controller) GetVirtualIpAddresses() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress, err error) {
347 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "getVirtualIpAddresses", nil, &r.Options, &resp)
348 return
349 }
350
351 // Restore an application delivery controller's base configuration state. The configuration will be set to what it was when initially provisioned.
352 func (r Network_Application_Delivery_Controller) RestoreBaseConfiguration() (resp bool, err error) {
353 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "restoreBaseConfiguration", nil, &r.Options, &resp)
354 return
355 }
356
357 // Restore an application delivery controller's configuration state.
358 func (r Network_Application_Delivery_Controller) RestoreConfiguration(configurationHistoryId *int) (resp bool, err error) {
359 params := []interface{}{
360 configurationHistoryId,
361 }
362 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "restoreConfiguration", params, &r.Options, &resp)
363 return
364 }
365
366 // Save an application delivery controller's configuration state. The notes property for this method is optional.
367 func (r Network_Application_Delivery_Controller) SaveCurrentConfiguration(notes *string) (resp datatypes.Network_Application_Delivery_Controller_Configuration_History, err error) {
368 params := []interface{}{
369 notes,
370 }
371 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "saveCurrentConfiguration", params, &r.Options, &resp)
372 return
373 }
374
375 // Update the the virtual IP address interface within an application delivery controller based load balancer identified by the ”name” property in the loadBalancer parameter. You only need to set the properties in the loadBalancer parameter that you wish to change. Any virtual IP properties omitted or left empty are ignored. Changes are reflected immediately in the application delivery controller.
376 func (r Network_Application_Delivery_Controller) UpdateLiveLoadBalancer(loadBalancer *datatypes.Network_LoadBalancer_VirtualIpAddress) (resp bool, err error) {
377 params := []interface{}{
378 loadBalancer,
379 }
380 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "updateLiveLoadBalancer", params, &r.Options, &resp)
381 return
382 }
383
384 // Update the NetScaler VPX License.
385 //
386 // This service will create a transaction to update a NetScaler VPX License. After the license is updated the load balancer will reboot in order to apply the newly issued license
387 //
388 // The load balancer will be unavailable during the reboot.
389 func (r Network_Application_Delivery_Controller) UpdateNetScalerLicense() (resp datatypes.Provisioning_Version1_Transaction, err error) {
390 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller", "updateNetScalerLicense", nil, &r.Options, &resp)
391 return
392 }
393
394 // The SoftLayer_Network_Application_Delivery_Controller_Configuration_History data type models a single instance of a configuration history entry for an application delivery controller. The configuration history entries are used to support creating backups of an application delivery controller's configuration state in order to restore them later if needed.
395 type Network_Application_Delivery_Controller_Configuration_History struct {
396 Session session.SLSession
397 Options sl.Options
398 }
399
400 // GetNetworkApplicationDeliveryControllerConfigurationHistoryService returns an instance of the Network_Application_Delivery_Controller_Configuration_History SoftLayer service
401 func GetNetworkApplicationDeliveryControllerConfigurationHistoryService(sess session.SLSession) Network_Application_Delivery_Controller_Configuration_History {
402 return Network_Application_Delivery_Controller_Configuration_History{Session: sess}
403 }
404
405 func (r Network_Application_Delivery_Controller_Configuration_History) Id(id int) Network_Application_Delivery_Controller_Configuration_History {
406 r.Options.Id = &id
407 return r
408 }
409
410 func (r Network_Application_Delivery_Controller_Configuration_History) Mask(mask string) Network_Application_Delivery_Controller_Configuration_History {
411 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
412 mask = fmt.Sprintf("mask[%s]", mask)
413 }
414
415 r.Options.Mask = mask
416 return r
417 }
418
419 func (r Network_Application_Delivery_Controller_Configuration_History) Filter(filter string) Network_Application_Delivery_Controller_Configuration_History {
420 r.Options.Filter = filter
421 return r
422 }
423
424 func (r Network_Application_Delivery_Controller_Configuration_History) Limit(limit int) Network_Application_Delivery_Controller_Configuration_History {
425 r.Options.Limit = &limit
426 return r
427 }
428
429 func (r Network_Application_Delivery_Controller_Configuration_History) Offset(offset int) Network_Application_Delivery_Controller_Configuration_History {
430 r.Options.Offset = &offset
431 return r
432 }
433
434 // deleteObject permanently removes a configuration history record
435 func (r Network_Application_Delivery_Controller_Configuration_History) DeleteObject() (resp bool, err error) {
436 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_Configuration_History", "deleteObject", nil, &r.Options, &resp)
437 return
438 }
439
440 // Retrieve The application delivery controller that a configuration history record belongs to.
441 func (r Network_Application_Delivery_Controller_Configuration_History) GetController() (resp datatypes.Network_Application_Delivery_Controller, err error) {
442 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_Configuration_History", "getController", nil, &r.Options, &resp)
443 return
444 }
445
446 // no documentation yet
447 func (r Network_Application_Delivery_Controller_Configuration_History) GetObject() (resp datatypes.Network_Application_Delivery_Controller_Configuration_History, err error) {
448 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_Configuration_History", "getObject", nil, &r.Options, &resp)
449 return
450 }
451
452 // no documentation yet
453 // Deprecated: This function has been marked as deprecated.
454 type Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute struct {
455 Session session.SLSession
456 Options sl.Options
457 }
458
459 // GetNetworkApplicationDeliveryControllerLoadBalancerHealthAttributeService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute SoftLayer service
460 func GetNetworkApplicationDeliveryControllerLoadBalancerHealthAttributeService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute {
461 return Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute{Session: sess}
462 }
463
464 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute) Id(id int) Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute {
465 r.Options.Id = &id
466 return r
467 }
468
469 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute) Mask(mask string) Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute {
470 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
471 mask = fmt.Sprintf("mask[%s]", mask)
472 }
473
474 r.Options.Mask = mask
475 return r
476 }
477
478 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute) Filter(filter string) Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute {
479 r.Options.Filter = filter
480 return r
481 }
482
483 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute) Limit(limit int) Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute {
484 r.Options.Limit = &limit
485 return r
486 }
487
488 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute) Offset(offset int) Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute {
489 r.Options.Offset = &offset
490 return r
491 }
492
493 // Retrieve
494 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute) GetHealthCheck() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_Health_Check, err error) {
495 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute", "getHealthCheck", nil, &r.Options, &resp)
496 return
497 }
498
499 // no documentation yet
500 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute) GetObject() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute, err error) {
501 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute", "getObject", nil, &r.Options, &resp)
502 return
503 }
504
505 // Retrieve
506 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute) GetType() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type, err error) {
507 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute", "getType", nil, &r.Options, &resp)
508 return
509 }
510
511 // no documentation yet
512 // Deprecated: This function has been marked as deprecated.
513 type Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type struct {
514 Session session.SLSession
515 Options sl.Options
516 }
517
518 // GetNetworkApplicationDeliveryControllerLoadBalancerHealthAttributeTypeService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type SoftLayer service
519 func GetNetworkApplicationDeliveryControllerLoadBalancerHealthAttributeTypeService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type {
520 return Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type{Session: sess}
521 }
522
523 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type) Id(id int) Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type {
524 r.Options.Id = &id
525 return r
526 }
527
528 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type) Mask(mask string) Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type {
529 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
530 mask = fmt.Sprintf("mask[%s]", mask)
531 }
532
533 r.Options.Mask = mask
534 return r
535 }
536
537 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type) Filter(filter string) Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type {
538 r.Options.Filter = filter
539 return r
540 }
541
542 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type) Limit(limit int) Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type {
543 r.Options.Limit = &limit
544 return r
545 }
546
547 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type) Offset(offset int) Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type {
548 r.Options.Offset = &offset
549 return r
550 }
551
552 // no documentation yet
553 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type) GetAllObjects() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type, err error) {
554 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type", "getAllObjects", nil, &r.Options, &resp)
555 return
556 }
557
558 // no documentation yet
559 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type) GetObject() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type, err error) {
560 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type", "getObject", nil, &r.Options, &resp)
561 return
562 }
563
564 // no documentation yet
565 // Deprecated: This function has been marked as deprecated.
566 type Network_Application_Delivery_Controller_LoadBalancer_Health_Check struct {
567 Session session.SLSession
568 Options sl.Options
569 }
570
571 // GetNetworkApplicationDeliveryControllerLoadBalancerHealthCheckService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_Health_Check SoftLayer service
572 func GetNetworkApplicationDeliveryControllerLoadBalancerHealthCheckService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_Health_Check {
573 return Network_Application_Delivery_Controller_LoadBalancer_Health_Check{Session: sess}
574 }
575
576 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check) Id(id int) Network_Application_Delivery_Controller_LoadBalancer_Health_Check {
577 r.Options.Id = &id
578 return r
579 }
580
581 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check) Mask(mask string) Network_Application_Delivery_Controller_LoadBalancer_Health_Check {
582 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
583 mask = fmt.Sprintf("mask[%s]", mask)
584 }
585
586 r.Options.Mask = mask
587 return r
588 }
589
590 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check) Filter(filter string) Network_Application_Delivery_Controller_LoadBalancer_Health_Check {
591 r.Options.Filter = filter
592 return r
593 }
594
595 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check) Limit(limit int) Network_Application_Delivery_Controller_LoadBalancer_Health_Check {
596 r.Options.Limit = &limit
597 return r
598 }
599
600 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check) Offset(offset int) Network_Application_Delivery_Controller_LoadBalancer_Health_Check {
601 r.Options.Offset = &offset
602 return r
603 }
604
605 // Retrieve
606 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check) GetAttributes() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute, err error) {
607 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check", "getAttributes", nil, &r.Options, &resp)
608 return
609 }
610
611 // no documentation yet
612 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check) GetObject() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_Health_Check, err error) {
613 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check", "getObject", nil, &r.Options, &resp)
614 return
615 }
616
617 // Retrieve
618 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check) GetServices() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_Service, err error) {
619 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check", "getServices", nil, &r.Options, &resp)
620 return
621 }
622
623 // Retrieve
624 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check) GetType() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type, err error) {
625 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check", "getType", nil, &r.Options, &resp)
626 return
627 }
628
629 // no documentation yet
630 // Deprecated: This function has been marked as deprecated.
631 type Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type struct {
632 Session session.SLSession
633 Options sl.Options
634 }
635
636 // GetNetworkApplicationDeliveryControllerLoadBalancerHealthCheckTypeService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type SoftLayer service
637 func GetNetworkApplicationDeliveryControllerLoadBalancerHealthCheckTypeService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type {
638 return Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type{Session: sess}
639 }
640
641 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type) Id(id int) Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type {
642 r.Options.Id = &id
643 return r
644 }
645
646 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type) Mask(mask string) Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type {
647 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
648 mask = fmt.Sprintf("mask[%s]", mask)
649 }
650
651 r.Options.Mask = mask
652 return r
653 }
654
655 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type) Filter(filter string) Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type {
656 r.Options.Filter = filter
657 return r
658 }
659
660 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type) Limit(limit int) Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type {
661 r.Options.Limit = &limit
662 return r
663 }
664
665 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type) Offset(offset int) Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type {
666 r.Options.Offset = &offset
667 return r
668 }
669
670 // no documentation yet
671 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type) GetAllObjects() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type, err error) {
672 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type", "getAllObjects", nil, &r.Options, &resp)
673 return
674 }
675
676 // no documentation yet
677 func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type) GetObject() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type, err error) {
678 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type", "getObject", nil, &r.Options, &resp)
679 return
680 }
681
682 // no documentation yet
683 // Deprecated: This function has been marked as deprecated.
684 type Network_Application_Delivery_Controller_LoadBalancer_Routing_Method struct {
685 Session session.SLSession
686 Options sl.Options
687 }
688
689 // GetNetworkApplicationDeliveryControllerLoadBalancerRoutingMethodService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_Routing_Method SoftLayer service
690 func GetNetworkApplicationDeliveryControllerLoadBalancerRoutingMethodService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_Routing_Method {
691 return Network_Application_Delivery_Controller_LoadBalancer_Routing_Method{Session: sess}
692 }
693
694 func (r Network_Application_Delivery_Controller_LoadBalancer_Routing_Method) Id(id int) Network_Application_Delivery_Controller_LoadBalancer_Routing_Method {
695 r.Options.Id = &id
696 return r
697 }
698
699 func (r Network_Application_Delivery_Controller_LoadBalancer_Routing_Method) Mask(mask string) Network_Application_Delivery_Controller_LoadBalancer_Routing_Method {
700 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
701 mask = fmt.Sprintf("mask[%s]", mask)
702 }
703
704 r.Options.Mask = mask
705 return r
706 }
707
708 func (r Network_Application_Delivery_Controller_LoadBalancer_Routing_Method) Filter(filter string) Network_Application_Delivery_Controller_LoadBalancer_Routing_Method {
709 r.Options.Filter = filter
710 return r
711 }
712
713 func (r Network_Application_Delivery_Controller_LoadBalancer_Routing_Method) Limit(limit int) Network_Application_Delivery_Controller_LoadBalancer_Routing_Method {
714 r.Options.Limit = &limit
715 return r
716 }
717
718 func (r Network_Application_Delivery_Controller_LoadBalancer_Routing_Method) Offset(offset int) Network_Application_Delivery_Controller_LoadBalancer_Routing_Method {
719 r.Options.Offset = &offset
720 return r
721 }
722
723 // no documentation yet
724 func (r Network_Application_Delivery_Controller_LoadBalancer_Routing_Method) GetAllObjects() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_Routing_Method, err error) {
725 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Routing_Method", "getAllObjects", nil, &r.Options, &resp)
726 return
727 }
728
729 // no documentation yet
730 func (r Network_Application_Delivery_Controller_LoadBalancer_Routing_Method) GetObject() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_Routing_Method, err error) {
731 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Routing_Method", "getObject", nil, &r.Options, &resp)
732 return
733 }
734
735 // no documentation yet
736 // Deprecated: This function has been marked as deprecated.
737 type Network_Application_Delivery_Controller_LoadBalancer_Routing_Type struct {
738 Session session.SLSession
739 Options sl.Options
740 }
741
742 // GetNetworkApplicationDeliveryControllerLoadBalancerRoutingTypeService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_Routing_Type SoftLayer service
743 func GetNetworkApplicationDeliveryControllerLoadBalancerRoutingTypeService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_Routing_Type {
744 return Network_Application_Delivery_Controller_LoadBalancer_Routing_Type{Session: sess}
745 }
746
747 func (r Network_Application_Delivery_Controller_LoadBalancer_Routing_Type) Id(id int) Network_Application_Delivery_Controller_LoadBalancer_Routing_Type {
748 r.Options.Id = &id
749 return r
750 }
751
752 func (r Network_Application_Delivery_Controller_LoadBalancer_Routing_Type) Mask(mask string) Network_Application_Delivery_Controller_LoadBalancer_Routing_Type {
753 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
754 mask = fmt.Sprintf("mask[%s]", mask)
755 }
756
757 r.Options.Mask = mask
758 return r
759 }
760
761 func (r Network_Application_Delivery_Controller_LoadBalancer_Routing_Type) Filter(filter string) Network_Application_Delivery_Controller_LoadBalancer_Routing_Type {
762 r.Options.Filter = filter
763 return r
764 }
765
766 func (r Network_Application_Delivery_Controller_LoadBalancer_Routing_Type) Limit(limit int) Network_Application_Delivery_Controller_LoadBalancer_Routing_Type {
767 r.Options.Limit = &limit
768 return r
769 }
770
771 func (r Network_Application_Delivery_Controller_LoadBalancer_Routing_Type) Offset(offset int) Network_Application_Delivery_Controller_LoadBalancer_Routing_Type {
772 r.Options.Offset = &offset
773 return r
774 }
775
776 // no documentation yet
777 func (r Network_Application_Delivery_Controller_LoadBalancer_Routing_Type) GetAllObjects() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_Routing_Type, err error) {
778 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Routing_Type", "getAllObjects", nil, &r.Options, &resp)
779 return
780 }
781
782 // no documentation yet
783 func (r Network_Application_Delivery_Controller_LoadBalancer_Routing_Type) GetObject() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_Routing_Type, err error) {
784 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Routing_Type", "getObject", nil, &r.Options, &resp)
785 return
786 }
787
788 // no documentation yet
789 // Deprecated: This function has been marked as deprecated.
790 type Network_Application_Delivery_Controller_LoadBalancer_Service struct {
791 Session session.SLSession
792 Options sl.Options
793 }
794
795 // GetNetworkApplicationDeliveryControllerLoadBalancerServiceService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_Service SoftLayer service
796 func GetNetworkApplicationDeliveryControllerLoadBalancerServiceService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_Service {
797 return Network_Application_Delivery_Controller_LoadBalancer_Service{Session: sess}
798 }
799
800 func (r Network_Application_Delivery_Controller_LoadBalancer_Service) Id(id int) Network_Application_Delivery_Controller_LoadBalancer_Service {
801 r.Options.Id = &id
802 return r
803 }
804
805 func (r Network_Application_Delivery_Controller_LoadBalancer_Service) Mask(mask string) Network_Application_Delivery_Controller_LoadBalancer_Service {
806 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
807 mask = fmt.Sprintf("mask[%s]", mask)
808 }
809
810 r.Options.Mask = mask
811 return r
812 }
813
814 func (r Network_Application_Delivery_Controller_LoadBalancer_Service) Filter(filter string) Network_Application_Delivery_Controller_LoadBalancer_Service {
815 r.Options.Filter = filter
816 return r
817 }
818
819 func (r Network_Application_Delivery_Controller_LoadBalancer_Service) Limit(limit int) Network_Application_Delivery_Controller_LoadBalancer_Service {
820 r.Options.Limit = &limit
821 return r
822 }
823
824 func (r Network_Application_Delivery_Controller_LoadBalancer_Service) Offset(offset int) Network_Application_Delivery_Controller_LoadBalancer_Service {
825 r.Options.Offset = &offset
826 return r
827 }
828
829 // no documentation yet
830 // Deprecated: This function has been marked as deprecated.
831 func (r Network_Application_Delivery_Controller_LoadBalancer_Service) DeleteObject() (err error) {
832 var resp datatypes.Void
833 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service", "deleteObject", nil, &r.Options, &resp)
834 return
835 }
836
837 // Deprecated
838 // Deprecated: This function has been marked as deprecated.
839 func (r Network_Application_Delivery_Controller_LoadBalancer_Service) GetGraphImage(graphType *string, metric *string) (resp []byte, err error) {
840 params := []interface{}{
841 graphType,
842 metric,
843 }
844 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service", "getGraphImage", params, &r.Options, &resp)
845 return
846 }
847
848 // Retrieve
849 func (r Network_Application_Delivery_Controller_LoadBalancer_Service) GetGroupReferences() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_Service_Group_CrossReference, err error) {
850 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service", "getGroupReferences", nil, &r.Options, &resp)
851 return
852 }
853
854 // Retrieve
855 func (r Network_Application_Delivery_Controller_LoadBalancer_Service) GetGroups() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_Service_Group, err error) {
856 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service", "getGroups", nil, &r.Options, &resp)
857 return
858 }
859
860 // Retrieve
861 func (r Network_Application_Delivery_Controller_LoadBalancer_Service) GetHealthCheck() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_Health_Check, err error) {
862 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service", "getHealthCheck", nil, &r.Options, &resp)
863 return
864 }
865
866 // Retrieve
867 func (r Network_Application_Delivery_Controller_LoadBalancer_Service) GetHealthChecks() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_Health_Check, err error) {
868 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service", "getHealthChecks", nil, &r.Options, &resp)
869 return
870 }
871
872 // Retrieve
873 func (r Network_Application_Delivery_Controller_LoadBalancer_Service) GetIpAddress() (resp datatypes.Network_Subnet_IpAddress, err error) {
874 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service", "getIpAddress", nil, &r.Options, &resp)
875 return
876 }
877
878 // no documentation yet
879 func (r Network_Application_Delivery_Controller_LoadBalancer_Service) GetObject() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_Service, err error) {
880 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service", "getObject", nil, &r.Options, &resp)
881 return
882 }
883
884 // Retrieve
885 func (r Network_Application_Delivery_Controller_LoadBalancer_Service) GetServiceGroup() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_Service_Group, err error) {
886 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service", "getServiceGroup", nil, &r.Options, &resp)
887 return
888 }
889
890 // no documentation yet
891 // Deprecated: This function has been marked as deprecated.
892 func (r Network_Application_Delivery_Controller_LoadBalancer_Service) ToggleStatus() (resp bool, err error) {
893 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service", "toggleStatus", nil, &r.Options, &resp)
894 return
895 }
896
897 // no documentation yet
898 // Deprecated: This function has been marked as deprecated.
899 type Network_Application_Delivery_Controller_LoadBalancer_Service_Group struct {
900 Session session.SLSession
901 Options sl.Options
902 }
903
904 // GetNetworkApplicationDeliveryControllerLoadBalancerServiceGroupService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_Service_Group SoftLayer service
905 func GetNetworkApplicationDeliveryControllerLoadBalancerServiceGroupService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_Service_Group {
906 return Network_Application_Delivery_Controller_LoadBalancer_Service_Group{Session: sess}
907 }
908
909 func (r Network_Application_Delivery_Controller_LoadBalancer_Service_Group) Id(id int) Network_Application_Delivery_Controller_LoadBalancer_Service_Group {
910 r.Options.Id = &id
911 return r
912 }
913
914 func (r Network_Application_Delivery_Controller_LoadBalancer_Service_Group) Mask(mask string) Network_Application_Delivery_Controller_LoadBalancer_Service_Group {
915 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
916 mask = fmt.Sprintf("mask[%s]", mask)
917 }
918
919 r.Options.Mask = mask
920 return r
921 }
922
923 func (r Network_Application_Delivery_Controller_LoadBalancer_Service_Group) Filter(filter string) Network_Application_Delivery_Controller_LoadBalancer_Service_Group {
924 r.Options.Filter = filter
925 return r
926 }
927
928 func (r Network_Application_Delivery_Controller_LoadBalancer_Service_Group) Limit(limit int) Network_Application_Delivery_Controller_LoadBalancer_Service_Group {
929 r.Options.Limit = &limit
930 return r
931 }
932
933 func (r Network_Application_Delivery_Controller_LoadBalancer_Service_Group) Offset(offset int) Network_Application_Delivery_Controller_LoadBalancer_Service_Group {
934 r.Options.Offset = &offset
935 return r
936 }
937
938 // Deprecated
939 // Deprecated: This function has been marked as deprecated.
940 func (r Network_Application_Delivery_Controller_LoadBalancer_Service_Group) GetGraphImage(graphType *string, metric *string) (resp []byte, err error) {
941 params := []interface{}{
942 graphType,
943 metric,
944 }
945 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group", "getGraphImage", params, &r.Options, &resp)
946 return
947 }
948
949 // no documentation yet
950 func (r Network_Application_Delivery_Controller_LoadBalancer_Service_Group) GetObject() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_Service_Group, err error) {
951 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group", "getObject", nil, &r.Options, &resp)
952 return
953 }
954
955 // Retrieve
956 func (r Network_Application_Delivery_Controller_LoadBalancer_Service_Group) GetRoutingMethod() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_Routing_Method, err error) {
957 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group", "getRoutingMethod", nil, &r.Options, &resp)
958 return
959 }
960
961 // Retrieve
962 func (r Network_Application_Delivery_Controller_LoadBalancer_Service_Group) GetRoutingType() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_Routing_Type, err error) {
963 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group", "getRoutingType", nil, &r.Options, &resp)
964 return
965 }
966
967 // Retrieve
968 func (r Network_Application_Delivery_Controller_LoadBalancer_Service_Group) GetServiceReferences() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_Service_Group_CrossReference, err error) {
969 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group", "getServiceReferences", nil, &r.Options, &resp)
970 return
971 }
972
973 // Retrieve
974 func (r Network_Application_Delivery_Controller_LoadBalancer_Service_Group) GetServices() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_Service, err error) {
975 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group", "getServices", nil, &r.Options, &resp)
976 return
977 }
978
979 // Retrieve
980 func (r Network_Application_Delivery_Controller_LoadBalancer_Service_Group) GetVirtualServer() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_VirtualServer, err error) {
981 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group", "getVirtualServer", nil, &r.Options, &resp)
982 return
983 }
984
985 // Retrieve
986 func (r Network_Application_Delivery_Controller_LoadBalancer_Service_Group) GetVirtualServers() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_VirtualServer, err error) {
987 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group", "getVirtualServers", nil, &r.Options, &resp)
988 return
989 }
990
991 // no documentation yet
992 // Deprecated: This function has been marked as deprecated.
993 func (r Network_Application_Delivery_Controller_LoadBalancer_Service_Group) KickAllConnections() (resp bool, err error) {
994 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group", "kickAllConnections", nil, &r.Options, &resp)
995 return
996 }
997
998 // no documentation yet
999 // Deprecated: This function has been marked as deprecated.
1000 type Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress struct {
1001 Session session.SLSession
1002 Options sl.Options
1003 }
1004
1005 // GetNetworkApplicationDeliveryControllerLoadBalancerVirtualIpAddressService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress SoftLayer service
1006 func GetNetworkApplicationDeliveryControllerLoadBalancerVirtualIpAddressService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress {
1007 return Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress{Session: sess}
1008 }
1009
1010 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) Id(id int) Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress {
1011 r.Options.Id = &id
1012 return r
1013 }
1014
1015 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) Mask(mask string) Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress {
1016 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
1017 mask = fmt.Sprintf("mask[%s]", mask)
1018 }
1019
1020 r.Options.Mask = mask
1021 return r
1022 }
1023
1024 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) Filter(filter string) Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress {
1025 r.Options.Filter = filter
1026 return r
1027 }
1028
1029 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) Limit(limit int) Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress {
1030 r.Options.Limit = &limit
1031 return r
1032 }
1033
1034 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) Offset(offset int) Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress {
1035 r.Options.Offset = &offset
1036 return r
1037 }
1038
1039 // Deprecated
1040 // Deprecated: This function has been marked as deprecated.
1041 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) EditObject(templateObject *datatypes.Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) (resp bool, err error) {
1042 params := []interface{}{
1043 templateObject,
1044 }
1045 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "editObject", params, &r.Options, &resp)
1046 return
1047 }
1048
1049 // Retrieve
1050 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) GetAccount() (resp datatypes.Account, err error) {
1051 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "getAccount", nil, &r.Options, &resp)
1052 return
1053 }
1054
1055 // Retrieve A virtual IP address's associated application delivery controller.
1056 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) GetApplicationDeliveryController() (resp datatypes.Network_Application_Delivery_Controller, err error) {
1057 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "getApplicationDeliveryController", nil, &r.Options, &resp)
1058 return
1059 }
1060
1061 // Retrieve A virtual IP address's associated application delivery controllers.
1062 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) GetApplicationDeliveryControllers() (resp []datatypes.Network_Application_Delivery_Controller, err error) {
1063 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "getApplicationDeliveryControllers", nil, &r.Options, &resp)
1064 return
1065 }
1066
1067 // Deprecated
1068 // Deprecated: This function has been marked as deprecated.
1069 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) GetAvailableSecureTransportCiphers() (resp []datatypes.Security_SecureTransportCipher, err error) {
1070 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "getAvailableSecureTransportCiphers", nil, &r.Options, &resp)
1071 return
1072 }
1073
1074 // Deprecated
1075 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) GetAvailableSecureTransportProtocols() (resp []datatypes.Security_SecureTransportProtocol, err error) {
1076 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "getAvailableSecureTransportProtocols", nil, &r.Options, &resp)
1077 return
1078 }
1079
1080 // Retrieve The current billing item for the load balancer virtual IP. This is only valid when dedicatedFlag is false. This is an independent virtual IP, and if canceled, will only affect the associated virtual IP.
1081 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) GetBillingItem() (resp datatypes.Billing_Item, err error) {
1082 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "getBillingItem", nil, &r.Options, &resp)
1083 return
1084 }
1085
1086 // Retrieve The current billing item for the load balancing device housing the virtual IP. This billing item represents a device which could contain other virtual IPs. Caution should be taken when canceling. This is only valid when dedicatedFlag is true.
1087 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) GetDedicatedBillingItem() (resp datatypes.Billing_Item_Network_LoadBalancer, err error) {
1088 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "getDedicatedBillingItem", nil, &r.Options, &resp)
1089 return
1090 }
1091
1092 // Retrieve Denotes whether the virtual IP is configured within a high availability cluster.
1093 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) GetHighAvailabilityFlag() (resp bool, err error) {
1094 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "getHighAvailabilityFlag", nil, &r.Options, &resp)
1095 return
1096 }
1097
1098 // Retrieve
1099 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) GetIpAddress() (resp datatypes.Network_Subnet_IpAddress, err error) {
1100 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "getIpAddress", nil, &r.Options, &resp)
1101 return
1102 }
1103
1104 // Retrieve
1105 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) GetLoadBalancerHardware() (resp []datatypes.Hardware, err error) {
1106 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "getLoadBalancerHardware", nil, &r.Options, &resp)
1107 return
1108 }
1109
1110 // Retrieve A flag indicating that the load balancer is a managed resource.
1111 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) GetManagedResourceFlag() (resp bool, err error) {
1112 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "getManagedResourceFlag", nil, &r.Options, &resp)
1113 return
1114 }
1115
1116 // no documentation yet
1117 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) GetObject() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress, err error) {
1118 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "getObject", nil, &r.Options, &resp)
1119 return
1120 }
1121
1122 // Retrieve The list of security ciphers enabled for this virtual IP address
1123 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) GetSecureTransportCiphers() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress_SecureTransportCipher, err error) {
1124 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "getSecureTransportCiphers", nil, &r.Options, &resp)
1125 return
1126 }
1127
1128 // Retrieve The list of secure transport protocols enabled for this virtual IP address
1129 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) GetSecureTransportProtocols() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress_SecureTransportProtocol, err error) {
1130 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "getSecureTransportProtocols", nil, &r.Options, &resp)
1131 return
1132 }
1133
1134 // Retrieve The SSL certificate currently associated with the VIP.
1135 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) GetSecurityCertificate() (resp datatypes.Security_Certificate, err error) {
1136 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "getSecurityCertificate", nil, &r.Options, &resp)
1137 return
1138 }
1139
1140 // Retrieve The SSL certificate currently associated with the VIP. Provides chosen certificate visibility to unprivileged users.
1141 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) GetSecurityCertificateEntry() (resp datatypes.Security_Certificate, err error) {
1142 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "getSecurityCertificateEntry", nil, &r.Options, &resp)
1143 return
1144 }
1145
1146 // Retrieve
1147 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) GetVirtualServers() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_VirtualServer, err error) {
1148 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "getVirtualServers", nil, &r.Options, &resp)
1149 return
1150 }
1151
1152 // Deprecated
1153 // Deprecated: This function has been marked as deprecated.
1154 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) StartSsl() (resp bool, err error) {
1155 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "startSsl", nil, &r.Options, &resp)
1156 return
1157 }
1158
1159 // Deprecated
1160 // Deprecated: This function has been marked as deprecated.
1161 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) StopSsl() (resp bool, err error) {
1162 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "stopSsl", nil, &r.Options, &resp)
1163 return
1164 }
1165
1166 // Deprecated
1167 // Deprecated: This function has been marked as deprecated.
1168 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) UpgradeConnectionLimit() (resp bool, err error) {
1169 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress", "upgradeConnectionLimit", nil, &r.Options, &resp)
1170 return
1171 }
1172
1173 // no documentation yet
1174 // Deprecated: This function has been marked as deprecated.
1175 type Network_Application_Delivery_Controller_LoadBalancer_VirtualServer struct {
1176 Session session.SLSession
1177 Options sl.Options
1178 }
1179
1180 // GetNetworkApplicationDeliveryControllerLoadBalancerVirtualServerService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_VirtualServer SoftLayer service
1181 func GetNetworkApplicationDeliveryControllerLoadBalancerVirtualServerService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_VirtualServer {
1182 return Network_Application_Delivery_Controller_LoadBalancer_VirtualServer{Session: sess}
1183 }
1184
1185 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualServer) Id(id int) Network_Application_Delivery_Controller_LoadBalancer_VirtualServer {
1186 r.Options.Id = &id
1187 return r
1188 }
1189
1190 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualServer) Mask(mask string) Network_Application_Delivery_Controller_LoadBalancer_VirtualServer {
1191 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
1192 mask = fmt.Sprintf("mask[%s]", mask)
1193 }
1194
1195 r.Options.Mask = mask
1196 return r
1197 }
1198
1199 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualServer) Filter(filter string) Network_Application_Delivery_Controller_LoadBalancer_VirtualServer {
1200 r.Options.Filter = filter
1201 return r
1202 }
1203
1204 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualServer) Limit(limit int) Network_Application_Delivery_Controller_LoadBalancer_VirtualServer {
1205 r.Options.Limit = &limit
1206 return r
1207 }
1208
1209 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualServer) Offset(offset int) Network_Application_Delivery_Controller_LoadBalancer_VirtualServer {
1210 r.Options.Offset = &offset
1211 return r
1212 }
1213
1214 // no documentation yet
1215 // Deprecated: This function has been marked as deprecated.
1216 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualServer) DeleteObject() (err error) {
1217 var resp datatypes.Void
1218 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer", "deleteObject", nil, &r.Options, &resp)
1219 return
1220 }
1221
1222 // no documentation yet
1223 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualServer) GetObject() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_VirtualServer, err error) {
1224 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer", "getObject", nil, &r.Options, &resp)
1225 return
1226 }
1227
1228 // Retrieve
1229 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualServer) GetRoutingMethod() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_Routing_Method, err error) {
1230 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer", "getRoutingMethod", nil, &r.Options, &resp)
1231 return
1232 }
1233
1234 // Retrieve
1235 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualServer) GetServiceGroups() (resp []datatypes.Network_Application_Delivery_Controller_LoadBalancer_Service_Group, err error) {
1236 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer", "getServiceGroups", nil, &r.Options, &resp)
1237 return
1238 }
1239
1240 // Retrieve
1241 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualServer) GetVirtualIpAddress() (resp datatypes.Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress, err error) {
1242 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer", "getVirtualIpAddress", nil, &r.Options, &resp)
1243 return
1244 }
1245
1246 // Deprecated
1247 // Deprecated: This function has been marked as deprecated.
1248 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualServer) StartSsl() (resp bool, err error) {
1249 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer", "startSsl", nil, &r.Options, &resp)
1250 return
1251 }
1252
1253 // Deprecated
1254 // Deprecated: This function has been marked as deprecated.
1255 func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualServer) StopSsl() (resp bool, err error) {
1256 err = r.Session.DoRequest("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer", "stopSsl", nil, &r.Options, &resp)
1257 return
1258 }
1259
1260 // The SoftLayer_Network_Bandwidth_Version1_Allotment class provides methods and data structures necessary to work with an array of hardware objects associated with a single Bandwidth Pooling.
1261 type Network_Bandwidth_Version1_Allotment struct {
1262 Session session.SLSession
1263 Options sl.Options
1264 }
1265
1266 // GetNetworkBandwidthVersion1AllotmentService returns an instance of the Network_Bandwidth_Version1_Allotment SoftLayer service
1267 func GetNetworkBandwidthVersion1AllotmentService(sess session.SLSession) Network_Bandwidth_Version1_Allotment {
1268 return Network_Bandwidth_Version1_Allotment{Session: sess}
1269 }
1270
1271 func (r Network_Bandwidth_Version1_Allotment) Id(id int) Network_Bandwidth_Version1_Allotment {
1272 r.Options.Id = &id
1273 return r
1274 }
1275
1276 func (r Network_Bandwidth_Version1_Allotment) Mask(mask string) Network_Bandwidth_Version1_Allotment {
1277 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
1278 mask = fmt.Sprintf("mask[%s]", mask)
1279 }
1280
1281 r.Options.Mask = mask
1282 return r
1283 }
1284
1285 func (r Network_Bandwidth_Version1_Allotment) Filter(filter string) Network_Bandwidth_Version1_Allotment {
1286 r.Options.Filter = filter
1287 return r
1288 }
1289
1290 func (r Network_Bandwidth_Version1_Allotment) Limit(limit int) Network_Bandwidth_Version1_Allotment {
1291 r.Options.Limit = &limit
1292 return r
1293 }
1294
1295 func (r Network_Bandwidth_Version1_Allotment) Offset(offset int) Network_Bandwidth_Version1_Allotment {
1296 r.Options.Offset = &offset
1297 return r
1298 }
1299
1300 // Create a allotment for servers to pool bandwidth and avoid overages in billing if they use more than there allocated bandwidth.
1301 func (r Network_Bandwidth_Version1_Allotment) CreateObject(templateObject *datatypes.Network_Bandwidth_Version1_Allotment) (resp datatypes.Network_Bandwidth_Version1_Allotment, err error) {
1302 params := []interface{}{
1303 templateObject,
1304 }
1305 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "createObject", params, &r.Options, &resp)
1306 return
1307 }
1308
1309 // Edit a bandwidth allotment's local properties. Currently you may only change an allotment's name. Use the [[SoftLayer_Network_Bandwidth_Version1_Allotment::setVdrContent|setVdrContent()]] and [[SoftLayer_Network_Bandwidth_Version1_Allotment::requestVdrContentUpdates|requestVdrContentUpdates()]] methods to move servers in and out of your allotments.
1310 func (r Network_Bandwidth_Version1_Allotment) EditObject(templateObject *datatypes.Network_Bandwidth_Version1_Allotment) (resp bool, err error) {
1311 params := []interface{}{
1312 templateObject,
1313 }
1314 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "editObject", params, &r.Options, &resp)
1315 return
1316 }
1317
1318 // Retrieve The account associated with this virtual rack.
1319 func (r Network_Bandwidth_Version1_Allotment) GetAccount() (resp datatypes.Account, err error) {
1320 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getAccount", nil, &r.Options, &resp)
1321 return
1322 }
1323
1324 // Retrieve The bandwidth allotment detail records associated with this virtual rack.
1325 func (r Network_Bandwidth_Version1_Allotment) GetActiveDetails() (resp []datatypes.Network_Bandwidth_Version1_Allotment_Detail, err error) {
1326 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getActiveDetails", nil, &r.Options, &resp)
1327 return
1328 }
1329
1330 // Retrieve The Application Delivery Controller contained within a virtual rack.
1331 func (r Network_Bandwidth_Version1_Allotment) GetApplicationDeliveryControllers() (resp []datatypes.Network_Application_Delivery_Controller, err error) {
1332 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getApplicationDeliveryControllers", nil, &r.Options, &resp)
1333 return
1334 }
1335
1336 // Retrieve The average daily public bandwidth usage for the current billing cycle.
1337 func (r Network_Bandwidth_Version1_Allotment) GetAverageDailyPublicBandwidthUsage() (resp datatypes.Float64, err error) {
1338 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getAverageDailyPublicBandwidthUsage", nil, &r.Options, &resp)
1339 return
1340 }
1341
1342 // Retrieve The bandwidth allotment type of this virtual rack.
1343 func (r Network_Bandwidth_Version1_Allotment) GetBandwidthAllotmentType() (resp datatypes.Network_Bandwidth_Version1_Allotment_Type, err error) {
1344 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getBandwidthAllotmentType", nil, &r.Options, &resp)
1345 return
1346 }
1347
1348 // Retrieve a collection of bandwidth data from an individual public or private network tracking object. Data is ideal if you with to employ your own traffic storage and graphing systems.
1349 func (r Network_Bandwidth_Version1_Allotment) GetBandwidthForDateRange(startDate *datatypes.Time, endDate *datatypes.Time) (resp []datatypes.Metric_Tracking_Object_Data, err error) {
1350 params := []interface{}{
1351 startDate,
1352 endDate,
1353 }
1354 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getBandwidthForDateRange", params, &r.Options, &resp)
1355 return
1356 }
1357
1358 // Retrieve The bare metal server instances contained within a virtual rack.
1359 func (r Network_Bandwidth_Version1_Allotment) GetBareMetalInstances() (resp []datatypes.Hardware, err error) {
1360 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getBareMetalInstances", nil, &r.Options, &resp)
1361 return
1362 }
1363
1364 // Retrieve A virtual rack's raw bandwidth usage data for an account's current billing cycle. One object is returned for each network this server is attached to.
1365 func (r Network_Bandwidth_Version1_Allotment) GetBillingCycleBandwidthUsage() (resp []datatypes.Network_Bandwidth_Usage, err error) {
1366 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getBillingCycleBandwidthUsage", nil, &r.Options, &resp)
1367 return
1368 }
1369
1370 // Retrieve A virtual rack's raw private network bandwidth usage data for an account's current billing cycle.
1371 func (r Network_Bandwidth_Version1_Allotment) GetBillingCyclePrivateBandwidthUsage() (resp datatypes.Network_Bandwidth_Usage, err error) {
1372 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getBillingCyclePrivateBandwidthUsage", nil, &r.Options, &resp)
1373 return
1374 }
1375
1376 // Retrieve A virtual rack's raw public network bandwidth usage data for an account's current billing cycle.
1377 func (r Network_Bandwidth_Version1_Allotment) GetBillingCyclePublicBandwidthUsage() (resp datatypes.Network_Bandwidth_Usage, err error) {
1378 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getBillingCyclePublicBandwidthUsage", nil, &r.Options, &resp)
1379 return
1380 }
1381
1382 // Retrieve The total public bandwidth used in this virtual rack for an account's current billing cycle.
1383 func (r Network_Bandwidth_Version1_Allotment) GetBillingCyclePublicUsageTotal() (resp uint, err error) {
1384 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getBillingCyclePublicUsageTotal", nil, &r.Options, &resp)
1385 return
1386 }
1387
1388 // Retrieve A virtual rack's billing item.
1389 func (r Network_Bandwidth_Version1_Allotment) GetBillingItem() (resp datatypes.Billing_Item, err error) {
1390 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getBillingItem", nil, &r.Options, &resp)
1391 return
1392 }
1393
1394 // Retrieve An object that provides commonly used bandwidth summary components for the current billing cycle.
1395 func (r Network_Bandwidth_Version1_Allotment) GetCurrentBandwidthSummary() (resp datatypes.Metric_Tracking_Object_Bandwidth_Summary, err error) {
1396 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getCurrentBandwidthSummary", nil, &r.Options, &resp)
1397 return
1398 }
1399
1400 // Retrieve The bandwidth allotment detail records associated with this virtual rack.
1401 func (r Network_Bandwidth_Version1_Allotment) GetDetails() (resp []datatypes.Network_Bandwidth_Version1_Allotment_Detail, err error) {
1402 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getDetails", nil, &r.Options, &resp)
1403 return
1404 }
1405
1406 // Retrieve The hardware contained within a virtual rack.
1407 func (r Network_Bandwidth_Version1_Allotment) GetHardware() (resp []datatypes.Hardware, err error) {
1408 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getHardware", nil, &r.Options, &resp)
1409 return
1410 }
1411
1412 // Retrieve The total public inbound bandwidth used in this virtual rack for an account's current billing cycle.
1413 func (r Network_Bandwidth_Version1_Allotment) GetInboundPublicBandwidthUsage() (resp datatypes.Float64, err error) {
1414 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getInboundPublicBandwidthUsage", nil, &r.Options, &resp)
1415 return
1416 }
1417
1418 // Retrieve The location group associated with this virtual rack.
1419 func (r Network_Bandwidth_Version1_Allotment) GetLocationGroup() (resp datatypes.Location_Group, err error) {
1420 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getLocationGroup", nil, &r.Options, &resp)
1421 return
1422 }
1423
1424 // Retrieve A virtual rack's metric tracking object. This object records all periodic polled data available to this rack.
1425 func (r Network_Bandwidth_Version1_Allotment) GetMetricTrackingObject() (resp datatypes.Metric_Tracking_Object, err error) {
1426 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getMetricTrackingObject", nil, &r.Options, &resp)
1427 return
1428 }
1429
1430 // Retrieve The metric tracking object id for this allotment.
1431 func (r Network_Bandwidth_Version1_Allotment) GetMetricTrackingObjectId() (resp int, err error) {
1432 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getMetricTrackingObjectId", nil, &r.Options, &resp)
1433 return
1434 }
1435
1436 // getObject retrieves the SoftLayer_Network_Bandwidth_Version1_Allotment object whose ID number corresponds to the ID number of the init parameter passed to the SoftLayer_Hardware service. You can only retrieve an allotment associated with the account that your portal user is assigned to.
1437 func (r Network_Bandwidth_Version1_Allotment) GetObject() (resp datatypes.Network_Bandwidth_Version1_Allotment, err error) {
1438 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getObject", nil, &r.Options, &resp)
1439 return
1440 }
1441
1442 // Retrieve The total public outbound bandwidth used in this virtual rack for an account's current billing cycle.
1443 func (r Network_Bandwidth_Version1_Allotment) GetOutboundPublicBandwidthUsage() (resp datatypes.Float64, err error) {
1444 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getOutboundPublicBandwidthUsage", nil, &r.Options, &resp)
1445 return
1446 }
1447
1448 // Retrieve Whether the bandwidth usage for this bandwidth pool for the current billing cycle exceeds the allocation.
1449 func (r Network_Bandwidth_Version1_Allotment) GetOverBandwidthAllocationFlag() (resp int, err error) {
1450 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getOverBandwidthAllocationFlag", nil, &r.Options, &resp)
1451 return
1452 }
1453
1454 // Retrieve The private network only hardware contained within a virtual rack.
1455 func (r Network_Bandwidth_Version1_Allotment) GetPrivateNetworkOnlyHardware() (resp []datatypes.Hardware, err error) {
1456 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getPrivateNetworkOnlyHardware", nil, &r.Options, &resp)
1457 return
1458 }
1459
1460 // Retrieve Whether the bandwidth usage for this bandwidth pool for the current billing cycle is projected to exceed the allocation.
1461 func (r Network_Bandwidth_Version1_Allotment) GetProjectedOverBandwidthAllocationFlag() (resp int, err error) {
1462 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getProjectedOverBandwidthAllocationFlag", nil, &r.Options, &resp)
1463 return
1464 }
1465
1466 // Retrieve The projected public outbound bandwidth for this virtual server for the current billing cycle.
1467 func (r Network_Bandwidth_Version1_Allotment) GetProjectedPublicBandwidthUsage() (resp datatypes.Float64, err error) {
1468 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getProjectedPublicBandwidthUsage", nil, &r.Options, &resp)
1469 return
1470 }
1471
1472 // Retrieve
1473 func (r Network_Bandwidth_Version1_Allotment) GetServiceProvider() (resp datatypes.Service_Provider, err error) {
1474 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getServiceProvider", nil, &r.Options, &resp)
1475 return
1476 }
1477
1478 // Retrieve The combined allocated bandwidth for all servers in a virtual rack.
1479 func (r Network_Bandwidth_Version1_Allotment) GetTotalBandwidthAllocated() (resp uint, err error) {
1480 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getTotalBandwidthAllocated", nil, &r.Options, &resp)
1481 return
1482 }
1483
1484 // Gets the monthly recurring fee of a pooled server.
1485 func (r Network_Bandwidth_Version1_Allotment) GetVdrMemberRecurringFee() (resp datatypes.Float64, err error) {
1486 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getVdrMemberRecurringFee", nil, &r.Options, &resp)
1487 return
1488 }
1489
1490 // Retrieve The Virtual Server contained within a virtual rack.
1491 func (r Network_Bandwidth_Version1_Allotment) GetVirtualGuests() (resp []datatypes.Virtual_Guest, err error) {
1492 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "getVirtualGuests", nil, &r.Options, &resp)
1493 return
1494 }
1495
1496 // [DEPRECATED] This method will reassign a collection of SoftLayer hardware to a bandwidth allotment Bandwidth Pool.
1497 // Deprecated: This function has been marked as deprecated.
1498 func (r Network_Bandwidth_Version1_Allotment) ReassignServers(templateObjects []datatypes.Hardware, newAllotmentId *int) (resp bool, err error) {
1499 params := []interface{}{
1500 templateObjects,
1501 newAllotmentId,
1502 }
1503 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "reassignServers", params, &r.Options, &resp)
1504 return
1505 }
1506
1507 // This will remove a bandwidth pooling from a customer's allotments by cancelling the billing item. All servers in that allotment will get moved to the account's vpr.
1508 func (r Network_Bandwidth_Version1_Allotment) RequestVdrCancellation() (resp bool, err error) {
1509 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "requestVdrCancellation", nil, &r.Options, &resp)
1510 return
1511 }
1512
1513 // This will move servers into a bandwidth pool, removing them from their previous bandwidth pool and optionally remove the bandwidth pool on completion.
1514 func (r Network_Bandwidth_Version1_Allotment) RequestVdrContentUpdates(hardwareToAdd []datatypes.Hardware, hardwareToRemove []datatypes.Hardware, cloudsToAdd []datatypes.Virtual_Guest, cloudsToRemove []datatypes.Virtual_Guest, optionalAllotmentId *int, adcToAdd []datatypes.Network_Application_Delivery_Controller, adcToRemove []datatypes.Network_Application_Delivery_Controller) (resp bool, err error) {
1515 params := []interface{}{
1516 hardwareToAdd,
1517 hardwareToRemove,
1518 cloudsToAdd,
1519 cloudsToRemove,
1520 optionalAllotmentId,
1521 adcToAdd,
1522 adcToRemove,
1523 }
1524 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "requestVdrContentUpdates", params, &r.Options, &resp)
1525 return
1526 }
1527
1528 // This will update the bandwidth pool to the servers provided. Servers currently in the bandwidth pool not provided on update will be removed. Servers provided on update not currently in the bandwidth pool will be added. If all servers are removed, this removes the bandwidth pool on completion.
1529 func (r Network_Bandwidth_Version1_Allotment) SetVdrContent(hardware []datatypes.Hardware, bareMetalServers []datatypes.Hardware, virtualServerInstance []datatypes.Virtual_Guest, adc []datatypes.Network_Application_Delivery_Controller, optionalAllotmentId *int) (resp bool, err error) {
1530 params := []interface{}{
1531 hardware,
1532 bareMetalServers,
1533 virtualServerInstance,
1534 adc,
1535 optionalAllotmentId,
1536 }
1537 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "setVdrContent", params, &r.Options, &resp)
1538 return
1539 }
1540
1541 // [DEPRECATED] This method will reassign a collection of SoftLayer hardware to the virtual private rack
1542 // Deprecated: This function has been marked as deprecated.
1543 func (r Network_Bandwidth_Version1_Allotment) UnassignServers(templateObjects []datatypes.Hardware) (resp bool, err error) {
1544 params := []interface{}{
1545 templateObjects,
1546 }
1547 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "unassignServers", params, &r.Options, &resp)
1548 return
1549 }
1550
1551 // This method will void a pending server removal from this bandwidth pooling. Pass in the id of the hardware object or virtual guest you wish to update. Assuming that object is currently pending removal from the bandwidth pool at the start of the next billing cycle, the bandwidth pool member status will be restored and the pending cancellation removed.
1552 func (r Network_Bandwidth_Version1_Allotment) VoidPendingServerMove(id *int, typ *string) (resp bool, err error) {
1553 params := []interface{}{
1554 id,
1555 typ,
1556 }
1557 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "voidPendingServerMove", params, &r.Options, &resp)
1558 return
1559 }
1560
1561 // This method will void a pending cancellation on a bandwidth pool. Note however any servers that belonged to the rack will have to be restored individually using the method voidPendingServerMove($id, $type).
1562 func (r Network_Bandwidth_Version1_Allotment) VoidPendingVdrCancellation() (resp bool, err error) {
1563 err = r.Session.DoRequest("SoftLayer_Network_Bandwidth_Version1_Allotment", "voidPendingVdrCancellation", nil, &r.Options, &resp)
1564 return
1565 }
1566
1567 // Every piece of hardware running in SoftLayer's datacenters connected to the public, private, or management networks (where applicable) have a corresponding network component. These network components are modeled by the SoftLayer_Network_Component data type. These data types reflect the servers' local ethernet and remote management interfaces.
1568 type Network_Component struct {
1569 Session session.SLSession
1570 Options sl.Options
1571 }
1572
1573 // GetNetworkComponentService returns an instance of the Network_Component SoftLayer service
1574 func GetNetworkComponentService(sess session.SLSession) Network_Component {
1575 return Network_Component{Session: sess}
1576 }
1577
1578 func (r Network_Component) Id(id int) Network_Component {
1579 r.Options.Id = &id
1580 return r
1581 }
1582
1583 func (r Network_Component) Mask(mask string) Network_Component {
1584 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
1585 mask = fmt.Sprintf("mask[%s]", mask)
1586 }
1587
1588 r.Options.Mask = mask
1589 return r
1590 }
1591
1592 func (r Network_Component) Filter(filter string) Network_Component {
1593 r.Options.Filter = filter
1594 return r
1595 }
1596
1597 func (r Network_Component) Limit(limit int) Network_Component {
1598 r.Options.Limit = &limit
1599 return r
1600 }
1601
1602 func (r Network_Component) Offset(offset int) Network_Component {
1603 r.Options.Offset = &offset
1604 return r
1605 }
1606
1607 // Add VLANs as trunks to a network component. The VLANs given must be assigned to your account and belong to the same pod in which this network component and its hardware reside. The current native VLAN cannot be added as a trunk.
1608 //
1609 // This method should be called on a network component of assigned hardware. A current list of VLAN trunks for a network component on a customer server can be found at 'uplinkComponent->networkVlanTrunks'.
1610 //
1611 // This method returns an array of SoftLayer_Network_Vlans which were added as trunks. Any requested VLANs which are already trunked will be ignored and will not be returned.
1612 //
1613 // Affected VLANs will not yet be operational as trunks on the network upon return of this call, but activation will have been scheduled and should be considered imminent. The trunking records associated with the affected VLANs will maintain an 'isUpdating' value of '1' so long as this is the case.
1614 //
1615 // Note that in the event of an "internal system error" some VLANs may still have been affected and scheduled for activation.
1616 func (r Network_Component) AddNetworkVlanTrunks(networkVlans []datatypes.Network_Vlan) (resp []datatypes.Network_Vlan, err error) {
1617 params := []interface{}{
1618 networkVlans,
1619 }
1620 err = r.Session.DoRequest("SoftLayer_Network_Component", "addNetworkVlanTrunks", params, &r.Options, &resp)
1621 return
1622 }
1623
1624 // Remove all VLANs currently attached as trunks to this network component.
1625 //
1626 // This method should be called on a network component of assigned hardware. A current list of VLAN trunks for a network component on a customer server can be found at 'uplinkComponent->networkVlanTrunks'.
1627 //
1628 // This method returns an array of SoftLayer_Network_Vlans which will be removed as trunks.
1629 //
1630 // Affected VLANs will not yet be removed as trunks upon return of this call, but deactivation and removal will have been scheduled and should be considered imminent. The trunking records associated with the affected VLANs will maintain an 'isUpdating' value of '1' so long as this is the case.
1631 //
1632 // Note that in the event of a "pending API request" error some VLANs may still have been affected and scheduled for deactivation.
1633 func (r Network_Component) ClearNetworkVlanTrunks() (resp []datatypes.Network_Vlan, err error) {
1634 err = r.Session.DoRequest("SoftLayer_Network_Component", "clearNetworkVlanTrunks", nil, &r.Options, &resp)
1635 return
1636 }
1637
1638 // Retrieve Reboot/power (rebootDefault, rebootSoft, rebootHard, powerOn, powerOff and powerCycle) command currently executing by the server's remote management card.
1639 func (r Network_Component) GetActiveCommand() (resp datatypes.Hardware_Component_RemoteManagement_Command_Request, err error) {
1640 err = r.Session.DoRequest("SoftLayer_Network_Component", "getActiveCommand", nil, &r.Options, &resp)
1641 return
1642 }
1643
1644 // Retrieve The network component linking this object to a child device
1645 func (r Network_Component) GetDownlinkComponent() (resp datatypes.Network_Component, err error) {
1646 err = r.Session.DoRequest("SoftLayer_Network_Component", "getDownlinkComponent", nil, &r.Options, &resp)
1647 return
1648 }
1649
1650 // Retrieve The duplex mode of a network component.
1651 func (r Network_Component) GetDuplexMode() (resp datatypes.Network_Component_Duplex_Mode, err error) {
1652 err = r.Session.DoRequest("SoftLayer_Network_Component", "getDuplexMode", nil, &r.Options, &resp)
1653 return
1654 }
1655
1656 // Retrieve The hardware that a network component resides in.
1657 func (r Network_Component) GetHardware() (resp datatypes.Hardware, err error) {
1658 err = r.Session.DoRequest("SoftLayer_Network_Component", "getHardware", nil, &r.Options, &resp)
1659 return
1660 }
1661
1662 // Retrieve
1663 func (r Network_Component) GetHighAvailabilityFirewallFlag() (resp bool, err error) {
1664 err = r.Session.DoRequest("SoftLayer_Network_Component", "getHighAvailabilityFirewallFlag", nil, &r.Options, &resp)
1665 return
1666 }
1667
1668 // Retrieve The records of all IP addresses bound to a network component.
1669 func (r Network_Component) GetIpAddressBindings() (resp []datatypes.Network_Component_IpAddress, err error) {
1670 err = r.Session.DoRequest("SoftLayer_Network_Component", "getIpAddressBindings", nil, &r.Options, &resp)
1671 return
1672 }
1673
1674 // Retrieve
1675 func (r Network_Component) GetIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) {
1676 err = r.Session.DoRequest("SoftLayer_Network_Component", "getIpAddresses", nil, &r.Options, &resp)
1677 return
1678 }
1679
1680 // Retrieve Last reboot/power (rebootDefault, rebootSoft, rebootHard, powerOn, powerOff and powerCycle) command issued to the server's remote management card.
1681 func (r Network_Component) GetLastCommand() (resp datatypes.Hardware_Component_RemoteManagement_Command_Request, err error) {
1682 err = r.Session.DoRequest("SoftLayer_Network_Component", "getLastCommand", nil, &r.Options, &resp)
1683 return
1684 }
1685
1686 // Retrieve The metric tracking object for this network component.
1687 func (r Network_Component) GetMetricTrackingObject() (resp datatypes.Metric_Tracking_Object, err error) {
1688 err = r.Session.DoRequest("SoftLayer_Network_Component", "getMetricTrackingObject", nil, &r.Options, &resp)
1689 return
1690 }
1691
1692 // Retrieve The upstream network component firewall.
1693 func (r Network_Component) GetNetworkComponentFirewall() (resp datatypes.Network_Component_Firewall, err error) {
1694 err = r.Session.DoRequest("SoftLayer_Network_Component", "getNetworkComponentFirewall", nil, &r.Options, &resp)
1695 return
1696 }
1697
1698 // Retrieve A network component's associated group.
1699 func (r Network_Component) GetNetworkComponentGroup() (resp datatypes.Network_Component_Group, err error) {
1700 err = r.Session.DoRequest("SoftLayer_Network_Component", "getNetworkComponentGroup", nil, &r.Options, &resp)
1701 return
1702 }
1703
1704 // Retrieve All network devices in SoftLayer's network hierarchy that this device is connected to.
1705 func (r Network_Component) GetNetworkHardware() (resp []datatypes.Hardware, err error) {
1706 err = r.Session.DoRequest("SoftLayer_Network_Component", "getNetworkHardware", nil, &r.Options, &resp)
1707 return
1708 }
1709
1710 // Retrieve The VLAN that a network component's subnet is associated with.
1711 func (r Network_Component) GetNetworkVlan() (resp datatypes.Network_Vlan, err error) {
1712 err = r.Session.DoRequest("SoftLayer_Network_Component", "getNetworkVlan", nil, &r.Options, &resp)
1713 return
1714 }
1715
1716 // Retrieve The VLANs that are trunked to this network component.
1717 func (r Network_Component) GetNetworkVlanTrunks() (resp []datatypes.Network_Component_Network_Vlan_Trunk, err error) {
1718 err = r.Session.DoRequest("SoftLayer_Network_Component", "getNetworkVlanTrunks", nil, &r.Options, &resp)
1719 return
1720 }
1721
1722 // Retrieve The viable trunking targets of this component. Viable targets include accessible VLANs in the same pod and network as this component, which are not already natively attached nor trunked to this component.
1723 func (r Network_Component) GetNetworkVlansTrunkable() (resp []datatypes.Network_Vlan, err error) {
1724 err = r.Session.DoRequest("SoftLayer_Network_Component", "getNetworkVlansTrunkable", nil, &r.Options, &resp)
1725 return
1726 }
1727
1728 // no documentation yet
1729 func (r Network_Component) GetObject() (resp datatypes.Network_Component, err error) {
1730 err = r.Session.DoRequest("SoftLayer_Network_Component", "getObject", nil, &r.Options, &resp)
1731 return
1732 }
1733
1734 // **DEPRECATED - This operation will cease to function after April 4th, 2016 and will be removed from v3.2**
1735 // Retrieve various network statistics. The network statistics are retrieved from the network device using snmpget. Below is a list of statistics retrieved:
1736 // * Administrative Status
1737 // * Operational Status
1738 // * Maximum Transmission Unit
1739 // * In Octets
1740 // * Out Octets
1741 // * In Unicast Packets
1742 // * Out Unicast Packets
1743 // * In Multicast Packets
1744 // * Out Multicast Packets
1745 // Deprecated: This function has been marked as deprecated.
1746 func (r Network_Component) GetPortStatistics() (resp datatypes.Container_Network_Port_Statistic, err error) {
1747 err = r.Session.DoRequest("SoftLayer_Network_Component", "getPortStatistics", nil, &r.Options, &resp)
1748 return
1749 }
1750
1751 // Retrieve The primary IPv4 Address record for a network component.
1752 func (r Network_Component) GetPrimaryIpAddressRecord() (resp datatypes.Network_Subnet_IpAddress, err error) {
1753 err = r.Session.DoRequest("SoftLayer_Network_Component", "getPrimaryIpAddressRecord", nil, &r.Options, &resp)
1754 return
1755 }
1756
1757 // Retrieve The subnet of the primary IP address assigned to this network component.
1758 func (r Network_Component) GetPrimarySubnet() (resp datatypes.Network_Subnet, err error) {
1759 err = r.Session.DoRequest("SoftLayer_Network_Component", "getPrimarySubnet", nil, &r.Options, &resp)
1760 return
1761 }
1762
1763 // Retrieve The primary IPv6 Address record for a network component.
1764 func (r Network_Component) GetPrimaryVersion6IpAddressRecord() (resp datatypes.Network_Subnet_IpAddress, err error) {
1765 err = r.Session.DoRequest("SoftLayer_Network_Component", "getPrimaryVersion6IpAddressRecord", nil, &r.Options, &resp)
1766 return
1767 }
1768
1769 // Retrieve The last five reboot/power (rebootDefault, rebootSoft, rebootHard, powerOn, powerOff and powerCycle) commands issued to the server's remote management card.
1770 func (r Network_Component) GetRecentCommands() (resp []datatypes.Hardware_Component_RemoteManagement_Command_Request, err error) {
1771 err = r.Session.DoRequest("SoftLayer_Network_Component", "getRecentCommands", nil, &r.Options, &resp)
1772 return
1773 }
1774
1775 // Retrieve Indicates whether the network component is participating in a group of two or more components capable of being operationally redundant, if enabled.
1776 func (r Network_Component) GetRedundancyCapableFlag() (resp bool, err error) {
1777 err = r.Session.DoRequest("SoftLayer_Network_Component", "getRedundancyCapableFlag", nil, &r.Options, &resp)
1778 return
1779 }
1780
1781 // Retrieve Indicates whether the network component is participating in a group of two or more components which is actively providing link redundancy.
1782 func (r Network_Component) GetRedundancyEnabledFlag() (resp bool, err error) {
1783 err = r.Session.DoRequest("SoftLayer_Network_Component", "getRedundancyEnabledFlag", nil, &r.Options, &resp)
1784 return
1785 }
1786
1787 // Retrieve User(s) credentials to issue commands and/or interact with the server's remote management card.
1788 func (r Network_Component) GetRemoteManagementUsers() (resp []datatypes.Hardware_Component_RemoteManagement_User, err error) {
1789 err = r.Session.DoRequest("SoftLayer_Network_Component", "getRemoteManagementUsers", nil, &r.Options, &resp)
1790 return
1791 }
1792
1793 // Retrieve A network component's routers.
1794 func (r Network_Component) GetRouter() (resp datatypes.Hardware, err error) {
1795 err = r.Session.DoRequest("SoftLayer_Network_Component", "getRouter", nil, &r.Options, &resp)
1796 return
1797 }
1798
1799 // Retrieve Whether a network component's primary ip address is from a storage network subnet or not. [Deprecated]
1800 func (r Network_Component) GetStorageNetworkFlag() (resp bool, err error) {
1801 err = r.Session.DoRequest("SoftLayer_Network_Component", "getStorageNetworkFlag", nil, &r.Options, &resp)
1802 return
1803 }
1804
1805 // Retrieve A network component's subnets. A subnet is a group of IP addresses
1806 func (r Network_Component) GetSubnets() (resp []datatypes.Network_Subnet, err error) {
1807 err = r.Session.DoRequest("SoftLayer_Network_Component", "getSubnets", nil, &r.Options, &resp)
1808 return
1809 }
1810
1811 // Retrieve The network component linking this object to parent
1812 func (r Network_Component) GetUplinkComponent() (resp datatypes.Network_Component, err error) {
1813 err = r.Session.DoRequest("SoftLayer_Network_Component", "getUplinkComponent", nil, &r.Options, &resp)
1814 return
1815 }
1816
1817 // Retrieve The duplex mode of the uplink network component linking to this object
1818 func (r Network_Component) GetUplinkDuplexMode() (resp datatypes.Network_Component_Duplex_Mode, err error) {
1819 err = r.Session.DoRequest("SoftLayer_Network_Component", "getUplinkDuplexMode", nil, &r.Options, &resp)
1820 return
1821 }
1822
1823 // Remove one or more VLANs currently attached as trunks to this network component.
1824 //
1825 // If any VLANs are given which are not attached as trunks, they will be ignored.
1826 //
1827 // This method should be called on a network component of assigned hardware. A current list of VLAN trunks for a network component on a customer server can be found at 'uplinkComponent->networkVlanTrunks'.
1828 //
1829 // This method returns an array of SoftLayer_Network_Vlans which will be removed as trunks. Any requested VLANs which were not trunked will be ignored and will not be returned.
1830 //
1831 // Affected VLANs will not yet be removed as trunks upon return of this call, but deactivation and removal will have been scheduled and should be considered imminent. The trunking records associated with the affected VLANs will maintain an 'isUpdating' value of '1' so long as this is the case.
1832 //
1833 // Note that in the event of a "pending API request" error some VLANs may still have been affected and scheduled for deactivation.
1834 func (r Network_Component) RemoveNetworkVlanTrunks(networkVlans []datatypes.Network_Vlan) (resp []datatypes.Network_Vlan, err error) {
1835 params := []interface{}{
1836 networkVlans,
1837 }
1838 err = r.Session.DoRequest("SoftLayer_Network_Component", "removeNetworkVlanTrunks", params, &r.Options, &resp)
1839 return
1840 }
1841
1842 // The SoftLayer_Network_Component_Firewall data type contains general information relating to a single SoftLayer network component firewall. This is the object which ties the running rules to a specific downstream server. Use the [[SoftLayer Network Firewall Template]] service to pull SoftLayer recommended rule set templates. Use the [[SoftLayer Network Firewall Update Request]] service to submit a firewall update request.
1843 type Network_Component_Firewall struct {
1844 Session session.SLSession
1845 Options sl.Options
1846 }
1847
1848 // GetNetworkComponentFirewallService returns an instance of the Network_Component_Firewall SoftLayer service
1849 func GetNetworkComponentFirewallService(sess session.SLSession) Network_Component_Firewall {
1850 return Network_Component_Firewall{Session: sess}
1851 }
1852
1853 func (r Network_Component_Firewall) Id(id int) Network_Component_Firewall {
1854 r.Options.Id = &id
1855 return r
1856 }
1857
1858 func (r Network_Component_Firewall) Mask(mask string) Network_Component_Firewall {
1859 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
1860 mask = fmt.Sprintf("mask[%s]", mask)
1861 }
1862
1863 r.Options.Mask = mask
1864 return r
1865 }
1866
1867 func (r Network_Component_Firewall) Filter(filter string) Network_Component_Firewall {
1868 r.Options.Filter = filter
1869 return r
1870 }
1871
1872 func (r Network_Component_Firewall) Limit(limit int) Network_Component_Firewall {
1873 r.Options.Limit = &limit
1874 return r
1875 }
1876
1877 func (r Network_Component_Firewall) Offset(offset int) Network_Component_Firewall {
1878 r.Options.Offset = &offset
1879 return r
1880 }
1881
1882 // Retrieve The additional subnets linked to this network component firewall, that inherit rules from the host that the context slot is attached to.
1883 func (r Network_Component_Firewall) GetApplyServerRuleSubnets() (resp []datatypes.Network_Subnet, err error) {
1884 err = r.Session.DoRequest("SoftLayer_Network_Component_Firewall", "getApplyServerRuleSubnets", nil, &r.Options, &resp)
1885 return
1886 }
1887
1888 // Retrieve The billing item for a Hardware Firewall (Dedicated).
1889 func (r Network_Component_Firewall) GetBillingItem() (resp datatypes.Billing_Item, err error) {
1890 err = r.Session.DoRequest("SoftLayer_Network_Component_Firewall", "getBillingItem", nil, &r.Options, &resp)
1891 return
1892 }
1893
1894 // Retrieve The network component of the guest virtual server that this network component firewall belongs to.
1895 func (r Network_Component_Firewall) GetGuestNetworkComponent() (resp datatypes.Virtual_Guest_Network_Component, err error) {
1896 err = r.Session.DoRequest("SoftLayer_Network_Component_Firewall", "getGuestNetworkComponent", nil, &r.Options, &resp)
1897 return
1898 }
1899
1900 // Retrieve The network component of the switch interface that this network component firewall belongs to.
1901 func (r Network_Component_Firewall) GetNetworkComponent() (resp datatypes.Network_Component, err error) {
1902 err = r.Session.DoRequest("SoftLayer_Network_Component_Firewall", "getNetworkComponent", nil, &r.Options, &resp)
1903 return
1904 }
1905
1906 // Retrieve The update requests made for this firewall.
1907 func (r Network_Component_Firewall) GetNetworkFirewallUpdateRequest() (resp []datatypes.Network_Firewall_Update_Request, err error) {
1908 err = r.Session.DoRequest("SoftLayer_Network_Component_Firewall", "getNetworkFirewallUpdateRequest", nil, &r.Options, &resp)
1909 return
1910 }
1911
1912 // getObject returns a SoftLayer_Network_Firewall_Module_Context_Interface_AccessControlList_Network_Component object. You can only get objects for servers attached to your account that have a network firewall enabled.
1913 func (r Network_Component_Firewall) GetObject() (resp datatypes.Network_Component_Firewall, err error) {
1914 err = r.Session.DoRequest("SoftLayer_Network_Component_Firewall", "getObject", nil, &r.Options, &resp)
1915 return
1916 }
1917
1918 // Retrieve The currently running rule set of this network component firewall.
1919 func (r Network_Component_Firewall) GetRules() (resp []datatypes.Network_Component_Firewall_Rule, err error) {
1920 err = r.Session.DoRequest("SoftLayer_Network_Component_Firewall", "getRules", nil, &r.Options, &resp)
1921 return
1922 }
1923
1924 // Retrieve The additional subnets linked to this network component firewall.
1925 func (r Network_Component_Firewall) GetSubnets() (resp []datatypes.Network_Subnet, err error) {
1926 err = r.Session.DoRequest("SoftLayer_Network_Component_Firewall", "getSubnets", nil, &r.Options, &resp)
1927 return
1928 }
1929
1930 // Check for active transactions for the shared Firewall.
1931 func (r Network_Component_Firewall) HasActiveTransactions() (resp bool, err error) {
1932 err = r.Session.DoRequest("SoftLayer_Network_Component_Firewall", "hasActiveTransactions", nil, &r.Options, &resp)
1933 return
1934 }
1935
1936 // DEPRECATED
1937 // Deprecated: This function has been marked as deprecated.
1938 type Network_Customer_Subnet struct {
1939 Session session.SLSession
1940 Options sl.Options
1941 }
1942
1943 // GetNetworkCustomerSubnetService returns an instance of the Network_Customer_Subnet SoftLayer service
1944 func GetNetworkCustomerSubnetService(sess session.SLSession) Network_Customer_Subnet {
1945 return Network_Customer_Subnet{Session: sess}
1946 }
1947
1948 func (r Network_Customer_Subnet) Id(id int) Network_Customer_Subnet {
1949 r.Options.Id = &id
1950 return r
1951 }
1952
1953 func (r Network_Customer_Subnet) Mask(mask string) Network_Customer_Subnet {
1954 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
1955 mask = fmt.Sprintf("mask[%s]", mask)
1956 }
1957
1958 r.Options.Mask = mask
1959 return r
1960 }
1961
1962 func (r Network_Customer_Subnet) Filter(filter string) Network_Customer_Subnet {
1963 r.Options.Filter = filter
1964 return r
1965 }
1966
1967 func (r Network_Customer_Subnet) Limit(limit int) Network_Customer_Subnet {
1968 r.Options.Limit = &limit
1969 return r
1970 }
1971
1972 func (r Network_Customer_Subnet) Offset(offset int) Network_Customer_Subnet {
1973 r.Options.Offset = &offset
1974 return r
1975 }
1976
1977 // DEPRECATED
1978 func (r Network_Customer_Subnet) CreateObject(templateObject *datatypes.Network_Customer_Subnet) (resp datatypes.Network_Customer_Subnet, err error) {
1979 params := []interface{}{
1980 templateObject,
1981 }
1982 err = r.Session.DoRequest("SoftLayer_Network_Customer_Subnet", "createObject", params, &r.Options, &resp)
1983 return
1984 }
1985
1986 // Retrieve All ip addresses associated with a subnet.
1987 func (r Network_Customer_Subnet) GetIpAddresses() (resp []datatypes.Network_Customer_Subnet_IpAddress, err error) {
1988 err = r.Session.DoRequest("SoftLayer_Network_Customer_Subnet", "getIpAddresses", nil, &r.Options, &resp)
1989 return
1990 }
1991
1992 // DEPRECATED
1993 func (r Network_Customer_Subnet) GetObject() (resp datatypes.Network_Customer_Subnet, err error) {
1994 err = r.Session.DoRequest("SoftLayer_Network_Customer_Subnet", "getObject", nil, &r.Options, &resp)
1995 return
1996 }
1997
1998 // The SoftLayer_Network_DirectLink_Location presents a structure containing attributes of a Direct Link location, and its related object SoftLayer location.
1999 type Network_DirectLink_Location struct {
2000 Session session.SLSession
2001 Options sl.Options
2002 }
2003
2004 // GetNetworkDirectLinkLocationService returns an instance of the Network_DirectLink_Location SoftLayer service
2005 func GetNetworkDirectLinkLocationService(sess session.SLSession) Network_DirectLink_Location {
2006 return Network_DirectLink_Location{Session: sess}
2007 }
2008
2009 func (r Network_DirectLink_Location) Id(id int) Network_DirectLink_Location {
2010 r.Options.Id = &id
2011 return r
2012 }
2013
2014 func (r Network_DirectLink_Location) Mask(mask string) Network_DirectLink_Location {
2015 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
2016 mask = fmt.Sprintf("mask[%s]", mask)
2017 }
2018
2019 r.Options.Mask = mask
2020 return r
2021 }
2022
2023 func (r Network_DirectLink_Location) Filter(filter string) Network_DirectLink_Location {
2024 r.Options.Filter = filter
2025 return r
2026 }
2027
2028 func (r Network_DirectLink_Location) Limit(limit int) Network_DirectLink_Location {
2029 r.Options.Limit = &limit
2030 return r
2031 }
2032
2033 func (r Network_DirectLink_Location) Offset(offset int) Network_DirectLink_Location {
2034 r.Options.Offset = &offset
2035 return r
2036 }
2037
2038 // Return all existing Direct Link location.
2039 func (r Network_DirectLink_Location) GetAllObjects() (resp []datatypes.Network_DirectLink_Location, err error) {
2040 err = r.Session.DoRequest("SoftLayer_Network_DirectLink_Location", "getAllObjects", nil, &r.Options, &resp)
2041 return
2042 }
2043
2044 // Retrieve The location of Direct Link facility.
2045 func (r Network_DirectLink_Location) GetLocation() (resp datatypes.Location, err error) {
2046 err = r.Session.DoRequest("SoftLayer_Network_DirectLink_Location", "getLocation", nil, &r.Options, &resp)
2047 return
2048 }
2049
2050 // no documentation yet
2051 func (r Network_DirectLink_Location) GetObject() (resp datatypes.Network_DirectLink_Location, err error) {
2052 err = r.Session.DoRequest("SoftLayer_Network_DirectLink_Location", "getObject", nil, &r.Options, &resp)
2053 return
2054 }
2055
2056 // Retrieve The Id of Direct Link provider.
2057 func (r Network_DirectLink_Location) GetProvider() (resp datatypes.Network_DirectLink_Provider, err error) {
2058 err = r.Session.DoRequest("SoftLayer_Network_DirectLink_Location", "getProvider", nil, &r.Options, &resp)
2059 return
2060 }
2061
2062 // Retrieve The Id of Direct Link service type.
2063 func (r Network_DirectLink_Location) GetServiceType() (resp datatypes.Network_DirectLink_ServiceType, err error) {
2064 err = r.Session.DoRequest("SoftLayer_Network_DirectLink_Location", "getServiceType", nil, &r.Options, &resp)
2065 return
2066 }
2067
2068 // The SoftLayer_Network_DirectLink_Provider presents a structure containing attributes of a Direct Link provider.
2069 type Network_DirectLink_Provider struct {
2070 Session session.SLSession
2071 Options sl.Options
2072 }
2073
2074 // GetNetworkDirectLinkProviderService returns an instance of the Network_DirectLink_Provider SoftLayer service
2075 func GetNetworkDirectLinkProviderService(sess session.SLSession) Network_DirectLink_Provider {
2076 return Network_DirectLink_Provider{Session: sess}
2077 }
2078
2079 func (r Network_DirectLink_Provider) Id(id int) Network_DirectLink_Provider {
2080 r.Options.Id = &id
2081 return r
2082 }
2083
2084 func (r Network_DirectLink_Provider) Mask(mask string) Network_DirectLink_Provider {
2085 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
2086 mask = fmt.Sprintf("mask[%s]", mask)
2087 }
2088
2089 r.Options.Mask = mask
2090 return r
2091 }
2092
2093 func (r Network_DirectLink_Provider) Filter(filter string) Network_DirectLink_Provider {
2094 r.Options.Filter = filter
2095 return r
2096 }
2097
2098 func (r Network_DirectLink_Provider) Limit(limit int) Network_DirectLink_Provider {
2099 r.Options.Limit = &limit
2100 return r
2101 }
2102
2103 func (r Network_DirectLink_Provider) Offset(offset int) Network_DirectLink_Provider {
2104 r.Options.Offset = &offset
2105 return r
2106 }
2107
2108 // no documentation yet
2109 func (r Network_DirectLink_Provider) GetObject() (resp datatypes.Network_DirectLink_Provider, err error) {
2110 err = r.Session.DoRequest("SoftLayer_Network_DirectLink_Provider", "getObject", nil, &r.Options, &resp)
2111 return
2112 }
2113
2114 // The SoftLayer_Network_DirectLink_ServiceType presents a structure containing attributes of a Direct Link Service Type.
2115 type Network_DirectLink_ServiceType struct {
2116 Session session.SLSession
2117 Options sl.Options
2118 }
2119
2120 // GetNetworkDirectLinkServiceTypeService returns an instance of the Network_DirectLink_ServiceType SoftLayer service
2121 func GetNetworkDirectLinkServiceTypeService(sess session.SLSession) Network_DirectLink_ServiceType {
2122 return Network_DirectLink_ServiceType{Session: sess}
2123 }
2124
2125 func (r Network_DirectLink_ServiceType) Id(id int) Network_DirectLink_ServiceType {
2126 r.Options.Id = &id
2127 return r
2128 }
2129
2130 func (r Network_DirectLink_ServiceType) Mask(mask string) Network_DirectLink_ServiceType {
2131 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
2132 mask = fmt.Sprintf("mask[%s]", mask)
2133 }
2134
2135 r.Options.Mask = mask
2136 return r
2137 }
2138
2139 func (r Network_DirectLink_ServiceType) Filter(filter string) Network_DirectLink_ServiceType {
2140 r.Options.Filter = filter
2141 return r
2142 }
2143
2144 func (r Network_DirectLink_ServiceType) Limit(limit int) Network_DirectLink_ServiceType {
2145 r.Options.Limit = &limit
2146 return r
2147 }
2148
2149 func (r Network_DirectLink_ServiceType) Offset(offset int) Network_DirectLink_ServiceType {
2150 r.Options.Offset = &offset
2151 return r
2152 }
2153
2154 // no documentation yet
2155 func (r Network_DirectLink_ServiceType) GetObject() (resp datatypes.Network_DirectLink_ServiceType, err error) {
2156 err = r.Session.DoRequest("SoftLayer_Network_DirectLink_ServiceType", "getObject", nil, &r.Options, &resp)
2157 return
2158 }
2159
2160 // The SoftLayer_Network_Firewall_AccessControlList data type contains general information relating to a single SoftLayer firewall access to controll list. This is the object which ties the running rules to a specific context. Use the [[SoftLayer Network Firewall Template]] service to pull SoftLayer recommended rule set templates. Use the [[SoftLayer Network Firewall Update Request]] service to submit a firewall update request.
2161 type Network_Firewall_AccessControlList struct {
2162 Session session.SLSession
2163 Options sl.Options
2164 }
2165
2166 // GetNetworkFirewallAccessControlListService returns an instance of the Network_Firewall_AccessControlList SoftLayer service
2167 func GetNetworkFirewallAccessControlListService(sess session.SLSession) Network_Firewall_AccessControlList {
2168 return Network_Firewall_AccessControlList{Session: sess}
2169 }
2170
2171 func (r Network_Firewall_AccessControlList) Id(id int) Network_Firewall_AccessControlList {
2172 r.Options.Id = &id
2173 return r
2174 }
2175
2176 func (r Network_Firewall_AccessControlList) Mask(mask string) Network_Firewall_AccessControlList {
2177 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
2178 mask = fmt.Sprintf("mask[%s]", mask)
2179 }
2180
2181 r.Options.Mask = mask
2182 return r
2183 }
2184
2185 func (r Network_Firewall_AccessControlList) Filter(filter string) Network_Firewall_AccessControlList {
2186 r.Options.Filter = filter
2187 return r
2188 }
2189
2190 func (r Network_Firewall_AccessControlList) Limit(limit int) Network_Firewall_AccessControlList {
2191 r.Options.Limit = &limit
2192 return r
2193 }
2194
2195 func (r Network_Firewall_AccessControlList) Offset(offset int) Network_Firewall_AccessControlList {
2196 r.Options.Offset = &offset
2197 return r
2198 }
2199
2200 // Retrieve The update requests made for this firewall.
2201 func (r Network_Firewall_AccessControlList) GetNetworkFirewallUpdateRequests() (resp []datatypes.Network_Firewall_Update_Request, err error) {
2202 err = r.Session.DoRequest("SoftLayer_Network_Firewall_AccessControlList", "getNetworkFirewallUpdateRequests", nil, &r.Options, &resp)
2203 return
2204 }
2205
2206 // Retrieve
2207 func (r Network_Firewall_AccessControlList) GetNetworkVlan() (resp datatypes.Network_Vlan, err error) {
2208 err = r.Session.DoRequest("SoftLayer_Network_Firewall_AccessControlList", "getNetworkVlan", nil, &r.Options, &resp)
2209 return
2210 }
2211
2212 // getObject returns a SoftLayer_Network_Firewall_AccessControlList object. You can only get objects for servers attached to your account that have a network firewall enabled.
2213 func (r Network_Firewall_AccessControlList) GetObject() (resp datatypes.Network_Firewall_AccessControlList, err error) {
2214 err = r.Session.DoRequest("SoftLayer_Network_Firewall_AccessControlList", "getObject", nil, &r.Options, &resp)
2215 return
2216 }
2217
2218 // Retrieve The currently running rule set of this context access control list firewall.
2219 func (r Network_Firewall_AccessControlList) GetRules() (resp []datatypes.Network_Vlan_Firewall_Rule, err error) {
2220 err = r.Session.DoRequest("SoftLayer_Network_Firewall_AccessControlList", "getRules", nil, &r.Options, &resp)
2221 return
2222 }
2223
2224 // The SoftLayer_Network_Firewall_Interface data type contains general information relating to a single SoftLayer firewall interface. This is the object which ties the firewall context access control list to a firewall. Use the [[SoftLayer Network Firewall Template]] service to pull SoftLayer recommended rule set templates. Use the [[SoftLayer Network Firewall Update Request]] service to submit a firewall update request.
2225 type Network_Firewall_Interface struct {
2226 Session session.SLSession
2227 Options sl.Options
2228 }
2229
2230 // GetNetworkFirewallInterfaceService returns an instance of the Network_Firewall_Interface SoftLayer service
2231 func GetNetworkFirewallInterfaceService(sess session.SLSession) Network_Firewall_Interface {
2232 return Network_Firewall_Interface{Session: sess}
2233 }
2234
2235 func (r Network_Firewall_Interface) Id(id int) Network_Firewall_Interface {
2236 r.Options.Id = &id
2237 return r
2238 }
2239
2240 func (r Network_Firewall_Interface) Mask(mask string) Network_Firewall_Interface {
2241 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
2242 mask = fmt.Sprintf("mask[%s]", mask)
2243 }
2244
2245 r.Options.Mask = mask
2246 return r
2247 }
2248
2249 func (r Network_Firewall_Interface) Filter(filter string) Network_Firewall_Interface {
2250 r.Options.Filter = filter
2251 return r
2252 }
2253
2254 func (r Network_Firewall_Interface) Limit(limit int) Network_Firewall_Interface {
2255 r.Options.Limit = &limit
2256 return r
2257 }
2258
2259 func (r Network_Firewall_Interface) Offset(offset int) Network_Firewall_Interface {
2260 r.Options.Offset = &offset
2261 return r
2262 }
2263
2264 // Retrieve
2265 func (r Network_Firewall_Interface) GetFirewallContextAccessControlLists() (resp []datatypes.Network_Firewall_AccessControlList, err error) {
2266 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Interface", "getFirewallContextAccessControlLists", nil, &r.Options, &resp)
2267 return
2268 }
2269
2270 // Retrieve
2271 func (r Network_Firewall_Interface) GetNetworkVlan() (resp datatypes.Network_Vlan, err error) {
2272 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Interface", "getNetworkVlan", nil, &r.Options, &resp)
2273 return
2274 }
2275
2276 // getObject returns a SoftLayer_Network_Firewall_Interface object. You can only get objects for servers attached to your account that have a network firewall enabled.
2277 func (r Network_Firewall_Interface) GetObject() (resp datatypes.Network_Firewall_Interface, err error) {
2278 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Interface", "getObject", nil, &r.Options, &resp)
2279 return
2280 }
2281
2282 // no documentation yet
2283 type Network_Firewall_Module_Context_Interface struct {
2284 Session session.SLSession
2285 Options sl.Options
2286 }
2287
2288 // GetNetworkFirewallModuleContextInterfaceService returns an instance of the Network_Firewall_Module_Context_Interface SoftLayer service
2289 func GetNetworkFirewallModuleContextInterfaceService(sess session.SLSession) Network_Firewall_Module_Context_Interface {
2290 return Network_Firewall_Module_Context_Interface{Session: sess}
2291 }
2292
2293 func (r Network_Firewall_Module_Context_Interface) Id(id int) Network_Firewall_Module_Context_Interface {
2294 r.Options.Id = &id
2295 return r
2296 }
2297
2298 func (r Network_Firewall_Module_Context_Interface) Mask(mask string) Network_Firewall_Module_Context_Interface {
2299 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
2300 mask = fmt.Sprintf("mask[%s]", mask)
2301 }
2302
2303 r.Options.Mask = mask
2304 return r
2305 }
2306
2307 func (r Network_Firewall_Module_Context_Interface) Filter(filter string) Network_Firewall_Module_Context_Interface {
2308 r.Options.Filter = filter
2309 return r
2310 }
2311
2312 func (r Network_Firewall_Module_Context_Interface) Limit(limit int) Network_Firewall_Module_Context_Interface {
2313 r.Options.Limit = &limit
2314 return r
2315 }
2316
2317 func (r Network_Firewall_Module_Context_Interface) Offset(offset int) Network_Firewall_Module_Context_Interface {
2318 r.Options.Offset = &offset
2319 return r
2320 }
2321
2322 // Retrieve
2323 func (r Network_Firewall_Module_Context_Interface) GetFirewallContextAccessControlLists() (resp []datatypes.Network_Firewall_AccessControlList, err error) {
2324 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Module_Context_Interface", "getFirewallContextAccessControlLists", nil, &r.Options, &resp)
2325 return
2326 }
2327
2328 // Retrieve
2329 func (r Network_Firewall_Module_Context_Interface) GetNetworkVlan() (resp datatypes.Network_Vlan, err error) {
2330 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Module_Context_Interface", "getNetworkVlan", nil, &r.Options, &resp)
2331 return
2332 }
2333
2334 // no documentation yet
2335 func (r Network_Firewall_Module_Context_Interface) GetObject() (resp datatypes.Network_Firewall_Module_Context_Interface, err error) {
2336 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Module_Context_Interface", "getObject", nil, &r.Options, &resp)
2337 return
2338 }
2339
2340 // The SoftLayer_Network_Firewall_Template type contains general information for a SoftLayer network firewall template.
2341 //
2342 // Firewall templates are recommend rule sets for use with SoftLayer Hardware Firewall (Dedicated). These optimized templates are designed to balance security restriction with application availability. The templates given may be altered to provide custom network security, or may be used as-is for basic security. At least one rule set MUST be applied for the firewall to block traffic. Use the [[SoftLayer Network Component Firewall]] service to view current rules. Use the [[SoftLayer Network Firewall Update Request]] service to submit a firewall update request.
2343 type Network_Firewall_Template struct {
2344 Session session.SLSession
2345 Options sl.Options
2346 }
2347
2348 // GetNetworkFirewallTemplateService returns an instance of the Network_Firewall_Template SoftLayer service
2349 func GetNetworkFirewallTemplateService(sess session.SLSession) Network_Firewall_Template {
2350 return Network_Firewall_Template{Session: sess}
2351 }
2352
2353 func (r Network_Firewall_Template) Id(id int) Network_Firewall_Template {
2354 r.Options.Id = &id
2355 return r
2356 }
2357
2358 func (r Network_Firewall_Template) Mask(mask string) Network_Firewall_Template {
2359 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
2360 mask = fmt.Sprintf("mask[%s]", mask)
2361 }
2362
2363 r.Options.Mask = mask
2364 return r
2365 }
2366
2367 func (r Network_Firewall_Template) Filter(filter string) Network_Firewall_Template {
2368 r.Options.Filter = filter
2369 return r
2370 }
2371
2372 func (r Network_Firewall_Template) Limit(limit int) Network_Firewall_Template {
2373 r.Options.Limit = &limit
2374 return r
2375 }
2376
2377 func (r Network_Firewall_Template) Offset(offset int) Network_Firewall_Template {
2378 r.Options.Offset = &offset
2379 return r
2380 }
2381
2382 // Get all available firewall template objects.
2383 //
2384 // ”getAllObjects” returns an array of SoftLayer_Network_Firewall_Template objects upon success.
2385 func (r Network_Firewall_Template) GetAllObjects() (resp []datatypes.Network_Firewall_Template, err error) {
2386 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Template", "getAllObjects", nil, &r.Options, &resp)
2387 return
2388 }
2389
2390 // getObject returns a SoftLayer_Network_Firewall_Template object. You can retrieve all available firewall templates. getAllObjects returns an array of all available SoftLayer_Network_Firewall_Template objects. You can use these templates to generate a [[SoftLayer Network Firewall Update Request]].
2391 //
2392 // @SLDNDocumentation Service See Also SoftLayer_Network_Firewall_Update_Request
2393 func (r Network_Firewall_Template) GetObject() (resp datatypes.Network_Firewall_Template, err error) {
2394 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Template", "getObject", nil, &r.Options, &resp)
2395 return
2396 }
2397
2398 // Retrieve The rule set that belongs to this firewall rules template.
2399 func (r Network_Firewall_Template) GetRules() (resp []datatypes.Network_Firewall_Template_Rule, err error) {
2400 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Template", "getRules", nil, &r.Options, &resp)
2401 return
2402 }
2403
2404 // The SoftLayer_Network_Firewall_Update_Request data type contains information relating to a SoftLayer network firewall update request. Use the [[SoftLayer Network Component Firewall]] service to view current rules. Use the [[SoftLayer Network Firewall Template]] service to pull SoftLayer recommended rule set templates.
2405 type Network_Firewall_Update_Request struct {
2406 Session session.SLSession
2407 Options sl.Options
2408 }
2409
2410 // GetNetworkFirewallUpdateRequestService returns an instance of the Network_Firewall_Update_Request SoftLayer service
2411 func GetNetworkFirewallUpdateRequestService(sess session.SLSession) Network_Firewall_Update_Request {
2412 return Network_Firewall_Update_Request{Session: sess}
2413 }
2414
2415 func (r Network_Firewall_Update_Request) Id(id int) Network_Firewall_Update_Request {
2416 r.Options.Id = &id
2417 return r
2418 }
2419
2420 func (r Network_Firewall_Update_Request) Mask(mask string) Network_Firewall_Update_Request {
2421 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
2422 mask = fmt.Sprintf("mask[%s]", mask)
2423 }
2424
2425 r.Options.Mask = mask
2426 return r
2427 }
2428
2429 func (r Network_Firewall_Update_Request) Filter(filter string) Network_Firewall_Update_Request {
2430 r.Options.Filter = filter
2431 return r
2432 }
2433
2434 func (r Network_Firewall_Update_Request) Limit(limit int) Network_Firewall_Update_Request {
2435 r.Options.Limit = &limit
2436 return r
2437 }
2438
2439 func (r Network_Firewall_Update_Request) Offset(offset int) Network_Firewall_Update_Request {
2440 r.Options.Offset = &offset
2441 return r
2442 }
2443
2444 // Create a new firewall update request. If the SoftLayer_Network_Firewall_Update_Request object passed to this function has no rule, the firewall be set to bypass state and all the existing firewall rule(s) will be deleted.
2445 //
2446 // ”createObject” returns a Boolean ”true” on successful object creation or ”false” if your firewall update request was unable to be created.
2447 func (r Network_Firewall_Update_Request) CreateObject(templateObject *datatypes.Network_Firewall_Update_Request) (resp datatypes.Network_Firewall_Update_Request, err error) {
2448 params := []interface{}{
2449 templateObject,
2450 }
2451 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Update_Request", "createObject", params, &r.Options, &resp)
2452 return
2453 }
2454
2455 // Retrieve The user that authorized this firewall update request.
2456 func (r Network_Firewall_Update_Request) GetAuthorizingUser() (resp datatypes.User_Interface, err error) {
2457 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Update_Request", "getAuthorizingUser", nil, &r.Options, &resp)
2458 return
2459 }
2460
2461 // Get the possible attribute values for a firewall update request rule. These are the valid values which may be submitted as rule parameters for a firewall update request.
2462 //
2463 // ”getFirewallUpdateRequestRuleAttributes” returns a SoftLayer_Container_Utility_Network_Firewall_Rule_Attribute object upon success.
2464 func (r Network_Firewall_Update_Request) GetFirewallUpdateRequestRuleAttributes() (resp datatypes.Container_Utility_Network_Firewall_Rule_Attribute, err error) {
2465 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Update_Request", "getFirewallUpdateRequestRuleAttributes", nil, &r.Options, &resp)
2466 return
2467 }
2468
2469 // Retrieve The downstream virtual server that the rule set will be applied to.
2470 func (r Network_Firewall_Update_Request) GetGuest() (resp datatypes.Virtual_Guest, err error) {
2471 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Update_Request", "getGuest", nil, &r.Options, &resp)
2472 return
2473 }
2474
2475 // Retrieve The downstream server that the rule set will be applied to.
2476 func (r Network_Firewall_Update_Request) GetHardware() (resp datatypes.Hardware, err error) {
2477 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Update_Request", "getHardware", nil, &r.Options, &resp)
2478 return
2479 }
2480
2481 // Retrieve The network component firewall that the rule set will be applied to.
2482 func (r Network_Firewall_Update_Request) GetNetworkComponentFirewall() (resp datatypes.Network_Component_Firewall, err error) {
2483 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Update_Request", "getNetworkComponentFirewall", nil, &r.Options, &resp)
2484 return
2485 }
2486
2487 // ”getObject” returns a SoftLayer_Network_Firewall_Update_Request object. You can only get historical objects for servers attached to your account that have a network firewall enabled. ”createObject” inserts a new SoftLayer_Network_Firewall_Update_Request object. You can only insert requests for servers attached to your account that have a network firewall enabled. ”getFirewallUpdateRequestRuleAttributes” Get the possible attribute values for a firewall update request rule.
2488 func (r Network_Firewall_Update_Request) GetObject() (resp datatypes.Network_Firewall_Update_Request, err error) {
2489 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Update_Request", "getObject", nil, &r.Options, &resp)
2490 return
2491 }
2492
2493 // Retrieve The group of rules contained within the update request.
2494 func (r Network_Firewall_Update_Request) GetRules() (resp []datatypes.Network_Firewall_Update_Request_Rule, err error) {
2495 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Update_Request", "getRules", nil, &r.Options, &resp)
2496 return
2497 }
2498
2499 // no documentation yet
2500 func (r Network_Firewall_Update_Request) UpdateRuleNote(fwRule *datatypes.Network_Component_Firewall_Rule, note *string) (resp bool, err error) {
2501 params := []interface{}{
2502 fwRule,
2503 note,
2504 }
2505 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Update_Request", "updateRuleNote", params, &r.Options, &resp)
2506 return
2507 }
2508
2509 // The SoftLayer_Network_Firewall_Update_Request_Rule type contains information relating to a SoftLayer network firewall update request rule. This rule is a member of a [[SoftLayer Network Firewall Update Request]]. Use the [[SoftLayer Network Component Firewall]] service to view current rules. Use the [[SoftLayer Network Firewall Template]] service to pull SoftLayer recommended rule set templates.
2510 type Network_Firewall_Update_Request_Rule struct {
2511 Session session.SLSession
2512 Options sl.Options
2513 }
2514
2515 // GetNetworkFirewallUpdateRequestRuleService returns an instance of the Network_Firewall_Update_Request_Rule SoftLayer service
2516 func GetNetworkFirewallUpdateRequestRuleService(sess session.SLSession) Network_Firewall_Update_Request_Rule {
2517 return Network_Firewall_Update_Request_Rule{Session: sess}
2518 }
2519
2520 func (r Network_Firewall_Update_Request_Rule) Id(id int) Network_Firewall_Update_Request_Rule {
2521 r.Options.Id = &id
2522 return r
2523 }
2524
2525 func (r Network_Firewall_Update_Request_Rule) Mask(mask string) Network_Firewall_Update_Request_Rule {
2526 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
2527 mask = fmt.Sprintf("mask[%s]", mask)
2528 }
2529
2530 r.Options.Mask = mask
2531 return r
2532 }
2533
2534 func (r Network_Firewall_Update_Request_Rule) Filter(filter string) Network_Firewall_Update_Request_Rule {
2535 r.Options.Filter = filter
2536 return r
2537 }
2538
2539 func (r Network_Firewall_Update_Request_Rule) Limit(limit int) Network_Firewall_Update_Request_Rule {
2540 r.Options.Limit = &limit
2541 return r
2542 }
2543
2544 func (r Network_Firewall_Update_Request_Rule) Offset(offset int) Network_Firewall_Update_Request_Rule {
2545 r.Options.Offset = &offset
2546 return r
2547 }
2548
2549 // Create a new firewall update request. The SoftLayer_Network_Firewall_Update_Request object passed to this function must have at least one rule.
2550 //
2551 // ”createObject” returns a Boolean ”true” on successful object creation or ”false” if your firewall update request was unable to be created..
2552 func (r Network_Firewall_Update_Request_Rule) CreateObject(templateObject *datatypes.Network_Firewall_Update_Request_Rule) (resp datatypes.Network_Firewall_Update_Request_Rule, err error) {
2553 params := []interface{}{
2554 templateObject,
2555 }
2556 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Update_Request_Rule", "createObject", params, &r.Options, &resp)
2557 return
2558 }
2559
2560 // Retrieve The update request that this rule belongs to.
2561 func (r Network_Firewall_Update_Request_Rule) GetFirewallUpdateRequest() (resp datatypes.Network_Firewall_Update_Request, err error) {
2562 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Update_Request_Rule", "getFirewallUpdateRequest", nil, &r.Options, &resp)
2563 return
2564 }
2565
2566 // getObject returns a SoftLayer_Network_Firewall_Update_Request_Rule object. You can only get historical objects for servers attached to your account that have a network firewall enabled. createObject inserts a new SoftLayer_Network_Firewall_Update_Request_Rule object. Use the SoftLayer_Network_Firewall_Update_Request to create groups of rules for an update request.
2567 func (r Network_Firewall_Update_Request_Rule) GetObject() (resp datatypes.Network_Firewall_Update_Request_Rule, err error) {
2568 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Update_Request_Rule", "getObject", nil, &r.Options, &resp)
2569 return
2570 }
2571
2572 // Validate the supplied firewall request rule against the object it will apply to. For IPv4 rules, pass in an instance of SoftLayer_Network_Firewall_Update_Request_Rule. for IPv6 rules, pass in an instance of SoftLayer_Network_Firewall_Update_Request_Rule_Version6. The ID of the applied to object can either be applyToComponentId (an ID of a SoftLayer_Network_Component_Firewall) or applyToAclId (an ID of a SoftLayer_Network_Firewall_Module_Context_Interface_AccessControlList). One, and only one, of applyToComponentId and applyToAclId can be specified.
2573 //
2574 // If validation is successful, nothing is returned. If validation is unsuccessful, an exception is thrown explaining the nature of the validation error.
2575 func (r Network_Firewall_Update_Request_Rule) ValidateRule(rule *datatypes.Network_Firewall_Update_Request_Rule, applyToComponentId *int, applyToAclId *int) (err error) {
2576 var resp datatypes.Void
2577 params := []interface{}{
2578 rule,
2579 applyToComponentId,
2580 applyToAclId,
2581 }
2582 err = r.Session.DoRequest("SoftLayer_Network_Firewall_Update_Request_Rule", "validateRule", params, &r.Options, &resp)
2583 return
2584 }
2585
2586 // no documentation yet
2587 type Network_Gateway struct {
2588 Session session.SLSession
2589 Options sl.Options
2590 }
2591
2592 // GetNetworkGatewayService returns an instance of the Network_Gateway SoftLayer service
2593 func GetNetworkGatewayService(sess session.SLSession) Network_Gateway {
2594 return Network_Gateway{Session: sess}
2595 }
2596
2597 func (r Network_Gateway) Id(id int) Network_Gateway {
2598 r.Options.Id = &id
2599 return r
2600 }
2601
2602 func (r Network_Gateway) Mask(mask string) Network_Gateway {
2603 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
2604 mask = fmt.Sprintf("mask[%s]", mask)
2605 }
2606
2607 r.Options.Mask = mask
2608 return r
2609 }
2610
2611 func (r Network_Gateway) Filter(filter string) Network_Gateway {
2612 r.Options.Filter = filter
2613 return r
2614 }
2615
2616 func (r Network_Gateway) Limit(limit int) Network_Gateway {
2617 r.Options.Limit = &limit
2618 return r
2619 }
2620
2621 func (r Network_Gateway) Offset(offset int) Network_Gateway {
2622 r.Options.Offset = &offset
2623 return r
2624 }
2625
2626 // Start the asynchronous process to bypass all VLANs. Any VLANs that are already bypassed will be ignored. The status field can be checked for progress.
2627 func (r Network_Gateway) BypassAllVlans() (err error) {
2628 var resp datatypes.Void
2629 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "bypassAllVlans", nil, &r.Options, &resp)
2630 return
2631 }
2632
2633 // Start the asynchronous process to bypass the provided VLANs. The VLANs must already be attached. Any VLANs that are already bypassed will be ignored. The status field can be checked for progress.
2634 func (r Network_Gateway) BypassVlans(vlans []datatypes.Network_Gateway_Vlan) (err error) {
2635 var resp datatypes.Void
2636 params := []interface{}{
2637 vlans,
2638 }
2639 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "bypassVlans", params, &r.Options, &resp)
2640 return
2641 }
2642
2643 // Purpose is to rebuild the target Gateway cluster with the specified OS price id. Method will remove the current OS and apply the default configuration settings. This will result in an extended OUTAGE!! Any custom configuration settings must be re-applied after the forced rebuild is completed. This is a DESTRUCTIVE action, use with caution.
2644 func (r Network_Gateway) ForceRebuildCluster(osPriceId *int) (resp bool, err error) {
2645 params := []interface{}{
2646 osPriceId,
2647 }
2648 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "forceRebuildCluster", params, &r.Options, &resp)
2649 return
2650 }
2651
2652 // Retrieve The account for this gateway.
2653 func (r Network_Gateway) GetAccount() (resp datatypes.Account, err error) {
2654 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getAccount", nil, &r.Options, &resp)
2655 return
2656 }
2657
2658 // Used to get a list of OS prices (ids) which are allowed for the Gateway.
2659 func (r Network_Gateway) GetAllowedOsPriceIds(memberId *int) (resp []int, err error) {
2660 params := []interface{}{
2661 memberId,
2662 }
2663 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getAllowedOsPriceIds", params, &r.Options, &resp)
2664 return
2665 }
2666
2667 // Returns the Gbps capacity of the gateway object
2668 func (r Network_Gateway) GetCapacity() (resp string, err error) {
2669 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getCapacity", nil, &r.Options, &resp)
2670 return
2671 }
2672
2673 // Retrieve All VLANs trunked to this gateway.
2674 func (r Network_Gateway) GetInsideVlans() (resp []datatypes.Network_Gateway_Vlan, err error) {
2675 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getInsideVlans", nil, &r.Options, &resp)
2676 return
2677 }
2678
2679 // Returns manufacturer name for a given gateway object.
2680 func (r Network_Gateway) GetManufacturer(checkSameOs *bool, checkOsReloadMember *bool) (resp string, err error) {
2681 params := []interface{}{
2682 checkSameOs,
2683 checkOsReloadMember,
2684 }
2685 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getManufacturer", params, &r.Options, &resp)
2686 return
2687 }
2688
2689 // Returns true if no mismatch is found, gateway is not Juniper vSRX or SA gateway
2690 func (r Network_Gateway) GetMemberGatewayImagesMatch() (resp bool, err error) {
2691 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getMemberGatewayImagesMatch", nil, &r.Options, &resp)
2692 return
2693 }
2694
2695 // Retrieve The members for this gateway.
2696 func (r Network_Gateway) GetMembers() (resp []datatypes.Network_Gateway_Member, err error) {
2697 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getMembers", nil, &r.Options, &resp)
2698 return
2699 }
2700
2701 // Retrieve The firewall associated with this gateway, if any.
2702 func (r Network_Gateway) GetNetworkFirewall() (resp datatypes.Network_Vlan_Firewall, err error) {
2703 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getNetworkFirewall", nil, &r.Options, &resp)
2704 return
2705 }
2706
2707 // Retrieve Whether or not there is a firewall associated with this gateway.
2708 func (r Network_Gateway) GetNetworkFirewallFlag() (resp bool, err error) {
2709 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getNetworkFirewallFlag", nil, &r.Options, &resp)
2710 return
2711 }
2712
2713 // no documentation yet
2714 func (r Network_Gateway) GetObject() (resp datatypes.Network_Gateway, err error) {
2715 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getObject", nil, &r.Options, &resp)
2716 return
2717 }
2718
2719 // Get all VLANs that can become inside VLANs on this gateway. This means the VLAN must not already be an inside VLAN, on the same router as this gateway, not a gateway transit VLAN, and not firewalled.
2720 func (r Network_Gateway) GetPossibleInsideVlans() (resp []datatypes.Network_Vlan, err error) {
2721 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getPossibleInsideVlans", nil, &r.Options, &resp)
2722 return
2723 }
2724
2725 // Retrieve The private gateway IP address.
2726 func (r Network_Gateway) GetPrivateIpAddress() (resp datatypes.Network_Subnet_IpAddress, err error) {
2727 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getPrivateIpAddress", nil, &r.Options, &resp)
2728 return
2729 }
2730
2731 // Retrieve The private VLAN for accessing this gateway.
2732 func (r Network_Gateway) GetPrivateVlan() (resp datatypes.Network_Vlan, err error) {
2733 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getPrivateVlan", nil, &r.Options, &resp)
2734 return
2735 }
2736
2737 // Retrieve The public gateway IP address.
2738 func (r Network_Gateway) GetPublicIpAddress() (resp datatypes.Network_Subnet_IpAddress, err error) {
2739 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getPublicIpAddress", nil, &r.Options, &resp)
2740 return
2741 }
2742
2743 // Retrieve The public gateway IPv6 address.
2744 func (r Network_Gateway) GetPublicIpv6Address() (resp datatypes.Network_Subnet_IpAddress, err error) {
2745 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getPublicIpv6Address", nil, &r.Options, &resp)
2746 return
2747 }
2748
2749 // Retrieve The public VLAN for accessing this gateway.
2750 func (r Network_Gateway) GetPublicVlan() (resp datatypes.Network_Vlan, err error) {
2751 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getPublicVlan", nil, &r.Options, &resp)
2752 return
2753 }
2754
2755 // Returns the following statuses SUPPORTED - rollback is supported and perform automatically UNSUPPORTED - rollback is not supported MANUAL - rollback can be performed but
2756 func (r Network_Gateway) GetRollbackSupport() (resp string, err error) {
2757 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getRollbackSupport", nil, &r.Options, &resp)
2758 return
2759 }
2760
2761 // Retrieve The current status of the gateway.
2762 func (r Network_Gateway) GetStatus() (resp datatypes.Network_Gateway_Status, err error) {
2763 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getStatus", nil, &r.Options, &resp)
2764 return
2765 }
2766
2767 // Retrieve a list of upgradable items available for network gateways.
2768 func (r Network_Gateway) GetUpgradeItemPrices() (resp []datatypes.Product_Item_Price, err error) {
2769 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "getUpgradeItemPrices", nil, &r.Options, &resp)
2770 return
2771 }
2772
2773 // no documentation yet
2774 func (r Network_Gateway) IsLicenseServerAllowed(licenseKeyName *string) (resp bool, err error) {
2775 params := []interface{}{
2776 licenseKeyName,
2777 }
2778 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "isLicenseServerAllowed", params, &r.Options, &resp)
2779 return
2780 }
2781
2782 // Used to manage gateway require and add on licenses. If license request is valid for the gateway type a Gateway License Manage process will be created if licenses need to be adjusted on the gateway.
2783 //
2784 // requiredItemKeyname - Item Key Name of the required license to be used on the gateway addOnLicenses - Json string containing an Add On license Item Key Name and requested total quantity to exist on each gateway member. Item Key Name must be associated with an Add On license product item and Item Key Name can only exist once in the json structure.
2785 //
2786 // Example : {"ADD_ON_ITEM_KEYNAME_TYPE1":3,"ADD_ON_ITEM_KEYNAME_TYPE2":4}
2787 //
2788 // Note, the quantity is not the requested change but total licences. For example, if current licenses for an Add On e.g. Remote VPN is 3 and the request is to add 1 more license then the quantity would be 4. If the request was to remove 1 license then the quantity would be 2.
2789 func (r Network_Gateway) ManageLicenses(requiredItemKeyName *string, addOnLicenses *string) (resp bool, err error) {
2790 params := []interface{}{
2791 requiredItemKeyName,
2792 addOnLicenses,
2793 }
2794 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "manageLicenses", params, &r.Options, &resp)
2795 return
2796 }
2797
2798 // Rebuild a virtual gateway with HA cluster by destroying existing member gateway os and installing new os on both gateway members, then creating HA cluster between 2 members. This is a destructive process which will remove existing configuration and stop all gateway capabilities. vSRX will need to be re-configured after this operation.
2799 func (r Network_Gateway) RebuildHACluster() (resp bool, err error) {
2800 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "rebuildHACluster", nil, &r.Options, &resp)
2801 return
2802 }
2803
2804 // Rebuild a vSRX gateway with HA cluster by destroying existing vSRX and installing new vSRX on both gateway servers, then creating HA cluster between 2 vSRX. This is a destructive process which will remove existing vSRX configuration and stop all gateway capabilities. vSRX will need to be re-configured after this operation.
2805 func (r Network_Gateway) RebuildvSRXHACluster() (resp bool, err error) {
2806 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "rebuildvSRXHACluster", nil, &r.Options, &resp)
2807 return
2808 }
2809
2810 // Used to refresh the all licenses (Required and add ons) for Virtual gateways. License precheck must be ready.
2811 func (r Network_Gateway) RefreshGatewayLicense() (resp bool, err error) {
2812 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "refreshGatewayLicense", nil, &r.Options, &resp)
2813 return
2814 }
2815
2816 // Edit the name of this gateway.
2817 func (r Network_Gateway) Rename(name *string) (resp bool, err error) {
2818 params := []interface{}{
2819 name,
2820 }
2821 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "rename", params, &r.Options, &resp)
2822 return
2823 }
2824
2825 // Returns true if password change is successful, false if not successful
2826 func (r Network_Gateway) SetGatewayPassword(password *string) (resp bool, err error) {
2827 params := []interface{}{
2828 password,
2829 }
2830 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "setGatewayPassword", params, &r.Options, &resp)
2831 return
2832 }
2833
2834 // Start the asynchronous process to unbypass all VLANs. Any VLANs that are already unbypassed will be ignored. The status field can be checked for progress.
2835 func (r Network_Gateway) UnbypassAllVlans() (err error) {
2836 var resp datatypes.Void
2837 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "unbypassAllVlans", nil, &r.Options, &resp)
2838 return
2839 }
2840
2841 // Start the asynchronous process to unbypass the provided VLANs. The VLANs must already be attached. Any VLANs that are already unbypassed will be ignored. The status field can be checked for progress.
2842 func (r Network_Gateway) UnbypassVlans(vlans []datatypes.Network_Gateway_Vlan) (err error) {
2843 var resp datatypes.Void
2844 params := []interface{}{
2845 vlans,
2846 }
2847 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "unbypassVlans", params, &r.Options, &resp)
2848 return
2849 }
2850
2851 // The method updates the Gateway password for the provided username. It does not perform any synchronization with the Gateway to update the credentials. The method only updates the IMS db with the username / password record for the Gateway.
2852 //
2853 // The 'username' and 'password' in the record template are required. 'username' must not be blank and must exist in the Gateway password records 'password' must not be blank
2854 //
2855 // Returns true if password change is successful, false if not successful
2856 func (r Network_Gateway) UpdateGatewayUserPassword(record *datatypes.Network_Gateway_Member_Passwords) (resp bool, err error) {
2857 params := []interface{}{
2858 record,
2859 }
2860 err = r.Session.DoRequest("SoftLayer_Network_Gateway", "updateGatewayUserPassword", params, &r.Options, &resp)
2861 return
2862 }
2863
2864 // no documentation yet
2865 type Network_Gateway_Member struct {
2866 Session session.SLSession
2867 Options sl.Options
2868 }
2869
2870 // GetNetworkGatewayMemberService returns an instance of the Network_Gateway_Member SoftLayer service
2871 func GetNetworkGatewayMemberService(sess session.SLSession) Network_Gateway_Member {
2872 return Network_Gateway_Member{Session: sess}
2873 }
2874
2875 func (r Network_Gateway_Member) Id(id int) Network_Gateway_Member {
2876 r.Options.Id = &id
2877 return r
2878 }
2879
2880 func (r Network_Gateway_Member) Mask(mask string) Network_Gateway_Member {
2881 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
2882 mask = fmt.Sprintf("mask[%s]", mask)
2883 }
2884
2885 r.Options.Mask = mask
2886 return r
2887 }
2888
2889 func (r Network_Gateway_Member) Filter(filter string) Network_Gateway_Member {
2890 r.Options.Filter = filter
2891 return r
2892 }
2893
2894 func (r Network_Gateway_Member) Limit(limit int) Network_Gateway_Member {
2895 r.Options.Limit = &limit
2896 return r
2897 }
2898
2899 func (r Network_Gateway_Member) Offset(offset int) Network_Gateway_Member {
2900 r.Options.Offset = &offset
2901 return r
2902 }
2903
2904 // Create a new hardware member on the gateway. This also asynchronously sets up the network for this member. Progress of this process can be monitored via the gateway status. All members created with this object must have no VLANs attached.
2905 func (r Network_Gateway_Member) CreateObject(templateObject *datatypes.Network_Gateway_Member) (resp datatypes.Network_Gateway_Member, err error) {
2906 params := []interface{}{
2907 templateObject,
2908 }
2909 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Member", "createObject", params, &r.Options, &resp)
2910 return
2911 }
2912
2913 // Create multiple new hardware members on the gateway. This also asynchronously sets up the network for the members. Progress of this process can be monitored via the gateway status. All members created with this object must have no VLANs attached.
2914 func (r Network_Gateway_Member) CreateObjects(templateObjects []datatypes.Network_Gateway_Member) (resp []datatypes.Network_Gateway_Member, err error) {
2915 params := []interface{}{
2916 templateObjects,
2917 }
2918 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Member", "createObjects", params, &r.Options, &resp)
2919 return
2920 }
2921
2922 // Edit this member, only manufacturer and version can be changed
2923 func (r Network_Gateway_Member) EditObject(templateObject *datatypes.Network_Gateway_Member) (resp bool, err error) {
2924 params := []interface{}{
2925 templateObject,
2926 }
2927 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Member", "editObject", params, &r.Options, &resp)
2928 return
2929 }
2930
2931 // Retrieve The attributes for this member.
2932 func (r Network_Gateway_Member) GetAttributes() (resp datatypes.Network_Gateway_Member_Attribute, err error) {
2933 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Member", "getAttributes", nil, &r.Options, &resp)
2934 return
2935 }
2936
2937 // Retrieve The gateway software description for the member.
2938 func (r Network_Gateway_Member) GetGatewaySoftwareDescription() (resp datatypes.Software_Description, err error) {
2939 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Member", "getGatewaySoftwareDescription", nil, &r.Options, &resp)
2940 return
2941 }
2942
2943 // Retrieve The device for this member.
2944 func (r Network_Gateway_Member) GetHardware() (resp datatypes.Hardware, err error) {
2945 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Member", "getHardware", nil, &r.Options, &resp)
2946 return
2947 }
2948
2949 // Retrieve The gateway licenses for this member.
2950 func (r Network_Gateway_Member) GetLicenses() (resp []datatypes.Network_Gateway_Member_Licenses, err error) {
2951 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Member", "getLicenses", nil, &r.Options, &resp)
2952 return
2953 }
2954
2955 // Retrieve The gateway this member belongs to.
2956 func (r Network_Gateway_Member) GetNetworkGateway() (resp datatypes.Network_Gateway, err error) {
2957 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Member", "getNetworkGateway", nil, &r.Options, &resp)
2958 return
2959 }
2960
2961 // no documentation yet
2962 func (r Network_Gateway_Member) GetObject() (resp datatypes.Network_Gateway_Member, err error) {
2963 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Member", "getObject", nil, &r.Options, &resp)
2964 return
2965 }
2966
2967 // Retrieve The gateway passwords for this member.
2968 func (r Network_Gateway_Member) GetPasswords() (resp []datatypes.Network_Gateway_Member_Passwords, err error) {
2969 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Member", "getPasswords", nil, &r.Options, &resp)
2970 return
2971 }
2972
2973 // Retrieve The public gateway IP address.
2974 func (r Network_Gateway_Member) GetPublicIpAddress() (resp datatypes.Network_Subnet_IpAddress, err error) {
2975 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Member", "getPublicIpAddress", nil, &r.Options, &resp)
2976 return
2977 }
2978
2979 // no documentation yet
2980 type Network_Gateway_Member_Attribute struct {
2981 Session session.SLSession
2982 Options sl.Options
2983 }
2984
2985 // GetNetworkGatewayMemberAttributeService returns an instance of the Network_Gateway_Member_Attribute SoftLayer service
2986 func GetNetworkGatewayMemberAttributeService(sess session.SLSession) Network_Gateway_Member_Attribute {
2987 return Network_Gateway_Member_Attribute{Session: sess}
2988 }
2989
2990 func (r Network_Gateway_Member_Attribute) Id(id int) Network_Gateway_Member_Attribute {
2991 r.Options.Id = &id
2992 return r
2993 }
2994
2995 func (r Network_Gateway_Member_Attribute) Mask(mask string) Network_Gateway_Member_Attribute {
2996 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
2997 mask = fmt.Sprintf("mask[%s]", mask)
2998 }
2999
3000 r.Options.Mask = mask
3001 return r
3002 }
3003
3004 func (r Network_Gateway_Member_Attribute) Filter(filter string) Network_Gateway_Member_Attribute {
3005 r.Options.Filter = filter
3006 return r
3007 }
3008
3009 func (r Network_Gateway_Member_Attribute) Limit(limit int) Network_Gateway_Member_Attribute {
3010 r.Options.Limit = &limit
3011 return r
3012 }
3013
3014 func (r Network_Gateway_Member_Attribute) Offset(offset int) Network_Gateway_Member_Attribute {
3015 r.Options.Offset = &offset
3016 return r
3017 }
3018
3019 // Retrieve The gateway member has these attributes.
3020 func (r Network_Gateway_Member_Attribute) GetGatewayMember() (resp datatypes.Network_Gateway_Member, err error) {
3021 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Member_Attribute", "getGatewayMember", nil, &r.Options, &resp)
3022 return
3023 }
3024
3025 // no documentation yet
3026 func (r Network_Gateway_Member_Attribute) GetObject() (resp datatypes.Network_Gateway_Member_Attribute, err error) {
3027 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Member_Attribute", "getObject", nil, &r.Options, &resp)
3028 return
3029 }
3030
3031 // no documentation yet
3032 type Network_Gateway_Precheck struct {
3033 Session session.SLSession
3034 Options sl.Options
3035 }
3036
3037 // GetNetworkGatewayPrecheckService returns an instance of the Network_Gateway_Precheck SoftLayer service
3038 func GetNetworkGatewayPrecheckService(sess session.SLSession) Network_Gateway_Precheck {
3039 return Network_Gateway_Precheck{Session: sess}
3040 }
3041
3042 func (r Network_Gateway_Precheck) Id(id int) Network_Gateway_Precheck {
3043 r.Options.Id = &id
3044 return r
3045 }
3046
3047 func (r Network_Gateway_Precheck) Mask(mask string) Network_Gateway_Precheck {
3048 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
3049 mask = fmt.Sprintf("mask[%s]", mask)
3050 }
3051
3052 r.Options.Mask = mask
3053 return r
3054 }
3055
3056 func (r Network_Gateway_Precheck) Filter(filter string) Network_Gateway_Precheck {
3057 r.Options.Filter = filter
3058 return r
3059 }
3060
3061 func (r Network_Gateway_Precheck) Limit(limit int) Network_Gateway_Precheck {
3062 r.Options.Limit = &limit
3063 return r
3064 }
3065
3066 func (r Network_Gateway_Precheck) Offset(offset int) Network_Gateway_Precheck {
3067 r.Options.Offset = &offset
3068 return r
3069 }
3070
3071 // no documentation yet
3072 func (r Network_Gateway_Precheck) GetObject() (resp datatypes.Network_Gateway_Precheck, err error) {
3073 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Precheck", "getObject", nil, &r.Options, &resp)
3074 return
3075 }
3076
3077 // Get the precheck status for all Virtual (Juniper, Fortigate vFSA) Gateway Action categories which require a readiness check before executing. Reference cloud.ibm.com documentation for more details.
3078 //
3079 // Possible precheck readiness values include:
3080 //
3081 // Ready (0): The member or Gateway category is ready. The only state that will be allowed to execute the Action. Not Ready (1): The member or Gateway category is not ready. This could occur because of several reasons. Either a precheck error occur, or the precheck has not run within the precheck timeout window. Check the returnCode for details on the specific error. Reference the cloud.ibm.com documentation for recovery details. Running (2): The precheck is currently running with no errors. Incomplete (3): The other member in the Gateway failed, therefore the current member could not complete it's precheck. Unsupported (4): The category is unsupported for the given member or Gateway. Expired (5) : The precheck record has expired so will need to be run again. Unchecked (6) : The precheck for the category has never been run. Current (7) : The gateway state is current so running precheck is not required. This commonly relates to version upgrade if gateway is in most update version.
3082 //
3083 // Return Values: Array of objects
3084 //
3085 // Object Definition:
3086 //
3087 // category : String : The precheck category which corresponds to one or more executeable actions.
3088 //
3089 // Current categories include: upgrade_precheck : Required for major and minor upgrade version actions. license_precheck : Required for license upgrade and downgrade actions. reload_precheck : Required for OS Reload action. rollback_precheck : Optional and related to upgrade_precheck. Only returned if getRollbackPrecheck is provided and set to True (1).
3090 //
3091 // memberId : Integer : The softlayer member id. memberReadinessValue : String : The precheck readiness state for the member. See possible readiness values above. gatewayReadinessValue : String : The precheck readiness state for the gateway : See possible readiness values above. returnCode : Integer : The return code. 0 if no error. Reference cloud.ibm.com documentation for details.
3092 func (r Network_Gateway_Precheck) GetPrecheckStatus(gatewayId *int, getRollbackPrecheck *bool) (resp []datatypes.Network_Gateway_Precheck, err error) {
3093 params := []interface{}{
3094 gatewayId,
3095 getRollbackPrecheck,
3096 }
3097 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Precheck", "getPrecheckStatus", params, &r.Options, &resp)
3098 return
3099 }
3100
3101 // Used to create a License Management Network Gateway Precheck transaction.
3102 func (r Network_Gateway_Precheck) LicenseManagementPrecheck(gatewayId *int) (resp bool, err error) {
3103 params := []interface{}{
3104 gatewayId,
3105 }
3106 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Precheck", "licenseManagementPrecheck", params, &r.Options, &resp)
3107 return
3108 }
3109
3110 // Create an OS Reload Network Gateway Precheck transaction.
3111 func (r Network_Gateway_Precheck) OsReloadPrecheck(gatewayId *int) (resp bool, err error) {
3112 params := []interface{}{
3113 gatewayId,
3114 }
3115 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Precheck", "osReloadPrecheck", params, &r.Options, &resp)
3116 return
3117 }
3118
3119 // Create a Upgrade Network Gateway Precheck transaction.
3120 func (r Network_Gateway_Precheck) UpgradePrecheck(gatewayId *int) (resp bool, err error) {
3121 params := []interface{}{
3122 gatewayId,
3123 }
3124 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Precheck", "upgradePrecheck", params, &r.Options, &resp)
3125 return
3126 }
3127
3128 // no documentation yet
3129 type Network_Gateway_Status struct {
3130 Session session.SLSession
3131 Options sl.Options
3132 }
3133
3134 // GetNetworkGatewayStatusService returns an instance of the Network_Gateway_Status SoftLayer service
3135 func GetNetworkGatewayStatusService(sess session.SLSession) Network_Gateway_Status {
3136 return Network_Gateway_Status{Session: sess}
3137 }
3138
3139 func (r Network_Gateway_Status) Id(id int) Network_Gateway_Status {
3140 r.Options.Id = &id
3141 return r
3142 }
3143
3144 func (r Network_Gateway_Status) Mask(mask string) Network_Gateway_Status {
3145 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
3146 mask = fmt.Sprintf("mask[%s]", mask)
3147 }
3148
3149 r.Options.Mask = mask
3150 return r
3151 }
3152
3153 func (r Network_Gateway_Status) Filter(filter string) Network_Gateway_Status {
3154 r.Options.Filter = filter
3155 return r
3156 }
3157
3158 func (r Network_Gateway_Status) Limit(limit int) Network_Gateway_Status {
3159 r.Options.Limit = &limit
3160 return r
3161 }
3162
3163 func (r Network_Gateway_Status) Offset(offset int) Network_Gateway_Status {
3164 r.Options.Offset = &offset
3165 return r
3166 }
3167
3168 // no documentation yet
3169 func (r Network_Gateway_Status) GetObject() (resp datatypes.Network_Gateway_Status, err error) {
3170 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Status", "getObject", nil, &r.Options, &resp)
3171 return
3172 }
3173
3174 // no documentation yet
3175 type Network_Gateway_VersionUpgrade struct {
3176 Session session.SLSession
3177 Options sl.Options
3178 }
3179
3180 // GetNetworkGatewayVersionUpgradeService returns an instance of the Network_Gateway_VersionUpgrade SoftLayer service
3181 func GetNetworkGatewayVersionUpgradeService(sess session.SLSession) Network_Gateway_VersionUpgrade {
3182 return Network_Gateway_VersionUpgrade{Session: sess}
3183 }
3184
3185 func (r Network_Gateway_VersionUpgrade) Id(id int) Network_Gateway_VersionUpgrade {
3186 r.Options.Id = &id
3187 return r
3188 }
3189
3190 func (r Network_Gateway_VersionUpgrade) Mask(mask string) Network_Gateway_VersionUpgrade {
3191 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
3192 mask = fmt.Sprintf("mask[%s]", mask)
3193 }
3194
3195 r.Options.Mask = mask
3196 return r
3197 }
3198
3199 func (r Network_Gateway_VersionUpgrade) Filter(filter string) Network_Gateway_VersionUpgrade {
3200 r.Options.Filter = filter
3201 return r
3202 }
3203
3204 func (r Network_Gateway_VersionUpgrade) Limit(limit int) Network_Gateway_VersionUpgrade {
3205 r.Options.Limit = &limit
3206 return r
3207 }
3208
3209 func (r Network_Gateway_VersionUpgrade) Offset(offset int) Network_Gateway_VersionUpgrade {
3210 r.Options.Offset = &offset
3211 return r
3212 }
3213
3214 // no documentation yet
3215 func (r Network_Gateway_VersionUpgrade) GetAllUpgradesByGatewayId(gatewayId *int) (resp []datatypes.Network_Gateway_VersionUpgrade, err error) {
3216 params := []interface{}{
3217 gatewayId,
3218 }
3219 err = r.Session.DoRequest("SoftLayer_Network_Gateway_VersionUpgrade", "getAllUpgradesByGatewayId", params, &r.Options, &resp)
3220 return
3221 }
3222
3223 func (r Network_Gateway_VersionUpgrade) GetGwOrdersAllowedLicenses(accountId *int, manufacturer *string) (resp string, err error) {
3224 params := []interface{}{
3225 accountId,
3226 manufacturer,
3227 }
3228 err = r.Session.DoRequest("SoftLayer_Network_Gateway_VersionUpgrade", "getGwOrdersAllowedLicenses", params, &r.Options, &resp)
3229 return
3230 }
3231
3232 // Used to get a list per package of prices ids for allowed vSRX or vFSA OS-es for new orders.
3233 func (r Network_Gateway_VersionUpgrade) GetGwOrdersAllowedOS(accountId *int, manufacturer *string) (resp []datatypes.Product_Package_Item_Prices, err error) {
3234 params := []interface{}{
3235 accountId,
3236 manufacturer,
3237 }
3238 err = r.Session.DoRequest("SoftLayer_Network_Gateway_VersionUpgrade", "getGwOrdersAllowedOS", params, &r.Options, &resp)
3239 return
3240 }
3241
3242 // no documentation yet
3243 func (r Network_Gateway_VersionUpgrade) GetObject() (resp datatypes.Network_Gateway_VersionUpgrade, err error) {
3244 err = r.Session.DoRequest("SoftLayer_Network_Gateway_VersionUpgrade", "getObject", nil, &r.Options, &resp)
3245 return
3246 }
3247
3248 // no documentation yet
3249 func (r Network_Gateway_VersionUpgrade) ValidateVersionChange(gatewayId *int, versionUpgradeId *int) (resp bool, err error) {
3250 params := []interface{}{
3251 gatewayId,
3252 versionUpgradeId,
3253 }
3254 err = r.Session.DoRequest("SoftLayer_Network_Gateway_VersionUpgrade", "validateVersionChange", params, &r.Options, &resp)
3255 return
3256 }
3257
3258 // no documentation yet
3259 type Network_Gateway_Vlan struct {
3260 Session session.SLSession
3261 Options sl.Options
3262 }
3263
3264 // GetNetworkGatewayVlanService returns an instance of the Network_Gateway_Vlan SoftLayer service
3265 func GetNetworkGatewayVlanService(sess session.SLSession) Network_Gateway_Vlan {
3266 return Network_Gateway_Vlan{Session: sess}
3267 }
3268
3269 func (r Network_Gateway_Vlan) Id(id int) Network_Gateway_Vlan {
3270 r.Options.Id = &id
3271 return r
3272 }
3273
3274 func (r Network_Gateway_Vlan) Mask(mask string) Network_Gateway_Vlan {
3275 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
3276 mask = fmt.Sprintf("mask[%s]", mask)
3277 }
3278
3279 r.Options.Mask = mask
3280 return r
3281 }
3282
3283 func (r Network_Gateway_Vlan) Filter(filter string) Network_Gateway_Vlan {
3284 r.Options.Filter = filter
3285 return r
3286 }
3287
3288 func (r Network_Gateway_Vlan) Limit(limit int) Network_Gateway_Vlan {
3289 r.Options.Limit = &limit
3290 return r
3291 }
3292
3293 func (r Network_Gateway_Vlan) Offset(offset int) Network_Gateway_Vlan {
3294 r.Options.Offset = &offset
3295 return r
3296 }
3297
3298 // Start the asynchronous process to bypass/unroute the VLAN from this gateway.
3299 func (r Network_Gateway_Vlan) Bypass() (err error) {
3300 var resp datatypes.Void
3301 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Vlan", "bypass", nil, &r.Options, &resp)
3302 return
3303 }
3304
3305 // Create a new VLAN attachment. If the bypassFlag is false, this will also create an asynchronous process to route the VLAN through the gateway.
3306 func (r Network_Gateway_Vlan) CreateObject(templateObject *datatypes.Network_Gateway_Vlan) (resp datatypes.Network_Gateway_Vlan, err error) {
3307 params := []interface{}{
3308 templateObject,
3309 }
3310 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Vlan", "createObject", params, &r.Options, &resp)
3311 return
3312 }
3313
3314 // Create multiple new VLAN attachments. If the bypassFlag is false, this will also create an asynchronous process to route the VLANs through the gateway.
3315 func (r Network_Gateway_Vlan) CreateObjects(templateObjects []datatypes.Network_Gateway_Vlan) (resp []datatypes.Network_Gateway_Vlan, err error) {
3316 params := []interface{}{
3317 templateObjects,
3318 }
3319 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Vlan", "createObjects", params, &r.Options, &resp)
3320 return
3321 }
3322
3323 // Start the asynchronous process to detach this VLANs from the gateway.
3324 func (r Network_Gateway_Vlan) DeleteObject() (err error) {
3325 var resp datatypes.Void
3326 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Vlan", "deleteObject", nil, &r.Options, &resp)
3327 return
3328 }
3329
3330 // Detach several VLANs. This will not detach them right away, but rather start an asynchronous process to detach.
3331 func (r Network_Gateway_Vlan) DeleteObjects(templateObjects []datatypes.Network_Gateway_Vlan) (resp bool, err error) {
3332 params := []interface{}{
3333 templateObjects,
3334 }
3335 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Vlan", "deleteObjects", params, &r.Options, &resp)
3336 return
3337 }
3338
3339 // Retrieve The gateway this VLAN is attached to.
3340 func (r Network_Gateway_Vlan) GetNetworkGateway() (resp datatypes.Network_Gateway, err error) {
3341 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Vlan", "getNetworkGateway", nil, &r.Options, &resp)
3342 return
3343 }
3344
3345 // Retrieve The network VLAN record.
3346 func (r Network_Gateway_Vlan) GetNetworkVlan() (resp datatypes.Network_Vlan, err error) {
3347 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Vlan", "getNetworkVlan", nil, &r.Options, &resp)
3348 return
3349 }
3350
3351 // no documentation yet
3352 func (r Network_Gateway_Vlan) GetObject() (resp datatypes.Network_Gateway_Vlan, err error) {
3353 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Vlan", "getObject", nil, &r.Options, &resp)
3354 return
3355 }
3356
3357 // Start the asynchronous process to route the VLAN to this gateway.
3358 func (r Network_Gateway_Vlan) Unbypass() (err error) {
3359 var resp datatypes.Void
3360 err = r.Session.DoRequest("SoftLayer_Network_Gateway_Vlan", "unbypass", nil, &r.Options, &resp)
3361 return
3362 }
3363
3364 // no documentation yet
3365 type Network_Interconnect_Tenant struct {
3366 Session session.SLSession
3367 Options sl.Options
3368 }
3369
3370 // GetNetworkInterconnectTenantService returns an instance of the Network_Interconnect_Tenant SoftLayer service
3371 func GetNetworkInterconnectTenantService(sess session.SLSession) Network_Interconnect_Tenant {
3372 return Network_Interconnect_Tenant{Session: sess}
3373 }
3374
3375 func (r Network_Interconnect_Tenant) Id(id int) Network_Interconnect_Tenant {
3376 r.Options.Id = &id
3377 return r
3378 }
3379
3380 func (r Network_Interconnect_Tenant) Mask(mask string) Network_Interconnect_Tenant {
3381 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
3382 mask = fmt.Sprintf("mask[%s]", mask)
3383 }
3384
3385 r.Options.Mask = mask
3386 return r
3387 }
3388
3389 func (r Network_Interconnect_Tenant) Filter(filter string) Network_Interconnect_Tenant {
3390 r.Options.Filter = filter
3391 return r
3392 }
3393
3394 func (r Network_Interconnect_Tenant) Limit(limit int) Network_Interconnect_Tenant {
3395 r.Options.Limit = &limit
3396 return r
3397 }
3398
3399 func (r Network_Interconnect_Tenant) Offset(offset int) Network_Interconnect_Tenant {
3400 r.Options.Offset = &offset
3401 return r
3402 }
3403
3404 // no documentation yet
3405 func (r Network_Interconnect_Tenant) AllowDeleteConnection(serviceKey *string) (resp bool, err error) {
3406 params := []interface{}{
3407 serviceKey,
3408 }
3409 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "allowDeleteConnection", params, &r.Options, &resp)
3410 return
3411 }
3412
3413 // no documentation yet
3414 func (r Network_Interconnect_Tenant) CreateConnection(templateObject *datatypes.Network_Interconnect_Tenant) (resp string, err error) {
3415 params := []interface{}{
3416 templateObject,
3417 }
3418 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "createConnection", params, &r.Options, &resp)
3419 return
3420 }
3421
3422 // no documentation yet
3423 func (r Network_Interconnect_Tenant) DeleteConnection(receivedObject *datatypes.Network_Interconnect_Tenant) (resp bool, err error) {
3424 params := []interface{}{
3425 receivedObject,
3426 }
3427 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "deleteConnection", params, &r.Options, &resp)
3428 return
3429 }
3430
3431 // no documentation yet
3432 func (r Network_Interconnect_Tenant) EditConnection(receivedObject *datatypes.Network_Interconnect_Tenant) (resp string, err error) {
3433 params := []interface{}{
3434 receivedObject,
3435 }
3436 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "editConnection", params, &r.Options, &resp)
3437 return
3438 }
3439
3440 // no documentation yet
3441 func (r Network_Interconnect_Tenant) GetAllConnections() (resp string, err error) {
3442 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "getAllConnections", nil, &r.Options, &resp)
3443 return
3444 }
3445
3446 // no documentation yet
3447 func (r Network_Interconnect_Tenant) GetAllObjects() (resp []datatypes.Network_Interconnect_Tenant, err error) {
3448 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "getAllObjects", nil, &r.Options, &resp)
3449 return
3450 }
3451
3452 // no documentation yet
3453 func (r Network_Interconnect_Tenant) GetAllPortLabelsWithCurrentUsage(directLinkLocationId *int) (resp []string, err error) {
3454 params := []interface{}{
3455 directLinkLocationId,
3456 }
3457 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "getAllPortLabelsWithCurrentUsage", params, &r.Options, &resp)
3458 return
3459 }
3460
3461 // no documentation yet
3462 func (r Network_Interconnect_Tenant) GetBgpIpRange() (resp string, err error) {
3463 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "getBgpIpRange", nil, &r.Options, &resp)
3464 return
3465 }
3466
3467 // Retrieve The active billing item for a network interconnect.
3468 func (r Network_Interconnect_Tenant) GetBillingItem() (resp datatypes.Billing_Item_Network_Interconnect, err error) {
3469 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "getBillingItem", nil, &r.Options, &resp)
3470 return
3471 }
3472
3473 // no documentation yet
3474 func (r Network_Interconnect_Tenant) GetConnection(serviceKey *string, provider *string) (resp string, err error) {
3475 params := []interface{}{
3476 serviceKey,
3477 provider,
3478 }
3479 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "getConnection", params, &r.Options, &resp)
3480 return
3481 }
3482
3483 // Retrieve
3484 func (r Network_Interconnect_Tenant) GetDatacenterName() (resp string, err error) {
3485 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "getDatacenterName", nil, &r.Options, &resp)
3486 return
3487 }
3488
3489 // no documentation yet
3490 func (r Network_Interconnect_Tenant) GetDirectLinkSpeeds(offeringType *string) (resp string, err error) {
3491 params := []interface{}{
3492 offeringType,
3493 }
3494 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "getDirectLinkSpeeds", params, &r.Options, &resp)
3495 return
3496 }
3497
3498 // no documentation yet
3499 func (r Network_Interconnect_Tenant) GetNetworkZones() (resp []string, err error) {
3500 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "getNetworkZones", nil, &r.Options, &resp)
3501 return
3502 }
3503
3504 // no documentation yet
3505 func (r Network_Interconnect_Tenant) GetObject() (resp datatypes.Network_Interconnect_Tenant, err error) {
3506 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "getObject", nil, &r.Options, &resp)
3507 return
3508 }
3509
3510 // Retrieve
3511 func (r Network_Interconnect_Tenant) GetPortLabel() (resp string, err error) {
3512 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "getPortLabel", nil, &r.Options, &resp)
3513 return
3514 }
3515
3516 // no documentation yet
3517 func (r Network_Interconnect_Tenant) GetPorts(provider *string) (resp string, err error) {
3518 params := []interface{}{
3519 provider,
3520 }
3521 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "getPorts", params, &r.Options, &resp)
3522 return
3523 }
3524
3525 // Retrieve
3526 func (r Network_Interconnect_Tenant) GetServiceType() (resp datatypes.Network_DirectLink_ServiceType, err error) {
3527 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "getServiceType", nil, &r.Options, &resp)
3528 return
3529 }
3530
3531 // Retrieve
3532 func (r Network_Interconnect_Tenant) GetVendorName() (resp string, err error) {
3533 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "getVendorName", nil, &r.Options, &resp)
3534 return
3535 }
3536
3537 // Retrieve
3538 func (r Network_Interconnect_Tenant) GetZoneName() (resp string, err error) {
3539 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "getZoneName", nil, &r.Options, &resp)
3540 return
3541 }
3542
3543 // no documentation yet
3544 func (r Network_Interconnect_Tenant) RejectApprovalRequests(serviceKey *string) (resp bool, err error) {
3545 params := []interface{}{
3546 serviceKey,
3547 }
3548 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "rejectApprovalRequests", params, &r.Options, &resp)
3549 return
3550 }
3551
3552 // no documentation yet
3553 func (r Network_Interconnect_Tenant) UpdateConnectionStatus(tenantId *int) (resp bool, err error) {
3554 params := []interface{}{
3555 tenantId,
3556 }
3557 err = r.Session.DoRequest("SoftLayer_Network_Interconnect_Tenant", "updateConnectionStatus", params, &r.Options, &resp)
3558 return
3559 }
3560
3561 // The SoftLayer_Network_LBaaS_HealthMonitor type presents a structure containing attributes of a health monitor object associated with load balancer instance. Note that the relationship between backend (pool) and health monitor is N-to-1, especially that the pools object associated with a health monitor must have the same pair of protocol and port. Example: frontend FA: http, 80 - backend BA: tcp, 3456 - healthmonitor HM_tcp3456 frontend FB: https, 443 - backend BB: tcp, 3456 - healthmonitor HM_tcp3456 In above example both backends BA and BB share the same healthmonitor HM_tcp3456
3562 type Network_LBaaS_HealthMonitor struct {
3563 Session session.SLSession
3564 Options sl.Options
3565 }
3566
3567 // GetNetworkLBaaSHealthMonitorService returns an instance of the Network_LBaaS_HealthMonitor SoftLayer service
3568 func GetNetworkLBaaSHealthMonitorService(sess session.SLSession) Network_LBaaS_HealthMonitor {
3569 return Network_LBaaS_HealthMonitor{Session: sess}
3570 }
3571
3572 func (r Network_LBaaS_HealthMonitor) Id(id int) Network_LBaaS_HealthMonitor {
3573 r.Options.Id = &id
3574 return r
3575 }
3576
3577 func (r Network_LBaaS_HealthMonitor) Mask(mask string) Network_LBaaS_HealthMonitor {
3578 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
3579 mask = fmt.Sprintf("mask[%s]", mask)
3580 }
3581
3582 r.Options.Mask = mask
3583 return r
3584 }
3585
3586 func (r Network_LBaaS_HealthMonitor) Filter(filter string) Network_LBaaS_HealthMonitor {
3587 r.Options.Filter = filter
3588 return r
3589 }
3590
3591 func (r Network_LBaaS_HealthMonitor) Limit(limit int) Network_LBaaS_HealthMonitor {
3592 r.Options.Limit = &limit
3593 return r
3594 }
3595
3596 func (r Network_LBaaS_HealthMonitor) Offset(offset int) Network_LBaaS_HealthMonitor {
3597 r.Options.Offset = &offset
3598 return r
3599 }
3600
3601 // no documentation yet
3602 func (r Network_LBaaS_HealthMonitor) GetObject() (resp datatypes.Network_LBaaS_HealthMonitor, err error) {
3603 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_HealthMonitor", "getObject", nil, &r.Options, &resp)
3604 return
3605 }
3606
3607 // Update load balancers health monitor and return load balancer object with listeners (frontend), pools (backend), health monitor server instances (members) and datacenter populated
3608 func (r Network_LBaaS_HealthMonitor) UpdateLoadBalancerHealthMonitors(loadBalancerUuid *string, healthMonitorConfigurations []datatypes.Network_LBaaS_LoadBalancerHealthMonitorConfiguration) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
3609 params := []interface{}{
3610 loadBalancerUuid,
3611 healthMonitorConfigurations,
3612 }
3613 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_HealthMonitor", "updateLoadBalancerHealthMonitors", params, &r.Options, &resp)
3614 return
3615 }
3616
3617 // The SoftLayer_Network_LBaaS_L7Member represents the backend member for a L7 pool. It can be either a virtual server or a bare metal machine.
3618 type Network_LBaaS_L7Member struct {
3619 Session session.SLSession
3620 Options sl.Options
3621 }
3622
3623 // GetNetworkLBaaSL7MemberService returns an instance of the Network_LBaaS_L7Member SoftLayer service
3624 func GetNetworkLBaaSL7MemberService(sess session.SLSession) Network_LBaaS_L7Member {
3625 return Network_LBaaS_L7Member{Session: sess}
3626 }
3627
3628 func (r Network_LBaaS_L7Member) Id(id int) Network_LBaaS_L7Member {
3629 r.Options.Id = &id
3630 return r
3631 }
3632
3633 func (r Network_LBaaS_L7Member) Mask(mask string) Network_LBaaS_L7Member {
3634 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
3635 mask = fmt.Sprintf("mask[%s]", mask)
3636 }
3637
3638 r.Options.Mask = mask
3639 return r
3640 }
3641
3642 func (r Network_LBaaS_L7Member) Filter(filter string) Network_LBaaS_L7Member {
3643 r.Options.Filter = filter
3644 return r
3645 }
3646
3647 func (r Network_LBaaS_L7Member) Limit(limit int) Network_LBaaS_L7Member {
3648 r.Options.Limit = &limit
3649 return r
3650 }
3651
3652 func (r Network_LBaaS_L7Member) Offset(offset int) Network_LBaaS_L7Member {
3653 r.Options.Offset = &offset
3654 return r
3655 }
3656
3657 // Add server instances as members to a L7pool and return the LoadBalancer Object with listeners, pools and members populated
3658 func (r Network_LBaaS_L7Member) AddL7PoolMembers(l7PoolUuid *string, memberInstances []datatypes.Network_LBaaS_L7Member) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
3659 params := []interface{}{
3660 l7PoolUuid,
3661 memberInstances,
3662 }
3663 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Member", "addL7PoolMembers", params, &r.Options, &resp)
3664 return
3665 }
3666
3667 // Delete given members from load balancer and return load balancer object with listeners, pools and members populated
3668 func (r Network_LBaaS_L7Member) DeleteL7PoolMembers(l7PoolUuid *string, memberUuids []string) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
3669 params := []interface{}{
3670 l7PoolUuid,
3671 memberUuids,
3672 }
3673 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Member", "deleteL7PoolMembers", params, &r.Options, &resp)
3674 return
3675 }
3676
3677 // no documentation yet
3678 func (r Network_LBaaS_L7Member) GetObject() (resp datatypes.Network_LBaaS_L7Member, err error) {
3679 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Member", "getObject", nil, &r.Options, &resp)
3680 return
3681 }
3682
3683 // Update L7 members weight and port.
3684 func (r Network_LBaaS_L7Member) UpdateL7PoolMembers(l7PoolUuid *string, members []datatypes.Network_LBaaS_L7Member) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
3685 params := []interface{}{
3686 l7PoolUuid,
3687 members,
3688 }
3689 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Member", "updateL7PoolMembers", params, &r.Options, &resp)
3690 return
3691 }
3692
3693 // The SoftLayer_Network_LBaaS_L7Policy represents the policy for a listener.
3694 type Network_LBaaS_L7Policy struct {
3695 Session session.SLSession
3696 Options sl.Options
3697 }
3698
3699 // GetNetworkLBaaSL7PolicyService returns an instance of the Network_LBaaS_L7Policy SoftLayer service
3700 func GetNetworkLBaaSL7PolicyService(sess session.SLSession) Network_LBaaS_L7Policy {
3701 return Network_LBaaS_L7Policy{Session: sess}
3702 }
3703
3704 func (r Network_LBaaS_L7Policy) Id(id int) Network_LBaaS_L7Policy {
3705 r.Options.Id = &id
3706 return r
3707 }
3708
3709 func (r Network_LBaaS_L7Policy) Mask(mask string) Network_LBaaS_L7Policy {
3710 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
3711 mask = fmt.Sprintf("mask[%s]", mask)
3712 }
3713
3714 r.Options.Mask = mask
3715 return r
3716 }
3717
3718 func (r Network_LBaaS_L7Policy) Filter(filter string) Network_LBaaS_L7Policy {
3719 r.Options.Filter = filter
3720 return r
3721 }
3722
3723 func (r Network_LBaaS_L7Policy) Limit(limit int) Network_LBaaS_L7Policy {
3724 r.Options.Limit = &limit
3725 return r
3726 }
3727
3728 func (r Network_LBaaS_L7Policy) Offset(offset int) Network_LBaaS_L7Policy {
3729 r.Options.Offset = &offset
3730 return r
3731 }
3732
3733 // This function creates multiple policies with rules for the given listener.
3734 func (r Network_LBaaS_L7Policy) AddL7Policies(listenerUuid *string, policiesRules []datatypes.Network_LBaaS_PolicyRule) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
3735 params := []interface{}{
3736 listenerUuid,
3737 policiesRules,
3738 }
3739 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Policy", "addL7Policies", params, &r.Options, &resp)
3740 return
3741 }
3742
3743 // Deletes a l7 policy instance and the rules associated with the policy
3744 func (r Network_LBaaS_L7Policy) DeleteObject() (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
3745 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Policy", "deleteObject", nil, &r.Options, &resp)
3746 return
3747 }
3748
3749 // Edit a l7 policy instance's properties
3750 func (r Network_LBaaS_L7Policy) EditObject(templateObject *datatypes.Network_LBaaS_L7Policy) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
3751 params := []interface{}{
3752 templateObject,
3753 }
3754 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Policy", "editObject", params, &r.Options, &resp)
3755 return
3756 }
3757
3758 // Retrieve
3759 func (r Network_LBaaS_L7Policy) GetL7Rules() (resp []datatypes.Network_LBaaS_L7Rule, err error) {
3760 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Policy", "getL7Rules", nil, &r.Options, &resp)
3761 return
3762 }
3763
3764 // no documentation yet
3765 func (r Network_LBaaS_L7Policy) GetObject() (resp datatypes.Network_LBaaS_L7Policy, err error) {
3766 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Policy", "getObject", nil, &r.Options, &resp)
3767 return
3768 }
3769
3770 // The SoftLayer_Network_LBaaS_L7Pool type presents a structure containing attributes of a load balancer's L7 pool such as the protocol, and the load balancing algorithm used. L7 pool is used for redirect_pool action of the L7 policy and is different from the default pool
3771 type Network_LBaaS_L7Pool struct {
3772 Session session.SLSession
3773 Options sl.Options
3774 }
3775
3776 // GetNetworkLBaaSL7PoolService returns an instance of the Network_LBaaS_L7Pool SoftLayer service
3777 func GetNetworkLBaaSL7PoolService(sess session.SLSession) Network_LBaaS_L7Pool {
3778 return Network_LBaaS_L7Pool{Session: sess}
3779 }
3780
3781 func (r Network_LBaaS_L7Pool) Id(id int) Network_LBaaS_L7Pool {
3782 r.Options.Id = &id
3783 return r
3784 }
3785
3786 func (r Network_LBaaS_L7Pool) Mask(mask string) Network_LBaaS_L7Pool {
3787 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
3788 mask = fmt.Sprintf("mask[%s]", mask)
3789 }
3790
3791 r.Options.Mask = mask
3792 return r
3793 }
3794
3795 func (r Network_LBaaS_L7Pool) Filter(filter string) Network_LBaaS_L7Pool {
3796 r.Options.Filter = filter
3797 return r
3798 }
3799
3800 func (r Network_LBaaS_L7Pool) Limit(limit int) Network_LBaaS_L7Pool {
3801 r.Options.Limit = &limit
3802 return r
3803 }
3804
3805 func (r Network_LBaaS_L7Pool) Offset(offset int) Network_LBaaS_L7Pool {
3806 r.Options.Offset = &offset
3807 return r
3808 }
3809
3810 // Create a backend to be used for L7 load balancing. This L7 pool has backend protocol, L7 members, L7 health monitor and session affinity. L7 pool is associated with L7 policies.
3811 func (r Network_LBaaS_L7Pool) CreateL7Pool(loadBalancerUuid *string, l7Pool *datatypes.Network_LBaaS_L7Pool, l7Members []datatypes.Network_LBaaS_L7Member, l7HealthMonitor *datatypes.Network_LBaaS_L7HealthMonitor, l7SessionAffinity *datatypes.Network_LBaaS_L7SessionAffinity) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
3812 params := []interface{}{
3813 loadBalancerUuid,
3814 l7Pool,
3815 l7Members,
3816 l7HealthMonitor,
3817 l7SessionAffinity,
3818 }
3819 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Pool", "createL7Pool", params, &r.Options, &resp)
3820 return
3821 }
3822
3823 // Deletes an existing L7 pool along with L7 members, L7 health monitor, and L7 session affinity.
3824 func (r Network_LBaaS_L7Pool) DeleteObject() (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
3825 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Pool", "deleteObject", nil, &r.Options, &resp)
3826 return
3827 }
3828
3829 // Retrieve
3830 func (r Network_LBaaS_L7Pool) GetL7HealthMonitor() (resp datatypes.Network_LBaaS_L7HealthMonitor, err error) {
3831 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Pool", "getL7HealthMonitor", nil, &r.Options, &resp)
3832 return
3833 }
3834
3835 // Retrieve
3836 func (r Network_LBaaS_L7Pool) GetL7Members() (resp []datatypes.Network_LBaaS_L7Member, err error) {
3837 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Pool", "getL7Members", nil, &r.Options, &resp)
3838 return
3839 }
3840
3841 // Retrieve
3842 func (r Network_LBaaS_L7Pool) GetL7Policies() (resp []datatypes.Network_LBaaS_L7Policy, err error) {
3843 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Pool", "getL7Policies", nil, &r.Options, &resp)
3844 return
3845 }
3846
3847 // Returns the health of all L7 pool's members which are created under load balancer. L7 members health status is available only after a L7 pool is associated with the L7 policy and that L7 policy has at least one L7 rule.
3848 func (r Network_LBaaS_L7Pool) GetL7PoolMemberHealth(loadBalancerUuid *string) (resp []datatypes.Network_LBaaS_L7PoolMembersHealth, err error) {
3849 params := []interface{}{
3850 loadBalancerUuid,
3851 }
3852 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Pool", "getL7PoolMemberHealth", params, &r.Options, &resp)
3853 return
3854 }
3855
3856 // Retrieve
3857 func (r Network_LBaaS_L7Pool) GetL7SessionAffinity() (resp datatypes.Network_LBaaS_L7SessionAffinity, err error) {
3858 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Pool", "getL7SessionAffinity", nil, &r.Options, &resp)
3859 return
3860 }
3861
3862 // no documentation yet
3863 func (r Network_LBaaS_L7Pool) GetObject() (resp datatypes.Network_LBaaS_L7Pool, err error) {
3864 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Pool", "getObject", nil, &r.Options, &resp)
3865 return
3866 }
3867
3868 // Updates an existing L7 pool, L7 health monitor and L7 session affinity.
3869 func (r Network_LBaaS_L7Pool) UpdateL7Pool(l7PoolUuid *string, l7Pool *datatypes.Network_LBaaS_L7Pool, l7HealthMonitor *datatypes.Network_LBaaS_L7HealthMonitor, l7SessionAffinity *datatypes.Network_LBaaS_L7SessionAffinity) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
3870 params := []interface{}{
3871 l7PoolUuid,
3872 l7Pool,
3873 l7HealthMonitor,
3874 l7SessionAffinity,
3875 }
3876 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Pool", "updateL7Pool", params, &r.Options, &resp)
3877 return
3878 }
3879
3880 // The SoftLayer_Network_LBaaS_L7Rule represents the Rules that can be attached to a a L7 policy.
3881 type Network_LBaaS_L7Rule struct {
3882 Session session.SLSession
3883 Options sl.Options
3884 }
3885
3886 // GetNetworkLBaaSL7RuleService returns an instance of the Network_LBaaS_L7Rule SoftLayer service
3887 func GetNetworkLBaaSL7RuleService(sess session.SLSession) Network_LBaaS_L7Rule {
3888 return Network_LBaaS_L7Rule{Session: sess}
3889 }
3890
3891 func (r Network_LBaaS_L7Rule) Id(id int) Network_LBaaS_L7Rule {
3892 r.Options.Id = &id
3893 return r
3894 }
3895
3896 func (r Network_LBaaS_L7Rule) Mask(mask string) Network_LBaaS_L7Rule {
3897 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
3898 mask = fmt.Sprintf("mask[%s]", mask)
3899 }
3900
3901 r.Options.Mask = mask
3902 return r
3903 }
3904
3905 func (r Network_LBaaS_L7Rule) Filter(filter string) Network_LBaaS_L7Rule {
3906 r.Options.Filter = filter
3907 return r
3908 }
3909
3910 func (r Network_LBaaS_L7Rule) Limit(limit int) Network_LBaaS_L7Rule {
3911 r.Options.Limit = &limit
3912 return r
3913 }
3914
3915 func (r Network_LBaaS_L7Rule) Offset(offset int) Network_LBaaS_L7Rule {
3916 r.Options.Offset = &offset
3917 return r
3918 }
3919
3920 // This function creates and adds multiple Rules to a given L7 policy with all the details provided for rules
3921 func (r Network_LBaaS_L7Rule) AddL7Rules(policyUuid *string, rules []datatypes.Network_LBaaS_L7Rule) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
3922 params := []interface{}{
3923 policyUuid,
3924 rules,
3925 }
3926 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Rule", "addL7Rules", params, &r.Options, &resp)
3927 return
3928 }
3929
3930 // This function deletes multiple rules aassociated with the same policy.
3931 func (r Network_LBaaS_L7Rule) DeleteL7Rules(policyUuid *string, ruleUuids []string) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
3932 params := []interface{}{
3933 policyUuid,
3934 ruleUuids,
3935 }
3936 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Rule", "deleteL7Rules", params, &r.Options, &resp)
3937 return
3938 }
3939
3940 // no documentation yet
3941 func (r Network_LBaaS_L7Rule) GetObject() (resp datatypes.Network_LBaaS_L7Rule, err error) {
3942 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Rule", "getObject", nil, &r.Options, &resp)
3943 return
3944 }
3945
3946 // This function updates multiple Rules to a given policy with all the details for rules.
3947 func (r Network_LBaaS_L7Rule) UpdateL7Rules(policyUuid *string, rules []datatypes.Network_LBaaS_L7Rule) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
3948 params := []interface{}{
3949 policyUuid,
3950 rules,
3951 }
3952 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_L7Rule", "updateL7Rules", params, &r.Options, &resp)
3953 return
3954 }
3955
3956 // The SoftLayer_Network_LBaaS_Listener type presents a data structure for a load balancers listener, also called frontend.
3957 type Network_LBaaS_Listener struct {
3958 Session session.SLSession
3959 Options sl.Options
3960 }
3961
3962 // GetNetworkLBaaSListenerService returns an instance of the Network_LBaaS_Listener SoftLayer service
3963 func GetNetworkLBaaSListenerService(sess session.SLSession) Network_LBaaS_Listener {
3964 return Network_LBaaS_Listener{Session: sess}
3965 }
3966
3967 func (r Network_LBaaS_Listener) Id(id int) Network_LBaaS_Listener {
3968 r.Options.Id = &id
3969 return r
3970 }
3971
3972 func (r Network_LBaaS_Listener) Mask(mask string) Network_LBaaS_Listener {
3973 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
3974 mask = fmt.Sprintf("mask[%s]", mask)
3975 }
3976
3977 r.Options.Mask = mask
3978 return r
3979 }
3980
3981 func (r Network_LBaaS_Listener) Filter(filter string) Network_LBaaS_Listener {
3982 r.Options.Filter = filter
3983 return r
3984 }
3985
3986 func (r Network_LBaaS_Listener) Limit(limit int) Network_LBaaS_Listener {
3987 r.Options.Limit = &limit
3988 return r
3989 }
3990
3991 func (r Network_LBaaS_Listener) Offset(offset int) Network_LBaaS_Listener {
3992 r.Options.Offset = &offset
3993 return r
3994 }
3995
3996 // Delete load balancers front- and backend protocols and return load balancer object with listeners (frontend), pools (backend), server instances (members) and datacenter populated.
3997 func (r Network_LBaaS_Listener) DeleteLoadBalancerProtocols(loadBalancerUuid *string, listenerUuids []string) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
3998 params := []interface{}{
3999 loadBalancerUuid,
4000 listenerUuids,
4001 }
4002 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_Listener", "deleteLoadBalancerProtocols", params, &r.Options, &resp)
4003 return
4004 }
4005
4006 // Retrieve
4007 func (r Network_LBaaS_Listener) GetDefaultPool() (resp datatypes.Network_LBaaS_Pool, err error) {
4008 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_Listener", "getDefaultPool", nil, &r.Options, &resp)
4009 return
4010 }
4011
4012 // Retrieve
4013 func (r Network_LBaaS_Listener) GetL7Policies() (resp []datatypes.Network_LBaaS_L7Policy, err error) {
4014 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_Listener", "getL7Policies", nil, &r.Options, &resp)
4015 return
4016 }
4017
4018 // no documentation yet
4019 func (r Network_LBaaS_Listener) GetObject() (resp datatypes.Network_LBaaS_Listener, err error) {
4020 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_Listener", "getObject", nil, &r.Options, &resp)
4021 return
4022 }
4023
4024 // Update (create) load balancers front- and backend protocols and return load balancer object with listeners (frontend), pools (backend), server instances (members) and datacenter populated. Note if a protocolConfiguration has no listenerUuid set, this function will create the specified front- and backend accordingly. Otherwise the given front- and backend will be updated with the new protocol and port.
4025 func (r Network_LBaaS_Listener) UpdateLoadBalancerProtocols(loadBalancerUuid *string, protocolConfigurations []datatypes.Network_LBaaS_LoadBalancerProtocolConfiguration) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
4026 params := []interface{}{
4027 loadBalancerUuid,
4028 protocolConfigurations,
4029 }
4030 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_Listener", "updateLoadBalancerProtocols", params, &r.Options, &resp)
4031 return
4032 }
4033
4034 // The SoftLayer_Network_LBaaS_LoadBalancer type presents a structure containing attributes of a load balancer, and its related objects including listeners, pools and members.
4035 type Network_LBaaS_LoadBalancer struct {
4036 Session session.SLSession
4037 Options sl.Options
4038 }
4039
4040 // GetNetworkLBaaSLoadBalancerService returns an instance of the Network_LBaaS_LoadBalancer SoftLayer service
4041 func GetNetworkLBaaSLoadBalancerService(sess session.SLSession) Network_LBaaS_LoadBalancer {
4042 return Network_LBaaS_LoadBalancer{Session: sess}
4043 }
4044
4045 func (r Network_LBaaS_LoadBalancer) Id(id int) Network_LBaaS_LoadBalancer {
4046 r.Options.Id = &id
4047 return r
4048 }
4049
4050 func (r Network_LBaaS_LoadBalancer) Mask(mask string) Network_LBaaS_LoadBalancer {
4051 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
4052 mask = fmt.Sprintf("mask[%s]", mask)
4053 }
4054
4055 r.Options.Mask = mask
4056 return r
4057 }
4058
4059 func (r Network_LBaaS_LoadBalancer) Filter(filter string) Network_LBaaS_LoadBalancer {
4060 r.Options.Filter = filter
4061 return r
4062 }
4063
4064 func (r Network_LBaaS_LoadBalancer) Limit(limit int) Network_LBaaS_LoadBalancer {
4065 r.Options.Limit = &limit
4066 return r
4067 }
4068
4069 func (r Network_LBaaS_LoadBalancer) Offset(offset int) Network_LBaaS_LoadBalancer {
4070 r.Options.Offset = &offset
4071 return r
4072 }
4073
4074 // Cancel a load balancer with the given uuid. The billing system will execute the deletion of load balancer and all objects associated with it such as load balancer appliances, listeners, pools and members in the background.
4075 func (r Network_LBaaS_LoadBalancer) CancelLoadBalancer(uuid *string) (resp bool, err error) {
4076 params := []interface{}{
4077 uuid,
4078 }
4079 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "cancelLoadBalancer", params, &r.Options, &resp)
4080 return
4081 }
4082
4083 // When enabled, data log would be forwarded to logging service.
4084 func (r Network_LBaaS_LoadBalancer) EnableOrDisableDataLogs(uuid *string, enabled *bool) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
4085 params := []interface{}{
4086 uuid,
4087 enabled,
4088 }
4089 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "enableOrDisableDataLogs", params, &r.Options, &resp)
4090 return
4091 }
4092
4093 // Return all existing load balancers
4094 func (r Network_LBaaS_LoadBalancer) GetAllObjects() (resp []datatypes.Network_LBaaS_LoadBalancer, err error) {
4095 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "getAllObjects", nil, &r.Options, &resp)
4096 return
4097 }
4098
4099 // Get the load balancer appliances for the given lb id.
4100 func (r Network_LBaaS_LoadBalancer) GetAppliances(lbId *string) (resp []datatypes.Network_LBaaS_LoadBalancerAppliance, err error) {
4101 params := []interface{}{
4102 lbId,
4103 }
4104 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "getAppliances", params, &r.Options, &resp)
4105 return
4106 }
4107
4108 // Retrieve Datacenter, where load balancer is located.
4109 func (r Network_LBaaS_LoadBalancer) GetDatacenter() (resp datatypes.Location, err error) {
4110 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "getDatacenter", nil, &r.Options, &resp)
4111 return
4112 }
4113
4114 // Retrieve Health monitors for the backend members.
4115 func (r Network_LBaaS_LoadBalancer) GetHealthMonitors() (resp []datatypes.Network_LBaaS_HealthMonitor, err error) {
4116 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "getHealthMonitors", nil, &r.Options, &resp)
4117 return
4118 }
4119
4120 // Retrieve L7Pools for load balancer.
4121 func (r Network_LBaaS_LoadBalancer) GetL7Pools() (resp []datatypes.Network_LBaaS_L7Pool, err error) {
4122 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "getL7Pools", nil, &r.Options, &resp)
4123 return
4124 }
4125
4126 // Return listener time series datapoints. The time series data is available for Throughput, ConnectionRate and ActiveConnections. Throughput is in bits per second. The values are an average over the time range. The time series data is available for 1hour, 6hours, 12hours, 1day, 1week or 2weeks.
4127 func (r Network_LBaaS_LoadBalancer) GetListenerTimeSeriesData(loadBalancerUuid *string, metricName *string, timeRange *string, listenerUuid *string) (resp []datatypes.Network_LBaaS_LoadBalancerMonitoringMetricDataPoint, err error) {
4128 params := []interface{}{
4129 loadBalancerUuid,
4130 metricName,
4131 timeRange,
4132 listenerUuid,
4133 }
4134 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "getListenerTimeSeriesData", params, &r.Options, &resp)
4135 return
4136 }
4137
4138 // Retrieve Listeners assigned to load balancer.
4139 func (r Network_LBaaS_LoadBalancer) GetListeners() (resp []datatypes.Network_LBaaS_Listener, err error) {
4140 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "getListeners", nil, &r.Options, &resp)
4141 return
4142 }
4143
4144 // Get the load balancer object with given uuid.
4145 func (r Network_LBaaS_LoadBalancer) GetLoadBalancer(uuid *string) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
4146 params := []interface{}{
4147 uuid,
4148 }
4149 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "getLoadBalancer", params, &r.Options, &resp)
4150 return
4151 }
4152
4153 // Return load balancer members health
4154 func (r Network_LBaaS_LoadBalancer) GetLoadBalancerMemberHealth(uuid *string) (resp []datatypes.Network_LBaaS_PoolMembersHealth, err error) {
4155 params := []interface{}{
4156 uuid,
4157 }
4158 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "getLoadBalancerMemberHealth", params, &r.Options, &resp)
4159 return
4160 }
4161
4162 // Return load balancers statistics such as total number of current sessions and total number of accumulated connections.
4163 func (r Network_LBaaS_LoadBalancer) GetLoadBalancerStatistics(uuid *string) (resp datatypes.Network_LBaaS_LoadBalancerStatistics, err error) {
4164 params := []interface{}{
4165 uuid,
4166 }
4167 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "getLoadBalancerStatistics", params, &r.Options, &resp)
4168 return
4169 }
4170
4171 // Get the load balancer objects for the given user accounts.
4172 func (r Network_LBaaS_LoadBalancer) GetLoadBalancers(data *string) (resp []datatypes.Network_LBaaS_LoadBalancer, err error) {
4173 params := []interface{}{
4174 data,
4175 }
4176 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "getLoadBalancers", params, &r.Options, &resp)
4177 return
4178 }
4179
4180 // Retrieve Members assigned to load balancer.
4181 func (r Network_LBaaS_LoadBalancer) GetMembers() (resp []datatypes.Network_LBaaS_Member, err error) {
4182 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "getMembers", nil, &r.Options, &resp)
4183 return
4184 }
4185
4186 // no documentation yet
4187 func (r Network_LBaaS_LoadBalancer) GetObject() (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
4188 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "getObject", nil, &r.Options, &resp)
4189 return
4190 }
4191
4192 // Retrieve list of preferred custom ciphers configured for the load balancer.
4193 func (r Network_LBaaS_LoadBalancer) GetSslCiphers() (resp []datatypes.Network_LBaaS_SSLCipher, err error) {
4194 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "getSslCiphers", nil, &r.Options, &resp)
4195 return
4196 }
4197
4198 // no documentation yet
4199 func (r Network_LBaaS_LoadBalancer) ServiceDNS(data *string) (err error) {
4200 var resp datatypes.Void
4201 params := []interface{}{
4202 data,
4203 }
4204 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "serviceDNS", params, &r.Options, &resp)
4205 return
4206 }
4207
4208 // no documentation yet
4209 func (r Network_LBaaS_LoadBalancer) ServiceLoadBalancer(data *string) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
4210 params := []interface{}{
4211 data,
4212 }
4213 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "serviceLoadBalancer", params, &r.Options, &resp)
4214 return
4215 }
4216
4217 // Update load balancer's description, and return the load balancer object containing all listeners, pools, members and datacenter.
4218 func (r Network_LBaaS_LoadBalancer) UpdateLoadBalancer(uuid *string, newDescription *string) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
4219 params := []interface{}{
4220 uuid,
4221 newDescription,
4222 }
4223 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "updateLoadBalancer", params, &r.Options, &resp)
4224 return
4225 }
4226
4227 // Updates the load balancer with the new cipher list. All new connections going forward will use the new set of ciphers selected by the user.
4228 func (r Network_LBaaS_LoadBalancer) UpdateSslCiphers(loadBalancerUuid *string, cipherList []int) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
4229 params := []interface{}{
4230 loadBalancerUuid,
4231 cipherList,
4232 }
4233 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancer", "updateSslCiphers", params, &r.Options, &resp)
4234 return
4235 }
4236
4237 // This class represents the load balancers appliances, ie virtual servers, on which the actual load balancer service is running. The relationship between load balancer and appliance is 1-to-N with N=2 for beta and very likely N=3 for post beta. Note that this class is for internal use only.
4238 type Network_LBaaS_LoadBalancerAppliance struct {
4239 Session session.SLSession
4240 Options sl.Options
4241 }
4242
4243 // GetNetworkLBaaSLoadBalancerApplianceService returns an instance of the Network_LBaaS_LoadBalancerAppliance SoftLayer service
4244 func GetNetworkLBaaSLoadBalancerApplianceService(sess session.SLSession) Network_LBaaS_LoadBalancerAppliance {
4245 return Network_LBaaS_LoadBalancerAppliance{Session: sess}
4246 }
4247
4248 func (r Network_LBaaS_LoadBalancerAppliance) Id(id int) Network_LBaaS_LoadBalancerAppliance {
4249 r.Options.Id = &id
4250 return r
4251 }
4252
4253 func (r Network_LBaaS_LoadBalancerAppliance) Mask(mask string) Network_LBaaS_LoadBalancerAppliance {
4254 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
4255 mask = fmt.Sprintf("mask[%s]", mask)
4256 }
4257
4258 r.Options.Mask = mask
4259 return r
4260 }
4261
4262 func (r Network_LBaaS_LoadBalancerAppliance) Filter(filter string) Network_LBaaS_LoadBalancerAppliance {
4263 r.Options.Filter = filter
4264 return r
4265 }
4266
4267 func (r Network_LBaaS_LoadBalancerAppliance) Limit(limit int) Network_LBaaS_LoadBalancerAppliance {
4268 r.Options.Limit = &limit
4269 return r
4270 }
4271
4272 func (r Network_LBaaS_LoadBalancerAppliance) Offset(offset int) Network_LBaaS_LoadBalancerAppliance {
4273 r.Options.Offset = &offset
4274 return r
4275 }
4276
4277 // no documentation yet
4278 func (r Network_LBaaS_LoadBalancerAppliance) GetObject() (resp datatypes.Network_LBaaS_LoadBalancerAppliance, err error) {
4279 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_LoadBalancerAppliance", "getObject", nil, &r.Options, &resp)
4280 return
4281 }
4282
4283 // The SoftLayer_Network_LBaaS_Member represents the backend member for a load balancer. It can be either a virtual server or a bare metal machine.
4284 type Network_LBaaS_Member struct {
4285 Session session.SLSession
4286 Options sl.Options
4287 }
4288
4289 // GetNetworkLBaaSMemberService returns an instance of the Network_LBaaS_Member SoftLayer service
4290 func GetNetworkLBaaSMemberService(sess session.SLSession) Network_LBaaS_Member {
4291 return Network_LBaaS_Member{Session: sess}
4292 }
4293
4294 func (r Network_LBaaS_Member) Id(id int) Network_LBaaS_Member {
4295 r.Options.Id = &id
4296 return r
4297 }
4298
4299 func (r Network_LBaaS_Member) Mask(mask string) Network_LBaaS_Member {
4300 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
4301 mask = fmt.Sprintf("mask[%s]", mask)
4302 }
4303
4304 r.Options.Mask = mask
4305 return r
4306 }
4307
4308 func (r Network_LBaaS_Member) Filter(filter string) Network_LBaaS_Member {
4309 r.Options.Filter = filter
4310 return r
4311 }
4312
4313 func (r Network_LBaaS_Member) Limit(limit int) Network_LBaaS_Member {
4314 r.Options.Limit = &limit
4315 return r
4316 }
4317
4318 func (r Network_LBaaS_Member) Offset(offset int) Network_LBaaS_Member {
4319 r.Options.Offset = &offset
4320 return r
4321 }
4322
4323 // Add server instances as members to load balancer and return it with listeners, pools and members populated
4324 func (r Network_LBaaS_Member) AddLoadBalancerMembers(loadBalancerUuid *string, serverInstances []datatypes.Network_LBaaS_LoadBalancerServerInstanceInfo) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
4325 params := []interface{}{
4326 loadBalancerUuid,
4327 serverInstances,
4328 }
4329 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_Member", "addLoadBalancerMembers", params, &r.Options, &resp)
4330 return
4331 }
4332
4333 // Delete given members from load balancer and return load balancer object with listeners, pools and members populated
4334 func (r Network_LBaaS_Member) DeleteLoadBalancerMembers(loadBalancerUuid *string, memberUuids []string) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
4335 params := []interface{}{
4336 loadBalancerUuid,
4337 memberUuids,
4338 }
4339 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_Member", "deleteLoadBalancerMembers", params, &r.Options, &resp)
4340 return
4341 }
4342
4343 // no documentation yet
4344 func (r Network_LBaaS_Member) GetObject() (resp datatypes.Network_LBaaS_Member, err error) {
4345 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_Member", "getObject", nil, &r.Options, &resp)
4346 return
4347 }
4348
4349 // Update members weight and return load balancer object with listeners, pools and members populated
4350 func (r Network_LBaaS_Member) UpdateLoadBalancerMembers(loadBalancerUuid *string, members []datatypes.Network_LBaaS_Member) (resp datatypes.Network_LBaaS_LoadBalancer, err error) {
4351 params := []interface{}{
4352 loadBalancerUuid,
4353 members,
4354 }
4355 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_Member", "updateLoadBalancerMembers", params, &r.Options, &resp)
4356 return
4357 }
4358
4359 // The SoftLayer_Network_LBaaS_SSLCipher type presents a structure that contains attributes of load balancer cipher suites.
4360 type Network_LBaaS_SSLCipher struct {
4361 Session session.SLSession
4362 Options sl.Options
4363 }
4364
4365 // GetNetworkLBaaSSSLCipherService returns an instance of the Network_LBaaS_SSLCipher SoftLayer service
4366 func GetNetworkLBaaSSSLCipherService(sess session.SLSession) Network_LBaaS_SSLCipher {
4367 return Network_LBaaS_SSLCipher{Session: sess}
4368 }
4369
4370 func (r Network_LBaaS_SSLCipher) Id(id int) Network_LBaaS_SSLCipher {
4371 r.Options.Id = &id
4372 return r
4373 }
4374
4375 func (r Network_LBaaS_SSLCipher) Mask(mask string) Network_LBaaS_SSLCipher {
4376 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
4377 mask = fmt.Sprintf("mask[%s]", mask)
4378 }
4379
4380 r.Options.Mask = mask
4381 return r
4382 }
4383
4384 func (r Network_LBaaS_SSLCipher) Filter(filter string) Network_LBaaS_SSLCipher {
4385 r.Options.Filter = filter
4386 return r
4387 }
4388
4389 func (r Network_LBaaS_SSLCipher) Limit(limit int) Network_LBaaS_SSLCipher {
4390 r.Options.Limit = &limit
4391 return r
4392 }
4393
4394 func (r Network_LBaaS_SSLCipher) Offset(offset int) Network_LBaaS_SSLCipher {
4395 r.Options.Offset = &offset
4396 return r
4397 }
4398
4399 // Returns all supported cipher list
4400 func (r Network_LBaaS_SSLCipher) GetAllObjects() (resp []datatypes.Network_LBaaS_SSLCipher, err error) {
4401 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_SSLCipher", "getAllObjects", nil, &r.Options, &resp)
4402 return
4403 }
4404
4405 // no documentation yet
4406 func (r Network_LBaaS_SSLCipher) GetObject() (resp datatypes.Network_LBaaS_SSLCipher, err error) {
4407 err = r.Session.DoRequest("SoftLayer_Network_LBaaS_SSLCipher", "getObject", nil, &r.Options, &resp)
4408 return
4409 }
4410
4411 // Deprecated
4412 // Deprecated: This function has been marked as deprecated.
4413 type Network_LoadBalancer_Service struct {
4414 Session session.SLSession
4415 Options sl.Options
4416 }
4417
4418 // GetNetworkLoadBalancerServiceService returns an instance of the Network_LoadBalancer_Service SoftLayer service
4419 func GetNetworkLoadBalancerServiceService(sess session.SLSession) Network_LoadBalancer_Service {
4420 return Network_LoadBalancer_Service{Session: sess}
4421 }
4422
4423 func (r Network_LoadBalancer_Service) Id(id int) Network_LoadBalancer_Service {
4424 r.Options.Id = &id
4425 return r
4426 }
4427
4428 func (r Network_LoadBalancer_Service) Mask(mask string) Network_LoadBalancer_Service {
4429 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
4430 mask = fmt.Sprintf("mask[%s]", mask)
4431 }
4432
4433 r.Options.Mask = mask
4434 return r
4435 }
4436
4437 func (r Network_LoadBalancer_Service) Filter(filter string) Network_LoadBalancer_Service {
4438 r.Options.Filter = filter
4439 return r
4440 }
4441
4442 func (r Network_LoadBalancer_Service) Limit(limit int) Network_LoadBalancer_Service {
4443 r.Options.Limit = &limit
4444 return r
4445 }
4446
4447 func (r Network_LoadBalancer_Service) Offset(offset int) Network_LoadBalancer_Service {
4448 r.Options.Offset = &offset
4449 return r
4450 }
4451
4452 // Deprecated
4453 // Deprecated: This function has been marked as deprecated.
4454 func (r Network_LoadBalancer_Service) DeleteObject() (resp bool, err error) {
4455 err = r.Session.DoRequest("SoftLayer_Network_LoadBalancer_Service", "deleteObject", nil, &r.Options, &resp)
4456 return
4457 }
4458
4459 // Deprecated
4460 // Deprecated: This function has been marked as deprecated.
4461 func (r Network_LoadBalancer_Service) GetGraphImage(graphType *string, metric *string) (resp []byte, err error) {
4462 params := []interface{}{
4463 graphType,
4464 metric,
4465 }
4466 err = r.Session.DoRequest("SoftLayer_Network_LoadBalancer_Service", "getGraphImage", params, &r.Options, &resp)
4467 return
4468 }
4469
4470 // Deprecated
4471 func (r Network_LoadBalancer_Service) GetObject() (resp datatypes.Network_LoadBalancer_Service, err error) {
4472 err = r.Session.DoRequest("SoftLayer_Network_LoadBalancer_Service", "getObject", nil, &r.Options, &resp)
4473 return
4474 }
4475
4476 // Deprecated
4477 // Deprecated: This function has been marked as deprecated.
4478 func (r Network_LoadBalancer_Service) GetStatus() (resp []datatypes.Container_Network_LoadBalancer_StatusEntry, err error) {
4479 err = r.Session.DoRequest("SoftLayer_Network_LoadBalancer_Service", "getStatus", nil, &r.Options, &resp)
4480 return
4481 }
4482
4483 // Retrieve The load balancer that this service belongs to.
4484 func (r Network_LoadBalancer_Service) GetVip() (resp datatypes.Network_LoadBalancer_VirtualIpAddress, err error) {
4485 err = r.Session.DoRequest("SoftLayer_Network_LoadBalancer_Service", "getVip", nil, &r.Options, &resp)
4486 return
4487 }
4488
4489 // Deprecated
4490 // Deprecated: This function has been marked as deprecated.
4491 func (r Network_LoadBalancer_Service) ResetPeakConnections() (resp bool, err error) {
4492 err = r.Session.DoRequest("SoftLayer_Network_LoadBalancer_Service", "resetPeakConnections", nil, &r.Options, &resp)
4493 return
4494 }
4495
4496 // Deprecated
4497 // Deprecated: This function has been marked as deprecated.
4498 type Network_LoadBalancer_VirtualIpAddress struct {
4499 Session session.SLSession
4500 Options sl.Options
4501 }
4502
4503 // GetNetworkLoadBalancerVirtualIpAddressService returns an instance of the Network_LoadBalancer_VirtualIpAddress SoftLayer service
4504 func GetNetworkLoadBalancerVirtualIpAddressService(sess session.SLSession) Network_LoadBalancer_VirtualIpAddress {
4505 return Network_LoadBalancer_VirtualIpAddress{Session: sess}
4506 }
4507
4508 func (r Network_LoadBalancer_VirtualIpAddress) Id(id int) Network_LoadBalancer_VirtualIpAddress {
4509 r.Options.Id = &id
4510 return r
4511 }
4512
4513 func (r Network_LoadBalancer_VirtualIpAddress) Mask(mask string) Network_LoadBalancer_VirtualIpAddress {
4514 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
4515 mask = fmt.Sprintf("mask[%s]", mask)
4516 }
4517
4518 r.Options.Mask = mask
4519 return r
4520 }
4521
4522 func (r Network_LoadBalancer_VirtualIpAddress) Filter(filter string) Network_LoadBalancer_VirtualIpAddress {
4523 r.Options.Filter = filter
4524 return r
4525 }
4526
4527 func (r Network_LoadBalancer_VirtualIpAddress) Limit(limit int) Network_LoadBalancer_VirtualIpAddress {
4528 r.Options.Limit = &limit
4529 return r
4530 }
4531
4532 func (r Network_LoadBalancer_VirtualIpAddress) Offset(offset int) Network_LoadBalancer_VirtualIpAddress {
4533 r.Options.Offset = &offset
4534 return r
4535 }
4536
4537 // Deprecated
4538 // Deprecated: This function has been marked as deprecated.
4539 func (r Network_LoadBalancer_VirtualIpAddress) Disable() (resp bool, err error) {
4540 err = r.Session.DoRequest("SoftLayer_Network_LoadBalancer_VirtualIpAddress", "disable", nil, &r.Options, &resp)
4541 return
4542 }
4543
4544 // Deprecated
4545 // Deprecated: This function has been marked as deprecated.
4546 func (r Network_LoadBalancer_VirtualIpAddress) EditObject(templateObject *datatypes.Network_LoadBalancer_VirtualIpAddress) (resp bool, err error) {
4547 params := []interface{}{
4548 templateObject,
4549 }
4550 err = r.Session.DoRequest("SoftLayer_Network_LoadBalancer_VirtualIpAddress", "editObject", params, &r.Options, &resp)
4551 return
4552 }
4553
4554 // Deprecated
4555 // Deprecated: This function has been marked as deprecated.
4556 func (r Network_LoadBalancer_VirtualIpAddress) Enable() (resp bool, err error) {
4557 err = r.Session.DoRequest("SoftLayer_Network_LoadBalancer_VirtualIpAddress", "enable", nil, &r.Options, &resp)
4558 return
4559 }
4560
4561 // Retrieve The account that owns this load balancer.
4562 func (r Network_LoadBalancer_VirtualIpAddress) GetAccount() (resp datatypes.Account, err error) {
4563 err = r.Session.DoRequest("SoftLayer_Network_LoadBalancer_VirtualIpAddress", "getAccount", nil, &r.Options, &resp)
4564 return
4565 }
4566
4567 // Retrieve The current billing item for the Load Balancer.
4568 func (r Network_LoadBalancer_VirtualIpAddress) GetBillingItem() (resp datatypes.Billing_Item, err error) {
4569 err = r.Session.DoRequest("SoftLayer_Network_LoadBalancer_VirtualIpAddress", "getBillingItem", nil, &r.Options, &resp)
4570 return
4571 }
4572
4573 // Retrieve If false, this VIP and associated services may be edited via the portal or the API. If true, you must configure this VIP manually on the device.
4574 func (r Network_LoadBalancer_VirtualIpAddress) GetCustomerManagedFlag() (resp int, err error) {
4575 err = r.Session.DoRequest("SoftLayer_Network_LoadBalancer_VirtualIpAddress", "getCustomerManagedFlag", nil, &r.Options, &resp)
4576 return
4577 }
4578
4579 // Retrieve A flag indicating that the load balancer is a managed resource.
4580 func (r Network_LoadBalancer_VirtualIpAddress) GetManagedResourceFlag() (resp bool, err error) {
4581 err = r.Session.DoRequest("SoftLayer_Network_LoadBalancer_VirtualIpAddress", "getManagedResourceFlag", nil, &r.Options, &resp)
4582 return
4583 }
4584
4585 // Deprecated
4586 func (r Network_LoadBalancer_VirtualIpAddress) GetObject() (resp datatypes.Network_LoadBalancer_VirtualIpAddress, err error) {
4587 err = r.Session.DoRequest("SoftLayer_Network_LoadBalancer_VirtualIpAddress", "getObject", nil, &r.Options, &resp)
4588 return
4589 }
4590
4591 // Retrieve the services on this load balancer.
4592 func (r Network_LoadBalancer_VirtualIpAddress) GetServices() (resp []datatypes.Network_LoadBalancer_Service, err error) {
4593 err = r.Session.DoRequest("SoftLayer_Network_LoadBalancer_VirtualIpAddress", "getServices", nil, &r.Options, &resp)
4594 return
4595 }
4596
4597 // Deprecated
4598 // Deprecated: This function has been marked as deprecated.
4599 func (r Network_LoadBalancer_VirtualIpAddress) KickAllConnections() (resp bool, err error) {
4600 err = r.Session.DoRequest("SoftLayer_Network_LoadBalancer_VirtualIpAddress", "kickAllConnections", nil, &r.Options, &resp)
4601 return
4602 }
4603
4604 // Deprecated
4605 // Deprecated: This function has been marked as deprecated.
4606 func (r Network_LoadBalancer_VirtualIpAddress) UpgradeConnectionLimit() (resp bool, err error) {
4607 err = r.Session.DoRequest("SoftLayer_Network_LoadBalancer_VirtualIpAddress", "upgradeConnectionLimit", nil, &r.Options, &resp)
4608 return
4609 }
4610
4611 // no documentation yet
4612 type Network_Message_Delivery struct {
4613 Session session.SLSession
4614 Options sl.Options
4615 }
4616
4617 // GetNetworkMessageDeliveryService returns an instance of the Network_Message_Delivery SoftLayer service
4618 func GetNetworkMessageDeliveryService(sess session.SLSession) Network_Message_Delivery {
4619 return Network_Message_Delivery{Session: sess}
4620 }
4621
4622 func (r Network_Message_Delivery) Id(id int) Network_Message_Delivery {
4623 r.Options.Id = &id
4624 return r
4625 }
4626
4627 func (r Network_Message_Delivery) Mask(mask string) Network_Message_Delivery {
4628 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
4629 mask = fmt.Sprintf("mask[%s]", mask)
4630 }
4631
4632 r.Options.Mask = mask
4633 return r
4634 }
4635
4636 func (r Network_Message_Delivery) Filter(filter string) Network_Message_Delivery {
4637 r.Options.Filter = filter
4638 return r
4639 }
4640
4641 func (r Network_Message_Delivery) Limit(limit int) Network_Message_Delivery {
4642 r.Options.Limit = &limit
4643 return r
4644 }
4645
4646 func (r Network_Message_Delivery) Offset(offset int) Network_Message_Delivery {
4647 r.Options.Offset = &offset
4648 return r
4649 }
4650
4651 // no documentation yet
4652 func (r Network_Message_Delivery) EditObject(templateObject *datatypes.Network_Message_Delivery) (resp bool, err error) {
4653 params := []interface{}{
4654 templateObject,
4655 }
4656 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery", "editObject", params, &r.Options, &resp)
4657 return
4658 }
4659
4660 // Retrieve The SoftLayer customer account that a network message delivery account belongs to.
4661 func (r Network_Message_Delivery) GetAccount() (resp datatypes.Account, err error) {
4662 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery", "getAccount", nil, &r.Options, &resp)
4663 return
4664 }
4665
4666 // Retrieve The billing item for a network message delivery account.
4667 func (r Network_Message_Delivery) GetBillingItem() (resp datatypes.Billing_Item, err error) {
4668 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery", "getBillingItem", nil, &r.Options, &resp)
4669 return
4670 }
4671
4672 // no documentation yet
4673 func (r Network_Message_Delivery) GetObject() (resp datatypes.Network_Message_Delivery, err error) {
4674 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery", "getObject", nil, &r.Options, &resp)
4675 return
4676 }
4677
4678 // Retrieve The message delivery type of a network message delivery account.
4679 func (r Network_Message_Delivery) GetType() (resp datatypes.Network_Message_Delivery_Type, err error) {
4680 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery", "getType", nil, &r.Options, &resp)
4681 return
4682 }
4683
4684 // Retrieve a list of upgradable items available for network message delivery.
4685 func (r Network_Message_Delivery) GetUpgradeItemPrices() (resp []datatypes.Product_Item_Price, err error) {
4686 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery", "getUpgradeItemPrices", nil, &r.Options, &resp)
4687 return
4688 }
4689
4690 // Retrieve The vendor for a network message delivery account.
4691 func (r Network_Message_Delivery) GetVendor() (resp datatypes.Network_Message_Delivery_Vendor, err error) {
4692 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery", "getVendor", nil, &r.Options, &resp)
4693 return
4694 }
4695
4696 // no documentation yet
4697 type Network_Message_Delivery_Email_Sendgrid struct {
4698 Session session.SLSession
4699 Options sl.Options
4700 }
4701
4702 // GetNetworkMessageDeliveryEmailSendgridService returns an instance of the Network_Message_Delivery_Email_Sendgrid SoftLayer service
4703 func GetNetworkMessageDeliveryEmailSendgridService(sess session.SLSession) Network_Message_Delivery_Email_Sendgrid {
4704 return Network_Message_Delivery_Email_Sendgrid{Session: sess}
4705 }
4706
4707 func (r Network_Message_Delivery_Email_Sendgrid) Id(id int) Network_Message_Delivery_Email_Sendgrid {
4708 r.Options.Id = &id
4709 return r
4710 }
4711
4712 func (r Network_Message_Delivery_Email_Sendgrid) Mask(mask string) Network_Message_Delivery_Email_Sendgrid {
4713 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
4714 mask = fmt.Sprintf("mask[%s]", mask)
4715 }
4716
4717 r.Options.Mask = mask
4718 return r
4719 }
4720
4721 func (r Network_Message_Delivery_Email_Sendgrid) Filter(filter string) Network_Message_Delivery_Email_Sendgrid {
4722 r.Options.Filter = filter
4723 return r
4724 }
4725
4726 func (r Network_Message_Delivery_Email_Sendgrid) Limit(limit int) Network_Message_Delivery_Email_Sendgrid {
4727 r.Options.Limit = &limit
4728 return r
4729 }
4730
4731 func (r Network_Message_Delivery_Email_Sendgrid) Offset(offset int) Network_Message_Delivery_Email_Sendgrid {
4732 r.Options.Offset = &offset
4733 return r
4734 }
4735
4736 // no documentation yet
4737 func (r Network_Message_Delivery_Email_Sendgrid) AddUnsubscribeEmailAddress(emailAddress *string) (resp bool, err error) {
4738 params := []interface{}{
4739 emailAddress,
4740 }
4741 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "addUnsubscribeEmailAddress", params, &r.Options, &resp)
4742 return
4743 }
4744
4745 // no documentation yet
4746 func (r Network_Message_Delivery_Email_Sendgrid) DeleteEmailListEntries(list *string, entries []string) (resp bool, err error) {
4747 params := []interface{}{
4748 list,
4749 entries,
4750 }
4751 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "deleteEmailListEntries", params, &r.Options, &resp)
4752 return
4753 }
4754
4755 // no documentation yet
4756 func (r Network_Message_Delivery_Email_Sendgrid) DisableSmtpAccess(disable *bool) (resp bool, err error) {
4757 params := []interface{}{
4758 disable,
4759 }
4760 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "disableSmtpAccess", params, &r.Options, &resp)
4761 return
4762 }
4763
4764 // no documentation yet
4765 func (r Network_Message_Delivery_Email_Sendgrid) EditObject(templateObject *datatypes.Network_Message_Delivery) (resp bool, err error) {
4766 params := []interface{}{
4767 templateObject,
4768 }
4769 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "editObject", params, &r.Options, &resp)
4770 return
4771 }
4772
4773 // no documentation yet
4774 func (r Network_Message_Delivery_Email_Sendgrid) EnableSmtpAccess(enable *bool) (resp bool, err error) {
4775 params := []interface{}{
4776 enable,
4777 }
4778 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "enableSmtpAccess", params, &r.Options, &resp)
4779 return
4780 }
4781
4782 // Retrieve The SoftLayer customer account that a network message delivery account belongs to.
4783 func (r Network_Message_Delivery_Email_Sendgrid) GetAccount() (resp datatypes.Account, err error) {
4784 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "getAccount", nil, &r.Options, &resp)
4785 return
4786 }
4787
4788 // no documentation yet
4789 func (r Network_Message_Delivery_Email_Sendgrid) GetAccountOverview() (resp datatypes.Container_Network_Message_Delivery_Email_Sendgrid_Account, err error) {
4790 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "getAccountOverview", nil, &r.Options, &resp)
4791 return
4792 }
4793
4794 // Retrieve The billing item for a network message delivery account.
4795 func (r Network_Message_Delivery_Email_Sendgrid) GetBillingItem() (resp datatypes.Billing_Item, err error) {
4796 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "getBillingItem", nil, &r.Options, &resp)
4797 return
4798 }
4799
4800 // Retrieve The contact e-mail address used by SendGrid.
4801 func (r Network_Message_Delivery_Email_Sendgrid) GetEmailAddress() (resp string, err error) {
4802 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "getEmailAddress", nil, &r.Options, &resp)
4803 return
4804 }
4805
4806 // no documentation yet
4807 func (r Network_Message_Delivery_Email_Sendgrid) GetEmailList(list *string) (resp []datatypes.Container_Network_Message_Delivery_Email_Sendgrid_List_Entry, err error) {
4808 params := []interface{}{
4809 list,
4810 }
4811 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "getEmailList", params, &r.Options, &resp)
4812 return
4813 }
4814
4815 // no documentation yet
4816 func (r Network_Message_Delivery_Email_Sendgrid) GetObject() (resp datatypes.Network_Message_Delivery_Email_Sendgrid, err error) {
4817 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "getObject", nil, &r.Options, &resp)
4818 return
4819 }
4820
4821 // no documentation yet
4822 func (r Network_Message_Delivery_Email_Sendgrid) GetOfferingsList() (resp []datatypes.Container_Network_Message_Delivery_Email_Sendgrid_Catalog_Item, err error) {
4823 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "getOfferingsList", nil, &r.Options, &resp)
4824 return
4825 }
4826
4827 // Retrieve A flag that determines if a SendGrid e-mail delivery account has access to send mail through the SendGrid SMTP server.
4828 func (r Network_Message_Delivery_Email_Sendgrid) GetSmtpAccess() (resp string, err error) {
4829 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "getSmtpAccess", nil, &r.Options, &resp)
4830 return
4831 }
4832
4833 // no documentation yet
4834 func (r Network_Message_Delivery_Email_Sendgrid) GetStatistics(options *datatypes.Container_Network_Message_Delivery_Email_Sendgrid_Statistics_Options) (resp []datatypes.Container_Network_Message_Delivery_Email_Sendgrid_Statistics, err error) {
4835 params := []interface{}{
4836 options,
4837 }
4838 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "getStatistics", params, &r.Options, &resp)
4839 return
4840 }
4841
4842 // no documentation yet
4843 func (r Network_Message_Delivery_Email_Sendgrid) GetStatisticsGraph(options *datatypes.Container_Network_Message_Delivery_Email_Sendgrid_Statistics_Options) (resp datatypes.Container_Network_Message_Delivery_Email_Sendgrid_Statistics_Graph, err error) {
4844 params := []interface{}{
4845 options,
4846 }
4847 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "getStatisticsGraph", params, &r.Options, &resp)
4848 return
4849 }
4850
4851 // Retrieve The message delivery type of a network message delivery account.
4852 func (r Network_Message_Delivery_Email_Sendgrid) GetType() (resp datatypes.Network_Message_Delivery_Type, err error) {
4853 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "getType", nil, &r.Options, &resp)
4854 return
4855 }
4856
4857 // Retrieve a list of upgradable items available for network message delivery.
4858 func (r Network_Message_Delivery_Email_Sendgrid) GetUpgradeItemPrices() (resp []datatypes.Product_Item_Price, err error) {
4859 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "getUpgradeItemPrices", nil, &r.Options, &resp)
4860 return
4861 }
4862
4863 // Retrieve The vendor for a network message delivery account.
4864 func (r Network_Message_Delivery_Email_Sendgrid) GetVendor() (resp datatypes.Network_Message_Delivery_Vendor, err error) {
4865 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "getVendor", nil, &r.Options, &resp)
4866 return
4867 }
4868
4869 // no documentation yet
4870 func (r Network_Message_Delivery_Email_Sendgrid) SingleSignOn() (resp string, err error) {
4871 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "singleSignOn", nil, &r.Options, &resp)
4872 return
4873 }
4874
4875 // no documentation yet
4876 func (r Network_Message_Delivery_Email_Sendgrid) UpdateEmailAddress(emailAddress *string) (resp bool, err error) {
4877 params := []interface{}{
4878 emailAddress,
4879 }
4880 err = r.Session.DoRequest("SoftLayer_Network_Message_Delivery_Email_Sendgrid", "updateEmailAddress", params, &r.Options, &resp)
4881 return
4882 }
4883
4884 // no documentation yet
4885 type Network_Monitor struct {
4886 Session session.SLSession
4887 Options sl.Options
4888 }
4889
4890 // GetNetworkMonitorService returns an instance of the Network_Monitor SoftLayer service
4891 func GetNetworkMonitorService(sess session.SLSession) Network_Monitor {
4892 return Network_Monitor{Session: sess}
4893 }
4894
4895 func (r Network_Monitor) Id(id int) Network_Monitor {
4896 r.Options.Id = &id
4897 return r
4898 }
4899
4900 func (r Network_Monitor) Mask(mask string) Network_Monitor {
4901 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
4902 mask = fmt.Sprintf("mask[%s]", mask)
4903 }
4904
4905 r.Options.Mask = mask
4906 return r
4907 }
4908
4909 func (r Network_Monitor) Filter(filter string) Network_Monitor {
4910 r.Options.Filter = filter
4911 return r
4912 }
4913
4914 func (r Network_Monitor) Limit(limit int) Network_Monitor {
4915 r.Options.Limit = &limit
4916 return r
4917 }
4918
4919 func (r Network_Monitor) Offset(offset int) Network_Monitor {
4920 r.Options.Offset = &offset
4921 return r
4922 }
4923
4924 // This will return an arrayObject of objects containing the ipaddresses. Using an string parameter you can send a partial ipaddress to search within a given ipaddress. You can also set the max limit as well using the setting the resultLimit.
4925 func (r Network_Monitor) GetIpAddressesByHardware(hardware *datatypes.Hardware, partialIpAddress *string) (resp []datatypes.Network_Subnet_IpAddress, err error) {
4926 params := []interface{}{
4927 hardware,
4928 partialIpAddress,
4929 }
4930 err = r.Session.DoRequest("SoftLayer_Network_Monitor", "getIpAddressesByHardware", params, &r.Options, &resp)
4931 return
4932 }
4933
4934 // This will return an arrayObject of objects containing the ipaddresses. Using an string parameter you can send a partial ipaddress to search within a given ipaddress. You can also set the max limit as well using the setting the resultLimit.
4935 func (r Network_Monitor) GetIpAddressesByVirtualGuest(guest *datatypes.Virtual_Guest, partialIpAddress *string) (resp []datatypes.Network_Subnet_IpAddress, err error) {
4936 params := []interface{}{
4937 guest,
4938 partialIpAddress,
4939 }
4940 err = r.Session.DoRequest("SoftLayer_Network_Monitor", "getIpAddressesByVirtualGuest", params, &r.Options, &resp)
4941 return
4942 }
4943
4944 // The Monitoring_Query_Host type represents a monitoring instance. It consists of a hardware ID to monitor, an IP address attached to that hardware ID, a method of monitoring, and what to do in the instance that the monitor ever fails.
4945 type Network_Monitor_Version1_Query_Host struct {
4946 Session session.SLSession
4947 Options sl.Options
4948 }
4949
4950 // GetNetworkMonitorVersion1QueryHostService returns an instance of the Network_Monitor_Version1_Query_Host SoftLayer service
4951 func GetNetworkMonitorVersion1QueryHostService(sess session.SLSession) Network_Monitor_Version1_Query_Host {
4952 return Network_Monitor_Version1_Query_Host{Session: sess}
4953 }
4954
4955 func (r Network_Monitor_Version1_Query_Host) Id(id int) Network_Monitor_Version1_Query_Host {
4956 r.Options.Id = &id
4957 return r
4958 }
4959
4960 func (r Network_Monitor_Version1_Query_Host) Mask(mask string) Network_Monitor_Version1_Query_Host {
4961 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
4962 mask = fmt.Sprintf("mask[%s]", mask)
4963 }
4964
4965 r.Options.Mask = mask
4966 return r
4967 }
4968
4969 func (r Network_Monitor_Version1_Query_Host) Filter(filter string) Network_Monitor_Version1_Query_Host {
4970 r.Options.Filter = filter
4971 return r
4972 }
4973
4974 func (r Network_Monitor_Version1_Query_Host) Limit(limit int) Network_Monitor_Version1_Query_Host {
4975 r.Options.Limit = &limit
4976 return r
4977 }
4978
4979 func (r Network_Monitor_Version1_Query_Host) Offset(offset int) Network_Monitor_Version1_Query_Host {
4980 r.Options.Offset = &offset
4981 return r
4982 }
4983
4984 // Passing in an unsaved instances of a Query_Host object into this function will create the object and return the results to the user.
4985 func (r Network_Monitor_Version1_Query_Host) CreateObject(templateObject *datatypes.Network_Monitor_Version1_Query_Host) (resp datatypes.Network_Monitor_Version1_Query_Host, err error) {
4986 params := []interface{}{
4987 templateObject,
4988 }
4989 err = r.Session.DoRequest("SoftLayer_Network_Monitor_Version1_Query_Host", "createObject", params, &r.Options, &resp)
4990 return
4991 }
4992
4993 // Passing in a collection of unsaved instances of Query_Host objects into this function will create all objects and return the results to the user.
4994 func (r Network_Monitor_Version1_Query_Host) CreateObjects(templateObjects []datatypes.Network_Monitor_Version1_Query_Host) (resp []datatypes.Network_Monitor_Version1_Query_Host, err error) {
4995 params := []interface{}{
4996 templateObjects,
4997 }
4998 err = r.Session.DoRequest("SoftLayer_Network_Monitor_Version1_Query_Host", "createObjects", params, &r.Options, &resp)
4999 return
5000 }
5001
5002 // Like any other API object, the monitoring objects can be deleted by passing an instance of them into this function. The ID on the object must be set.
5003 func (r Network_Monitor_Version1_Query_Host) DeleteObject() (resp bool, err error) {
5004 err = r.Session.DoRequest("SoftLayer_Network_Monitor_Version1_Query_Host", "deleteObject", nil, &r.Options, &resp)
5005 return
5006 }
5007
5008 // Like any other API object, the monitoring objects can be deleted by passing an instance of them into this function. The ID on the object must be set.
5009 func (r Network_Monitor_Version1_Query_Host) DeleteObjects(templateObjects []datatypes.Network_Monitor_Version1_Query_Host) (resp bool, err error) {
5010 params := []interface{}{
5011 templateObjects,
5012 }
5013 err = r.Session.DoRequest("SoftLayer_Network_Monitor_Version1_Query_Host", "deleteObjects", params, &r.Options, &resp)
5014 return
5015 }
5016
5017 // Like any other API object, the monitoring objects can have their exposed properties edited by passing in a modified version of the object.
5018 func (r Network_Monitor_Version1_Query_Host) EditObject(templateObject *datatypes.Network_Monitor_Version1_Query_Host) (resp bool, err error) {
5019 params := []interface{}{
5020 templateObject,
5021 }
5022 err = r.Session.DoRequest("SoftLayer_Network_Monitor_Version1_Query_Host", "editObject", params, &r.Options, &resp)
5023 return
5024 }
5025
5026 // Like any other API object, the monitoring objects can have their exposed properties edited by passing in a modified version of the object.
5027 func (r Network_Monitor_Version1_Query_Host) EditObjects(templateObjects []datatypes.Network_Monitor_Version1_Query_Host) (resp bool, err error) {
5028 params := []interface{}{
5029 templateObjects,
5030 }
5031 err = r.Session.DoRequest("SoftLayer_Network_Monitor_Version1_Query_Host", "editObjects", params, &r.Options, &resp)
5032 return
5033 }
5034
5035 // This method returns all Query_Host objects associated with the passed in hardware ID as long as that hardware ID is owned by the current user's account.
5036 //
5037 // This behavior can also be accomplished by simply tapping networkMonitors on the Hardware_Server object.
5038 func (r Network_Monitor_Version1_Query_Host) FindByHardwareId(hardwareId *int) (resp []datatypes.Network_Monitor_Version1_Query_Host, err error) {
5039 params := []interface{}{
5040 hardwareId,
5041 }
5042 err = r.Session.DoRequest("SoftLayer_Network_Monitor_Version1_Query_Host", "findByHardwareId", params, &r.Options, &resp)
5043 return
5044 }
5045
5046 // Retrieve The hardware that is being monitored by this monitoring instance
5047 func (r Network_Monitor_Version1_Query_Host) GetHardware() (resp datatypes.Hardware, err error) {
5048 err = r.Session.DoRequest("SoftLayer_Network_Monitor_Version1_Query_Host", "getHardware", nil, &r.Options, &resp)
5049 return
5050 }
5051
5052 // Retrieve The most recent result for this particular monitoring instance.
5053 func (r Network_Monitor_Version1_Query_Host) GetLastResult() (resp datatypes.Network_Monitor_Version1_Query_Result, err error) {
5054 err = r.Session.DoRequest("SoftLayer_Network_Monitor_Version1_Query_Host", "getLastResult", nil, &r.Options, &resp)
5055 return
5056 }
5057
5058 // getObject retrieves the SoftLayer_Network_Monitor_Version1_Query_Host object whose ID number corresponds to the ID number of the init parameter passed to the SoftLayer_Network_Monitor_Version1_Query_Host service. You can only retrieve query hosts attached to hardware that belong to your account.
5059 func (r Network_Monitor_Version1_Query_Host) GetObject() (resp datatypes.Network_Monitor_Version1_Query_Host, err error) {
5060 err = r.Session.DoRequest("SoftLayer_Network_Monitor_Version1_Query_Host", "getObject", nil, &r.Options, &resp)
5061 return
5062 }
5063
5064 // Retrieve The type of monitoring query that is executed when this hardware is monitored.
5065 func (r Network_Monitor_Version1_Query_Host) GetQueryType() (resp datatypes.Network_Monitor_Version1_Query_Type, err error) {
5066 err = r.Session.DoRequest("SoftLayer_Network_Monitor_Version1_Query_Host", "getQueryType", nil, &r.Options, &resp)
5067 return
5068 }
5069
5070 // Retrieve The action taken when a monitor fails.
5071 func (r Network_Monitor_Version1_Query_Host) GetResponseAction() (resp datatypes.Network_Monitor_Version1_Query_ResponseType, err error) {
5072 err = r.Session.DoRequest("SoftLayer_Network_Monitor_Version1_Query_Host", "getResponseAction", nil, &r.Options, &resp)
5073 return
5074 }
5075
5076 // The monitoring stratum type stores the maximum level of the various components of the monitoring system that a particular hardware object has access to. This object cannot be accessed by ID, and cannot be modified. The user can access this object through Hardware_Server->availableMonitoring.
5077 //
5078 // There are two values on this object that are important:
5079 // # monitorLevel determines the highest level of SoftLayer_Network_Monitor_Version1_Query_Type object that can be placed in a monitoring instance on this server
5080 // # responseLevel determines the highest level of SoftLayer_Network_Monitor_Version1_Query_ResponseType object that can be placed in a monitoring instance on this server
5081 //
5082 // Also note that the query type and response types are available through getAllQueryTypes and getAllResponseTypes, respectively.
5083 type Network_Monitor_Version1_Query_Host_Stratum struct {
5084 Session session.SLSession
5085 Options sl.Options
5086 }
5087
5088 // GetNetworkMonitorVersion1QueryHostStratumService returns an instance of the Network_Monitor_Version1_Query_Host_Stratum SoftLayer service
5089 func GetNetworkMonitorVersion1QueryHostStratumService(sess session.SLSession) Network_Monitor_Version1_Query_Host_Stratum {
5090 return Network_Monitor_Version1_Query_Host_Stratum{Session: sess}
5091 }
5092
5093 func (r Network_Monitor_Version1_Query_Host_Stratum) Id(id int) Network_Monitor_Version1_Query_Host_Stratum {
5094 r.Options.Id = &id
5095 return r
5096 }
5097
5098 func (r Network_Monitor_Version1_Query_Host_Stratum) Mask(mask string) Network_Monitor_Version1_Query_Host_Stratum {
5099 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
5100 mask = fmt.Sprintf("mask[%s]", mask)
5101 }
5102
5103 r.Options.Mask = mask
5104 return r
5105 }
5106
5107 func (r Network_Monitor_Version1_Query_Host_Stratum) Filter(filter string) Network_Monitor_Version1_Query_Host_Stratum {
5108 r.Options.Filter = filter
5109 return r
5110 }
5111
5112 func (r Network_Monitor_Version1_Query_Host_Stratum) Limit(limit int) Network_Monitor_Version1_Query_Host_Stratum {
5113 r.Options.Limit = &limit
5114 return r
5115 }
5116
5117 func (r Network_Monitor_Version1_Query_Host_Stratum) Offset(offset int) Network_Monitor_Version1_Query_Host_Stratum {
5118 r.Options.Offset = &offset
5119 return r
5120 }
5121
5122 // Calling this function returns all possible query type objects. These objects are to be used to set the values on the SoftLayer_Network_Monitor_Version1_Query_Host when creating new monitoring instances.
5123 func (r Network_Monitor_Version1_Query_Host_Stratum) GetAllQueryTypes() (resp []datatypes.Network_Monitor_Version1_Query_Type, err error) {
5124 err = r.Session.DoRequest("SoftLayer_Network_Monitor_Version1_Query_Host_Stratum", "getAllQueryTypes", nil, &r.Options, &resp)
5125 return
5126 }
5127
5128 // Calling this function returns all possible response type objects. These objects are to be used to set the values on the SoftLayer_Network_Monitor_Version1_Query_Host when creating new monitoring instances.
5129 func (r Network_Monitor_Version1_Query_Host_Stratum) GetAllResponseTypes() (resp []datatypes.Network_Monitor_Version1_Query_ResponseType, err error) {
5130 err = r.Session.DoRequest("SoftLayer_Network_Monitor_Version1_Query_Host_Stratum", "getAllResponseTypes", nil, &r.Options, &resp)
5131 return
5132 }
5133
5134 // Retrieve The hardware object that these monitoring permissions applies to.
5135 func (r Network_Monitor_Version1_Query_Host_Stratum) GetHardware() (resp datatypes.Hardware, err error) {
5136 err = r.Session.DoRequest("SoftLayer_Network_Monitor_Version1_Query_Host_Stratum", "getHardware", nil, &r.Options, &resp)
5137 return
5138 }
5139
5140 // getObject retrieves the SoftLayer_Network_Monitor_Version1_Query_Host_Stratum object whose ID number corresponds to the ID number of the init parameter passed to the SoftLayer_Network_Monitor_Version1_Query_Host_Stratum service. You can only retrieve strata attached to hardware that belong to your account.
5141 func (r Network_Monitor_Version1_Query_Host_Stratum) GetObject() (resp datatypes.Network_Monitor_Version1_Query_Host_Stratum, err error) {
5142 err = r.Session.DoRequest("SoftLayer_Network_Monitor_Version1_Query_Host_Stratum", "getObject", nil, &r.Options, &resp)
5143 return
5144 }
5145
5146 // no documentation yet
5147 type Network_Pod struct {
5148 Session session.SLSession
5149 Options sl.Options
5150 }
5151
5152 // GetNetworkPodService returns an instance of the Network_Pod SoftLayer service
5153 func GetNetworkPodService(sess session.SLSession) Network_Pod {
5154 return Network_Pod{Session: sess}
5155 }
5156
5157 func (r Network_Pod) Id(id int) Network_Pod {
5158 r.Options.Id = &id
5159 return r
5160 }
5161
5162 func (r Network_Pod) Mask(mask string) Network_Pod {
5163 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
5164 mask = fmt.Sprintf("mask[%s]", mask)
5165 }
5166
5167 r.Options.Mask = mask
5168 return r
5169 }
5170
5171 func (r Network_Pod) Filter(filter string) Network_Pod {
5172 r.Options.Filter = filter
5173 return r
5174 }
5175
5176 func (r Network_Pod) Limit(limit int) Network_Pod {
5177 r.Options.Limit = &limit
5178 return r
5179 }
5180
5181 func (r Network_Pod) Offset(offset int) Network_Pod {
5182 r.Options.Offset = &offset
5183 return r
5184 }
5185
5186 // Filtering is supported for “datacenterName“ and “capabilities“. When filtering on capabilities, use the “in“ operation. Pods fulfilling all capabilities provided will be returned. “datacenterName“ represents an operation against “SoftLayer_Location_Datacenter.name`, such as dal05 when referring to Dallas 5.
5187 //
5188 // ```Examples:```
5189 //
5190 // List Pods in a specific datacenter. <pre> datacenterName.operation = 'dal06' </pre>
5191 //
5192 // List Pods in a geographical area. <pre> datacenterName.operation = '^= dal' </pre>
5193 //
5194 // List Pods in a region fulfilling capabilities. <pre> datacenterName.operation = '^= dal' capabilities.operation = 'in' capabilities.options = [ { name = data, value = [SOME_CAPABILITY, ANOTHER_CAPABILITY] } ] </pre>
5195 func (r Network_Pod) GetAllObjects() (resp []datatypes.Network_Pod, err error) {
5196 err = r.Session.DoRequest("SoftLayer_Network_Pod", "getAllObjects", nil, &r.Options, &resp)
5197 return
5198 }
5199
5200 // Provides the list of capabilities a Pod fulfills. See [[SoftLayer_Network_Pod/listCapabilities]] for more information on capabilities.
5201 func (r Network_Pod) GetCapabilities() (resp []string, err error) {
5202 err = r.Session.DoRequest("SoftLayer_Network_Pod", "getCapabilities", nil, &r.Options, &resp)
5203 return
5204 }
5205
5206 // Set the initialization parameter to the “name“ of the Pod to retrieve.
5207 func (r Network_Pod) GetObject() (resp datatypes.Network_Pod, err error) {
5208 err = r.Session.DoRequest("SoftLayer_Network_Pod", "getObject", nil, &r.Options, &resp)
5209 return
5210 }
5211
5212 // A capability is simply a string literal that denotes the availability of a feature. Capabilities are generally self describing, but any additional details concerning the implications of a capability will be documented elsewhere; usually by the Service or Operation related to it.
5213 func (r Network_Pod) ListCapabilities() (resp []string, err error) {
5214 err = r.Session.DoRequest("SoftLayer_Network_Pod", "listCapabilities", nil, &r.Options, &resp)
5215 return
5216 }
5217
5218 // The SoftLayer_Network_SecurityGroup data type contains general information for a single security group. A security group contains a set of IP filter [[SoftLayer_Network_SecurityGroup_Rule (type)|rules]] that define how to handle incoming (ingress) and outgoing (egress) traffic to both the public and private interfaces of a virtual server instance and a set of [[SoftLayer_Virtual_Network_SecurityGroup_NetworkComponentBinding (type)|bindings]] to associate virtual guest network components with the security group.
5219 type Network_SecurityGroup struct {
5220 Session session.SLSession
5221 Options sl.Options
5222 }
5223
5224 // GetNetworkSecurityGroupService returns an instance of the Network_SecurityGroup SoftLayer service
5225 func GetNetworkSecurityGroupService(sess session.SLSession) Network_SecurityGroup {
5226 return Network_SecurityGroup{Session: sess}
5227 }
5228
5229 func (r Network_SecurityGroup) Id(id int) Network_SecurityGroup {
5230 r.Options.Id = &id
5231 return r
5232 }
5233
5234 func (r Network_SecurityGroup) Mask(mask string) Network_SecurityGroup {
5235 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
5236 mask = fmt.Sprintf("mask[%s]", mask)
5237 }
5238
5239 r.Options.Mask = mask
5240 return r
5241 }
5242
5243 func (r Network_SecurityGroup) Filter(filter string) Network_SecurityGroup {
5244 r.Options.Filter = filter
5245 return r
5246 }
5247
5248 func (r Network_SecurityGroup) Limit(limit int) Network_SecurityGroup {
5249 r.Options.Limit = &limit
5250 return r
5251 }
5252
5253 func (r Network_SecurityGroup) Offset(offset int) Network_SecurityGroup {
5254 r.Options.Offset = &offset
5255 return r
5256 }
5257
5258 // Add new rules to a security group by sending in an array of template [[SoftLayer_Network_SecurityGroup_Rule (type)]] objects to be created.
5259 func (r Network_SecurityGroup) AddRules(ruleTemplates []datatypes.Network_SecurityGroup_Rule) (resp datatypes.Network_SecurityGroup_RequestRules, err error) {
5260 params := []interface{}{
5261 ruleTemplates,
5262 }
5263 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "addRules", params, &r.Options, &resp)
5264 return
5265 }
5266
5267 // Attach virtual guest network components to a security group by creating [[SoftLayer_Virtual_Network_SecurityGroup_NetworkComponentBinding (type)]] objects.
5268 func (r Network_SecurityGroup) AttachNetworkComponents(networkComponentIds []int) (resp datatypes.Network_SecurityGroup_Request, err error) {
5269 params := []interface{}{
5270 networkComponentIds,
5271 }
5272 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "attachNetworkComponents", params, &r.Options, &resp)
5273 return
5274 }
5275
5276 // Create a new security group.
5277 func (r Network_SecurityGroup) CreateObject(templateObject *datatypes.Network_SecurityGroup) (resp datatypes.Network_SecurityGroup, err error) {
5278 params := []interface{}{
5279 templateObject,
5280 }
5281 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "createObject", params, &r.Options, &resp)
5282 return
5283 }
5284
5285 // Create new security groups.
5286 func (r Network_SecurityGroup) CreateObjects(templateObjects []datatypes.Network_SecurityGroup) (resp []datatypes.Network_SecurityGroup, err error) {
5287 params := []interface{}{
5288 templateObjects,
5289 }
5290 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "createObjects", params, &r.Options, &resp)
5291 return
5292 }
5293
5294 // Delete a security group for an account. A security group cannot be deleted if any network components are attached or if the security group is a remote security group for a [[SoftLayer_Network_SecurityGroup_Rule (type)|rule]].
5295 func (r Network_SecurityGroup) DeleteObject() (resp bool, err error) {
5296 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "deleteObject", nil, &r.Options, &resp)
5297 return
5298 }
5299
5300 // Delete security groups for an account. A security group cannot be deleted if any network components are attached or if the security group is a remote security group for a [[SoftLayer_Network_SecurityGroup_Rule (type)|rule]].
5301 func (r Network_SecurityGroup) DeleteObjects(templateObjects []datatypes.Network_SecurityGroup) (resp bool, err error) {
5302 params := []interface{}{
5303 templateObjects,
5304 }
5305 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "deleteObjects", params, &r.Options, &resp)
5306 return
5307 }
5308
5309 // Detach virtual guest network components from a security group by deleting its [[SoftLayer_Virtual_Network_SecurityGroup_NetworkComponentBinding (type)]].
5310 func (r Network_SecurityGroup) DetachNetworkComponents(networkComponentIds []int) (resp datatypes.Network_SecurityGroup_Request, err error) {
5311 params := []interface{}{
5312 networkComponentIds,
5313 }
5314 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "detachNetworkComponents", params, &r.Options, &resp)
5315 return
5316 }
5317
5318 // Edit a security group.
5319 func (r Network_SecurityGroup) EditObject(templateObject *datatypes.Network_SecurityGroup) (resp bool, err error) {
5320 params := []interface{}{
5321 templateObject,
5322 }
5323 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "editObject", params, &r.Options, &resp)
5324 return
5325 }
5326
5327 // Edit security groups.
5328 func (r Network_SecurityGroup) EditObjects(templateObjects []datatypes.Network_SecurityGroup) (resp bool, err error) {
5329 params := []interface{}{
5330 templateObjects,
5331 }
5332 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "editObjects", params, &r.Options, &resp)
5333 return
5334 }
5335
5336 // Edit rules that belong to the security group. An array of skeleton [[SoftLayer_Network_SecurityGroup_Rule]] objects must be sent in with only the properties defined that you want to change. To edit a property to null, send in -1 for integer properties and "" for string properties. Unchanged properties are left alone.
5337 func (r Network_SecurityGroup) EditRules(ruleTemplates []datatypes.Network_SecurityGroup_Rule) (resp datatypes.Network_SecurityGroup_RequestRules, err error) {
5338 params := []interface{}{
5339 ruleTemplates,
5340 }
5341 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "editRules", params, &r.Options, &resp)
5342 return
5343 }
5344
5345 // Retrieve The account this security group belongs to.
5346 func (r Network_SecurityGroup) GetAccount() (resp datatypes.Account, err error) {
5347 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "getAccount", nil, &r.Options, &resp)
5348 return
5349 }
5350
5351 // no documentation yet
5352 func (r Network_SecurityGroup) GetAllObjects() (resp []datatypes.Network_SecurityGroup, err error) {
5353 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "getAllObjects", nil, &r.Options, &resp)
5354 return
5355 }
5356
5357 // List the current security group limits
5358 func (r Network_SecurityGroup) GetLimits() (resp []datatypes.Container_Network_SecurityGroup_Limit, err error) {
5359 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "getLimits", nil, &r.Options, &resp)
5360 return
5361 }
5362
5363 // Retrieve The network component bindings for this security group.
5364 func (r Network_SecurityGroup) GetNetworkComponentBindings() (resp []datatypes.Virtual_Network_SecurityGroup_NetworkComponentBinding, err error) {
5365 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "getNetworkComponentBindings", nil, &r.Options, &resp)
5366 return
5367 }
5368
5369 // no documentation yet
5370 func (r Network_SecurityGroup) GetObject() (resp datatypes.Network_SecurityGroup, err error) {
5371 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "getObject", nil, &r.Options, &resp)
5372 return
5373 }
5374
5375 // Retrieve The order bindings for this security group
5376 func (r Network_SecurityGroup) GetOrderBindings() (resp []datatypes.Network_SecurityGroup_OrderBinding, err error) {
5377 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "getOrderBindings", nil, &r.Options, &resp)
5378 return
5379 }
5380
5381 // Retrieve The rules for this security group.
5382 func (r Network_SecurityGroup) GetRules() (resp []datatypes.Network_SecurityGroup_Rule, err error) {
5383 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "getRules", nil, &r.Options, &resp)
5384 return
5385 }
5386
5387 // List the data centers that currently support the use of security groups.
5388 func (r Network_SecurityGroup) GetSupportedDataCenters() (resp []datatypes.Location, err error) {
5389 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "getSupportedDataCenters", nil, &r.Options, &resp)
5390 return
5391 }
5392
5393 // Remove rules from a security group.
5394 func (r Network_SecurityGroup) RemoveRules(ruleIds []int) (resp datatypes.Network_SecurityGroup_RequestRules, err error) {
5395 params := []interface{}{
5396 ruleIds,
5397 }
5398 err = r.Session.DoRequest("SoftLayer_Network_SecurityGroup", "removeRules", params, &r.Options, &resp)
5399 return
5400 }
5401
5402 // DEPRECATED
5403 // Deprecated: This function has been marked as deprecated.
5404 type Network_Security_Scanner_Request struct {
5405 Session session.SLSession
5406 Options sl.Options
5407 }
5408
5409 // GetNetworkSecurityScannerRequestService returns an instance of the Network_Security_Scanner_Request SoftLayer service
5410 func GetNetworkSecurityScannerRequestService(sess session.SLSession) Network_Security_Scanner_Request {
5411 return Network_Security_Scanner_Request{Session: sess}
5412 }
5413
5414 func (r Network_Security_Scanner_Request) Id(id int) Network_Security_Scanner_Request {
5415 r.Options.Id = &id
5416 return r
5417 }
5418
5419 func (r Network_Security_Scanner_Request) Mask(mask string) Network_Security_Scanner_Request {
5420 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
5421 mask = fmt.Sprintf("mask[%s]", mask)
5422 }
5423
5424 r.Options.Mask = mask
5425 return r
5426 }
5427
5428 func (r Network_Security_Scanner_Request) Filter(filter string) Network_Security_Scanner_Request {
5429 r.Options.Filter = filter
5430 return r
5431 }
5432
5433 func (r Network_Security_Scanner_Request) Limit(limit int) Network_Security_Scanner_Request {
5434 r.Options.Limit = &limit
5435 return r
5436 }
5437
5438 func (r Network_Security_Scanner_Request) Offset(offset int) Network_Security_Scanner_Request {
5439 r.Options.Offset = &offset
5440 return r
5441 }
5442
5443 // Create a new vulnerability scan request. New scan requests are picked up every five minutes, and the time to complete an actual scan may vary. Once the scan is finished, it can take up to another five minutes for the report to be generated and accessible.
5444 // Deprecated: This function has been marked as deprecated.
5445 func (r Network_Security_Scanner_Request) CreateObject(templateObject *datatypes.Network_Security_Scanner_Request) (resp datatypes.Network_Security_Scanner_Request, err error) {
5446 params := []interface{}{
5447 templateObject,
5448 }
5449 err = r.Session.DoRequest("SoftLayer_Network_Security_Scanner_Request", "createObject", params, &r.Options, &resp)
5450 return
5451 }
5452
5453 // Retrieve The account associated with a security scan request.
5454 func (r Network_Security_Scanner_Request) GetAccount() (resp datatypes.Account, err error) {
5455 err = r.Session.DoRequest("SoftLayer_Network_Security_Scanner_Request", "getAccount", nil, &r.Options, &resp)
5456 return
5457 }
5458
5459 // Retrieve The virtual guest a security scan is run against.
5460 func (r Network_Security_Scanner_Request) GetGuest() (resp datatypes.Virtual_Guest, err error) {
5461 err = r.Session.DoRequest("SoftLayer_Network_Security_Scanner_Request", "getGuest", nil, &r.Options, &resp)
5462 return
5463 }
5464
5465 // Retrieve The hardware a security scan is run against.
5466 func (r Network_Security_Scanner_Request) GetHardware() (resp datatypes.Hardware, err error) {
5467 err = r.Session.DoRequest("SoftLayer_Network_Security_Scanner_Request", "getHardware", nil, &r.Options, &resp)
5468 return
5469 }
5470
5471 // DEPRECATED
5472 func (r Network_Security_Scanner_Request) GetObject() (resp datatypes.Network_Security_Scanner_Request, err error) {
5473 err = r.Session.DoRequest("SoftLayer_Network_Security_Scanner_Request", "getObject", nil, &r.Options, &resp)
5474 return
5475 }
5476
5477 // DEPRECATED
5478 // Deprecated: This function has been marked as deprecated.
5479 func (r Network_Security_Scanner_Request) GetReport() (resp string, err error) {
5480 err = r.Session.DoRequest("SoftLayer_Network_Security_Scanner_Request", "getReport", nil, &r.Options, &resp)
5481 return
5482 }
5483
5484 // Retrieve Flag whether the requestor owns the hardware the scan was run on. This flag will return for hardware servers only, virtual servers will result in a null return even if you have a request out for them.
5485 func (r Network_Security_Scanner_Request) GetRequestorOwnedFlag() (resp bool, err error) {
5486 err = r.Session.DoRequest("SoftLayer_Network_Security_Scanner_Request", "getRequestorOwnedFlag", nil, &r.Options, &resp)
5487 return
5488 }
5489
5490 // Retrieve A security scan request's status.
5491 func (r Network_Security_Scanner_Request) GetStatus() (resp datatypes.Network_Security_Scanner_Request_Status, err error) {
5492 err = r.Session.DoRequest("SoftLayer_Network_Security_Scanner_Request", "getStatus", nil, &r.Options, &resp)
5493 return
5494 }
5495
5496 // The SoftLayer_Network_Service_Vpn_Overrides data type contains information relating user ids to subnet ids when VPN access is manually configured. It is essentially an entry in a 'white list' of subnets a SoftLayer portal VPN user may access.
5497 type Network_Service_Vpn_Overrides struct {
5498 Session session.SLSession
5499 Options sl.Options
5500 }
5501
5502 // GetNetworkServiceVpnOverridesService returns an instance of the Network_Service_Vpn_Overrides SoftLayer service
5503 func GetNetworkServiceVpnOverridesService(sess session.SLSession) Network_Service_Vpn_Overrides {
5504 return Network_Service_Vpn_Overrides{Session: sess}
5505 }
5506
5507 func (r Network_Service_Vpn_Overrides) Id(id int) Network_Service_Vpn_Overrides {
5508 r.Options.Id = &id
5509 return r
5510 }
5511
5512 func (r Network_Service_Vpn_Overrides) Mask(mask string) Network_Service_Vpn_Overrides {
5513 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
5514 mask = fmt.Sprintf("mask[%s]", mask)
5515 }
5516
5517 r.Options.Mask = mask
5518 return r
5519 }
5520
5521 func (r Network_Service_Vpn_Overrides) Filter(filter string) Network_Service_Vpn_Overrides {
5522 r.Options.Filter = filter
5523 return r
5524 }
5525
5526 func (r Network_Service_Vpn_Overrides) Limit(limit int) Network_Service_Vpn_Overrides {
5527 r.Options.Limit = &limit
5528 return r
5529 }
5530
5531 func (r Network_Service_Vpn_Overrides) Offset(offset int) Network_Service_Vpn_Overrides {
5532 r.Options.Offset = &offset
5533 return r
5534 }
5535
5536 // Create Softlayer portal user VPN overrides.
5537 func (r Network_Service_Vpn_Overrides) CreateObjects(templateObjects []datatypes.Network_Service_Vpn_Overrides) (resp bool, err error) {
5538 params := []interface{}{
5539 templateObjects,
5540 }
5541 err = r.Session.DoRequest("SoftLayer_Network_Service_Vpn_Overrides", "createObjects", params, &r.Options, &resp)
5542 return
5543 }
5544
5545 // Use this method to delete a single SoftLayer portal VPN user subnet override.
5546 func (r Network_Service_Vpn_Overrides) DeleteObject() (resp bool, err error) {
5547 err = r.Session.DoRequest("SoftLayer_Network_Service_Vpn_Overrides", "deleteObject", nil, &r.Options, &resp)
5548 return
5549 }
5550
5551 // Use this method to delete a collection of SoftLayer portal VPN user subnet overrides.
5552 func (r Network_Service_Vpn_Overrides) DeleteObjects(templateObjects []datatypes.Network_Service_Vpn_Overrides) (resp bool, err error) {
5553 params := []interface{}{
5554 templateObjects,
5555 }
5556 err = r.Session.DoRequest("SoftLayer_Network_Service_Vpn_Overrides", "deleteObjects", params, &r.Options, &resp)
5557 return
5558 }
5559
5560 // no documentation yet
5561 func (r Network_Service_Vpn_Overrides) GetObject() (resp datatypes.Network_Service_Vpn_Overrides, err error) {
5562 err = r.Session.DoRequest("SoftLayer_Network_Service_Vpn_Overrides", "getObject", nil, &r.Options, &resp)
5563 return
5564 }
5565
5566 // Retrieve Subnet components accessible by a SoftLayer VPN portal user.
5567 func (r Network_Service_Vpn_Overrides) GetSubnet() (resp datatypes.Network_Subnet, err error) {
5568 err = r.Session.DoRequest("SoftLayer_Network_Service_Vpn_Overrides", "getSubnet", nil, &r.Options, &resp)
5569 return
5570 }
5571
5572 // Retrieve SoftLayer VPN portal user.
5573 func (r Network_Service_Vpn_Overrides) GetUser() (resp datatypes.User_Customer, err error) {
5574 err = r.Session.DoRequest("SoftLayer_Network_Service_Vpn_Overrides", "getUser", nil, &r.Options, &resp)
5575 return
5576 }
5577
5578 // The SoftLayer_Network_Storage data type contains general information regarding a Storage product such as account id, access username and password, the Storage product type, and the server the Storage service is associated with. Currently, only EVault backup storage has an associated server.
5579 type Network_Storage struct {
5580 Session session.SLSession
5581 Options sl.Options
5582 }
5583
5584 // GetNetworkStorageService returns an instance of the Network_Storage SoftLayer service
5585 func GetNetworkStorageService(sess session.SLSession) Network_Storage {
5586 return Network_Storage{Session: sess}
5587 }
5588
5589 func (r Network_Storage) Id(id int) Network_Storage {
5590 r.Options.Id = &id
5591 return r
5592 }
5593
5594 func (r Network_Storage) Mask(mask string) Network_Storage {
5595 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
5596 mask = fmt.Sprintf("mask[%s]", mask)
5597 }
5598
5599 r.Options.Mask = mask
5600 return r
5601 }
5602
5603 func (r Network_Storage) Filter(filter string) Network_Storage {
5604 r.Options.Filter = filter
5605 return r
5606 }
5607
5608 func (r Network_Storage) Limit(limit int) Network_Storage {
5609 r.Options.Limit = &limit
5610 return r
5611 }
5612
5613 func (r Network_Storage) Offset(offset int) Network_Storage {
5614 r.Options.Offset = &offset
5615 return r
5616 }
5617
5618 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Hardware objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage volume.
5619 func (r Network_Storage) AllowAccessFromHardware(hardwareObjectTemplate *datatypes.Hardware) (resp bool, err error) {
5620 params := []interface{}{
5621 hardwareObjectTemplate,
5622 }
5623 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessFromHardware", params, &r.Options, &resp)
5624 return
5625 }
5626
5627 // no documentation yet
5628 func (r Network_Storage) AllowAccessFromHardwareList(hardwareObjectTemplates []datatypes.Hardware) (resp bool, err error) {
5629 params := []interface{}{
5630 hardwareObjectTemplates,
5631 }
5632 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessFromHardwareList", params, &r.Options, &resp)
5633 return
5634 }
5635
5636 // This method is used to modify the access control list for this Storage volume. The [[SoftLayer_Hardware|SoftLayer_Virtual_Guest|SoftLayer_Network_Subnet|SoftLayer_Network_Subnet_IpAddress]] objects which have been allowed access to this storage will be listed in the [[allowedHardware|allowedVirtualGuests|allowedSubnets|allowedIpAddresses]] property of this storage volume.
5637 func (r Network_Storage) AllowAccessFromHost(typeClassName *string, hostId *int) (resp datatypes.Network_Storage_Allowed_Host, err error) {
5638 params := []interface{}{
5639 typeClassName,
5640 hostId,
5641 }
5642 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessFromHost", params, &r.Options, &resp)
5643 return
5644 }
5645
5646 // This method is used to modify the access control list for this Storage volume. The [[SoftLayer_Hardware|SoftLayer_Virtual_Guest|SoftLayer_Network_Subnet|SoftLayer_Network_Subnet_IpAddress]] objects which have been allowed access to this storage volume will be listed in the [[allowedHardware|allowedVirtualGuests|allowedSubnets|allowedIpAddresses]] property of this storage volume.
5647 func (r Network_Storage) AllowAccessFromHostList(hostObjectTemplates []datatypes.Container_Network_Storage_Host) (resp []datatypes.Network_Storage_Allowed_Host, err error) {
5648 params := []interface{}{
5649 hostObjectTemplates,
5650 }
5651 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessFromHostList", params, &r.Options, &resp)
5652 return
5653 }
5654
5655 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Network_Subnet_IpAddress objects which have been allowed access to this storage will be listed in the allowedIpAddresses property of this storage volume.
5656 func (r Network_Storage) AllowAccessFromIpAddress(ipAddressObjectTemplate *datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
5657 params := []interface{}{
5658 ipAddressObjectTemplate,
5659 }
5660 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessFromIpAddress", params, &r.Options, &resp)
5661 return
5662 }
5663
5664 // no documentation yet
5665 func (r Network_Storage) AllowAccessFromIpAddressList(ipAddressObjectTemplates []datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
5666 params := []interface{}{
5667 ipAddressObjectTemplates,
5668 }
5669 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessFromIpAddressList", params, &r.Options, &resp)
5670 return
5671 }
5672
5673 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Network_Subnet objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage volume.
5674 func (r Network_Storage) AllowAccessFromSubnet(subnetObjectTemplate *datatypes.Network_Subnet) (resp bool, err error) {
5675 params := []interface{}{
5676 subnetObjectTemplate,
5677 }
5678 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessFromSubnet", params, &r.Options, &resp)
5679 return
5680 }
5681
5682 // no documentation yet
5683 func (r Network_Storage) AllowAccessFromSubnetList(subnetObjectTemplates []datatypes.Network_Subnet) (resp bool, err error) {
5684 params := []interface{}{
5685 subnetObjectTemplates,
5686 }
5687 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessFromSubnetList", params, &r.Options, &resp)
5688 return
5689 }
5690
5691 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage volume.
5692 func (r Network_Storage) AllowAccessFromVirtualGuest(virtualGuestObjectTemplate *datatypes.Virtual_Guest) (resp bool, err error) {
5693 params := []interface{}{
5694 virtualGuestObjectTemplate,
5695 }
5696 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessFromVirtualGuest", params, &r.Options, &resp)
5697 return
5698 }
5699
5700 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage volume.
5701 func (r Network_Storage) AllowAccessFromVirtualGuestList(virtualGuestObjectTemplates []datatypes.Virtual_Guest) (resp bool, err error) {
5702 params := []interface{}{
5703 virtualGuestObjectTemplates,
5704 }
5705 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessFromVirtualGuestList", params, &r.Options, &resp)
5706 return
5707 }
5708
5709 // This method is used to modify the access control list for this Storage replicant volume. The SoftLayer_Hardware objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage replicant volume.
5710 func (r Network_Storage) AllowAccessToReplicantFromHardware(hardwareObjectTemplate *datatypes.Hardware) (resp bool, err error) {
5711 params := []interface{}{
5712 hardwareObjectTemplate,
5713 }
5714 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessToReplicantFromHardware", params, &r.Options, &resp)
5715 return
5716 }
5717
5718 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Hardware objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationHardware property of this storage volume.
5719 func (r Network_Storage) AllowAccessToReplicantFromHardwareList(hardwareObjectTemplates []datatypes.Hardware) (resp bool, err error) {
5720 params := []interface{}{
5721 hardwareObjectTemplates,
5722 }
5723 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessToReplicantFromHardwareList", params, &r.Options, &resp)
5724 return
5725 }
5726
5727 // no documentation yet
5728 func (r Network_Storage) AllowAccessToReplicantFromIpAddress(ipAddressObjectTemplate *datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
5729 params := []interface{}{
5730 ipAddressObjectTemplate,
5731 }
5732 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessToReplicantFromIpAddress", params, &r.Options, &resp)
5733 return
5734 }
5735
5736 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Network_Subnet_IpAddress objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationIpAddresses property of this storage volume.
5737 func (r Network_Storage) AllowAccessToReplicantFromIpAddressList(ipAddressObjectTemplates []datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
5738 params := []interface{}{
5739 ipAddressObjectTemplates,
5740 }
5741 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessToReplicantFromIpAddressList", params, &r.Options, &resp)
5742 return
5743 }
5744
5745 // This method is used to modify the access control list for this Storage replicant volume. The SoftLayer_Network_Subnet objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage replicant volume.
5746 func (r Network_Storage) AllowAccessToReplicantFromSubnet(subnetObjectTemplate *datatypes.Network_Subnet) (resp bool, err error) {
5747 params := []interface{}{
5748 subnetObjectTemplate,
5749 }
5750 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessToReplicantFromSubnet", params, &r.Options, &resp)
5751 return
5752 }
5753
5754 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Network_Subnet objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationSubnets property of this storage volume.
5755 func (r Network_Storage) AllowAccessToReplicantFromSubnetList(subnetObjectTemplates []datatypes.Network_Subnet) (resp bool, err error) {
5756 params := []interface{}{
5757 subnetObjectTemplates,
5758 }
5759 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessToReplicantFromSubnetList", params, &r.Options, &resp)
5760 return
5761 }
5762
5763 // This method is used to modify the access control list for this Storage replicant volume. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage replicant volume.
5764 func (r Network_Storage) AllowAccessToReplicantFromVirtualGuest(virtualGuestObjectTemplate *datatypes.Virtual_Guest) (resp bool, err error) {
5765 params := []interface{}{
5766 virtualGuestObjectTemplate,
5767 }
5768 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessToReplicantFromVirtualGuest", params, &r.Options, &resp)
5769 return
5770 }
5771
5772 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationVirtualGuests property of this storage volume.
5773 func (r Network_Storage) AllowAccessToReplicantFromVirtualGuestList(virtualGuestObjectTemplates []datatypes.Virtual_Guest) (resp bool, err error) {
5774 params := []interface{}{
5775 virtualGuestObjectTemplates,
5776 }
5777 err = r.Session.DoRequest("SoftLayer_Network_Storage", "allowAccessToReplicantFromVirtualGuestList", params, &r.Options, &resp)
5778 return
5779 }
5780
5781 // This method will assign an existing credential to the current volume. The credential must have been created using the 'addNewCredential' method. The volume type must support an additional credential.
5782 func (r Network_Storage) AssignCredential(username *string) (resp bool, err error) {
5783 params := []interface{}{
5784 username,
5785 }
5786 err = r.Session.DoRequest("SoftLayer_Network_Storage", "assignCredential", params, &r.Options, &resp)
5787 return
5788 }
5789
5790 // This method will set up a new credential for the remote storage volume. The storage volume must support an additional credential. Once created, the credential will be automatically assigned to the current volume. If there are no volumes assigned to the credential it will be automatically deleted.
5791 func (r Network_Storage) AssignNewCredential(typ *string) (resp datatypes.Network_Storage_Credential, err error) {
5792 params := []interface{}{
5793 typ,
5794 }
5795 err = r.Session.DoRequest("SoftLayer_Network_Storage", "assignNewCredential", params, &r.Options, &resp)
5796 return
5797 }
5798
5799 // The method will change the password for the given Storage/Virtual Server Storage account.
5800 func (r Network_Storage) ChangePassword(username *string, currentPassword *string, newPassword *string) (resp bool, err error) {
5801 params := []interface{}{
5802 username,
5803 currentPassword,
5804 newPassword,
5805 }
5806 err = r.Session.DoRequest("SoftLayer_Network_Storage", "changePassword", params, &r.Options, &resp)
5807 return
5808 }
5809
5810 // {{CloudLayerOnlyMethod}}
5811 //
5812 // collectBandwidth() Retrieve the bandwidth usage for the current billing cycle.
5813 func (r Network_Storage) CollectBandwidth(typ *string, startDate *datatypes.Time, endDate *datatypes.Time) (resp uint, err error) {
5814 params := []interface{}{
5815 typ,
5816 startDate,
5817 endDate,
5818 }
5819 err = r.Session.DoRequest("SoftLayer_Network_Storage", "collectBandwidth", params, &r.Options, &resp)
5820 return
5821 }
5822
5823 // {{CloudLayerOnlyMethod}}
5824 //
5825 // collectBytesUsed() retrieves the number of bytes capacity currently in use on a Storage account.
5826 func (r Network_Storage) CollectBytesUsed() (resp uint, err error) {
5827 err = r.Session.DoRequest("SoftLayer_Network_Storage", "collectBytesUsed", nil, &r.Options, &resp)
5828 return
5829 }
5830
5831 // no documentation yet
5832 func (r Network_Storage) ConvertCloneDependentToIndependent() (resp bool, err error) {
5833 err = r.Session.DoRequest("SoftLayer_Network_Storage", "convertCloneDependentToIndependent", nil, &r.Options, &resp)
5834 return
5835 }
5836
5837 // no documentation yet
5838 func (r Network_Storage) CreateFolder(folder *string) (resp bool, err error) {
5839 params := []interface{}{
5840 folder,
5841 }
5842 err = r.Session.DoRequest("SoftLayer_Network_Storage", "createFolder", params, &r.Options, &resp)
5843 return
5844 }
5845
5846 // The LUN ID only takes effect during the Host Authorization process. It is required to de-authorize all hosts before using this method.
5847 func (r Network_Storage) CreateOrUpdateLunId(lunId *int) (resp datatypes.Network_Storage_Property, err error) {
5848 params := []interface{}{
5849 lunId,
5850 }
5851 err = r.Session.DoRequest("SoftLayer_Network_Storage", "createOrUpdateLunId", params, &r.Options, &resp)
5852 return
5853 }
5854
5855 // no documentation yet
5856 func (r Network_Storage) CreateSnapshot(notes *string) (resp datatypes.Network_Storage, err error) {
5857 params := []interface{}{
5858 notes,
5859 }
5860 err = r.Session.DoRequest("SoftLayer_Network_Storage", "createSnapshot", params, &r.Options, &resp)
5861 return
5862 }
5863
5864 // {{CloudLayerOnlyMethod}} Delete all files within a Storage account. Depending on the type of Storage account, Deleting either deletes files permanently or sends files to your account's recycle bin.
5865 //
5866 // Currently, Virtual Server storage is the only type of Storage account that sends files to a recycle bin when deleted. When called against a Virtual Server storage account , this method also determines if the files are in the account's recycle bin. If the files exist in the recycle bin, then they are permanently deleted.
5867 //
5868 // Please note, files can not be restored once they are permanently deleted.
5869 func (r Network_Storage) DeleteAllFiles() (resp bool, err error) {
5870 err = r.Session.DoRequest("SoftLayer_Network_Storage", "deleteAllFiles", nil, &r.Options, &resp)
5871 return
5872 }
5873
5874 // {{CloudLayerOnlyMethod}} Delete an individual file within a Storage account. Depending on the type of Storage account, Deleting a file either deletes the file permanently or sends the file to your account's recycle bin.
5875 //
5876 // Currently, Virtual Server storage is the only type of Storage account that sends files to a recycle bin when deleted. When called against a Virtual Server storage account , this method also determines if the file is in the account's recycle bin. If the file exist in the recycle bin, then it is permanently deleted.
5877 //
5878 // Please note, a file can not be restored once it is permanently deleted.
5879 func (r Network_Storage) DeleteFile(fileId *string) (resp bool, err error) {
5880 params := []interface{}{
5881 fileId,
5882 }
5883 err = r.Session.DoRequest("SoftLayer_Network_Storage", "deleteFile", params, &r.Options, &resp)
5884 return
5885 }
5886
5887 // {{CloudLayerOnlyMethod}} Delete multiple files within a Storage account. Depending on the type of Storage account, Deleting either deletes files permanently or sends files to your account's recycle bin.
5888 //
5889 // Currently, Virtual Server storage is the only type of Storage account that sends files to a recycle bin when deleted. When called against a Virtual Server storage account , this method also determines if the files are in the account's recycle bin. If the files exist in the recycle bin, then they are permanently deleted.
5890 //
5891 // Please note, files can not be restored once they are permanently deleted.
5892 func (r Network_Storage) DeleteFiles(fileIds []string) (resp bool, err error) {
5893 params := []interface{}{
5894 fileIds,
5895 }
5896 err = r.Session.DoRequest("SoftLayer_Network_Storage", "deleteFiles", params, &r.Options, &resp)
5897 return
5898 }
5899
5900 // no documentation yet
5901 func (r Network_Storage) DeleteFolder(folder *string) (resp bool, err error) {
5902 params := []interface{}{
5903 folder,
5904 }
5905 err = r.Session.DoRequest("SoftLayer_Network_Storage", "deleteFolder", params, &r.Options, &resp)
5906 return
5907 }
5908
5909 // Delete a network storage volume. ”'This cannot be undone.”' At this time only network storage snapshots may be deleted with this method.
5910 //
5911 // ”deleteObject” returns Boolean ”true” on successful deletion or ”false” if it was unable to remove a volume;
5912 func (r Network_Storage) DeleteObject() (resp bool, err error) {
5913 err = r.Session.DoRequest("SoftLayer_Network_Storage", "deleteObject", nil, &r.Options, &resp)
5914 return
5915 }
5916
5917 // This method is not valid for Legacy iSCSI Storage Volumes.
5918 //
5919 // Disable scheduled snapshots of this storage volume. Scheduling options include 'INTERVAL', HOURLY, DAILY and WEEKLY schedules.
5920 func (r Network_Storage) DisableSnapshots(scheduleType *string) (resp bool, err error) {
5921 params := []interface{}{
5922 scheduleType,
5923 }
5924 err = r.Session.DoRequest("SoftLayer_Network_Storage", "disableSnapshots", params, &r.Options, &resp)
5925 return
5926 }
5927
5928 // If a volume (with replication) becomes inaccessible due to a disaster event, this method can be used to immediately failover to an available replica in another location. This method does not allow for fail back via the API. To fail back to the original volume after using this method, open a support ticket. To test failover, use [[SoftLayer_Network_Storage::failoverToReplicant]] instead.
5929 func (r Network_Storage) DisasterRecoveryFailoverToReplicant(replicantId *int) (resp bool, err error) {
5930 params := []interface{}{
5931 replicantId,
5932 }
5933 err = r.Session.DoRequest("SoftLayer_Network_Storage", "disasterRecoveryFailoverToReplicant", params, &r.Options, &resp)
5934 return
5935 }
5936
5937 // {{CloudLayerOnlyMethod}} Download a file from a Storage account. This method returns a file's details including the file's raw content.
5938 func (r Network_Storage) DownloadFile(fileId *string) (resp datatypes.Container_Utility_File_Entity, err error) {
5939 params := []interface{}{
5940 fileId,
5941 }
5942 err = r.Session.DoRequest("SoftLayer_Network_Storage", "downloadFile", params, &r.Options, &resp)
5943 return
5944 }
5945
5946 // This method will change the password of a credential created using the 'addNewCredential' method. If the credential exists on multiple storage volumes it will change for those volumes as well.
5947 func (r Network_Storage) EditCredential(username *string, newPassword *string) (resp bool, err error) {
5948 params := []interface{}{
5949 username,
5950 newPassword,
5951 }
5952 err = r.Session.DoRequest("SoftLayer_Network_Storage", "editCredential", params, &r.Options, &resp)
5953 return
5954 }
5955
5956 // The password and/or notes may be modified for the Storage service except evault passwords and notes.
5957 func (r Network_Storage) EditObject(templateObject *datatypes.Network_Storage) (resp bool, err error) {
5958 params := []interface{}{
5959 templateObject,
5960 }
5961 err = r.Session.DoRequest("SoftLayer_Network_Storage", "editObject", params, &r.Options, &resp)
5962 return
5963 }
5964
5965 // This method is not valid for Legacy iSCSI Storage Volumes.
5966 //
5967 // Enable scheduled snapshots of this storage volume. Scheduling options include HOURLY, DAILY and WEEKLY schedules. For HOURLY schedules, provide relevant data for $scheduleType, $retentionCount and $minute. For DAILY schedules, provide relevant data for $scheduleType, $retentionCount, $minute, and $hour. For WEEKLY schedules, provide relevant data for all parameters of this method.
5968 func (r Network_Storage) EnableSnapshots(scheduleType *string, retentionCount *int, minute *int, hour *int, dayOfWeek *string) (resp bool, err error) {
5969 params := []interface{}{
5970 scheduleType,
5971 retentionCount,
5972 minute,
5973 hour,
5974 dayOfWeek,
5975 }
5976 err = r.Session.DoRequest("SoftLayer_Network_Storage", "enableSnapshots", params, &r.Options, &resp)
5977 return
5978 }
5979
5980 // Failback from a volume replicant. In order to failback the volume must have already been failed over to a replicant.
5981 func (r Network_Storage) FailbackFromReplicant() (resp bool, err error) {
5982 err = r.Session.DoRequest("SoftLayer_Network_Storage", "failbackFromReplicant", nil, &r.Options, &resp)
5983 return
5984 }
5985
5986 // Failover to a volume replicant. During the time which the replicant is in use the local nas volume will not be available.
5987 func (r Network_Storage) FailoverToReplicant(replicantId *int) (resp bool, err error) {
5988 params := []interface{}{
5989 replicantId,
5990 }
5991 err = r.Session.DoRequest("SoftLayer_Network_Storage", "failoverToReplicant", params, &r.Options, &resp)
5992 return
5993 }
5994
5995 // Retrieve The account that a Storage services belongs to.
5996 func (r Network_Storage) GetAccount() (resp datatypes.Account, err error) {
5997 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAccount", nil, &r.Options, &resp)
5998 return
5999 }
6000
6001 // Retrieve Other usernames and passwords associated with a Storage volume.
6002 func (r Network_Storage) GetAccountPassword() (resp datatypes.Account_Password, err error) {
6003 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAccountPassword", nil, &r.Options, &resp)
6004 return
6005 }
6006
6007 // Retrieve The currently active transactions on a network storage volume.
6008 func (r Network_Storage) GetActiveTransactions() (resp []datatypes.Provisioning_Version1_Transaction, err error) {
6009 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getActiveTransactions", nil, &r.Options, &resp)
6010 return
6011 }
6012
6013 // {{CloudLayerOnlyMethod}} Retrieve details such as id, name, size, create date for all files in a Storage account's root directory. This does not download file content.
6014 func (r Network_Storage) GetAllFiles() (resp []datatypes.Container_Utility_File_Entity, err error) {
6015 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAllFiles", nil, &r.Options, &resp)
6016 return
6017 }
6018
6019 // {{CloudLayerOnlyMethod}} Retrieve details such as id, name, size, create date for all files matching the filter's criteria in a Storage account's root directory. This does not download file content.
6020 func (r Network_Storage) GetAllFilesByFilter(filter *datatypes.Container_Utility_File_Entity) (resp []datatypes.Container_Utility_File_Entity, err error) {
6021 params := []interface{}{
6022 filter,
6023 }
6024 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAllFilesByFilter", params, &r.Options, &resp)
6025 return
6026 }
6027
6028 // Retrieve
6029 func (r Network_Storage) GetAllowDisasterRecoveryFailback() (resp string, err error) {
6030 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAllowDisasterRecoveryFailback", nil, &r.Options, &resp)
6031 return
6032 }
6033
6034 // Retrieve
6035 func (r Network_Storage) GetAllowDisasterRecoveryFailover() (resp string, err error) {
6036 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAllowDisasterRecoveryFailover", nil, &r.Options, &resp)
6037 return
6038 }
6039
6040 // This method retrieves a list of SoftLayer_Hardware that can be authorized to this SoftLayer_Network_Storage.
6041 func (r Network_Storage) GetAllowableHardware(filterHostname *string) (resp []datatypes.Hardware, err error) {
6042 params := []interface{}{
6043 filterHostname,
6044 }
6045 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAllowableHardware", params, &r.Options, &resp)
6046 return
6047 }
6048
6049 // This method retrieves a list of SoftLayer_Network_Subnet_IpAddress that can be authorized to this SoftLayer_Network_Storage.
6050 func (r Network_Storage) GetAllowableIpAddresses(subnetId *int, filterIpAddress *string) (resp []datatypes.Network_Subnet_IpAddress, err error) {
6051 params := []interface{}{
6052 subnetId,
6053 filterIpAddress,
6054 }
6055 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAllowableIpAddresses", params, &r.Options, &resp)
6056 return
6057 }
6058
6059 // This method retrieves a list of SoftLayer_Network_Subnet that can be authorized to this SoftLayer_Network_Storage.
6060 func (r Network_Storage) GetAllowableSubnets(filterNetworkIdentifier *string) (resp []datatypes.Network_Subnet, err error) {
6061 params := []interface{}{
6062 filterNetworkIdentifier,
6063 }
6064 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAllowableSubnets", params, &r.Options, &resp)
6065 return
6066 }
6067
6068 // This method retrieves a list of SoftLayer_Virtual_Guest that can be authorized to this SoftLayer_Network_Storage.
6069 func (r Network_Storage) GetAllowableVirtualGuests(filterHostname *string) (resp []datatypes.Virtual_Guest, err error) {
6070 params := []interface{}{
6071 filterHostname,
6072 }
6073 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAllowableVirtualGuests", params, &r.Options, &resp)
6074 return
6075 }
6076
6077 // Retrieve The SoftLayer_Hardware objects which are allowed access to this storage volume.
6078 func (r Network_Storage) GetAllowedHardware() (resp []datatypes.Hardware, err error) {
6079 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAllowedHardware", nil, &r.Options, &resp)
6080 return
6081 }
6082
6083 // Retrieves the total number of allowed hosts limit per volume.
6084 func (r Network_Storage) GetAllowedHostsLimit() (resp int, err error) {
6085 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAllowedHostsLimit", nil, &r.Options, &resp)
6086 return
6087 }
6088
6089 // Retrieve The SoftLayer_Network_Subnet_IpAddress objects which are allowed access to this storage volume.
6090 func (r Network_Storage) GetAllowedIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) {
6091 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAllowedIpAddresses", nil, &r.Options, &resp)
6092 return
6093 }
6094
6095 // Retrieve The SoftLayer_Hardware objects which are allowed access to this storage volume's Replicant.
6096 func (r Network_Storage) GetAllowedReplicationHardware() (resp []datatypes.Hardware, err error) {
6097 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAllowedReplicationHardware", nil, &r.Options, &resp)
6098 return
6099 }
6100
6101 // Retrieve The SoftLayer_Network_Subnet_IpAddress objects which are allowed access to this storage volume's Replicant.
6102 func (r Network_Storage) GetAllowedReplicationIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) {
6103 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAllowedReplicationIpAddresses", nil, &r.Options, &resp)
6104 return
6105 }
6106
6107 // Retrieve The SoftLayer_Network_Subnet objects which are allowed access to this storage volume's Replicant.
6108 func (r Network_Storage) GetAllowedReplicationSubnets() (resp []datatypes.Network_Subnet, err error) {
6109 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAllowedReplicationSubnets", nil, &r.Options, &resp)
6110 return
6111 }
6112
6113 // Retrieve The SoftLayer_Hardware objects which are allowed access to this storage volume's Replicant.
6114 func (r Network_Storage) GetAllowedReplicationVirtualGuests() (resp []datatypes.Virtual_Guest, err error) {
6115 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAllowedReplicationVirtualGuests", nil, &r.Options, &resp)
6116 return
6117 }
6118
6119 // Retrieve The SoftLayer_Network_Subnet objects which are allowed access to this storage volume.
6120 func (r Network_Storage) GetAllowedSubnets() (resp []datatypes.Network_Subnet, err error) {
6121 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAllowedSubnets", nil, &r.Options, &resp)
6122 return
6123 }
6124
6125 // Retrieve The SoftLayer_Virtual_Guest objects which are allowed access to this storage volume.
6126 func (r Network_Storage) GetAllowedVirtualGuests() (resp []datatypes.Virtual_Guest, err error) {
6127 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getAllowedVirtualGuests", nil, &r.Options, &resp)
6128 return
6129 }
6130
6131 // Retrieve The current billing item for a Storage volume.
6132 func (r Network_Storage) GetBillingItem() (resp datatypes.Billing_Item, err error) {
6133 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getBillingItem", nil, &r.Options, &resp)
6134 return
6135 }
6136
6137 // Retrieve
6138 func (r Network_Storage) GetBillingItemCategory() (resp datatypes.Product_Item_Category, err error) {
6139 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getBillingItemCategory", nil, &r.Options, &resp)
6140 return
6141 }
6142
6143 // Retrieve network storage accounts by username and storage account type. Use this method if you wish to retrieve a storage record by username rather than by id. The ”type” parameter must correspond to one of the available ”nasType” values in the SoftLayer_Network_Storage data type.
6144 func (r Network_Storage) GetByUsername(username *string, typ *string) (resp []datatypes.Network_Storage, err error) {
6145 params := []interface{}{
6146 username,
6147 typ,
6148 }
6149 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getByUsername", params, &r.Options, &resp)
6150 return
6151 }
6152
6153 // Retrieve The amount of space used by the volume, in bytes.
6154 func (r Network_Storage) GetBytesUsed() (resp string, err error) {
6155 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getBytesUsed", nil, &r.Options, &resp)
6156 return
6157 }
6158
6159 // no documentation yet
6160 func (r Network_Storage) GetCdnUrls() (resp []datatypes.Container_Network_Storage_Hub_ObjectStorage_ContentDeliveryUrl, err error) {
6161 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getCdnUrls", nil, &r.Options, &resp)
6162 return
6163 }
6164
6165 // no documentation yet
6166 func (r Network_Storage) GetClusterResource() (resp datatypes.Network_Service_Resource, err error) {
6167 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getClusterResource", nil, &r.Options, &resp)
6168 return
6169 }
6170
6171 // Retrieve The schedule id which was executed to create a snapshot.
6172 func (r Network_Storage) GetCreationScheduleId() (resp string, err error) {
6173 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getCreationScheduleId", nil, &r.Options, &resp)
6174 return
6175 }
6176
6177 // Retrieve
6178 func (r Network_Storage) GetCredentials() (resp []datatypes.Network_Storage_Credential, err error) {
6179 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getCredentials", nil, &r.Options, &resp)
6180 return
6181 }
6182
6183 // Retrieve The Daily Schedule which is associated with this network storage volume.
6184 func (r Network_Storage) GetDailySchedule() (resp datatypes.Network_Storage_Schedule, err error) {
6185 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getDailySchedule", nil, &r.Options, &resp)
6186 return
6187 }
6188
6189 // Retrieve Whether or not a network storage volume is a dependent duplicate.
6190 func (r Network_Storage) GetDependentDuplicate() (resp string, err error) {
6191 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getDependentDuplicate", nil, &r.Options, &resp)
6192 return
6193 }
6194
6195 // Retrieve The network storage volumes configured to be dependent duplicates of a volume.
6196 func (r Network_Storage) GetDependentDuplicates() (resp []datatypes.Network_Storage, err error) {
6197 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getDependentDuplicates", nil, &r.Options, &resp)
6198 return
6199 }
6200
6201 // This method is used to check, if for the given classic file block storage volume, a transaction performing dependent to independent duplicate conversion is active. If yes, then this returns the current percentage of its progress along with its start time as [SoftLayer_Container_Network_Storage_DuplicateConversionStatusInformation] object with its name, percentage and transaction start timestamp.
6202 func (r Network_Storage) GetDuplicateConversionStatus() (resp datatypes.Container_Network_Storage_DuplicateConversionStatusInformation, err error) {
6203 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getDuplicateConversionStatus", nil, &r.Options, &resp)
6204 return
6205 }
6206
6207 // Retrieve The events which have taken place on a network storage volume.
6208 func (r Network_Storage) GetEvents() (resp []datatypes.Network_Storage_Event, err error) {
6209 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getEvents", nil, &r.Options, &resp)
6210 return
6211 }
6212
6213 // Retrieve Determines whether the volume is allowed to failback
6214 func (r Network_Storage) GetFailbackNotAllowed() (resp string, err error) {
6215 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getFailbackNotAllowed", nil, &r.Options, &resp)
6216 return
6217 }
6218
6219 // Retrieve Determines whether the volume is allowed to failover
6220 func (r Network_Storage) GetFailoverNotAllowed() (resp string, err error) {
6221 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getFailoverNotAllowed", nil, &r.Options, &resp)
6222 return
6223 }
6224
6225 func (r Network_Storage) GetFileBlockEncryptedLocations() (resp []datatypes.Location, err error) {
6226 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getFileBlockEncryptedLocations", nil, &r.Options, &resp)
6227 return
6228 }
6229
6230 // {{CloudLayerOnlyMethod}} Retrieve details such as id, name, size, create date of a file within a Storage account. This does not download file content.
6231 func (r Network_Storage) GetFileByIdentifier(identifier *string) (resp datatypes.Container_Utility_File_Entity, err error) {
6232 params := []interface{}{
6233 identifier,
6234 }
6235 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getFileByIdentifier", params, &r.Options, &resp)
6236 return
6237 }
6238
6239 // {{CloudLayerOnlyMethod}} Retrieve the file number of files in a Virtual Server Storage account's root directory. This does not include the files stored in the recycle bin.
6240 func (r Network_Storage) GetFileCount() (resp int, err error) {
6241 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getFileCount", nil, &r.Options, &resp)
6242 return
6243 }
6244
6245 // no documentation yet
6246 func (r Network_Storage) GetFileList(folder *string, path *string) (resp []datatypes.Container_Utility_File_Entity, err error) {
6247 params := []interface{}{
6248 folder,
6249 path,
6250 }
6251 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getFileList", params, &r.Options, &resp)
6252 return
6253 }
6254
6255 // Retrieve Retrieves the NFS Network Mount Address Name for a given File Storage Volume.
6256 func (r Network_Storage) GetFileNetworkMountAddress() (resp string, err error) {
6257 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getFileNetworkMountAddress", nil, &r.Options, &resp)
6258 return
6259 }
6260
6261 // {{CloudLayerOnlyMethod}} Retrieve the number of files pending deletion in a Storage account's recycle bin. Files in an account's recycle bin may either be restored to the account's root directory or permanently deleted.
6262 func (r Network_Storage) GetFilePendingDeleteCount() (resp int, err error) {
6263 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getFilePendingDeleteCount", nil, &r.Options, &resp)
6264 return
6265 }
6266
6267 // {{CloudLayerOnlyMethod}} Retrieve a list of files that are pending deletion in a Storage account's recycle bin. Files in an account's recycle bin may either be restored to the account's root directory or permanently deleted. This method does not download file content.
6268 func (r Network_Storage) GetFilesPendingDelete() (resp []datatypes.Container_Utility_File_Entity, err error) {
6269 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getFilesPendingDelete", nil, &r.Options, &resp)
6270 return
6271 }
6272
6273 // Retrieve
6274 func (r Network_Storage) GetFixReplicationCurrentStatus() (resp string, err error) {
6275 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getFixReplicationCurrentStatus", nil, &r.Options, &resp)
6276 return
6277 }
6278
6279 // no documentation yet
6280 func (r Network_Storage) GetFolderList() (resp []datatypes.Container_Network_Storage_Hub_ObjectStorage_Folder, err error) {
6281 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getFolderList", nil, &r.Options, &resp)
6282 return
6283 }
6284
6285 // Retrieve When applicable, the hardware associated with a Storage service.
6286 func (r Network_Storage) GetHardware() (resp datatypes.Hardware, err error) {
6287 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getHardware", nil, &r.Options, &resp)
6288 return
6289 }
6290
6291 // Retrieve
6292 func (r Network_Storage) GetHasEncryptionAtRest() (resp bool, err error) {
6293 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getHasEncryptionAtRest", nil, &r.Options, &resp)
6294 return
6295 }
6296
6297 // Retrieve The Hourly Schedule which is associated with this network storage volume.
6298 func (r Network_Storage) GetHourlySchedule() (resp datatypes.Network_Storage_Schedule, err error) {
6299 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getHourlySchedule", nil, &r.Options, &resp)
6300 return
6301 }
6302
6303 // Retrieve The Interval Schedule which is associated with this network storage volume.
6304 func (r Network_Storage) GetIntervalSchedule() (resp datatypes.Network_Storage_Schedule, err error) {
6305 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getIntervalSchedule", nil, &r.Options, &resp)
6306 return
6307 }
6308
6309 // Retrieve The maximum number of IOPs selected for this volume.
6310 func (r Network_Storage) GetIops() (resp string, err error) {
6311 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getIops", nil, &r.Options, &resp)
6312 return
6313 }
6314
6315 // Retrieve Determines whether network storage volume has an active convert dependent clone to Independent transaction.
6316 func (r Network_Storage) GetIsConvertToIndependentTransactionInProgress() (resp bool, err error) {
6317 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getIsConvertToIndependentTransactionInProgress", nil, &r.Options, &resp)
6318 return
6319 }
6320
6321 // Retrieve Determines whether dependent volume provision is completed on background.
6322 func (r Network_Storage) GetIsDependentDuplicateProvisionCompleted() (resp bool, err error) {
6323 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getIsDependentDuplicateProvisionCompleted", nil, &r.Options, &resp)
6324 return
6325 }
6326
6327 // Retrieve
6328 func (r Network_Storage) GetIsInDedicatedServiceResource() (resp bool, err error) {
6329 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getIsInDedicatedServiceResource", nil, &r.Options, &resp)
6330 return
6331 }
6332
6333 // Retrieve
6334 func (r Network_Storage) GetIsMagneticStorage() (resp string, err error) {
6335 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getIsMagneticStorage", nil, &r.Options, &resp)
6336 return
6337 }
6338
6339 // Retrieve Determines whether network storage volume has an active provision transaction.
6340 func (r Network_Storage) GetIsProvisionInProgress() (resp bool, err error) {
6341 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getIsProvisionInProgress", nil, &r.Options, &resp)
6342 return
6343 }
6344
6345 // Retrieve Determines whether a volume is ready to order snapshot space, or, if snapshot space is already available, to assign a snapshot schedule, or to take a manual snapshot.
6346 func (r Network_Storage) GetIsReadyForSnapshot() (resp bool, err error) {
6347 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getIsReadyForSnapshot", nil, &r.Options, &resp)
6348 return
6349 }
6350
6351 // Retrieve Determines whether a volume is ready to have Hosts authorized to access it. This does not indicate whether another operation may be blocking, please refer to this volume's volumeStatus property for details.
6352 func (r Network_Storage) GetIsReadyToMount() (resp bool, err error) {
6353 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getIsReadyToMount", nil, &r.Options, &resp)
6354 return
6355 }
6356
6357 // Retrieve Relationship between a container volume and iSCSI LUNs.
6358 func (r Network_Storage) GetIscsiLuns() (resp []datatypes.Network_Storage, err error) {
6359 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getIscsiLuns", nil, &r.Options, &resp)
6360 return
6361 }
6362
6363 // Retrieve The network storage volumes configured to be replicants of this volume.
6364 func (r Network_Storage) GetIscsiReplicatingVolume() (resp datatypes.Network_Storage, err error) {
6365 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getIscsiReplicatingVolume", nil, &r.Options, &resp)
6366 return
6367 }
6368
6369 // Retrieve Returns the target IP addresses of an iSCSI volume.
6370 func (r Network_Storage) GetIscsiTargetIpAddresses() (resp []string, err error) {
6371 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getIscsiTargetIpAddresses", nil, &r.Options, &resp)
6372 return
6373 }
6374
6375 // Retrieve The ID of the LUN volume.
6376 func (r Network_Storage) GetLunId() (resp string, err error) {
6377 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getLunId", nil, &r.Options, &resp)
6378 return
6379 }
6380
6381 // Retrieve The manually-created snapshots associated with this SoftLayer_Network_Storage volume. Does not support pagination by result limit and offset.
6382 func (r Network_Storage) GetManualSnapshots() (resp []datatypes.Network_Storage, err error) {
6383 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getManualSnapshots", nil, &r.Options, &resp)
6384 return
6385 }
6386
6387 // no documentation yet
6388 func (r Network_Storage) GetMaximumExpansionSize() (resp int, err error) {
6389 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getMaximumExpansionSize", nil, &r.Options, &resp)
6390 return
6391 }
6392
6393 // Retrieve [DEPRECATED] - A network storage volume's metric tracking object. This object records all periodic polled data available to this volume.
6394 func (r Network_Storage) GetMetricTrackingObject() (resp datatypes.Metric_Tracking_Object, err error) {
6395 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getMetricTrackingObject", nil, &r.Options, &resp)
6396 return
6397 }
6398
6399 // Retrieve Retrieves the NFS Network Mount Path for a given File Storage Volume.
6400 func (r Network_Storage) GetMountPath() (resp string, err error) {
6401 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getMountPath", nil, &r.Options, &resp)
6402 return
6403 }
6404
6405 // Retrieve Whether or not a network storage volume may be mounted.
6406 func (r Network_Storage) GetMountableFlag() (resp string, err error) {
6407 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getMountableFlag", nil, &r.Options, &resp)
6408 return
6409 }
6410
6411 // Retrieve The current status of split or move operation as a part of volume duplication.
6412 func (r Network_Storage) GetMoveAndSplitStatus() (resp string, err error) {
6413 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getMoveAndSplitStatus", nil, &r.Options, &resp)
6414 return
6415 }
6416
6417 // no documentation yet
6418 func (r Network_Storage) GetNetworkConnectionDetails() (resp datatypes.Container_Network_Storage_NetworkConnectionInformation, err error) {
6419 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getNetworkConnectionDetails", nil, &r.Options, &resp)
6420 return
6421 }
6422
6423 // no documentation yet
6424 func (r Network_Storage) GetNetworkMountAddress() (resp string, err error) {
6425 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getNetworkMountAddress", nil, &r.Options, &resp)
6426 return
6427 }
6428
6429 // no documentation yet
6430 func (r Network_Storage) GetNetworkMountPath() (resp string, err error) {
6431 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getNetworkMountPath", nil, &r.Options, &resp)
6432 return
6433 }
6434
6435 // Retrieve The subscribers that will be notified for usage amount warnings and overages.
6436 func (r Network_Storage) GetNotificationSubscribers() (resp []datatypes.Notification_User_Subscriber, err error) {
6437 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getNotificationSubscribers", nil, &r.Options, &resp)
6438 return
6439 }
6440
6441 // getObject retrieves the SoftLayer_Network_Storage object whose ID corresponds to the ID number of the init parameter passed to the SoftLayer_Network_Storage service.
6442 //
6443 // Please use the associated methods in the [[SoftLayer_Network_Storage]] service to retrieve a Storage account's id.
6444 func (r Network_Storage) GetObject() (resp datatypes.Network_Storage, err error) {
6445 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getObject", nil, &r.Options, &resp)
6446 return
6447 }
6448
6449 // no documentation yet
6450 func (r Network_Storage) GetObjectStorageConnectionInformation() (resp []datatypes.Container_Network_Service_Resource_ObjectStorage_ConnectionInformation, err error) {
6451 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getObjectStorageConnectionInformation", nil, &r.Options, &resp)
6452 return
6453 }
6454
6455 // Retrieve network storage accounts by SoftLayer_Network_Storage_Credential object. Use this method if you wish to retrieve a storage record by a credential rather than by id.
6456 func (r Network_Storage) GetObjectsByCredential(credentialObject *datatypes.Network_Storage_Credential) (resp []datatypes.Network_Storage, err error) {
6457 params := []interface{}{
6458 credentialObject,
6459 }
6460 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getObjectsByCredential", params, &r.Options, &resp)
6461 return
6462 }
6463
6464 // Retrieve The name of the snapshot that this volume was duplicated from.
6465 func (r Network_Storage) GetOriginalSnapshotName() (resp string, err error) {
6466 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getOriginalSnapshotName", nil, &r.Options, &resp)
6467 return
6468 }
6469
6470 // Retrieve Volume id of the origin volume from which this volume is been cloned.
6471 func (r Network_Storage) GetOriginalVolumeId() (resp int, err error) {
6472 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getOriginalVolumeId", nil, &r.Options, &resp)
6473 return
6474 }
6475
6476 // Retrieve The name of the volume that this volume was duplicated from.
6477 func (r Network_Storage) GetOriginalVolumeName() (resp string, err error) {
6478 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getOriginalVolumeName", nil, &r.Options, &resp)
6479 return
6480 }
6481
6482 // Retrieve The size (in GB) of the volume or LUN before any size expansion, or of the volume (before any possible size expansion) from which the duplicate volume or LUN was created.
6483 func (r Network_Storage) GetOriginalVolumeSize() (resp string, err error) {
6484 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getOriginalVolumeSize", nil, &r.Options, &resp)
6485 return
6486 }
6487
6488 // Retrieve A volume's configured SoftLayer_Network_Storage_Iscsi_OS_Type.
6489 func (r Network_Storage) GetOsType() (resp datatypes.Network_Storage_Iscsi_OS_Type, err error) {
6490 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getOsType", nil, &r.Options, &resp)
6491 return
6492 }
6493
6494 // Retrieve A volume's configured SoftLayer_Network_Storage_Iscsi_OS_Type ID.
6495 func (r Network_Storage) GetOsTypeId() (resp string, err error) {
6496 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getOsTypeId", nil, &r.Options, &resp)
6497 return
6498 }
6499
6500 // Retrieve The volumes or snapshots partnered with a network storage volume in a parental role.
6501 func (r Network_Storage) GetParentPartnerships() (resp []datatypes.Network_Storage_Partnership, err error) {
6502 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getParentPartnerships", nil, &r.Options, &resp)
6503 return
6504 }
6505
6506 // Retrieve The parent volume of a volume in a complex storage relationship.
6507 func (r Network_Storage) GetParentVolume() (resp datatypes.Network_Storage, err error) {
6508 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getParentVolume", nil, &r.Options, &resp)
6509 return
6510 }
6511
6512 // Retrieve The volumes or snapshots partnered with a network storage volume.
6513 func (r Network_Storage) GetPartnerships() (resp []datatypes.Network_Storage_Partnership, err error) {
6514 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getPartnerships", nil, &r.Options, &resp)
6515 return
6516 }
6517
6518 // Retrieve All permissions group(s) this volume is in.
6519 func (r Network_Storage) GetPermissionsGroups() (resp []datatypes.Network_Storage_Group, err error) {
6520 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getPermissionsGroups", nil, &r.Options, &resp)
6521 return
6522 }
6523
6524 // Retrieve The properties used to provide additional details about a network storage volume.
6525 func (r Network_Storage) GetProperties() (resp []datatypes.Network_Storage_Property, err error) {
6526 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getProperties", nil, &r.Options, &resp)
6527 return
6528 }
6529
6530 // Retrieve The number of IOPs provisioned for this volume.
6531 func (r Network_Storage) GetProvisionedIops() (resp string, err error) {
6532 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getProvisionedIops", nil, &r.Options, &resp)
6533 return
6534 }
6535
6536 // {{CloudLayerOnlyMethod}} Retrieve the details of a file that is pending deletion in a Storage account's a recycle bin.
6537 func (r Network_Storage) GetRecycleBinFileByIdentifier(fileId *string) (resp datatypes.Container_Utility_File_Entity, err error) {
6538 params := []interface{}{
6539 fileId,
6540 }
6541 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getRecycleBinFileByIdentifier", params, &r.Options, &resp)
6542 return
6543 }
6544
6545 // Retrieves the remaining number of allowed hosts per volume.
6546 func (r Network_Storage) GetRemainingAllowedHosts() (resp int, err error) {
6547 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getRemainingAllowedHosts", nil, &r.Options, &resp)
6548 return
6549 }
6550
6551 // Retrieves the remaining number of allowed hosts for a volume's replicant.
6552 func (r Network_Storage) GetRemainingAllowedHostsForReplicant() (resp int, err error) {
6553 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getRemainingAllowedHostsForReplicant", nil, &r.Options, &resp)
6554 return
6555 }
6556
6557 // Retrieve The iSCSI LUN volumes being replicated by this network storage volume.
6558 func (r Network_Storage) GetReplicatingLuns() (resp []datatypes.Network_Storage, err error) {
6559 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getReplicatingLuns", nil, &r.Options, &resp)
6560 return
6561 }
6562
6563 // Retrieve The network storage volume being replicated by a volume.
6564 func (r Network_Storage) GetReplicatingVolume() (resp datatypes.Network_Storage, err error) {
6565 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getReplicatingVolume", nil, &r.Options, &resp)
6566 return
6567 }
6568
6569 // Retrieve The volume replication events.
6570 func (r Network_Storage) GetReplicationEvents() (resp []datatypes.Network_Storage_Event, err error) {
6571 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getReplicationEvents", nil, &r.Options, &resp)
6572 return
6573 }
6574
6575 // Retrieve The network storage volumes configured to be replicants of a volume.
6576 func (r Network_Storage) GetReplicationPartners() (resp []datatypes.Network_Storage, err error) {
6577 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getReplicationPartners", nil, &r.Options, &resp)
6578 return
6579 }
6580
6581 // Retrieve The Replication Schedule associated with a network storage volume.
6582 func (r Network_Storage) GetReplicationSchedule() (resp datatypes.Network_Storage_Schedule, err error) {
6583 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getReplicationSchedule", nil, &r.Options, &resp)
6584 return
6585 }
6586
6587 // Retrieve The current replication status of a network storage volume. Indicates Failover or Failback status.
6588 func (r Network_Storage) GetReplicationStatus() (resp string, err error) {
6589 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getReplicationStatus", nil, &r.Options, &resp)
6590 return
6591 }
6592
6593 // no documentation yet
6594 func (r Network_Storage) GetReplicationTimestamp() (resp string, err error) {
6595 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getReplicationTimestamp", nil, &r.Options, &resp)
6596 return
6597 }
6598
6599 // Retrieve The schedules which are associated with a network storage volume.
6600 func (r Network_Storage) GetSchedules() (resp []datatypes.Network_Storage_Schedule, err error) {
6601 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getSchedules", nil, &r.Options, &resp)
6602 return
6603 }
6604
6605 // Retrieve The network resource a Storage service is connected to.
6606 func (r Network_Storage) GetServiceResource() (resp datatypes.Network_Service_Resource, err error) {
6607 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getServiceResource", nil, &r.Options, &resp)
6608 return
6609 }
6610
6611 // Retrieve The IP address of a Storage resource.
6612 func (r Network_Storage) GetServiceResourceBackendIpAddress() (resp string, err error) {
6613 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getServiceResourceBackendIpAddress", nil, &r.Options, &resp)
6614 return
6615 }
6616
6617 // Retrieve The name of a Storage's network resource.
6618 func (r Network_Storage) GetServiceResourceName() (resp string, err error) {
6619 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getServiceResourceName", nil, &r.Options, &resp)
6620 return
6621 }
6622
6623 // Retrieve A volume's configured snapshot space size.
6624 func (r Network_Storage) GetSnapshotCapacityGb() (resp string, err error) {
6625 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getSnapshotCapacityGb", nil, &r.Options, &resp)
6626 return
6627 }
6628
6629 // Retrieve The creation timestamp of the snapshot on the storage platform.
6630 func (r Network_Storage) GetSnapshotCreationTimestamp() (resp string, err error) {
6631 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getSnapshotCreationTimestamp", nil, &r.Options, &resp)
6632 return
6633 }
6634
6635 // Retrieve The percentage of used snapshot space after which to delete automated snapshots.
6636 func (r Network_Storage) GetSnapshotDeletionThresholdPercentage() (resp string, err error) {
6637 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getSnapshotDeletionThresholdPercentage", nil, &r.Options, &resp)
6638 return
6639 }
6640
6641 // Retrieve Whether or not a network storage volume may be mounted.
6642 func (r Network_Storage) GetSnapshotNotificationStatus() (resp string, err error) {
6643 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getSnapshotNotificationStatus", nil, &r.Options, &resp)
6644 return
6645 }
6646
6647 // Retrieve The snapshot size in bytes.
6648 func (r Network_Storage) GetSnapshotSizeBytes() (resp string, err error) {
6649 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getSnapshotSizeBytes", nil, &r.Options, &resp)
6650 return
6651 }
6652
6653 // Retrieve A volume's available snapshot reservation space.
6654 func (r Network_Storage) GetSnapshotSpaceAvailable() (resp string, err error) {
6655 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getSnapshotSpaceAvailable", nil, &r.Options, &resp)
6656 return
6657 }
6658
6659 // Retrieve The snapshots associated with this SoftLayer_Network_Storage volume.
6660 func (r Network_Storage) GetSnapshots() (resp []datatypes.Network_Storage, err error) {
6661 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getSnapshots", nil, &r.Options, &resp)
6662 return
6663 }
6664
6665 // Retrieves a list of snapshots for this SoftLayer_Network_Storage volume. This method works with the result limits and offset to support pagination.
6666 func (r Network_Storage) GetSnapshotsForVolume() (resp []datatypes.Network_Storage, err error) {
6667 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getSnapshotsForVolume", nil, &r.Options, &resp)
6668 return
6669 }
6670
6671 // Retrieve
6672 func (r Network_Storage) GetStaasVersion() (resp string, err error) {
6673 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getStaasVersion", nil, &r.Options, &resp)
6674 return
6675 }
6676
6677 // Retrieve The network storage groups this volume is attached to.
6678 func (r Network_Storage) GetStorageGroups() (resp []datatypes.Network_Storage_Group, err error) {
6679 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getStorageGroups", nil, &r.Options, &resp)
6680 return
6681 }
6682
6683 // no documentation yet
6684 func (r Network_Storage) GetStorageGroupsNetworkConnectionDetails() (resp []datatypes.Container_Network_Storage_NetworkConnectionInformation, err error) {
6685 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getStorageGroupsNetworkConnectionDetails", nil, &r.Options, &resp)
6686 return
6687 }
6688
6689 // Retrieve
6690 func (r Network_Storage) GetStorageTierLevel() (resp string, err error) {
6691 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getStorageTierLevel", nil, &r.Options, &resp)
6692 return
6693 }
6694
6695 // Retrieve A description of the Storage object.
6696 func (r Network_Storage) GetStorageType() (resp datatypes.Network_Storage_Type, err error) {
6697 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getStorageType", nil, &r.Options, &resp)
6698 return
6699 }
6700
6701 // no documentation yet
6702 func (r Network_Storage) GetTargetIpAddresses() (resp []string, err error) {
6703 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getTargetIpAddresses", nil, &r.Options, &resp)
6704 return
6705 }
6706
6707 // Retrieve The amount of space used by the volume.
6708 func (r Network_Storage) GetTotalBytesUsed() (resp string, err error) {
6709 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getTotalBytesUsed", nil, &r.Options, &resp)
6710 return
6711 }
6712
6713 // Retrieve The total snapshot retention count of all schedules on this network storage volume.
6714 func (r Network_Storage) GetTotalScheduleSnapshotRetentionCount() (resp uint, err error) {
6715 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getTotalScheduleSnapshotRetentionCount", nil, &r.Options, &resp)
6716 return
6717 }
6718
6719 // Retrieve The usage notification for SL Storage services.
6720 func (r Network_Storage) GetUsageNotification() (resp datatypes.Notification, err error) {
6721 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getUsageNotification", nil, &r.Options, &resp)
6722 return
6723 }
6724
6725 // no documentation yet
6726 func (r Network_Storage) GetValidReplicationTargetDatacenterLocations() (resp []datatypes.Location, err error) {
6727 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getValidReplicationTargetDatacenterLocations", nil, &r.Options, &resp)
6728 return
6729 }
6730
6731 // Retrieve The type of network storage service.
6732 func (r Network_Storage) GetVendorName() (resp string, err error) {
6733 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getVendorName", nil, &r.Options, &resp)
6734 return
6735 }
6736
6737 // Retrieve When applicable, the virtual guest associated with a Storage service.
6738 func (r Network_Storage) GetVirtualGuest() (resp datatypes.Virtual_Guest, err error) {
6739 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getVirtualGuest", nil, &r.Options, &resp)
6740 return
6741 }
6742
6743 // Retrieves an array of volume count limits per location and globally.
6744 func (r Network_Storage) GetVolumeCountLimits() (resp []datatypes.Container_Network_Storage_DataCenterLimits_VolumeCountLimitContainer, err error) {
6745 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getVolumeCountLimits", nil, &r.Options, &resp)
6746 return
6747 }
6748
6749 // This method returns the parameters for cloning a volume
6750 func (r Network_Storage) GetVolumeDuplicateParameters() (resp datatypes.Container_Network_Storage_VolumeDuplicateParameters, err error) {
6751 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getVolumeDuplicateParameters", nil, &r.Options, &resp)
6752 return
6753 }
6754
6755 // Retrieve The username and password history for a Storage service.
6756 func (r Network_Storage) GetVolumeHistory() (resp []datatypes.Network_Storage_History, err error) {
6757 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getVolumeHistory", nil, &r.Options, &resp)
6758 return
6759 }
6760
6761 // Retrieve The current status of a network storage volume.
6762 func (r Network_Storage) GetVolumeStatus() (resp string, err error) {
6763 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getVolumeStatus", nil, &r.Options, &resp)
6764 return
6765 }
6766
6767 // Retrieve The account username and password for the EVault webCC interface.
6768 func (r Network_Storage) GetWebccAccount() (resp datatypes.Account_Password, err error) {
6769 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getWebccAccount", nil, &r.Options, &resp)
6770 return
6771 }
6772
6773 // Retrieve The Weekly Schedule which is associated with this network storage volume.
6774 func (r Network_Storage) GetWeeklySchedule() (resp datatypes.Network_Storage_Schedule, err error) {
6775 err = r.Session.DoRequest("SoftLayer_Network_Storage", "getWeeklySchedule", nil, &r.Options, &resp)
6776 return
6777 }
6778
6779 // Immediate Failover to a volume replicant. During the time which the replicant is in use the local nas volume will not be available.
6780 func (r Network_Storage) ImmediateFailoverToReplicant(replicantId *int) (resp bool, err error) {
6781 params := []interface{}{
6782 replicantId,
6783 }
6784 err = r.Session.DoRequest("SoftLayer_Network_Storage", "immediateFailoverToReplicant", params, &r.Options, &resp)
6785 return
6786 }
6787
6788 // no documentation yet
6789 func (r Network_Storage) InitiateOriginVolumeReclaim() (resp string, err error) {
6790 err = r.Session.DoRequest("SoftLayer_Network_Storage", "initiateOriginVolumeReclaim", nil, &r.Options, &resp)
6791 return
6792 }
6793
6794 // no documentation yet
6795 func (r Network_Storage) InitiateVolumeCutover() (resp string, err error) {
6796 err = r.Session.DoRequest("SoftLayer_Network_Storage", "initiateVolumeCutover", nil, &r.Options, &resp)
6797 return
6798 }
6799
6800 // no documentation yet
6801 func (r Network_Storage) IsBlockingOperationInProgress(exemptStatusKeyNames []string) (resp bool, err error) {
6802 params := []interface{}{
6803 exemptStatusKeyNames,
6804 }
6805 err = r.Session.DoRequest("SoftLayer_Network_Storage", "isBlockingOperationInProgress", params, &r.Options, &resp)
6806 return
6807 }
6808
6809 // This method returns a boolean indicating whether the clone volume is ready for snapshot.
6810 func (r Network_Storage) IsDuplicateReadyForSnapshot() (resp bool, err error) {
6811 err = r.Session.DoRequest("SoftLayer_Network_Storage", "isDuplicateReadyForSnapshot", nil, &r.Options, &resp)
6812 return
6813 }
6814
6815 // This method returns a boolean indicating whether the clone volume is ready to mount.
6816 func (r Network_Storage) IsDuplicateReadyToMount() (resp bool, err error) {
6817 err = r.Session.DoRequest("SoftLayer_Network_Storage", "isDuplicateReadyToMount", nil, &r.Options, &resp)
6818 return
6819 }
6820
6821 // no documentation yet
6822 func (r Network_Storage) IsVolumeActive() (resp bool, err error) {
6823 err = r.Session.DoRequest("SoftLayer_Network_Storage", "isVolumeActive", nil, &r.Options, &resp)
6824 return
6825 }
6826
6827 // no documentation yet
6828 func (r Network_Storage) RefreshDependentDuplicate(snapshotId *int) (resp bool, err error) {
6829 params := []interface{}{
6830 snapshotId,
6831 }
6832 err = r.Session.DoRequest("SoftLayer_Network_Storage", "refreshDependentDuplicate", params, &r.Options, &resp)
6833 return
6834 }
6835
6836 // no documentation yet
6837 func (r Network_Storage) RefreshDuplicate(snapshotId *int, forceRefresh *bool) (resp bool, err error) {
6838 params := []interface{}{
6839 snapshotId,
6840 forceRefresh,
6841 }
6842 err = r.Session.DoRequest("SoftLayer_Network_Storage", "refreshDuplicate", params, &r.Options, &resp)
6843 return
6844 }
6845
6846 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Hardware objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage volume.
6847 func (r Network_Storage) RemoveAccessFromHardware(hardwareObjectTemplate *datatypes.Hardware) (resp bool, err error) {
6848 params := []interface{}{
6849 hardwareObjectTemplate,
6850 }
6851 err = r.Session.DoRequest("SoftLayer_Network_Storage", "removeAccessFromHardware", params, &r.Options, &resp)
6852 return
6853 }
6854
6855 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Hardware objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage volume.
6856 func (r Network_Storage) RemoveAccessFromHardwareList(hardwareObjectTemplates []datatypes.Hardware) (resp bool, err error) {
6857 params := []interface{}{
6858 hardwareObjectTemplates,
6859 }
6860 err = r.Session.DoRequest("SoftLayer_Network_Storage", "removeAccessFromHardwareList", params, &r.Options, &resp)
6861 return
6862 }
6863
6864 // This method is used to modify the access control list for this Storage volume. The [[SoftLayer_Hardware|SoftLayer_Virtual_Guest|SoftLayer_Network_Subnet|SoftLayer_Network_Subnet_IpAddress]] objects which have been allowed access to this storage will be listed in the [[allowedHardware|allowedVirtualGuests|allowedSubnets|allowedIpAddresses]] property of this storage volume.
6865 func (r Network_Storage) RemoveAccessFromHost(typeClassName *string, hostId *int) (resp datatypes.Network_Storage_Allowed_Host, err error) {
6866 params := []interface{}{
6867 typeClassName,
6868 hostId,
6869 }
6870 err = r.Session.DoRequest("SoftLayer_Network_Storage", "removeAccessFromHost", params, &r.Options, &resp)
6871 return
6872 }
6873
6874 // This method is used to modify the access control list for this Storage volume. The [[SoftLayer_Hardware|SoftLayer_Virtual_Guest|SoftLayer_Network_Subnet|SoftLayer_Network_Subnet_IpAddress]] objects which have been allowed access to this storage will be listed in the [[allowedHardware|allowedVirtualGuests|allowedSubnets|allowedIpAddresses]] property of this storage volume.
6875 func (r Network_Storage) RemoveAccessFromHostList(hostObjectTemplates []datatypes.Container_Network_Storage_Host) (resp []datatypes.Network_Storage_Allowed_Host, err error) {
6876 params := []interface{}{
6877 hostObjectTemplates,
6878 }
6879 err = r.Session.DoRequest("SoftLayer_Network_Storage", "removeAccessFromHostList", params, &r.Options, &resp)
6880 return
6881 }
6882
6883 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Network_Subnet_IpAddress objects which have been allowed access to this storage will be listed in the allowedIpAddresses property of this storage volume.
6884 func (r Network_Storage) RemoveAccessFromIpAddress(ipAddressObjectTemplate *datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
6885 params := []interface{}{
6886 ipAddressObjectTemplate,
6887 }
6888 err = r.Session.DoRequest("SoftLayer_Network_Storage", "removeAccessFromIpAddress", params, &r.Options, &resp)
6889 return
6890 }
6891
6892 // no documentation yet
6893 func (r Network_Storage) RemoveAccessFromIpAddressList(ipAddressObjectTemplates []datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
6894 params := []interface{}{
6895 ipAddressObjectTemplates,
6896 }
6897 err = r.Session.DoRequest("SoftLayer_Network_Storage", "removeAccessFromIpAddressList", params, &r.Options, &resp)
6898 return
6899 }
6900
6901 // no documentation yet
6902 func (r Network_Storage) RemoveAccessFromSubnet(subnetObjectTemplate *datatypes.Network_Subnet) (resp bool, err error) {
6903 params := []interface{}{
6904 subnetObjectTemplate,
6905 }
6906 err = r.Session.DoRequest("SoftLayer_Network_Storage", "removeAccessFromSubnet", params, &r.Options, &resp)
6907 return
6908 }
6909
6910 // no documentation yet
6911 func (r Network_Storage) RemoveAccessFromSubnetList(subnetObjectTemplates []datatypes.Network_Subnet) (resp bool, err error) {
6912 params := []interface{}{
6913 subnetObjectTemplates,
6914 }
6915 err = r.Session.DoRequest("SoftLayer_Network_Storage", "removeAccessFromSubnetList", params, &r.Options, &resp)
6916 return
6917 }
6918
6919 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage volume.
6920 func (r Network_Storage) RemoveAccessFromVirtualGuest(virtualGuestObjectTemplate *datatypes.Virtual_Guest) (resp bool, err error) {
6921 params := []interface{}{
6922 virtualGuestObjectTemplate,
6923 }
6924 err = r.Session.DoRequest("SoftLayer_Network_Storage", "removeAccessFromVirtualGuest", params, &r.Options, &resp)
6925 return
6926 }
6927
6928 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage volume.
6929 func (r Network_Storage) RemoveAccessFromVirtualGuestList(virtualGuestObjectTemplates []datatypes.Virtual_Guest) (resp bool, err error) {
6930 params := []interface{}{
6931 virtualGuestObjectTemplates,
6932 }
6933 err = r.Session.DoRequest("SoftLayer_Network_Storage", "removeAccessFromVirtualGuestList", params, &r.Options, &resp)
6934 return
6935 }
6936
6937 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Hardware objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationHardware property of this storage volume.
6938 func (r Network_Storage) RemoveAccessToReplicantFromHardwareList(hardwareObjectTemplates []datatypes.Hardware) (resp bool, err error) {
6939 params := []interface{}{
6940 hardwareObjectTemplates,
6941 }
6942 err = r.Session.DoRequest("SoftLayer_Network_Storage", "removeAccessToReplicantFromHardwareList", params, &r.Options, &resp)
6943 return
6944 }
6945
6946 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Network_Subnet_IpAddress objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationIpAddresses property of this storage volume.
6947 func (r Network_Storage) RemoveAccessToReplicantFromIpAddressList(ipAddressObjectTemplates []datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
6948 params := []interface{}{
6949 ipAddressObjectTemplates,
6950 }
6951 err = r.Session.DoRequest("SoftLayer_Network_Storage", "removeAccessToReplicantFromIpAddressList", params, &r.Options, &resp)
6952 return
6953 }
6954
6955 // no documentation yet
6956 func (r Network_Storage) RemoveAccessToReplicantFromSubnet(subnetObjectTemplate *datatypes.Network_Subnet) (resp bool, err error) {
6957 params := []interface{}{
6958 subnetObjectTemplate,
6959 }
6960 err = r.Session.DoRequest("SoftLayer_Network_Storage", "removeAccessToReplicantFromSubnet", params, &r.Options, &resp)
6961 return
6962 }
6963
6964 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Network_Subnet objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationSubnets property of this storage volume.
6965 func (r Network_Storage) RemoveAccessToReplicantFromSubnetList(subnetObjectTemplates []datatypes.Network_Subnet) (resp bool, err error) {
6966 params := []interface{}{
6967 subnetObjectTemplates,
6968 }
6969 err = r.Session.DoRequest("SoftLayer_Network_Storage", "removeAccessToReplicantFromSubnetList", params, &r.Options, &resp)
6970 return
6971 }
6972
6973 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationVirtualGuests property of this storage volume.
6974 func (r Network_Storage) RemoveAccessToReplicantFromVirtualGuestList(virtualGuestObjectTemplates []datatypes.Virtual_Guest) (resp bool, err error) {
6975 params := []interface{}{
6976 virtualGuestObjectTemplates,
6977 }
6978 err = r.Session.DoRequest("SoftLayer_Network_Storage", "removeAccessToReplicantFromVirtualGuestList", params, &r.Options, &resp)
6979 return
6980 }
6981
6982 // This method will remove a credential from the current volume. The credential must have been created using the 'addNewCredential' method.
6983 func (r Network_Storage) RemoveCredential(username *string) (resp bool, err error) {
6984 params := []interface{}{
6985 username,
6986 }
6987 err = r.Session.DoRequest("SoftLayer_Network_Storage", "removeCredential", params, &r.Options, &resp)
6988 return
6989 }
6990
6991 // {{CloudLayerOnlyMethod}} Restore an individual file so that it may be used as it was before it was deleted.
6992 //
6993 // If a file is deleted from a Virtual Server Storage account, the file is placed into the account's recycle bin and not permanently deleted. Therefore, restoreFile can be used to place the file back into your Virtual Server account's root directory.
6994 func (r Network_Storage) RestoreFile(fileId *string) (resp datatypes.Container_Utility_File_Entity, err error) {
6995 params := []interface{}{
6996 fileId,
6997 }
6998 err = r.Session.DoRequest("SoftLayer_Network_Storage", "restoreFile", params, &r.Options, &resp)
6999 return
7000 }
7001
7002 // Restore the volume from a snapshot that was previously taken.
7003 func (r Network_Storage) RestoreFromSnapshot(snapshotId *int) (resp bool, err error) {
7004 params := []interface{}{
7005 snapshotId,
7006 }
7007 err = r.Session.DoRequest("SoftLayer_Network_Storage", "restoreFromSnapshot", params, &r.Options, &resp)
7008 return
7009 }
7010
7011 // The method will retrieve the password for the StorageLayer or Virtual Server Storage Account and email the password. The Storage Account passwords will be emailed to the master user. For Virtual Server Storage, the password will be sent to the email address used as the username.
7012 func (r Network_Storage) SendPasswordReminderEmail(username *string) (resp bool, err error) {
7013 params := []interface{}{
7014 username,
7015 }
7016 err = r.Session.DoRequest("SoftLayer_Network_Storage", "sendPasswordReminderEmail", params, &r.Options, &resp)
7017 return
7018 }
7019
7020 // Enable or disable the mounting of a Storage volume. When mounting is enabled the Storage volume will be mountable or available for use.
7021 //
7022 // For Virtual Server volumes, disabling mounting will deny access to the Virtual Server Account, remove published material and deny all file interaction including uploads and downloads.
7023 //
7024 // Enabling or disabling mounting for Storage volumes is not possible if mounting has been disabled by SoftLayer or a parent account.
7025 func (r Network_Storage) SetMountable(mountable *bool) (resp bool, err error) {
7026 params := []interface{}{
7027 mountable,
7028 }
7029 err = r.Session.DoRequest("SoftLayer_Network_Storage", "setMountable", params, &r.Options, &resp)
7030 return
7031 }
7032
7033 // no documentation yet
7034 func (r Network_Storage) SetSnapshotAllocation(capacityGb *int) (err error) {
7035 var resp datatypes.Void
7036 params := []interface{}{
7037 capacityGb,
7038 }
7039 err = r.Session.DoRequest("SoftLayer_Network_Storage", "setSnapshotAllocation", params, &r.Options, &resp)
7040 return
7041 }
7042
7043 // Function to enable/disable snapshot warning notification.
7044 func (r Network_Storage) SetSnapshotNotification(notificationFlag *bool) (err error) {
7045 var resp datatypes.Void
7046 params := []interface{}{
7047 notificationFlag,
7048 }
7049 err = r.Session.DoRequest("SoftLayer_Network_Storage", "setSnapshotNotification", params, &r.Options, &resp)
7050 return
7051 }
7052
7053 // Upgrade the Storage volume to one of the upgradable packages (for example from 10 Gigs of EVault storage to 100 Gigs of EVault storage).
7054 func (r Network_Storage) UpgradeVolumeCapacity(itemId *int) (resp bool, err error) {
7055 params := []interface{}{
7056 itemId,
7057 }
7058 err = r.Session.DoRequest("SoftLayer_Network_Storage", "upgradeVolumeCapacity", params, &r.Options, &resp)
7059 return
7060 }
7061
7062 // {{CloudLayerOnlyMethod}} Upload a file to a Storage account's root directory. Once uploaded, this method returns new file entity identifier for the upload file.
7063 //
7064 // The following properties are required in the ”file” parameter.
7065 // *”'name”': The name of the file you wish to upload
7066 // *”'content”': The raw contents of the file you wish to upload.
7067 // *”'contentType”': The MIME-type of content that you wish to upload.
7068 func (r Network_Storage) UploadFile(file *datatypes.Container_Utility_File_Entity) (resp datatypes.Container_Utility_File_Entity, err error) {
7069 params := []interface{}{
7070 file,
7071 }
7072 err = r.Session.DoRequest("SoftLayer_Network_Storage", "uploadFile", params, &r.Options, &resp)
7073 return
7074 }
7075
7076 // This method is used to validate if the hosts are behind gateway or not from [SoftLayer_Network_Subnet|SoftLayer_Network_Subnet_IpAddress] objects. This returns [SoftLayer_Container_Network_Storage_HostsGatewayInformation] object containing the host details along with a boolean attribute which indicates if it's behind the gateway or not.
7077 func (r Network_Storage) ValidateHostsAccess(hostObjectTemplates []datatypes.Container_Network_Storage_Host) (resp []datatypes.Container_Network_Storage_HostsGatewayInformation, err error) {
7078 params := []interface{}{
7079 hostObjectTemplates,
7080 }
7081 err = r.Session.DoRequest("SoftLayer_Network_Storage", "validateHostsAccess", params, &r.Options, &resp)
7082 return
7083 }
7084
7085 // no documentation yet
7086 type Network_Storage_Allowed_Host struct {
7087 Session session.SLSession
7088 Options sl.Options
7089 }
7090
7091 // GetNetworkStorageAllowedHostService returns an instance of the Network_Storage_Allowed_Host SoftLayer service
7092 func GetNetworkStorageAllowedHostService(sess session.SLSession) Network_Storage_Allowed_Host {
7093 return Network_Storage_Allowed_Host{Session: sess}
7094 }
7095
7096 func (r Network_Storage_Allowed_Host) Id(id int) Network_Storage_Allowed_Host {
7097 r.Options.Id = &id
7098 return r
7099 }
7100
7101 func (r Network_Storage_Allowed_Host) Mask(mask string) Network_Storage_Allowed_Host {
7102 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
7103 mask = fmt.Sprintf("mask[%s]", mask)
7104 }
7105
7106 r.Options.Mask = mask
7107 return r
7108 }
7109
7110 func (r Network_Storage_Allowed_Host) Filter(filter string) Network_Storage_Allowed_Host {
7111 r.Options.Filter = filter
7112 return r
7113 }
7114
7115 func (r Network_Storage_Allowed_Host) Limit(limit int) Network_Storage_Allowed_Host {
7116 r.Options.Limit = &limit
7117 return r
7118 }
7119
7120 func (r Network_Storage_Allowed_Host) Offset(offset int) Network_Storage_Allowed_Host {
7121 r.Options.Offset = &offset
7122 return r
7123 }
7124
7125 // no documentation yet
7126 func (r Network_Storage_Allowed_Host) AssignSubnetsToAcl(subnetIds []int) (resp []int, err error) {
7127 params := []interface{}{
7128 subnetIds,
7129 }
7130 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host", "assignSubnetsToAcl", params, &r.Options, &resp)
7131 return
7132 }
7133
7134 // no documentation yet
7135 func (r Network_Storage_Allowed_Host) EditObject(templateObject *datatypes.Network_Storage_Allowed_Host) (resp bool, err error) {
7136 params := []interface{}{
7137 templateObject,
7138 }
7139 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host", "editObject", params, &r.Options, &resp)
7140 return
7141 }
7142
7143 // no documentation yet
7144 func (r Network_Storage_Allowed_Host) GetAllObjects() (resp []datatypes.Network_Storage_Allowed_Host, err error) {
7145 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host", "getAllObjects", nil, &r.Options, &resp)
7146 return
7147 }
7148
7149 // Retrieve The SoftLayer_Network_Storage_Group objects this SoftLayer_Network_Storage_Allowed_Host is present in.
7150 func (r Network_Storage_Allowed_Host) GetAssignedGroups() (resp []datatypes.Network_Storage_Group, err error) {
7151 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host", "getAssignedGroups", nil, &r.Options, &resp)
7152 return
7153 }
7154
7155 // Retrieve The SoftLayer_Network_Storage volumes to which this SoftLayer_Network_Storage_Allowed_Host is allowed access.
7156 func (r Network_Storage_Allowed_Host) GetAssignedIscsiVolumes() (resp []datatypes.Network_Storage, err error) {
7157 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host", "getAssignedIscsiVolumes", nil, &r.Options, &resp)
7158 return
7159 }
7160
7161 // Retrieve The SoftLayer_Network_Storage volumes to which this SoftLayer_Network_Storage_Allowed_Host is allowed access.
7162 func (r Network_Storage_Allowed_Host) GetAssignedNfsVolumes() (resp []datatypes.Network_Storage, err error) {
7163 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host", "getAssignedNfsVolumes", nil, &r.Options, &resp)
7164 return
7165 }
7166
7167 // Retrieve The SoftLayer_Network_Storage primary volumes whose replicas are allowed access.
7168 func (r Network_Storage_Allowed_Host) GetAssignedReplicationVolumes() (resp []datatypes.Network_Storage, err error) {
7169 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host", "getAssignedReplicationVolumes", nil, &r.Options, &resp)
7170 return
7171 }
7172
7173 // Retrieve The SoftLayer_Network_Storage volumes to which this SoftLayer_Network_Storage_Allowed_Host is allowed access.
7174 func (r Network_Storage_Allowed_Host) GetAssignedVolumes() (resp []datatypes.Network_Storage, err error) {
7175 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host", "getAssignedVolumes", nil, &r.Options, &resp)
7176 return
7177 }
7178
7179 // Retrieve The SoftLayer_Network_Storage_Credential this allowed host uses.
7180 func (r Network_Storage_Allowed_Host) GetCredential() (resp datatypes.Network_Storage_Credential, err error) {
7181 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host", "getCredential", nil, &r.Options, &resp)
7182 return
7183 }
7184
7185 // no documentation yet
7186 func (r Network_Storage_Allowed_Host) GetObject() (resp datatypes.Network_Storage_Allowed_Host, err error) {
7187 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host", "getObject", nil, &r.Options, &resp)
7188 return
7189 }
7190
7191 // Retrieve Connections to a target with a source IP in this subnet prefix are allowed.
7192 func (r Network_Storage_Allowed_Host) GetSourceSubnet() (resp string, err error) {
7193 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host", "getSourceSubnet", nil, &r.Options, &resp)
7194 return
7195 }
7196
7197 // Retrieve The SoftLayer_Network_Subnet records assigned to the ACL for this allowed host.
7198 func (r Network_Storage_Allowed_Host) GetSubnetsInAcl() (resp []datatypes.Network_Subnet, err error) {
7199 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host", "getSubnetsInAcl", nil, &r.Options, &resp)
7200 return
7201 }
7202
7203 // no documentation yet
7204 func (r Network_Storage_Allowed_Host) RemoveSubnetsFromAcl(subnetIds []int) (resp []int, err error) {
7205 params := []interface{}{
7206 subnetIds,
7207 }
7208 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host", "removeSubnetsFromAcl", params, &r.Options, &resp)
7209 return
7210 }
7211
7212 // Use this method to modify the credential password for a SoftLayer_Network_Storage_Allowed_Host object.
7213 func (r Network_Storage_Allowed_Host) SetCredentialPassword(password *string) (resp bool, err error) {
7214 params := []interface{}{
7215 password,
7216 }
7217 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host", "setCredentialPassword", params, &r.Options, &resp)
7218 return
7219 }
7220
7221 // no documentation yet
7222 type Network_Storage_Allowed_Host_Hardware struct {
7223 Session session.SLSession
7224 Options sl.Options
7225 }
7226
7227 // GetNetworkStorageAllowedHostHardwareService returns an instance of the Network_Storage_Allowed_Host_Hardware SoftLayer service
7228 func GetNetworkStorageAllowedHostHardwareService(sess session.SLSession) Network_Storage_Allowed_Host_Hardware {
7229 return Network_Storage_Allowed_Host_Hardware{Session: sess}
7230 }
7231
7232 func (r Network_Storage_Allowed_Host_Hardware) Id(id int) Network_Storage_Allowed_Host_Hardware {
7233 r.Options.Id = &id
7234 return r
7235 }
7236
7237 func (r Network_Storage_Allowed_Host_Hardware) Mask(mask string) Network_Storage_Allowed_Host_Hardware {
7238 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
7239 mask = fmt.Sprintf("mask[%s]", mask)
7240 }
7241
7242 r.Options.Mask = mask
7243 return r
7244 }
7245
7246 func (r Network_Storage_Allowed_Host_Hardware) Filter(filter string) Network_Storage_Allowed_Host_Hardware {
7247 r.Options.Filter = filter
7248 return r
7249 }
7250
7251 func (r Network_Storage_Allowed_Host_Hardware) Limit(limit int) Network_Storage_Allowed_Host_Hardware {
7252 r.Options.Limit = &limit
7253 return r
7254 }
7255
7256 func (r Network_Storage_Allowed_Host_Hardware) Offset(offset int) Network_Storage_Allowed_Host_Hardware {
7257 r.Options.Offset = &offset
7258 return r
7259 }
7260
7261 // no documentation yet
7262 func (r Network_Storage_Allowed_Host_Hardware) AssignSubnetsToAcl(subnetIds []int) (resp []int, err error) {
7263 params := []interface{}{
7264 subnetIds,
7265 }
7266 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Hardware", "assignSubnetsToAcl", params, &r.Options, &resp)
7267 return
7268 }
7269
7270 // no documentation yet
7271 func (r Network_Storage_Allowed_Host_Hardware) EditObject(templateObject *datatypes.Network_Storage_Allowed_Host) (resp bool, err error) {
7272 params := []interface{}{
7273 templateObject,
7274 }
7275 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Hardware", "editObject", params, &r.Options, &resp)
7276 return
7277 }
7278
7279 // Retrieve The SoftLayer_Account object which this SoftLayer_Network_Storage_Allowed_Host belongs to.
7280 func (r Network_Storage_Allowed_Host_Hardware) GetAccount() (resp datatypes.Account, err error) {
7281 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Hardware", "getAccount", nil, &r.Options, &resp)
7282 return
7283 }
7284
7285 // no documentation yet
7286 func (r Network_Storage_Allowed_Host_Hardware) GetAllObjects() (resp []datatypes.Network_Storage_Allowed_Host, err error) {
7287 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Hardware", "getAllObjects", nil, &r.Options, &resp)
7288 return
7289 }
7290
7291 // Retrieve The SoftLayer_Network_Storage_Group objects this SoftLayer_Network_Storage_Allowed_Host is present in.
7292 func (r Network_Storage_Allowed_Host_Hardware) GetAssignedGroups() (resp []datatypes.Network_Storage_Group, err error) {
7293 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Hardware", "getAssignedGroups", nil, &r.Options, &resp)
7294 return
7295 }
7296
7297 // Retrieve The SoftLayer_Network_Storage volumes to which this SoftLayer_Network_Storage_Allowed_Host is allowed access.
7298 func (r Network_Storage_Allowed_Host_Hardware) GetAssignedIscsiVolumes() (resp []datatypes.Network_Storage, err error) {
7299 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Hardware", "getAssignedIscsiVolumes", nil, &r.Options, &resp)
7300 return
7301 }
7302
7303 // Retrieve The SoftLayer_Network_Storage volumes to which this SoftLayer_Network_Storage_Allowed_Host is allowed access.
7304 func (r Network_Storage_Allowed_Host_Hardware) GetAssignedNfsVolumes() (resp []datatypes.Network_Storage, err error) {
7305 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Hardware", "getAssignedNfsVolumes", nil, &r.Options, &resp)
7306 return
7307 }
7308
7309 // Retrieve The SoftLayer_Network_Storage primary volumes whose replicas are allowed access.
7310 func (r Network_Storage_Allowed_Host_Hardware) GetAssignedReplicationVolumes() (resp []datatypes.Network_Storage, err error) {
7311 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Hardware", "getAssignedReplicationVolumes", nil, &r.Options, &resp)
7312 return
7313 }
7314
7315 // Retrieve The SoftLayer_Network_Storage volumes to which this SoftLayer_Network_Storage_Allowed_Host is allowed access.
7316 func (r Network_Storage_Allowed_Host_Hardware) GetAssignedVolumes() (resp []datatypes.Network_Storage, err error) {
7317 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Hardware", "getAssignedVolumes", nil, &r.Options, &resp)
7318 return
7319 }
7320
7321 // Retrieve The SoftLayer_Network_Storage_Credential this allowed host uses.
7322 func (r Network_Storage_Allowed_Host_Hardware) GetCredential() (resp datatypes.Network_Storage_Credential, err error) {
7323 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Hardware", "getCredential", nil, &r.Options, &resp)
7324 return
7325 }
7326
7327 // no documentation yet
7328 func (r Network_Storage_Allowed_Host_Hardware) GetObject() (resp datatypes.Network_Storage_Allowed_Host_Hardware, err error) {
7329 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Hardware", "getObject", nil, &r.Options, &resp)
7330 return
7331 }
7332
7333 // Retrieve The SoftLayer_Hardware object which this SoftLayer_Network_Storage_Allowed_Host is referencing.
7334 func (r Network_Storage_Allowed_Host_Hardware) GetResource() (resp datatypes.Hardware, err error) {
7335 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Hardware", "getResource", nil, &r.Options, &resp)
7336 return
7337 }
7338
7339 // Retrieve Connections to a target with a source IP in this subnet prefix are allowed.
7340 func (r Network_Storage_Allowed_Host_Hardware) GetSourceSubnet() (resp string, err error) {
7341 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Hardware", "getSourceSubnet", nil, &r.Options, &resp)
7342 return
7343 }
7344
7345 // Retrieve The SoftLayer_Network_Subnet records assigned to the ACL for this allowed host.
7346 func (r Network_Storage_Allowed_Host_Hardware) GetSubnetsInAcl() (resp []datatypes.Network_Subnet, err error) {
7347 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Hardware", "getSubnetsInAcl", nil, &r.Options, &resp)
7348 return
7349 }
7350
7351 // no documentation yet
7352 func (r Network_Storage_Allowed_Host_Hardware) RemoveSubnetsFromAcl(subnetIds []int) (resp []int, err error) {
7353 params := []interface{}{
7354 subnetIds,
7355 }
7356 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Hardware", "removeSubnetsFromAcl", params, &r.Options, &resp)
7357 return
7358 }
7359
7360 // Use this method to modify the credential password for a SoftLayer_Network_Storage_Allowed_Host object.
7361 func (r Network_Storage_Allowed_Host_Hardware) SetCredentialPassword(password *string) (resp bool, err error) {
7362 params := []interface{}{
7363 password,
7364 }
7365 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Hardware", "setCredentialPassword", params, &r.Options, &resp)
7366 return
7367 }
7368
7369 // no documentation yet
7370 type Network_Storage_Allowed_Host_IpAddress struct {
7371 Session session.SLSession
7372 Options sl.Options
7373 }
7374
7375 // GetNetworkStorageAllowedHostIpAddressService returns an instance of the Network_Storage_Allowed_Host_IpAddress SoftLayer service
7376 func GetNetworkStorageAllowedHostIpAddressService(sess session.SLSession) Network_Storage_Allowed_Host_IpAddress {
7377 return Network_Storage_Allowed_Host_IpAddress{Session: sess}
7378 }
7379
7380 func (r Network_Storage_Allowed_Host_IpAddress) Id(id int) Network_Storage_Allowed_Host_IpAddress {
7381 r.Options.Id = &id
7382 return r
7383 }
7384
7385 func (r Network_Storage_Allowed_Host_IpAddress) Mask(mask string) Network_Storage_Allowed_Host_IpAddress {
7386 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
7387 mask = fmt.Sprintf("mask[%s]", mask)
7388 }
7389
7390 r.Options.Mask = mask
7391 return r
7392 }
7393
7394 func (r Network_Storage_Allowed_Host_IpAddress) Filter(filter string) Network_Storage_Allowed_Host_IpAddress {
7395 r.Options.Filter = filter
7396 return r
7397 }
7398
7399 func (r Network_Storage_Allowed_Host_IpAddress) Limit(limit int) Network_Storage_Allowed_Host_IpAddress {
7400 r.Options.Limit = &limit
7401 return r
7402 }
7403
7404 func (r Network_Storage_Allowed_Host_IpAddress) Offset(offset int) Network_Storage_Allowed_Host_IpAddress {
7405 r.Options.Offset = &offset
7406 return r
7407 }
7408
7409 // no documentation yet
7410 func (r Network_Storage_Allowed_Host_IpAddress) AssignSubnetsToAcl(subnetIds []int) (resp []int, err error) {
7411 params := []interface{}{
7412 subnetIds,
7413 }
7414 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_IpAddress", "assignSubnetsToAcl", params, &r.Options, &resp)
7415 return
7416 }
7417
7418 // no documentation yet
7419 func (r Network_Storage_Allowed_Host_IpAddress) EditObject(templateObject *datatypes.Network_Storage_Allowed_Host) (resp bool, err error) {
7420 params := []interface{}{
7421 templateObject,
7422 }
7423 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_IpAddress", "editObject", params, &r.Options, &resp)
7424 return
7425 }
7426
7427 // Retrieve The SoftLayer_Account object which this SoftLayer_Network_Storage_Allowed_Host belongs to.
7428 func (r Network_Storage_Allowed_Host_IpAddress) GetAccount() (resp datatypes.Account, err error) {
7429 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_IpAddress", "getAccount", nil, &r.Options, &resp)
7430 return
7431 }
7432
7433 // no documentation yet
7434 func (r Network_Storage_Allowed_Host_IpAddress) GetAllObjects() (resp []datatypes.Network_Storage_Allowed_Host, err error) {
7435 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_IpAddress", "getAllObjects", nil, &r.Options, &resp)
7436 return
7437 }
7438
7439 // Retrieve The SoftLayer_Network_Storage_Group objects this SoftLayer_Network_Storage_Allowed_Host is present in.
7440 func (r Network_Storage_Allowed_Host_IpAddress) GetAssignedGroups() (resp []datatypes.Network_Storage_Group, err error) {
7441 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_IpAddress", "getAssignedGroups", nil, &r.Options, &resp)
7442 return
7443 }
7444
7445 // Retrieve The SoftLayer_Network_Storage volumes to which this SoftLayer_Network_Storage_Allowed_Host is allowed access.
7446 func (r Network_Storage_Allowed_Host_IpAddress) GetAssignedIscsiVolumes() (resp []datatypes.Network_Storage, err error) {
7447 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_IpAddress", "getAssignedIscsiVolumes", nil, &r.Options, &resp)
7448 return
7449 }
7450
7451 // Retrieve The SoftLayer_Network_Storage volumes to which this SoftLayer_Network_Storage_Allowed_Host is allowed access.
7452 func (r Network_Storage_Allowed_Host_IpAddress) GetAssignedNfsVolumes() (resp []datatypes.Network_Storage, err error) {
7453 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_IpAddress", "getAssignedNfsVolumes", nil, &r.Options, &resp)
7454 return
7455 }
7456
7457 // Retrieve The SoftLayer_Network_Storage primary volumes whose replicas are allowed access.
7458 func (r Network_Storage_Allowed_Host_IpAddress) GetAssignedReplicationVolumes() (resp []datatypes.Network_Storage, err error) {
7459 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_IpAddress", "getAssignedReplicationVolumes", nil, &r.Options, &resp)
7460 return
7461 }
7462
7463 // Retrieve The SoftLayer_Network_Storage volumes to which this SoftLayer_Network_Storage_Allowed_Host is allowed access.
7464 func (r Network_Storage_Allowed_Host_IpAddress) GetAssignedVolumes() (resp []datatypes.Network_Storage, err error) {
7465 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_IpAddress", "getAssignedVolumes", nil, &r.Options, &resp)
7466 return
7467 }
7468
7469 // Retrieve The SoftLayer_Network_Storage_Credential this allowed host uses.
7470 func (r Network_Storage_Allowed_Host_IpAddress) GetCredential() (resp datatypes.Network_Storage_Credential, err error) {
7471 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_IpAddress", "getCredential", nil, &r.Options, &resp)
7472 return
7473 }
7474
7475 // no documentation yet
7476 func (r Network_Storage_Allowed_Host_IpAddress) GetObject() (resp datatypes.Network_Storage_Allowed_Host_IpAddress, err error) {
7477 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_IpAddress", "getObject", nil, &r.Options, &resp)
7478 return
7479 }
7480
7481 // Retrieve The SoftLayer_Network_Subnet_IpAddress object which this SoftLayer_Network_Storage_Allowed_Host is referencing.
7482 func (r Network_Storage_Allowed_Host_IpAddress) GetResource() (resp datatypes.Network_Subnet_IpAddress, err error) {
7483 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_IpAddress", "getResource", nil, &r.Options, &resp)
7484 return
7485 }
7486
7487 // Retrieve Connections to a target with a source IP in this subnet prefix are allowed.
7488 func (r Network_Storage_Allowed_Host_IpAddress) GetSourceSubnet() (resp string, err error) {
7489 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_IpAddress", "getSourceSubnet", nil, &r.Options, &resp)
7490 return
7491 }
7492
7493 // Retrieve The SoftLayer_Network_Subnet records assigned to the ACL for this allowed host.
7494 func (r Network_Storage_Allowed_Host_IpAddress) GetSubnetsInAcl() (resp []datatypes.Network_Subnet, err error) {
7495 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_IpAddress", "getSubnetsInAcl", nil, &r.Options, &resp)
7496 return
7497 }
7498
7499 // no documentation yet
7500 func (r Network_Storage_Allowed_Host_IpAddress) RemoveSubnetsFromAcl(subnetIds []int) (resp []int, err error) {
7501 params := []interface{}{
7502 subnetIds,
7503 }
7504 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_IpAddress", "removeSubnetsFromAcl", params, &r.Options, &resp)
7505 return
7506 }
7507
7508 // Use this method to modify the credential password for a SoftLayer_Network_Storage_Allowed_Host object.
7509 func (r Network_Storage_Allowed_Host_IpAddress) SetCredentialPassword(password *string) (resp bool, err error) {
7510 params := []interface{}{
7511 password,
7512 }
7513 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_IpAddress", "setCredentialPassword", params, &r.Options, &resp)
7514 return
7515 }
7516
7517 // no documentation yet
7518 type Network_Storage_Allowed_Host_Subnet struct {
7519 Session session.SLSession
7520 Options sl.Options
7521 }
7522
7523 // GetNetworkStorageAllowedHostSubnetService returns an instance of the Network_Storage_Allowed_Host_Subnet SoftLayer service
7524 func GetNetworkStorageAllowedHostSubnetService(sess session.SLSession) Network_Storage_Allowed_Host_Subnet {
7525 return Network_Storage_Allowed_Host_Subnet{Session: sess}
7526 }
7527
7528 func (r Network_Storage_Allowed_Host_Subnet) Id(id int) Network_Storage_Allowed_Host_Subnet {
7529 r.Options.Id = &id
7530 return r
7531 }
7532
7533 func (r Network_Storage_Allowed_Host_Subnet) Mask(mask string) Network_Storage_Allowed_Host_Subnet {
7534 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
7535 mask = fmt.Sprintf("mask[%s]", mask)
7536 }
7537
7538 r.Options.Mask = mask
7539 return r
7540 }
7541
7542 func (r Network_Storage_Allowed_Host_Subnet) Filter(filter string) Network_Storage_Allowed_Host_Subnet {
7543 r.Options.Filter = filter
7544 return r
7545 }
7546
7547 func (r Network_Storage_Allowed_Host_Subnet) Limit(limit int) Network_Storage_Allowed_Host_Subnet {
7548 r.Options.Limit = &limit
7549 return r
7550 }
7551
7552 func (r Network_Storage_Allowed_Host_Subnet) Offset(offset int) Network_Storage_Allowed_Host_Subnet {
7553 r.Options.Offset = &offset
7554 return r
7555 }
7556
7557 // no documentation yet
7558 func (r Network_Storage_Allowed_Host_Subnet) AssignSubnetsToAcl(subnetIds []int) (resp []int, err error) {
7559 params := []interface{}{
7560 subnetIds,
7561 }
7562 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Subnet", "assignSubnetsToAcl", params, &r.Options, &resp)
7563 return
7564 }
7565
7566 // no documentation yet
7567 func (r Network_Storage_Allowed_Host_Subnet) EditObject(templateObject *datatypes.Network_Storage_Allowed_Host) (resp bool, err error) {
7568 params := []interface{}{
7569 templateObject,
7570 }
7571 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Subnet", "editObject", params, &r.Options, &resp)
7572 return
7573 }
7574
7575 // Retrieve The SoftLayer_Account object which this SoftLayer_Network_Storage_Allowed_Host belongs to.
7576 func (r Network_Storage_Allowed_Host_Subnet) GetAccount() (resp datatypes.Account, err error) {
7577 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Subnet", "getAccount", nil, &r.Options, &resp)
7578 return
7579 }
7580
7581 // no documentation yet
7582 func (r Network_Storage_Allowed_Host_Subnet) GetAllObjects() (resp []datatypes.Network_Storage_Allowed_Host, err error) {
7583 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Subnet", "getAllObjects", nil, &r.Options, &resp)
7584 return
7585 }
7586
7587 // Retrieve The SoftLayer_Network_Storage_Group objects this SoftLayer_Network_Storage_Allowed_Host is present in.
7588 func (r Network_Storage_Allowed_Host_Subnet) GetAssignedGroups() (resp []datatypes.Network_Storage_Group, err error) {
7589 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Subnet", "getAssignedGroups", nil, &r.Options, &resp)
7590 return
7591 }
7592
7593 // Retrieve The SoftLayer_Network_Storage volumes to which this SoftLayer_Network_Storage_Allowed_Host is allowed access.
7594 func (r Network_Storage_Allowed_Host_Subnet) GetAssignedIscsiVolumes() (resp []datatypes.Network_Storage, err error) {
7595 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Subnet", "getAssignedIscsiVolumes", nil, &r.Options, &resp)
7596 return
7597 }
7598
7599 // Retrieve The SoftLayer_Network_Storage volumes to which this SoftLayer_Network_Storage_Allowed_Host is allowed access.
7600 func (r Network_Storage_Allowed_Host_Subnet) GetAssignedNfsVolumes() (resp []datatypes.Network_Storage, err error) {
7601 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Subnet", "getAssignedNfsVolumes", nil, &r.Options, &resp)
7602 return
7603 }
7604
7605 // Retrieve The SoftLayer_Network_Storage primary volumes whose replicas are allowed access.
7606 func (r Network_Storage_Allowed_Host_Subnet) GetAssignedReplicationVolumes() (resp []datatypes.Network_Storage, err error) {
7607 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Subnet", "getAssignedReplicationVolumes", nil, &r.Options, &resp)
7608 return
7609 }
7610
7611 // Retrieve The SoftLayer_Network_Storage volumes to which this SoftLayer_Network_Storage_Allowed_Host is allowed access.
7612 func (r Network_Storage_Allowed_Host_Subnet) GetAssignedVolumes() (resp []datatypes.Network_Storage, err error) {
7613 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Subnet", "getAssignedVolumes", nil, &r.Options, &resp)
7614 return
7615 }
7616
7617 // Retrieve The SoftLayer_Network_Storage_Credential this allowed host uses.
7618 func (r Network_Storage_Allowed_Host_Subnet) GetCredential() (resp datatypes.Network_Storage_Credential, err error) {
7619 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Subnet", "getCredential", nil, &r.Options, &resp)
7620 return
7621 }
7622
7623 // no documentation yet
7624 func (r Network_Storage_Allowed_Host_Subnet) GetObject() (resp datatypes.Network_Storage_Allowed_Host_Subnet, err error) {
7625 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Subnet", "getObject", nil, &r.Options, &resp)
7626 return
7627 }
7628
7629 // Retrieve The SoftLayer_Network_Subnet object which this SoftLayer_Network_Storage_Allowed_Host is referencing.
7630 func (r Network_Storage_Allowed_Host_Subnet) GetResource() (resp datatypes.Network_Subnet, err error) {
7631 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Subnet", "getResource", nil, &r.Options, &resp)
7632 return
7633 }
7634
7635 // Retrieve Connections to a target with a source IP in this subnet prefix are allowed.
7636 func (r Network_Storage_Allowed_Host_Subnet) GetSourceSubnet() (resp string, err error) {
7637 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Subnet", "getSourceSubnet", nil, &r.Options, &resp)
7638 return
7639 }
7640
7641 // Retrieve The SoftLayer_Network_Subnet records assigned to the ACL for this allowed host.
7642 func (r Network_Storage_Allowed_Host_Subnet) GetSubnetsInAcl() (resp []datatypes.Network_Subnet, err error) {
7643 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Subnet", "getSubnetsInAcl", nil, &r.Options, &resp)
7644 return
7645 }
7646
7647 // no documentation yet
7648 func (r Network_Storage_Allowed_Host_Subnet) RemoveSubnetsFromAcl(subnetIds []int) (resp []int, err error) {
7649 params := []interface{}{
7650 subnetIds,
7651 }
7652 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Subnet", "removeSubnetsFromAcl", params, &r.Options, &resp)
7653 return
7654 }
7655
7656 // Use this method to modify the credential password for a SoftLayer_Network_Storage_Allowed_Host object.
7657 func (r Network_Storage_Allowed_Host_Subnet) SetCredentialPassword(password *string) (resp bool, err error) {
7658 params := []interface{}{
7659 password,
7660 }
7661 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_Subnet", "setCredentialPassword", params, &r.Options, &resp)
7662 return
7663 }
7664
7665 // no documentation yet
7666 type Network_Storage_Allowed_Host_VirtualGuest struct {
7667 Session session.SLSession
7668 Options sl.Options
7669 }
7670
7671 // GetNetworkStorageAllowedHostVirtualGuestService returns an instance of the Network_Storage_Allowed_Host_VirtualGuest SoftLayer service
7672 func GetNetworkStorageAllowedHostVirtualGuestService(sess session.SLSession) Network_Storage_Allowed_Host_VirtualGuest {
7673 return Network_Storage_Allowed_Host_VirtualGuest{Session: sess}
7674 }
7675
7676 func (r Network_Storage_Allowed_Host_VirtualGuest) Id(id int) Network_Storage_Allowed_Host_VirtualGuest {
7677 r.Options.Id = &id
7678 return r
7679 }
7680
7681 func (r Network_Storage_Allowed_Host_VirtualGuest) Mask(mask string) Network_Storage_Allowed_Host_VirtualGuest {
7682 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
7683 mask = fmt.Sprintf("mask[%s]", mask)
7684 }
7685
7686 r.Options.Mask = mask
7687 return r
7688 }
7689
7690 func (r Network_Storage_Allowed_Host_VirtualGuest) Filter(filter string) Network_Storage_Allowed_Host_VirtualGuest {
7691 r.Options.Filter = filter
7692 return r
7693 }
7694
7695 func (r Network_Storage_Allowed_Host_VirtualGuest) Limit(limit int) Network_Storage_Allowed_Host_VirtualGuest {
7696 r.Options.Limit = &limit
7697 return r
7698 }
7699
7700 func (r Network_Storage_Allowed_Host_VirtualGuest) Offset(offset int) Network_Storage_Allowed_Host_VirtualGuest {
7701 r.Options.Offset = &offset
7702 return r
7703 }
7704
7705 // no documentation yet
7706 func (r Network_Storage_Allowed_Host_VirtualGuest) AssignSubnetsToAcl(subnetIds []int) (resp []int, err error) {
7707 params := []interface{}{
7708 subnetIds,
7709 }
7710 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest", "assignSubnetsToAcl", params, &r.Options, &resp)
7711 return
7712 }
7713
7714 // no documentation yet
7715 func (r Network_Storage_Allowed_Host_VirtualGuest) EditObject(templateObject *datatypes.Network_Storage_Allowed_Host) (resp bool, err error) {
7716 params := []interface{}{
7717 templateObject,
7718 }
7719 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest", "editObject", params, &r.Options, &resp)
7720 return
7721 }
7722
7723 // Retrieve The SoftLayer_Account object which this SoftLayer_Network_Storage_Allowed_Host belongs to.
7724 func (r Network_Storage_Allowed_Host_VirtualGuest) GetAccount() (resp datatypes.Account, err error) {
7725 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest", "getAccount", nil, &r.Options, &resp)
7726 return
7727 }
7728
7729 // no documentation yet
7730 func (r Network_Storage_Allowed_Host_VirtualGuest) GetAllObjects() (resp []datatypes.Network_Storage_Allowed_Host, err error) {
7731 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest", "getAllObjects", nil, &r.Options, &resp)
7732 return
7733 }
7734
7735 // Retrieve The SoftLayer_Network_Storage_Group objects this SoftLayer_Network_Storage_Allowed_Host is present in.
7736 func (r Network_Storage_Allowed_Host_VirtualGuest) GetAssignedGroups() (resp []datatypes.Network_Storage_Group, err error) {
7737 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest", "getAssignedGroups", nil, &r.Options, &resp)
7738 return
7739 }
7740
7741 // Retrieve The SoftLayer_Network_Storage volumes to which this SoftLayer_Network_Storage_Allowed_Host is allowed access.
7742 func (r Network_Storage_Allowed_Host_VirtualGuest) GetAssignedIscsiVolumes() (resp []datatypes.Network_Storage, err error) {
7743 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest", "getAssignedIscsiVolumes", nil, &r.Options, &resp)
7744 return
7745 }
7746
7747 // Retrieve The SoftLayer_Network_Storage volumes to which this SoftLayer_Network_Storage_Allowed_Host is allowed access.
7748 func (r Network_Storage_Allowed_Host_VirtualGuest) GetAssignedNfsVolumes() (resp []datatypes.Network_Storage, err error) {
7749 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest", "getAssignedNfsVolumes", nil, &r.Options, &resp)
7750 return
7751 }
7752
7753 // Retrieve The SoftLayer_Network_Storage primary volumes whose replicas are allowed access.
7754 func (r Network_Storage_Allowed_Host_VirtualGuest) GetAssignedReplicationVolumes() (resp []datatypes.Network_Storage, err error) {
7755 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest", "getAssignedReplicationVolumes", nil, &r.Options, &resp)
7756 return
7757 }
7758
7759 // Retrieve The SoftLayer_Network_Storage volumes to which this SoftLayer_Network_Storage_Allowed_Host is allowed access.
7760 func (r Network_Storage_Allowed_Host_VirtualGuest) GetAssignedVolumes() (resp []datatypes.Network_Storage, err error) {
7761 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest", "getAssignedVolumes", nil, &r.Options, &resp)
7762 return
7763 }
7764
7765 // Retrieve The SoftLayer_Network_Storage_Credential this allowed host uses.
7766 func (r Network_Storage_Allowed_Host_VirtualGuest) GetCredential() (resp datatypes.Network_Storage_Credential, err error) {
7767 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest", "getCredential", nil, &r.Options, &resp)
7768 return
7769 }
7770
7771 // no documentation yet
7772 func (r Network_Storage_Allowed_Host_VirtualGuest) GetObject() (resp datatypes.Network_Storage_Allowed_Host_VirtualGuest, err error) {
7773 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest", "getObject", nil, &r.Options, &resp)
7774 return
7775 }
7776
7777 // Retrieve The SoftLayer_Virtual_Guest object which this SoftLayer_Network_Storage_Allowed_Host is referencing.
7778 func (r Network_Storage_Allowed_Host_VirtualGuest) GetResource() (resp datatypes.Virtual_Guest, err error) {
7779 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest", "getResource", nil, &r.Options, &resp)
7780 return
7781 }
7782
7783 // Retrieve Connections to a target with a source IP in this subnet prefix are allowed.
7784 func (r Network_Storage_Allowed_Host_VirtualGuest) GetSourceSubnet() (resp string, err error) {
7785 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest", "getSourceSubnet", nil, &r.Options, &resp)
7786 return
7787 }
7788
7789 // Retrieve The SoftLayer_Network_Subnet records assigned to the ACL for this allowed host.
7790 func (r Network_Storage_Allowed_Host_VirtualGuest) GetSubnetsInAcl() (resp []datatypes.Network_Subnet, err error) {
7791 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest", "getSubnetsInAcl", nil, &r.Options, &resp)
7792 return
7793 }
7794
7795 // no documentation yet
7796 func (r Network_Storage_Allowed_Host_VirtualGuest) RemoveSubnetsFromAcl(subnetIds []int) (resp []int, err error) {
7797 params := []interface{}{
7798 subnetIds,
7799 }
7800 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest", "removeSubnetsFromAcl", params, &r.Options, &resp)
7801 return
7802 }
7803
7804 // Use this method to modify the credential password for a SoftLayer_Network_Storage_Allowed_Host object.
7805 func (r Network_Storage_Allowed_Host_VirtualGuest) SetCredentialPassword(password *string) (resp bool, err error) {
7806 params := []interface{}{
7807 password,
7808 }
7809 err = r.Session.DoRequest("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest", "setCredentialPassword", params, &r.Options, &resp)
7810 return
7811 }
7812
7813 // The SoftLayer_Network_Storage_Backup_Evault contains general information regarding an EVault Storage service such as account id, username, maximum capacity, password, Storage's product type and the server id.
7814 type Network_Storage_Backup_Evault struct {
7815 Session session.SLSession
7816 Options sl.Options
7817 }
7818
7819 // GetNetworkStorageBackupEvaultService returns an instance of the Network_Storage_Backup_Evault SoftLayer service
7820 func GetNetworkStorageBackupEvaultService(sess session.SLSession) Network_Storage_Backup_Evault {
7821 return Network_Storage_Backup_Evault{Session: sess}
7822 }
7823
7824 func (r Network_Storage_Backup_Evault) Id(id int) Network_Storage_Backup_Evault {
7825 r.Options.Id = &id
7826 return r
7827 }
7828
7829 func (r Network_Storage_Backup_Evault) Mask(mask string) Network_Storage_Backup_Evault {
7830 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
7831 mask = fmt.Sprintf("mask[%s]", mask)
7832 }
7833
7834 r.Options.Mask = mask
7835 return r
7836 }
7837
7838 func (r Network_Storage_Backup_Evault) Filter(filter string) Network_Storage_Backup_Evault {
7839 r.Options.Filter = filter
7840 return r
7841 }
7842
7843 func (r Network_Storage_Backup_Evault) Limit(limit int) Network_Storage_Backup_Evault {
7844 r.Options.Limit = &limit
7845 return r
7846 }
7847
7848 func (r Network_Storage_Backup_Evault) Offset(offset int) Network_Storage_Backup_Evault {
7849 r.Options.Offset = &offset
7850 return r
7851 }
7852
7853 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Hardware objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage volume.
7854 func (r Network_Storage_Backup_Evault) AllowAccessFromHardware(hardwareObjectTemplate *datatypes.Hardware) (resp bool, err error) {
7855 params := []interface{}{
7856 hardwareObjectTemplate,
7857 }
7858 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessFromHardware", params, &r.Options, &resp)
7859 return
7860 }
7861
7862 // no documentation yet
7863 func (r Network_Storage_Backup_Evault) AllowAccessFromHardwareList(hardwareObjectTemplates []datatypes.Hardware) (resp bool, err error) {
7864 params := []interface{}{
7865 hardwareObjectTemplates,
7866 }
7867 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessFromHardwareList", params, &r.Options, &resp)
7868 return
7869 }
7870
7871 // This method is used to modify the access control list for this Storage volume. The [[SoftLayer_Hardware|SoftLayer_Virtual_Guest|SoftLayer_Network_Subnet|SoftLayer_Network_Subnet_IpAddress]] objects which have been allowed access to this storage will be listed in the [[allowedHardware|allowedVirtualGuests|allowedSubnets|allowedIpAddresses]] property of this storage volume.
7872 func (r Network_Storage_Backup_Evault) AllowAccessFromHost(typeClassName *string, hostId *int) (resp datatypes.Network_Storage_Allowed_Host, err error) {
7873 params := []interface{}{
7874 typeClassName,
7875 hostId,
7876 }
7877 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessFromHost", params, &r.Options, &resp)
7878 return
7879 }
7880
7881 // This method is used to modify the access control list for this Storage volume. The [[SoftLayer_Hardware|SoftLayer_Virtual_Guest|SoftLayer_Network_Subnet|SoftLayer_Network_Subnet_IpAddress]] objects which have been allowed access to this storage volume will be listed in the [[allowedHardware|allowedVirtualGuests|allowedSubnets|allowedIpAddresses]] property of this storage volume.
7882 func (r Network_Storage_Backup_Evault) AllowAccessFromHostList(hostObjectTemplates []datatypes.Container_Network_Storage_Host) (resp []datatypes.Network_Storage_Allowed_Host, err error) {
7883 params := []interface{}{
7884 hostObjectTemplates,
7885 }
7886 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessFromHostList", params, &r.Options, &resp)
7887 return
7888 }
7889
7890 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Network_Subnet_IpAddress objects which have been allowed access to this storage will be listed in the allowedIpAddresses property of this storage volume.
7891 func (r Network_Storage_Backup_Evault) AllowAccessFromIpAddress(ipAddressObjectTemplate *datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
7892 params := []interface{}{
7893 ipAddressObjectTemplate,
7894 }
7895 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessFromIpAddress", params, &r.Options, &resp)
7896 return
7897 }
7898
7899 // no documentation yet
7900 func (r Network_Storage_Backup_Evault) AllowAccessFromIpAddressList(ipAddressObjectTemplates []datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
7901 params := []interface{}{
7902 ipAddressObjectTemplates,
7903 }
7904 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessFromIpAddressList", params, &r.Options, &resp)
7905 return
7906 }
7907
7908 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Network_Subnet objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage volume.
7909 func (r Network_Storage_Backup_Evault) AllowAccessFromSubnet(subnetObjectTemplate *datatypes.Network_Subnet) (resp bool, err error) {
7910 params := []interface{}{
7911 subnetObjectTemplate,
7912 }
7913 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessFromSubnet", params, &r.Options, &resp)
7914 return
7915 }
7916
7917 // no documentation yet
7918 func (r Network_Storage_Backup_Evault) AllowAccessFromSubnetList(subnetObjectTemplates []datatypes.Network_Subnet) (resp bool, err error) {
7919 params := []interface{}{
7920 subnetObjectTemplates,
7921 }
7922 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessFromSubnetList", params, &r.Options, &resp)
7923 return
7924 }
7925
7926 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage volume.
7927 func (r Network_Storage_Backup_Evault) AllowAccessFromVirtualGuest(virtualGuestObjectTemplate *datatypes.Virtual_Guest) (resp bool, err error) {
7928 params := []interface{}{
7929 virtualGuestObjectTemplate,
7930 }
7931 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessFromVirtualGuest", params, &r.Options, &resp)
7932 return
7933 }
7934
7935 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage volume.
7936 func (r Network_Storage_Backup_Evault) AllowAccessFromVirtualGuestList(virtualGuestObjectTemplates []datatypes.Virtual_Guest) (resp bool, err error) {
7937 params := []interface{}{
7938 virtualGuestObjectTemplates,
7939 }
7940 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessFromVirtualGuestList", params, &r.Options, &resp)
7941 return
7942 }
7943
7944 // This method is used to modify the access control list for this Storage replicant volume. The SoftLayer_Hardware objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage replicant volume.
7945 func (r Network_Storage_Backup_Evault) AllowAccessToReplicantFromHardware(hardwareObjectTemplate *datatypes.Hardware) (resp bool, err error) {
7946 params := []interface{}{
7947 hardwareObjectTemplate,
7948 }
7949 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessToReplicantFromHardware", params, &r.Options, &resp)
7950 return
7951 }
7952
7953 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Hardware objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationHardware property of this storage volume.
7954 func (r Network_Storage_Backup_Evault) AllowAccessToReplicantFromHardwareList(hardwareObjectTemplates []datatypes.Hardware) (resp bool, err error) {
7955 params := []interface{}{
7956 hardwareObjectTemplates,
7957 }
7958 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessToReplicantFromHardwareList", params, &r.Options, &resp)
7959 return
7960 }
7961
7962 // no documentation yet
7963 func (r Network_Storage_Backup_Evault) AllowAccessToReplicantFromIpAddress(ipAddressObjectTemplate *datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
7964 params := []interface{}{
7965 ipAddressObjectTemplate,
7966 }
7967 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessToReplicantFromIpAddress", params, &r.Options, &resp)
7968 return
7969 }
7970
7971 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Network_Subnet_IpAddress objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationIpAddresses property of this storage volume.
7972 func (r Network_Storage_Backup_Evault) AllowAccessToReplicantFromIpAddressList(ipAddressObjectTemplates []datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
7973 params := []interface{}{
7974 ipAddressObjectTemplates,
7975 }
7976 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessToReplicantFromIpAddressList", params, &r.Options, &resp)
7977 return
7978 }
7979
7980 // This method is used to modify the access control list for this Storage replicant volume. The SoftLayer_Network_Subnet objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage replicant volume.
7981 func (r Network_Storage_Backup_Evault) AllowAccessToReplicantFromSubnet(subnetObjectTemplate *datatypes.Network_Subnet) (resp bool, err error) {
7982 params := []interface{}{
7983 subnetObjectTemplate,
7984 }
7985 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessToReplicantFromSubnet", params, &r.Options, &resp)
7986 return
7987 }
7988
7989 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Network_Subnet objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationSubnets property of this storage volume.
7990 func (r Network_Storage_Backup_Evault) AllowAccessToReplicantFromSubnetList(subnetObjectTemplates []datatypes.Network_Subnet) (resp bool, err error) {
7991 params := []interface{}{
7992 subnetObjectTemplates,
7993 }
7994 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessToReplicantFromSubnetList", params, &r.Options, &resp)
7995 return
7996 }
7997
7998 // This method is used to modify the access control list for this Storage replicant volume. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage replicant volume.
7999 func (r Network_Storage_Backup_Evault) AllowAccessToReplicantFromVirtualGuest(virtualGuestObjectTemplate *datatypes.Virtual_Guest) (resp bool, err error) {
8000 params := []interface{}{
8001 virtualGuestObjectTemplate,
8002 }
8003 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessToReplicantFromVirtualGuest", params, &r.Options, &resp)
8004 return
8005 }
8006
8007 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationVirtualGuests property of this storage volume.
8008 func (r Network_Storage_Backup_Evault) AllowAccessToReplicantFromVirtualGuestList(virtualGuestObjectTemplates []datatypes.Virtual_Guest) (resp bool, err error) {
8009 params := []interface{}{
8010 virtualGuestObjectTemplates,
8011 }
8012 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "allowAccessToReplicantFromVirtualGuestList", params, &r.Options, &resp)
8013 return
8014 }
8015
8016 // This method will assign an existing credential to the current volume. The credential must have been created using the 'addNewCredential' method. The volume type must support an additional credential.
8017 func (r Network_Storage_Backup_Evault) AssignCredential(username *string) (resp bool, err error) {
8018 params := []interface{}{
8019 username,
8020 }
8021 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "assignCredential", params, &r.Options, &resp)
8022 return
8023 }
8024
8025 // This method will set up a new credential for the remote storage volume. The storage volume must support an additional credential. Once created, the credential will be automatically assigned to the current volume. If there are no volumes assigned to the credential it will be automatically deleted.
8026 func (r Network_Storage_Backup_Evault) AssignNewCredential(typ *string) (resp datatypes.Network_Storage_Credential, err error) {
8027 params := []interface{}{
8028 typ,
8029 }
8030 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "assignNewCredential", params, &r.Options, &resp)
8031 return
8032 }
8033
8034 // The method will change the password for the given Storage/Virtual Server Storage account.
8035 func (r Network_Storage_Backup_Evault) ChangePassword(username *string, currentPassword *string, newPassword *string) (resp bool, err error) {
8036 params := []interface{}{
8037 username,
8038 currentPassword,
8039 newPassword,
8040 }
8041 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "changePassword", params, &r.Options, &resp)
8042 return
8043 }
8044
8045 // {{CloudLayerOnlyMethod}}
8046 //
8047 // collectBandwidth() Retrieve the bandwidth usage for the current billing cycle.
8048 func (r Network_Storage_Backup_Evault) CollectBandwidth(typ *string, startDate *datatypes.Time, endDate *datatypes.Time) (resp uint, err error) {
8049 params := []interface{}{
8050 typ,
8051 startDate,
8052 endDate,
8053 }
8054 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "collectBandwidth", params, &r.Options, &resp)
8055 return
8056 }
8057
8058 // {{CloudLayerOnlyMethod}}
8059 //
8060 // collectBytesUsed() retrieves the number of bytes capacity currently in use on a Storage account.
8061 func (r Network_Storage_Backup_Evault) CollectBytesUsed() (resp uint, err error) {
8062 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "collectBytesUsed", nil, &r.Options, &resp)
8063 return
8064 }
8065
8066 // no documentation yet
8067 func (r Network_Storage_Backup_Evault) ConvertCloneDependentToIndependent() (resp bool, err error) {
8068 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "convertCloneDependentToIndependent", nil, &r.Options, &resp)
8069 return
8070 }
8071
8072 // no documentation yet
8073 func (r Network_Storage_Backup_Evault) CreateFolder(folder *string) (resp bool, err error) {
8074 params := []interface{}{
8075 folder,
8076 }
8077 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "createFolder", params, &r.Options, &resp)
8078 return
8079 }
8080
8081 // The LUN ID only takes effect during the Host Authorization process. It is required to de-authorize all hosts before using this method.
8082 func (r Network_Storage_Backup_Evault) CreateOrUpdateLunId(lunId *int) (resp datatypes.Network_Storage_Property, err error) {
8083 params := []interface{}{
8084 lunId,
8085 }
8086 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "createOrUpdateLunId", params, &r.Options, &resp)
8087 return
8088 }
8089
8090 // no documentation yet
8091 func (r Network_Storage_Backup_Evault) CreateSnapshot(notes *string) (resp datatypes.Network_Storage, err error) {
8092 params := []interface{}{
8093 notes,
8094 }
8095 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "createSnapshot", params, &r.Options, &resp)
8096 return
8097 }
8098
8099 // {{CloudLayerOnlyMethod}} Delete all files within a Storage account. Depending on the type of Storage account, Deleting either deletes files permanently or sends files to your account's recycle bin.
8100 //
8101 // Currently, Virtual Server storage is the only type of Storage account that sends files to a recycle bin when deleted. When called against a Virtual Server storage account , this method also determines if the files are in the account's recycle bin. If the files exist in the recycle bin, then they are permanently deleted.
8102 //
8103 // Please note, files can not be restored once they are permanently deleted.
8104 func (r Network_Storage_Backup_Evault) DeleteAllFiles() (resp bool, err error) {
8105 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "deleteAllFiles", nil, &r.Options, &resp)
8106 return
8107 }
8108
8109 // {{CloudLayerOnlyMethod}} Delete an individual file within a Storage account. Depending on the type of Storage account, Deleting a file either deletes the file permanently or sends the file to your account's recycle bin.
8110 //
8111 // Currently, Virtual Server storage is the only type of Storage account that sends files to a recycle bin when deleted. When called against a Virtual Server storage account , this method also determines if the file is in the account's recycle bin. If the file exist in the recycle bin, then it is permanently deleted.
8112 //
8113 // Please note, a file can not be restored once it is permanently deleted.
8114 func (r Network_Storage_Backup_Evault) DeleteFile(fileId *string) (resp bool, err error) {
8115 params := []interface{}{
8116 fileId,
8117 }
8118 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "deleteFile", params, &r.Options, &resp)
8119 return
8120 }
8121
8122 // {{CloudLayerOnlyMethod}} Delete multiple files within a Storage account. Depending on the type of Storage account, Deleting either deletes files permanently or sends files to your account's recycle bin.
8123 //
8124 // Currently, Virtual Server storage is the only type of Storage account that sends files to a recycle bin when deleted. When called against a Virtual Server storage account , this method also determines if the files are in the account's recycle bin. If the files exist in the recycle bin, then they are permanently deleted.
8125 //
8126 // Please note, files can not be restored once they are permanently deleted.
8127 func (r Network_Storage_Backup_Evault) DeleteFiles(fileIds []string) (resp bool, err error) {
8128 params := []interface{}{
8129 fileIds,
8130 }
8131 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "deleteFiles", params, &r.Options, &resp)
8132 return
8133 }
8134
8135 // no documentation yet
8136 func (r Network_Storage_Backup_Evault) DeleteFolder(folder *string) (resp bool, err error) {
8137 params := []interface{}{
8138 folder,
8139 }
8140 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "deleteFolder", params, &r.Options, &resp)
8141 return
8142 }
8143
8144 // Delete a network storage volume. ”'This cannot be undone.”' At this time only network storage snapshots may be deleted with this method.
8145 //
8146 // ”deleteObject” returns Boolean ”true” on successful deletion or ”false” if it was unable to remove a volume;
8147 func (r Network_Storage_Backup_Evault) DeleteObject() (resp bool, err error) {
8148 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "deleteObject", nil, &r.Options, &resp)
8149 return
8150 }
8151
8152 // This method can be used to help maintain the storage space on a vault. When a job is removed from the Webcc, the task and stored usage still exists on the vault. This method can be used to delete the associated task and its usage.
8153 //
8154 // All that is required for the use of the method is to pass in an integer array of task(s).
8155 func (r Network_Storage_Backup_Evault) DeleteTasks(tasks []int) (resp bool, err error) {
8156 params := []interface{}{
8157 tasks,
8158 }
8159 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "deleteTasks", params, &r.Options, &resp)
8160 return
8161 }
8162
8163 // This method is not valid for Legacy iSCSI Storage Volumes.
8164 //
8165 // Disable scheduled snapshots of this storage volume. Scheduling options include 'INTERVAL', HOURLY, DAILY and WEEKLY schedules.
8166 func (r Network_Storage_Backup_Evault) DisableSnapshots(scheduleType *string) (resp bool, err error) {
8167 params := []interface{}{
8168 scheduleType,
8169 }
8170 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "disableSnapshots", params, &r.Options, &resp)
8171 return
8172 }
8173
8174 // If a volume (with replication) becomes inaccessible due to a disaster event, this method can be used to immediately failover to an available replica in another location. This method does not allow for fail back via the API. To fail back to the original volume after using this method, open a support ticket. To test failover, use [[SoftLayer_Network_Storage::failoverToReplicant]] instead.
8175 func (r Network_Storage_Backup_Evault) DisasterRecoveryFailoverToReplicant(replicantId *int) (resp bool, err error) {
8176 params := []interface{}{
8177 replicantId,
8178 }
8179 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "disasterRecoveryFailoverToReplicant", params, &r.Options, &resp)
8180 return
8181 }
8182
8183 // {{CloudLayerOnlyMethod}} Download a file from a Storage account. This method returns a file's details including the file's raw content.
8184 func (r Network_Storage_Backup_Evault) DownloadFile(fileId *string) (resp datatypes.Container_Utility_File_Entity, err error) {
8185 params := []interface{}{
8186 fileId,
8187 }
8188 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "downloadFile", params, &r.Options, &resp)
8189 return
8190 }
8191
8192 // This method will change the password of a credential created using the 'addNewCredential' method. If the credential exists on multiple storage volumes it will change for those volumes as well.
8193 func (r Network_Storage_Backup_Evault) EditCredential(username *string, newPassword *string) (resp bool, err error) {
8194 params := []interface{}{
8195 username,
8196 newPassword,
8197 }
8198 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "editCredential", params, &r.Options, &resp)
8199 return
8200 }
8201
8202 // The password and/or notes may be modified for the Storage service except evault passwords and notes.
8203 func (r Network_Storage_Backup_Evault) EditObject(templateObject *datatypes.Network_Storage) (resp bool, err error) {
8204 params := []interface{}{
8205 templateObject,
8206 }
8207 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "editObject", params, &r.Options, &resp)
8208 return
8209 }
8210
8211 // This method is not valid for Legacy iSCSI Storage Volumes.
8212 //
8213 // Enable scheduled snapshots of this storage volume. Scheduling options include HOURLY, DAILY and WEEKLY schedules. For HOURLY schedules, provide relevant data for $scheduleType, $retentionCount and $minute. For DAILY schedules, provide relevant data for $scheduleType, $retentionCount, $minute, and $hour. For WEEKLY schedules, provide relevant data for all parameters of this method.
8214 func (r Network_Storage_Backup_Evault) EnableSnapshots(scheduleType *string, retentionCount *int, minute *int, hour *int, dayOfWeek *string) (resp bool, err error) {
8215 params := []interface{}{
8216 scheduleType,
8217 retentionCount,
8218 minute,
8219 hour,
8220 dayOfWeek,
8221 }
8222 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "enableSnapshots", params, &r.Options, &resp)
8223 return
8224 }
8225
8226 // Failback from a volume replicant. In order to failback the volume must have already been failed over to a replicant.
8227 func (r Network_Storage_Backup_Evault) FailbackFromReplicant() (resp bool, err error) {
8228 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "failbackFromReplicant", nil, &r.Options, &resp)
8229 return
8230 }
8231
8232 // Failover to a volume replicant. During the time which the replicant is in use the local nas volume will not be available.
8233 func (r Network_Storage_Backup_Evault) FailoverToReplicant(replicantId *int) (resp bool, err error) {
8234 params := []interface{}{
8235 replicantId,
8236 }
8237 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "failoverToReplicant", params, &r.Options, &resp)
8238 return
8239 }
8240
8241 // Retrieve The account that a Storage services belongs to.
8242 func (r Network_Storage_Backup_Evault) GetAccount() (resp datatypes.Account, err error) {
8243 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAccount", nil, &r.Options, &resp)
8244 return
8245 }
8246
8247 // Retrieve Other usernames and passwords associated with a Storage volume.
8248 func (r Network_Storage_Backup_Evault) GetAccountPassword() (resp datatypes.Account_Password, err error) {
8249 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAccountPassword", nil, &r.Options, &resp)
8250 return
8251 }
8252
8253 // Retrieve The currently active transactions on a network storage volume.
8254 func (r Network_Storage_Backup_Evault) GetActiveTransactions() (resp []datatypes.Provisioning_Version1_Transaction, err error) {
8255 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getActiveTransactions", nil, &r.Options, &resp)
8256 return
8257 }
8258
8259 // {{CloudLayerOnlyMethod}} Retrieve details such as id, name, size, create date for all files in a Storage account's root directory. This does not download file content.
8260 func (r Network_Storage_Backup_Evault) GetAllFiles() (resp []datatypes.Container_Utility_File_Entity, err error) {
8261 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAllFiles", nil, &r.Options, &resp)
8262 return
8263 }
8264
8265 // {{CloudLayerOnlyMethod}} Retrieve details such as id, name, size, create date for all files matching the filter's criteria in a Storage account's root directory. This does not download file content.
8266 func (r Network_Storage_Backup_Evault) GetAllFilesByFilter(filter *datatypes.Container_Utility_File_Entity) (resp []datatypes.Container_Utility_File_Entity, err error) {
8267 params := []interface{}{
8268 filter,
8269 }
8270 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAllFilesByFilter", params, &r.Options, &resp)
8271 return
8272 }
8273
8274 // Retrieve
8275 func (r Network_Storage_Backup_Evault) GetAllowDisasterRecoveryFailback() (resp string, err error) {
8276 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAllowDisasterRecoveryFailback", nil, &r.Options, &resp)
8277 return
8278 }
8279
8280 // Retrieve
8281 func (r Network_Storage_Backup_Evault) GetAllowDisasterRecoveryFailover() (resp string, err error) {
8282 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAllowDisasterRecoveryFailover", nil, &r.Options, &resp)
8283 return
8284 }
8285
8286 // This method retrieves a list of SoftLayer_Hardware that can be authorized to this SoftLayer_Network_Storage.
8287 func (r Network_Storage_Backup_Evault) GetAllowableHardware(filterHostname *string) (resp []datatypes.Hardware, err error) {
8288 params := []interface{}{
8289 filterHostname,
8290 }
8291 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAllowableHardware", params, &r.Options, &resp)
8292 return
8293 }
8294
8295 // This method retrieves a list of SoftLayer_Network_Subnet_IpAddress that can be authorized to this SoftLayer_Network_Storage.
8296 func (r Network_Storage_Backup_Evault) GetAllowableIpAddresses(subnetId *int, filterIpAddress *string) (resp []datatypes.Network_Subnet_IpAddress, err error) {
8297 params := []interface{}{
8298 subnetId,
8299 filterIpAddress,
8300 }
8301 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAllowableIpAddresses", params, &r.Options, &resp)
8302 return
8303 }
8304
8305 // This method retrieves a list of SoftLayer_Network_Subnet that can be authorized to this SoftLayer_Network_Storage.
8306 func (r Network_Storage_Backup_Evault) GetAllowableSubnets(filterNetworkIdentifier *string) (resp []datatypes.Network_Subnet, err error) {
8307 params := []interface{}{
8308 filterNetworkIdentifier,
8309 }
8310 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAllowableSubnets", params, &r.Options, &resp)
8311 return
8312 }
8313
8314 // This method retrieves a list of SoftLayer_Virtual_Guest that can be authorized to this SoftLayer_Network_Storage.
8315 func (r Network_Storage_Backup_Evault) GetAllowableVirtualGuests(filterHostname *string) (resp []datatypes.Virtual_Guest, err error) {
8316 params := []interface{}{
8317 filterHostname,
8318 }
8319 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAllowableVirtualGuests", params, &r.Options, &resp)
8320 return
8321 }
8322
8323 // Retrieve The SoftLayer_Hardware objects which are allowed access to this storage volume.
8324 func (r Network_Storage_Backup_Evault) GetAllowedHardware() (resp []datatypes.Hardware, err error) {
8325 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAllowedHardware", nil, &r.Options, &resp)
8326 return
8327 }
8328
8329 // Retrieves the total number of allowed hosts limit per volume.
8330 func (r Network_Storage_Backup_Evault) GetAllowedHostsLimit() (resp int, err error) {
8331 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAllowedHostsLimit", nil, &r.Options, &resp)
8332 return
8333 }
8334
8335 // Retrieve The SoftLayer_Network_Subnet_IpAddress objects which are allowed access to this storage volume.
8336 func (r Network_Storage_Backup_Evault) GetAllowedIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) {
8337 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAllowedIpAddresses", nil, &r.Options, &resp)
8338 return
8339 }
8340
8341 // Retrieve The SoftLayer_Hardware objects which are allowed access to this storage volume's Replicant.
8342 func (r Network_Storage_Backup_Evault) GetAllowedReplicationHardware() (resp []datatypes.Hardware, err error) {
8343 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAllowedReplicationHardware", nil, &r.Options, &resp)
8344 return
8345 }
8346
8347 // Retrieve The SoftLayer_Network_Subnet_IpAddress objects which are allowed access to this storage volume's Replicant.
8348 func (r Network_Storage_Backup_Evault) GetAllowedReplicationIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) {
8349 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAllowedReplicationIpAddresses", nil, &r.Options, &resp)
8350 return
8351 }
8352
8353 // Retrieve The SoftLayer_Network_Subnet objects which are allowed access to this storage volume's Replicant.
8354 func (r Network_Storage_Backup_Evault) GetAllowedReplicationSubnets() (resp []datatypes.Network_Subnet, err error) {
8355 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAllowedReplicationSubnets", nil, &r.Options, &resp)
8356 return
8357 }
8358
8359 // Retrieve The SoftLayer_Hardware objects which are allowed access to this storage volume's Replicant.
8360 func (r Network_Storage_Backup_Evault) GetAllowedReplicationVirtualGuests() (resp []datatypes.Virtual_Guest, err error) {
8361 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAllowedReplicationVirtualGuests", nil, &r.Options, &resp)
8362 return
8363 }
8364
8365 // Retrieve The SoftLayer_Network_Subnet objects which are allowed access to this storage volume.
8366 func (r Network_Storage_Backup_Evault) GetAllowedSubnets() (resp []datatypes.Network_Subnet, err error) {
8367 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAllowedSubnets", nil, &r.Options, &resp)
8368 return
8369 }
8370
8371 // Retrieve The SoftLayer_Virtual_Guest objects which are allowed access to this storage volume.
8372 func (r Network_Storage_Backup_Evault) GetAllowedVirtualGuests() (resp []datatypes.Virtual_Guest, err error) {
8373 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getAllowedVirtualGuests", nil, &r.Options, &resp)
8374 return
8375 }
8376
8377 // Retrieve The current billing item for a Storage volume.
8378 func (r Network_Storage_Backup_Evault) GetBillingItem() (resp datatypes.Billing_Item, err error) {
8379 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getBillingItem", nil, &r.Options, &resp)
8380 return
8381 }
8382
8383 // Retrieve
8384 func (r Network_Storage_Backup_Evault) GetBillingItemCategory() (resp datatypes.Product_Item_Category, err error) {
8385 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getBillingItemCategory", nil, &r.Options, &resp)
8386 return
8387 }
8388
8389 // Retrieve network storage accounts by username and storage account type. Use this method if you wish to retrieve a storage record by username rather than by id. The ”type” parameter must correspond to one of the available ”nasType” values in the SoftLayer_Network_Storage data type.
8390 func (r Network_Storage_Backup_Evault) GetByUsername(username *string, typ *string) (resp []datatypes.Network_Storage, err error) {
8391 params := []interface{}{
8392 username,
8393 typ,
8394 }
8395 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getByUsername", params, &r.Options, &resp)
8396 return
8397 }
8398
8399 // Retrieve The amount of space used by the volume, in bytes.
8400 func (r Network_Storage_Backup_Evault) GetBytesUsed() (resp string, err error) {
8401 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getBytesUsed", nil, &r.Options, &resp)
8402 return
8403 }
8404
8405 // no documentation yet
8406 func (r Network_Storage_Backup_Evault) GetCdnUrls() (resp []datatypes.Container_Network_Storage_Hub_ObjectStorage_ContentDeliveryUrl, err error) {
8407 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getCdnUrls", nil, &r.Options, &resp)
8408 return
8409 }
8410
8411 // no documentation yet
8412 func (r Network_Storage_Backup_Evault) GetClusterResource() (resp datatypes.Network_Service_Resource, err error) {
8413 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getClusterResource", nil, &r.Options, &resp)
8414 return
8415 }
8416
8417 // Retrieve The schedule id which was executed to create a snapshot.
8418 func (r Network_Storage_Backup_Evault) GetCreationScheduleId() (resp string, err error) {
8419 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getCreationScheduleId", nil, &r.Options, &resp)
8420 return
8421 }
8422
8423 // Retrieve
8424 func (r Network_Storage_Backup_Evault) GetCredentials() (resp []datatypes.Network_Storage_Credential, err error) {
8425 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getCredentials", nil, &r.Options, &resp)
8426 return
8427 }
8428
8429 // Retrieve The Daily Schedule which is associated with this network storage volume.
8430 func (r Network_Storage_Backup_Evault) GetDailySchedule() (resp datatypes.Network_Storage_Schedule, err error) {
8431 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getDailySchedule", nil, &r.Options, &resp)
8432 return
8433 }
8434
8435 // Retrieve Whether or not a network storage volume is a dependent duplicate.
8436 func (r Network_Storage_Backup_Evault) GetDependentDuplicate() (resp string, err error) {
8437 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getDependentDuplicate", nil, &r.Options, &resp)
8438 return
8439 }
8440
8441 // Retrieve The network storage volumes configured to be dependent duplicates of a volume.
8442 func (r Network_Storage_Backup_Evault) GetDependentDuplicates() (resp []datatypes.Network_Storage, err error) {
8443 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getDependentDuplicates", nil, &r.Options, &resp)
8444 return
8445 }
8446
8447 // This method is used to check, if for the given classic file block storage volume, a transaction performing dependent to independent duplicate conversion is active. If yes, then this returns the current percentage of its progress along with its start time as [SoftLayer_Container_Network_Storage_DuplicateConversionStatusInformation] object with its name, percentage and transaction start timestamp.
8448 func (r Network_Storage_Backup_Evault) GetDuplicateConversionStatus() (resp datatypes.Container_Network_Storage_DuplicateConversionStatusInformation, err error) {
8449 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getDuplicateConversionStatus", nil, &r.Options, &resp)
8450 return
8451 }
8452
8453 // Retrieve The events which have taken place on a network storage volume.
8454 func (r Network_Storage_Backup_Evault) GetEvents() (resp []datatypes.Network_Storage_Event, err error) {
8455 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getEvents", nil, &r.Options, &resp)
8456 return
8457 }
8458
8459 // Retrieve Determines whether the volume is allowed to failback
8460 func (r Network_Storage_Backup_Evault) GetFailbackNotAllowed() (resp string, err error) {
8461 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getFailbackNotAllowed", nil, &r.Options, &resp)
8462 return
8463 }
8464
8465 // Retrieve Determines whether the volume is allowed to failover
8466 func (r Network_Storage_Backup_Evault) GetFailoverNotAllowed() (resp string, err error) {
8467 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getFailoverNotAllowed", nil, &r.Options, &resp)
8468 return
8469 }
8470
8471 func (r Network_Storage_Backup_Evault) GetFileBlockEncryptedLocations() (resp []datatypes.Location, err error) {
8472 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getFileBlockEncryptedLocations", nil, &r.Options, &resp)
8473 return
8474 }
8475
8476 // {{CloudLayerOnlyMethod}} Retrieve details such as id, name, size, create date of a file within a Storage account. This does not download file content.
8477 func (r Network_Storage_Backup_Evault) GetFileByIdentifier(identifier *string) (resp datatypes.Container_Utility_File_Entity, err error) {
8478 params := []interface{}{
8479 identifier,
8480 }
8481 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getFileByIdentifier", params, &r.Options, &resp)
8482 return
8483 }
8484
8485 // {{CloudLayerOnlyMethod}} Retrieve the file number of files in a Virtual Server Storage account's root directory. This does not include the files stored in the recycle bin.
8486 func (r Network_Storage_Backup_Evault) GetFileCount() (resp int, err error) {
8487 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getFileCount", nil, &r.Options, &resp)
8488 return
8489 }
8490
8491 // no documentation yet
8492 func (r Network_Storage_Backup_Evault) GetFileList(folder *string, path *string) (resp []datatypes.Container_Utility_File_Entity, err error) {
8493 params := []interface{}{
8494 folder,
8495 path,
8496 }
8497 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getFileList", params, &r.Options, &resp)
8498 return
8499 }
8500
8501 // Retrieve Retrieves the NFS Network Mount Address Name for a given File Storage Volume.
8502 func (r Network_Storage_Backup_Evault) GetFileNetworkMountAddress() (resp string, err error) {
8503 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getFileNetworkMountAddress", nil, &r.Options, &resp)
8504 return
8505 }
8506
8507 // {{CloudLayerOnlyMethod}} Retrieve the number of files pending deletion in a Storage account's recycle bin. Files in an account's recycle bin may either be restored to the account's root directory or permanently deleted.
8508 func (r Network_Storage_Backup_Evault) GetFilePendingDeleteCount() (resp int, err error) {
8509 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getFilePendingDeleteCount", nil, &r.Options, &resp)
8510 return
8511 }
8512
8513 // {{CloudLayerOnlyMethod}} Retrieve a list of files that are pending deletion in a Storage account's recycle bin. Files in an account's recycle bin may either be restored to the account's root directory or permanently deleted. This method does not download file content.
8514 func (r Network_Storage_Backup_Evault) GetFilesPendingDelete() (resp []datatypes.Container_Utility_File_Entity, err error) {
8515 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getFilesPendingDelete", nil, &r.Options, &resp)
8516 return
8517 }
8518
8519 // Retrieve
8520 func (r Network_Storage_Backup_Evault) GetFixReplicationCurrentStatus() (resp string, err error) {
8521 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getFixReplicationCurrentStatus", nil, &r.Options, &resp)
8522 return
8523 }
8524
8525 // no documentation yet
8526 func (r Network_Storage_Backup_Evault) GetFolderList() (resp []datatypes.Container_Network_Storage_Hub_ObjectStorage_Folder, err error) {
8527 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getFolderList", nil, &r.Options, &resp)
8528 return
8529 }
8530
8531 // Retrieve When applicable, the hardware associated with a Storage service.
8532 func (r Network_Storage_Backup_Evault) GetHardware() (resp datatypes.Hardware, err error) {
8533 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getHardware", nil, &r.Options, &resp)
8534 return
8535 }
8536
8537 // Retrieve a list of hardware associated with a SoftLayer customer account, placing all hardware with associated EVault storage accounts at the beginning of the list. The return type is SoftLayer_Hardware_Server[] contains the results; the number of items returned in the result will be returned in the soap header (totalItems). ”getHardwareWithEvaultFirst” is useful in situations where you wish to search for hardware and provide paginated output.
8538 //
8539 // Results are only returned for hardware belonging to the account of the user making the API call.
8540 //
8541 // This method drives the backup page of the SoftLayer customer portal. It serves a very specific function, but we have exposed it as it may prove useful for API developers too.
8542 func (r Network_Storage_Backup_Evault) GetHardwareWithEvaultFirst(option *string, exactMatch *bool, criteria *string, mode *string) (resp []datatypes.Hardware, err error) {
8543 params := []interface{}{
8544 option,
8545 exactMatch,
8546 criteria,
8547 mode,
8548 }
8549 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getHardwareWithEvaultFirst", params, &r.Options, &resp)
8550 return
8551 }
8552
8553 // Retrieve
8554 func (r Network_Storage_Backup_Evault) GetHasEncryptionAtRest() (resp bool, err error) {
8555 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getHasEncryptionAtRest", nil, &r.Options, &resp)
8556 return
8557 }
8558
8559 // Retrieve The Hourly Schedule which is associated with this network storage volume.
8560 func (r Network_Storage_Backup_Evault) GetHourlySchedule() (resp datatypes.Network_Storage_Schedule, err error) {
8561 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getHourlySchedule", nil, &r.Options, &resp)
8562 return
8563 }
8564
8565 // Retrieve The Interval Schedule which is associated with this network storage volume.
8566 func (r Network_Storage_Backup_Evault) GetIntervalSchedule() (resp datatypes.Network_Storage_Schedule, err error) {
8567 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getIntervalSchedule", nil, &r.Options, &resp)
8568 return
8569 }
8570
8571 // Retrieve The maximum number of IOPs selected for this volume.
8572 func (r Network_Storage_Backup_Evault) GetIops() (resp string, err error) {
8573 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getIops", nil, &r.Options, &resp)
8574 return
8575 }
8576
8577 // Retrieve Determines whether network storage volume has an active convert dependent clone to Independent transaction.
8578 func (r Network_Storage_Backup_Evault) GetIsConvertToIndependentTransactionInProgress() (resp bool, err error) {
8579 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getIsConvertToIndependentTransactionInProgress", nil, &r.Options, &resp)
8580 return
8581 }
8582
8583 // Retrieve Determines whether dependent volume provision is completed on background.
8584 func (r Network_Storage_Backup_Evault) GetIsDependentDuplicateProvisionCompleted() (resp bool, err error) {
8585 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getIsDependentDuplicateProvisionCompleted", nil, &r.Options, &resp)
8586 return
8587 }
8588
8589 // Retrieve
8590 func (r Network_Storage_Backup_Evault) GetIsInDedicatedServiceResource() (resp bool, err error) {
8591 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getIsInDedicatedServiceResource", nil, &r.Options, &resp)
8592 return
8593 }
8594
8595 // Retrieve
8596 func (r Network_Storage_Backup_Evault) GetIsMagneticStorage() (resp string, err error) {
8597 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getIsMagneticStorage", nil, &r.Options, &resp)
8598 return
8599 }
8600
8601 // Retrieve Determines whether network storage volume has an active provision transaction.
8602 func (r Network_Storage_Backup_Evault) GetIsProvisionInProgress() (resp bool, err error) {
8603 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getIsProvisionInProgress", nil, &r.Options, &resp)
8604 return
8605 }
8606
8607 // Retrieve Determines whether a volume is ready to order snapshot space, or, if snapshot space is already available, to assign a snapshot schedule, or to take a manual snapshot.
8608 func (r Network_Storage_Backup_Evault) GetIsReadyForSnapshot() (resp bool, err error) {
8609 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getIsReadyForSnapshot", nil, &r.Options, &resp)
8610 return
8611 }
8612
8613 // Retrieve Determines whether a volume is ready to have Hosts authorized to access it. This does not indicate whether another operation may be blocking, please refer to this volume's volumeStatus property for details.
8614 func (r Network_Storage_Backup_Evault) GetIsReadyToMount() (resp bool, err error) {
8615 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getIsReadyToMount", nil, &r.Options, &resp)
8616 return
8617 }
8618
8619 // Retrieve Relationship between a container volume and iSCSI LUNs.
8620 func (r Network_Storage_Backup_Evault) GetIscsiLuns() (resp []datatypes.Network_Storage, err error) {
8621 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getIscsiLuns", nil, &r.Options, &resp)
8622 return
8623 }
8624
8625 // Retrieve The network storage volumes configured to be replicants of this volume.
8626 func (r Network_Storage_Backup_Evault) GetIscsiReplicatingVolume() (resp datatypes.Network_Storage, err error) {
8627 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getIscsiReplicatingVolume", nil, &r.Options, &resp)
8628 return
8629 }
8630
8631 // Retrieve Returns the target IP addresses of an iSCSI volume.
8632 func (r Network_Storage_Backup_Evault) GetIscsiTargetIpAddresses() (resp []string, err error) {
8633 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getIscsiTargetIpAddresses", nil, &r.Options, &resp)
8634 return
8635 }
8636
8637 // Retrieve The ID of the LUN volume.
8638 func (r Network_Storage_Backup_Evault) GetLunId() (resp string, err error) {
8639 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getLunId", nil, &r.Options, &resp)
8640 return
8641 }
8642
8643 // Retrieve The manually-created snapshots associated with this SoftLayer_Network_Storage volume. Does not support pagination by result limit and offset.
8644 func (r Network_Storage_Backup_Evault) GetManualSnapshots() (resp []datatypes.Network_Storage, err error) {
8645 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getManualSnapshots", nil, &r.Options, &resp)
8646 return
8647 }
8648
8649 // no documentation yet
8650 func (r Network_Storage_Backup_Evault) GetMaximumExpansionSize() (resp int, err error) {
8651 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getMaximumExpansionSize", nil, &r.Options, &resp)
8652 return
8653 }
8654
8655 // Retrieve [DEPRECATED] - A network storage volume's metric tracking object. This object records all periodic polled data available to this volume.
8656 func (r Network_Storage_Backup_Evault) GetMetricTrackingObject() (resp datatypes.Metric_Tracking_Object, err error) {
8657 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getMetricTrackingObject", nil, &r.Options, &resp)
8658 return
8659 }
8660
8661 // Retrieve Retrieves the NFS Network Mount Path for a given File Storage Volume.
8662 func (r Network_Storage_Backup_Evault) GetMountPath() (resp string, err error) {
8663 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getMountPath", nil, &r.Options, &resp)
8664 return
8665 }
8666
8667 // Retrieve Whether or not a network storage volume may be mounted.
8668 func (r Network_Storage_Backup_Evault) GetMountableFlag() (resp string, err error) {
8669 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getMountableFlag", nil, &r.Options, &resp)
8670 return
8671 }
8672
8673 // Retrieve The current status of split or move operation as a part of volume duplication.
8674 func (r Network_Storage_Backup_Evault) GetMoveAndSplitStatus() (resp string, err error) {
8675 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getMoveAndSplitStatus", nil, &r.Options, &resp)
8676 return
8677 }
8678
8679 // no documentation yet
8680 func (r Network_Storage_Backup_Evault) GetNetworkConnectionDetails() (resp datatypes.Container_Network_Storage_NetworkConnectionInformation, err error) {
8681 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getNetworkConnectionDetails", nil, &r.Options, &resp)
8682 return
8683 }
8684
8685 // no documentation yet
8686 func (r Network_Storage_Backup_Evault) GetNetworkMountAddress() (resp string, err error) {
8687 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getNetworkMountAddress", nil, &r.Options, &resp)
8688 return
8689 }
8690
8691 // no documentation yet
8692 func (r Network_Storage_Backup_Evault) GetNetworkMountPath() (resp string, err error) {
8693 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getNetworkMountPath", nil, &r.Options, &resp)
8694 return
8695 }
8696
8697 // Retrieve The subscribers that will be notified for usage amount warnings and overages.
8698 func (r Network_Storage_Backup_Evault) GetNotificationSubscribers() (resp []datatypes.Notification_User_Subscriber, err error) {
8699 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getNotificationSubscribers", nil, &r.Options, &resp)
8700 return
8701 }
8702
8703 // getObject retrieves the SoftLayer_Network_Storage_Backup_Evault object whose ID corresponds to the ID number of the init parameter passed to the SoftLayer_Network_Storage_Backup_Evault service.
8704 func (r Network_Storage_Backup_Evault) GetObject() (resp datatypes.Network_Storage_Backup_Evault, err error) {
8705 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getObject", nil, &r.Options, &resp)
8706 return
8707 }
8708
8709 // no documentation yet
8710 func (r Network_Storage_Backup_Evault) GetObjectStorageConnectionInformation() (resp []datatypes.Container_Network_Service_Resource_ObjectStorage_ConnectionInformation, err error) {
8711 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getObjectStorageConnectionInformation", nil, &r.Options, &resp)
8712 return
8713 }
8714
8715 // Retrieve network storage accounts by SoftLayer_Network_Storage_Credential object. Use this method if you wish to retrieve a storage record by a credential rather than by id.
8716 func (r Network_Storage_Backup_Evault) GetObjectsByCredential(credentialObject *datatypes.Network_Storage_Credential) (resp []datatypes.Network_Storage, err error) {
8717 params := []interface{}{
8718 credentialObject,
8719 }
8720 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getObjectsByCredential", params, &r.Options, &resp)
8721 return
8722 }
8723
8724 // Retrieve The name of the snapshot that this volume was duplicated from.
8725 func (r Network_Storage_Backup_Evault) GetOriginalSnapshotName() (resp string, err error) {
8726 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getOriginalSnapshotName", nil, &r.Options, &resp)
8727 return
8728 }
8729
8730 // Retrieve Volume id of the origin volume from which this volume is been cloned.
8731 func (r Network_Storage_Backup_Evault) GetOriginalVolumeId() (resp int, err error) {
8732 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getOriginalVolumeId", nil, &r.Options, &resp)
8733 return
8734 }
8735
8736 // Retrieve The name of the volume that this volume was duplicated from.
8737 func (r Network_Storage_Backup_Evault) GetOriginalVolumeName() (resp string, err error) {
8738 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getOriginalVolumeName", nil, &r.Options, &resp)
8739 return
8740 }
8741
8742 // Retrieve The size (in GB) of the volume or LUN before any size expansion, or of the volume (before any possible size expansion) from which the duplicate volume or LUN was created.
8743 func (r Network_Storage_Backup_Evault) GetOriginalVolumeSize() (resp string, err error) {
8744 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getOriginalVolumeSize", nil, &r.Options, &resp)
8745 return
8746 }
8747
8748 // Retrieve A volume's configured SoftLayer_Network_Storage_Iscsi_OS_Type.
8749 func (r Network_Storage_Backup_Evault) GetOsType() (resp datatypes.Network_Storage_Iscsi_OS_Type, err error) {
8750 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getOsType", nil, &r.Options, &resp)
8751 return
8752 }
8753
8754 // Retrieve A volume's configured SoftLayer_Network_Storage_Iscsi_OS_Type ID.
8755 func (r Network_Storage_Backup_Evault) GetOsTypeId() (resp string, err error) {
8756 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getOsTypeId", nil, &r.Options, &resp)
8757 return
8758 }
8759
8760 // Retrieve The volumes or snapshots partnered with a network storage volume in a parental role.
8761 func (r Network_Storage_Backup_Evault) GetParentPartnerships() (resp []datatypes.Network_Storage_Partnership, err error) {
8762 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getParentPartnerships", nil, &r.Options, &resp)
8763 return
8764 }
8765
8766 // Retrieve The parent volume of a volume in a complex storage relationship.
8767 func (r Network_Storage_Backup_Evault) GetParentVolume() (resp datatypes.Network_Storage, err error) {
8768 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getParentVolume", nil, &r.Options, &resp)
8769 return
8770 }
8771
8772 // Retrieve The volumes or snapshots partnered with a network storage volume.
8773 func (r Network_Storage_Backup_Evault) GetPartnerships() (resp []datatypes.Network_Storage_Partnership, err error) {
8774 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getPartnerships", nil, &r.Options, &resp)
8775 return
8776 }
8777
8778 // Retrieve All permissions group(s) this volume is in.
8779 func (r Network_Storage_Backup_Evault) GetPermissionsGroups() (resp []datatypes.Network_Storage_Group, err error) {
8780 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getPermissionsGroups", nil, &r.Options, &resp)
8781 return
8782 }
8783
8784 // Retrieve The properties used to provide additional details about a network storage volume.
8785 func (r Network_Storage_Backup_Evault) GetProperties() (resp []datatypes.Network_Storage_Property, err error) {
8786 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getProperties", nil, &r.Options, &resp)
8787 return
8788 }
8789
8790 // Retrieve The number of IOPs provisioned for this volume.
8791 func (r Network_Storage_Backup_Evault) GetProvisionedIops() (resp string, err error) {
8792 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getProvisionedIops", nil, &r.Options, &resp)
8793 return
8794 }
8795
8796 // {{CloudLayerOnlyMethod}} Retrieve the details of a file that is pending deletion in a Storage account's a recycle bin.
8797 func (r Network_Storage_Backup_Evault) GetRecycleBinFileByIdentifier(fileId *string) (resp datatypes.Container_Utility_File_Entity, err error) {
8798 params := []interface{}{
8799 fileId,
8800 }
8801 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getRecycleBinFileByIdentifier", params, &r.Options, &resp)
8802 return
8803 }
8804
8805 // Retrieves the remaining number of allowed hosts per volume.
8806 func (r Network_Storage_Backup_Evault) GetRemainingAllowedHosts() (resp int, err error) {
8807 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getRemainingAllowedHosts", nil, &r.Options, &resp)
8808 return
8809 }
8810
8811 // Retrieves the remaining number of allowed hosts for a volume's replicant.
8812 func (r Network_Storage_Backup_Evault) GetRemainingAllowedHostsForReplicant() (resp int, err error) {
8813 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getRemainingAllowedHostsForReplicant", nil, &r.Options, &resp)
8814 return
8815 }
8816
8817 // Retrieve The iSCSI LUN volumes being replicated by this network storage volume.
8818 func (r Network_Storage_Backup_Evault) GetReplicatingLuns() (resp []datatypes.Network_Storage, err error) {
8819 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getReplicatingLuns", nil, &r.Options, &resp)
8820 return
8821 }
8822
8823 // Retrieve The network storage volume being replicated by a volume.
8824 func (r Network_Storage_Backup_Evault) GetReplicatingVolume() (resp datatypes.Network_Storage, err error) {
8825 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getReplicatingVolume", nil, &r.Options, &resp)
8826 return
8827 }
8828
8829 // Retrieve The volume replication events.
8830 func (r Network_Storage_Backup_Evault) GetReplicationEvents() (resp []datatypes.Network_Storage_Event, err error) {
8831 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getReplicationEvents", nil, &r.Options, &resp)
8832 return
8833 }
8834
8835 // Retrieve The network storage volumes configured to be replicants of a volume.
8836 func (r Network_Storage_Backup_Evault) GetReplicationPartners() (resp []datatypes.Network_Storage, err error) {
8837 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getReplicationPartners", nil, &r.Options, &resp)
8838 return
8839 }
8840
8841 // Retrieve The Replication Schedule associated with a network storage volume.
8842 func (r Network_Storage_Backup_Evault) GetReplicationSchedule() (resp datatypes.Network_Storage_Schedule, err error) {
8843 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getReplicationSchedule", nil, &r.Options, &resp)
8844 return
8845 }
8846
8847 // Retrieve The current replication status of a network storage volume. Indicates Failover or Failback status.
8848 func (r Network_Storage_Backup_Evault) GetReplicationStatus() (resp string, err error) {
8849 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getReplicationStatus", nil, &r.Options, &resp)
8850 return
8851 }
8852
8853 // no documentation yet
8854 func (r Network_Storage_Backup_Evault) GetReplicationTimestamp() (resp string, err error) {
8855 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getReplicationTimestamp", nil, &r.Options, &resp)
8856 return
8857 }
8858
8859 // Retrieve The schedules which are associated with a network storage volume.
8860 func (r Network_Storage_Backup_Evault) GetSchedules() (resp []datatypes.Network_Storage_Schedule, err error) {
8861 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getSchedules", nil, &r.Options, &resp)
8862 return
8863 }
8864
8865 // Retrieve The network resource a Storage service is connected to.
8866 func (r Network_Storage_Backup_Evault) GetServiceResource() (resp datatypes.Network_Service_Resource, err error) {
8867 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getServiceResource", nil, &r.Options, &resp)
8868 return
8869 }
8870
8871 // Retrieve The IP address of a Storage resource.
8872 func (r Network_Storage_Backup_Evault) GetServiceResourceBackendIpAddress() (resp string, err error) {
8873 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getServiceResourceBackendIpAddress", nil, &r.Options, &resp)
8874 return
8875 }
8876
8877 // Retrieve The name of a Storage's network resource.
8878 func (r Network_Storage_Backup_Evault) GetServiceResourceName() (resp string, err error) {
8879 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getServiceResourceName", nil, &r.Options, &resp)
8880 return
8881 }
8882
8883 // Retrieve A volume's configured snapshot space size.
8884 func (r Network_Storage_Backup_Evault) GetSnapshotCapacityGb() (resp string, err error) {
8885 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getSnapshotCapacityGb", nil, &r.Options, &resp)
8886 return
8887 }
8888
8889 // Retrieve The creation timestamp of the snapshot on the storage platform.
8890 func (r Network_Storage_Backup_Evault) GetSnapshotCreationTimestamp() (resp string, err error) {
8891 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getSnapshotCreationTimestamp", nil, &r.Options, &resp)
8892 return
8893 }
8894
8895 // Retrieve The percentage of used snapshot space after which to delete automated snapshots.
8896 func (r Network_Storage_Backup_Evault) GetSnapshotDeletionThresholdPercentage() (resp string, err error) {
8897 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getSnapshotDeletionThresholdPercentage", nil, &r.Options, &resp)
8898 return
8899 }
8900
8901 // Retrieve Whether or not a network storage volume may be mounted.
8902 func (r Network_Storage_Backup_Evault) GetSnapshotNotificationStatus() (resp string, err error) {
8903 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getSnapshotNotificationStatus", nil, &r.Options, &resp)
8904 return
8905 }
8906
8907 // Retrieve The snapshot size in bytes.
8908 func (r Network_Storage_Backup_Evault) GetSnapshotSizeBytes() (resp string, err error) {
8909 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getSnapshotSizeBytes", nil, &r.Options, &resp)
8910 return
8911 }
8912
8913 // Retrieve A volume's available snapshot reservation space.
8914 func (r Network_Storage_Backup_Evault) GetSnapshotSpaceAvailable() (resp string, err error) {
8915 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getSnapshotSpaceAvailable", nil, &r.Options, &resp)
8916 return
8917 }
8918
8919 // Retrieve The snapshots associated with this SoftLayer_Network_Storage volume.
8920 func (r Network_Storage_Backup_Evault) GetSnapshots() (resp []datatypes.Network_Storage, err error) {
8921 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getSnapshots", nil, &r.Options, &resp)
8922 return
8923 }
8924
8925 // Retrieves a list of snapshots for this SoftLayer_Network_Storage volume. This method works with the result limits and offset to support pagination.
8926 func (r Network_Storage_Backup_Evault) GetSnapshotsForVolume() (resp []datatypes.Network_Storage, err error) {
8927 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getSnapshotsForVolume", nil, &r.Options, &resp)
8928 return
8929 }
8930
8931 // Retrieve
8932 func (r Network_Storage_Backup_Evault) GetStaasVersion() (resp string, err error) {
8933 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getStaasVersion", nil, &r.Options, &resp)
8934 return
8935 }
8936
8937 // Retrieve The network storage groups this volume is attached to.
8938 func (r Network_Storage_Backup_Evault) GetStorageGroups() (resp []datatypes.Network_Storage_Group, err error) {
8939 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getStorageGroups", nil, &r.Options, &resp)
8940 return
8941 }
8942
8943 // no documentation yet
8944 func (r Network_Storage_Backup_Evault) GetStorageGroupsNetworkConnectionDetails() (resp []datatypes.Container_Network_Storage_NetworkConnectionInformation, err error) {
8945 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getStorageGroupsNetworkConnectionDetails", nil, &r.Options, &resp)
8946 return
8947 }
8948
8949 // Retrieve
8950 func (r Network_Storage_Backup_Evault) GetStorageTierLevel() (resp string, err error) {
8951 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getStorageTierLevel", nil, &r.Options, &resp)
8952 return
8953 }
8954
8955 // Retrieve A description of the Storage object.
8956 func (r Network_Storage_Backup_Evault) GetStorageType() (resp datatypes.Network_Storage_Type, err error) {
8957 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getStorageType", nil, &r.Options, &resp)
8958 return
8959 }
8960
8961 // no documentation yet
8962 func (r Network_Storage_Backup_Evault) GetTargetIpAddresses() (resp []string, err error) {
8963 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getTargetIpAddresses", nil, &r.Options, &resp)
8964 return
8965 }
8966
8967 // Retrieve The amount of space used by the volume.
8968 func (r Network_Storage_Backup_Evault) GetTotalBytesUsed() (resp string, err error) {
8969 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getTotalBytesUsed", nil, &r.Options, &resp)
8970 return
8971 }
8972
8973 // Retrieve The total snapshot retention count of all schedules on this network storage volume.
8974 func (r Network_Storage_Backup_Evault) GetTotalScheduleSnapshotRetentionCount() (resp uint, err error) {
8975 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getTotalScheduleSnapshotRetentionCount", nil, &r.Options, &resp)
8976 return
8977 }
8978
8979 // Retrieve The usage notification for SL Storage services.
8980 func (r Network_Storage_Backup_Evault) GetUsageNotification() (resp datatypes.Notification, err error) {
8981 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getUsageNotification", nil, &r.Options, &resp)
8982 return
8983 }
8984
8985 // no documentation yet
8986 func (r Network_Storage_Backup_Evault) GetValidReplicationTargetDatacenterLocations() (resp []datatypes.Location, err error) {
8987 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getValidReplicationTargetDatacenterLocations", nil, &r.Options, &resp)
8988 return
8989 }
8990
8991 // Retrieve The type of network storage service.
8992 func (r Network_Storage_Backup_Evault) GetVendorName() (resp string, err error) {
8993 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getVendorName", nil, &r.Options, &resp)
8994 return
8995 }
8996
8997 // Retrieve When applicable, the virtual guest associated with a Storage service.
8998 func (r Network_Storage_Backup_Evault) GetVirtualGuest() (resp datatypes.Virtual_Guest, err error) {
8999 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getVirtualGuest", nil, &r.Options, &resp)
9000 return
9001 }
9002
9003 // Retrieves an array of volume count limits per location and globally.
9004 func (r Network_Storage_Backup_Evault) GetVolumeCountLimits() (resp []datatypes.Container_Network_Storage_DataCenterLimits_VolumeCountLimitContainer, err error) {
9005 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getVolumeCountLimits", nil, &r.Options, &resp)
9006 return
9007 }
9008
9009 // This method returns the parameters for cloning a volume
9010 func (r Network_Storage_Backup_Evault) GetVolumeDuplicateParameters() (resp datatypes.Container_Network_Storage_VolumeDuplicateParameters, err error) {
9011 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getVolumeDuplicateParameters", nil, &r.Options, &resp)
9012 return
9013 }
9014
9015 // Retrieve The username and password history for a Storage service.
9016 func (r Network_Storage_Backup_Evault) GetVolumeHistory() (resp []datatypes.Network_Storage_History, err error) {
9017 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getVolumeHistory", nil, &r.Options, &resp)
9018 return
9019 }
9020
9021 // Retrieve The current status of a network storage volume.
9022 func (r Network_Storage_Backup_Evault) GetVolumeStatus() (resp string, err error) {
9023 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getVolumeStatus", nil, &r.Options, &resp)
9024 return
9025 }
9026
9027 // no documentation yet
9028 func (r Network_Storage_Backup_Evault) GetWebCCAuthenticationDetails() (resp datatypes.Container_Network_Storage_Backup_Evault_WebCc_Authentication_Details, err error) {
9029 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getWebCCAuthenticationDetails", nil, &r.Options, &resp)
9030 return
9031 }
9032
9033 // Retrieve The account username and password for the EVault webCC interface.
9034 func (r Network_Storage_Backup_Evault) GetWebccAccount() (resp datatypes.Account_Password, err error) {
9035 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getWebccAccount", nil, &r.Options, &resp)
9036 return
9037 }
9038
9039 // Retrieve The Weekly Schedule which is associated with this network storage volume.
9040 func (r Network_Storage_Backup_Evault) GetWeeklySchedule() (resp datatypes.Network_Storage_Schedule, err error) {
9041 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getWeeklySchedule", nil, &r.Options, &resp)
9042 return
9043 }
9044
9045 // Immediate Failover to a volume replicant. During the time which the replicant is in use the local nas volume will not be available.
9046 func (r Network_Storage_Backup_Evault) ImmediateFailoverToReplicant(replicantId *int) (resp bool, err error) {
9047 params := []interface{}{
9048 replicantId,
9049 }
9050 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "immediateFailoverToReplicant", params, &r.Options, &resp)
9051 return
9052 }
9053
9054 // Evault Bare Metal Restore is a special version of Rescue Kernel designed specifically for making full system restores made with Evault's BMR backup. This process works very similar to Rescue Kernel, except only the Evault restore program is available. The process takes approximately 10 minutes. Once completed you will be able to access your server to do a restore through VNC or your servers KVM-over-IP. IP information and credentials can be found on the hardware page of the customer portal. The Evault Application will be running automatically upon startup, and will walk you through the restore process.
9055 func (r Network_Storage_Backup_Evault) InitiateBareMetalRestore() (resp bool, err error) {
9056 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "initiateBareMetalRestore", nil, &r.Options, &resp)
9057 return
9058 }
9059
9060 // This method operates the same as the initiateBareMetalRestore() method. However, using this method, the Bare Metal Restore can be initiated on any Windows server under the account.
9061 func (r Network_Storage_Backup_Evault) InitiateBareMetalRestoreForServer(hardwareId *int) (resp bool, err error) {
9062 params := []interface{}{
9063 hardwareId,
9064 }
9065 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "initiateBareMetalRestoreForServer", params, &r.Options, &resp)
9066 return
9067 }
9068
9069 // no documentation yet
9070 func (r Network_Storage_Backup_Evault) InitiateOriginVolumeReclaim() (resp string, err error) {
9071 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "initiateOriginVolumeReclaim", nil, &r.Options, &resp)
9072 return
9073 }
9074
9075 // no documentation yet
9076 func (r Network_Storage_Backup_Evault) InitiateVolumeCutover() (resp string, err error) {
9077 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "initiateVolumeCutover", nil, &r.Options, &resp)
9078 return
9079 }
9080
9081 // no documentation yet
9082 func (r Network_Storage_Backup_Evault) IsBlockingOperationInProgress(exemptStatusKeyNames []string) (resp bool, err error) {
9083 params := []interface{}{
9084 exemptStatusKeyNames,
9085 }
9086 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "isBlockingOperationInProgress", params, &r.Options, &resp)
9087 return
9088 }
9089
9090 // This method returns a boolean indicating whether the clone volume is ready for snapshot.
9091 func (r Network_Storage_Backup_Evault) IsDuplicateReadyForSnapshot() (resp bool, err error) {
9092 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "isDuplicateReadyForSnapshot", nil, &r.Options, &resp)
9093 return
9094 }
9095
9096 // This method returns a boolean indicating whether the clone volume is ready to mount.
9097 func (r Network_Storage_Backup_Evault) IsDuplicateReadyToMount() (resp bool, err error) {
9098 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "isDuplicateReadyToMount", nil, &r.Options, &resp)
9099 return
9100 }
9101
9102 // no documentation yet
9103 func (r Network_Storage_Backup_Evault) IsVolumeActive() (resp bool, err error) {
9104 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "isVolumeActive", nil, &r.Options, &resp)
9105 return
9106 }
9107
9108 // no documentation yet
9109 func (r Network_Storage_Backup_Evault) RefreshDependentDuplicate(snapshotId *int) (resp bool, err error) {
9110 params := []interface{}{
9111 snapshotId,
9112 }
9113 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "refreshDependentDuplicate", params, &r.Options, &resp)
9114 return
9115 }
9116
9117 // no documentation yet
9118 func (r Network_Storage_Backup_Evault) RefreshDuplicate(snapshotId *int, forceRefresh *bool) (resp bool, err error) {
9119 params := []interface{}{
9120 snapshotId,
9121 forceRefresh,
9122 }
9123 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "refreshDuplicate", params, &r.Options, &resp)
9124 return
9125 }
9126
9127 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Hardware objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage volume.
9128 func (r Network_Storage_Backup_Evault) RemoveAccessFromHardware(hardwareObjectTemplate *datatypes.Hardware) (resp bool, err error) {
9129 params := []interface{}{
9130 hardwareObjectTemplate,
9131 }
9132 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "removeAccessFromHardware", params, &r.Options, &resp)
9133 return
9134 }
9135
9136 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Hardware objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage volume.
9137 func (r Network_Storage_Backup_Evault) RemoveAccessFromHardwareList(hardwareObjectTemplates []datatypes.Hardware) (resp bool, err error) {
9138 params := []interface{}{
9139 hardwareObjectTemplates,
9140 }
9141 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "removeAccessFromHardwareList", params, &r.Options, &resp)
9142 return
9143 }
9144
9145 // This method is used to modify the access control list for this Storage volume. The [[SoftLayer_Hardware|SoftLayer_Virtual_Guest|SoftLayer_Network_Subnet|SoftLayer_Network_Subnet_IpAddress]] objects which have been allowed access to this storage will be listed in the [[allowedHardware|allowedVirtualGuests|allowedSubnets|allowedIpAddresses]] property of this storage volume.
9146 func (r Network_Storage_Backup_Evault) RemoveAccessFromHost(typeClassName *string, hostId *int) (resp datatypes.Network_Storage_Allowed_Host, err error) {
9147 params := []interface{}{
9148 typeClassName,
9149 hostId,
9150 }
9151 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "removeAccessFromHost", params, &r.Options, &resp)
9152 return
9153 }
9154
9155 // This method is used to modify the access control list for this Storage volume. The [[SoftLayer_Hardware|SoftLayer_Virtual_Guest|SoftLayer_Network_Subnet|SoftLayer_Network_Subnet_IpAddress]] objects which have been allowed access to this storage will be listed in the [[allowedHardware|allowedVirtualGuests|allowedSubnets|allowedIpAddresses]] property of this storage volume.
9156 func (r Network_Storage_Backup_Evault) RemoveAccessFromHostList(hostObjectTemplates []datatypes.Container_Network_Storage_Host) (resp []datatypes.Network_Storage_Allowed_Host, err error) {
9157 params := []interface{}{
9158 hostObjectTemplates,
9159 }
9160 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "removeAccessFromHostList", params, &r.Options, &resp)
9161 return
9162 }
9163
9164 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Network_Subnet_IpAddress objects which have been allowed access to this storage will be listed in the allowedIpAddresses property of this storage volume.
9165 func (r Network_Storage_Backup_Evault) RemoveAccessFromIpAddress(ipAddressObjectTemplate *datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
9166 params := []interface{}{
9167 ipAddressObjectTemplate,
9168 }
9169 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "removeAccessFromIpAddress", params, &r.Options, &resp)
9170 return
9171 }
9172
9173 // no documentation yet
9174 func (r Network_Storage_Backup_Evault) RemoveAccessFromIpAddressList(ipAddressObjectTemplates []datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
9175 params := []interface{}{
9176 ipAddressObjectTemplates,
9177 }
9178 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "removeAccessFromIpAddressList", params, &r.Options, &resp)
9179 return
9180 }
9181
9182 // no documentation yet
9183 func (r Network_Storage_Backup_Evault) RemoveAccessFromSubnet(subnetObjectTemplate *datatypes.Network_Subnet) (resp bool, err error) {
9184 params := []interface{}{
9185 subnetObjectTemplate,
9186 }
9187 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "removeAccessFromSubnet", params, &r.Options, &resp)
9188 return
9189 }
9190
9191 // no documentation yet
9192 func (r Network_Storage_Backup_Evault) RemoveAccessFromSubnetList(subnetObjectTemplates []datatypes.Network_Subnet) (resp bool, err error) {
9193 params := []interface{}{
9194 subnetObjectTemplates,
9195 }
9196 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "removeAccessFromSubnetList", params, &r.Options, &resp)
9197 return
9198 }
9199
9200 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage volume.
9201 func (r Network_Storage_Backup_Evault) RemoveAccessFromVirtualGuest(virtualGuestObjectTemplate *datatypes.Virtual_Guest) (resp bool, err error) {
9202 params := []interface{}{
9203 virtualGuestObjectTemplate,
9204 }
9205 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "removeAccessFromVirtualGuest", params, &r.Options, &resp)
9206 return
9207 }
9208
9209 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage volume.
9210 func (r Network_Storage_Backup_Evault) RemoveAccessFromVirtualGuestList(virtualGuestObjectTemplates []datatypes.Virtual_Guest) (resp bool, err error) {
9211 params := []interface{}{
9212 virtualGuestObjectTemplates,
9213 }
9214 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "removeAccessFromVirtualGuestList", params, &r.Options, &resp)
9215 return
9216 }
9217
9218 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Hardware objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationHardware property of this storage volume.
9219 func (r Network_Storage_Backup_Evault) RemoveAccessToReplicantFromHardwareList(hardwareObjectTemplates []datatypes.Hardware) (resp bool, err error) {
9220 params := []interface{}{
9221 hardwareObjectTemplates,
9222 }
9223 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "removeAccessToReplicantFromHardwareList", params, &r.Options, &resp)
9224 return
9225 }
9226
9227 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Network_Subnet_IpAddress objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationIpAddresses property of this storage volume.
9228 func (r Network_Storage_Backup_Evault) RemoveAccessToReplicantFromIpAddressList(ipAddressObjectTemplates []datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
9229 params := []interface{}{
9230 ipAddressObjectTemplates,
9231 }
9232 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "removeAccessToReplicantFromIpAddressList", params, &r.Options, &resp)
9233 return
9234 }
9235
9236 // no documentation yet
9237 func (r Network_Storage_Backup_Evault) RemoveAccessToReplicantFromSubnet(subnetObjectTemplate *datatypes.Network_Subnet) (resp bool, err error) {
9238 params := []interface{}{
9239 subnetObjectTemplate,
9240 }
9241 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "removeAccessToReplicantFromSubnet", params, &r.Options, &resp)
9242 return
9243 }
9244
9245 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Network_Subnet objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationSubnets property of this storage volume.
9246 func (r Network_Storage_Backup_Evault) RemoveAccessToReplicantFromSubnetList(subnetObjectTemplates []datatypes.Network_Subnet) (resp bool, err error) {
9247 params := []interface{}{
9248 subnetObjectTemplates,
9249 }
9250 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "removeAccessToReplicantFromSubnetList", params, &r.Options, &resp)
9251 return
9252 }
9253
9254 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationVirtualGuests property of this storage volume.
9255 func (r Network_Storage_Backup_Evault) RemoveAccessToReplicantFromVirtualGuestList(virtualGuestObjectTemplates []datatypes.Virtual_Guest) (resp bool, err error) {
9256 params := []interface{}{
9257 virtualGuestObjectTemplates,
9258 }
9259 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "removeAccessToReplicantFromVirtualGuestList", params, &r.Options, &resp)
9260 return
9261 }
9262
9263 // This method will remove a credential from the current volume. The credential must have been created using the 'addNewCredential' method.
9264 func (r Network_Storage_Backup_Evault) RemoveCredential(username *string) (resp bool, err error) {
9265 params := []interface{}{
9266 username,
9267 }
9268 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "removeCredential", params, &r.Options, &resp)
9269 return
9270 }
9271
9272 // {{CloudLayerOnlyMethod}} Restore an individual file so that it may be used as it was before it was deleted.
9273 //
9274 // If a file is deleted from a Virtual Server Storage account, the file is placed into the account's recycle bin and not permanently deleted. Therefore, restoreFile can be used to place the file back into your Virtual Server account's root directory.
9275 func (r Network_Storage_Backup_Evault) RestoreFile(fileId *string) (resp datatypes.Container_Utility_File_Entity, err error) {
9276 params := []interface{}{
9277 fileId,
9278 }
9279 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "restoreFile", params, &r.Options, &resp)
9280 return
9281 }
9282
9283 // Restore the volume from a snapshot that was previously taken.
9284 func (r Network_Storage_Backup_Evault) RestoreFromSnapshot(snapshotId *int) (resp bool, err error) {
9285 params := []interface{}{
9286 snapshotId,
9287 }
9288 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "restoreFromSnapshot", params, &r.Options, &resp)
9289 return
9290 }
9291
9292 // The method will retrieve the password for the StorageLayer or Virtual Server Storage Account and email the password. The Storage Account passwords will be emailed to the master user. For Virtual Server Storage, the password will be sent to the email address used as the username.
9293 func (r Network_Storage_Backup_Evault) SendPasswordReminderEmail(username *string) (resp bool, err error) {
9294 params := []interface{}{
9295 username,
9296 }
9297 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "sendPasswordReminderEmail", params, &r.Options, &resp)
9298 return
9299 }
9300
9301 // Enable or disable the mounting of a Storage volume. When mounting is enabled the Storage volume will be mountable or available for use.
9302 //
9303 // For Virtual Server volumes, disabling mounting will deny access to the Virtual Server Account, remove published material and deny all file interaction including uploads and downloads.
9304 //
9305 // Enabling or disabling mounting for Storage volumes is not possible if mounting has been disabled by SoftLayer or a parent account.
9306 func (r Network_Storage_Backup_Evault) SetMountable(mountable *bool) (resp bool, err error) {
9307 params := []interface{}{
9308 mountable,
9309 }
9310 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "setMountable", params, &r.Options, &resp)
9311 return
9312 }
9313
9314 // no documentation yet
9315 func (r Network_Storage_Backup_Evault) SetSnapshotAllocation(capacityGb *int) (err error) {
9316 var resp datatypes.Void
9317 params := []interface{}{
9318 capacityGb,
9319 }
9320 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "setSnapshotAllocation", params, &r.Options, &resp)
9321 return
9322 }
9323
9324 // Function to enable/disable snapshot warning notification.
9325 func (r Network_Storage_Backup_Evault) SetSnapshotNotification(notificationFlag *bool) (err error) {
9326 var resp datatypes.Void
9327 params := []interface{}{
9328 notificationFlag,
9329 }
9330 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "setSnapshotNotification", params, &r.Options, &resp)
9331 return
9332 }
9333
9334 // Upgrade the Storage volume to one of the upgradable packages (for example from 10 Gigs of EVault storage to 100 Gigs of EVault storage).
9335 func (r Network_Storage_Backup_Evault) UpgradeVolumeCapacity(itemId *int) (resp bool, err error) {
9336 params := []interface{}{
9337 itemId,
9338 }
9339 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "upgradeVolumeCapacity", params, &r.Options, &resp)
9340 return
9341 }
9342
9343 // {{CloudLayerOnlyMethod}} Upload a file to a Storage account's root directory. Once uploaded, this method returns new file entity identifier for the upload file.
9344 //
9345 // The following properties are required in the ”file” parameter.
9346 // *”'name”': The name of the file you wish to upload
9347 // *”'content”': The raw contents of the file you wish to upload.
9348 // *”'contentType”': The MIME-type of content that you wish to upload.
9349 func (r Network_Storage_Backup_Evault) UploadFile(file *datatypes.Container_Utility_File_Entity) (resp datatypes.Container_Utility_File_Entity, err error) {
9350 params := []interface{}{
9351 file,
9352 }
9353 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "uploadFile", params, &r.Options, &resp)
9354 return
9355 }
9356
9357 // This method is used to validate if the hosts are behind gateway or not from [SoftLayer_Network_Subnet|SoftLayer_Network_Subnet_IpAddress] objects. This returns [SoftLayer_Container_Network_Storage_HostsGatewayInformation] object containing the host details along with a boolean attribute which indicates if it's behind the gateway or not.
9358 func (r Network_Storage_Backup_Evault) ValidateHostsAccess(hostObjectTemplates []datatypes.Container_Network_Storage_Host) (resp []datatypes.Container_Network_Storage_HostsGatewayInformation, err error) {
9359 params := []interface{}{
9360 hostObjectTemplates,
9361 }
9362 err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "validateHostsAccess", params, &r.Options, &resp)
9363 return
9364 }
9365
9366 // no documentation yet
9367 type Network_Storage_DedicatedCluster struct {
9368 Session session.SLSession
9369 Options sl.Options
9370 }
9371
9372 // GetNetworkStorageDedicatedClusterService returns an instance of the Network_Storage_DedicatedCluster SoftLayer service
9373 func GetNetworkStorageDedicatedClusterService(sess session.SLSession) Network_Storage_DedicatedCluster {
9374 return Network_Storage_DedicatedCluster{Session: sess}
9375 }
9376
9377 func (r Network_Storage_DedicatedCluster) Id(id int) Network_Storage_DedicatedCluster {
9378 r.Options.Id = &id
9379 return r
9380 }
9381
9382 func (r Network_Storage_DedicatedCluster) Mask(mask string) Network_Storage_DedicatedCluster {
9383 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
9384 mask = fmt.Sprintf("mask[%s]", mask)
9385 }
9386
9387 r.Options.Mask = mask
9388 return r
9389 }
9390
9391 func (r Network_Storage_DedicatedCluster) Filter(filter string) Network_Storage_DedicatedCluster {
9392 r.Options.Filter = filter
9393 return r
9394 }
9395
9396 func (r Network_Storage_DedicatedCluster) Limit(limit int) Network_Storage_DedicatedCluster {
9397 r.Options.Limit = &limit
9398 return r
9399 }
9400
9401 func (r Network_Storage_DedicatedCluster) Offset(offset int) Network_Storage_DedicatedCluster {
9402 r.Options.Offset = &offset
9403 return r
9404 }
9405
9406 // Retrieve
9407 func (r Network_Storage_DedicatedCluster) GetAccount() (resp datatypes.Account, err error) {
9408 err = r.Session.DoRequest("SoftLayer_Network_Storage_DedicatedCluster", "getAccount", nil, &r.Options, &resp)
9409 return
9410 }
9411
9412 // no documentation yet
9413 func (r Network_Storage_DedicatedCluster) GetDedicatedClusterList() (resp []int, err error) {
9414 err = r.Session.DoRequest("SoftLayer_Network_Storage_DedicatedCluster", "getDedicatedClusterList", nil, &r.Options, &resp)
9415 return
9416 }
9417
9418 // no documentation yet
9419 func (r Network_Storage_DedicatedCluster) GetObject() (resp datatypes.Network_Storage_DedicatedCluster, err error) {
9420 err = r.Session.DoRequest("SoftLayer_Network_Storage_DedicatedCluster", "getObject", nil, &r.Options, &resp)
9421 return
9422 }
9423
9424 // Retrieve
9425 func (r Network_Storage_DedicatedCluster) GetServiceResource() (resp datatypes.Network_Service_Resource, err error) {
9426 err = r.Session.DoRequest("SoftLayer_Network_Storage_DedicatedCluster", "getServiceResource", nil, &r.Options, &resp)
9427 return
9428 }
9429
9430 // no documentation yet
9431 type Network_Storage_Group struct {
9432 Session session.SLSession
9433 Options sl.Options
9434 }
9435
9436 // GetNetworkStorageGroupService returns an instance of the Network_Storage_Group SoftLayer service
9437 func GetNetworkStorageGroupService(sess session.SLSession) Network_Storage_Group {
9438 return Network_Storage_Group{Session: sess}
9439 }
9440
9441 func (r Network_Storage_Group) Id(id int) Network_Storage_Group {
9442 r.Options.Id = &id
9443 return r
9444 }
9445
9446 func (r Network_Storage_Group) Mask(mask string) Network_Storage_Group {
9447 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
9448 mask = fmt.Sprintf("mask[%s]", mask)
9449 }
9450
9451 r.Options.Mask = mask
9452 return r
9453 }
9454
9455 func (r Network_Storage_Group) Filter(filter string) Network_Storage_Group {
9456 r.Options.Filter = filter
9457 return r
9458 }
9459
9460 func (r Network_Storage_Group) Limit(limit int) Network_Storage_Group {
9461 r.Options.Limit = &limit
9462 return r
9463 }
9464
9465 func (r Network_Storage_Group) Offset(offset int) Network_Storage_Group {
9466 r.Options.Offset = &offset
9467 return r
9468 }
9469
9470 // Use this method to attach a SoftLayer_Network_Storage_Allowed_Host object to this group. This will automatically enable access from this host to any SoftLayer_Network_Storage volumes currently attached to this group.
9471 func (r Network_Storage_Group) AddAllowedHost(allowedHost *datatypes.Network_Storage_Allowed_Host) (resp bool, err error) {
9472 params := []interface{}{
9473 allowedHost,
9474 }
9475 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group", "addAllowedHost", params, &r.Options, &resp)
9476 return
9477 }
9478
9479 // Use this method to attach a SoftLayer_Network_Storage volume to this group. This will automatically enable access to this volume for any SoftLayer_Network_Storage_Allowed_Host objects currently attached to this group.
9480 func (r Network_Storage_Group) AttachToVolume(volume *datatypes.Network_Storage) (resp bool, err error) {
9481 params := []interface{}{
9482 volume,
9483 }
9484 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group", "attachToVolume", params, &r.Options, &resp)
9485 return
9486 }
9487
9488 // no documentation yet
9489 func (r Network_Storage_Group) CreateObject(templateObject *datatypes.Network_Storage_Group) (resp bool, err error) {
9490 params := []interface{}{
9491 templateObject,
9492 }
9493 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group", "createObject", params, &r.Options, &resp)
9494 return
9495 }
9496
9497 // no documentation yet
9498 func (r Network_Storage_Group) DeleteObject() (resp bool, err error) {
9499 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group", "deleteObject", nil, &r.Options, &resp)
9500 return
9501 }
9502
9503 // no documentation yet
9504 func (r Network_Storage_Group) EditObject(templateObject *datatypes.Network_Storage_Group) (resp bool, err error) {
9505 params := []interface{}{
9506 templateObject,
9507 }
9508 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group", "editObject", params, &r.Options, &resp)
9509 return
9510 }
9511
9512 // Retrieve The SoftLayer_Account which owns this group.
9513 func (r Network_Storage_Group) GetAccount() (resp datatypes.Account, err error) {
9514 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group", "getAccount", nil, &r.Options, &resp)
9515 return
9516 }
9517
9518 // Use this method to retrieve all network storage groups.
9519 func (r Network_Storage_Group) GetAllObjects() (resp []datatypes.Network_Storage_Group, err error) {
9520 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group", "getAllObjects", nil, &r.Options, &resp)
9521 return
9522 }
9523
9524 // Retrieve The allowed hosts list for this group.
9525 func (r Network_Storage_Group) GetAllowedHosts() (resp []datatypes.Network_Storage_Allowed_Host, err error) {
9526 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group", "getAllowedHosts", nil, &r.Options, &resp)
9527 return
9528 }
9529
9530 // Retrieve The network storage volumes this group is attached to.
9531 func (r Network_Storage_Group) GetAttachedVolumes() (resp []datatypes.Network_Storage, err error) {
9532 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group", "getAttachedVolumes", nil, &r.Options, &resp)
9533 return
9534 }
9535
9536 // Retrieve The type which defines this group.
9537 func (r Network_Storage_Group) GetGroupType() (resp datatypes.Network_Storage_Group_Type, err error) {
9538 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group", "getGroupType", nil, &r.Options, &resp)
9539 return
9540 }
9541
9542 // Use this method to retrieve network connection information for SoftLayer_Network_Storage_Allowed_Host objects within this group.
9543 func (r Network_Storage_Group) GetNetworkConnectionDetails() (resp datatypes.Container_Network_Storage_NetworkConnectionInformation, err error) {
9544 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group", "getNetworkConnectionDetails", nil, &r.Options, &resp)
9545 return
9546 }
9547
9548 // no documentation yet
9549 func (r Network_Storage_Group) GetObject() (resp datatypes.Network_Storage_Group, err error) {
9550 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group", "getObject", nil, &r.Options, &resp)
9551 return
9552 }
9553
9554 // Retrieve The OS Type this group is configured for.
9555 func (r Network_Storage_Group) GetOsType() (resp datatypes.Network_Storage_Iscsi_OS_Type, err error) {
9556 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group", "getOsType", nil, &r.Options, &resp)
9557 return
9558 }
9559
9560 // Retrieve The network resource this group is created on.
9561 func (r Network_Storage_Group) GetServiceResource() (resp datatypes.Network_Service_Resource, err error) {
9562 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group", "getServiceResource", nil, &r.Options, &resp)
9563 return
9564 }
9565
9566 // Use this method to remove a SoftLayer_Network_Storage_Allowed_Host object from this group. This will automatically disable access from this host to any SoftLayer_Network_Storage volumes currently attached to this group.
9567 func (r Network_Storage_Group) RemoveAllowedHost(allowedHost *datatypes.Network_Storage_Allowed_Host) (resp bool, err error) {
9568 params := []interface{}{
9569 allowedHost,
9570 }
9571 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group", "removeAllowedHost", params, &r.Options, &resp)
9572 return
9573 }
9574
9575 // Use this method to remove a SoftLayer_Network_Storage volume from this group. This will automatically disable access to this volume for any SoftLayer_Network_Storage_Allowed_Host objects currently attached to this group.
9576 func (r Network_Storage_Group) RemoveFromVolume(volume *datatypes.Network_Storage) (resp bool, err error) {
9577 params := []interface{}{
9578 volume,
9579 }
9580 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group", "removeFromVolume", params, &r.Options, &resp)
9581 return
9582 }
9583
9584 // no documentation yet
9585 type Network_Storage_Group_Iscsi struct {
9586 Session session.SLSession
9587 Options sl.Options
9588 }
9589
9590 // GetNetworkStorageGroupIscsiService returns an instance of the Network_Storage_Group_Iscsi SoftLayer service
9591 func GetNetworkStorageGroupIscsiService(sess session.SLSession) Network_Storage_Group_Iscsi {
9592 return Network_Storage_Group_Iscsi{Session: sess}
9593 }
9594
9595 func (r Network_Storage_Group_Iscsi) Id(id int) Network_Storage_Group_Iscsi {
9596 r.Options.Id = &id
9597 return r
9598 }
9599
9600 func (r Network_Storage_Group_Iscsi) Mask(mask string) Network_Storage_Group_Iscsi {
9601 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
9602 mask = fmt.Sprintf("mask[%s]", mask)
9603 }
9604
9605 r.Options.Mask = mask
9606 return r
9607 }
9608
9609 func (r Network_Storage_Group_Iscsi) Filter(filter string) Network_Storage_Group_Iscsi {
9610 r.Options.Filter = filter
9611 return r
9612 }
9613
9614 func (r Network_Storage_Group_Iscsi) Limit(limit int) Network_Storage_Group_Iscsi {
9615 r.Options.Limit = &limit
9616 return r
9617 }
9618
9619 func (r Network_Storage_Group_Iscsi) Offset(offset int) Network_Storage_Group_Iscsi {
9620 r.Options.Offset = &offset
9621 return r
9622 }
9623
9624 // Use this method to attach a SoftLayer_Network_Storage_Allowed_Host object to this group. This will automatically enable access from this host to any SoftLayer_Network_Storage volumes currently attached to this group.
9625 func (r Network_Storage_Group_Iscsi) AddAllowedHost(allowedHost *datatypes.Network_Storage_Allowed_Host) (resp bool, err error) {
9626 params := []interface{}{
9627 allowedHost,
9628 }
9629 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Iscsi", "addAllowedHost", params, &r.Options, &resp)
9630 return
9631 }
9632
9633 // Use this method to attach a SoftLayer_Network_Storage volume to this group. This will automatically enable access to this volume for any SoftLayer_Network_Storage_Allowed_Host objects currently attached to this group.
9634 func (r Network_Storage_Group_Iscsi) AttachToVolume(volume *datatypes.Network_Storage) (resp bool, err error) {
9635 params := []interface{}{
9636 volume,
9637 }
9638 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Iscsi", "attachToVolume", params, &r.Options, &resp)
9639 return
9640 }
9641
9642 // no documentation yet
9643 func (r Network_Storage_Group_Iscsi) CreateObject(templateObject *datatypes.Network_Storage_Group) (resp bool, err error) {
9644 params := []interface{}{
9645 templateObject,
9646 }
9647 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Iscsi", "createObject", params, &r.Options, &resp)
9648 return
9649 }
9650
9651 // no documentation yet
9652 func (r Network_Storage_Group_Iscsi) DeleteObject() (resp bool, err error) {
9653 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Iscsi", "deleteObject", nil, &r.Options, &resp)
9654 return
9655 }
9656
9657 // no documentation yet
9658 func (r Network_Storage_Group_Iscsi) EditObject(templateObject *datatypes.Network_Storage_Group) (resp bool, err error) {
9659 params := []interface{}{
9660 templateObject,
9661 }
9662 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Iscsi", "editObject", params, &r.Options, &resp)
9663 return
9664 }
9665
9666 // Retrieve The SoftLayer_Account which owns this group.
9667 func (r Network_Storage_Group_Iscsi) GetAccount() (resp datatypes.Account, err error) {
9668 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Iscsi", "getAccount", nil, &r.Options, &resp)
9669 return
9670 }
9671
9672 // Use this method to retrieve all network storage groups.
9673 func (r Network_Storage_Group_Iscsi) GetAllObjects() (resp []datatypes.Network_Storage_Group, err error) {
9674 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Iscsi", "getAllObjects", nil, &r.Options, &resp)
9675 return
9676 }
9677
9678 // Retrieve The allowed hosts list for this group.
9679 func (r Network_Storage_Group_Iscsi) GetAllowedHosts() (resp []datatypes.Network_Storage_Allowed_Host, err error) {
9680 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Iscsi", "getAllowedHosts", nil, &r.Options, &resp)
9681 return
9682 }
9683
9684 // Retrieve The network storage volumes this group is attached to.
9685 func (r Network_Storage_Group_Iscsi) GetAttachedVolumes() (resp []datatypes.Network_Storage, err error) {
9686 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Iscsi", "getAttachedVolumes", nil, &r.Options, &resp)
9687 return
9688 }
9689
9690 // Retrieve The type which defines this group.
9691 func (r Network_Storage_Group_Iscsi) GetGroupType() (resp datatypes.Network_Storage_Group_Type, err error) {
9692 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Iscsi", "getGroupType", nil, &r.Options, &resp)
9693 return
9694 }
9695
9696 // Use this method to retrieve network connection information for SoftLayer_Network_Storage_Allowed_Host objects within this group.
9697 func (r Network_Storage_Group_Iscsi) GetNetworkConnectionDetails() (resp datatypes.Container_Network_Storage_NetworkConnectionInformation, err error) {
9698 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Iscsi", "getNetworkConnectionDetails", nil, &r.Options, &resp)
9699 return
9700 }
9701
9702 // no documentation yet
9703 func (r Network_Storage_Group_Iscsi) GetObject() (resp datatypes.Network_Storage_Group_Iscsi, err error) {
9704 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Iscsi", "getObject", nil, &r.Options, &resp)
9705 return
9706 }
9707
9708 // Retrieve The OS Type this group is configured for.
9709 func (r Network_Storage_Group_Iscsi) GetOsType() (resp datatypes.Network_Storage_Iscsi_OS_Type, err error) {
9710 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Iscsi", "getOsType", nil, &r.Options, &resp)
9711 return
9712 }
9713
9714 // Retrieve The network resource this group is created on.
9715 func (r Network_Storage_Group_Iscsi) GetServiceResource() (resp datatypes.Network_Service_Resource, err error) {
9716 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Iscsi", "getServiceResource", nil, &r.Options, &resp)
9717 return
9718 }
9719
9720 // Use this method to remove a SoftLayer_Network_Storage_Allowed_Host object from this group. This will automatically disable access from this host to any SoftLayer_Network_Storage volumes currently attached to this group.
9721 func (r Network_Storage_Group_Iscsi) RemoveAllowedHost(allowedHost *datatypes.Network_Storage_Allowed_Host) (resp bool, err error) {
9722 params := []interface{}{
9723 allowedHost,
9724 }
9725 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Iscsi", "removeAllowedHost", params, &r.Options, &resp)
9726 return
9727 }
9728
9729 // Use this method to remove a SoftLayer_Network_Storage volume from this group. This will automatically disable access to this volume for any SoftLayer_Network_Storage_Allowed_Host objects currently attached to this group.
9730 func (r Network_Storage_Group_Iscsi) RemoveFromVolume(volume *datatypes.Network_Storage) (resp bool, err error) {
9731 params := []interface{}{
9732 volume,
9733 }
9734 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Iscsi", "removeFromVolume", params, &r.Options, &resp)
9735 return
9736 }
9737
9738 // no documentation yet
9739 type Network_Storage_Group_Nfs struct {
9740 Session session.SLSession
9741 Options sl.Options
9742 }
9743
9744 // GetNetworkStorageGroupNfsService returns an instance of the Network_Storage_Group_Nfs SoftLayer service
9745 func GetNetworkStorageGroupNfsService(sess session.SLSession) Network_Storage_Group_Nfs {
9746 return Network_Storage_Group_Nfs{Session: sess}
9747 }
9748
9749 func (r Network_Storage_Group_Nfs) Id(id int) Network_Storage_Group_Nfs {
9750 r.Options.Id = &id
9751 return r
9752 }
9753
9754 func (r Network_Storage_Group_Nfs) Mask(mask string) Network_Storage_Group_Nfs {
9755 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
9756 mask = fmt.Sprintf("mask[%s]", mask)
9757 }
9758
9759 r.Options.Mask = mask
9760 return r
9761 }
9762
9763 func (r Network_Storage_Group_Nfs) Filter(filter string) Network_Storage_Group_Nfs {
9764 r.Options.Filter = filter
9765 return r
9766 }
9767
9768 func (r Network_Storage_Group_Nfs) Limit(limit int) Network_Storage_Group_Nfs {
9769 r.Options.Limit = &limit
9770 return r
9771 }
9772
9773 func (r Network_Storage_Group_Nfs) Offset(offset int) Network_Storage_Group_Nfs {
9774 r.Options.Offset = &offset
9775 return r
9776 }
9777
9778 // Use this method to attach a SoftLayer_Network_Storage_Allowed_Host object to this group. This will automatically enable access from this host to any SoftLayer_Network_Storage volumes currently attached to this group.
9779 func (r Network_Storage_Group_Nfs) AddAllowedHost(allowedHost *datatypes.Network_Storage_Allowed_Host) (resp bool, err error) {
9780 params := []interface{}{
9781 allowedHost,
9782 }
9783 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Nfs", "addAllowedHost", params, &r.Options, &resp)
9784 return
9785 }
9786
9787 // Use this method to attach a SoftLayer_Network_Storage volume to this group. This will automatically enable access to this volume for any SoftLayer_Network_Storage_Allowed_Host objects currently attached to this group.
9788 func (r Network_Storage_Group_Nfs) AttachToVolume(volume *datatypes.Network_Storage) (resp bool, err error) {
9789 params := []interface{}{
9790 volume,
9791 }
9792 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Nfs", "attachToVolume", params, &r.Options, &resp)
9793 return
9794 }
9795
9796 // no documentation yet
9797 func (r Network_Storage_Group_Nfs) CreateObject(templateObject *datatypes.Network_Storage_Group) (resp bool, err error) {
9798 params := []interface{}{
9799 templateObject,
9800 }
9801 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Nfs", "createObject", params, &r.Options, &resp)
9802 return
9803 }
9804
9805 // no documentation yet
9806 func (r Network_Storage_Group_Nfs) DeleteObject() (resp bool, err error) {
9807 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Nfs", "deleteObject", nil, &r.Options, &resp)
9808 return
9809 }
9810
9811 // no documentation yet
9812 func (r Network_Storage_Group_Nfs) EditObject(templateObject *datatypes.Network_Storage_Group) (resp bool, err error) {
9813 params := []interface{}{
9814 templateObject,
9815 }
9816 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Nfs", "editObject", params, &r.Options, &resp)
9817 return
9818 }
9819
9820 // Retrieve The SoftLayer_Account which owns this group.
9821 func (r Network_Storage_Group_Nfs) GetAccount() (resp datatypes.Account, err error) {
9822 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Nfs", "getAccount", nil, &r.Options, &resp)
9823 return
9824 }
9825
9826 // Use this method to retrieve all network storage groups.
9827 func (r Network_Storage_Group_Nfs) GetAllObjects() (resp []datatypes.Network_Storage_Group, err error) {
9828 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Nfs", "getAllObjects", nil, &r.Options, &resp)
9829 return
9830 }
9831
9832 // Retrieve The allowed hosts list for this group.
9833 func (r Network_Storage_Group_Nfs) GetAllowedHosts() (resp []datatypes.Network_Storage_Allowed_Host, err error) {
9834 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Nfs", "getAllowedHosts", nil, &r.Options, &resp)
9835 return
9836 }
9837
9838 // Retrieve The network storage volumes this group is attached to.
9839 func (r Network_Storage_Group_Nfs) GetAttachedVolumes() (resp []datatypes.Network_Storage, err error) {
9840 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Nfs", "getAttachedVolumes", nil, &r.Options, &resp)
9841 return
9842 }
9843
9844 // Retrieve The type which defines this group.
9845 func (r Network_Storage_Group_Nfs) GetGroupType() (resp datatypes.Network_Storage_Group_Type, err error) {
9846 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Nfs", "getGroupType", nil, &r.Options, &resp)
9847 return
9848 }
9849
9850 // Use this method to retrieve network connection information for SoftLayer_Network_Storage_Allowed_Host objects within this group.
9851 func (r Network_Storage_Group_Nfs) GetNetworkConnectionDetails() (resp datatypes.Container_Network_Storage_NetworkConnectionInformation, err error) {
9852 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Nfs", "getNetworkConnectionDetails", nil, &r.Options, &resp)
9853 return
9854 }
9855
9856 // no documentation yet
9857 func (r Network_Storage_Group_Nfs) GetObject() (resp datatypes.Network_Storage_Group_Nfs, err error) {
9858 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Nfs", "getObject", nil, &r.Options, &resp)
9859 return
9860 }
9861
9862 // Retrieve The OS Type this group is configured for.
9863 func (r Network_Storage_Group_Nfs) GetOsType() (resp datatypes.Network_Storage_Iscsi_OS_Type, err error) {
9864 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Nfs", "getOsType", nil, &r.Options, &resp)
9865 return
9866 }
9867
9868 // Retrieve The network resource this group is created on.
9869 func (r Network_Storage_Group_Nfs) GetServiceResource() (resp datatypes.Network_Service_Resource, err error) {
9870 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Nfs", "getServiceResource", nil, &r.Options, &resp)
9871 return
9872 }
9873
9874 // Use this method to remove a SoftLayer_Network_Storage_Allowed_Host object from this group. This will automatically disable access from this host to any SoftLayer_Network_Storage volumes currently attached to this group.
9875 func (r Network_Storage_Group_Nfs) RemoveAllowedHost(allowedHost *datatypes.Network_Storage_Allowed_Host) (resp bool, err error) {
9876 params := []interface{}{
9877 allowedHost,
9878 }
9879 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Nfs", "removeAllowedHost", params, &r.Options, &resp)
9880 return
9881 }
9882
9883 // Use this method to remove a SoftLayer_Network_Storage volume from this group. This will automatically disable access to this volume for any SoftLayer_Network_Storage_Allowed_Host objects currently attached to this group.
9884 func (r Network_Storage_Group_Nfs) RemoveFromVolume(volume *datatypes.Network_Storage) (resp bool, err error) {
9885 params := []interface{}{
9886 volume,
9887 }
9888 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Nfs", "removeFromVolume", params, &r.Options, &resp)
9889 return
9890 }
9891
9892 // no documentation yet
9893 type Network_Storage_Group_Type struct {
9894 Session session.SLSession
9895 Options sl.Options
9896 }
9897
9898 // GetNetworkStorageGroupTypeService returns an instance of the Network_Storage_Group_Type SoftLayer service
9899 func GetNetworkStorageGroupTypeService(sess session.SLSession) Network_Storage_Group_Type {
9900 return Network_Storage_Group_Type{Session: sess}
9901 }
9902
9903 func (r Network_Storage_Group_Type) Id(id int) Network_Storage_Group_Type {
9904 r.Options.Id = &id
9905 return r
9906 }
9907
9908 func (r Network_Storage_Group_Type) Mask(mask string) Network_Storage_Group_Type {
9909 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
9910 mask = fmt.Sprintf("mask[%s]", mask)
9911 }
9912
9913 r.Options.Mask = mask
9914 return r
9915 }
9916
9917 func (r Network_Storage_Group_Type) Filter(filter string) Network_Storage_Group_Type {
9918 r.Options.Filter = filter
9919 return r
9920 }
9921
9922 func (r Network_Storage_Group_Type) Limit(limit int) Network_Storage_Group_Type {
9923 r.Options.Limit = &limit
9924 return r
9925 }
9926
9927 func (r Network_Storage_Group_Type) Offset(offset int) Network_Storage_Group_Type {
9928 r.Options.Offset = &offset
9929 return r
9930 }
9931
9932 // Use this method to retrieve all storage group types available.
9933 func (r Network_Storage_Group_Type) GetAllObjects() (resp []datatypes.Network_Storage_Group_Type, err error) {
9934 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Type", "getAllObjects", nil, &r.Options, &resp)
9935 return
9936 }
9937
9938 // no documentation yet
9939 func (r Network_Storage_Group_Type) GetObject() (resp datatypes.Network_Storage_Group_Type, err error) {
9940 err = r.Session.DoRequest("SoftLayer_Network_Storage_Group_Type", "getObject", nil, &r.Options, &resp)
9941 return
9942 }
9943
9944 // no documentation yet
9945 type Network_Storage_Hub_Cleversafe_Account struct {
9946 Session session.SLSession
9947 Options sl.Options
9948 }
9949
9950 // GetNetworkStorageHubCleversafeAccountService returns an instance of the Network_Storage_Hub_Cleversafe_Account SoftLayer service
9951 func GetNetworkStorageHubCleversafeAccountService(sess session.SLSession) Network_Storage_Hub_Cleversafe_Account {
9952 return Network_Storage_Hub_Cleversafe_Account{Session: sess}
9953 }
9954
9955 func (r Network_Storage_Hub_Cleversafe_Account) Id(id int) Network_Storage_Hub_Cleversafe_Account {
9956 r.Options.Id = &id
9957 return r
9958 }
9959
9960 func (r Network_Storage_Hub_Cleversafe_Account) Mask(mask string) Network_Storage_Hub_Cleversafe_Account {
9961 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
9962 mask = fmt.Sprintf("mask[%s]", mask)
9963 }
9964
9965 r.Options.Mask = mask
9966 return r
9967 }
9968
9969 func (r Network_Storage_Hub_Cleversafe_Account) Filter(filter string) Network_Storage_Hub_Cleversafe_Account {
9970 r.Options.Filter = filter
9971 return r
9972 }
9973
9974 func (r Network_Storage_Hub_Cleversafe_Account) Limit(limit int) Network_Storage_Hub_Cleversafe_Account {
9975 r.Options.Limit = &limit
9976 return r
9977 }
9978
9979 func (r Network_Storage_Hub_Cleversafe_Account) Offset(offset int) Network_Storage_Hub_Cleversafe_Account {
9980 r.Options.Offset = &offset
9981 return r
9982 }
9983
9984 // Create credentials for an IBM Cloud Object Storage Account
9985 func (r Network_Storage_Hub_Cleversafe_Account) CredentialCreate() (resp []datatypes.Network_Storage_Credential, err error) {
9986 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Cleversafe_Account", "credentialCreate", nil, &r.Options, &resp)
9987 return
9988 }
9989
9990 // Delete a credential
9991 func (r Network_Storage_Hub_Cleversafe_Account) CredentialDelete(credential *datatypes.Network_Storage_Credential) (resp bool, err error) {
9992 params := []interface{}{
9993 credential,
9994 }
9995 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Cleversafe_Account", "credentialDelete", params, &r.Options, &resp)
9996 return
9997 }
9998
9999 // Retrieve SoftLayer account to which an IBM Cloud Object Storage account belongs to.
10000 func (r Network_Storage_Hub_Cleversafe_Account) GetAccount() (resp datatypes.Account, err error) {
10001 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Cleversafe_Account", "getAccount", nil, &r.Options, &resp)
10002 return
10003 }
10004
10005 // no documentation yet
10006 func (r Network_Storage_Hub_Cleversafe_Account) GetAllObjects() (resp []datatypes.Network_Storage_Hub_Cleversafe_Account, err error) {
10007 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Cleversafe_Account", "getAllObjects", nil, &r.Options, &resp)
10008 return
10009 }
10010
10011 // Retrieve An associated parent billing item which is active. Includes billing items which are scheduled to be cancelled in the future.
10012 func (r Network_Storage_Hub_Cleversafe_Account) GetBillingItem() (resp datatypes.Billing_Item, err error) {
10013 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Cleversafe_Account", "getBillingItem", nil, &r.Options, &resp)
10014 return
10015 }
10016
10017 // Get buckets
10018 func (r Network_Storage_Hub_Cleversafe_Account) GetBuckets() (resp []datatypes.Container_Network_Storage_Hub_ObjectStorage_Bucket, err error) {
10019 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Cleversafe_Account", "getBuckets", nil, &r.Options, &resp)
10020 return
10021 }
10022
10023 // Retrieve An associated parent billing item which has been cancelled.
10024 func (r Network_Storage_Hub_Cleversafe_Account) GetCancelledBillingItem() (resp datatypes.Billing_Item, err error) {
10025 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Cleversafe_Account", "getCancelledBillingItem", nil, &r.Options, &resp)
10026 return
10027 }
10028
10029 // Returns the capacity usage for an IBM Cloud Object Storage account.
10030 func (r Network_Storage_Hub_Cleversafe_Account) GetCapacityUsage() (resp int, err error) {
10031 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Cleversafe_Account", "getCapacityUsage", nil, &r.Options, &resp)
10032 return
10033 }
10034
10035 // Makes a request to Cloud Object Storage metricsAPI service and when successful, returns an associative array with two elements:
10036 //
10037 // if 200:
10038 //
10039 // [ <response Status Code String>, <JSON from metricsAPI as outlined below as String> ]
10040 //
10041 // if not 200:
10042 //
10043 // [ <response Status Code String>, <response body as String> ]
10044 //
10045 // { "start": "<timeInMilliseconds>", "errors": [], "end": "<timeInMilliseconds>", "resource_type": "account", "warnings": [], "resources": [{"metrics" : [{"name": "retrieval", "value": "<number>"}]}] }
10046 //
10047 // Notes: 1) When no data is found for a particular triplet (resource_id, storage_location, storage_class) a JSON element is inserted to the warnings Array. 2) If all queried triplets find data, only the resources Array will be populated, errors and warnings will remain empty.
10048 func (r Network_Storage_Hub_Cleversafe_Account) GetCloudObjectStorageMetrics(start *string, end *string, storageLocation *string, storageClass *string, metrics *string) (resp []string, err error) {
10049 params := []interface{}{
10050 start,
10051 end,
10052 storageLocation,
10053 storageClass,
10054 metrics,
10055 }
10056 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Cleversafe_Account", "getCloudObjectStorageMetrics", params, &r.Options, &resp)
10057 return
10058 }
10059
10060 // Returns credential limits for this IBM Cloud Object Storage account.
10061 func (r Network_Storage_Hub_Cleversafe_Account) GetCredentialLimit() (resp int, err error) {
10062 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Cleversafe_Account", "getCredentialLimit", nil, &r.Options, &resp)
10063 return
10064 }
10065
10066 // Retrieve Credentials used for generating an AWS signature. Max of 2.
10067 func (r Network_Storage_Hub_Cleversafe_Account) GetCredentials() (resp []datatypes.Network_Storage_Credential, err error) {
10068 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Cleversafe_Account", "getCredentials", nil, &r.Options, &resp)
10069 return
10070 }
10071
10072 // Returns a collection of endpoint URLs available to this IBM Cloud Object Storage account.
10073 func (r Network_Storage_Hub_Cleversafe_Account) GetEndpoints(accountId *int) (resp []datatypes.Container_Network_Storage_Hub_ObjectStorage_Endpoint, err error) {
10074 params := []interface{}{
10075 accountId,
10076 }
10077 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Cleversafe_Account", "getEndpoints", params, &r.Options, &resp)
10078 return
10079 }
10080
10081 // Returns a collection of endpoint URLs available to this IBM Cloud Object Storage account.
10082 func (r Network_Storage_Hub_Cleversafe_Account) GetEndpointsWithRefetch(accountId *int, refetch *bool) (resp []datatypes.Container_Network_Storage_Hub_ObjectStorage_Endpoint, err error) {
10083 params := []interface{}{
10084 accountId,
10085 refetch,
10086 }
10087 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Cleversafe_Account", "getEndpointsWithRefetch", params, &r.Options, &resp)
10088 return
10089 }
10090
10091 // Retrieve [DEPRECATED] - Provides an interface to various metrics relating to the usage of an IBM Cloud Object Storage account.
10092 func (r Network_Storage_Hub_Cleversafe_Account) GetMetricTrackingObject() (resp datatypes.Metric_Tracking_Object, err error) {
10093 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Cleversafe_Account", "getMetricTrackingObject", nil, &r.Options, &resp)
10094 return
10095 }
10096
10097 // no documentation yet
10098 func (r Network_Storage_Hub_Cleversafe_Account) GetObject() (resp datatypes.Network_Storage_Hub_Cleversafe_Account, err error) {
10099 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Cleversafe_Account", "getObject", nil, &r.Options, &resp)
10100 return
10101 }
10102
10103 // Retrieve Unique identifier for an IBM Cloud Object Storage account.
10104 func (r Network_Storage_Hub_Cleversafe_Account) GetUuid() (resp string, err error) {
10105 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Cleversafe_Account", "getUuid", nil, &r.Options, &resp)
10106 return
10107 }
10108
10109 // no documentation yet
10110 type Network_Storage_Hub_Swift_Metrics struct {
10111 Session session.SLSession
10112 Options sl.Options
10113 }
10114
10115 // GetNetworkStorageHubSwiftMetricsService returns an instance of the Network_Storage_Hub_Swift_Metrics SoftLayer service
10116 func GetNetworkStorageHubSwiftMetricsService(sess session.SLSession) Network_Storage_Hub_Swift_Metrics {
10117 return Network_Storage_Hub_Swift_Metrics{Session: sess}
10118 }
10119
10120 func (r Network_Storage_Hub_Swift_Metrics) Id(id int) Network_Storage_Hub_Swift_Metrics {
10121 r.Options.Id = &id
10122 return r
10123 }
10124
10125 func (r Network_Storage_Hub_Swift_Metrics) Mask(mask string) Network_Storage_Hub_Swift_Metrics {
10126 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
10127 mask = fmt.Sprintf("mask[%s]", mask)
10128 }
10129
10130 r.Options.Mask = mask
10131 return r
10132 }
10133
10134 func (r Network_Storage_Hub_Swift_Metrics) Filter(filter string) Network_Storage_Hub_Swift_Metrics {
10135 r.Options.Filter = filter
10136 return r
10137 }
10138
10139 func (r Network_Storage_Hub_Swift_Metrics) Limit(limit int) Network_Storage_Hub_Swift_Metrics {
10140 r.Options.Limit = &limit
10141 return r
10142 }
10143
10144 func (r Network_Storage_Hub_Swift_Metrics) Offset(offset int) Network_Storage_Hub_Swift_Metrics {
10145 r.Options.Offset = &offset
10146 return r
10147 }
10148
10149 // no documentation yet
10150 func (r Network_Storage_Hub_Swift_Metrics) GetMetricData(startDateTime *datatypes.Time, endDateTime *datatypes.Time, metricKey *string, location *string) (resp []datatypes.Metric_Tracking_Object_Data, err error) {
10151 params := []interface{}{
10152 startDateTime,
10153 endDateTime,
10154 metricKey,
10155 location,
10156 }
10157 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Swift_Metrics", "getMetricData", params, &r.Options, &resp)
10158 return
10159 }
10160
10161 // no documentation yet
10162 func (r Network_Storage_Hub_Swift_Metrics) GetSummaryData(startDateTime *datatypes.Time, endDateTime *datatypes.Time, validTypes []datatypes.Container_Metric_Data_Type, summaryPeriod *int) (resp []datatypes.Metric_Tracking_Object_Data, err error) {
10163 params := []interface{}{
10164 startDateTime,
10165 endDateTime,
10166 validTypes,
10167 summaryPeriod,
10168 }
10169 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Swift_Metrics", "getSummaryData", params, &r.Options, &resp)
10170 return
10171 }
10172
10173 // no documentation yet
10174 type Network_Storage_Hub_Swift_Share struct {
10175 Session session.SLSession
10176 Options sl.Options
10177 }
10178
10179 // GetNetworkStorageHubSwiftShareService returns an instance of the Network_Storage_Hub_Swift_Share SoftLayer service
10180 func GetNetworkStorageHubSwiftShareService(sess session.SLSession) Network_Storage_Hub_Swift_Share {
10181 return Network_Storage_Hub_Swift_Share{Session: sess}
10182 }
10183
10184 func (r Network_Storage_Hub_Swift_Share) Id(id int) Network_Storage_Hub_Swift_Share {
10185 r.Options.Id = &id
10186 return r
10187 }
10188
10189 func (r Network_Storage_Hub_Swift_Share) Mask(mask string) Network_Storage_Hub_Swift_Share {
10190 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
10191 mask = fmt.Sprintf("mask[%s]", mask)
10192 }
10193
10194 r.Options.Mask = mask
10195 return r
10196 }
10197
10198 func (r Network_Storage_Hub_Swift_Share) Filter(filter string) Network_Storage_Hub_Swift_Share {
10199 r.Options.Filter = filter
10200 return r
10201 }
10202
10203 func (r Network_Storage_Hub_Swift_Share) Limit(limit int) Network_Storage_Hub_Swift_Share {
10204 r.Options.Limit = &limit
10205 return r
10206 }
10207
10208 func (r Network_Storage_Hub_Swift_Share) Offset(offset int) Network_Storage_Hub_Swift_Share {
10209 r.Options.Offset = &offset
10210 return r
10211 }
10212
10213 // This method returns a collection of container objects.
10214 func (r Network_Storage_Hub_Swift_Share) GetContainerList() (resp []datatypes.Container_Network_Storage_Hub_ObjectStorage_Folder, err error) {
10215 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Swift_Share", "getContainerList", nil, &r.Options, &resp)
10216 return
10217 }
10218
10219 // This method returns a file object given the file's full name.
10220 func (r Network_Storage_Hub_Swift_Share) GetFile(fileName *string, container *string) (resp datatypes.Container_Network_Storage_Hub_ObjectStorage_File, err error) {
10221 params := []interface{}{
10222 fileName,
10223 container,
10224 }
10225 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Swift_Share", "getFile", params, &r.Options, &resp)
10226 return
10227 }
10228
10229 // This method returns a collection of the file objects within a container and the given path.
10230 func (r Network_Storage_Hub_Swift_Share) GetFileList(container *string, path *string) (resp []datatypes.Container_Utility_File_Entity, err error) {
10231 params := []interface{}{
10232 container,
10233 path,
10234 }
10235 err = r.Session.DoRequest("SoftLayer_Network_Storage_Hub_Swift_Share", "getFileList", params, &r.Options, &resp)
10236 return
10237 }
10238
10239 // The iscsi data type provides access to additional information about an iscsi volume such as the snapshot capacity limit and replication partners.
10240 type Network_Storage_Iscsi struct {
10241 Session session.SLSession
10242 Options sl.Options
10243 }
10244
10245 // GetNetworkStorageIscsiService returns an instance of the Network_Storage_Iscsi SoftLayer service
10246 func GetNetworkStorageIscsiService(sess session.SLSession) Network_Storage_Iscsi {
10247 return Network_Storage_Iscsi{Session: sess}
10248 }
10249
10250 func (r Network_Storage_Iscsi) Id(id int) Network_Storage_Iscsi {
10251 r.Options.Id = &id
10252 return r
10253 }
10254
10255 func (r Network_Storage_Iscsi) Mask(mask string) Network_Storage_Iscsi {
10256 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
10257 mask = fmt.Sprintf("mask[%s]", mask)
10258 }
10259
10260 r.Options.Mask = mask
10261 return r
10262 }
10263
10264 func (r Network_Storage_Iscsi) Filter(filter string) Network_Storage_Iscsi {
10265 r.Options.Filter = filter
10266 return r
10267 }
10268
10269 func (r Network_Storage_Iscsi) Limit(limit int) Network_Storage_Iscsi {
10270 r.Options.Limit = &limit
10271 return r
10272 }
10273
10274 func (r Network_Storage_Iscsi) Offset(offset int) Network_Storage_Iscsi {
10275 r.Options.Offset = &offset
10276 return r
10277 }
10278
10279 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Hardware objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage volume.
10280 func (r Network_Storage_Iscsi) AllowAccessFromHardware(hardwareObjectTemplate *datatypes.Hardware) (resp bool, err error) {
10281 params := []interface{}{
10282 hardwareObjectTemplate,
10283 }
10284 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessFromHardware", params, &r.Options, &resp)
10285 return
10286 }
10287
10288 // no documentation yet
10289 func (r Network_Storage_Iscsi) AllowAccessFromHardwareList(hardwareObjectTemplates []datatypes.Hardware) (resp bool, err error) {
10290 params := []interface{}{
10291 hardwareObjectTemplates,
10292 }
10293 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessFromHardwareList", params, &r.Options, &resp)
10294 return
10295 }
10296
10297 // This method is used to modify the access control list for this Storage volume. The [[SoftLayer_Hardware|SoftLayer_Virtual_Guest|SoftLayer_Network_Subnet|SoftLayer_Network_Subnet_IpAddress]] objects which have been allowed access to this storage will be listed in the [[allowedHardware|allowedVirtualGuests|allowedSubnets|allowedIpAddresses]] property of this storage volume.
10298 func (r Network_Storage_Iscsi) AllowAccessFromHost(typeClassName *string, hostId *int) (resp datatypes.Network_Storage_Allowed_Host, err error) {
10299 params := []interface{}{
10300 typeClassName,
10301 hostId,
10302 }
10303 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessFromHost", params, &r.Options, &resp)
10304 return
10305 }
10306
10307 // This method is used to modify the access control list for this Storage volume. The [[SoftLayer_Hardware|SoftLayer_Virtual_Guest|SoftLayer_Network_Subnet|SoftLayer_Network_Subnet_IpAddress]] objects which have been allowed access to this storage volume will be listed in the [[allowedHardware|allowedVirtualGuests|allowedSubnets|allowedIpAddresses]] property of this storage volume.
10308 func (r Network_Storage_Iscsi) AllowAccessFromHostList(hostObjectTemplates []datatypes.Container_Network_Storage_Host) (resp []datatypes.Network_Storage_Allowed_Host, err error) {
10309 params := []interface{}{
10310 hostObjectTemplates,
10311 }
10312 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessFromHostList", params, &r.Options, &resp)
10313 return
10314 }
10315
10316 // no documentation yet
10317 func (r Network_Storage_Iscsi) AllowAccessFromIpAddress(ipAddressObjectTemplate *datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
10318 params := []interface{}{
10319 ipAddressObjectTemplate,
10320 }
10321 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessFromIpAddress", params, &r.Options, &resp)
10322 return
10323 }
10324
10325 // no documentation yet
10326 func (r Network_Storage_Iscsi) AllowAccessFromIpAddressList(ipAddressObjectTemplates []datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
10327 params := []interface{}{
10328 ipAddressObjectTemplates,
10329 }
10330 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessFromIpAddressList", params, &r.Options, &resp)
10331 return
10332 }
10333
10334 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Network_Subnet objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage volume.
10335 func (r Network_Storage_Iscsi) AllowAccessFromSubnet(subnetObjectTemplate *datatypes.Network_Subnet) (resp bool, err error) {
10336 params := []interface{}{
10337 subnetObjectTemplate,
10338 }
10339 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessFromSubnet", params, &r.Options, &resp)
10340 return
10341 }
10342
10343 // no documentation yet
10344 func (r Network_Storage_Iscsi) AllowAccessFromSubnetList(subnetObjectTemplates []datatypes.Network_Subnet) (resp bool, err error) {
10345 params := []interface{}{
10346 subnetObjectTemplates,
10347 }
10348 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessFromSubnetList", params, &r.Options, &resp)
10349 return
10350 }
10351
10352 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage volume.
10353 func (r Network_Storage_Iscsi) AllowAccessFromVirtualGuest(virtualGuestObjectTemplate *datatypes.Virtual_Guest) (resp bool, err error) {
10354 params := []interface{}{
10355 virtualGuestObjectTemplate,
10356 }
10357 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessFromVirtualGuest", params, &r.Options, &resp)
10358 return
10359 }
10360
10361 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage volume.
10362 func (r Network_Storage_Iscsi) AllowAccessFromVirtualGuestList(virtualGuestObjectTemplates []datatypes.Virtual_Guest) (resp bool, err error) {
10363 params := []interface{}{
10364 virtualGuestObjectTemplates,
10365 }
10366 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessFromVirtualGuestList", params, &r.Options, &resp)
10367 return
10368 }
10369
10370 // This method is used to modify the access control list for this Storage replicant volume. The SoftLayer_Hardware objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage replicant volume.
10371 func (r Network_Storage_Iscsi) AllowAccessToReplicantFromHardware(hardwareObjectTemplate *datatypes.Hardware) (resp bool, err error) {
10372 params := []interface{}{
10373 hardwareObjectTemplate,
10374 }
10375 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessToReplicantFromHardware", params, &r.Options, &resp)
10376 return
10377 }
10378
10379 // This method is used to modify the access control list for this Storage replica volume. The SoftLayer_Hardware objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage replica volume.
10380 func (r Network_Storage_Iscsi) AllowAccessToReplicantFromHardwareList(hardwareObjectTemplates []datatypes.Hardware) (resp bool, err error) {
10381 params := []interface{}{
10382 hardwareObjectTemplates,
10383 }
10384 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessToReplicantFromHardwareList", params, &r.Options, &resp)
10385 return
10386 }
10387
10388 // no documentation yet
10389 func (r Network_Storage_Iscsi) AllowAccessToReplicantFromIpAddress(ipAddressObjectTemplate *datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
10390 params := []interface{}{
10391 ipAddressObjectTemplate,
10392 }
10393 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessToReplicantFromIpAddress", params, &r.Options, &resp)
10394 return
10395 }
10396
10397 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Network_Subnet_IpAddress objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage volume.
10398 func (r Network_Storage_Iscsi) AllowAccessToReplicantFromIpAddressList(ipAddressObjectTemplates []datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
10399 params := []interface{}{
10400 ipAddressObjectTemplates,
10401 }
10402 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessToReplicantFromIpAddressList", params, &r.Options, &resp)
10403 return
10404 }
10405
10406 // This method is used to modify the access control list for this Storage replicant volume. The SoftLayer_Network_Subnet objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage replicant volume.
10407 func (r Network_Storage_Iscsi) AllowAccessToReplicantFromSubnet(subnetObjectTemplate *datatypes.Network_Subnet) (resp bool, err error) {
10408 params := []interface{}{
10409 subnetObjectTemplate,
10410 }
10411 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessToReplicantFromSubnet", params, &r.Options, &resp)
10412 return
10413 }
10414
10415 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Network_Subnet objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationSubnets property of this storage volume.
10416 func (r Network_Storage_Iscsi) AllowAccessToReplicantFromSubnetList(subnetObjectTemplates []datatypes.Network_Subnet) (resp bool, err error) {
10417 params := []interface{}{
10418 subnetObjectTemplates,
10419 }
10420 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessToReplicantFromSubnetList", params, &r.Options, &resp)
10421 return
10422 }
10423
10424 // This method is used to modify the access control list for this Storage replicant volume. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage replicant volume.
10425 func (r Network_Storage_Iscsi) AllowAccessToReplicantFromVirtualGuest(virtualGuestObjectTemplate *datatypes.Virtual_Guest) (resp bool, err error) {
10426 params := []interface{}{
10427 virtualGuestObjectTemplate,
10428 }
10429 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessToReplicantFromVirtualGuest", params, &r.Options, &resp)
10430 return
10431 }
10432
10433 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage volume.
10434 func (r Network_Storage_Iscsi) AllowAccessToReplicantFromVirtualGuestList(virtualGuestObjectTemplates []datatypes.Virtual_Guest) (resp bool, err error) {
10435 params := []interface{}{
10436 virtualGuestObjectTemplates,
10437 }
10438 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "allowAccessToReplicantFromVirtualGuestList", params, &r.Options, &resp)
10439 return
10440 }
10441
10442 // This method will assign an existing credential to the current volume. The credential must have been created using the 'addNewCredential' method. The volume type must support an additional credential.
10443 func (r Network_Storage_Iscsi) AssignCredential(username *string) (resp bool, err error) {
10444 params := []interface{}{
10445 username,
10446 }
10447 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "assignCredential", params, &r.Options, &resp)
10448 return
10449 }
10450
10451 // This method will set up a new credential for the remote storage volume. The storage volume must support an additional credential. Once created, the credential will be automatically assigned to the current volume. If there are no volumes assigned to the credential it will be automatically deleted.
10452 func (r Network_Storage_Iscsi) AssignNewCredential(typ *string) (resp datatypes.Network_Storage_Credential, err error) {
10453 params := []interface{}{
10454 typ,
10455 }
10456 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "assignNewCredential", params, &r.Options, &resp)
10457 return
10458 }
10459
10460 // The method will change the password for the given Storage/Virtual Server Storage account.
10461 func (r Network_Storage_Iscsi) ChangePassword(username *string, currentPassword *string, newPassword *string) (resp bool, err error) {
10462 params := []interface{}{
10463 username,
10464 currentPassword,
10465 newPassword,
10466 }
10467 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "changePassword", params, &r.Options, &resp)
10468 return
10469 }
10470
10471 // {{CloudLayerOnlyMethod}}
10472 //
10473 // collectBandwidth() Retrieve the bandwidth usage for the current billing cycle.
10474 func (r Network_Storage_Iscsi) CollectBandwidth(typ *string, startDate *datatypes.Time, endDate *datatypes.Time) (resp uint, err error) {
10475 params := []interface{}{
10476 typ,
10477 startDate,
10478 endDate,
10479 }
10480 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "collectBandwidth", params, &r.Options, &resp)
10481 return
10482 }
10483
10484 // {{CloudLayerOnlyMethod}}
10485 //
10486 // collectBytesUsed() retrieves the number of bytes capacity currently in use on a Storage account.
10487 func (r Network_Storage_Iscsi) CollectBytesUsed() (resp uint, err error) {
10488 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "collectBytesUsed", nil, &r.Options, &resp)
10489 return
10490 }
10491
10492 // no documentation yet
10493 func (r Network_Storage_Iscsi) ConvertCloneDependentToIndependent() (resp bool, err error) {
10494 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "convertCloneDependentToIndependent", nil, &r.Options, &resp)
10495 return
10496 }
10497
10498 // no documentation yet
10499 func (r Network_Storage_Iscsi) CreateFolder(folder *string) (resp bool, err error) {
10500 params := []interface{}{
10501 folder,
10502 }
10503 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "createFolder", params, &r.Options, &resp)
10504 return
10505 }
10506
10507 // The LUN ID only takes effect during the Host Authorization process. It is required to de-authorize all hosts before using this method.
10508 func (r Network_Storage_Iscsi) CreateOrUpdateLunId(lunId *int) (resp datatypes.Network_Storage_Property, err error) {
10509 params := []interface{}{
10510 lunId,
10511 }
10512 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "createOrUpdateLunId", params, &r.Options, &resp)
10513 return
10514 }
10515
10516 // no documentation yet
10517 func (r Network_Storage_Iscsi) CreateSnapshot(notes *string) (resp datatypes.Network_Storage, err error) {
10518 params := []interface{}{
10519 notes,
10520 }
10521 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "createSnapshot", params, &r.Options, &resp)
10522 return
10523 }
10524
10525 // {{CloudLayerOnlyMethod}} Delete all files within a Storage account. Depending on the type of Storage account, Deleting either deletes files permanently or sends files to your account's recycle bin.
10526 //
10527 // Currently, Virtual Server storage is the only type of Storage account that sends files to a recycle bin when deleted. When called against a Virtual Server storage account , this method also determines if the files are in the account's recycle bin. If the files exist in the recycle bin, then they are permanently deleted.
10528 //
10529 // Please note, files can not be restored once they are permanently deleted.
10530 func (r Network_Storage_Iscsi) DeleteAllFiles() (resp bool, err error) {
10531 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "deleteAllFiles", nil, &r.Options, &resp)
10532 return
10533 }
10534
10535 // {{CloudLayerOnlyMethod}} Delete an individual file within a Storage account. Depending on the type of Storage account, Deleting a file either deletes the file permanently or sends the file to your account's recycle bin.
10536 //
10537 // Currently, Virtual Server storage is the only type of Storage account that sends files to a recycle bin when deleted. When called against a Virtual Server storage account , this method also determines if the file is in the account's recycle bin. If the file exist in the recycle bin, then it is permanently deleted.
10538 //
10539 // Please note, a file can not be restored once it is permanently deleted.
10540 func (r Network_Storage_Iscsi) DeleteFile(fileId *string) (resp bool, err error) {
10541 params := []interface{}{
10542 fileId,
10543 }
10544 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "deleteFile", params, &r.Options, &resp)
10545 return
10546 }
10547
10548 // {{CloudLayerOnlyMethod}} Delete multiple files within a Storage account. Depending on the type of Storage account, Deleting either deletes files permanently or sends files to your account's recycle bin.
10549 //
10550 // Currently, Virtual Server storage is the only type of Storage account that sends files to a recycle bin when deleted. When called against a Virtual Server storage account , this method also determines if the files are in the account's recycle bin. If the files exist in the recycle bin, then they are permanently deleted.
10551 //
10552 // Please note, files can not be restored once they are permanently deleted.
10553 func (r Network_Storage_Iscsi) DeleteFiles(fileIds []string) (resp bool, err error) {
10554 params := []interface{}{
10555 fileIds,
10556 }
10557 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "deleteFiles", params, &r.Options, &resp)
10558 return
10559 }
10560
10561 // no documentation yet
10562 func (r Network_Storage_Iscsi) DeleteFolder(folder *string) (resp bool, err error) {
10563 params := []interface{}{
10564 folder,
10565 }
10566 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "deleteFolder", params, &r.Options, &resp)
10567 return
10568 }
10569
10570 // Delete a network storage volume. ”'This cannot be undone.”' At this time only network storage snapshots may be deleted with this method.
10571 //
10572 // ”deleteObject” returns Boolean ”true” on successful deletion or ”false” if it was unable to remove a volume;
10573 func (r Network_Storage_Iscsi) DeleteObject() (resp bool, err error) {
10574 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "deleteObject", nil, &r.Options, &resp)
10575 return
10576 }
10577
10578 // This method is not valid for Legacy iSCSI Storage Volumes.
10579 //
10580 // Disable scheduled snapshots of this storage volume. Scheduling options include 'INTERVAL', HOURLY, DAILY and WEEKLY schedules.
10581 func (r Network_Storage_Iscsi) DisableSnapshots(scheduleType *string) (resp bool, err error) {
10582 params := []interface{}{
10583 scheduleType,
10584 }
10585 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "disableSnapshots", params, &r.Options, &resp)
10586 return
10587 }
10588
10589 // If a volume (with replication) becomes inaccessible due to a disaster event, this method can be used to immediately failover to an available replica in another location. This method does not allow for fail back via the API. To fail back to the original volume after using this method, open a support ticket. To test failover, use [[SoftLayer_Network_Storage::failoverToReplicant]] instead.
10590 func (r Network_Storage_Iscsi) DisasterRecoveryFailoverToReplicant(replicantId *int) (resp bool, err error) {
10591 params := []interface{}{
10592 replicantId,
10593 }
10594 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "disasterRecoveryFailoverToReplicant", params, &r.Options, &resp)
10595 return
10596 }
10597
10598 // {{CloudLayerOnlyMethod}} Download a file from a Storage account. This method returns a file's details including the file's raw content.
10599 func (r Network_Storage_Iscsi) DownloadFile(fileId *string) (resp datatypes.Container_Utility_File_Entity, err error) {
10600 params := []interface{}{
10601 fileId,
10602 }
10603 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "downloadFile", params, &r.Options, &resp)
10604 return
10605 }
10606
10607 // This method will change the password of a credential created using the 'addNewCredential' method. If the credential exists on multiple storage volumes it will change for those volumes as well.
10608 func (r Network_Storage_Iscsi) EditCredential(username *string, newPassword *string) (resp bool, err error) {
10609 params := []interface{}{
10610 username,
10611 newPassword,
10612 }
10613 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "editCredential", params, &r.Options, &resp)
10614 return
10615 }
10616
10617 // The password and/or notes may be modified for the Storage service except evault passwords and notes.
10618 func (r Network_Storage_Iscsi) EditObject(templateObject *datatypes.Network_Storage) (resp bool, err error) {
10619 params := []interface{}{
10620 templateObject,
10621 }
10622 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "editObject", params, &r.Options, &resp)
10623 return
10624 }
10625
10626 // This method is not valid for Legacy iSCSI Storage Volumes.
10627 //
10628 // Enable scheduled snapshots of this storage volume. Scheduling options include HOURLY, DAILY and WEEKLY schedules. For HOURLY schedules, provide relevant data for $scheduleType, $retentionCount and $minute. For DAILY schedules, provide relevant data for $scheduleType, $retentionCount, $minute, and $hour. For WEEKLY schedules, provide relevant data for all parameters of this method.
10629 func (r Network_Storage_Iscsi) EnableSnapshots(scheduleType *string, retentionCount *int, minute *int, hour *int, dayOfWeek *string) (resp bool, err error) {
10630 params := []interface{}{
10631 scheduleType,
10632 retentionCount,
10633 minute,
10634 hour,
10635 dayOfWeek,
10636 }
10637 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "enableSnapshots", params, &r.Options, &resp)
10638 return
10639 }
10640
10641 // Failback from a volume replicant. In order to failback the volume must have already been failed over to a replicant.
10642 func (r Network_Storage_Iscsi) FailbackFromReplicant() (resp bool, err error) {
10643 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "failbackFromReplicant", nil, &r.Options, &resp)
10644 return
10645 }
10646
10647 // Failover to a volume replicant. During the time which the replicant is in use the local nas volume will not be available.
10648 func (r Network_Storage_Iscsi) FailoverToReplicant(replicantId *int) (resp bool, err error) {
10649 params := []interface{}{
10650 replicantId,
10651 }
10652 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "failoverToReplicant", params, &r.Options, &resp)
10653 return
10654 }
10655
10656 // Retrieve The account that a Storage services belongs to.
10657 func (r Network_Storage_Iscsi) GetAccount() (resp datatypes.Account, err error) {
10658 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAccount", nil, &r.Options, &resp)
10659 return
10660 }
10661
10662 // Retrieve Other usernames and passwords associated with a Storage volume.
10663 func (r Network_Storage_Iscsi) GetAccountPassword() (resp datatypes.Account_Password, err error) {
10664 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAccountPassword", nil, &r.Options, &resp)
10665 return
10666 }
10667
10668 // Retrieve The currently active transactions on a network storage volume.
10669 func (r Network_Storage_Iscsi) GetActiveTransactions() (resp []datatypes.Provisioning_Version1_Transaction, err error) {
10670 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getActiveTransactions", nil, &r.Options, &resp)
10671 return
10672 }
10673
10674 // {{CloudLayerOnlyMethod}} Retrieve details such as id, name, size, create date for all files in a Storage account's root directory. This does not download file content.
10675 func (r Network_Storage_Iscsi) GetAllFiles() (resp []datatypes.Container_Utility_File_Entity, err error) {
10676 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAllFiles", nil, &r.Options, &resp)
10677 return
10678 }
10679
10680 // {{CloudLayerOnlyMethod}} Retrieve details such as id, name, size, create date for all files matching the filter's criteria in a Storage account's root directory. This does not download file content.
10681 func (r Network_Storage_Iscsi) GetAllFilesByFilter(filter *datatypes.Container_Utility_File_Entity) (resp []datatypes.Container_Utility_File_Entity, err error) {
10682 params := []interface{}{
10683 filter,
10684 }
10685 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAllFilesByFilter", params, &r.Options, &resp)
10686 return
10687 }
10688
10689 // Retrieve
10690 func (r Network_Storage_Iscsi) GetAllowDisasterRecoveryFailback() (resp string, err error) {
10691 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAllowDisasterRecoveryFailback", nil, &r.Options, &resp)
10692 return
10693 }
10694
10695 // Retrieve
10696 func (r Network_Storage_Iscsi) GetAllowDisasterRecoveryFailover() (resp string, err error) {
10697 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAllowDisasterRecoveryFailover", nil, &r.Options, &resp)
10698 return
10699 }
10700
10701 // This method retrieves a list of SoftLayer_Hardware that can be authorized to this SoftLayer_Network_Storage.
10702 func (r Network_Storage_Iscsi) GetAllowableHardware(filterHostname *string) (resp []datatypes.Hardware, err error) {
10703 params := []interface{}{
10704 filterHostname,
10705 }
10706 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAllowableHardware", params, &r.Options, &resp)
10707 return
10708 }
10709
10710 // This method retrieves a list of SoftLayer_Network_Subnet_IpAddress that can be authorized to this SoftLayer_Network_Storage.
10711 func (r Network_Storage_Iscsi) GetAllowableIpAddresses(subnetId *int, filterIpAddress *string) (resp []datatypes.Network_Subnet_IpAddress, err error) {
10712 params := []interface{}{
10713 subnetId,
10714 filterIpAddress,
10715 }
10716 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAllowableIpAddresses", params, &r.Options, &resp)
10717 return
10718 }
10719
10720 // This method retrieves a list of SoftLayer_Network_Subnet that can be authorized to this SoftLayer_Network_Storage.
10721 func (r Network_Storage_Iscsi) GetAllowableSubnets(filterNetworkIdentifier *string) (resp []datatypes.Network_Subnet, err error) {
10722 params := []interface{}{
10723 filterNetworkIdentifier,
10724 }
10725 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAllowableSubnets", params, &r.Options, &resp)
10726 return
10727 }
10728
10729 // This method retrieves a list of SoftLayer_Virtual_Guest that can be authorized to this SoftLayer_Network_Storage.
10730 func (r Network_Storage_Iscsi) GetAllowableVirtualGuests(filterHostname *string) (resp []datatypes.Virtual_Guest, err error) {
10731 params := []interface{}{
10732 filterHostname,
10733 }
10734 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAllowableVirtualGuests", params, &r.Options, &resp)
10735 return
10736 }
10737
10738 // Retrieve The SoftLayer_Hardware objects which are allowed access to this storage volume.
10739 func (r Network_Storage_Iscsi) GetAllowedHardware() (resp []datatypes.Hardware, err error) {
10740 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAllowedHardware", nil, &r.Options, &resp)
10741 return
10742 }
10743
10744 // Retrieves the total number of allowed hosts limit per volume.
10745 func (r Network_Storage_Iscsi) GetAllowedHostsLimit() (resp int, err error) {
10746 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAllowedHostsLimit", nil, &r.Options, &resp)
10747 return
10748 }
10749
10750 // Retrieve The SoftLayer_Network_Subnet_IpAddress objects which are allowed access to this storage volume.
10751 func (r Network_Storage_Iscsi) GetAllowedIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) {
10752 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAllowedIpAddresses", nil, &r.Options, &resp)
10753 return
10754 }
10755
10756 // Retrieve The SoftLayer_Hardware objects which are allowed access to this storage volume's Replicant.
10757 func (r Network_Storage_Iscsi) GetAllowedReplicationHardware() (resp []datatypes.Hardware, err error) {
10758 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAllowedReplicationHardware", nil, &r.Options, &resp)
10759 return
10760 }
10761
10762 // Retrieve The SoftLayer_Network_Subnet_IpAddress objects which are allowed access to this storage volume's Replicant.
10763 func (r Network_Storage_Iscsi) GetAllowedReplicationIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) {
10764 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAllowedReplicationIpAddresses", nil, &r.Options, &resp)
10765 return
10766 }
10767
10768 // Retrieve The SoftLayer_Network_Subnet objects which are allowed access to this storage volume's Replicant.
10769 func (r Network_Storage_Iscsi) GetAllowedReplicationSubnets() (resp []datatypes.Network_Subnet, err error) {
10770 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAllowedReplicationSubnets", nil, &r.Options, &resp)
10771 return
10772 }
10773
10774 // Retrieve The SoftLayer_Hardware objects which are allowed access to this storage volume's Replicant.
10775 func (r Network_Storage_Iscsi) GetAllowedReplicationVirtualGuests() (resp []datatypes.Virtual_Guest, err error) {
10776 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAllowedReplicationVirtualGuests", nil, &r.Options, &resp)
10777 return
10778 }
10779
10780 // Retrieve The SoftLayer_Network_Subnet objects which are allowed access to this storage volume.
10781 func (r Network_Storage_Iscsi) GetAllowedSubnets() (resp []datatypes.Network_Subnet, err error) {
10782 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAllowedSubnets", nil, &r.Options, &resp)
10783 return
10784 }
10785
10786 // Retrieve The SoftLayer_Virtual_Guest objects which are allowed access to this storage volume.
10787 func (r Network_Storage_Iscsi) GetAllowedVirtualGuests() (resp []datatypes.Virtual_Guest, err error) {
10788 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getAllowedVirtualGuests", nil, &r.Options, &resp)
10789 return
10790 }
10791
10792 // Retrieve The current billing item for a Storage volume.
10793 func (r Network_Storage_Iscsi) GetBillingItem() (resp datatypes.Billing_Item, err error) {
10794 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getBillingItem", nil, &r.Options, &resp)
10795 return
10796 }
10797
10798 // Retrieve
10799 func (r Network_Storage_Iscsi) GetBillingItemCategory() (resp datatypes.Product_Item_Category, err error) {
10800 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getBillingItemCategory", nil, &r.Options, &resp)
10801 return
10802 }
10803
10804 // Retrieve network storage accounts by username and storage account type. Use this method if you wish to retrieve a storage record by username rather than by id. The ”type” parameter must correspond to one of the available ”nasType” values in the SoftLayer_Network_Storage data type.
10805 func (r Network_Storage_Iscsi) GetByUsername(username *string, typ *string) (resp []datatypes.Network_Storage, err error) {
10806 params := []interface{}{
10807 username,
10808 typ,
10809 }
10810 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getByUsername", params, &r.Options, &resp)
10811 return
10812 }
10813
10814 // Retrieve The amount of space used by the volume, in bytes.
10815 func (r Network_Storage_Iscsi) GetBytesUsed() (resp string, err error) {
10816 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getBytesUsed", nil, &r.Options, &resp)
10817 return
10818 }
10819
10820 // no documentation yet
10821 func (r Network_Storage_Iscsi) GetCdnUrls() (resp []datatypes.Container_Network_Storage_Hub_ObjectStorage_ContentDeliveryUrl, err error) {
10822 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getCdnUrls", nil, &r.Options, &resp)
10823 return
10824 }
10825
10826 // no documentation yet
10827 func (r Network_Storage_Iscsi) GetClusterResource() (resp datatypes.Network_Service_Resource, err error) {
10828 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getClusterResource", nil, &r.Options, &resp)
10829 return
10830 }
10831
10832 // Retrieve The schedule id which was executed to create a snapshot.
10833 func (r Network_Storage_Iscsi) GetCreationScheduleId() (resp string, err error) {
10834 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getCreationScheduleId", nil, &r.Options, &resp)
10835 return
10836 }
10837
10838 // Retrieve
10839 func (r Network_Storage_Iscsi) GetCredentials() (resp []datatypes.Network_Storage_Credential, err error) {
10840 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getCredentials", nil, &r.Options, &resp)
10841 return
10842 }
10843
10844 // Retrieve The Daily Schedule which is associated with this network storage volume.
10845 func (r Network_Storage_Iscsi) GetDailySchedule() (resp datatypes.Network_Storage_Schedule, err error) {
10846 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getDailySchedule", nil, &r.Options, &resp)
10847 return
10848 }
10849
10850 // Retrieve Whether or not a network storage volume is a dependent duplicate.
10851 func (r Network_Storage_Iscsi) GetDependentDuplicate() (resp string, err error) {
10852 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getDependentDuplicate", nil, &r.Options, &resp)
10853 return
10854 }
10855
10856 // Retrieve The network storage volumes configured to be dependent duplicates of a volume.
10857 func (r Network_Storage_Iscsi) GetDependentDuplicates() (resp []datatypes.Network_Storage, err error) {
10858 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getDependentDuplicates", nil, &r.Options, &resp)
10859 return
10860 }
10861
10862 // This method is used to check, if for the given classic file block storage volume, a transaction performing dependent to independent duplicate conversion is active. If yes, then this returns the current percentage of its progress along with its start time as [SoftLayer_Container_Network_Storage_DuplicateConversionStatusInformation] object with its name, percentage and transaction start timestamp.
10863 func (r Network_Storage_Iscsi) GetDuplicateConversionStatus() (resp datatypes.Container_Network_Storage_DuplicateConversionStatusInformation, err error) {
10864 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getDuplicateConversionStatus", nil, &r.Options, &resp)
10865 return
10866 }
10867
10868 // Retrieve The events which have taken place on a network storage volume.
10869 func (r Network_Storage_Iscsi) GetEvents() (resp []datatypes.Network_Storage_Event, err error) {
10870 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getEvents", nil, &r.Options, &resp)
10871 return
10872 }
10873
10874 // Retrieve Determines whether the volume is allowed to failback
10875 func (r Network_Storage_Iscsi) GetFailbackNotAllowed() (resp string, err error) {
10876 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getFailbackNotAllowed", nil, &r.Options, &resp)
10877 return
10878 }
10879
10880 // Retrieve Determines whether the volume is allowed to failover
10881 func (r Network_Storage_Iscsi) GetFailoverNotAllowed() (resp string, err error) {
10882 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getFailoverNotAllowed", nil, &r.Options, &resp)
10883 return
10884 }
10885
10886 func (r Network_Storage_Iscsi) GetFileBlockEncryptedLocations() (resp []datatypes.Location, err error) {
10887 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getFileBlockEncryptedLocations", nil, &r.Options, &resp)
10888 return
10889 }
10890
10891 // {{CloudLayerOnlyMethod}} Retrieve details such as id, name, size, create date of a file within a Storage account. This does not download file content.
10892 func (r Network_Storage_Iscsi) GetFileByIdentifier(identifier *string) (resp datatypes.Container_Utility_File_Entity, err error) {
10893 params := []interface{}{
10894 identifier,
10895 }
10896 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getFileByIdentifier", params, &r.Options, &resp)
10897 return
10898 }
10899
10900 // {{CloudLayerOnlyMethod}} Retrieve the file number of files in a Virtual Server Storage account's root directory. This does not include the files stored in the recycle bin.
10901 func (r Network_Storage_Iscsi) GetFileCount() (resp int, err error) {
10902 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getFileCount", nil, &r.Options, &resp)
10903 return
10904 }
10905
10906 // no documentation yet
10907 func (r Network_Storage_Iscsi) GetFileList(folder *string, path *string) (resp []datatypes.Container_Utility_File_Entity, err error) {
10908 params := []interface{}{
10909 folder,
10910 path,
10911 }
10912 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getFileList", params, &r.Options, &resp)
10913 return
10914 }
10915
10916 // Retrieve Retrieves the NFS Network Mount Address Name for a given File Storage Volume.
10917 func (r Network_Storage_Iscsi) GetFileNetworkMountAddress() (resp string, err error) {
10918 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getFileNetworkMountAddress", nil, &r.Options, &resp)
10919 return
10920 }
10921
10922 // {{CloudLayerOnlyMethod}} Retrieve the number of files pending deletion in a Storage account's recycle bin. Files in an account's recycle bin may either be restored to the account's root directory or permanently deleted.
10923 func (r Network_Storage_Iscsi) GetFilePendingDeleteCount() (resp int, err error) {
10924 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getFilePendingDeleteCount", nil, &r.Options, &resp)
10925 return
10926 }
10927
10928 // {{CloudLayerOnlyMethod}} Retrieve a list of files that are pending deletion in a Storage account's recycle bin. Files in an account's recycle bin may either be restored to the account's root directory or permanently deleted. This method does not download file content.
10929 func (r Network_Storage_Iscsi) GetFilesPendingDelete() (resp []datatypes.Container_Utility_File_Entity, err error) {
10930 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getFilesPendingDelete", nil, &r.Options, &resp)
10931 return
10932 }
10933
10934 // Retrieve
10935 func (r Network_Storage_Iscsi) GetFixReplicationCurrentStatus() (resp string, err error) {
10936 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getFixReplicationCurrentStatus", nil, &r.Options, &resp)
10937 return
10938 }
10939
10940 // no documentation yet
10941 func (r Network_Storage_Iscsi) GetFolderList() (resp []datatypes.Container_Network_Storage_Hub_ObjectStorage_Folder, err error) {
10942 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getFolderList", nil, &r.Options, &resp)
10943 return
10944 }
10945
10946 // Retrieve When applicable, the hardware associated with a Storage service.
10947 func (r Network_Storage_Iscsi) GetHardware() (resp datatypes.Hardware, err error) {
10948 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getHardware", nil, &r.Options, &resp)
10949 return
10950 }
10951
10952 // Retrieve
10953 func (r Network_Storage_Iscsi) GetHasEncryptionAtRest() (resp bool, err error) {
10954 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getHasEncryptionAtRest", nil, &r.Options, &resp)
10955 return
10956 }
10957
10958 // Retrieve The Hourly Schedule which is associated with this network storage volume.
10959 func (r Network_Storage_Iscsi) GetHourlySchedule() (resp datatypes.Network_Storage_Schedule, err error) {
10960 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getHourlySchedule", nil, &r.Options, &resp)
10961 return
10962 }
10963
10964 // Retrieve The Interval Schedule which is associated with this network storage volume.
10965 func (r Network_Storage_Iscsi) GetIntervalSchedule() (resp datatypes.Network_Storage_Schedule, err error) {
10966 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getIntervalSchedule", nil, &r.Options, &resp)
10967 return
10968 }
10969
10970 // Retrieve The maximum number of IOPs selected for this volume.
10971 func (r Network_Storage_Iscsi) GetIops() (resp string, err error) {
10972 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getIops", nil, &r.Options, &resp)
10973 return
10974 }
10975
10976 // Retrieve Determines whether network storage volume has an active convert dependent clone to Independent transaction.
10977 func (r Network_Storage_Iscsi) GetIsConvertToIndependentTransactionInProgress() (resp bool, err error) {
10978 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getIsConvertToIndependentTransactionInProgress", nil, &r.Options, &resp)
10979 return
10980 }
10981
10982 // Retrieve Determines whether dependent volume provision is completed on background.
10983 func (r Network_Storage_Iscsi) GetIsDependentDuplicateProvisionCompleted() (resp bool, err error) {
10984 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getIsDependentDuplicateProvisionCompleted", nil, &r.Options, &resp)
10985 return
10986 }
10987
10988 // Retrieve
10989 func (r Network_Storage_Iscsi) GetIsInDedicatedServiceResource() (resp bool, err error) {
10990 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getIsInDedicatedServiceResource", nil, &r.Options, &resp)
10991 return
10992 }
10993
10994 // Retrieve
10995 func (r Network_Storage_Iscsi) GetIsMagneticStorage() (resp string, err error) {
10996 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getIsMagneticStorage", nil, &r.Options, &resp)
10997 return
10998 }
10999
11000 // Retrieve Determines whether network storage volume has an active provision transaction.
11001 func (r Network_Storage_Iscsi) GetIsProvisionInProgress() (resp bool, err error) {
11002 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getIsProvisionInProgress", nil, &r.Options, &resp)
11003 return
11004 }
11005
11006 // Retrieve Determines whether a volume is ready to order snapshot space, or, if snapshot space is already available, to assign a snapshot schedule, or to take a manual snapshot.
11007 func (r Network_Storage_Iscsi) GetIsReadyForSnapshot() (resp bool, err error) {
11008 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getIsReadyForSnapshot", nil, &r.Options, &resp)
11009 return
11010 }
11011
11012 // Retrieve Determines whether a volume is ready to have Hosts authorized to access it. This does not indicate whether another operation may be blocking, please refer to this volume's volumeStatus property for details.
11013 func (r Network_Storage_Iscsi) GetIsReadyToMount() (resp bool, err error) {
11014 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getIsReadyToMount", nil, &r.Options, &resp)
11015 return
11016 }
11017
11018 // Retrieve Relationship between a container volume and iSCSI LUNs.
11019 func (r Network_Storage_Iscsi) GetIscsiLuns() (resp []datatypes.Network_Storage, err error) {
11020 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getIscsiLuns", nil, &r.Options, &resp)
11021 return
11022 }
11023
11024 // Retrieve The network storage volumes configured to be replicants of this volume.
11025 func (r Network_Storage_Iscsi) GetIscsiReplicatingVolume() (resp datatypes.Network_Storage, err error) {
11026 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getIscsiReplicatingVolume", nil, &r.Options, &resp)
11027 return
11028 }
11029
11030 // Retrieve Returns the target IP addresses of an iSCSI volume.
11031 func (r Network_Storage_Iscsi) GetIscsiTargetIpAddresses() (resp []string, err error) {
11032 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getIscsiTargetIpAddresses", nil, &r.Options, &resp)
11033 return
11034 }
11035
11036 // Retrieve The ID of the LUN volume.
11037 func (r Network_Storage_Iscsi) GetLunId() (resp string, err error) {
11038 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getLunId", nil, &r.Options, &resp)
11039 return
11040 }
11041
11042 // Retrieve The manually-created snapshots associated with this SoftLayer_Network_Storage volume. Does not support pagination by result limit and offset.
11043 func (r Network_Storage_Iscsi) GetManualSnapshots() (resp []datatypes.Network_Storage, err error) {
11044 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getManualSnapshots", nil, &r.Options, &resp)
11045 return
11046 }
11047
11048 // no documentation yet
11049 func (r Network_Storage_Iscsi) GetMaximumExpansionSize() (resp int, err error) {
11050 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getMaximumExpansionSize", nil, &r.Options, &resp)
11051 return
11052 }
11053
11054 // Retrieve [DEPRECATED] - A network storage volume's metric tracking object. This object records all periodic polled data available to this volume.
11055 func (r Network_Storage_Iscsi) GetMetricTrackingObject() (resp datatypes.Metric_Tracking_Object, err error) {
11056 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getMetricTrackingObject", nil, &r.Options, &resp)
11057 return
11058 }
11059
11060 // Retrieve Retrieves the NFS Network Mount Path for a given File Storage Volume.
11061 func (r Network_Storage_Iscsi) GetMountPath() (resp string, err error) {
11062 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getMountPath", nil, &r.Options, &resp)
11063 return
11064 }
11065
11066 // Retrieve Whether or not a network storage volume may be mounted.
11067 func (r Network_Storage_Iscsi) GetMountableFlag() (resp string, err error) {
11068 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getMountableFlag", nil, &r.Options, &resp)
11069 return
11070 }
11071
11072 // Retrieve The current status of split or move operation as a part of volume duplication.
11073 func (r Network_Storage_Iscsi) GetMoveAndSplitStatus() (resp string, err error) {
11074 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getMoveAndSplitStatus", nil, &r.Options, &resp)
11075 return
11076 }
11077
11078 // no documentation yet
11079 func (r Network_Storage_Iscsi) GetNetworkConnectionDetails() (resp datatypes.Container_Network_Storage_NetworkConnectionInformation, err error) {
11080 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getNetworkConnectionDetails", nil, &r.Options, &resp)
11081 return
11082 }
11083
11084 // no documentation yet
11085 func (r Network_Storage_Iscsi) GetNetworkMountAddress() (resp string, err error) {
11086 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getNetworkMountAddress", nil, &r.Options, &resp)
11087 return
11088 }
11089
11090 // no documentation yet
11091 func (r Network_Storage_Iscsi) GetNetworkMountPath() (resp string, err error) {
11092 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getNetworkMountPath", nil, &r.Options, &resp)
11093 return
11094 }
11095
11096 // Retrieve The subscribers that will be notified for usage amount warnings and overages.
11097 func (r Network_Storage_Iscsi) GetNotificationSubscribers() (resp []datatypes.Notification_User_Subscriber, err error) {
11098 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getNotificationSubscribers", nil, &r.Options, &resp)
11099 return
11100 }
11101
11102 // no documentation yet
11103 func (r Network_Storage_Iscsi) GetObject() (resp datatypes.Network_Storage_Iscsi, err error) {
11104 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getObject", nil, &r.Options, &resp)
11105 return
11106 }
11107
11108 // no documentation yet
11109 func (r Network_Storage_Iscsi) GetObjectStorageConnectionInformation() (resp []datatypes.Container_Network_Service_Resource_ObjectStorage_ConnectionInformation, err error) {
11110 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getObjectStorageConnectionInformation", nil, &r.Options, &resp)
11111 return
11112 }
11113
11114 // Retrieve network storage accounts by SoftLayer_Network_Storage_Credential object. Use this method if you wish to retrieve a storage record by a credential rather than by id.
11115 func (r Network_Storage_Iscsi) GetObjectsByCredential(credentialObject *datatypes.Network_Storage_Credential) (resp []datatypes.Network_Storage, err error) {
11116 params := []interface{}{
11117 credentialObject,
11118 }
11119 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getObjectsByCredential", params, &r.Options, &resp)
11120 return
11121 }
11122
11123 // Retrieve The name of the snapshot that this volume was duplicated from.
11124 func (r Network_Storage_Iscsi) GetOriginalSnapshotName() (resp string, err error) {
11125 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getOriginalSnapshotName", nil, &r.Options, &resp)
11126 return
11127 }
11128
11129 // Retrieve Volume id of the origin volume from which this volume is been cloned.
11130 func (r Network_Storage_Iscsi) GetOriginalVolumeId() (resp int, err error) {
11131 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getOriginalVolumeId", nil, &r.Options, &resp)
11132 return
11133 }
11134
11135 // Retrieve The name of the volume that this volume was duplicated from.
11136 func (r Network_Storage_Iscsi) GetOriginalVolumeName() (resp string, err error) {
11137 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getOriginalVolumeName", nil, &r.Options, &resp)
11138 return
11139 }
11140
11141 // Retrieve The size (in GB) of the volume or LUN before any size expansion, or of the volume (before any possible size expansion) from which the duplicate volume or LUN was created.
11142 func (r Network_Storage_Iscsi) GetOriginalVolumeSize() (resp string, err error) {
11143 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getOriginalVolumeSize", nil, &r.Options, &resp)
11144 return
11145 }
11146
11147 // Retrieve A volume's configured SoftLayer_Network_Storage_Iscsi_OS_Type.
11148 func (r Network_Storage_Iscsi) GetOsType() (resp datatypes.Network_Storage_Iscsi_OS_Type, err error) {
11149 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getOsType", nil, &r.Options, &resp)
11150 return
11151 }
11152
11153 // Retrieve A volume's configured SoftLayer_Network_Storage_Iscsi_OS_Type ID.
11154 func (r Network_Storage_Iscsi) GetOsTypeId() (resp string, err error) {
11155 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getOsTypeId", nil, &r.Options, &resp)
11156 return
11157 }
11158
11159 // Retrieve The volumes or snapshots partnered with a network storage volume in a parental role.
11160 func (r Network_Storage_Iscsi) GetParentPartnerships() (resp []datatypes.Network_Storage_Partnership, err error) {
11161 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getParentPartnerships", nil, &r.Options, &resp)
11162 return
11163 }
11164
11165 // Retrieve The parent volume of a volume in a complex storage relationship.
11166 func (r Network_Storage_Iscsi) GetParentVolume() (resp datatypes.Network_Storage, err error) {
11167 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getParentVolume", nil, &r.Options, &resp)
11168 return
11169 }
11170
11171 // Retrieve The volumes or snapshots partnered with a network storage volume.
11172 func (r Network_Storage_Iscsi) GetPartnerships() (resp []datatypes.Network_Storage_Partnership, err error) {
11173 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getPartnerships", nil, &r.Options, &resp)
11174 return
11175 }
11176
11177 // Retrieve All permissions group(s) this volume is in.
11178 func (r Network_Storage_Iscsi) GetPermissionsGroups() (resp []datatypes.Network_Storage_Group, err error) {
11179 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getPermissionsGroups", nil, &r.Options, &resp)
11180 return
11181 }
11182
11183 // Retrieve The properties used to provide additional details about a network storage volume.
11184 func (r Network_Storage_Iscsi) GetProperties() (resp []datatypes.Network_Storage_Property, err error) {
11185 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getProperties", nil, &r.Options, &resp)
11186 return
11187 }
11188
11189 // Retrieve The number of IOPs provisioned for this volume.
11190 func (r Network_Storage_Iscsi) GetProvisionedIops() (resp string, err error) {
11191 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getProvisionedIops", nil, &r.Options, &resp)
11192 return
11193 }
11194
11195 // {{CloudLayerOnlyMethod}} Retrieve the details of a file that is pending deletion in a Storage account's a recycle bin.
11196 func (r Network_Storage_Iscsi) GetRecycleBinFileByIdentifier(fileId *string) (resp datatypes.Container_Utility_File_Entity, err error) {
11197 params := []interface{}{
11198 fileId,
11199 }
11200 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getRecycleBinFileByIdentifier", params, &r.Options, &resp)
11201 return
11202 }
11203
11204 // Retrieves the remaining number of allowed hosts per volume.
11205 func (r Network_Storage_Iscsi) GetRemainingAllowedHosts() (resp int, err error) {
11206 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getRemainingAllowedHosts", nil, &r.Options, &resp)
11207 return
11208 }
11209
11210 // Retrieves the remaining number of allowed hosts for a volume's replicant.
11211 func (r Network_Storage_Iscsi) GetRemainingAllowedHostsForReplicant() (resp int, err error) {
11212 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getRemainingAllowedHostsForReplicant", nil, &r.Options, &resp)
11213 return
11214 }
11215
11216 // Retrieve The iSCSI LUN volumes being replicated by this network storage volume.
11217 func (r Network_Storage_Iscsi) GetReplicatingLuns() (resp []datatypes.Network_Storage, err error) {
11218 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getReplicatingLuns", nil, &r.Options, &resp)
11219 return
11220 }
11221
11222 // Retrieve The network storage volume being replicated by a volume.
11223 func (r Network_Storage_Iscsi) GetReplicatingVolume() (resp datatypes.Network_Storage, err error) {
11224 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getReplicatingVolume", nil, &r.Options, &resp)
11225 return
11226 }
11227
11228 // Retrieve The volume replication events.
11229 func (r Network_Storage_Iscsi) GetReplicationEvents() (resp []datatypes.Network_Storage_Event, err error) {
11230 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getReplicationEvents", nil, &r.Options, &resp)
11231 return
11232 }
11233
11234 // Retrieve The network storage volumes configured to be replicants of a volume.
11235 func (r Network_Storage_Iscsi) GetReplicationPartners() (resp []datatypes.Network_Storage, err error) {
11236 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getReplicationPartners", nil, &r.Options, &resp)
11237 return
11238 }
11239
11240 // Retrieve The Replication Schedule associated with a network storage volume.
11241 func (r Network_Storage_Iscsi) GetReplicationSchedule() (resp datatypes.Network_Storage_Schedule, err error) {
11242 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getReplicationSchedule", nil, &r.Options, &resp)
11243 return
11244 }
11245
11246 // Retrieve The current replication status of a network storage volume. Indicates Failover or Failback status.
11247 func (r Network_Storage_Iscsi) GetReplicationStatus() (resp string, err error) {
11248 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getReplicationStatus", nil, &r.Options, &resp)
11249 return
11250 }
11251
11252 // no documentation yet
11253 func (r Network_Storage_Iscsi) GetReplicationTimestamp() (resp string, err error) {
11254 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getReplicationTimestamp", nil, &r.Options, &resp)
11255 return
11256 }
11257
11258 // Retrieve The schedules which are associated with a network storage volume.
11259 func (r Network_Storage_Iscsi) GetSchedules() (resp []datatypes.Network_Storage_Schedule, err error) {
11260 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getSchedules", nil, &r.Options, &resp)
11261 return
11262 }
11263
11264 // Retrieve The network resource a Storage service is connected to.
11265 func (r Network_Storage_Iscsi) GetServiceResource() (resp datatypes.Network_Service_Resource, err error) {
11266 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getServiceResource", nil, &r.Options, &resp)
11267 return
11268 }
11269
11270 // Retrieve The IP address of a Storage resource.
11271 func (r Network_Storage_Iscsi) GetServiceResourceBackendIpAddress() (resp string, err error) {
11272 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getServiceResourceBackendIpAddress", nil, &r.Options, &resp)
11273 return
11274 }
11275
11276 // Retrieve The name of a Storage's network resource.
11277 func (r Network_Storage_Iscsi) GetServiceResourceName() (resp string, err error) {
11278 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getServiceResourceName", nil, &r.Options, &resp)
11279 return
11280 }
11281
11282 // Retrieve A volume's configured snapshot space size.
11283 func (r Network_Storage_Iscsi) GetSnapshotCapacityGb() (resp string, err error) {
11284 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getSnapshotCapacityGb", nil, &r.Options, &resp)
11285 return
11286 }
11287
11288 // Retrieve The creation timestamp of the snapshot on the storage platform.
11289 func (r Network_Storage_Iscsi) GetSnapshotCreationTimestamp() (resp string, err error) {
11290 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getSnapshotCreationTimestamp", nil, &r.Options, &resp)
11291 return
11292 }
11293
11294 // Retrieve The percentage of used snapshot space after which to delete automated snapshots.
11295 func (r Network_Storage_Iscsi) GetSnapshotDeletionThresholdPercentage() (resp string, err error) {
11296 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getSnapshotDeletionThresholdPercentage", nil, &r.Options, &resp)
11297 return
11298 }
11299
11300 // Retrieve Whether or not a network storage volume may be mounted.
11301 func (r Network_Storage_Iscsi) GetSnapshotNotificationStatus() (resp string, err error) {
11302 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getSnapshotNotificationStatus", nil, &r.Options, &resp)
11303 return
11304 }
11305
11306 // Retrieve The snapshot size in bytes.
11307 func (r Network_Storage_Iscsi) GetSnapshotSizeBytes() (resp string, err error) {
11308 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getSnapshotSizeBytes", nil, &r.Options, &resp)
11309 return
11310 }
11311
11312 // Retrieve A volume's available snapshot reservation space.
11313 func (r Network_Storage_Iscsi) GetSnapshotSpaceAvailable() (resp string, err error) {
11314 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getSnapshotSpaceAvailable", nil, &r.Options, &resp)
11315 return
11316 }
11317
11318 // Retrieve The snapshots associated with this SoftLayer_Network_Storage volume.
11319 func (r Network_Storage_Iscsi) GetSnapshots() (resp []datatypes.Network_Storage, err error) {
11320 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getSnapshots", nil, &r.Options, &resp)
11321 return
11322 }
11323
11324 // Retrieves a list of snapshots for this SoftLayer_Network_Storage volume. This method works with the result limits and offset to support pagination.
11325 func (r Network_Storage_Iscsi) GetSnapshotsForVolume() (resp []datatypes.Network_Storage, err error) {
11326 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getSnapshotsForVolume", nil, &r.Options, &resp)
11327 return
11328 }
11329
11330 // Retrieve
11331 func (r Network_Storage_Iscsi) GetStaasVersion() (resp string, err error) {
11332 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getStaasVersion", nil, &r.Options, &resp)
11333 return
11334 }
11335
11336 // Retrieve The network storage groups this volume is attached to.
11337 func (r Network_Storage_Iscsi) GetStorageGroups() (resp []datatypes.Network_Storage_Group, err error) {
11338 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getStorageGroups", nil, &r.Options, &resp)
11339 return
11340 }
11341
11342 // no documentation yet
11343 func (r Network_Storage_Iscsi) GetStorageGroupsNetworkConnectionDetails() (resp []datatypes.Container_Network_Storage_NetworkConnectionInformation, err error) {
11344 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getStorageGroupsNetworkConnectionDetails", nil, &r.Options, &resp)
11345 return
11346 }
11347
11348 // Retrieve
11349 func (r Network_Storage_Iscsi) GetStorageTierLevel() (resp string, err error) {
11350 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getStorageTierLevel", nil, &r.Options, &resp)
11351 return
11352 }
11353
11354 // Retrieve A description of the Storage object.
11355 func (r Network_Storage_Iscsi) GetStorageType() (resp datatypes.Network_Storage_Type, err error) {
11356 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getStorageType", nil, &r.Options, &resp)
11357 return
11358 }
11359
11360 // no documentation yet
11361 func (r Network_Storage_Iscsi) GetTargetIpAddresses() (resp []string, err error) {
11362 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getTargetIpAddresses", nil, &r.Options, &resp)
11363 return
11364 }
11365
11366 // Retrieve The amount of space used by the volume.
11367 func (r Network_Storage_Iscsi) GetTotalBytesUsed() (resp string, err error) {
11368 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getTotalBytesUsed", nil, &r.Options, &resp)
11369 return
11370 }
11371
11372 // Retrieve The total snapshot retention count of all schedules on this network storage volume.
11373 func (r Network_Storage_Iscsi) GetTotalScheduleSnapshotRetentionCount() (resp uint, err error) {
11374 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getTotalScheduleSnapshotRetentionCount", nil, &r.Options, &resp)
11375 return
11376 }
11377
11378 // Retrieve The usage notification for SL Storage services.
11379 func (r Network_Storage_Iscsi) GetUsageNotification() (resp datatypes.Notification, err error) {
11380 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getUsageNotification", nil, &r.Options, &resp)
11381 return
11382 }
11383
11384 // no documentation yet
11385 func (r Network_Storage_Iscsi) GetValidReplicationTargetDatacenterLocations() (resp []datatypes.Location, err error) {
11386 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getValidReplicationTargetDatacenterLocations", nil, &r.Options, &resp)
11387 return
11388 }
11389
11390 // Retrieve The type of network storage service.
11391 func (r Network_Storage_Iscsi) GetVendorName() (resp string, err error) {
11392 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getVendorName", nil, &r.Options, &resp)
11393 return
11394 }
11395
11396 // Retrieve When applicable, the virtual guest associated with a Storage service.
11397 func (r Network_Storage_Iscsi) GetVirtualGuest() (resp datatypes.Virtual_Guest, err error) {
11398 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getVirtualGuest", nil, &r.Options, &resp)
11399 return
11400 }
11401
11402 // Retrieves an array of volume count limits per location and globally.
11403 func (r Network_Storage_Iscsi) GetVolumeCountLimits() (resp []datatypes.Container_Network_Storage_DataCenterLimits_VolumeCountLimitContainer, err error) {
11404 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getVolumeCountLimits", nil, &r.Options, &resp)
11405 return
11406 }
11407
11408 // This method returns the parameters for cloning a volume
11409 func (r Network_Storage_Iscsi) GetVolumeDuplicateParameters() (resp datatypes.Container_Network_Storage_VolumeDuplicateParameters, err error) {
11410 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getVolumeDuplicateParameters", nil, &r.Options, &resp)
11411 return
11412 }
11413
11414 // Retrieve The username and password history for a Storage service.
11415 func (r Network_Storage_Iscsi) GetVolumeHistory() (resp []datatypes.Network_Storage_History, err error) {
11416 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getVolumeHistory", nil, &r.Options, &resp)
11417 return
11418 }
11419
11420 // Retrieve The current status of a network storage volume.
11421 func (r Network_Storage_Iscsi) GetVolumeStatus() (resp string, err error) {
11422 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getVolumeStatus", nil, &r.Options, &resp)
11423 return
11424 }
11425
11426 // Retrieve The account username and password for the EVault webCC interface.
11427 func (r Network_Storage_Iscsi) GetWebccAccount() (resp datatypes.Account_Password, err error) {
11428 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getWebccAccount", nil, &r.Options, &resp)
11429 return
11430 }
11431
11432 // Retrieve The Weekly Schedule which is associated with this network storage volume.
11433 func (r Network_Storage_Iscsi) GetWeeklySchedule() (resp datatypes.Network_Storage_Schedule, err error) {
11434 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getWeeklySchedule", nil, &r.Options, &resp)
11435 return
11436 }
11437
11438 // Immediate Failover to a volume replicant. During the time which the replicant is in use the local nas volume will not be available.
11439 func (r Network_Storage_Iscsi) ImmediateFailoverToReplicant(replicantId *int) (resp bool, err error) {
11440 params := []interface{}{
11441 replicantId,
11442 }
11443 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "immediateFailoverToReplicant", params, &r.Options, &resp)
11444 return
11445 }
11446
11447 // no documentation yet
11448 func (r Network_Storage_Iscsi) InitiateOriginVolumeReclaim() (resp string, err error) {
11449 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "initiateOriginVolumeReclaim", nil, &r.Options, &resp)
11450 return
11451 }
11452
11453 // no documentation yet
11454 func (r Network_Storage_Iscsi) InitiateVolumeCutover() (resp string, err error) {
11455 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "initiateVolumeCutover", nil, &r.Options, &resp)
11456 return
11457 }
11458
11459 // no documentation yet
11460 func (r Network_Storage_Iscsi) IsBlockingOperationInProgress(exemptStatusKeyNames []string) (resp bool, err error) {
11461 params := []interface{}{
11462 exemptStatusKeyNames,
11463 }
11464 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "isBlockingOperationInProgress", params, &r.Options, &resp)
11465 return
11466 }
11467
11468 // This method returns a boolean indicating whether the clone volume is ready for snapshot.
11469 func (r Network_Storage_Iscsi) IsDuplicateReadyForSnapshot() (resp bool, err error) {
11470 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "isDuplicateReadyForSnapshot", nil, &r.Options, &resp)
11471 return
11472 }
11473
11474 // This method returns a boolean indicating whether the clone volume is ready to mount.
11475 func (r Network_Storage_Iscsi) IsDuplicateReadyToMount() (resp bool, err error) {
11476 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "isDuplicateReadyToMount", nil, &r.Options, &resp)
11477 return
11478 }
11479
11480 // no documentation yet
11481 func (r Network_Storage_Iscsi) IsVolumeActive() (resp bool, err error) {
11482 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "isVolumeActive", nil, &r.Options, &resp)
11483 return
11484 }
11485
11486 // no documentation yet
11487 func (r Network_Storage_Iscsi) RefreshDependentDuplicate(snapshotId *int) (resp bool, err error) {
11488 params := []interface{}{
11489 snapshotId,
11490 }
11491 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "refreshDependentDuplicate", params, &r.Options, &resp)
11492 return
11493 }
11494
11495 // no documentation yet
11496 func (r Network_Storage_Iscsi) RefreshDuplicate(snapshotId *int, forceRefresh *bool) (resp bool, err error) {
11497 params := []interface{}{
11498 snapshotId,
11499 forceRefresh,
11500 }
11501 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "refreshDuplicate", params, &r.Options, &resp)
11502 return
11503 }
11504
11505 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Hardware objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage volume.
11506 func (r Network_Storage_Iscsi) RemoveAccessFromHardware(hardwareObjectTemplate *datatypes.Hardware) (resp bool, err error) {
11507 params := []interface{}{
11508 hardwareObjectTemplate,
11509 }
11510 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "removeAccessFromHardware", params, &r.Options, &resp)
11511 return
11512 }
11513
11514 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Hardware objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage volume.
11515 func (r Network_Storage_Iscsi) RemoveAccessFromHardwareList(hardwareObjectTemplates []datatypes.Hardware) (resp bool, err error) {
11516 params := []interface{}{
11517 hardwareObjectTemplates,
11518 }
11519 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "removeAccessFromHardwareList", params, &r.Options, &resp)
11520 return
11521 }
11522
11523 // This method is used to modify the access control list for this Storage volume. The [[SoftLayer_Hardware|SoftLayer_Virtual_Guest|SoftLayer_Network_Subnet|SoftLayer_Network_Subnet_IpAddress]] objects which have been allowed access to this storage will be listed in the [[allowedHardware|allowedVirtualGuests|allowedSubnets|allowedIpAddresses]] property of this storage volume.
11524 func (r Network_Storage_Iscsi) RemoveAccessFromHost(typeClassName *string, hostId *int) (resp datatypes.Network_Storage_Allowed_Host, err error) {
11525 params := []interface{}{
11526 typeClassName,
11527 hostId,
11528 }
11529 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "removeAccessFromHost", params, &r.Options, &resp)
11530 return
11531 }
11532
11533 // This method is used to modify the access control list for this Storage volume. The [[SoftLayer_Hardware|SoftLayer_Virtual_Guest|SoftLayer_Network_Subnet|SoftLayer_Network_Subnet_IpAddress]] objects which have been allowed access to this storage will be listed in the [[allowedHardware|allowedVirtualGuests|allowedSubnets|allowedIpAddresses]] property of this storage volume.
11534 func (r Network_Storage_Iscsi) RemoveAccessFromHostList(hostObjectTemplates []datatypes.Container_Network_Storage_Host) (resp []datatypes.Network_Storage_Allowed_Host, err error) {
11535 params := []interface{}{
11536 hostObjectTemplates,
11537 }
11538 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "removeAccessFromHostList", params, &r.Options, &resp)
11539 return
11540 }
11541
11542 // no documentation yet
11543 func (r Network_Storage_Iscsi) RemoveAccessFromIpAddress(ipAddressObjectTemplate *datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
11544 params := []interface{}{
11545 ipAddressObjectTemplate,
11546 }
11547 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "removeAccessFromIpAddress", params, &r.Options, &resp)
11548 return
11549 }
11550
11551 // no documentation yet
11552 func (r Network_Storage_Iscsi) RemoveAccessFromIpAddressList(ipAddressObjectTemplates []datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
11553 params := []interface{}{
11554 ipAddressObjectTemplates,
11555 }
11556 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "removeAccessFromIpAddressList", params, &r.Options, &resp)
11557 return
11558 }
11559
11560 // no documentation yet
11561 func (r Network_Storage_Iscsi) RemoveAccessFromSubnet(subnetObjectTemplate *datatypes.Network_Subnet) (resp bool, err error) {
11562 params := []interface{}{
11563 subnetObjectTemplate,
11564 }
11565 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "removeAccessFromSubnet", params, &r.Options, &resp)
11566 return
11567 }
11568
11569 // no documentation yet
11570 func (r Network_Storage_Iscsi) RemoveAccessFromSubnetList(subnetObjectTemplates []datatypes.Network_Subnet) (resp bool, err error) {
11571 params := []interface{}{
11572 subnetObjectTemplates,
11573 }
11574 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "removeAccessFromSubnetList", params, &r.Options, &resp)
11575 return
11576 }
11577
11578 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage volume.
11579 func (r Network_Storage_Iscsi) RemoveAccessFromVirtualGuest(virtualGuestObjectTemplate *datatypes.Virtual_Guest) (resp bool, err error) {
11580 params := []interface{}{
11581 virtualGuestObjectTemplate,
11582 }
11583 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "removeAccessFromVirtualGuest", params, &r.Options, &resp)
11584 return
11585 }
11586
11587 // This method is used to modify the access control list for this Storage volume. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage volume.
11588 func (r Network_Storage_Iscsi) RemoveAccessFromVirtualGuestList(virtualGuestObjectTemplates []datatypes.Virtual_Guest) (resp bool, err error) {
11589 params := []interface{}{
11590 virtualGuestObjectTemplates,
11591 }
11592 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "removeAccessFromVirtualGuestList", params, &r.Options, &resp)
11593 return
11594 }
11595
11596 // This method is used to modify the access control list for this Storage replica volume. The SoftLayer_Hardware objects which have been allowed access to this storage will be listed in the allowedHardware property of this storage replica volume.
11597 func (r Network_Storage_Iscsi) RemoveAccessToReplicantFromHardwareList(hardwareObjectTemplates []datatypes.Hardware) (resp bool, err error) {
11598 params := []interface{}{
11599 hardwareObjectTemplates,
11600 }
11601 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "removeAccessToReplicantFromHardwareList", params, &r.Options, &resp)
11602 return
11603 }
11604
11605 // This method is used to modify the access control list for this Storage replica volume. The SoftLayer_Network_Subnet_IpAddress objects which have been allowed access to this storage will be listed in the allowedIpAddresses property of this storage replica volume.
11606 func (r Network_Storage_Iscsi) RemoveAccessToReplicantFromIpAddressList(ipAddressObjectTemplates []datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
11607 params := []interface{}{
11608 ipAddressObjectTemplates,
11609 }
11610 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "removeAccessToReplicantFromIpAddressList", params, &r.Options, &resp)
11611 return
11612 }
11613
11614 // no documentation yet
11615 func (r Network_Storage_Iscsi) RemoveAccessToReplicantFromSubnet(subnetObjectTemplate *datatypes.Network_Subnet) (resp bool, err error) {
11616 params := []interface{}{
11617 subnetObjectTemplate,
11618 }
11619 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "removeAccessToReplicantFromSubnet", params, &r.Options, &resp)
11620 return
11621 }
11622
11623 // This method is used to modify the access control list for this Storage volume's replica. The SoftLayer_Network_Subnet objects which have been allowed access to this storage volume's replica will be listed in the allowedReplicationSubnets property of this storage volume.
11624 func (r Network_Storage_Iscsi) RemoveAccessToReplicantFromSubnetList(subnetObjectTemplates []datatypes.Network_Subnet) (resp bool, err error) {
11625 params := []interface{}{
11626 subnetObjectTemplates,
11627 }
11628 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "removeAccessToReplicantFromSubnetList", params, &r.Options, &resp)
11629 return
11630 }
11631
11632 // This method is used to modify the access control list for this Storage replica volume. The SoftLayer_Virtual_Guest objects which have been allowed access to this storage will be listed in the allowedVirtualGuests property of this storage replica volume.
11633 func (r Network_Storage_Iscsi) RemoveAccessToReplicantFromVirtualGuestList(virtualGuestObjectTemplates []datatypes.Virtual_Guest) (resp bool, err error) {
11634 params := []interface{}{
11635 virtualGuestObjectTemplates,
11636 }
11637 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "removeAccessToReplicantFromVirtualGuestList", params, &r.Options, &resp)
11638 return
11639 }
11640
11641 // This method will remove a credential from the current volume. The credential must have been created using the 'addNewCredential' method.
11642 func (r Network_Storage_Iscsi) RemoveCredential(username *string) (resp bool, err error) {
11643 params := []interface{}{
11644 username,
11645 }
11646 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "removeCredential", params, &r.Options, &resp)
11647 return
11648 }
11649
11650 // {{CloudLayerOnlyMethod}} Restore an individual file so that it may be used as it was before it was deleted.
11651 //
11652 // If a file is deleted from a Virtual Server Storage account, the file is placed into the account's recycle bin and not permanently deleted. Therefore, restoreFile can be used to place the file back into your Virtual Server account's root directory.
11653 func (r Network_Storage_Iscsi) RestoreFile(fileId *string) (resp datatypes.Container_Utility_File_Entity, err error) {
11654 params := []interface{}{
11655 fileId,
11656 }
11657 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "restoreFile", params, &r.Options, &resp)
11658 return
11659 }
11660
11661 // Restore the volume from a snapshot that was previously taken.
11662 func (r Network_Storage_Iscsi) RestoreFromSnapshot(snapshotId *int) (resp bool, err error) {
11663 params := []interface{}{
11664 snapshotId,
11665 }
11666 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "restoreFromSnapshot", params, &r.Options, &resp)
11667 return
11668 }
11669
11670 // The method will retrieve the password for the StorageLayer or Virtual Server Storage Account and email the password. The Storage Account passwords will be emailed to the master user. For Virtual Server Storage, the password will be sent to the email address used as the username.
11671 func (r Network_Storage_Iscsi) SendPasswordReminderEmail(username *string) (resp bool, err error) {
11672 params := []interface{}{
11673 username,
11674 }
11675 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "sendPasswordReminderEmail", params, &r.Options, &resp)
11676 return
11677 }
11678
11679 // Enable or disable the mounting of a Storage volume. When mounting is enabled the Storage volume will be mountable or available for use.
11680 //
11681 // For Virtual Server volumes, disabling mounting will deny access to the Virtual Server Account, remove published material and deny all file interaction including uploads and downloads.
11682 //
11683 // Enabling or disabling mounting for Storage volumes is not possible if mounting has been disabled by SoftLayer or a parent account.
11684 func (r Network_Storage_Iscsi) SetMountable(mountable *bool) (resp bool, err error) {
11685 params := []interface{}{
11686 mountable,
11687 }
11688 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "setMountable", params, &r.Options, &resp)
11689 return
11690 }
11691
11692 // no documentation yet
11693 func (r Network_Storage_Iscsi) SetSnapshotAllocation(capacityGb *int) (err error) {
11694 var resp datatypes.Void
11695 params := []interface{}{
11696 capacityGb,
11697 }
11698 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "setSnapshotAllocation", params, &r.Options, &resp)
11699 return
11700 }
11701
11702 // Function to enable/disable snapshot warning notification.
11703 func (r Network_Storage_Iscsi) SetSnapshotNotification(notificationFlag *bool) (err error) {
11704 var resp datatypes.Void
11705 params := []interface{}{
11706 notificationFlag,
11707 }
11708 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "setSnapshotNotification", params, &r.Options, &resp)
11709 return
11710 }
11711
11712 // Upgrade the Storage volume to one of the upgradable packages (for example from 10 Gigs of EVault storage to 100 Gigs of EVault storage).
11713 func (r Network_Storage_Iscsi) UpgradeVolumeCapacity(itemId *int) (resp bool, err error) {
11714 params := []interface{}{
11715 itemId,
11716 }
11717 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "upgradeVolumeCapacity", params, &r.Options, &resp)
11718 return
11719 }
11720
11721 // {{CloudLayerOnlyMethod}} Upload a file to a Storage account's root directory. Once uploaded, this method returns new file entity identifier for the upload file.
11722 //
11723 // The following properties are required in the ”file” parameter.
11724 // *”'name”': The name of the file you wish to upload
11725 // *”'content”': The raw contents of the file you wish to upload.
11726 // *”'contentType”': The MIME-type of content that you wish to upload.
11727 func (r Network_Storage_Iscsi) UploadFile(file *datatypes.Container_Utility_File_Entity) (resp datatypes.Container_Utility_File_Entity, err error) {
11728 params := []interface{}{
11729 file,
11730 }
11731 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "uploadFile", params, &r.Options, &resp)
11732 return
11733 }
11734
11735 // This method is used to validate if the hosts are behind gateway or not from [SoftLayer_Network_Subnet|SoftLayer_Network_Subnet_IpAddress] objects. This returns [SoftLayer_Container_Network_Storage_HostsGatewayInformation] object containing the host details along with a boolean attribute which indicates if it's behind the gateway or not.
11736 func (r Network_Storage_Iscsi) ValidateHostsAccess(hostObjectTemplates []datatypes.Container_Network_Storage_Host) (resp []datatypes.Container_Network_Storage_HostsGatewayInformation, err error) {
11737 params := []interface{}{
11738 hostObjectTemplates,
11739 }
11740 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "validateHostsAccess", params, &r.Options, &resp)
11741 return
11742 }
11743
11744 // no documentation yet
11745 type Network_Storage_Iscsi_OS_Type struct {
11746 Session session.SLSession
11747 Options sl.Options
11748 }
11749
11750 // GetNetworkStorageIscsiOSTypeService returns an instance of the Network_Storage_Iscsi_OS_Type SoftLayer service
11751 func GetNetworkStorageIscsiOSTypeService(sess session.SLSession) Network_Storage_Iscsi_OS_Type {
11752 return Network_Storage_Iscsi_OS_Type{Session: sess}
11753 }
11754
11755 func (r Network_Storage_Iscsi_OS_Type) Id(id int) Network_Storage_Iscsi_OS_Type {
11756 r.Options.Id = &id
11757 return r
11758 }
11759
11760 func (r Network_Storage_Iscsi_OS_Type) Mask(mask string) Network_Storage_Iscsi_OS_Type {
11761 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
11762 mask = fmt.Sprintf("mask[%s]", mask)
11763 }
11764
11765 r.Options.Mask = mask
11766 return r
11767 }
11768
11769 func (r Network_Storage_Iscsi_OS_Type) Filter(filter string) Network_Storage_Iscsi_OS_Type {
11770 r.Options.Filter = filter
11771 return r
11772 }
11773
11774 func (r Network_Storage_Iscsi_OS_Type) Limit(limit int) Network_Storage_Iscsi_OS_Type {
11775 r.Options.Limit = &limit
11776 return r
11777 }
11778
11779 func (r Network_Storage_Iscsi_OS_Type) Offset(offset int) Network_Storage_Iscsi_OS_Type {
11780 r.Options.Offset = &offset
11781 return r
11782 }
11783
11784 // Use this method to retrieve all iSCSI OS Types.
11785 func (r Network_Storage_Iscsi_OS_Type) GetAllObjects() (resp []datatypes.Network_Storage_Iscsi_OS_Type, err error) {
11786 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi_OS_Type", "getAllObjects", nil, &r.Options, &resp)
11787 return
11788 }
11789
11790 // no documentation yet
11791 func (r Network_Storage_Iscsi_OS_Type) GetObject() (resp datatypes.Network_Storage_Iscsi_OS_Type, err error) {
11792 err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi_OS_Type", "getObject", nil, &r.Options, &resp)
11793 return
11794 }
11795
11796 // no documentation yet
11797 // Deprecated: This function has been marked as deprecated.
11798 type Network_Storage_MassDataMigration_CrossRegion_Country_Xref struct {
11799 Session session.SLSession
11800 Options sl.Options
11801 }
11802
11803 // GetNetworkStorageMassDataMigrationCrossRegionCountryXrefService returns an instance of the Network_Storage_MassDataMigration_CrossRegion_Country_Xref SoftLayer service
11804 func GetNetworkStorageMassDataMigrationCrossRegionCountryXrefService(sess session.SLSession) Network_Storage_MassDataMigration_CrossRegion_Country_Xref {
11805 return Network_Storage_MassDataMigration_CrossRegion_Country_Xref{Session: sess}
11806 }
11807
11808 func (r Network_Storage_MassDataMigration_CrossRegion_Country_Xref) Id(id int) Network_Storage_MassDataMigration_CrossRegion_Country_Xref {
11809 r.Options.Id = &id
11810 return r
11811 }
11812
11813 func (r Network_Storage_MassDataMigration_CrossRegion_Country_Xref) Mask(mask string) Network_Storage_MassDataMigration_CrossRegion_Country_Xref {
11814 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
11815 mask = fmt.Sprintf("mask[%s]", mask)
11816 }
11817
11818 r.Options.Mask = mask
11819 return r
11820 }
11821
11822 func (r Network_Storage_MassDataMigration_CrossRegion_Country_Xref) Filter(filter string) Network_Storage_MassDataMigration_CrossRegion_Country_Xref {
11823 r.Options.Filter = filter
11824 return r
11825 }
11826
11827 func (r Network_Storage_MassDataMigration_CrossRegion_Country_Xref) Limit(limit int) Network_Storage_MassDataMigration_CrossRegion_Country_Xref {
11828 r.Options.Limit = &limit
11829 return r
11830 }
11831
11832 func (r Network_Storage_MassDataMigration_CrossRegion_Country_Xref) Offset(offset int) Network_Storage_MassDataMigration_CrossRegion_Country_Xref {
11833 r.Options.Offset = &offset
11834 return r
11835 }
11836
11837 // no documentation yet
11838 // Deprecated: This function has been marked as deprecated.
11839 func (r Network_Storage_MassDataMigration_CrossRegion_Country_Xref) GetAllObjects() (resp []datatypes.Network_Storage_MassDataMigration_CrossRegion_Country_Xref, err error) {
11840 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_CrossRegion_Country_Xref", "getAllObjects", nil, &r.Options, &resp)
11841 return
11842 }
11843
11844 // Retrieve SoftLayer_Locale_Country Id.
11845 func (r Network_Storage_MassDataMigration_CrossRegion_Country_Xref) GetCountry() (resp datatypes.Locale_Country, err error) {
11846 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_CrossRegion_Country_Xref", "getCountry", nil, &r.Options, &resp)
11847 return
11848 }
11849
11850 // Retrieve Location Group ID of CleverSafe cross region.
11851 func (r Network_Storage_MassDataMigration_CrossRegion_Country_Xref) GetLocationGroup() (resp datatypes.Location_Group, err error) {
11852 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_CrossRegion_Country_Xref", "getLocationGroup", nil, &r.Options, &resp)
11853 return
11854 }
11855
11856 // no documentation yet
11857 func (r Network_Storage_MassDataMigration_CrossRegion_Country_Xref) GetObject() (resp datatypes.Network_Storage_MassDataMigration_CrossRegion_Country_Xref, err error) {
11858 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_CrossRegion_Country_Xref", "getObject", nil, &r.Options, &resp)
11859 return
11860 }
11861
11862 // DEPRECATED
11863 // Deprecated: This function has been marked as deprecated.
11864 func (r Network_Storage_MassDataMigration_CrossRegion_Country_Xref) GetValidCountriesForRegion(locationGroupName *string) (resp []datatypes.Network_Storage_MassDataMigration_CrossRegion_Country_Xref, err error) {
11865 params := []interface{}{
11866 locationGroupName,
11867 }
11868 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_CrossRegion_Country_Xref", "getValidCountriesForRegion", params, &r.Options, &resp)
11869 return
11870 }
11871
11872 // DEPRECATED
11873 // Deprecated: This function has been marked as deprecated.
11874 type Network_Storage_MassDataMigration_Request struct {
11875 Session session.SLSession
11876 Options sl.Options
11877 }
11878
11879 // GetNetworkStorageMassDataMigrationRequestService returns an instance of the Network_Storage_MassDataMigration_Request SoftLayer service
11880 func GetNetworkStorageMassDataMigrationRequestService(sess session.SLSession) Network_Storage_MassDataMigration_Request {
11881 return Network_Storage_MassDataMigration_Request{Session: sess}
11882 }
11883
11884 func (r Network_Storage_MassDataMigration_Request) Id(id int) Network_Storage_MassDataMigration_Request {
11885 r.Options.Id = &id
11886 return r
11887 }
11888
11889 func (r Network_Storage_MassDataMigration_Request) Mask(mask string) Network_Storage_MassDataMigration_Request {
11890 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
11891 mask = fmt.Sprintf("mask[%s]", mask)
11892 }
11893
11894 r.Options.Mask = mask
11895 return r
11896 }
11897
11898 func (r Network_Storage_MassDataMigration_Request) Filter(filter string) Network_Storage_MassDataMigration_Request {
11899 r.Options.Filter = filter
11900 return r
11901 }
11902
11903 func (r Network_Storage_MassDataMigration_Request) Limit(limit int) Network_Storage_MassDataMigration_Request {
11904 r.Options.Limit = &limit
11905 return r
11906 }
11907
11908 func (r Network_Storage_MassDataMigration_Request) Offset(offset int) Network_Storage_MassDataMigration_Request {
11909 r.Options.Offset = &offset
11910 return r
11911 }
11912
11913 // Retrieve The account to which the request belongs.
11914 func (r Network_Storage_MassDataMigration_Request) GetAccount() (resp datatypes.Account, err error) {
11915 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getAccount", nil, &r.Options, &resp)
11916 return
11917 }
11918
11919 // Retrieve The active tickets that are attached to the MDMS request.
11920 func (r Network_Storage_MassDataMigration_Request) GetActiveTickets() (resp []datatypes.Ticket, err error) {
11921 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getActiveTickets", nil, &r.Options, &resp)
11922 return
11923 }
11924
11925 // Retrieve The customer address where the device is shipped to.
11926 func (r Network_Storage_MassDataMigration_Request) GetAddress() (resp datatypes.Account_Address, err error) {
11927 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getAddress", nil, &r.Options, &resp)
11928 return
11929 }
11930
11931 // no documentation yet
11932 // Deprecated: This function has been marked as deprecated.
11933 func (r Network_Storage_MassDataMigration_Request) GetAllObjects() (resp []datatypes.Network_Storage_MassDataMigration_Request, err error) {
11934 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getAllObjects", nil, &r.Options, &resp)
11935 return
11936 }
11937
11938 // DEPRECATED
11939 // Deprecated: This function has been marked as deprecated.
11940 func (r Network_Storage_MassDataMigration_Request) GetAllRequestStatuses() (resp []datatypes.Network_Storage_MassDataMigration_Request_Status, err error) {
11941 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getAllRequestStatuses", nil, &r.Options, &resp)
11942 return
11943 }
11944
11945 // Retrieve An associated parent billing item which is active. Includes billing items which are scheduled to be cancelled in the future.
11946 func (r Network_Storage_MassDataMigration_Request) GetBillingItem() (resp datatypes.Billing_Item, err error) {
11947 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getBillingItem", nil, &r.Options, &resp)
11948 return
11949 }
11950
11951 // Retrieve The employee user who created the request.
11952 func (r Network_Storage_MassDataMigration_Request) GetCreateEmployee() (resp datatypes.User_Employee, err error) {
11953 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getCreateEmployee", nil, &r.Options, &resp)
11954 return
11955 }
11956
11957 // Retrieve The customer user who created the request.
11958 func (r Network_Storage_MassDataMigration_Request) GetCreateUser() (resp datatypes.User_Customer, err error) {
11959 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getCreateUser", nil, &r.Options, &resp)
11960 return
11961 }
11962
11963 // Retrieve The device configurations.
11964 func (r Network_Storage_MassDataMigration_Request) GetDeviceConfiguration() (resp datatypes.Network_Storage_MassDataMigration_Request_DeviceConfiguration, err error) {
11965 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getDeviceConfiguration", nil, &r.Options, &resp)
11966 return
11967 }
11968
11969 // Retrieve The model of device assigned to this request.
11970 func (r Network_Storage_MassDataMigration_Request) GetDeviceModel() (resp string, err error) {
11971 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getDeviceModel", nil, &r.Options, &resp)
11972 return
11973 }
11974
11975 // Retrieve The key contacts for this requests.
11976 func (r Network_Storage_MassDataMigration_Request) GetKeyContacts() (resp []datatypes.Network_Storage_MassDataMigration_Request_KeyContact, err error) {
11977 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getKeyContacts", nil, &r.Options, &resp)
11978 return
11979 }
11980
11981 // Retrieve The employee who last modified the request.
11982 func (r Network_Storage_MassDataMigration_Request) GetModifyEmployee() (resp datatypes.User_Employee, err error) {
11983 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getModifyEmployee", nil, &r.Options, &resp)
11984 return
11985 }
11986
11987 // Retrieve The customer user who last modified the request.
11988 func (r Network_Storage_MassDataMigration_Request) GetModifyUser() (resp datatypes.User_Customer, err error) {
11989 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getModifyUser", nil, &r.Options, &resp)
11990 return
11991 }
11992
11993 // no documentation yet
11994 func (r Network_Storage_MassDataMigration_Request) GetObject() (resp datatypes.Network_Storage_MassDataMigration_Request, err error) {
11995 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getObject", nil, &r.Options, &resp)
11996 return
11997 }
11998
11999 // DEPRECATED
12000 // Deprecated: This function has been marked as deprecated.
12001 func (r Network_Storage_MassDataMigration_Request) GetPendingRequests() (resp []datatypes.Network_Storage_MassDataMigration_Request, err error) {
12002 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getPendingRequests", nil, &r.Options, &resp)
12003 return
12004 }
12005
12006 // Retrieve The shipments of the request.
12007 func (r Network_Storage_MassDataMigration_Request) GetShipments() (resp []datatypes.Account_Shipment, err error) {
12008 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getShipments", nil, &r.Options, &resp)
12009 return
12010 }
12011
12012 // Retrieve The status of the request.
12013 func (r Network_Storage_MassDataMigration_Request) GetStatus() (resp datatypes.Network_Storage_MassDataMigration_Request_Status, err error) {
12014 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getStatus", nil, &r.Options, &resp)
12015 return
12016 }
12017
12018 // Retrieve Ticket that is attached to this mass data migration request.
12019 func (r Network_Storage_MassDataMigration_Request) GetTicket() (resp datatypes.Ticket, err error) {
12020 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getTicket", nil, &r.Options, &resp)
12021 return
12022 }
12023
12024 // Retrieve All tickets that are attached to the mass data migration request.
12025 func (r Network_Storage_MassDataMigration_Request) GetTickets() (resp []datatypes.Ticket, err error) {
12026 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request", "getTickets", nil, &r.Options, &resp)
12027 return
12028 }
12029
12030 // DEPRECATED
12031 // Deprecated: This function has been marked as deprecated.
12032 type Network_Storage_MassDataMigration_Request_KeyContact struct {
12033 Session session.SLSession
12034 Options sl.Options
12035 }
12036
12037 // GetNetworkStorageMassDataMigrationRequestKeyContactService returns an instance of the Network_Storage_MassDataMigration_Request_KeyContact SoftLayer service
12038 func GetNetworkStorageMassDataMigrationRequestKeyContactService(sess session.SLSession) Network_Storage_MassDataMigration_Request_KeyContact {
12039 return Network_Storage_MassDataMigration_Request_KeyContact{Session: sess}
12040 }
12041
12042 func (r Network_Storage_MassDataMigration_Request_KeyContact) Id(id int) Network_Storage_MassDataMigration_Request_KeyContact {
12043 r.Options.Id = &id
12044 return r
12045 }
12046
12047 func (r Network_Storage_MassDataMigration_Request_KeyContact) Mask(mask string) Network_Storage_MassDataMigration_Request_KeyContact {
12048 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
12049 mask = fmt.Sprintf("mask[%s]", mask)
12050 }
12051
12052 r.Options.Mask = mask
12053 return r
12054 }
12055
12056 func (r Network_Storage_MassDataMigration_Request_KeyContact) Filter(filter string) Network_Storage_MassDataMigration_Request_KeyContact {
12057 r.Options.Filter = filter
12058 return r
12059 }
12060
12061 func (r Network_Storage_MassDataMigration_Request_KeyContact) Limit(limit int) Network_Storage_MassDataMigration_Request_KeyContact {
12062 r.Options.Limit = &limit
12063 return r
12064 }
12065
12066 func (r Network_Storage_MassDataMigration_Request_KeyContact) Offset(offset int) Network_Storage_MassDataMigration_Request_KeyContact {
12067 r.Options.Offset = &offset
12068 return r
12069 }
12070
12071 // Retrieve The request this key contact belongs to.
12072 func (r Network_Storage_MassDataMigration_Request_KeyContact) GetAccount() (resp datatypes.Account, err error) {
12073 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request_KeyContact", "getAccount", nil, &r.Options, &resp)
12074 return
12075 }
12076
12077 // no documentation yet
12078 func (r Network_Storage_MassDataMigration_Request_KeyContact) GetObject() (resp datatypes.Network_Storage_MassDataMigration_Request_KeyContact, err error) {
12079 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request_KeyContact", "getObject", nil, &r.Options, &resp)
12080 return
12081 }
12082
12083 // Retrieve The request this key contact belongs to.
12084 func (r Network_Storage_MassDataMigration_Request_KeyContact) GetRequest() (resp datatypes.Network_Storage_MassDataMigration_Request, err error) {
12085 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request_KeyContact", "getRequest", nil, &r.Options, &resp)
12086 return
12087 }
12088
12089 // DEPRECATED
12090 // Deprecated: This function has been marked as deprecated.
12091 type Network_Storage_MassDataMigration_Request_Status struct {
12092 Session session.SLSession
12093 Options sl.Options
12094 }
12095
12096 // GetNetworkStorageMassDataMigrationRequestStatusService returns an instance of the Network_Storage_MassDataMigration_Request_Status SoftLayer service
12097 func GetNetworkStorageMassDataMigrationRequestStatusService(sess session.SLSession) Network_Storage_MassDataMigration_Request_Status {
12098 return Network_Storage_MassDataMigration_Request_Status{Session: sess}
12099 }
12100
12101 func (r Network_Storage_MassDataMigration_Request_Status) Id(id int) Network_Storage_MassDataMigration_Request_Status {
12102 r.Options.Id = &id
12103 return r
12104 }
12105
12106 func (r Network_Storage_MassDataMigration_Request_Status) Mask(mask string) Network_Storage_MassDataMigration_Request_Status {
12107 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
12108 mask = fmt.Sprintf("mask[%s]", mask)
12109 }
12110
12111 r.Options.Mask = mask
12112 return r
12113 }
12114
12115 func (r Network_Storage_MassDataMigration_Request_Status) Filter(filter string) Network_Storage_MassDataMigration_Request_Status {
12116 r.Options.Filter = filter
12117 return r
12118 }
12119
12120 func (r Network_Storage_MassDataMigration_Request_Status) Limit(limit int) Network_Storage_MassDataMigration_Request_Status {
12121 r.Options.Limit = &limit
12122 return r
12123 }
12124
12125 func (r Network_Storage_MassDataMigration_Request_Status) Offset(offset int) Network_Storage_MassDataMigration_Request_Status {
12126 r.Options.Offset = &offset
12127 return r
12128 }
12129
12130 // no documentation yet
12131 func (r Network_Storage_MassDataMigration_Request_Status) GetObject() (resp datatypes.Network_Storage_MassDataMigration_Request_Status, err error) {
12132 err = r.Session.DoRequest("SoftLayer_Network_Storage_MassDataMigration_Request_Status", "getObject", nil, &r.Options, &resp)
12133 return
12134 }
12135
12136 // Schedules can be created for select Storage services, such as iscsi. These schedules are used to perform various tasks such as scheduling snapshots or synchronizing replicants.
12137 type Network_Storage_Schedule struct {
12138 Session session.SLSession
12139 Options sl.Options
12140 }
12141
12142 // GetNetworkStorageScheduleService returns an instance of the Network_Storage_Schedule SoftLayer service
12143 func GetNetworkStorageScheduleService(sess session.SLSession) Network_Storage_Schedule {
12144 return Network_Storage_Schedule{Session: sess}
12145 }
12146
12147 func (r Network_Storage_Schedule) Id(id int) Network_Storage_Schedule {
12148 r.Options.Id = &id
12149 return r
12150 }
12151
12152 func (r Network_Storage_Schedule) Mask(mask string) Network_Storage_Schedule {
12153 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
12154 mask = fmt.Sprintf("mask[%s]", mask)
12155 }
12156
12157 r.Options.Mask = mask
12158 return r
12159 }
12160
12161 func (r Network_Storage_Schedule) Filter(filter string) Network_Storage_Schedule {
12162 r.Options.Filter = filter
12163 return r
12164 }
12165
12166 func (r Network_Storage_Schedule) Limit(limit int) Network_Storage_Schedule {
12167 r.Options.Limit = &limit
12168 return r
12169 }
12170
12171 func (r Network_Storage_Schedule) Offset(offset int) Network_Storage_Schedule {
12172 r.Options.Offset = &offset
12173 return r
12174 }
12175
12176 // Create a nas volume schedule
12177 func (r Network_Storage_Schedule) CreateObject(templateObject *datatypes.Network_Storage_Schedule) (resp datatypes.Network_Storage_Schedule, err error) {
12178 params := []interface{}{
12179 templateObject,
12180 }
12181 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "createObject", params, &r.Options, &resp)
12182 return
12183 }
12184
12185 // Delete a network storage schedule. ”'This cannot be undone.”' ”deleteObject” returns Boolean ”true” on successful deletion or ”false” if it was unable to remove a schedule;
12186 func (r Network_Storage_Schedule) DeleteObject() (resp bool, err error) {
12187 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "deleteObject", nil, &r.Options, &resp)
12188 return
12189 }
12190
12191 // Edit a nas volume schedule
12192 func (r Network_Storage_Schedule) EditObject(templateObject *datatypes.Network_Storage_Schedule) (resp bool, err error) {
12193 params := []interface{}{
12194 templateObject,
12195 }
12196 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "editObject", params, &r.Options, &resp)
12197 return
12198 }
12199
12200 // Retrieve The hour parameter of this schedule.
12201 func (r Network_Storage_Schedule) GetDay() (resp string, err error) {
12202 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "getDay", nil, &r.Options, &resp)
12203 return
12204 }
12205
12206 // Retrieve The day of the month parameter of this schedule.
12207 func (r Network_Storage_Schedule) GetDayOfMonth() (resp string, err error) {
12208 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "getDayOfMonth", nil, &r.Options, &resp)
12209 return
12210 }
12211
12212 // Retrieve The day of the week parameter of this schedule.
12213 func (r Network_Storage_Schedule) GetDayOfWeek() (resp string, err error) {
12214 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "getDayOfWeek", nil, &r.Options, &resp)
12215 return
12216 }
12217
12218 // Retrieve Events which have been created as the result of a schedule execution.
12219 func (r Network_Storage_Schedule) GetEvents() (resp []datatypes.Network_Storage_Event, err error) {
12220 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "getEvents", nil, &r.Options, &resp)
12221 return
12222 }
12223
12224 // Retrieve The hour parameter of this schedule.
12225 func (r Network_Storage_Schedule) GetHour() (resp string, err error) {
12226 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "getHour", nil, &r.Options, &resp)
12227 return
12228 }
12229
12230 // Retrieve The minute parameter of this schedule.
12231 func (r Network_Storage_Schedule) GetMinute() (resp string, err error) {
12232 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "getMinute", nil, &r.Options, &resp)
12233 return
12234 }
12235
12236 // Retrieve The month of the year parameter of this schedule.
12237 func (r Network_Storage_Schedule) GetMonthOfYear() (resp string, err error) {
12238 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "getMonthOfYear", nil, &r.Options, &resp)
12239 return
12240 }
12241
12242 // no documentation yet
12243 func (r Network_Storage_Schedule) GetObject() (resp datatypes.Network_Storage_Schedule, err error) {
12244 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "getObject", nil, &r.Options, &resp)
12245 return
12246 }
12247
12248 // Retrieve The associated partnership for a schedule.
12249 func (r Network_Storage_Schedule) GetPartnership() (resp datatypes.Network_Storage_Partnership, err error) {
12250 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "getPartnership", nil, &r.Options, &resp)
12251 return
12252 }
12253
12254 // Retrieve Properties used for configuration of a schedule.
12255 func (r Network_Storage_Schedule) GetProperties() (resp []datatypes.Network_Storage_Schedule_Property, err error) {
12256 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "getProperties", nil, &r.Options, &resp)
12257 return
12258 }
12259
12260 // Retrieve Replica snapshots which have been created as the result of this schedule's execution.
12261 func (r Network_Storage_Schedule) GetReplicaSnapshots() (resp []datatypes.Network_Storage, err error) {
12262 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "getReplicaSnapshots", nil, &r.Options, &resp)
12263 return
12264 }
12265
12266 // Retrieve The number of snapshots this schedule is configured to retain.
12267 func (r Network_Storage_Schedule) GetRetentionCount() (resp string, err error) {
12268 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "getRetentionCount", nil, &r.Options, &resp)
12269 return
12270 }
12271
12272 // Retrieve The minute parameter of this schedule.
12273 func (r Network_Storage_Schedule) GetSecond() (resp string, err error) {
12274 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "getSecond", nil, &r.Options, &resp)
12275 return
12276 }
12277
12278 // Retrieve Snapshots which have been created as the result of this schedule's execution.
12279 func (r Network_Storage_Schedule) GetSnapshots() (resp []datatypes.Network_Storage, err error) {
12280 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "getSnapshots", nil, &r.Options, &resp)
12281 return
12282 }
12283
12284 // Retrieve The type provides a standardized definition for a schedule.
12285 func (r Network_Storage_Schedule) GetType() (resp datatypes.Network_Storage_Schedule_Type, err error) {
12286 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "getType", nil, &r.Options, &resp)
12287 return
12288 }
12289
12290 // Retrieve The associated volume for a schedule.
12291 func (r Network_Storage_Schedule) GetVolume() (resp datatypes.Network_Storage, err error) {
12292 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule", "getVolume", nil, &r.Options, &resp)
12293 return
12294 }
12295
12296 // A schedule property type is used to allow for a standardized method of defining network storage schedules.
12297 type Network_Storage_Schedule_Property_Type struct {
12298 Session session.SLSession
12299 Options sl.Options
12300 }
12301
12302 // GetNetworkStorageSchedulePropertyTypeService returns an instance of the Network_Storage_Schedule_Property_Type SoftLayer service
12303 func GetNetworkStorageSchedulePropertyTypeService(sess session.SLSession) Network_Storage_Schedule_Property_Type {
12304 return Network_Storage_Schedule_Property_Type{Session: sess}
12305 }
12306
12307 func (r Network_Storage_Schedule_Property_Type) Id(id int) Network_Storage_Schedule_Property_Type {
12308 r.Options.Id = &id
12309 return r
12310 }
12311
12312 func (r Network_Storage_Schedule_Property_Type) Mask(mask string) Network_Storage_Schedule_Property_Type {
12313 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
12314 mask = fmt.Sprintf("mask[%s]", mask)
12315 }
12316
12317 r.Options.Mask = mask
12318 return r
12319 }
12320
12321 func (r Network_Storage_Schedule_Property_Type) Filter(filter string) Network_Storage_Schedule_Property_Type {
12322 r.Options.Filter = filter
12323 return r
12324 }
12325
12326 func (r Network_Storage_Schedule_Property_Type) Limit(limit int) Network_Storage_Schedule_Property_Type {
12327 r.Options.Limit = &limit
12328 return r
12329 }
12330
12331 func (r Network_Storage_Schedule_Property_Type) Offset(offset int) Network_Storage_Schedule_Property_Type {
12332 r.Options.Offset = &offset
12333 return r
12334 }
12335
12336 // Use this method to retrieve all network storage schedule property types.
12337 func (r Network_Storage_Schedule_Property_Type) GetAllObjects() (resp []datatypes.Network_Storage_Schedule_Property_Type, err error) {
12338 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule_Property_Type", "getAllObjects", nil, &r.Options, &resp)
12339 return
12340 }
12341
12342 // no documentation yet
12343 func (r Network_Storage_Schedule_Property_Type) GetObject() (resp datatypes.Network_Storage_Schedule_Property_Type, err error) {
12344 err = r.Session.DoRequest("SoftLayer_Network_Storage_Schedule_Property_Type", "getObject", nil, &r.Options, &resp)
12345 return
12346 }
12347
12348 // A subnet represents a continguous range of IP addresses. The range is represented by the networkIdentifer and cidr/netmask properties. The version of a subnet, whether IPv4 or IPv6, is represented by the version property.
12349 //
12350 // When routed, a subnet is associated to a VLAN on your account, which defines its scope on the network. Depending on a subnet's route type, IP addresses may be reserved for network and internal functions, the most common of which is the allocation of network, gateway and broadcast IP addresses.
12351 //
12352 // An unrouted subnet is not active on the network and may generally be routed within the datacenter in which it resides.
12353 //
12354 // [Subnetwork at Wikipedia](http://en.wikipedia.org/wiki/Subnetwork)
12355 //
12356 // [RFC950:Internet Standard Subnetting Procedure](http://datatracker.ietf.org/doc/html/rfc950)
12357 type Network_Subnet struct {
12358 Session session.SLSession
12359 Options sl.Options
12360 }
12361
12362 // GetNetworkSubnetService returns an instance of the Network_Subnet SoftLayer service
12363 func GetNetworkSubnetService(sess session.SLSession) Network_Subnet {
12364 return Network_Subnet{Session: sess}
12365 }
12366
12367 func (r Network_Subnet) Id(id int) Network_Subnet {
12368 r.Options.Id = &id
12369 return r
12370 }
12371
12372 func (r Network_Subnet) Mask(mask string) Network_Subnet {
12373 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
12374 mask = fmt.Sprintf("mask[%s]", mask)
12375 }
12376
12377 r.Options.Mask = mask
12378 return r
12379 }
12380
12381 func (r Network_Subnet) Filter(filter string) Network_Subnet {
12382 r.Options.Filter = filter
12383 return r
12384 }
12385
12386 func (r Network_Subnet) Limit(limit int) Network_Subnet {
12387 r.Options.Limit = &limit
12388 return r
12389 }
12390
12391 func (r Network_Subnet) Offset(offset int) Network_Subnet {
12392 r.Options.Offset = &offset
12393 return r
12394 }
12395
12396 // This method is used to allow access to a SoftLayer_Network_Storage volume that supports host- or network-level access control.
12397 func (r Network_Subnet) AllowAccessToNetworkStorage(networkStorageTemplateObject *datatypes.Network_Storage) (resp bool, err error) {
12398 params := []interface{}{
12399 networkStorageTemplateObject,
12400 }
12401 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "allowAccessToNetworkStorage", params, &r.Options, &resp)
12402 return
12403 }
12404
12405 // This method is used to allow access to multiple SoftLayer_Network_Storage volumes that support host- or network-level access control.
12406 func (r Network_Subnet) AllowAccessToNetworkStorageList(networkStorageTemplateObjects []datatypes.Network_Storage) (resp bool, err error) {
12407 params := []interface{}{
12408 networkStorageTemplateObjects,
12409 }
12410 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "allowAccessToNetworkStorageList", params, &r.Options, &resp)
12411 return
12412 }
12413
12414 // This interface allows you to remove the route of your secondary subnets. The result will be a subnet that is no longer routed on the network. Remove the route of subnets you are not actively using, as it will make it easier to identify available subnets later.
12415 //
12416 // ”'Important:”' When removing the route of ”Portable” subnets, know that any subnet depending on an IP address provided by the Portable subnet will also have their routes removed!
12417 //
12418 // To review what subnets are routed to IP addresses provided by a ”Portable” subnet, you can utilize the following object mask: 'mask[ipAddresses[endpointSubnets]]'. Any subnet present in conjunction with ”endpointSubnets” is a subnet which depends on the respective IP address.
12419 //
12420 // The behavior of this interface is such that either true or false is returned. A result of false can be interpreted as the clear route request having already been completed. In contrast, a result of true means the subnet is currently routed and will be transitioned. This route change is asynchronous to the request. A response of true does not mean the subnet's route has changed, but simply that it will change. In order to monitor for the completion of the change, you may either attempt a clear route again until the result is false, or monitor one or more SoftLayer_Network_Subnet properties: subnetType, networkVlanId, and or endPointIpAddress to determine if routing of the subnet has been removed.
12421 func (r Network_Subnet) ClearRoute() (resp bool, err error) {
12422 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "clearRoute", nil, &r.Options, &resp)
12423 return
12424 }
12425
12426 // Create the default PTR records for this subnet
12427 func (r Network_Subnet) CreateReverseDomainRecords() (resp datatypes.Dns_Domain_Reverse, err error) {
12428 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "createReverseDomainRecords", nil, &r.Options, &resp)
12429 return
12430 }
12431
12432 // ***DEPRECATED***
12433 // This endpoint is deprecated in favor of the more expressive and capable SoftLayer_Network_Subnet::route, to which this endpoint now proxies. Refer to it for more information.
12434 //
12435 // Similarly, unroute requests are proxied to SoftLayer_Network_Subnet::clearRoute.
12436 // Deprecated: This function has been marked as deprecated.
12437 func (r Network_Subnet) CreateSubnetRouteUpdateTransaction(newEndPointIpAddress *string) (resp bool, err error) {
12438 params := []interface{}{
12439 newEndPointIpAddress,
12440 }
12441 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "createSubnetRouteUpdateTransaction", params, &r.Options, &resp)
12442 return
12443 }
12444
12445 // Edit the note for this subnet.
12446 func (r Network_Subnet) EditNote(note *string) (resp bool, err error) {
12447 params := []interface{}{
12448 note,
12449 }
12450 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "editNote", params, &r.Options, &resp)
12451 return
12452 }
12453
12454 // Retrieve
12455 func (r Network_Subnet) GetAccount() (resp datatypes.Account, err error) {
12456 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getAccount", nil, &r.Options, &resp)
12457 return
12458 }
12459
12460 // Retrieve DEPRECATED
12461 func (r Network_Subnet) GetActiveTransaction() (resp datatypes.Provisioning_Version1_Transaction, err error) {
12462 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getActiveTransaction", nil, &r.Options, &resp)
12463 return
12464 }
12465
12466 // Retrieve The classifier of IP addresses this subnet represents, generally PUBLIC or PRIVATE. This does not necessarily correlate with the network on which the subnet is used.
12467 func (r Network_Subnet) GetAddressSpace() (resp string, err error) {
12468 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getAddressSpace", nil, &r.Options, &resp)
12469 return
12470 }
12471
12472 // Retrieve The link from this subnet to network storage devices supporting access control lists.
12473 func (r Network_Subnet) GetAllowedHost() (resp datatypes.Network_Storage_Allowed_Host, err error) {
12474 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getAllowedHost", nil, &r.Options, &resp)
12475 return
12476 }
12477
12478 // Retrieve The network storage devices this subnet has been granted access to.
12479 func (r Network_Subnet) GetAllowedNetworkStorage() (resp []datatypes.Network_Storage, err error) {
12480 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getAllowedNetworkStorage", nil, &r.Options, &resp)
12481 return
12482 }
12483
12484 // Retrieve The network storage device replicas this subnet has been granted access to.
12485 func (r Network_Subnet) GetAllowedNetworkStorageReplicas() (resp []datatypes.Network_Storage, err error) {
12486 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getAllowedNetworkStorageReplicas", nil, &r.Options, &resp)
12487 return
12488 }
12489
12490 // Retrieves the combination of network storage devices and replicas this subnet has been granted access to. Allows for filtering based on storage device type.
12491 func (r Network_Subnet) GetAttachedNetworkStorages(nasType *string) (resp []datatypes.Network_Storage, err error) {
12492 params := []interface{}{
12493 nasType,
12494 }
12495 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getAttachedNetworkStorages", params, &r.Options, &resp)
12496 return
12497 }
12498
12499 // Retrieves the combination of network storage devices and replicas this subnet has NOT been granted access to. Allows for filtering based on storage device type.
12500 func (r Network_Subnet) GetAvailableNetworkStorages(nasType *string) (resp []datatypes.Network_Storage, err error) {
12501 params := []interface{}{
12502 nasType,
12503 }
12504 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getAvailableNetworkStorages", params, &r.Options, &resp)
12505 return
12506 }
12507
12508 // Retrieve The active billing item for this subnet.
12509 func (r Network_Subnet) GetBillingItem() (resp datatypes.Billing_Item, err error) {
12510 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getBillingItem", nil, &r.Options, &resp)
12511 return
12512 }
12513
12514 // Retrieve
12515 func (r Network_Subnet) GetBoundDescendants() (resp []datatypes.Network_Subnet, err error) {
12516 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getBoundDescendants", nil, &r.Options, &resp)
12517 return
12518 }
12519
12520 // Retrieve Indicates whether this subnet is associated to a network router and is routable on the network.
12521 func (r Network_Subnet) GetBoundRouterFlag() (resp bool, err error) {
12522 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getBoundRouterFlag", nil, &r.Options, &resp)
12523 return
12524 }
12525
12526 // Retrieve The immediate descendants of this subnet.
12527 func (r Network_Subnet) GetChildren() (resp []datatypes.Network_Subnet, err error) {
12528 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getChildren", nil, &r.Options, &resp)
12529 return
12530 }
12531
12532 // Retrieve The datacenter this subnet is primarily associated with.
12533 func (r Network_Subnet) GetDatacenter() (resp datatypes.Location_Datacenter, err error) {
12534 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getDatacenter", nil, &r.Options, &resp)
12535 return
12536 }
12537
12538 // Retrieve The descendants of this subnet, including all parents and children.
12539 func (r Network_Subnet) GetDescendants() (resp []datatypes.Network_Subnet, err error) {
12540 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getDescendants", nil, &r.Options, &resp)
12541 return
12542 }
12543
12544 // Retrieve [DEPRECATED] The description of this subnet.
12545 func (r Network_Subnet) GetDisplayLabel() (resp string, err error) {
12546 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getDisplayLabel", nil, &r.Options, &resp)
12547 return
12548 }
12549
12550 // Retrieve The IP address target of this statically routed subnet.
12551 func (r Network_Subnet) GetEndPointIpAddress() (resp datatypes.Network_Subnet_IpAddress, err error) {
12552 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getEndPointIpAddress", nil, &r.Options, &resp)
12553 return
12554 }
12555
12556 // Retrieve
12557 func (r Network_Subnet) GetGlobalIpRecord() (resp datatypes.Network_Subnet_IpAddress_Global, err error) {
12558 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getGlobalIpRecord", nil, &r.Options, &resp)
12559 return
12560 }
12561
12562 // Retrieve The Bare Metal devices which have been assigned a primary IP address from this subnet.
12563 func (r Network_Subnet) GetHardware() (resp []datatypes.Hardware, err error) {
12564 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getHardware", nil, &r.Options, &resp)
12565 return
12566 }
12567
12568 // Returns a list of IP address assignment details. Only assigned IP addresses are reported on. IP address assignments are presently only recorded and available for Primary Subnets.
12569 //
12570 // Details on the resource assigned to each IP address will only be provided to users with access to the underlying resource. If the user cannot access the resource, a detail record will still be returned for the assignment but without any accompanying resource data.
12571 func (r Network_Subnet) GetIpAddressUsage() (resp []datatypes.Network_Subnet_IpAddress_UsageDetail, err error) {
12572 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getIpAddressUsage", nil, &r.Options, &resp)
12573 return
12574 }
12575
12576 // Retrieve The IP address records belonging to this subnet.
12577 func (r Network_Subnet) GetIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) {
12578 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getIpAddresses", nil, &r.Options, &resp)
12579 return
12580 }
12581
12582 // Retrieve The hardware firewall associated to this subnet via access control list.
12583 func (r Network_Subnet) GetNetworkComponentFirewall() (resp datatypes.Network_Component_Firewall, err error) {
12584 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getNetworkComponentFirewall", nil, &r.Options, &resp)
12585 return
12586 }
12587
12588 // Retrieve
12589 func (r Network_Subnet) GetNetworkProtectionAddresses() (resp []datatypes.Network_Protection_Address, err error) {
12590 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getNetworkProtectionAddresses", nil, &r.Options, &resp)
12591 return
12592 }
12593
12594 // Retrieve The IPSec VPN tunnels associated to this subnet.
12595 func (r Network_Subnet) GetNetworkTunnelContexts() (resp []datatypes.Network_Tunnel_Module_Context, err error) {
12596 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getNetworkTunnelContexts", nil, &r.Options, &resp)
12597 return
12598 }
12599
12600 // Retrieve The VLAN this subnet is associated with.
12601 func (r Network_Subnet) GetNetworkVlan() (resp datatypes.Network_Vlan, err error) {
12602 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getNetworkVlan", nil, &r.Options, &resp)
12603 return
12604 }
12605
12606 // Retrieves a subnet by its id value. Only subnets assigned to your account are accessible.
12607 func (r Network_Subnet) GetObject() (resp datatypes.Network_Subnet, err error) {
12608 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getObject", nil, &r.Options, &resp)
12609 return
12610 }
12611
12612 // Retrieve The pod in which this subnet is currently routed.
12613 func (r Network_Subnet) GetPodName() (resp string, err error) {
12614 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getPodName", nil, &r.Options, &resp)
12615 return
12616 }
12617
12618 // Retrieve
12619 func (r Network_Subnet) GetProtectedIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) {
12620 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getProtectedIpAddresses", nil, &r.Options, &resp)
12621 return
12622 }
12623
12624 // Retrieve The RIR which is authoritative over the network in which this subnet resides.
12625 func (r Network_Subnet) GetRegionalInternetRegistry() (resp datatypes.Network_Regional_Internet_Registry, err error) {
12626 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getRegionalInternetRegistry", nil, &r.Options, &resp)
12627 return
12628 }
12629
12630 // Retrieve The reverse DNS domain associated with this subnet.
12631 func (r Network_Subnet) GetReverseDomain() (resp datatypes.Dns_Domain, err error) {
12632 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getReverseDomain", nil, &r.Options, &resp)
12633 return
12634 }
12635
12636 // Retrieve all reverse DNS records associated with a subnet.
12637 func (r Network_Subnet) GetReverseDomainRecords() (resp []datatypes.Dns_Domain, err error) {
12638 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getReverseDomainRecords", nil, &r.Options, &resp)
12639 return
12640 }
12641
12642 // Retrieve The role identifier that this subnet is participating in. Roles dictate how a subnet may be used.
12643 func (r Network_Subnet) GetRoleKeyName() (resp string, err error) {
12644 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getRoleKeyName", nil, &r.Options, &resp)
12645 return
12646 }
12647
12648 // Retrieve The name of the role the subnet is within. Roles dictate how a subnet may be used.
12649 func (r Network_Subnet) GetRoleName() (resp string, err error) {
12650 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getRoleName", nil, &r.Options, &resp)
12651 return
12652 }
12653
12654 // Returns IP addresses which may be used as routing endpoints for a given subnet. IP address which are currently the network, gateway, or broadcast address of a Secondary Portable subnet, are an address in a Secondary Static subnet, or if the address is not assigned to a resource when part of a Primary Subnet will not be available as a routing endpoint.
12655 func (r Network_Subnet) GetRoutableEndpointIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) {
12656 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getRoutableEndpointIpAddresses", nil, &r.Options, &resp)
12657 return
12658 }
12659
12660 // Retrieve The product and route classifier for this routed subnet, with the following values: PRIMARY, SECONDARY, STATIC_TO_IP, GLOBAL_IP
12661 func (r Network_Subnet) GetRoutingTypeKeyName() (resp string, err error) {
12662 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getRoutingTypeKeyName", nil, &r.Options, &resp)
12663 return
12664 }
12665
12666 // Retrieve The description of the product and route classifier for this routed subnet, with the following values: Primary, Portable, Static, Global.
12667 func (r Network_Subnet) GetRoutingTypeName() (resp string, err error) {
12668 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getRoutingTypeName", nil, &r.Options, &resp)
12669 return
12670 }
12671
12672 // Retrieve the subnet associated with an IP address. You may only retrieve subnets assigned to your SoftLayer customer account.
12673 func (r Network_Subnet) GetSubnetForIpAddress(ipAddress *string) (resp datatypes.Network_Subnet, err error) {
12674 params := []interface{}{
12675 ipAddress,
12676 }
12677 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getSubnetForIpAddress", params, &r.Options, &resp)
12678 return
12679 }
12680
12681 // Retrieve The tags associated to this subnet.
12682 func (r Network_Subnet) GetTagReferences() (resp []datatypes.Tag_Reference, err error) {
12683 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getTagReferences", nil, &r.Options, &resp)
12684 return
12685 }
12686
12687 // Retrieve
12688 func (r Network_Subnet) GetUnboundDescendants() (resp []datatypes.Network_Subnet, err error) {
12689 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getUnboundDescendants", nil, &r.Options, &resp)
12690 return
12691 }
12692
12693 // Retrieve The total number of utilized IP addresses on this subnet. The primary consumer of IP addresses are compute resources, which can consume more than one address. This value is only supported for primary subnets.
12694 func (r Network_Subnet) GetUtilizedIpAddressCount() (resp uint, err error) {
12695 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getUtilizedIpAddressCount", nil, &r.Options, &resp)
12696 return
12697 }
12698
12699 // Retrieve The Virtual Server devices which have been assigned a primary IP address from this subnet.
12700 func (r Network_Subnet) GetVirtualGuests() (resp []datatypes.Virtual_Guest, err error) {
12701 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "getVirtualGuests", nil, &r.Options, &resp)
12702 return
12703 }
12704
12705 // no documentation yet
12706 func (r Network_Subnet) RemoveAccessToNetworkStorageList(networkStorageTemplateObjects []datatypes.Network_Storage) (resp bool, err error) {
12707 params := []interface{}{
12708 networkStorageTemplateObjects,
12709 }
12710 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "removeAccessToNetworkStorageList", params, &r.Options, &resp)
12711 return
12712 }
12713
12714 // This interface allows you to change the route of your secondary subnets. It accommodates a number of ways to identify your desired routing destination through the use of a 'type' and 'identifier'. Subnets may be routed as either Static or Portable, and that designation is dictated by the routing destination specified.
12715 //
12716 // Static subnets have an ultimate routing destination of a single IP address but may not be routed to an existing subnet's IP address whose subnet is routed as a Static. Portable subnets have an ultimate routing destination of a VLAN.
12717 //
12718 // A subnet can be routed to any resource within the same "routing region" as the subnet itself. A subnet's routing region can be diverse but is usually limited to a single data center.
12719 //
12720 // The following identifier 'type' values will result in Static routing: <ul> <li>SoftLayer_Network_Subnet_IpAddress</li> <li>SoftLayer_Hardware_Server</li> <li>SoftLayer_Virtual_Guest</li> </ul>
12721 //
12722 // The following identifier 'type' values will result in Portable routing: <ul> <li>SoftLayer_Network_Vlan</li> </ul>
12723 //
12724 // For each identifier type, one or more 'identifier' formats are possible.
12725 //
12726 // ”SoftLayer_Network_Subnet_IpAddress” will accept the following identifier formats: <ul> <li>An entirely numeric value will be treated as a SoftLayer_Network_Subnet_IpAddress.id value of the desired IP address object.</li> <li>A dotted-quad IPv4 address.</li> <li>A full or compressed IPv6 address.</li> </ul>
12727 //
12728 // ”SoftLayer_Network_Vlan” will accept the following identifier formats: <ul> <li>An entirely numeric value will be treated as a SoftLayer_Network_Vlan.id value of the desired VLAN object.</li> <li>A semantic VLAN identifier of the form <data center short name>.<router>.<vlan number>, where < and > are literal, eg. dal13.fcr01.1234 - the router name may optionally contain the 'a' or 'b' redundancy qualifier (which has no meaning in this context).</li> </ul>
12729 //
12730 // ”SoftLayer_Hardware_Server” will accept the following identifier formats: <ul> <li>An entirely numeric value will be treated as a SoftLayer_Hardware_Server.id value of the desired server.</li> <li>A UUID corresponding to a server's SoftLayer_Hardware_Server.globalIdentifier.</li> <li>A value corresponding to a unique SoftLayer_Hardware_Server.hostname.</li> <li>A value corresponding to a unique fully-qualified domain name in the format 'hostname<domain>' where < and > are literal, e.g. myhost<mydomain.com>, hostname refers to SoftLayer_Hardware_Server.hostname and domain to SoftLayer_Hardware_Server.domain, respectively.</li> </ul>
12731 //
12732 // ”SoftLayer_Virtual_Guest” will accept the following identifier formats: <ul> <li>An entirely numeric value will be treated as a SoftLayer_Virtual_Guest.id value of the desired server.</li> <li>A UUID corresponding to a server's SoftLayer_Virtual_Guest.globalIdentifier.</li> <li>A value corresponding to a unique SoftLayer_Virtual_Guest.hostname.</li> <li>A value corresponding to a unique fully-qualified domain name in the format 'hostname<domain>' where < and > are literal, e.g. myhost<mydomain.com>, hostname refers to SoftLayer_Virtual_Guest.hostname and domain to SoftLayer_Virtual_Guest.domain, respectively.</li> </ul>
12733 //
12734 // The routing destination result of specifying a SoftLayer_Hardware_Server or SoftLayer_Virtual_Guest type will be the primary IP address of the server for the same network segment the subnet is on. Thus, a public subnet will be routed to the server's public, primary IP address. Additionally, this IP address resolution will match the subnet's IP version; routing a IPv6 subnet to a server will result in selection of the primary IPv6 address of the respective network segment, if available.
12735 //
12736 // Subnets may only be routed to the IP version they themselves represent. That means an IPv4 subnet can only be routed to IPv4 addresses. Any type/identifier combination that resolves to an IP address must be able to locate an IP address of the same version as the subnet being routed.
12737 //
12738 // When routing to an IP address on a Primary subnet, only those addresses actively assigned to resources may be targeted. Additionally, the network, gateway, or broadcast address of any Portable subnet may not be a routing destination. For some VLANs utilizing the HSRP redundancy strategy, there are additional addresses which cannot be a route destination.
12739 //
12740 // When routing a subnet that is already routed, note that the subnet first has its route removed; this procedure is the same as what will occur when using SoftLayer_Network_Subnet::clearRoute. Special consideration should be made for subnets routed as Portable. Please refer to the documentation for SoftLayer_Network_Subnet::clearRoute for details.
12741 //
12742 // The behavior of this interface is such that either true or false is returned. A response of false indicates the route request would not result in the route of the subnet changing; attempts to route the subnet to the same destination, even if identified by differing means, will result in no changes. A result of false can be interpreted as the route request having already been completed. In contrast, a result of true means the requested destination is different from the current destination and the subnet's routing will be transitioned. This route change is asynchronous to the request. A response of true does not mean the subnet's route has changed, but simply that it will change. In order to monitor for the completion of the change, you may either attempt a route change again until the result is false, or monitor one or more SoftLayer_Network_Subnet properties: subnetType, networkVlanId, and or endPointIpAddress to determine if routing of the subnet has become the desired route destination.
12743 //
12744 // Use of this operation is limited to a single active request per subnet. If a previous route request is not yet complete, a "not ready" message will be returned upon subsequent requests.
12745 func (r Network_Subnet) Route(typ *string, identifier *string) (resp bool, err error) {
12746 params := []interface{}{
12747 typ,
12748 identifier,
12749 }
12750 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "route", params, &r.Options, &resp)
12751 return
12752 }
12753
12754 // Tag a subnet by passing in one or more tags separated by a comma. Any existing tags you wish to keep should be included in the set of tags, as any missing tags will be removed. To remove all tags from the subnet, send an empty string.
12755 func (r Network_Subnet) SetTags(tags *string) (resp bool, err error) {
12756 params := []interface{}{
12757 tags,
12758 }
12759 err = r.Session.DoRequest("SoftLayer_Network_Subnet", "setTags", params, &r.Options, &resp)
12760 return
12761 }
12762
12763 // The SoftLayer_Network_Subnet_IpAddress data type contains general information relating to a single SoftLayer IPv4 address.
12764 type Network_Subnet_IpAddress struct {
12765 Session session.SLSession
12766 Options sl.Options
12767 }
12768
12769 // GetNetworkSubnetIpAddressService returns an instance of the Network_Subnet_IpAddress SoftLayer service
12770 func GetNetworkSubnetIpAddressService(sess session.SLSession) Network_Subnet_IpAddress {
12771 return Network_Subnet_IpAddress{Session: sess}
12772 }
12773
12774 func (r Network_Subnet_IpAddress) Id(id int) Network_Subnet_IpAddress {
12775 r.Options.Id = &id
12776 return r
12777 }
12778
12779 func (r Network_Subnet_IpAddress) Mask(mask string) Network_Subnet_IpAddress {
12780 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
12781 mask = fmt.Sprintf("mask[%s]", mask)
12782 }
12783
12784 r.Options.Mask = mask
12785 return r
12786 }
12787
12788 func (r Network_Subnet_IpAddress) Filter(filter string) Network_Subnet_IpAddress {
12789 r.Options.Filter = filter
12790 return r
12791 }
12792
12793 func (r Network_Subnet_IpAddress) Limit(limit int) Network_Subnet_IpAddress {
12794 r.Options.Limit = &limit
12795 return r
12796 }
12797
12798 func (r Network_Subnet_IpAddress) Offset(offset int) Network_Subnet_IpAddress {
12799 r.Options.Offset = &offset
12800 return r
12801 }
12802
12803 // This method is used to allow access to a SoftLayer_Network_Storage volume that supports host- or network-level access control.
12804 func (r Network_Subnet_IpAddress) AllowAccessToNetworkStorage(networkStorageTemplateObject *datatypes.Network_Storage) (resp bool, err error) {
12805 params := []interface{}{
12806 networkStorageTemplateObject,
12807 }
12808 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "allowAccessToNetworkStorage", params, &r.Options, &resp)
12809 return
12810 }
12811
12812 // This method is used to allow access to multiple SoftLayer_Network_Storage volumes that support host- or network-level access control.
12813 func (r Network_Subnet_IpAddress) AllowAccessToNetworkStorageList(networkStorageTemplateObjects []datatypes.Network_Storage) (resp bool, err error) {
12814 params := []interface{}{
12815 networkStorageTemplateObjects,
12816 }
12817 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "allowAccessToNetworkStorageList", params, &r.Options, &resp)
12818 return
12819 }
12820
12821 // Edit a subnet IP address.
12822 func (r Network_Subnet_IpAddress) EditObject(templateObject *datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
12823 params := []interface{}{
12824 templateObject,
12825 }
12826 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "editObject", params, &r.Options, &resp)
12827 return
12828 }
12829
12830 // This function is used to edit multiple objects at the same time.
12831 func (r Network_Subnet_IpAddress) EditObjects(templateObjects []datatypes.Network_Subnet_IpAddress) (resp bool, err error) {
12832 params := []interface{}{
12833 templateObjects,
12834 }
12835 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "editObjects", params, &r.Options, &resp)
12836 return
12837 }
12838
12839 // Search for an IP address record by IPv4 address.
12840 func (r Network_Subnet_IpAddress) FindByIpv4Address(ipAddress *string) (resp datatypes.Network_Subnet_IpAddress, err error) {
12841 params := []interface{}{
12842 ipAddress,
12843 }
12844 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "findByIpv4Address", params, &r.Options, &resp)
12845 return
12846 }
12847
12848 // Returns a list of IP address assignment details. Only assigned IP addresses are reported on. IP address assignments are presently only recorded and available for Primary Subnets and their IP addresses.
12849 //
12850 // Details on the resource assigned to each IP address will only be provided to users with access to the underlying resource. If the user cannot access the resource, a detail record will still be returned for the assignment but without any accompanying resource data.
12851 //
12852 // Callers may provide a SoftLayer_Network_Subnet_IpAddress object filter as search criteria. A result limit and offset may also be provided. A maximum of 1024 results can be retrieved at a time.
12853 func (r Network_Subnet_IpAddress) FindUsage() (resp []datatypes.Network_Subnet_IpAddress_UsageDetail, err error) {
12854 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "findUsage", nil, &r.Options, &resp)
12855 return
12856 }
12857
12858 // Retrieve The SoftLayer_Network_Storage_Allowed_Host information to connect this IP Address to Network Storage supporting access control lists.
12859 func (r Network_Subnet_IpAddress) GetAllowedHost() (resp datatypes.Network_Storage_Allowed_Host, err error) {
12860 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getAllowedHost", nil, &r.Options, &resp)
12861 return
12862 }
12863
12864 // Retrieve The SoftLayer_Network_Storage objects that this SoftLayer_Hardware has access to.
12865 func (r Network_Subnet_IpAddress) GetAllowedNetworkStorage() (resp []datatypes.Network_Storage, err error) {
12866 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getAllowedNetworkStorage", nil, &r.Options, &resp)
12867 return
12868 }
12869
12870 // Retrieve The SoftLayer_Network_Storage objects whose Replica that this SoftLayer_Hardware has access to.
12871 func (r Network_Subnet_IpAddress) GetAllowedNetworkStorageReplicas() (resp []datatypes.Network_Storage, err error) {
12872 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getAllowedNetworkStorageReplicas", nil, &r.Options, &resp)
12873 return
12874 }
12875
12876 // Retrieve The application delivery controller using this address.
12877 func (r Network_Subnet_IpAddress) GetApplicationDeliveryController() (resp datatypes.Network_Application_Delivery_Controller, err error) {
12878 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getApplicationDeliveryController", nil, &r.Options, &resp)
12879 return
12880 }
12881
12882 // This method is retrieve a list of SoftLayer_Network_Storage volumes that are authorized access to this SoftLayer_Network_Subnet_IpAddress.
12883 func (r Network_Subnet_IpAddress) GetAttachedNetworkStorages(nasType *string) (resp []datatypes.Network_Storage, err error) {
12884 params := []interface{}{
12885 nasType,
12886 }
12887 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getAttachedNetworkStorages", params, &r.Options, &resp)
12888 return
12889 }
12890
12891 // This method retrieves a list of SoftLayer_Network_Storage volumes that can be authorized to this SoftLayer_Network_Subnet_IpAddress.
12892 func (r Network_Subnet_IpAddress) GetAvailableNetworkStorages(nasType *string) (resp []datatypes.Network_Storage, err error) {
12893 params := []interface{}{
12894 nasType,
12895 }
12896 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getAvailableNetworkStorages", params, &r.Options, &resp)
12897 return
12898 }
12899
12900 // Search for an IP address record by IP address.
12901 func (r Network_Subnet_IpAddress) GetByIpAddress(ipAddress *string) (resp datatypes.Network_Subnet_IpAddress, err error) {
12902 params := []interface{}{
12903 ipAddress,
12904 }
12905 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getByIpAddress", params, &r.Options, &resp)
12906 return
12907 }
12908
12909 // Retrieve An IPSec network tunnel's address translations. These translations use a SoftLayer ip address from an assigned static NAT subnet to deliver the packets to the remote (customer) destination.
12910 func (r Network_Subnet_IpAddress) GetContextTunnelTranslations() (resp []datatypes.Network_Tunnel_Module_Context_Address_Translation, err error) {
12911 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getContextTunnelTranslations", nil, &r.Options, &resp)
12912 return
12913 }
12914
12915 // Retrieve All the subnets routed to an IP address.
12916 func (r Network_Subnet_IpAddress) GetEndpointSubnets() (resp []datatypes.Network_Subnet, err error) {
12917 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getEndpointSubnets", nil, &r.Options, &resp)
12918 return
12919 }
12920
12921 // Retrieve A network component that is statically routed to an IP address.
12922 func (r Network_Subnet_IpAddress) GetGuestNetworkComponent() (resp datatypes.Virtual_Guest_Network_Component, err error) {
12923 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getGuestNetworkComponent", nil, &r.Options, &resp)
12924 return
12925 }
12926
12927 // Retrieve A network component that is statically routed to an IP address.
12928 func (r Network_Subnet_IpAddress) GetGuestNetworkComponentBinding() (resp datatypes.Virtual_Guest_Network_Component_IpAddress, err error) {
12929 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getGuestNetworkComponentBinding", nil, &r.Options, &resp)
12930 return
12931 }
12932
12933 // Retrieve A server that this IP address is routed to.
12934 func (r Network_Subnet_IpAddress) GetHardware() (resp datatypes.Hardware, err error) {
12935 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getHardware", nil, &r.Options, &resp)
12936 return
12937 }
12938
12939 // Retrieve A network component that is statically routed to an IP address.
12940 func (r Network_Subnet_IpAddress) GetNetworkComponent() (resp datatypes.Network_Component, err error) {
12941 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getNetworkComponent", nil, &r.Options, &resp)
12942 return
12943 }
12944
12945 // getObject retrieves the SoftLayer_Network_Subnet_IpAddress object whose ID number corresponds to the ID number of the init parameter passed to the SoftLayer_Network_Subnet_IpAddress service. You can only retrieve the IP address whose subnet is associated with a VLAN that is associated with the account that your portal user is assigned to.
12946 func (r Network_Subnet_IpAddress) GetObject() (resp datatypes.Network_Subnet_IpAddress, err error) {
12947 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getObject", nil, &r.Options, &resp)
12948 return
12949 }
12950
12951 // Retrieve The network gateway appliance using this address as the private IP address.
12952 func (r Network_Subnet_IpAddress) GetPrivateNetworkGateway() (resp datatypes.Network_Gateway, err error) {
12953 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getPrivateNetworkGateway", nil, &r.Options, &resp)
12954 return
12955 }
12956
12957 // Retrieve
12958 func (r Network_Subnet_IpAddress) GetProtectionAddress() (resp []datatypes.Network_Protection_Address, err error) {
12959 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getProtectionAddress", nil, &r.Options, &resp)
12960 return
12961 }
12962
12963 // Retrieve The network gateway appliance using this address as the public IP address.
12964 func (r Network_Subnet_IpAddress) GetPublicNetworkGateway() (resp datatypes.Network_Gateway, err error) {
12965 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getPublicNetworkGateway", nil, &r.Options, &resp)
12966 return
12967 }
12968
12969 // Retrieve An IPMI-based management network component of the IP address.
12970 func (r Network_Subnet_IpAddress) GetRemoteManagementNetworkComponent() (resp datatypes.Network_Component, err error) {
12971 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getRemoteManagementNetworkComponent", nil, &r.Options, &resp)
12972 return
12973 }
12974
12975 // Retrieve An IP address' associated subnet.
12976 func (r Network_Subnet_IpAddress) GetSubnet() (resp datatypes.Network_Subnet, err error) {
12977 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getSubnet", nil, &r.Options, &resp)
12978 return
12979 }
12980
12981 // Retrieve All events for this IP address stored in the datacenter syslogs from the last 24 hours
12982 func (r Network_Subnet_IpAddress) GetSyslogEventsOneDay() (resp []datatypes.Network_Logging_Syslog, err error) {
12983 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getSyslogEventsOneDay", nil, &r.Options, &resp)
12984 return
12985 }
12986
12987 // Retrieve All events for this IP address stored in the datacenter syslogs from the last 7 days
12988 func (r Network_Subnet_IpAddress) GetSyslogEventsSevenDays() (resp []datatypes.Network_Logging_Syslog, err error) {
12989 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getSyslogEventsSevenDays", nil, &r.Options, &resp)
12990 return
12991 }
12992
12993 // Retrieve Top Ten network datacenter syslog events, grouped by destination port, for the last 24 hours
12994 func (r Network_Subnet_IpAddress) GetTopTenSyslogEventsByDestinationPortOneDay() (resp []datatypes.Network_Logging_Syslog, err error) {
12995 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getTopTenSyslogEventsByDestinationPortOneDay", nil, &r.Options, &resp)
12996 return
12997 }
12998
12999 // Retrieve Top Ten network datacenter syslog events, grouped by destination port, for the last 7 days
13000 func (r Network_Subnet_IpAddress) GetTopTenSyslogEventsByDestinationPortSevenDays() (resp []datatypes.Network_Logging_Syslog, err error) {
13001 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getTopTenSyslogEventsByDestinationPortSevenDays", nil, &r.Options, &resp)
13002 return
13003 }
13004
13005 // Retrieve Top Ten network datacenter syslog events, grouped by source port, for the last 24 hours
13006 func (r Network_Subnet_IpAddress) GetTopTenSyslogEventsByProtocolsOneDay() (resp []datatypes.Network_Logging_Syslog, err error) {
13007 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getTopTenSyslogEventsByProtocolsOneDay", nil, &r.Options, &resp)
13008 return
13009 }
13010
13011 // Retrieve Top Ten network datacenter syslog events, grouped by source port, for the last 7 days
13012 func (r Network_Subnet_IpAddress) GetTopTenSyslogEventsByProtocolsSevenDays() (resp []datatypes.Network_Logging_Syslog, err error) {
13013 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getTopTenSyslogEventsByProtocolsSevenDays", nil, &r.Options, &resp)
13014 return
13015 }
13016
13017 // Retrieve Top Ten network datacenter syslog events, grouped by source ip address, for the last 24 hours
13018 func (r Network_Subnet_IpAddress) GetTopTenSyslogEventsBySourceIpOneDay() (resp []datatypes.Network_Logging_Syslog, err error) {
13019 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getTopTenSyslogEventsBySourceIpOneDay", nil, &r.Options, &resp)
13020 return
13021 }
13022
13023 // Retrieve Top Ten network datacenter syslog events, grouped by source ip address, for the last 7 days
13024 func (r Network_Subnet_IpAddress) GetTopTenSyslogEventsBySourceIpSevenDays() (resp []datatypes.Network_Logging_Syslog, err error) {
13025 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getTopTenSyslogEventsBySourceIpSevenDays", nil, &r.Options, &resp)
13026 return
13027 }
13028
13029 // Retrieve Top Ten network datacenter syslog events, grouped by source port, for the last 24 hours
13030 func (r Network_Subnet_IpAddress) GetTopTenSyslogEventsBySourcePortOneDay() (resp []datatypes.Network_Logging_Syslog, err error) {
13031 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getTopTenSyslogEventsBySourcePortOneDay", nil, &r.Options, &resp)
13032 return
13033 }
13034
13035 // Retrieve Top Ten network datacenter syslog events, grouped by source port, for the last 7 days
13036 func (r Network_Subnet_IpAddress) GetTopTenSyslogEventsBySourcePortSevenDays() (resp []datatypes.Network_Logging_Syslog, err error) {
13037 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getTopTenSyslogEventsBySourcePortSevenDays", nil, &r.Options, &resp)
13038 return
13039 }
13040
13041 // Retrieve A virtual guest that this IP address is routed to.
13042 func (r Network_Subnet_IpAddress) GetVirtualGuest() (resp datatypes.Virtual_Guest, err error) {
13043 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getVirtualGuest", nil, &r.Options, &resp)
13044 return
13045 }
13046
13047 // Retrieve Virtual licenses allocated for an IP Address.
13048 func (r Network_Subnet_IpAddress) GetVirtualLicenses() (resp []datatypes.Software_VirtualLicense, err error) {
13049 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "getVirtualLicenses", nil, &r.Options, &resp)
13050 return
13051 }
13052
13053 // This method is used to remove access to multiple SoftLayer_Network_Storage volumes
13054 func (r Network_Subnet_IpAddress) RemoveAccessToNetworkStorageList(networkStorageTemplateObjects []datatypes.Network_Storage) (resp bool, err error) {
13055 params := []interface{}{
13056 networkStorageTemplateObjects,
13057 }
13058 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress", "removeAccessToNetworkStorageList", params, &r.Options, &resp)
13059 return
13060 }
13061
13062 // no documentation yet
13063 type Network_Subnet_IpAddress_Global struct {
13064 Session session.SLSession
13065 Options sl.Options
13066 }
13067
13068 // GetNetworkSubnetIpAddressGlobalService returns an instance of the Network_Subnet_IpAddress_Global SoftLayer service
13069 func GetNetworkSubnetIpAddressGlobalService(sess session.SLSession) Network_Subnet_IpAddress_Global {
13070 return Network_Subnet_IpAddress_Global{Session: sess}
13071 }
13072
13073 func (r Network_Subnet_IpAddress_Global) Id(id int) Network_Subnet_IpAddress_Global {
13074 r.Options.Id = &id
13075 return r
13076 }
13077
13078 func (r Network_Subnet_IpAddress_Global) Mask(mask string) Network_Subnet_IpAddress_Global {
13079 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
13080 mask = fmt.Sprintf("mask[%s]", mask)
13081 }
13082
13083 r.Options.Mask = mask
13084 return r
13085 }
13086
13087 func (r Network_Subnet_IpAddress_Global) Filter(filter string) Network_Subnet_IpAddress_Global {
13088 r.Options.Filter = filter
13089 return r
13090 }
13091
13092 func (r Network_Subnet_IpAddress_Global) Limit(limit int) Network_Subnet_IpAddress_Global {
13093 r.Options.Limit = &limit
13094 return r
13095 }
13096
13097 func (r Network_Subnet_IpAddress_Global) Offset(offset int) Network_Subnet_IpAddress_Global {
13098 r.Options.Offset = &offset
13099 return r
13100 }
13101
13102 // Retrieve
13103 func (r Network_Subnet_IpAddress_Global) GetAccount() (resp datatypes.Account, err error) {
13104 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress_Global", "getAccount", nil, &r.Options, &resp)
13105 return
13106 }
13107
13108 // Retrieve DEPRECATED
13109 func (r Network_Subnet_IpAddress_Global) GetActiveTransaction() (resp datatypes.Provisioning_Version1_Transaction, err error) {
13110 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress_Global", "getActiveTransaction", nil, &r.Options, &resp)
13111 return
13112 }
13113
13114 // Retrieve The billing item for this Global IP.
13115 func (r Network_Subnet_IpAddress_Global) GetBillingItem() (resp datatypes.Billing_Item_Network_Subnet_IpAddress_Global, err error) {
13116 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress_Global", "getBillingItem", nil, &r.Options, &resp)
13117 return
13118 }
13119
13120 // Retrieve
13121 func (r Network_Subnet_IpAddress_Global) GetDestinationIpAddress() (resp datatypes.Network_Subnet_IpAddress, err error) {
13122 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress_Global", "getDestinationIpAddress", nil, &r.Options, &resp)
13123 return
13124 }
13125
13126 // Retrieve
13127 func (r Network_Subnet_IpAddress_Global) GetIpAddress() (resp datatypes.Network_Subnet_IpAddress, err error) {
13128 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress_Global", "getIpAddress", nil, &r.Options, &resp)
13129 return
13130 }
13131
13132 // no documentation yet
13133 func (r Network_Subnet_IpAddress_Global) GetObject() (resp datatypes.Network_Subnet_IpAddress_Global, err error) {
13134 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress_Global", "getObject", nil, &r.Options, &resp)
13135 return
13136 }
13137
13138 // ***DEPRECATED***
13139 // This endpoint is deprecated in favor of the more expressive and capable SoftLayer_Network_Subnet::route, to which this endpoint now proxies. Refer to it for more information.
13140 //
13141 // Similarly, unroute requests are proxied to SoftLayer_Network_Subnet::clearRoute.
13142 // Deprecated: This function has been marked as deprecated.
13143 func (r Network_Subnet_IpAddress_Global) Route(newEndPointIpAddress *string) (resp bool, err error) {
13144 params := []interface{}{
13145 newEndPointIpAddress,
13146 }
13147 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress_Global", "route", params, &r.Options, &resp)
13148 return
13149 }
13150
13151 // ***DEPRECATED***
13152 // This endpoint is deprecated in favor of SoftLayer_Network_Subnet::clearRoute, to which this endpoint now proxies. Refer to it for more information.
13153 // Deprecated: This function has been marked as deprecated.
13154 func (r Network_Subnet_IpAddress_Global) Unroute() (resp bool, err error) {
13155 err = r.Session.DoRequest("SoftLayer_Network_Subnet_IpAddress_Global", "unroute", nil, &r.Options, &resp)
13156 return
13157 }
13158
13159 // DEPRECATED
13160 // Deprecated: This function has been marked as deprecated.
13161 type Network_Tunnel_Module_Context struct {
13162 Session session.SLSession
13163 Options sl.Options
13164 }
13165
13166 // GetNetworkTunnelModuleContextService returns an instance of the Network_Tunnel_Module_Context SoftLayer service
13167 func GetNetworkTunnelModuleContextService(sess session.SLSession) Network_Tunnel_Module_Context {
13168 return Network_Tunnel_Module_Context{Session: sess}
13169 }
13170
13171 func (r Network_Tunnel_Module_Context) Id(id int) Network_Tunnel_Module_Context {
13172 r.Options.Id = &id
13173 return r
13174 }
13175
13176 func (r Network_Tunnel_Module_Context) Mask(mask string) Network_Tunnel_Module_Context {
13177 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
13178 mask = fmt.Sprintf("mask[%s]", mask)
13179 }
13180
13181 r.Options.Mask = mask
13182 return r
13183 }
13184
13185 func (r Network_Tunnel_Module_Context) Filter(filter string) Network_Tunnel_Module_Context {
13186 r.Options.Filter = filter
13187 return r
13188 }
13189
13190 func (r Network_Tunnel_Module_Context) Limit(limit int) Network_Tunnel_Module_Context {
13191 r.Options.Limit = &limit
13192 return r
13193 }
13194
13195 func (r Network_Tunnel_Module_Context) Offset(offset int) Network_Tunnel_Module_Context {
13196 r.Options.Offset = &offset
13197 return r
13198 }
13199
13200 // Deprecated
13201 func (r Network_Tunnel_Module_Context) AddCustomerSubnetToNetworkTunnel(subnetId *int) (resp bool, err error) {
13202 params := []interface{}{
13203 subnetId,
13204 }
13205 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "addCustomerSubnetToNetworkTunnel", params, &r.Options, &resp)
13206 return
13207 }
13208
13209 // Deprecated
13210 // Deprecated: This function has been marked as deprecated.
13211 func (r Network_Tunnel_Module_Context) AddPrivateSubnetToNetworkTunnel(subnetId *int) (resp bool, err error) {
13212 params := []interface{}{
13213 subnetId,
13214 }
13215 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "addPrivateSubnetToNetworkTunnel", params, &r.Options, &resp)
13216 return
13217 }
13218
13219 // Deprecated
13220 func (r Network_Tunnel_Module_Context) AddServiceSubnetToNetworkTunnel(subnetId *int) (resp bool, err error) {
13221 params := []interface{}{
13222 subnetId,
13223 }
13224 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "addServiceSubnetToNetworkTunnel", params, &r.Options, &resp)
13225 return
13226 }
13227
13228 // Deprecated
13229 func (r Network_Tunnel_Module_Context) ApplyConfigurationsToDevice() (resp bool, err error) {
13230 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "applyConfigurationsToDevice", nil, &r.Options, &resp)
13231 return
13232 }
13233
13234 // Deprecated
13235 func (r Network_Tunnel_Module_Context) CreateAddressTranslation(translation *datatypes.Network_Tunnel_Module_Context_Address_Translation) (resp datatypes.Network_Tunnel_Module_Context_Address_Translation, err error) {
13236 params := []interface{}{
13237 translation,
13238 }
13239 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "createAddressTranslation", params, &r.Options, &resp)
13240 return
13241 }
13242
13243 // Deprecated
13244 func (r Network_Tunnel_Module_Context) CreateAddressTranslations(translations []datatypes.Network_Tunnel_Module_Context_Address_Translation) (resp []datatypes.Network_Tunnel_Module_Context_Address_Translation, err error) {
13245 params := []interface{}{
13246 translations,
13247 }
13248 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "createAddressTranslations", params, &r.Options, &resp)
13249 return
13250 }
13251
13252 // Deprecated
13253 func (r Network_Tunnel_Module_Context) DeleteAddressTranslation(translationId *int) (resp bool, err error) {
13254 params := []interface{}{
13255 translationId,
13256 }
13257 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "deleteAddressTranslation", params, &r.Options, &resp)
13258 return
13259 }
13260
13261 // Deprecated
13262 func (r Network_Tunnel_Module_Context) DownloadAddressTranslationConfigurations() (resp datatypes.Container_Utility_File_Entity, err error) {
13263 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "downloadAddressTranslationConfigurations", nil, &r.Options, &resp)
13264 return
13265 }
13266
13267 // Deprecated
13268 func (r Network_Tunnel_Module_Context) DownloadParameterConfigurations() (resp datatypes.Container_Utility_File_Entity, err error) {
13269 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "downloadParameterConfigurations", nil, &r.Options, &resp)
13270 return
13271 }
13272
13273 // Deprecated
13274 func (r Network_Tunnel_Module_Context) EditAddressTranslation(translation *datatypes.Network_Tunnel_Module_Context_Address_Translation) (resp datatypes.Network_Tunnel_Module_Context_Address_Translation, err error) {
13275 params := []interface{}{
13276 translation,
13277 }
13278 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "editAddressTranslation", params, &r.Options, &resp)
13279 return
13280 }
13281
13282 // Deprecated
13283 func (r Network_Tunnel_Module_Context) EditAddressTranslations(translations []datatypes.Network_Tunnel_Module_Context_Address_Translation) (resp []datatypes.Network_Tunnel_Module_Context_Address_Translation, err error) {
13284 params := []interface{}{
13285 translations,
13286 }
13287 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "editAddressTranslations", params, &r.Options, &resp)
13288 return
13289 }
13290
13291 // Deprecated
13292 func (r Network_Tunnel_Module_Context) EditObject(templateObject *datatypes.Network_Tunnel_Module_Context) (resp bool, err error) {
13293 params := []interface{}{
13294 templateObject,
13295 }
13296 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "editObject", params, &r.Options, &resp)
13297 return
13298 }
13299
13300 // Retrieve The account that a network tunnel belongs to.
13301 func (r Network_Tunnel_Module_Context) GetAccount() (resp datatypes.Account, err error) {
13302 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getAccount", nil, &r.Options, &resp)
13303 return
13304 }
13305
13306 // Retrieve DEPRECATED
13307 func (r Network_Tunnel_Module_Context) GetActiveTransaction() (resp datatypes.Provisioning_Version1_Transaction, err error) {
13308 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getActiveTransaction", nil, &r.Options, &resp)
13309 return
13310 }
13311
13312 // Deprecated
13313 func (r Network_Tunnel_Module_Context) GetAddressTranslationConfigurations() (resp string, err error) {
13314 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getAddressTranslationConfigurations", nil, &r.Options, &resp)
13315 return
13316 }
13317
13318 // Retrieve A network tunnel's address translations.
13319 func (r Network_Tunnel_Module_Context) GetAddressTranslations() (resp []datatypes.Network_Tunnel_Module_Context_Address_Translation, err error) {
13320 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getAddressTranslations", nil, &r.Options, &resp)
13321 return
13322 }
13323
13324 // Retrieve Subnets that provide access to SoftLayer services such as the management portal and the SoftLayer API.
13325 func (r Network_Tunnel_Module_Context) GetAllAvailableServiceSubnets() (resp []datatypes.Network_Subnet, err error) {
13326 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getAllAvailableServiceSubnets", nil, &r.Options, &resp)
13327 return
13328 }
13329
13330 // Deprecated
13331 func (r Network_Tunnel_Module_Context) GetAuthenticationDefault() (resp string, err error) {
13332 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getAuthenticationDefault", nil, &r.Options, &resp)
13333 return
13334 }
13335
13336 // Deprecated
13337 func (r Network_Tunnel_Module_Context) GetAuthenticationOptions() (resp []string, err error) {
13338 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getAuthenticationOptions", nil, &r.Options, &resp)
13339 return
13340 }
13341
13342 // Retrieve The current billing item for network tunnel.
13343 func (r Network_Tunnel_Module_Context) GetBillingItem() (resp datatypes.Billing_Item, err error) {
13344 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getBillingItem", nil, &r.Options, &resp)
13345 return
13346 }
13347
13348 // Retrieve Remote subnets that are allowed access through a network tunnel.
13349 func (r Network_Tunnel_Module_Context) GetCustomerSubnets() (resp []datatypes.Network_Customer_Subnet, err error) {
13350 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getCustomerSubnets", nil, &r.Options, &resp)
13351 return
13352 }
13353
13354 // Retrieve The datacenter location for one end of the network tunnel that allows access to account's private subnets.
13355 func (r Network_Tunnel_Module_Context) GetDatacenter() (resp datatypes.Location, err error) {
13356 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getDatacenter", nil, &r.Options, &resp)
13357 return
13358 }
13359
13360 // Deprecated
13361 func (r Network_Tunnel_Module_Context) GetDiffieHellmanGroupDefault() (resp int, err error) {
13362 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getDiffieHellmanGroupDefault", nil, &r.Options, &resp)
13363 return
13364 }
13365
13366 // Deprecated
13367 func (r Network_Tunnel_Module_Context) GetDiffieHellmanGroupOptions() (resp []int, err error) {
13368 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getDiffieHellmanGroupOptions", nil, &r.Options, &resp)
13369 return
13370 }
13371
13372 // Deprecated
13373 func (r Network_Tunnel_Module_Context) GetEncryptionDefault() (resp string, err error) {
13374 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getEncryptionDefault", nil, &r.Options, &resp)
13375 return
13376 }
13377
13378 // Deprecated
13379 func (r Network_Tunnel_Module_Context) GetEncryptionOptions() (resp []string, err error) {
13380 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getEncryptionOptions", nil, &r.Options, &resp)
13381 return
13382 }
13383
13384 // Retrieve Private subnets that can be accessed through the network tunnel.
13385 func (r Network_Tunnel_Module_Context) GetInternalSubnets() (resp []datatypes.Network_Subnet, err error) {
13386 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getInternalSubnets", nil, &r.Options, &resp)
13387 return
13388 }
13389
13390 // Deprecated
13391 func (r Network_Tunnel_Module_Context) GetKeylifeLimits() (resp []int, err error) {
13392 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getKeylifeLimits", nil, &r.Options, &resp)
13393 return
13394 }
13395
13396 // DEPRECATED
13397 func (r Network_Tunnel_Module_Context) GetObject() (resp datatypes.Network_Tunnel_Module_Context, err error) {
13398 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getObject", nil, &r.Options, &resp)
13399 return
13400 }
13401
13402 // Deprecated
13403 func (r Network_Tunnel_Module_Context) GetParameterConfigurationsForCustomerView() (resp string, err error) {
13404 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getParameterConfigurationsForCustomerView", nil, &r.Options, &resp)
13405 return
13406 }
13407
13408 // Deprecated
13409 func (r Network_Tunnel_Module_Context) GetPhaseOneKeylifeDefault() (resp string, err error) {
13410 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getPhaseOneKeylifeDefault", nil, &r.Options, &resp)
13411 return
13412 }
13413
13414 // Deprecated
13415 func (r Network_Tunnel_Module_Context) GetPhaseTwoKeylifeDefault() (resp string, err error) {
13416 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getPhaseTwoKeylifeDefault", nil, &r.Options, &resp)
13417 return
13418 }
13419
13420 // Retrieve Service subnets that can be access through the network tunnel.
13421 func (r Network_Tunnel_Module_Context) GetServiceSubnets() (resp []datatypes.Network_Subnet, err error) {
13422 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getServiceSubnets", nil, &r.Options, &resp)
13423 return
13424 }
13425
13426 // Retrieve Subnets used for a network tunnel's address translations.
13427 func (r Network_Tunnel_Module_Context) GetStaticRouteSubnets() (resp []datatypes.Network_Subnet, err error) {
13428 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getStaticRouteSubnets", nil, &r.Options, &resp)
13429 return
13430 }
13431
13432 // Retrieve DEPRECATED
13433 func (r Network_Tunnel_Module_Context) GetTransactionHistory() (resp []datatypes.Provisioning_Version1_Transaction, err error) {
13434 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "getTransactionHistory", nil, &r.Options, &resp)
13435 return
13436 }
13437
13438 // Deprecated
13439 func (r Network_Tunnel_Module_Context) RemoveCustomerSubnetFromNetworkTunnel(subnetId *int) (resp bool, err error) {
13440 params := []interface{}{
13441 subnetId,
13442 }
13443 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "removeCustomerSubnetFromNetworkTunnel", params, &r.Options, &resp)
13444 return
13445 }
13446
13447 // Deprecated
13448 func (r Network_Tunnel_Module_Context) RemovePrivateSubnetFromNetworkTunnel(subnetId *int) (resp bool, err error) {
13449 params := []interface{}{
13450 subnetId,
13451 }
13452 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "removePrivateSubnetFromNetworkTunnel", params, &r.Options, &resp)
13453 return
13454 }
13455
13456 // Deprecated
13457 func (r Network_Tunnel_Module_Context) RemoveServiceSubnetFromNetworkTunnel(subnetId *int) (resp bool, err error) {
13458 params := []interface{}{
13459 subnetId,
13460 }
13461 err = r.Session.DoRequest("SoftLayer_Network_Tunnel_Module_Context", "removeServiceSubnetFromNetworkTunnel", params, &r.Options, &resp)
13462 return
13463 }
13464
13465 // VLANs comprise the fundamental segmentation model on the network, isolating customer networks from one another.
13466 //
13467 // VLANs are scoped to a single network, generally public or private, and a pod. Through association to a single VLAN, assigned subnets are routed on the network to provide IP address connectivity.
13468 //
13469 // Compute devices are associated to a single VLAN per active network, to which the Primary IP Address and containing Primary Subnet belongs. Additional VLANs may be associated to bare metal devices using VLAN trunking.
13470 //
13471 // [VLAN at Wikipedia](https://en.wikipedia.org/wiki/VLAN)
13472 type Network_Vlan struct {
13473 Session session.SLSession
13474 Options sl.Options
13475 }
13476
13477 // GetNetworkVlanService returns an instance of the Network_Vlan SoftLayer service
13478 func GetNetworkVlanService(sess session.SLSession) Network_Vlan {
13479 return Network_Vlan{Session: sess}
13480 }
13481
13482 func (r Network_Vlan) Id(id int) Network_Vlan {
13483 r.Options.Id = &id
13484 return r
13485 }
13486
13487 func (r Network_Vlan) Mask(mask string) Network_Vlan {
13488 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
13489 mask = fmt.Sprintf("mask[%s]", mask)
13490 }
13491
13492 r.Options.Mask = mask
13493 return r
13494 }
13495
13496 func (r Network_Vlan) Filter(filter string) Network_Vlan {
13497 r.Options.Filter = filter
13498 return r
13499 }
13500
13501 func (r Network_Vlan) Limit(limit int) Network_Vlan {
13502 r.Options.Limit = &limit
13503 return r
13504 }
13505
13506 func (r Network_Vlan) Offset(offset int) Network_Vlan {
13507 r.Options.Offset = &offset
13508 return r
13509 }
13510
13511 // Updates this VLAN using the provided VLAN template.
13512 //
13513 // The following properties may be modified.
13514 //
13515 // - "name" - A description no more than 20 characters in length.
13516 func (r Network_Vlan) EditObject(templateObject *datatypes.Network_Vlan) (resp bool, err error) {
13517 params := []interface{}{
13518 templateObject,
13519 }
13520 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "editObject", params, &r.Options, &resp)
13521 return
13522 }
13523
13524 // Retrieve The account this VLAN is associated with.
13525 func (r Network_Vlan) GetAccount() (resp datatypes.Account, err error) {
13526 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getAccount", nil, &r.Options, &resp)
13527 return
13528 }
13529
13530 // Retrieve The primary IPv4 subnets routed on this VLAN, excluding the primarySubnet.
13531 func (r Network_Vlan) GetAdditionalPrimarySubnets() (resp []datatypes.Network_Subnet, err error) {
13532 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getAdditionalPrimarySubnets", nil, &r.Options, &resp)
13533 return
13534 }
13535
13536 // Retrieve The gateway device this VLAN is associated with for routing purposes.
13537 func (r Network_Vlan) GetAttachedNetworkGateway() (resp datatypes.Network_Gateway, err error) {
13538 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getAttachedNetworkGateway", nil, &r.Options, &resp)
13539 return
13540 }
13541
13542 // Retrieve A value of '1' indicates this VLAN is associated with a gateway device for routing purposes.
13543 func (r Network_Vlan) GetAttachedNetworkGatewayFlag() (resp bool, err error) {
13544 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getAttachedNetworkGatewayFlag", nil, &r.Options, &resp)
13545 return
13546 }
13547
13548 // Retrieve The gateway device VLAN context this VLAN is associated with for routing purposes.
13549 func (r Network_Vlan) GetAttachedNetworkGatewayVlan() (resp datatypes.Network_Gateway_Vlan, err error) {
13550 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getAttachedNetworkGatewayVlan", nil, &r.Options, &resp)
13551 return
13552 }
13553
13554 // Retrieve The billing item for this VLAN.
13555 func (r Network_Vlan) GetBillingItem() (resp datatypes.Billing_Item, err error) {
13556 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getBillingItem", nil, &r.Options, &resp)
13557 return
13558 }
13559
13560 // Evaluates this VLAN for cancellation and returns a list of descriptions why this VLAN may not be cancelled. If the result is empty, this VLAN may be cancelled.
13561 func (r Network_Vlan) GetCancelFailureReasons() (resp []string, err error) {
13562 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getCancelFailureReasons", nil, &r.Options, &resp)
13563 return
13564 }
13565
13566 // Retrieve The datacenter this VLAN is associated with.
13567 func (r Network_Vlan) GetDatacenter() (resp datatypes.Location, err error) {
13568 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getDatacenter", nil, &r.Options, &resp)
13569 return
13570 }
13571
13572 // Retrieve A value of '1' indicates this VLAN is associated with a firewall device. This does not include Hardware Firewalls.
13573 func (r Network_Vlan) GetDedicatedFirewallFlag() (resp int, err error) {
13574 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getDedicatedFirewallFlag", nil, &r.Options, &resp)
13575 return
13576 }
13577
13578 // Retrieve [DEPRECATED] The extension router that this VLAN is associated with.
13579 func (r Network_Vlan) GetExtensionRouter() (resp datatypes.Hardware_Router, err error) {
13580 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getExtensionRouter", nil, &r.Options, &resp)
13581 return
13582 }
13583
13584 // Retrieve The VSI network interfaces connected to this VLAN and associated with a Hardware Firewall.
13585 func (r Network_Vlan) GetFirewallGuestNetworkComponents() (resp []datatypes.Network_Component_Firewall, err error) {
13586 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getFirewallGuestNetworkComponents", nil, &r.Options, &resp)
13587 return
13588 }
13589
13590 // Retrieve The context for the firewall device associated with this VLAN.
13591 func (r Network_Vlan) GetFirewallInterfaces() (resp []datatypes.Network_Firewall_Module_Context_Interface, err error) {
13592 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getFirewallInterfaces", nil, &r.Options, &resp)
13593 return
13594 }
13595
13596 // Retrieve The uplinks of the hardware network interfaces connected natively to this VLAN and associated with a Hardware Firewall.
13597 func (r Network_Vlan) GetFirewallNetworkComponents() (resp []datatypes.Network_Component_Firewall, err error) {
13598 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getFirewallNetworkComponents", nil, &r.Options, &resp)
13599 return
13600 }
13601
13602 // *** DEPRECATED ***
13603 // Retrieves the IP addresses routed on this VLAN that are protectable by a Hardware Firewall.
13604 // Deprecated: This function has been marked as deprecated.
13605 func (r Network_Vlan) GetFirewallProtectableIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) {
13606 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getFirewallProtectableIpAddresses", nil, &r.Options, &resp)
13607 return
13608 }
13609
13610 // *** DEPRECATED ***
13611 // Retrieves the subnets routed on this VLAN that are protectable by a Hardware Firewall.
13612 // Deprecated: This function has been marked as deprecated.
13613 func (r Network_Vlan) GetFirewallProtectableSubnets() (resp []datatypes.Network_Subnet, err error) {
13614 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getFirewallProtectableSubnets", nil, &r.Options, &resp)
13615 return
13616 }
13617
13618 // Retrieve The access rules for the firewall device associated with this VLAN.
13619 func (r Network_Vlan) GetFirewallRules() (resp []datatypes.Network_Vlan_Firewall_Rule, err error) {
13620 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getFirewallRules", nil, &r.Options, &resp)
13621 return
13622 }
13623
13624 // Retrieve The VSI network interfaces connected to this VLAN.
13625 func (r Network_Vlan) GetGuestNetworkComponents() (resp []datatypes.Virtual_Guest_Network_Component, err error) {
13626 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getGuestNetworkComponents", nil, &r.Options, &resp)
13627 return
13628 }
13629
13630 // Retrieve The hardware with network interfaces connected natively to this VLAN.
13631 func (r Network_Vlan) GetHardware() (resp []datatypes.Hardware, err error) {
13632 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getHardware", nil, &r.Options, &resp)
13633 return
13634 }
13635
13636 // Retrieve A value of '1' indicates this VLAN is associated with a firewall device in a high availability configuration.
13637 func (r Network_Vlan) GetHighAvailabilityFirewallFlag() (resp bool, err error) {
13638 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getHighAvailabilityFirewallFlag", nil, &r.Options, &resp)
13639 return
13640 }
13641
13642 // Returns a list of IP address assignment details. Only assigned IP addresses are reported on. IP address assignments are presently only recorded and available for Primary Subnets.
13643 //
13644 // Details on the resource assigned to each IP address will only be provided to users with access to the underlying resource. If the user cannot access the resource, a detail record will still be returned for the assignment but without any accompanying resource data.
13645 func (r Network_Vlan) GetIpAddressUsage() (resp []datatypes.Network_Subnet_IpAddress_UsageDetail, err error) {
13646 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getIpAddressUsage", nil, &r.Options, &resp)
13647 return
13648 }
13649
13650 // Retrieve A value of '1' indicates this VLAN's pod has VSI local disk storage capability.
13651 func (r Network_Vlan) GetLocalDiskStorageCapabilityFlag() (resp bool, err error) {
13652 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getLocalDiskStorageCapabilityFlag", nil, &r.Options, &resp)
13653 return
13654 }
13655
13656 // Retrieve The hardware network interfaces connected via trunk to this VLAN.
13657 func (r Network_Vlan) GetNetworkComponentTrunks() (resp []datatypes.Network_Component_Network_Vlan_Trunk, err error) {
13658 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getNetworkComponentTrunks", nil, &r.Options, &resp)
13659 return
13660 }
13661
13662 // Retrieve The hardware network interfaces connected natively to this VLAN.
13663 func (r Network_Vlan) GetNetworkComponents() (resp []datatypes.Network_Component, err error) {
13664 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getNetworkComponents", nil, &r.Options, &resp)
13665 return
13666 }
13667
13668 // Retrieve The viable hardware network interface trunking targets of this VLAN. Viable targets include accessible components of assigned hardware in the same pod and network as this VLAN, which are not already connected, either natively or trunked.
13669 func (r Network_Vlan) GetNetworkComponentsTrunkable() (resp []datatypes.Network_Component, err error) {
13670 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getNetworkComponentsTrunkable", nil, &r.Options, &resp)
13671 return
13672 }
13673
13674 // Retrieve The firewall device associated with this VLAN.
13675 func (r Network_Vlan) GetNetworkVlanFirewall() (resp datatypes.Network_Vlan_Firewall, err error) {
13676 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getNetworkVlanFirewall", nil, &r.Options, &resp)
13677 return
13678 }
13679
13680 // Retrieves a VLAN by its id value. Only VLANs assigned to your account are accessible.
13681 func (r Network_Vlan) GetObject() (resp datatypes.Network_Vlan, err error) {
13682 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getObject", nil, &r.Options, &resp)
13683 return
13684 }
13685
13686 // Retrieve The pod this VLAN is associated with.
13687 func (r Network_Vlan) GetPodName() (resp string, err error) {
13688 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getPodName", nil, &r.Options, &resp)
13689 return
13690 }
13691
13692 // Retrieve The router device that this VLAN is associated with.
13693 func (r Network_Vlan) GetPrimaryRouter() (resp datatypes.Hardware_Router, err error) {
13694 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getPrimaryRouter", nil, &r.Options, &resp)
13695 return
13696 }
13697
13698 // Retrieve A primary IPv4 subnet routed on this VLAN, if accessible.
13699 func (r Network_Vlan) GetPrimarySubnet() (resp datatypes.Network_Subnet, err error) {
13700 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getPrimarySubnet", nil, &r.Options, &resp)
13701 return
13702 }
13703
13704 // Retrieve The primary IPv6 subnet routed on this VLAN, if IPv6 is enabled.
13705 func (r Network_Vlan) GetPrimarySubnetVersion6() (resp datatypes.Network_Subnet, err error) {
13706 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getPrimarySubnetVersion6", nil, &r.Options, &resp)
13707 return
13708 }
13709
13710 // Retrieve All primary subnets routed on this VLAN.
13711 func (r Network_Vlan) GetPrimarySubnets() (resp []datatypes.Network_Subnet, err error) {
13712 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getPrimarySubnets", nil, &r.Options, &resp)
13713 return
13714 }
13715
13716 // Retrieve The gateway devices with connectivity supported by this private VLAN.
13717 func (r Network_Vlan) GetPrivateNetworkGateways() (resp []datatypes.Network_Gateway, err error) {
13718 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getPrivateNetworkGateways", nil, &r.Options, &resp)
13719 return
13720 }
13721
13722 // *** DEPRECATED ***
13723 // Retrieves a private VLAN associated to one or more hosts also associated to this public VLAN.
13724 // Deprecated: This function has been marked as deprecated.
13725 func (r Network_Vlan) GetPrivateVlan() (resp datatypes.Network_Vlan, err error) {
13726 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getPrivateVlan", nil, &r.Options, &resp)
13727 return
13728 }
13729
13730 // *** DEPRECATED ***
13731 // Retrieve the private network VLAN associated with an IP address.
13732 // Deprecated: This function has been marked as deprecated.
13733 func (r Network_Vlan) GetPrivateVlanByIpAddress(ipAddress *string) (resp datatypes.Network_Vlan, err error) {
13734 params := []interface{}{
13735 ipAddress,
13736 }
13737 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getPrivateVlanByIpAddress", params, &r.Options, &resp)
13738 return
13739 }
13740
13741 // Retrieve IP addresses routed on this VLAN which are actively associated with network protections.
13742 func (r Network_Vlan) GetProtectedIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) {
13743 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getProtectedIpAddresses", nil, &r.Options, &resp)
13744 return
13745 }
13746
13747 // Retrieve The gateway devices with connectivity supported by this public VLAN.
13748 func (r Network_Vlan) GetPublicNetworkGateways() (resp []datatypes.Network_Gateway, err error) {
13749 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getPublicNetworkGateways", nil, &r.Options, &resp)
13750 return
13751 }
13752
13753 // *** DEPRECATED ***
13754 // Retrieves a public VLAN associated to the host matched by the given fully-qualified domain name.
13755 // Deprecated: This function has been marked as deprecated.
13756 func (r Network_Vlan) GetPublicVlanByFqdn(fqdn *string) (resp datatypes.Network_Vlan, err error) {
13757 params := []interface{}{
13758 fqdn,
13759 }
13760 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getPublicVlanByFqdn", params, &r.Options, &resp)
13761 return
13762 }
13763
13764 // *** DEPRECATED ***
13765 // Retrieves DNS PTR records associated with IP addresses routed on this VLAN. Results will be grouped by DNS domain with the "resourceRecords" property populated.
13766 // Deprecated: This function has been marked as deprecated.
13767 func (r Network_Vlan) GetReverseDomainRecords() (resp []datatypes.Dns_Domain, err error) {
13768 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getReverseDomainRecords", nil, &r.Options, &resp)
13769 return
13770 }
13771
13772 // Retrieve A value of '1' indicates this VLAN's pod has VSI SAN disk storage capability.
13773 func (r Network_Vlan) GetSanStorageCapabilityFlag() (resp bool, err error) {
13774 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getSanStorageCapabilityFlag", nil, &r.Options, &resp)
13775 return
13776 }
13777
13778 // Retrieve [DEPRECATED] The secondary router device that this VLAN is associated with.
13779 func (r Network_Vlan) GetSecondaryRouter() (resp datatypes.Hardware, err error) {
13780 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getSecondaryRouter", nil, &r.Options, &resp)
13781 return
13782 }
13783
13784 // Retrieve All non-primary subnets routed on this VLAN.
13785 func (r Network_Vlan) GetSecondarySubnets() (resp []datatypes.Network_Subnet, err error) {
13786 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getSecondarySubnets", nil, &r.Options, &resp)
13787 return
13788 }
13789
13790 // Retrieve All subnets routed on this VLAN.
13791 func (r Network_Vlan) GetSubnets() (resp []datatypes.Network_Subnet, err error) {
13792 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getSubnets", nil, &r.Options, &resp)
13793 return
13794 }
13795
13796 // Retrieve The tags associated to this VLAN.
13797 func (r Network_Vlan) GetTagReferences() (resp []datatypes.Tag_Reference, err error) {
13798 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getTagReferences", nil, &r.Options, &resp)
13799 return
13800 }
13801
13802 // Retrieve The number of primary IPv4 addresses routed on this VLAN.
13803 func (r Network_Vlan) GetTotalPrimaryIpAddressCount() (resp uint, err error) {
13804 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getTotalPrimaryIpAddressCount", nil, &r.Options, &resp)
13805 return
13806 }
13807
13808 // Retrieve The type for this VLAN, with the following values: STANDARD, GATEWAY, INTERCONNECT
13809 func (r Network_Vlan) GetType() (resp datatypes.Network_Vlan_Type, err error) {
13810 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getType", nil, &r.Options, &resp)
13811 return
13812 }
13813
13814 // Retrieve The VSIs with network interfaces connected to this VLAN.
13815 func (r Network_Vlan) GetVirtualGuests() (resp []datatypes.Virtual_Guest, err error) {
13816 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getVirtualGuests", nil, &r.Options, &resp)
13817 return
13818 }
13819
13820 // Retrieves the VLAN on which the given IP address is routed.
13821 func (r Network_Vlan) GetVlanForIpAddress(ipAddress *string) (resp datatypes.Network_Vlan, err error) {
13822 params := []interface{}{
13823 ipAddress,
13824 }
13825 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "getVlanForIpAddress", params, &r.Options, &resp)
13826 return
13827 }
13828
13829 // Tag a VLAN by passing in one or more tags separated by a comma. Tag references are cleared out every time this method is called. If your VLAN is already tagged you will need to pass the current tags along with any new ones. To remove all tag references pass an empty string. To remove one or more tags omit them from the tag list.
13830 func (r Network_Vlan) SetTags(tags *string) (resp bool, err error) {
13831 params := []interface{}{
13832 tags,
13833 }
13834 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "setTags", params, &r.Options, &resp)
13835 return
13836 }
13837
13838 // *** DEPRECATED ***
13839 // Updates the firewall associated to this VLAN to allow or disallow intra-VLAN communication.
13840 // Deprecated: This function has been marked as deprecated.
13841 func (r Network_Vlan) UpdateFirewallIntraVlanCommunication(enabled *bool) (err error) {
13842 var resp datatypes.Void
13843 params := []interface{}{
13844 enabled,
13845 }
13846 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "updateFirewallIntraVlanCommunication", params, &r.Options, &resp)
13847 return
13848 }
13849
13850 // Converts this VLAN to a paid resource. This can be done for any Automatic VLAN. This operation can only be executed on an Automatic VLAN, and will transition it to being a Premium VLAN. The VLAN will then provide the benefits of a Premium VLAN. A Premium VLAN will remain on the account until cancelled. This operation cannot be undone! Once a VLAN becomes Premium, it can only be removed through cancellation, which will result in it being reclaimed.
13851 //
13852 // This operation is a convenience for utilizing the SoftLayer_Product_Order.placeOrder operation. It will place an order to upgrade the VLAN it is executed against. It will take a few moments for the order to be processed and the upgrade to complete. Note that the order is placed in such a way that any account state which prevents automatic order approval will prevent the order from being placed. Thus, if no error is received, the order was placed and approved, and the VLAN will be upgraded shortly.
13853 func (r Network_Vlan) Upgrade() (resp datatypes.Container_Product_Order_Network_Vlan, err error) {
13854 err = r.Session.DoRequest("SoftLayer_Network_Vlan", "upgrade", nil, &r.Options, &resp)
13855 return
13856 }
13857
13858 // The SoftLayer_Network_Vlan_Firewall data type contains general information relating to a single SoftLayer VLAN firewall. This is the object which ties the running rules to a specific downstream server. Use the [[SoftLayer Network Firewall Template]] service to pull SoftLayer recommended rule set templates. Use the [[SoftLayer Network Firewall Update Request]] service to submit a firewall update request.
13859 type Network_Vlan_Firewall struct {
13860 Session session.SLSession
13861 Options sl.Options
13862 }
13863
13864 // GetNetworkVlanFirewallService returns an instance of the Network_Vlan_Firewall SoftLayer service
13865 func GetNetworkVlanFirewallService(sess session.SLSession) Network_Vlan_Firewall {
13866 return Network_Vlan_Firewall{Session: sess}
13867 }
13868
13869 func (r Network_Vlan_Firewall) Id(id int) Network_Vlan_Firewall {
13870 r.Options.Id = &id
13871 return r
13872 }
13873
13874 func (r Network_Vlan_Firewall) Mask(mask string) Network_Vlan_Firewall {
13875 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
13876 mask = fmt.Sprintf("mask[%s]", mask)
13877 }
13878
13879 r.Options.Mask = mask
13880 return r
13881 }
13882
13883 func (r Network_Vlan_Firewall) Filter(filter string) Network_Vlan_Firewall {
13884 r.Options.Filter = filter
13885 return r
13886 }
13887
13888 func (r Network_Vlan_Firewall) Limit(limit int) Network_Vlan_Firewall {
13889 r.Options.Limit = &limit
13890 return r
13891 }
13892
13893 func (r Network_Vlan_Firewall) Offset(offset int) Network_Vlan_Firewall {
13894 r.Options.Offset = &offset
13895 return r
13896 }
13897
13898 // Approve a request from technical support to bypass the firewall. Once approved, support will be able to route and unroute the VLAN on the firewall.
13899 func (r Network_Vlan_Firewall) ApproveBypassRequest() (err error) {
13900 var resp datatypes.Void
13901 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "approveBypassRequest", nil, &r.Options, &resp)
13902 return
13903 }
13904
13905 // Retrieve
13906 func (r Network_Vlan_Firewall) GetAccountId() (resp int, err error) {
13907 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getAccountId", nil, &r.Options, &resp)
13908 return
13909 }
13910
13911 // Retrieve A firewall's allotted bandwidth (measured in GB).
13912 func (r Network_Vlan_Firewall) GetBandwidthAllocation() (resp datatypes.Float64, err error) {
13913 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getBandwidthAllocation", nil, &r.Options, &resp)
13914 return
13915 }
13916
13917 // Retrieve The raw bandwidth usage data for the current billing cycle. One object will be returned for each network this firewall is attached to.
13918 func (r Network_Vlan_Firewall) GetBillingCycleBandwidthUsage() (resp []datatypes.Network_Bandwidth_Usage, err error) {
13919 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getBillingCycleBandwidthUsage", nil, &r.Options, &resp)
13920 return
13921 }
13922
13923 // Retrieve The raw private bandwidth usage data for the current billing cycle.
13924 func (r Network_Vlan_Firewall) GetBillingCyclePrivateBandwidthUsage() (resp datatypes.Network_Bandwidth_Usage, err error) {
13925 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getBillingCyclePrivateBandwidthUsage", nil, &r.Options, &resp)
13926 return
13927 }
13928
13929 // Retrieve The raw public bandwidth usage data for the current billing cycle.
13930 func (r Network_Vlan_Firewall) GetBillingCyclePublicBandwidthUsage() (resp datatypes.Network_Bandwidth_Usage, err error) {
13931 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getBillingCyclePublicBandwidthUsage", nil, &r.Options, &resp)
13932 return
13933 }
13934
13935 // Retrieve The billing item for a Hardware Firewall (Dedicated).
13936 func (r Network_Vlan_Firewall) GetBillingItem() (resp datatypes.Billing_Item, err error) {
13937 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getBillingItem", nil, &r.Options, &resp)
13938 return
13939 }
13940
13941 // Retrieve Administrative bypass request status.
13942 func (r Network_Vlan_Firewall) GetBypassRequestStatus() (resp string, err error) {
13943 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getBypassRequestStatus", nil, &r.Options, &resp)
13944 return
13945 }
13946
13947 // Retrieve The datacenter that the firewall resides in.
13948 func (r Network_Vlan_Firewall) GetDatacenter() (resp datatypes.Location, err error) {
13949 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getDatacenter", nil, &r.Options, &resp)
13950 return
13951 }
13952
13953 // Retrieve the firewall device firmware version from database.
13954 func (r Network_Vlan_Firewall) GetFirewallFirmwareVersion() (resp string, err error) {
13955 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getFirewallFirmwareVersion", nil, &r.Options, &resp)
13956 return
13957 }
13958
13959 // Retrieve The firewall device type.
13960 func (r Network_Vlan_Firewall) GetFirewallType() (resp string, err error) {
13961 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getFirewallType", nil, &r.Options, &resp)
13962 return
13963 }
13964
13965 // Retrieve A name reflecting the hostname and domain of the firewall. This is created from the combined values of the firewall's logical name and vlan number automatically, and thus can not be edited directly.
13966 func (r Network_Vlan_Firewall) GetFullyQualifiedDomainName() (resp string, err error) {
13967 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getFullyQualifiedDomainName", nil, &r.Options, &resp)
13968 return
13969 }
13970
13971 // Retrieve The credentials to log in to a firewall device. This is only present for dedicated appliances.
13972 func (r Network_Vlan_Firewall) GetManagementCredentials() (resp datatypes.Software_Component_Password, err error) {
13973 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getManagementCredentials", nil, &r.Options, &resp)
13974 return
13975 }
13976
13977 // Retrieve A firewall's metric tracking object.
13978 func (r Network_Vlan_Firewall) GetMetricTrackingObject() (resp datatypes.Metric_Tracking_Object, err error) {
13979 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getMetricTrackingObject", nil, &r.Options, &resp)
13980 return
13981 }
13982
13983 // Retrieve The metric tracking object ID for this firewall.
13984 func (r Network_Vlan_Firewall) GetMetricTrackingObjectId() (resp int, err error) {
13985 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getMetricTrackingObjectId", nil, &r.Options, &resp)
13986 return
13987 }
13988
13989 // Retrieve The update requests made for this firewall.
13990 func (r Network_Vlan_Firewall) GetNetworkFirewallUpdateRequests() (resp []datatypes.Network_Firewall_Update_Request, err error) {
13991 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getNetworkFirewallUpdateRequests", nil, &r.Options, &resp)
13992 return
13993 }
13994
13995 // Retrieve The gateway associated with this firewall, if any.
13996 func (r Network_Vlan_Firewall) GetNetworkGateway() (resp datatypes.Network_Gateway, err error) {
13997 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getNetworkGateway", nil, &r.Options, &resp)
13998 return
13999 }
14000
14001 // Retrieve The VLAN object that a firewall is associated with and protecting.
14002 func (r Network_Vlan_Firewall) GetNetworkVlan() (resp datatypes.Network_Vlan, err error) {
14003 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getNetworkVlan", nil, &r.Options, &resp)
14004 return
14005 }
14006
14007 // Retrieve The VLAN objects that a firewall is associated with and protecting.
14008 func (r Network_Vlan_Firewall) GetNetworkVlans() (resp []datatypes.Network_Vlan, err error) {
14009 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getNetworkVlans", nil, &r.Options, &resp)
14010 return
14011 }
14012
14013 // getObject returns a SoftLayer_Network_Vlan_Firewall object. You can only get objects for vlans attached to your account that have a network firewall enabled.
14014 func (r Network_Vlan_Firewall) GetObject() (resp datatypes.Network_Vlan_Firewall, err error) {
14015 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getObject", nil, &r.Options, &resp)
14016 return
14017 }
14018
14019 // Retrieve The currently running rule set of this network component firewall.
14020 func (r Network_Vlan_Firewall) GetRules() (resp []datatypes.Network_Vlan_Firewall_Rule, err error) {
14021 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getRules", nil, &r.Options, &resp)
14022 return
14023 }
14024
14025 // Retrieve
14026 func (r Network_Vlan_Firewall) GetTagReferences() (resp []datatypes.Tag_Reference, err error) {
14027 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getTagReferences", nil, &r.Options, &resp)
14028 return
14029 }
14030
14031 // Retrieve A firewall's associated upgrade request object, if any.
14032 func (r Network_Vlan_Firewall) GetUpgradeRequest() (resp datatypes.Product_Upgrade_Request, err error) {
14033 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "getUpgradeRequest", nil, &r.Options, &resp)
14034 return
14035 }
14036
14037 // Check for active transactions for the Firewall.
14038 func (r Network_Vlan_Firewall) HasActiveTransactions() (resp bool, err error) {
14039 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "hasActiveTransactions", nil, &r.Options, &resp)
14040 return
14041 }
14042
14043 // Checks if the account is allowed to use some features of FSA1G and Hardware firewall (Dedicated)
14044 func (r Network_Vlan_Firewall) IsAccountAllowed() (resp bool, err error) {
14045 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "isAccountAllowed", nil, &r.Options, &resp)
14046 return
14047 }
14048
14049 // Whether this firewall qualifies for High Availability upgrade.
14050 func (r Network_Vlan_Firewall) IsHighAvailabilityUpgradeAvailable() (resp bool, err error) {
14051 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "isHighAvailabilityUpgradeAvailable", nil, &r.Options, &resp)
14052 return
14053 }
14054
14055 // Reject a request from technical support to bypass the firewall. Once rejected, IBM support will not be able to route and unroute the VLAN on the firewall.
14056 func (r Network_Vlan_Firewall) RejectBypassRequest() (err error) {
14057 var resp datatypes.Void
14058 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "rejectBypassRequest", nil, &r.Options, &resp)
14059 return
14060 }
14061
14062 // This will completely reset the firewall to factory settings. If the firewall is not a FSA 10G appliance an error will occur. Note, this process is performed asynchronously. During the process all traffic will not be routed through the firewall.
14063 func (r Network_Vlan_Firewall) RestoreDefaults() (resp datatypes.Provisioning_Version1_Transaction, err error) {
14064 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "restoreDefaults", nil, &r.Options, &resp)
14065 return
14066 }
14067
14068 // This method will associate a comma separated list of tags with this object.
14069 func (r Network_Vlan_Firewall) SetTags(tags *string) (resp bool, err error) {
14070 params := []interface{}{
14071 tags,
14072 }
14073 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "setTags", params, &r.Options, &resp)
14074 return
14075 }
14076
14077 // Enable or disable route bypass for this context. If enabled, this will bypass the firewall entirely and all traffic will be routed directly to the host(s) behind it. If disabled, traffic will flow through the firewall normally. This feature is only available for Hardware Firewall (Dedicated) and dedicated appliances.
14078 func (r Network_Vlan_Firewall) UpdateRouteBypass(bypass *bool) (resp datatypes.Provisioning_Version1_Transaction, err error) {
14079 params := []interface{}{
14080 bypass,
14081 }
14082 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Firewall", "updateRouteBypass", params, &r.Options, &resp)
14083 return
14084 }
14085
14086 // no documentation yet
14087 type Network_Vlan_Type struct {
14088 Session session.SLSession
14089 Options sl.Options
14090 }
14091
14092 // GetNetworkVlanTypeService returns an instance of the Network_Vlan_Type SoftLayer service
14093 func GetNetworkVlanTypeService(sess session.SLSession) Network_Vlan_Type {
14094 return Network_Vlan_Type{Session: sess}
14095 }
14096
14097 func (r Network_Vlan_Type) Id(id int) Network_Vlan_Type {
14098 r.Options.Id = &id
14099 return r
14100 }
14101
14102 func (r Network_Vlan_Type) Mask(mask string) Network_Vlan_Type {
14103 if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
14104 mask = fmt.Sprintf("mask[%s]", mask)
14105 }
14106
14107 r.Options.Mask = mask
14108 return r
14109 }
14110
14111 func (r Network_Vlan_Type) Filter(filter string) Network_Vlan_Type {
14112 r.Options.Filter = filter
14113 return r
14114 }
14115
14116 func (r Network_Vlan_Type) Limit(limit int) Network_Vlan_Type {
14117 r.Options.Limit = &limit
14118 return r
14119 }
14120
14121 func (r Network_Vlan_Type) Offset(offset int) Network_Vlan_Type {
14122 r.Options.Offset = &offset
14123 return r
14124 }
14125
14126 // no documentation yet
14127 func (r Network_Vlan_Type) GetObject() (resp datatypes.Network_Vlan_Type, err error) {
14128 err = r.Session.DoRequest("SoftLayer_Network_Vlan_Type", "getObject", nil, &r.Options, &resp)
14129 return
14130 }
14131