zz_api_ops.go raw
1 // Copyright 2022-2025 The sacloud/iaas-api-go Authors
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // generated by 'github.com/sacloud/iaas-api-go/internal/tools/gen-api-fake-op'; DO NOT EDIT
16
17 package fake
18
19 import (
20 "sync"
21
22 "github.com/sacloud/iaas-api-go"
23 )
24
25 var switchOnce sync.Once
26
27 // SwitchFactoryFuncToFake switches iaas.xxxAPI's factory methods to use fake client
28 func SwitchFactoryFuncToFake() {
29 switchOnce.Do(func() {
30 switchFactoryFuncToFake()
31 })
32 }
33
34 func switchFactoryFuncToFake() {
35 iaas.SetClientFactoryFunc(ResourceArchive, func(caller iaas.APICaller) interface{} {
36 return NewArchiveOp()
37 })
38 iaas.SetClientFactoryFunc(ResourceAuthStatus, func(caller iaas.APICaller) interface{} {
39 return NewAuthStatusOp()
40 })
41 iaas.SetClientFactoryFunc(ResourceAutoBackup, func(caller iaas.APICaller) interface{} {
42 return NewAutoBackupOp()
43 })
44 iaas.SetClientFactoryFunc(ResourceAutoScale, func(caller iaas.APICaller) interface{} {
45 return NewAutoScaleOp()
46 })
47 iaas.SetClientFactoryFunc(ResourceBill, func(caller iaas.APICaller) interface{} {
48 return NewBillOp()
49 })
50 iaas.SetClientFactoryFunc(ResourceBridge, func(caller iaas.APICaller) interface{} {
51 return NewBridgeOp()
52 })
53 iaas.SetClientFactoryFunc(ResourceCDROM, func(caller iaas.APICaller) interface{} {
54 return NewCDROMOp()
55 })
56 iaas.SetClientFactoryFunc(ResourceCertificateAuthority, func(caller iaas.APICaller) interface{} {
57 return NewCertificateAuthorityOp()
58 })
59 iaas.SetClientFactoryFunc(ResourceContainerRegistry, func(caller iaas.APICaller) interface{} {
60 return NewContainerRegistryOp()
61 })
62 iaas.SetClientFactoryFunc(ResourceCoupon, func(caller iaas.APICaller) interface{} {
63 return NewCouponOp()
64 })
65 iaas.SetClientFactoryFunc(ResourceDatabase, func(caller iaas.APICaller) interface{} {
66 return NewDatabaseOp()
67 })
68 iaas.SetClientFactoryFunc(ResourceDisk, func(caller iaas.APICaller) interface{} {
69 return NewDiskOp()
70 })
71 iaas.SetClientFactoryFunc(ResourceDiskPlan, func(caller iaas.APICaller) interface{} {
72 return NewDiskPlanOp()
73 })
74 iaas.SetClientFactoryFunc(ResourceDNS, func(caller iaas.APICaller) interface{} {
75 return NewDNSOp()
76 })
77 iaas.SetClientFactoryFunc(ResourceEnhancedDB, func(caller iaas.APICaller) interface{} {
78 return NewEnhancedDBOp()
79 })
80 iaas.SetClientFactoryFunc(ResourceESME, func(caller iaas.APICaller) interface{} {
81 return NewESMEOp()
82 })
83 iaas.SetClientFactoryFunc(ResourceGSLB, func(caller iaas.APICaller) interface{} {
84 return NewGSLBOp()
85 })
86 iaas.SetClientFactoryFunc(ResourceIcon, func(caller iaas.APICaller) interface{} {
87 return NewIconOp()
88 })
89 iaas.SetClientFactoryFunc(ResourceInterface, func(caller iaas.APICaller) interface{} {
90 return NewInterfaceOp()
91 })
92 iaas.SetClientFactoryFunc(ResourceInternet, func(caller iaas.APICaller) interface{} {
93 return NewInternetOp()
94 })
95 iaas.SetClientFactoryFunc(ResourceInternetPlan, func(caller iaas.APICaller) interface{} {
96 return NewInternetPlanOp()
97 })
98 iaas.SetClientFactoryFunc(ResourceIPAddress, func(caller iaas.APICaller) interface{} {
99 return NewIPAddressOp()
100 })
101 iaas.SetClientFactoryFunc(ResourceIPv6Net, func(caller iaas.APICaller) interface{} {
102 return NewIPv6NetOp()
103 })
104 iaas.SetClientFactoryFunc(ResourceIPv6Addr, func(caller iaas.APICaller) interface{} {
105 return NewIPv6AddrOp()
106 })
107 iaas.SetClientFactoryFunc(ResourceLicense, func(caller iaas.APICaller) interface{} {
108 return NewLicenseOp()
109 })
110 iaas.SetClientFactoryFunc(ResourceLicenseInfo, func(caller iaas.APICaller) interface{} {
111 return NewLicenseInfoOp()
112 })
113 iaas.SetClientFactoryFunc(ResourceLoadBalancer, func(caller iaas.APICaller) interface{} {
114 return NewLoadBalancerOp()
115 })
116 iaas.SetClientFactoryFunc(ResourceLocalRouter, func(caller iaas.APICaller) interface{} {
117 return NewLocalRouterOp()
118 })
119 iaas.SetClientFactoryFunc(ResourceMobileGateway, func(caller iaas.APICaller) interface{} {
120 return NewMobileGatewayOp()
121 })
122 iaas.SetClientFactoryFunc(ResourceNFS, func(caller iaas.APICaller) interface{} {
123 return NewNFSOp()
124 })
125 iaas.SetClientFactoryFunc(ResourceNote, func(caller iaas.APICaller) interface{} {
126 return NewNoteOp()
127 })
128 iaas.SetClientFactoryFunc(ResourcePacketFilter, func(caller iaas.APICaller) interface{} {
129 return NewPacketFilterOp()
130 })
131 iaas.SetClientFactoryFunc(ResourcePrivateHost, func(caller iaas.APICaller) interface{} {
132 return NewPrivateHostOp()
133 })
134 iaas.SetClientFactoryFunc(ResourcePrivateHostPlan, func(caller iaas.APICaller) interface{} {
135 return NewPrivateHostPlanOp()
136 })
137 iaas.SetClientFactoryFunc(ResourceProxyLB, func(caller iaas.APICaller) interface{} {
138 return NewProxyLBOp()
139 })
140 iaas.SetClientFactoryFunc(ResourceRegion, func(caller iaas.APICaller) interface{} {
141 return NewRegionOp()
142 })
143 iaas.SetClientFactoryFunc(ResourceServer, func(caller iaas.APICaller) interface{} {
144 return NewServerOp()
145 })
146 iaas.SetClientFactoryFunc(ResourceServerPlan, func(caller iaas.APICaller) interface{} {
147 return NewServerPlanOp()
148 })
149 iaas.SetClientFactoryFunc(ResourceServiceClass, func(caller iaas.APICaller) interface{} {
150 return NewServiceClassOp()
151 })
152 iaas.SetClientFactoryFunc(ResourceSIM, func(caller iaas.APICaller) interface{} {
153 return NewSIMOp()
154 })
155 iaas.SetClientFactoryFunc(ResourceSimpleMonitor, func(caller iaas.APICaller) interface{} {
156 return NewSimpleMonitorOp()
157 })
158 iaas.SetClientFactoryFunc(ResourceSimpleNotificationDestination, func(caller iaas.APICaller) interface{} {
159 return NewSimpleNotificationDestinationOp()
160 })
161 iaas.SetClientFactoryFunc(ResourceSimpleNotificationGroup, func(caller iaas.APICaller) interface{} {
162 return NewSimpleNotificationGroupOp()
163 })
164 iaas.SetClientFactoryFunc(ResourceSSHKey, func(caller iaas.APICaller) interface{} {
165 return NewSSHKeyOp()
166 })
167 iaas.SetClientFactoryFunc(ResourceSubnet, func(caller iaas.APICaller) interface{} {
168 return NewSubnetOp()
169 })
170 iaas.SetClientFactoryFunc(ResourceSwitch, func(caller iaas.APICaller) interface{} {
171 return NewSwitchOp()
172 })
173 iaas.SetClientFactoryFunc(ResourceVPCRouter, func(caller iaas.APICaller) interface{} {
174 return NewVPCRouterOp()
175 })
176 iaas.SetClientFactoryFunc(ResourceZone, func(caller iaas.APICaller) interface{} {
177 return NewZoneOp()
178 })
179 }
180
181 /*************************************************
182 * ArchiveOp
183 *************************************************/
184
185 // ArchiveOp is fake implementation of ArchiveAPI interface
186 type ArchiveOp struct {
187 key string
188 }
189
190 // NewArchiveOp creates new ArchiveOp instance
191 func NewArchiveOp() iaas.ArchiveAPI {
192 return &ArchiveOp{
193 key: ResourceArchive,
194 }
195 }
196
197 /*************************************************
198 * AuthStatusOp
199 *************************************************/
200
201 // AuthStatusOp is fake implementation of AuthStatusAPI interface
202 type AuthStatusOp struct {
203 key string
204 }
205
206 // NewAuthStatusOp creates new AuthStatusOp instance
207 func NewAuthStatusOp() iaas.AuthStatusAPI {
208 return &AuthStatusOp{
209 key: ResourceAuthStatus,
210 }
211 }
212
213 /*************************************************
214 * AutoBackupOp
215 *************************************************/
216
217 // AutoBackupOp is fake implementation of AutoBackupAPI interface
218 type AutoBackupOp struct {
219 key string
220 }
221
222 // NewAutoBackupOp creates new AutoBackupOp instance
223 func NewAutoBackupOp() iaas.AutoBackupAPI {
224 return &AutoBackupOp{
225 key: ResourceAutoBackup,
226 }
227 }
228
229 /*************************************************
230 * AutoScaleOp
231 *************************************************/
232
233 // AutoScaleOp is fake implementation of AutoScaleAPI interface
234 type AutoScaleOp struct {
235 key string
236 }
237
238 // NewAutoScaleOp creates new AutoScaleOp instance
239 func NewAutoScaleOp() iaas.AutoScaleAPI {
240 return &AutoScaleOp{
241 key: ResourceAutoScale,
242 }
243 }
244
245 /*************************************************
246 * BillOp
247 *************************************************/
248
249 // BillOp is fake implementation of BillAPI interface
250 type BillOp struct {
251 key string
252 }
253
254 // NewBillOp creates new BillOp instance
255 func NewBillOp() iaas.BillAPI {
256 return &BillOp{
257 key: ResourceBill,
258 }
259 }
260
261 /*************************************************
262 * BridgeOp
263 *************************************************/
264
265 // BridgeOp is fake implementation of BridgeAPI interface
266 type BridgeOp struct {
267 key string
268 }
269
270 // NewBridgeOp creates new BridgeOp instance
271 func NewBridgeOp() iaas.BridgeAPI {
272 return &BridgeOp{
273 key: ResourceBridge,
274 }
275 }
276
277 /*************************************************
278 * CDROMOp
279 *************************************************/
280
281 // CDROMOp is fake implementation of CDROMAPI interface
282 type CDROMOp struct {
283 key string
284 }
285
286 // NewCDROMOp creates new CDROMOp instance
287 func NewCDROMOp() iaas.CDROMAPI {
288 return &CDROMOp{
289 key: ResourceCDROM,
290 }
291 }
292
293 /*************************************************
294 * CertificateAuthorityOp
295 *************************************************/
296
297 // CertificateAuthorityOp is fake implementation of CertificateAuthorityAPI interface
298 type CertificateAuthorityOp struct {
299 key string
300 }
301
302 // NewCertificateAuthorityOp creates new CertificateAuthorityOp instance
303 func NewCertificateAuthorityOp() iaas.CertificateAuthorityAPI {
304 return &CertificateAuthorityOp{
305 key: ResourceCertificateAuthority,
306 }
307 }
308
309 /*************************************************
310 * ContainerRegistryOp
311 *************************************************/
312
313 // ContainerRegistryOp is fake implementation of ContainerRegistryAPI interface
314 type ContainerRegistryOp struct {
315 key string
316 }
317
318 // NewContainerRegistryOp creates new ContainerRegistryOp instance
319 func NewContainerRegistryOp() iaas.ContainerRegistryAPI {
320 return &ContainerRegistryOp{
321 key: ResourceContainerRegistry,
322 }
323 }
324
325 /*************************************************
326 * CouponOp
327 *************************************************/
328
329 // CouponOp is fake implementation of CouponAPI interface
330 type CouponOp struct {
331 key string
332 }
333
334 // NewCouponOp creates new CouponOp instance
335 func NewCouponOp() iaas.CouponAPI {
336 return &CouponOp{
337 key: ResourceCoupon,
338 }
339 }
340
341 /*************************************************
342 * DatabaseOp
343 *************************************************/
344
345 // DatabaseOp is fake implementation of DatabaseAPI interface
346 type DatabaseOp struct {
347 key string
348 }
349
350 // NewDatabaseOp creates new DatabaseOp instance
351 func NewDatabaseOp() iaas.DatabaseAPI {
352 return &DatabaseOp{
353 key: ResourceDatabase,
354 }
355 }
356
357 /*************************************************
358 * DiskOp
359 *************************************************/
360
361 // DiskOp is fake implementation of DiskAPI interface
362 type DiskOp struct {
363 key string
364 }
365
366 // NewDiskOp creates new DiskOp instance
367 func NewDiskOp() iaas.DiskAPI {
368 return &DiskOp{
369 key: ResourceDisk,
370 }
371 }
372
373 /*************************************************
374 * DiskPlanOp
375 *************************************************/
376
377 // DiskPlanOp is fake implementation of DiskPlanAPI interface
378 type DiskPlanOp struct {
379 key string
380 }
381
382 // NewDiskPlanOp creates new DiskPlanOp instance
383 func NewDiskPlanOp() iaas.DiskPlanAPI {
384 return &DiskPlanOp{
385 key: ResourceDiskPlan,
386 }
387 }
388
389 /*************************************************
390 * DNSOp
391 *************************************************/
392
393 // DNSOp is fake implementation of DNSAPI interface
394 type DNSOp struct {
395 key string
396 }
397
398 // NewDNSOp creates new DNSOp instance
399 func NewDNSOp() iaas.DNSAPI {
400 return &DNSOp{
401 key: ResourceDNS,
402 }
403 }
404
405 /*************************************************
406 * EnhancedDBOp
407 *************************************************/
408
409 // EnhancedDBOp is fake implementation of EnhancedDBAPI interface
410 type EnhancedDBOp struct {
411 key string
412 }
413
414 // NewEnhancedDBOp creates new EnhancedDBOp instance
415 func NewEnhancedDBOp() iaas.EnhancedDBAPI {
416 return &EnhancedDBOp{
417 key: ResourceEnhancedDB,
418 }
419 }
420
421 /*************************************************
422 * ESMEOp
423 *************************************************/
424
425 // ESMEOp is fake implementation of ESMEAPI interface
426 type ESMEOp struct {
427 key string
428 }
429
430 // NewESMEOp creates new ESMEOp instance
431 func NewESMEOp() iaas.ESMEAPI {
432 return &ESMEOp{
433 key: ResourceESME,
434 }
435 }
436
437 /*************************************************
438 * GSLBOp
439 *************************************************/
440
441 // GSLBOp is fake implementation of GSLBAPI interface
442 type GSLBOp struct {
443 key string
444 }
445
446 // NewGSLBOp creates new GSLBOp instance
447 func NewGSLBOp() iaas.GSLBAPI {
448 return &GSLBOp{
449 key: ResourceGSLB,
450 }
451 }
452
453 /*************************************************
454 * IconOp
455 *************************************************/
456
457 // IconOp is fake implementation of IconAPI interface
458 type IconOp struct {
459 key string
460 }
461
462 // NewIconOp creates new IconOp instance
463 func NewIconOp() iaas.IconAPI {
464 return &IconOp{
465 key: ResourceIcon,
466 }
467 }
468
469 /*************************************************
470 * InterfaceOp
471 *************************************************/
472
473 // InterfaceOp is fake implementation of InterfaceAPI interface
474 type InterfaceOp struct {
475 key string
476 }
477
478 // NewInterfaceOp creates new InterfaceOp instance
479 func NewInterfaceOp() iaas.InterfaceAPI {
480 return &InterfaceOp{
481 key: ResourceInterface,
482 }
483 }
484
485 /*************************************************
486 * InternetOp
487 *************************************************/
488
489 // InternetOp is fake implementation of InternetAPI interface
490 type InternetOp struct {
491 key string
492 }
493
494 // NewInternetOp creates new InternetOp instance
495 func NewInternetOp() iaas.InternetAPI {
496 return &InternetOp{
497 key: ResourceInternet,
498 }
499 }
500
501 /*************************************************
502 * InternetPlanOp
503 *************************************************/
504
505 // InternetPlanOp is fake implementation of InternetPlanAPI interface
506 type InternetPlanOp struct {
507 key string
508 }
509
510 // NewInternetPlanOp creates new InternetPlanOp instance
511 func NewInternetPlanOp() iaas.InternetPlanAPI {
512 return &InternetPlanOp{
513 key: ResourceInternetPlan,
514 }
515 }
516
517 /*************************************************
518 * IPAddressOp
519 *************************************************/
520
521 // IPAddressOp is fake implementation of IPAddressAPI interface
522 type IPAddressOp struct {
523 key string
524 }
525
526 // NewIPAddressOp creates new IPAddressOp instance
527 func NewIPAddressOp() iaas.IPAddressAPI {
528 return &IPAddressOp{
529 key: ResourceIPAddress,
530 }
531 }
532
533 /*************************************************
534 * IPv6NetOp
535 *************************************************/
536
537 // IPv6NetOp is fake implementation of IPv6NetAPI interface
538 type IPv6NetOp struct {
539 key string
540 }
541
542 // NewIPv6NetOp creates new IPv6NetOp instance
543 func NewIPv6NetOp() iaas.IPv6NetAPI {
544 return &IPv6NetOp{
545 key: ResourceIPv6Net,
546 }
547 }
548
549 /*************************************************
550 * IPv6AddrOp
551 *************************************************/
552
553 // IPv6AddrOp is fake implementation of IPv6AddrAPI interface
554 type IPv6AddrOp struct {
555 key string
556 }
557
558 // NewIPv6AddrOp creates new IPv6AddrOp instance
559 func NewIPv6AddrOp() iaas.IPv6AddrAPI {
560 return &IPv6AddrOp{
561 key: ResourceIPv6Addr,
562 }
563 }
564
565 /*************************************************
566 * LicenseOp
567 *************************************************/
568
569 // LicenseOp is fake implementation of LicenseAPI interface
570 type LicenseOp struct {
571 key string
572 }
573
574 // NewLicenseOp creates new LicenseOp instance
575 func NewLicenseOp() iaas.LicenseAPI {
576 return &LicenseOp{
577 key: ResourceLicense,
578 }
579 }
580
581 /*************************************************
582 * LicenseInfoOp
583 *************************************************/
584
585 // LicenseInfoOp is fake implementation of LicenseInfoAPI interface
586 type LicenseInfoOp struct {
587 key string
588 }
589
590 // NewLicenseInfoOp creates new LicenseInfoOp instance
591 func NewLicenseInfoOp() iaas.LicenseInfoAPI {
592 return &LicenseInfoOp{
593 key: ResourceLicenseInfo,
594 }
595 }
596
597 /*************************************************
598 * LoadBalancerOp
599 *************************************************/
600
601 // LoadBalancerOp is fake implementation of LoadBalancerAPI interface
602 type LoadBalancerOp struct {
603 key string
604 }
605
606 // NewLoadBalancerOp creates new LoadBalancerOp instance
607 func NewLoadBalancerOp() iaas.LoadBalancerAPI {
608 return &LoadBalancerOp{
609 key: ResourceLoadBalancer,
610 }
611 }
612
613 /*************************************************
614 * LocalRouterOp
615 *************************************************/
616
617 // LocalRouterOp is fake implementation of LocalRouterAPI interface
618 type LocalRouterOp struct {
619 key string
620 }
621
622 // NewLocalRouterOp creates new LocalRouterOp instance
623 func NewLocalRouterOp() iaas.LocalRouterAPI {
624 return &LocalRouterOp{
625 key: ResourceLocalRouter,
626 }
627 }
628
629 /*************************************************
630 * MobileGatewayOp
631 *************************************************/
632
633 // MobileGatewayOp is fake implementation of MobileGatewayAPI interface
634 type MobileGatewayOp struct {
635 key string
636 }
637
638 // NewMobileGatewayOp creates new MobileGatewayOp instance
639 func NewMobileGatewayOp() iaas.MobileGatewayAPI {
640 return &MobileGatewayOp{
641 key: ResourceMobileGateway,
642 }
643 }
644
645 /*************************************************
646 * NFSOp
647 *************************************************/
648
649 // NFSOp is fake implementation of NFSAPI interface
650 type NFSOp struct {
651 key string
652 }
653
654 // NewNFSOp creates new NFSOp instance
655 func NewNFSOp() iaas.NFSAPI {
656 return &NFSOp{
657 key: ResourceNFS,
658 }
659 }
660
661 /*************************************************
662 * NoteOp
663 *************************************************/
664
665 // NoteOp is fake implementation of NoteAPI interface
666 type NoteOp struct {
667 key string
668 }
669
670 // NewNoteOp creates new NoteOp instance
671 func NewNoteOp() iaas.NoteAPI {
672 return &NoteOp{
673 key: ResourceNote,
674 }
675 }
676
677 /*************************************************
678 * PacketFilterOp
679 *************************************************/
680
681 // PacketFilterOp is fake implementation of PacketFilterAPI interface
682 type PacketFilterOp struct {
683 key string
684 }
685
686 // NewPacketFilterOp creates new PacketFilterOp instance
687 func NewPacketFilterOp() iaas.PacketFilterAPI {
688 return &PacketFilterOp{
689 key: ResourcePacketFilter,
690 }
691 }
692
693 /*************************************************
694 * PrivateHostOp
695 *************************************************/
696
697 // PrivateHostOp is fake implementation of PrivateHostAPI interface
698 type PrivateHostOp struct {
699 key string
700 }
701
702 // NewPrivateHostOp creates new PrivateHostOp instance
703 func NewPrivateHostOp() iaas.PrivateHostAPI {
704 return &PrivateHostOp{
705 key: ResourcePrivateHost,
706 }
707 }
708
709 /*************************************************
710 * PrivateHostPlanOp
711 *************************************************/
712
713 // PrivateHostPlanOp is fake implementation of PrivateHostPlanAPI interface
714 type PrivateHostPlanOp struct {
715 key string
716 }
717
718 // NewPrivateHostPlanOp creates new PrivateHostPlanOp instance
719 func NewPrivateHostPlanOp() iaas.PrivateHostPlanAPI {
720 return &PrivateHostPlanOp{
721 key: ResourcePrivateHostPlan,
722 }
723 }
724
725 /*************************************************
726 * ProxyLBOp
727 *************************************************/
728
729 // ProxyLBOp is fake implementation of ProxyLBAPI interface
730 type ProxyLBOp struct {
731 key string
732 }
733
734 // NewProxyLBOp creates new ProxyLBOp instance
735 func NewProxyLBOp() iaas.ProxyLBAPI {
736 return &ProxyLBOp{
737 key: ResourceProxyLB,
738 }
739 }
740
741 /*************************************************
742 * RegionOp
743 *************************************************/
744
745 // RegionOp is fake implementation of RegionAPI interface
746 type RegionOp struct {
747 key string
748 }
749
750 // NewRegionOp creates new RegionOp instance
751 func NewRegionOp() iaas.RegionAPI {
752 return &RegionOp{
753 key: ResourceRegion,
754 }
755 }
756
757 /*************************************************
758 * ServerOp
759 *************************************************/
760
761 // ServerOp is fake implementation of ServerAPI interface
762 type ServerOp struct {
763 key string
764 }
765
766 // NewServerOp creates new ServerOp instance
767 func NewServerOp() iaas.ServerAPI {
768 return &ServerOp{
769 key: ResourceServer,
770 }
771 }
772
773 /*************************************************
774 * ServerPlanOp
775 *************************************************/
776
777 // ServerPlanOp is fake implementation of ServerPlanAPI interface
778 type ServerPlanOp struct {
779 key string
780 }
781
782 // NewServerPlanOp creates new ServerPlanOp instance
783 func NewServerPlanOp() iaas.ServerPlanAPI {
784 return &ServerPlanOp{
785 key: ResourceServerPlan,
786 }
787 }
788
789 /*************************************************
790 * ServiceClassOp
791 *************************************************/
792
793 // ServiceClassOp is fake implementation of ServiceClassAPI interface
794 type ServiceClassOp struct {
795 key string
796 }
797
798 // NewServiceClassOp creates new ServiceClassOp instance
799 func NewServiceClassOp() iaas.ServiceClassAPI {
800 return &ServiceClassOp{
801 key: ResourceServiceClass,
802 }
803 }
804
805 /*************************************************
806 * SIMOp
807 *************************************************/
808
809 // SIMOp is fake implementation of SIMAPI interface
810 type SIMOp struct {
811 key string
812 }
813
814 // NewSIMOp creates new SIMOp instance
815 func NewSIMOp() iaas.SIMAPI {
816 return &SIMOp{
817 key: ResourceSIM,
818 }
819 }
820
821 /*************************************************
822 * SimpleMonitorOp
823 *************************************************/
824
825 // SimpleMonitorOp is fake implementation of SimpleMonitorAPI interface
826 type SimpleMonitorOp struct {
827 key string
828 }
829
830 // NewSimpleMonitorOp creates new SimpleMonitorOp instance
831 func NewSimpleMonitorOp() iaas.SimpleMonitorAPI {
832 return &SimpleMonitorOp{
833 key: ResourceSimpleMonitor,
834 }
835 }
836
837 /*************************************************
838 * SimpleNotificationDestinationOp
839 *************************************************/
840
841 // SimpleNotificationDestinationOp is fake implementation of SimpleNotificationDestinationAPI interface
842 type SimpleNotificationDestinationOp struct {
843 key string
844 }
845
846 // NewSimpleNotificationDestinationOp creates new SimpleNotificationDestinationOp instance
847 func NewSimpleNotificationDestinationOp() iaas.SimpleNotificationDestinationAPI {
848 return &SimpleNotificationDestinationOp{
849 key: ResourceSimpleNotificationDestination,
850 }
851 }
852
853 /*************************************************
854 * SimpleNotificationGroupOp
855 *************************************************/
856
857 // SimpleNotificationGroupOp is fake implementation of SimpleNotificationGroupAPI interface
858 type SimpleNotificationGroupOp struct {
859 key string
860 }
861
862 // NewSimpleNotificationGroupOp creates new SimpleNotificationGroupOp instance
863 func NewSimpleNotificationGroupOp() iaas.SimpleNotificationGroupAPI {
864 return &SimpleNotificationGroupOp{
865 key: ResourceSimpleNotificationGroup,
866 }
867 }
868
869 /*************************************************
870 * SSHKeyOp
871 *************************************************/
872
873 // SSHKeyOp is fake implementation of SSHKeyAPI interface
874 type SSHKeyOp struct {
875 key string
876 }
877
878 // NewSSHKeyOp creates new SSHKeyOp instance
879 func NewSSHKeyOp() iaas.SSHKeyAPI {
880 return &SSHKeyOp{
881 key: ResourceSSHKey,
882 }
883 }
884
885 /*************************************************
886 * SubnetOp
887 *************************************************/
888
889 // SubnetOp is fake implementation of SubnetAPI interface
890 type SubnetOp struct {
891 key string
892 }
893
894 // NewSubnetOp creates new SubnetOp instance
895 func NewSubnetOp() iaas.SubnetAPI {
896 return &SubnetOp{
897 key: ResourceSubnet,
898 }
899 }
900
901 /*************************************************
902 * SwitchOp
903 *************************************************/
904
905 // SwitchOp is fake implementation of SwitchAPI interface
906 type SwitchOp struct {
907 key string
908 }
909
910 // NewSwitchOp creates new SwitchOp instance
911 func NewSwitchOp() iaas.SwitchAPI {
912 return &SwitchOp{
913 key: ResourceSwitch,
914 }
915 }
916
917 /*************************************************
918 * VPCRouterOp
919 *************************************************/
920
921 // VPCRouterOp is fake implementation of VPCRouterAPI interface
922 type VPCRouterOp struct {
923 key string
924 }
925
926 // NewVPCRouterOp creates new VPCRouterOp instance
927 func NewVPCRouterOp() iaas.VPCRouterAPI {
928 return &VPCRouterOp{
929 key: ResourceVPCRouter,
930 }
931 }
932
933 /*************************************************
934 * ZoneOp
935 *************************************************/
936
937 // ZoneOp is fake implementation of ZoneAPI interface
938 type ZoneOp struct {
939 key string
940 }
941
942 // NewZoneOp creates new ZoneOp instance
943 func NewZoneOp() iaas.ZoneAPI {
944 return &ZoneOp{
945 key: ResourceZone,
946 }
947 }
948