mirror of https://github.com/apache/cloudstack.git
marvin_refactor: update the entity dict but not through optional kwargs
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
35c7c5713a
commit
a5bd827c24
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
Loading…
Reference in New Issue