marvin_refactor: update the entity dict but not through optional kwargs

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-03-19 18:13:51 +05:30
parent 35c7c5713a
commit a5bd827c24
127 changed files with 256 additions and 251 deletions

View File

@ -26,8 +26,8 @@ from marvin.cloudstackAPI import deleteAccount
class Account(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def enable(self, apiclient, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import deleteAccountFromProject
class AccountFromProject(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def delete(self, apiclient, projectid, account, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import addAccountToProject
class AccountToProject(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def add(self, apiclient, projectid, **kwargs):

View File

@ -21,8 +21,8 @@ from marvin.cloudstackAPI import deleteAlerts
class Alerts(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -21,8 +21,8 @@ from marvin.cloudstackAPI import getApiLimit
class ApiLimit(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def reset(self, apiclient, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import listApis
class Apis(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import queryAsyncJobResult
class AsyncJobResult(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def query(self, apiclient, jobid, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import listAsyncJobs
class AsyncJobs(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import listAutoScalePolicies
class AutoScalePolicies(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -22,8 +22,8 @@ from marvin.cloudstackAPI import deleteAutoScalePolicy
class AutoScalePolicy(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -25,8 +25,8 @@ from marvin.cloudstackAPI import deleteAutoScaleVmGroup
class AutoScaleVmGroup(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def enable(self, apiclient, id, **kwargs):

View File

@ -23,8 +23,8 @@ from marvin.cloudstackAPI import deleteAutoScaleVmProfile
class AutoScaleVmProfile(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -22,8 +22,8 @@ from marvin.cloudstackAPI import deleteBigSwitchVnsDevice
class BigSwitchVnsDevice(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def add(self, apiclient, physicalnetworkid, hostname, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import listCapabilities
class Capabilities(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import listCapacity
class Capacity(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import getCloudIdentifier
class CloudIdentifier(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def get(self, apiclient, userid, **kwargs):

View File

@ -23,8 +23,8 @@ from marvin.cloudstackAPI import deleteCluster
class Cluster(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def add(self, apiclient, clustername, hypervisor, zoneid, clustertype, podid, **kwargs):

View File

@ -22,8 +22,8 @@ from marvin.cloudstackAPI import deleteCondition
class Condition(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import ldapConfig
class Config(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def ldap(self, apiclient, **kwargs):

View File

@ -21,8 +21,8 @@ from marvin.cloudstackAPI import updateConfiguration
class Configuration(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -22,8 +22,8 @@ from marvin.cloudstackAPI import deleteCounter
class Counter(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import uploadCustomCertificate
class CustomCertificate(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def upload(self, apiclient, domainsuffix, certificate, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import updateDefaultNicForVirtualMachine
class DefaultNicForVirtualMachine(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def update(self, apiclient, nicid, virtualmachineid, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import markDefaultZoneForAccount
class DefaultZoneForAccount(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def mark(self, apiclient, account, domainid, zoneid, **kwargs):

View File

@ -23,8 +23,8 @@ from marvin.cloudstackAPI import deleteDiskOffering
class DiskOffering(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -23,8 +23,8 @@ from marvin.cloudstackAPI import deleteDomain
class Domain(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import listDomainChildren
class DomainChildren(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -22,8 +22,8 @@ from marvin.cloudstackAPI import deleteEgressFirewallRule
class EgressFirewallRule(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import listEventTypes
class EventTypes(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -21,8 +21,8 @@ from marvin.cloudstackAPI import deleteEvents
class Events(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -22,8 +22,8 @@ from marvin.cloudstackAPI import deleteFirewallRule
class FirewallRule(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import removeFromLoadBalancerRule
class FromLoadBalancerRule(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def remove(self, apiclient, id, virtualmachineids, **kwargs):

View File

@ -24,8 +24,8 @@ from marvin.cloudstackAPI import deleteHost
class Host(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def add(self, apiclient, username, podid, url, hypervisor, zoneid, password, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import prepareHostForMaintenance
class HostForMaintenance(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def prepare(self, apiclient, id, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import cancelHostMaintenance
class HostMaintenance(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def cancel(self, apiclient, id, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import updateHostPassword
class HostPassword(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def update(self, apiclient, username, password, **kwargs):

View File

@ -21,8 +21,8 @@ from marvin.cloudstackAPI import updateHypervisorCapabilities
class HypervisorCapabilities(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import listHypervisors
class Hypervisors(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -23,8 +23,8 @@ from marvin.cloudstackAPI import deleteInstanceGroup
class InstanceGroup(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -21,8 +21,8 @@ from marvin.cloudstackAPI import associateIpAddress
class IpAddress(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def disassociate(self, apiclient, id, **kwargs):

View File

@ -22,8 +22,8 @@ from marvin.cloudstackAPI import deleteIpForwardingRule
class IpForwardingRule(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import removeIpFromNic
class IpFromNic(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def remove(self, apiclient, id, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import addIpToNic
class IpToNic(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def add(self, apiclient, nicid, **kwargs):

View File

@ -27,8 +27,8 @@ from marvin.cloudstackAPI import deleteIso
class Iso(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def copy(self, apiclient, sourcezoneid, id, destzoneid, **kwargs):

View File

@ -21,8 +21,8 @@ from marvin.cloudstackAPI import updateIsoPermissions
class IsoPermissions(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import listLBStickinessPolicies
class LBStickinessPolicies(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -21,8 +21,8 @@ from marvin.cloudstackAPI import deleteLBStickinessPolicy
class LBStickinessPolicy(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -23,8 +23,8 @@ from marvin.cloudstackAPI import deleteLoadBalancerRule
class LoadBalancerRule(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import listLoadBalancerRuleInstances
class LoadBalancerRuleInstances(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -24,8 +24,8 @@ from marvin.cloudstackAPI import deleteNetwork
class Network(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -22,8 +22,8 @@ from marvin.cloudstackAPI import deleteNetworkACL
class NetworkACL(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -22,8 +22,8 @@ from marvin.cloudstackAPI import deleteNetworkDevice
class NetworkDevice(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def add(self, apiclient, **kwargs):

View File

@ -23,8 +23,8 @@ from marvin.cloudstackAPI import deleteNetworkOffering
class NetworkOffering(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -23,8 +23,8 @@ from marvin.cloudstackAPI import deleteNetworkServiceProvider
class NetworkServiceProvider(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def add(self, apiclient, physicalnetworkid, name, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import removeNicFromVirtualMachine
class NicFromVirtualMachine(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def remove(self, apiclient, nicid, virtualmachineid, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import addNicToVirtualMachine
class NicToVirtualMachine(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def add(self, apiclient, networkid, virtualmachineid, **kwargs):

View File

@ -22,8 +22,8 @@ from marvin.cloudstackAPI import deleteNiciraNvpDevice
class NiciraNvpDevice(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def add(self, apiclient, username, physicalnetworkid, password, hostname, transportzoneuuid, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import listNiciraNvpDeviceNetworks
class NiciraNvpDeviceNetworks(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import listNics
class Nics(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import listOsCategories
class OsCategories(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import listOsTypes
class OsTypes(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import resetPasswordForVirtualMachine
class PasswordForVirtualMachine(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def reset(self, apiclient, id, **kwargs):

View File

@ -23,8 +23,8 @@ from marvin.cloudstackAPI import deletePhysicalNetwork
class PhysicalNetwork(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -23,8 +23,8 @@ from marvin.cloudstackAPI import deletePod
class Pod(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -23,8 +23,8 @@ from marvin.cloudstackAPI import deletePortForwardingRule
class PortForwardingRule(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -22,8 +22,8 @@ from marvin.cloudstackAPI import deletePrivateGateway
class PrivateGateway(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -25,8 +25,8 @@ from marvin.cloudstackAPI import deleteProject
class Project(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def suspend(self, apiclient, id, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import listProjectAccounts
class ProjectAccounts(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -22,8 +22,8 @@ from marvin.cloudstackAPI import deleteProjectInvitation
class ProjectInvitation(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import listPublicIpAddresses
class PublicIpAddresses(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -23,8 +23,8 @@ from marvin.cloudstackAPI import removeRegion
class Region(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def add(self, apiclient, endpoint, id, name, **kwargs):

View File

@ -22,8 +22,8 @@ from marvin.cloudstackAPI import deleteRemoteAccessVpn
class RemoteAccessVpn(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import ldapRemove
class Remove(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def ldap(self, apiclient, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import updateResourceCount
class ResourceCount(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def update(self, apiclient, domainid, **kwargs):

View File

@ -21,8 +21,8 @@ from marvin.cloudstackAPI import updateResourceLimit
class ResourceLimit(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -24,8 +24,8 @@ from marvin.cloudstackAPI import startRouter
class Router(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def destroy(self, apiclient, id, **kwargs):

View File

@ -21,8 +21,8 @@ from marvin.cloudstackAPI import listS3s
class S3(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def add(self, apiclient, secretkey, accesskey, bucket, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import resetSSHKeyForVirtualMachine
class SSHKeyForVirtualMachine(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def reset(self, apiclient, keypair, id, **kwargs):

View File

@ -23,8 +23,8 @@ from marvin.cloudstackAPI import deleteSSHKeyPair
class SSHKeyPair(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import addSecondaryStorage
class SecondaryStorage(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def add(self, apiclient, url, **kwargs):

View File

@ -22,8 +22,8 @@ from marvin.cloudstackAPI import deleteSecurityGroup
class SecurityGroup(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -21,8 +21,8 @@ from marvin.cloudstackAPI import revokeSecurityGroupEgress
class SecurityGroupEgress(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def authorize(self, apiclient, **kwargs):

View File

@ -21,8 +21,8 @@ from marvin.cloudstackAPI import revokeSecurityGroupIngress
class SecurityGroupIngress(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def authorize(self, apiclient, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import changeServiceForRouter
class ServiceForRouter(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def change(self, apiclient, id, serviceofferingid, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import changeServiceForSystemVm
class ServiceForSystemVm(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def change(self, apiclient, id, serviceofferingid, **kwargs):

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import changeServiceForVirtualMachine
class ServiceForVirtualMachine(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def change(self, apiclient, id, serviceofferingid, **kwargs):

View File

@ -23,8 +23,8 @@ from marvin.cloudstackAPI import deleteServiceOffering
class ServiceOffering(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import configureSimulator
class Simulator(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def configure(self, apiclient, name, value, **kwargs):

View File

@ -22,8 +22,8 @@ from marvin.cloudstackAPI import deleteSnapshot
class Snapshot(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -21,8 +21,8 @@ from marvin.cloudstackAPI import deleteSnapshotPolicies
class SnapshotPolicies(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import createSnapshotPolicy
class SnapshotPolicy(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -21,8 +21,8 @@ from marvin.cloudstackAPI import disableStaticNat
class StaticNat(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def enable(self, apiclient, ipaddressid, virtualmachineid, **kwargs):

View File

@ -22,8 +22,8 @@ from marvin.cloudstackAPI import deleteStaticRoute
class StaticRoute(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -21,8 +21,8 @@ from marvin.cloudstackAPI import enableStorageMaintenance
class StorageMaintenance(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def cancel(self, apiclient, id, **kwargs):

View File

@ -23,8 +23,8 @@ from marvin.cloudstackAPI import deleteStorageNetworkIpRange
class StorageNetworkIpRange(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -23,8 +23,8 @@ from marvin.cloudstackAPI import deleteStoragePool
class StoragePool(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -20,8 +20,8 @@ from marvin.cloudstackAPI import listSupportedNetworkServices
class SupportedNetworkServices(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

View File

@ -21,8 +21,8 @@ from marvin.cloudstackAPI import listSwifts
class Swift(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def add(self, apiclient, url, **kwargs):

View File

@ -25,8 +25,8 @@ from marvin.cloudstackAPI import destroySystemVm
class SystemVm(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
def migrate(self, apiclient, hostid, virtualmachineid, **kwargs):

View File

@ -22,8 +22,8 @@ from marvin.cloudstackAPI import deleteTags
class Tags(CloudStackEntity.CloudStackEntity):
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
def __init__(self, items):
self.__dict__.update(items)
@classmethod

Some files were not shown because too many files have changed in this diff Show More