github.com/sacloud/iaas-api-go@v1.12.0/fake/zz_api_ops.go (about)

     1  // Copyright 2022-2023 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(ResourceSSHKey, func(caller iaas.APICaller) interface{} {
   159  		return NewSSHKeyOp()
   160  	})
   161  	iaas.SetClientFactoryFunc(ResourceSubnet, func(caller iaas.APICaller) interface{} {
   162  		return NewSubnetOp()
   163  	})
   164  	iaas.SetClientFactoryFunc(ResourceSwitch, func(caller iaas.APICaller) interface{} {
   165  		return NewSwitchOp()
   166  	})
   167  	iaas.SetClientFactoryFunc(ResourceVPCRouter, func(caller iaas.APICaller) interface{} {
   168  		return NewVPCRouterOp()
   169  	})
   170  	iaas.SetClientFactoryFunc(ResourceZone, func(caller iaas.APICaller) interface{} {
   171  		return NewZoneOp()
   172  	})
   173  }
   174  
   175  /*************************************************
   176  * ArchiveOp
   177  *************************************************/
   178  
   179  // ArchiveOp is fake implementation of ArchiveAPI interface
   180  type ArchiveOp struct {
   181  	key string
   182  }
   183  
   184  // NewArchiveOp creates new ArchiveOp instance
   185  func NewArchiveOp() iaas.ArchiveAPI {
   186  	return &ArchiveOp{
   187  		key: ResourceArchive,
   188  	}
   189  }
   190  
   191  /*************************************************
   192  * AuthStatusOp
   193  *************************************************/
   194  
   195  // AuthStatusOp is fake implementation of AuthStatusAPI interface
   196  type AuthStatusOp struct {
   197  	key string
   198  }
   199  
   200  // NewAuthStatusOp creates new AuthStatusOp instance
   201  func NewAuthStatusOp() iaas.AuthStatusAPI {
   202  	return &AuthStatusOp{
   203  		key: ResourceAuthStatus,
   204  	}
   205  }
   206  
   207  /*************************************************
   208  * AutoBackupOp
   209  *************************************************/
   210  
   211  // AutoBackupOp is fake implementation of AutoBackupAPI interface
   212  type AutoBackupOp struct {
   213  	key string
   214  }
   215  
   216  // NewAutoBackupOp creates new AutoBackupOp instance
   217  func NewAutoBackupOp() iaas.AutoBackupAPI {
   218  	return &AutoBackupOp{
   219  		key: ResourceAutoBackup,
   220  	}
   221  }
   222  
   223  /*************************************************
   224  * AutoScaleOp
   225  *************************************************/
   226  
   227  // AutoScaleOp is fake implementation of AutoScaleAPI interface
   228  type AutoScaleOp struct {
   229  	key string
   230  }
   231  
   232  // NewAutoScaleOp creates new AutoScaleOp instance
   233  func NewAutoScaleOp() iaas.AutoScaleAPI {
   234  	return &AutoScaleOp{
   235  		key: ResourceAutoScale,
   236  	}
   237  }
   238  
   239  /*************************************************
   240  * BillOp
   241  *************************************************/
   242  
   243  // BillOp is fake implementation of BillAPI interface
   244  type BillOp struct {
   245  	key string
   246  }
   247  
   248  // NewBillOp creates new BillOp instance
   249  func NewBillOp() iaas.BillAPI {
   250  	return &BillOp{
   251  		key: ResourceBill,
   252  	}
   253  }
   254  
   255  /*************************************************
   256  * BridgeOp
   257  *************************************************/
   258  
   259  // BridgeOp is fake implementation of BridgeAPI interface
   260  type BridgeOp struct {
   261  	key string
   262  }
   263  
   264  // NewBridgeOp creates new BridgeOp instance
   265  func NewBridgeOp() iaas.BridgeAPI {
   266  	return &BridgeOp{
   267  		key: ResourceBridge,
   268  	}
   269  }
   270  
   271  /*************************************************
   272  * CDROMOp
   273  *************************************************/
   274  
   275  // CDROMOp is fake implementation of CDROMAPI interface
   276  type CDROMOp struct {
   277  	key string
   278  }
   279  
   280  // NewCDROMOp creates new CDROMOp instance
   281  func NewCDROMOp() iaas.CDROMAPI {
   282  	return &CDROMOp{
   283  		key: ResourceCDROM,
   284  	}
   285  }
   286  
   287  /*************************************************
   288  * CertificateAuthorityOp
   289  *************************************************/
   290  
   291  // CertificateAuthorityOp is fake implementation of CertificateAuthorityAPI interface
   292  type CertificateAuthorityOp struct {
   293  	key string
   294  }
   295  
   296  // NewCertificateAuthorityOp creates new CertificateAuthorityOp instance
   297  func NewCertificateAuthorityOp() iaas.CertificateAuthorityAPI {
   298  	return &CertificateAuthorityOp{
   299  		key: ResourceCertificateAuthority,
   300  	}
   301  }
   302  
   303  /*************************************************
   304  * ContainerRegistryOp
   305  *************************************************/
   306  
   307  // ContainerRegistryOp is fake implementation of ContainerRegistryAPI interface
   308  type ContainerRegistryOp struct {
   309  	key string
   310  }
   311  
   312  // NewContainerRegistryOp creates new ContainerRegistryOp instance
   313  func NewContainerRegistryOp() iaas.ContainerRegistryAPI {
   314  	return &ContainerRegistryOp{
   315  		key: ResourceContainerRegistry,
   316  	}
   317  }
   318  
   319  /*************************************************
   320  * CouponOp
   321  *************************************************/
   322  
   323  // CouponOp is fake implementation of CouponAPI interface
   324  type CouponOp struct {
   325  	key string
   326  }
   327  
   328  // NewCouponOp creates new CouponOp instance
   329  func NewCouponOp() iaas.CouponAPI {
   330  	return &CouponOp{
   331  		key: ResourceCoupon,
   332  	}
   333  }
   334  
   335  /*************************************************
   336  * DatabaseOp
   337  *************************************************/
   338  
   339  // DatabaseOp is fake implementation of DatabaseAPI interface
   340  type DatabaseOp struct {
   341  	key string
   342  }
   343  
   344  // NewDatabaseOp creates new DatabaseOp instance
   345  func NewDatabaseOp() iaas.DatabaseAPI {
   346  	return &DatabaseOp{
   347  		key: ResourceDatabase,
   348  	}
   349  }
   350  
   351  /*************************************************
   352  * DiskOp
   353  *************************************************/
   354  
   355  // DiskOp is fake implementation of DiskAPI interface
   356  type DiskOp struct {
   357  	key string
   358  }
   359  
   360  // NewDiskOp creates new DiskOp instance
   361  func NewDiskOp() iaas.DiskAPI {
   362  	return &DiskOp{
   363  		key: ResourceDisk,
   364  	}
   365  }
   366  
   367  /*************************************************
   368  * DiskPlanOp
   369  *************************************************/
   370  
   371  // DiskPlanOp is fake implementation of DiskPlanAPI interface
   372  type DiskPlanOp struct {
   373  	key string
   374  }
   375  
   376  // NewDiskPlanOp creates new DiskPlanOp instance
   377  func NewDiskPlanOp() iaas.DiskPlanAPI {
   378  	return &DiskPlanOp{
   379  		key: ResourceDiskPlan,
   380  	}
   381  }
   382  
   383  /*************************************************
   384  * DNSOp
   385  *************************************************/
   386  
   387  // DNSOp is fake implementation of DNSAPI interface
   388  type DNSOp struct {
   389  	key string
   390  }
   391  
   392  // NewDNSOp creates new DNSOp instance
   393  func NewDNSOp() iaas.DNSAPI {
   394  	return &DNSOp{
   395  		key: ResourceDNS,
   396  	}
   397  }
   398  
   399  /*************************************************
   400  * EnhancedDBOp
   401  *************************************************/
   402  
   403  // EnhancedDBOp is fake implementation of EnhancedDBAPI interface
   404  type EnhancedDBOp struct {
   405  	key string
   406  }
   407  
   408  // NewEnhancedDBOp creates new EnhancedDBOp instance
   409  func NewEnhancedDBOp() iaas.EnhancedDBAPI {
   410  	return &EnhancedDBOp{
   411  		key: ResourceEnhancedDB,
   412  	}
   413  }
   414  
   415  /*************************************************
   416  * ESMEOp
   417  *************************************************/
   418  
   419  // ESMEOp is fake implementation of ESMEAPI interface
   420  type ESMEOp struct {
   421  	key string
   422  }
   423  
   424  // NewESMEOp creates new ESMEOp instance
   425  func NewESMEOp() iaas.ESMEAPI {
   426  	return &ESMEOp{
   427  		key: ResourceESME,
   428  	}
   429  }
   430  
   431  /*************************************************
   432  * GSLBOp
   433  *************************************************/
   434  
   435  // GSLBOp is fake implementation of GSLBAPI interface
   436  type GSLBOp struct {
   437  	key string
   438  }
   439  
   440  // NewGSLBOp creates new GSLBOp instance
   441  func NewGSLBOp() iaas.GSLBAPI {
   442  	return &GSLBOp{
   443  		key: ResourceGSLB,
   444  	}
   445  }
   446  
   447  /*************************************************
   448  * IconOp
   449  *************************************************/
   450  
   451  // IconOp is fake implementation of IconAPI interface
   452  type IconOp struct {
   453  	key string
   454  }
   455  
   456  // NewIconOp creates new IconOp instance
   457  func NewIconOp() iaas.IconAPI {
   458  	return &IconOp{
   459  		key: ResourceIcon,
   460  	}
   461  }
   462  
   463  /*************************************************
   464  * InterfaceOp
   465  *************************************************/
   466  
   467  // InterfaceOp is fake implementation of InterfaceAPI interface
   468  type InterfaceOp struct {
   469  	key string
   470  }
   471  
   472  // NewInterfaceOp creates new InterfaceOp instance
   473  func NewInterfaceOp() iaas.InterfaceAPI {
   474  	return &InterfaceOp{
   475  		key: ResourceInterface,
   476  	}
   477  }
   478  
   479  /*************************************************
   480  * InternetOp
   481  *************************************************/
   482  
   483  // InternetOp is fake implementation of InternetAPI interface
   484  type InternetOp struct {
   485  	key string
   486  }
   487  
   488  // NewInternetOp creates new InternetOp instance
   489  func NewInternetOp() iaas.InternetAPI {
   490  	return &InternetOp{
   491  		key: ResourceInternet,
   492  	}
   493  }
   494  
   495  /*************************************************
   496  * InternetPlanOp
   497  *************************************************/
   498  
   499  // InternetPlanOp is fake implementation of InternetPlanAPI interface
   500  type InternetPlanOp struct {
   501  	key string
   502  }
   503  
   504  // NewInternetPlanOp creates new InternetPlanOp instance
   505  func NewInternetPlanOp() iaas.InternetPlanAPI {
   506  	return &InternetPlanOp{
   507  		key: ResourceInternetPlan,
   508  	}
   509  }
   510  
   511  /*************************************************
   512  * IPAddressOp
   513  *************************************************/
   514  
   515  // IPAddressOp is fake implementation of IPAddressAPI interface
   516  type IPAddressOp struct {
   517  	key string
   518  }
   519  
   520  // NewIPAddressOp creates new IPAddressOp instance
   521  func NewIPAddressOp() iaas.IPAddressAPI {
   522  	return &IPAddressOp{
   523  		key: ResourceIPAddress,
   524  	}
   525  }
   526  
   527  /*************************************************
   528  * IPv6NetOp
   529  *************************************************/
   530  
   531  // IPv6NetOp is fake implementation of IPv6NetAPI interface
   532  type IPv6NetOp struct {
   533  	key string
   534  }
   535  
   536  // NewIPv6NetOp creates new IPv6NetOp instance
   537  func NewIPv6NetOp() iaas.IPv6NetAPI {
   538  	return &IPv6NetOp{
   539  		key: ResourceIPv6Net,
   540  	}
   541  }
   542  
   543  /*************************************************
   544  * IPv6AddrOp
   545  *************************************************/
   546  
   547  // IPv6AddrOp is fake implementation of IPv6AddrAPI interface
   548  type IPv6AddrOp struct {
   549  	key string
   550  }
   551  
   552  // NewIPv6AddrOp creates new IPv6AddrOp instance
   553  func NewIPv6AddrOp() iaas.IPv6AddrAPI {
   554  	return &IPv6AddrOp{
   555  		key: ResourceIPv6Addr,
   556  	}
   557  }
   558  
   559  /*************************************************
   560  * LicenseOp
   561  *************************************************/
   562  
   563  // LicenseOp is fake implementation of LicenseAPI interface
   564  type LicenseOp struct {
   565  	key string
   566  }
   567  
   568  // NewLicenseOp creates new LicenseOp instance
   569  func NewLicenseOp() iaas.LicenseAPI {
   570  	return &LicenseOp{
   571  		key: ResourceLicense,
   572  	}
   573  }
   574  
   575  /*************************************************
   576  * LicenseInfoOp
   577  *************************************************/
   578  
   579  // LicenseInfoOp is fake implementation of LicenseInfoAPI interface
   580  type LicenseInfoOp struct {
   581  	key string
   582  }
   583  
   584  // NewLicenseInfoOp creates new LicenseInfoOp instance
   585  func NewLicenseInfoOp() iaas.LicenseInfoAPI {
   586  	return &LicenseInfoOp{
   587  		key: ResourceLicenseInfo,
   588  	}
   589  }
   590  
   591  /*************************************************
   592  * LoadBalancerOp
   593  *************************************************/
   594  
   595  // LoadBalancerOp is fake implementation of LoadBalancerAPI interface
   596  type LoadBalancerOp struct {
   597  	key string
   598  }
   599  
   600  // NewLoadBalancerOp creates new LoadBalancerOp instance
   601  func NewLoadBalancerOp() iaas.LoadBalancerAPI {
   602  	return &LoadBalancerOp{
   603  		key: ResourceLoadBalancer,
   604  	}
   605  }
   606  
   607  /*************************************************
   608  * LocalRouterOp
   609  *************************************************/
   610  
   611  // LocalRouterOp is fake implementation of LocalRouterAPI interface
   612  type LocalRouterOp struct {
   613  	key string
   614  }
   615  
   616  // NewLocalRouterOp creates new LocalRouterOp instance
   617  func NewLocalRouterOp() iaas.LocalRouterAPI {
   618  	return &LocalRouterOp{
   619  		key: ResourceLocalRouter,
   620  	}
   621  }
   622  
   623  /*************************************************
   624  * MobileGatewayOp
   625  *************************************************/
   626  
   627  // MobileGatewayOp is fake implementation of MobileGatewayAPI interface
   628  type MobileGatewayOp struct {
   629  	key string
   630  }
   631  
   632  // NewMobileGatewayOp creates new MobileGatewayOp instance
   633  func NewMobileGatewayOp() iaas.MobileGatewayAPI {
   634  	return &MobileGatewayOp{
   635  		key: ResourceMobileGateway,
   636  	}
   637  }
   638  
   639  /*************************************************
   640  * NFSOp
   641  *************************************************/
   642  
   643  // NFSOp is fake implementation of NFSAPI interface
   644  type NFSOp struct {
   645  	key string
   646  }
   647  
   648  // NewNFSOp creates new NFSOp instance
   649  func NewNFSOp() iaas.NFSAPI {
   650  	return &NFSOp{
   651  		key: ResourceNFS,
   652  	}
   653  }
   654  
   655  /*************************************************
   656  * NoteOp
   657  *************************************************/
   658  
   659  // NoteOp is fake implementation of NoteAPI interface
   660  type NoteOp struct {
   661  	key string
   662  }
   663  
   664  // NewNoteOp creates new NoteOp instance
   665  func NewNoteOp() iaas.NoteAPI {
   666  	return &NoteOp{
   667  		key: ResourceNote,
   668  	}
   669  }
   670  
   671  /*************************************************
   672  * PacketFilterOp
   673  *************************************************/
   674  
   675  // PacketFilterOp is fake implementation of PacketFilterAPI interface
   676  type PacketFilterOp struct {
   677  	key string
   678  }
   679  
   680  // NewPacketFilterOp creates new PacketFilterOp instance
   681  func NewPacketFilterOp() iaas.PacketFilterAPI {
   682  	return &PacketFilterOp{
   683  		key: ResourcePacketFilter,
   684  	}
   685  }
   686  
   687  /*************************************************
   688  * PrivateHostOp
   689  *************************************************/
   690  
   691  // PrivateHostOp is fake implementation of PrivateHostAPI interface
   692  type PrivateHostOp struct {
   693  	key string
   694  }
   695  
   696  // NewPrivateHostOp creates new PrivateHostOp instance
   697  func NewPrivateHostOp() iaas.PrivateHostAPI {
   698  	return &PrivateHostOp{
   699  		key: ResourcePrivateHost,
   700  	}
   701  }
   702  
   703  /*************************************************
   704  * PrivateHostPlanOp
   705  *************************************************/
   706  
   707  // PrivateHostPlanOp is fake implementation of PrivateHostPlanAPI interface
   708  type PrivateHostPlanOp struct {
   709  	key string
   710  }
   711  
   712  // NewPrivateHostPlanOp creates new PrivateHostPlanOp instance
   713  func NewPrivateHostPlanOp() iaas.PrivateHostPlanAPI {
   714  	return &PrivateHostPlanOp{
   715  		key: ResourcePrivateHostPlan,
   716  	}
   717  }
   718  
   719  /*************************************************
   720  * ProxyLBOp
   721  *************************************************/
   722  
   723  // ProxyLBOp is fake implementation of ProxyLBAPI interface
   724  type ProxyLBOp struct {
   725  	key string
   726  }
   727  
   728  // NewProxyLBOp creates new ProxyLBOp instance
   729  func NewProxyLBOp() iaas.ProxyLBAPI {
   730  	return &ProxyLBOp{
   731  		key: ResourceProxyLB,
   732  	}
   733  }
   734  
   735  /*************************************************
   736  * RegionOp
   737  *************************************************/
   738  
   739  // RegionOp is fake implementation of RegionAPI interface
   740  type RegionOp struct {
   741  	key string
   742  }
   743  
   744  // NewRegionOp creates new RegionOp instance
   745  func NewRegionOp() iaas.RegionAPI {
   746  	return &RegionOp{
   747  		key: ResourceRegion,
   748  	}
   749  }
   750  
   751  /*************************************************
   752  * ServerOp
   753  *************************************************/
   754  
   755  // ServerOp is fake implementation of ServerAPI interface
   756  type ServerOp struct {
   757  	key string
   758  }
   759  
   760  // NewServerOp creates new ServerOp instance
   761  func NewServerOp() iaas.ServerAPI {
   762  	return &ServerOp{
   763  		key: ResourceServer,
   764  	}
   765  }
   766  
   767  /*************************************************
   768  * ServerPlanOp
   769  *************************************************/
   770  
   771  // ServerPlanOp is fake implementation of ServerPlanAPI interface
   772  type ServerPlanOp struct {
   773  	key string
   774  }
   775  
   776  // NewServerPlanOp creates new ServerPlanOp instance
   777  func NewServerPlanOp() iaas.ServerPlanAPI {
   778  	return &ServerPlanOp{
   779  		key: ResourceServerPlan,
   780  	}
   781  }
   782  
   783  /*************************************************
   784  * ServiceClassOp
   785  *************************************************/
   786  
   787  // ServiceClassOp is fake implementation of ServiceClassAPI interface
   788  type ServiceClassOp struct {
   789  	key string
   790  }
   791  
   792  // NewServiceClassOp creates new ServiceClassOp instance
   793  func NewServiceClassOp() iaas.ServiceClassAPI {
   794  	return &ServiceClassOp{
   795  		key: ResourceServiceClass,
   796  	}
   797  }
   798  
   799  /*************************************************
   800  * SIMOp
   801  *************************************************/
   802  
   803  // SIMOp is fake implementation of SIMAPI interface
   804  type SIMOp struct {
   805  	key string
   806  }
   807  
   808  // NewSIMOp creates new SIMOp instance
   809  func NewSIMOp() iaas.SIMAPI {
   810  	return &SIMOp{
   811  		key: ResourceSIM,
   812  	}
   813  }
   814  
   815  /*************************************************
   816  * SimpleMonitorOp
   817  *************************************************/
   818  
   819  // SimpleMonitorOp is fake implementation of SimpleMonitorAPI interface
   820  type SimpleMonitorOp struct {
   821  	key string
   822  }
   823  
   824  // NewSimpleMonitorOp creates new SimpleMonitorOp instance
   825  func NewSimpleMonitorOp() iaas.SimpleMonitorAPI {
   826  	return &SimpleMonitorOp{
   827  		key: ResourceSimpleMonitor,
   828  	}
   829  }
   830  
   831  /*************************************************
   832  * SSHKeyOp
   833  *************************************************/
   834  
   835  // SSHKeyOp is fake implementation of SSHKeyAPI interface
   836  type SSHKeyOp struct {
   837  	key string
   838  }
   839  
   840  // NewSSHKeyOp creates new SSHKeyOp instance
   841  func NewSSHKeyOp() iaas.SSHKeyAPI {
   842  	return &SSHKeyOp{
   843  		key: ResourceSSHKey,
   844  	}
   845  }
   846  
   847  /*************************************************
   848  * SubnetOp
   849  *************************************************/
   850  
   851  // SubnetOp is fake implementation of SubnetAPI interface
   852  type SubnetOp struct {
   853  	key string
   854  }
   855  
   856  // NewSubnetOp creates new SubnetOp instance
   857  func NewSubnetOp() iaas.SubnetAPI {
   858  	return &SubnetOp{
   859  		key: ResourceSubnet,
   860  	}
   861  }
   862  
   863  /*************************************************
   864  * SwitchOp
   865  *************************************************/
   866  
   867  // SwitchOp is fake implementation of SwitchAPI interface
   868  type SwitchOp struct {
   869  	key string
   870  }
   871  
   872  // NewSwitchOp creates new SwitchOp instance
   873  func NewSwitchOp() iaas.SwitchAPI {
   874  	return &SwitchOp{
   875  		key: ResourceSwitch,
   876  	}
   877  }
   878  
   879  /*************************************************
   880  * VPCRouterOp
   881  *************************************************/
   882  
   883  // VPCRouterOp is fake implementation of VPCRouterAPI interface
   884  type VPCRouterOp struct {
   885  	key string
   886  }
   887  
   888  // NewVPCRouterOp creates new VPCRouterOp instance
   889  func NewVPCRouterOp() iaas.VPCRouterAPI {
   890  	return &VPCRouterOp{
   891  		key: ResourceVPCRouter,
   892  	}
   893  }
   894  
   895  /*************************************************
   896  * ZoneOp
   897  *************************************************/
   898  
   899  // ZoneOp is fake implementation of ZoneAPI interface
   900  type ZoneOp struct {
   901  	key string
   902  }
   903  
   904  // NewZoneOp creates new ZoneOp instance
   905  func NewZoneOp() iaas.ZoneAPI {
   906  	return &ZoneOp{
   907  		key: ResourceZone,
   908  	}
   909  }