From 6ffe0c42a82d89fef62fb25a75fbfd19a83a0605 Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Sat, 26 Jan 2013 19:13:50 +0530 Subject: [PATCH] marvin_refactor: split base into multiple modules Each entity goes into its own module Append ASF license header to the entity Signed-off-by: Prasanna Santhanam --- .../marvin/integration/lib/base/Account.py | 38 +++++++++++++++ .../lib/base/AccountFromProject.py | 20 ++++++++ .../integration/lib/base/AccountToProject.py | 20 ++++++++ .../marvin/integration/lib/base/Alerts.py | 20 ++++++++ .../marvin/integration/lib/base/ApiLimit.py | 23 +++++++++ .../marvin/integration/lib/base/Apis.py | 20 ++++++++ .../integration/lib/base/AsyncJobResult.py | 20 ++++++++ .../marvin/integration/lib/base/AsyncJobs.py | 20 ++++++++ .../integration/lib/base/AutoScalePolicies.py | 20 ++++++++ .../integration/lib/base/AutoScalePolicy.py | 26 ++++++++++ .../integration/lib/base/AutoScaleVmGroup.py | 35 ++++++++++++++ .../lib/base/AutoScaleVmProfile.py | 29 ++++++++++++ .../integration/lib/base/Capabilities.py | 20 ++++++++ .../marvin/integration/lib/base/Capacity.py | 20 ++++++++ .../integration/lib/base/CloudIdentifier.py | 20 ++++++++ .../marvin/integration/lib/base/Cluster.py | 29 ++++++++++++ .../marvin/integration/lib/base/Condition.py | 26 ++++++++++ .../marvin/integration/lib/base/Config.py | 20 ++++++++ .../integration/lib/base/Configuration.py | 23 +++++++++ .../marvin/integration/lib/base/Counter.py | 26 ++++++++++ .../integration/lib/base/CustomCertificate.py | 20 ++++++++ .../lib/base/DefaultZoneForAccount.py | 20 ++++++++ .../integration/lib/base/DiskOffering.py | 29 ++++++++++++ .../marvin/integration/lib/base/Domain.py | 29 ++++++++++++ .../integration/lib/base/DomainChildren.py | 20 ++++++++ .../marvin/integration/lib/base/EventTypes.py | 20 ++++++++ .../marvin/integration/lib/base/Events.py | 20 ++++++++ .../integration/lib/base/FirewallRule.py | 26 ++++++++++ .../lib/base/FromLoadBalancerRule.py | 20 ++++++++ .../marvin/integration/lib/base/Host.py | 32 +++++++++++++ .../lib/base/HostForMaintenance.py | 20 ++++++++ .../integration/lib/base/HostMaintenance.py | 20 ++++++++ .../integration/lib/base/HostPassword.py | 20 ++++++++ .../lib/base/HypervisorCapabilities.py | 23 +++++++++ .../integration/lib/base/Hypervisors.py | 20 ++++++++ .../integration/lib/base/InstanceGroup.py | 29 ++++++++++++ .../marvin/integration/lib/base/IpAddress.py | 23 +++++++++ .../integration/lib/base/IpForwardingRule.py | 26 ++++++++++ .../marvin/marvin/integration/lib/base/Iso.py | 41 ++++++++++++++++ .../integration/lib/base/IsoPermissions.py | 23 +++++++++ .../lib/base/LBStickinessPolicies.py | 20 ++++++++ .../lib/base/LBStickinessPolicy.py | 23 +++++++++ .../integration/lib/base/LoadBalancerRule.py | 29 ++++++++++++ .../lib/base/LoadBalancerRuleInstances.py | 20 ++++++++ .../marvin/integration/lib/base/Network.py | 32 +++++++++++++ .../marvin/integration/lib/base/NetworkACL.py | 26 ++++++++++ .../integration/lib/base/NetworkDevice.py | 26 ++++++++++ .../integration/lib/base/NetworkOffering.py | 29 ++++++++++++ .../lib/base/NetworkServiceProvider.py | 29 ++++++++++++ .../integration/lib/base/NiciraNvpDevice.py | 26 ++++++++++ .../lib/base/NiciraNvpDeviceNetworks.py | 20 ++++++++ .../integration/lib/base/OsCategories.py | 20 ++++++++ .../marvin/integration/lib/base/OsTypes.py | 20 ++++++++ .../lib/base/PasswordForVirtualMachine.py | 20 ++++++++ .../integration/lib/base/PhysicalNetwork.py | 29 ++++++++++++ .../marvin/marvin/integration/lib/base/Pod.py | 29 ++++++++++++ .../lib/base/PortForwardingRule.py | 29 ++++++++++++ .../integration/lib/base/PrivateGateway.py | 26 ++++++++++ .../marvin/integration/lib/base/Project.py | 35 ++++++++++++++ .../integration/lib/base/ProjectAccounts.py | 20 ++++++++ .../integration/lib/base/ProjectInvitation.py | 26 ++++++++++ .../integration/lib/base/PublicIpAddresses.py | 20 ++++++++ .../integration/lib/base/RemoteAccessVpn.py | 26 ++++++++++ .../marvin/integration/lib/base/Remove.py | 20 ++++++++ .../integration/lib/base/ResourceCount.py | 20 ++++++++ .../integration/lib/base/ResourceLimit.py | 23 +++++++++ .../marvin/integration/lib/base/Router.py | 32 +++++++++++++ .../marvin/marvin/integration/lib/base/S3.py | 23 +++++++++ .../marvin/integration/lib/base/SSHKeyPair.py | 29 ++++++++++++ .../integration/lib/base/SecondaryStorage.py | 20 ++++++++ .../integration/lib/base/SecurityGroup.py | 26 ++++++++++ .../lib/base/SecurityGroupEgress.py | 23 +++++++++ .../lib/base/SecurityGroupIngress.py | 23 +++++++++ .../integration/lib/base/ServiceForRouter.py | 20 ++++++++ .../lib/base/ServiceForSystemVm.py | 20 ++++++++ .../lib/base/ServiceForVirtualMachine.py | 20 ++++++++ .../integration/lib/base/ServiceOffering.py | 29 ++++++++++++ .../marvin/integration/lib/base/Snapshot.py | 26 ++++++++++ .../integration/lib/base/SnapshotPolicies.py | 23 +++++++++ .../integration/lib/base/SnapshotPolicy.py | 20 ++++++++ .../marvin/integration/lib/base/StaticNat.py | 23 +++++++++ .../integration/lib/base/StaticRoute.py | 26 ++++++++++ .../lib/base/StorageMaintenance.py | 23 +++++++++ .../lib/base/StorageNetworkIpRange.py | 29 ++++++++++++ .../integration/lib/base/StoragePool.py | 29 ++++++++++++ .../lib/base/SupportedNetworkServices.py | 20 ++++++++ .../marvin/integration/lib/base/Swift.py | 23 +++++++++ .../marvin/integration/lib/base/SystemVm.py | 35 ++++++++++++++ .../marvin/integration/lib/base/Tags.py | 26 ++++++++++ .../marvin/integration/lib/base/Template.py | 41 ++++++++++++++++ .../lib/base/TemplatePermissions.py | 23 +++++++++ .../lib/base/ToLoadBalancerRule.py | 20 ++++++++ .../integration/lib/base/TrafficMonitor.py | 26 ++++++++++ .../integration/lib/base/TrafficType.py | 29 ++++++++++++ .../lib/base/TrafficTypeImplementors.py | 20 ++++++++ .../integration/lib/base/UsageRecords.py | 23 +++++++++ .../marvin/integration/lib/base/UsageTypes.py | 20 ++++++++ .../marvin/integration/lib/base/User.py | 41 ++++++++++++++++ .../marvin/integration/lib/base/UserKeys.py | 20 ++++++++ .../marvin/integration/lib/base/VMPassword.py | 20 ++++++++ .../marvin/marvin/integration/lib/base/VPC.py | 32 +++++++++++++ .../integration/lib/base/VPCOffering.py | 29 ++++++++++++ .../integration/lib/base/VirtualMachine.py | 47 +++++++++++++++++++ .../lib/base/VirtualRouterElement.py | 26 ++++++++++ .../integration/lib/base/VlanIpRange.py | 26 ++++++++++ .../marvin/integration/lib/base/Volume.py | 41 ++++++++++++++++ .../integration/lib/base/VpnConnection.py | 29 ++++++++++++ .../lib/base/VpnCustomerGateway.py | 29 ++++++++++++ .../marvin/integration/lib/base/VpnGateway.py | 26 ++++++++++ .../marvin/integration/lib/base/VpnUser.py | 26 ++++++++++ .../marvin/integration/lib/base/Zone.py | 29 ++++++++++++ .../marvin/integration/lib/base/__init__.py | 16 +++++++ .../integration/lib/factory/AccountFactory.py | 16 +++++++ .../lib/factory/AutoScalePolicyFactory.py | 16 +++++++ .../lib/factory/AutoScaleVmGroupFactory.py | 16 +++++++ .../lib/factory/AutoScaleVmProfileFactory.py | 16 +++++++ .../lib/factory/ConditionFactory.py | 16 +++++++ .../integration/lib/factory/CounterFactory.py | 16 +++++++ .../lib/factory/DiskOfferingFactory.py | 16 +++++++ .../integration/lib/factory/DomainFactory.py | 16 +++++++ .../lib/factory/FirewallRuleFactory.py | 16 +++++++ .../lib/factory/InstanceGroupFactory.py | 16 +++++++ .../lib/factory/IpAddressFactory.py | 16 +++++++ .../lib/factory/IpForwardingRuleFactory.py | 16 +++++++ .../integration/lib/factory/IsoFactory.py | 16 +++++++ .../lib/factory/LBStickinessPolicyFactory.py | 16 +++++++ .../lib/factory/LoadBalancerRuleFactory.py | 16 +++++++ .../lib/factory/NetworkACLFactory.py | 16 +++++++ .../integration/lib/factory/NetworkFactory.py | 16 +++++++ .../lib/factory/NetworkOfferingFactory.py | 16 +++++++ .../lib/factory/PhysicalNetworkFactory.py | 16 +++++++ .../integration/lib/factory/PodFactory.py | 16 +++++++ .../lib/factory/PortForwardingRuleFactory.py | 16 +++++++ .../lib/factory/PrivateGatewayFactory.py | 16 +++++++ .../integration/lib/factory/ProjectFactory.py | 16 +++++++ .../lib/factory/RemoteAccessVpnFactory.py | 16 +++++++ .../lib/factory/SSHKeyPairFactory.py | 16 +++++++ .../lib/factory/SecurityGroupFactory.py | 16 +++++++ .../lib/factory/ServiceOfferingFactory.py | 16 +++++++ .../lib/factory/SnapshotFactory.py | 16 +++++++ .../lib/factory/SnapshotPolicyFactory.py | 16 +++++++ .../lib/factory/StaticRouteFactory.py | 16 +++++++ .../factory/StorageNetworkIpRangeFactory.py | 16 +++++++ .../lib/factory/StoragePoolFactory.py | 16 +++++++ .../integration/lib/factory/TagsFactory.py | 16 +++++++ .../lib/factory/TemplateFactory.py | 16 +++++++ .../integration/lib/factory/UserFactory.py | 16 +++++++ .../lib/factory/UserKeysFactory.py | 16 +++++++ .../integration/lib/factory/VPCFactory.py | 16 +++++++ .../lib/factory/VPCOfferingFactory.py | 16 +++++++ .../lib/factory/VirtualMachineFactory.py | 16 +++++++ .../factory/VirtualRouterElementFactory.py | 16 +++++++ .../lib/factory/VlanIpRangeFactory.py | 16 +++++++ .../integration/lib/factory/VolumeFactory.py | 16 +++++++ .../lib/factory/VpnConnectionFactory.py | 16 +++++++ .../lib/factory/VpnCustomerGatewayFactory.py | 16 +++++++ .../lib/factory/VpnGatewayFactory.py | 16 +++++++ .../integration/lib/factory/ZoneFactory.py | 16 +++++++ .../marvin/integration/lib/generateBase.py | 40 ++++++++++++---- .../integration/lib/{base.py => oldbase.py} | 10 ++-- 160 files changed, 3578 insertions(+), 14 deletions(-) create mode 100644 tools/marvin/marvin/integration/lib/base/Account.py create mode 100644 tools/marvin/marvin/integration/lib/base/AccountFromProject.py create mode 100644 tools/marvin/marvin/integration/lib/base/AccountToProject.py create mode 100644 tools/marvin/marvin/integration/lib/base/Alerts.py create mode 100644 tools/marvin/marvin/integration/lib/base/ApiLimit.py create mode 100644 tools/marvin/marvin/integration/lib/base/Apis.py create mode 100644 tools/marvin/marvin/integration/lib/base/AsyncJobResult.py create mode 100644 tools/marvin/marvin/integration/lib/base/AsyncJobs.py create mode 100644 tools/marvin/marvin/integration/lib/base/AutoScalePolicies.py create mode 100644 tools/marvin/marvin/integration/lib/base/AutoScalePolicy.py create mode 100644 tools/marvin/marvin/integration/lib/base/AutoScaleVmGroup.py create mode 100644 tools/marvin/marvin/integration/lib/base/AutoScaleVmProfile.py create mode 100644 tools/marvin/marvin/integration/lib/base/Capabilities.py create mode 100644 tools/marvin/marvin/integration/lib/base/Capacity.py create mode 100644 tools/marvin/marvin/integration/lib/base/CloudIdentifier.py create mode 100644 tools/marvin/marvin/integration/lib/base/Cluster.py create mode 100644 tools/marvin/marvin/integration/lib/base/Condition.py create mode 100644 tools/marvin/marvin/integration/lib/base/Config.py create mode 100644 tools/marvin/marvin/integration/lib/base/Configuration.py create mode 100644 tools/marvin/marvin/integration/lib/base/Counter.py create mode 100644 tools/marvin/marvin/integration/lib/base/CustomCertificate.py create mode 100644 tools/marvin/marvin/integration/lib/base/DefaultZoneForAccount.py create mode 100644 tools/marvin/marvin/integration/lib/base/DiskOffering.py create mode 100644 tools/marvin/marvin/integration/lib/base/Domain.py create mode 100644 tools/marvin/marvin/integration/lib/base/DomainChildren.py create mode 100644 tools/marvin/marvin/integration/lib/base/EventTypes.py create mode 100644 tools/marvin/marvin/integration/lib/base/Events.py create mode 100644 tools/marvin/marvin/integration/lib/base/FirewallRule.py create mode 100644 tools/marvin/marvin/integration/lib/base/FromLoadBalancerRule.py create mode 100644 tools/marvin/marvin/integration/lib/base/Host.py create mode 100644 tools/marvin/marvin/integration/lib/base/HostForMaintenance.py create mode 100644 tools/marvin/marvin/integration/lib/base/HostMaintenance.py create mode 100644 tools/marvin/marvin/integration/lib/base/HostPassword.py create mode 100644 tools/marvin/marvin/integration/lib/base/HypervisorCapabilities.py create mode 100644 tools/marvin/marvin/integration/lib/base/Hypervisors.py create mode 100644 tools/marvin/marvin/integration/lib/base/InstanceGroup.py create mode 100644 tools/marvin/marvin/integration/lib/base/IpAddress.py create mode 100644 tools/marvin/marvin/integration/lib/base/IpForwardingRule.py create mode 100644 tools/marvin/marvin/integration/lib/base/Iso.py create mode 100644 tools/marvin/marvin/integration/lib/base/IsoPermissions.py create mode 100644 tools/marvin/marvin/integration/lib/base/LBStickinessPolicies.py create mode 100644 tools/marvin/marvin/integration/lib/base/LBStickinessPolicy.py create mode 100644 tools/marvin/marvin/integration/lib/base/LoadBalancerRule.py create mode 100644 tools/marvin/marvin/integration/lib/base/LoadBalancerRuleInstances.py create mode 100644 tools/marvin/marvin/integration/lib/base/Network.py create mode 100644 tools/marvin/marvin/integration/lib/base/NetworkACL.py create mode 100644 tools/marvin/marvin/integration/lib/base/NetworkDevice.py create mode 100644 tools/marvin/marvin/integration/lib/base/NetworkOffering.py create mode 100644 tools/marvin/marvin/integration/lib/base/NetworkServiceProvider.py create mode 100644 tools/marvin/marvin/integration/lib/base/NiciraNvpDevice.py create mode 100644 tools/marvin/marvin/integration/lib/base/NiciraNvpDeviceNetworks.py create mode 100644 tools/marvin/marvin/integration/lib/base/OsCategories.py create mode 100644 tools/marvin/marvin/integration/lib/base/OsTypes.py create mode 100644 tools/marvin/marvin/integration/lib/base/PasswordForVirtualMachine.py create mode 100644 tools/marvin/marvin/integration/lib/base/PhysicalNetwork.py create mode 100644 tools/marvin/marvin/integration/lib/base/Pod.py create mode 100644 tools/marvin/marvin/integration/lib/base/PortForwardingRule.py create mode 100644 tools/marvin/marvin/integration/lib/base/PrivateGateway.py create mode 100644 tools/marvin/marvin/integration/lib/base/Project.py create mode 100644 tools/marvin/marvin/integration/lib/base/ProjectAccounts.py create mode 100644 tools/marvin/marvin/integration/lib/base/ProjectInvitation.py create mode 100644 tools/marvin/marvin/integration/lib/base/PublicIpAddresses.py create mode 100644 tools/marvin/marvin/integration/lib/base/RemoteAccessVpn.py create mode 100644 tools/marvin/marvin/integration/lib/base/Remove.py create mode 100644 tools/marvin/marvin/integration/lib/base/ResourceCount.py create mode 100644 tools/marvin/marvin/integration/lib/base/ResourceLimit.py create mode 100644 tools/marvin/marvin/integration/lib/base/Router.py create mode 100644 tools/marvin/marvin/integration/lib/base/S3.py create mode 100644 tools/marvin/marvin/integration/lib/base/SSHKeyPair.py create mode 100644 tools/marvin/marvin/integration/lib/base/SecondaryStorage.py create mode 100644 tools/marvin/marvin/integration/lib/base/SecurityGroup.py create mode 100644 tools/marvin/marvin/integration/lib/base/SecurityGroupEgress.py create mode 100644 tools/marvin/marvin/integration/lib/base/SecurityGroupIngress.py create mode 100644 tools/marvin/marvin/integration/lib/base/ServiceForRouter.py create mode 100644 tools/marvin/marvin/integration/lib/base/ServiceForSystemVm.py create mode 100644 tools/marvin/marvin/integration/lib/base/ServiceForVirtualMachine.py create mode 100644 tools/marvin/marvin/integration/lib/base/ServiceOffering.py create mode 100644 tools/marvin/marvin/integration/lib/base/Snapshot.py create mode 100644 tools/marvin/marvin/integration/lib/base/SnapshotPolicies.py create mode 100644 tools/marvin/marvin/integration/lib/base/SnapshotPolicy.py create mode 100644 tools/marvin/marvin/integration/lib/base/StaticNat.py create mode 100644 tools/marvin/marvin/integration/lib/base/StaticRoute.py create mode 100644 tools/marvin/marvin/integration/lib/base/StorageMaintenance.py create mode 100644 tools/marvin/marvin/integration/lib/base/StorageNetworkIpRange.py create mode 100644 tools/marvin/marvin/integration/lib/base/StoragePool.py create mode 100644 tools/marvin/marvin/integration/lib/base/SupportedNetworkServices.py create mode 100644 tools/marvin/marvin/integration/lib/base/Swift.py create mode 100644 tools/marvin/marvin/integration/lib/base/SystemVm.py create mode 100644 tools/marvin/marvin/integration/lib/base/Tags.py create mode 100644 tools/marvin/marvin/integration/lib/base/Template.py create mode 100644 tools/marvin/marvin/integration/lib/base/TemplatePermissions.py create mode 100644 tools/marvin/marvin/integration/lib/base/ToLoadBalancerRule.py create mode 100644 tools/marvin/marvin/integration/lib/base/TrafficMonitor.py create mode 100644 tools/marvin/marvin/integration/lib/base/TrafficType.py create mode 100644 tools/marvin/marvin/integration/lib/base/TrafficTypeImplementors.py create mode 100644 tools/marvin/marvin/integration/lib/base/UsageRecords.py create mode 100644 tools/marvin/marvin/integration/lib/base/UsageTypes.py create mode 100644 tools/marvin/marvin/integration/lib/base/User.py create mode 100644 tools/marvin/marvin/integration/lib/base/UserKeys.py create mode 100644 tools/marvin/marvin/integration/lib/base/VMPassword.py create mode 100644 tools/marvin/marvin/integration/lib/base/VPC.py create mode 100644 tools/marvin/marvin/integration/lib/base/VPCOffering.py create mode 100644 tools/marvin/marvin/integration/lib/base/VirtualMachine.py create mode 100644 tools/marvin/marvin/integration/lib/base/VirtualRouterElement.py create mode 100644 tools/marvin/marvin/integration/lib/base/VlanIpRange.py create mode 100644 tools/marvin/marvin/integration/lib/base/Volume.py create mode 100644 tools/marvin/marvin/integration/lib/base/VpnConnection.py create mode 100644 tools/marvin/marvin/integration/lib/base/VpnCustomerGateway.py create mode 100644 tools/marvin/marvin/integration/lib/base/VpnGateway.py create mode 100644 tools/marvin/marvin/integration/lib/base/VpnUser.py create mode 100644 tools/marvin/marvin/integration/lib/base/Zone.py create mode 100644 tools/marvin/marvin/integration/lib/base/__init__.py rename tools/marvin/marvin/integration/lib/{base.py => oldbase.py} (99%) diff --git a/tools/marvin/marvin/integration/lib/base/Account.py b/tools/marvin/marvin/integration/lib/base/Account.py new file mode 100644 index 00000000000..8114ba737bc --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Account.py @@ -0,0 +1,38 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Account(CloudStackEntity): + + def enable(self, apiclient, **kwargs): + pass + + def lock(self, apiclient, account, domainid, **kwargs): + pass + + def create(self, apiclient, AccountFactory, username, firstname, lastname, accounttype, password, email, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, newname, **kwargs): + pass + + def disable(self, apiclient, lock, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/AccountFromProject.py b/tools/marvin/marvin/integration/lib/base/AccountFromProject.py new file mode 100644 index 00000000000..7f6e8c146f4 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/AccountFromProject.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class AccountFromProject(CloudStackEntity): + + def delete(self, apiclient, projectid, account, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/AccountToProject.py b/tools/marvin/marvin/integration/lib/base/AccountToProject.py new file mode 100644 index 00000000000..09b2866258e --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/AccountToProject.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class AccountToProject(CloudStackEntity): + + def add(self, apiclient, projectid, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Alerts.py b/tools/marvin/marvin/integration/lib/base/Alerts.py new file mode 100644 index 00000000000..de00254664f --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Alerts.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Alerts(CloudStackEntity): + + def list(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/ApiLimit.py b/tools/marvin/marvin/integration/lib/base/ApiLimit.py new file mode 100644 index 00000000000..2a51a652094 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/ApiLimit.py @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class ApiLimit(CloudStackEntity): + + def reset(self, apiclient, **kwargs): + pass + + def get(self, apiclient): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Apis.py b/tools/marvin/marvin/integration/lib/base/Apis.py new file mode 100644 index 00000000000..852ace13ff3 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Apis.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Apis(CloudStackEntity): + + def list(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/AsyncJobResult.py b/tools/marvin/marvin/integration/lib/base/AsyncJobResult.py new file mode 100644 index 00000000000..46e68618641 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/AsyncJobResult.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class AsyncJobResult(CloudStackEntity): + + def query(self, apiclient, jobid, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/AsyncJobs.py b/tools/marvin/marvin/integration/lib/base/AsyncJobs.py new file mode 100644 index 00000000000..89097035df6 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/AsyncJobs.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class AsyncJobs(CloudStackEntity): + + def list(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/AutoScalePolicies.py b/tools/marvin/marvin/integration/lib/base/AutoScalePolicies.py new file mode 100644 index 00000000000..cd1aa84f735 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/AutoScalePolicies.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class AutoScalePolicies(CloudStackEntity): + + def list(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/AutoScalePolicy.py b/tools/marvin/marvin/integration/lib/base/AutoScalePolicy.py new file mode 100644 index 00000000000..4fbf0b94bc8 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/AutoScalePolicy.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class AutoScalePolicy(CloudStackEntity): + + def create(self, apiclient, AutoScalePolicyFactory, action, duration, conditionids, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/AutoScaleVmGroup.py b/tools/marvin/marvin/integration/lib/base/AutoScaleVmGroup.py new file mode 100644 index 00000000000..9741adf092f --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/AutoScaleVmGroup.py @@ -0,0 +1,35 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class AutoScaleVmGroup(CloudStackEntity): + + def enable(self, apiclient, id, **kwargs): + pass + + def create(self, apiclient, AutoScaleVmGroupFactory, scaledownpolicyids, maxmembers, scaleuppolicyids, vmprofileid, minmembers, lbruleid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def disable(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/AutoScaleVmProfile.py b/tools/marvin/marvin/integration/lib/base/AutoScaleVmProfile.py new file mode 100644 index 00000000000..2b87739cc60 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/AutoScaleVmProfile.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class AutoScaleVmProfile(CloudStackEntity): + + def create(self, apiclient, AutoScaleVmProfileFactory, zoneid, serviceofferingid, templateid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Capabilities.py b/tools/marvin/marvin/integration/lib/base/Capabilities.py new file mode 100644 index 00000000000..b30209cef3a --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Capabilities.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Capabilities(CloudStackEntity): + + def list(self, apiclient): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Capacity.py b/tools/marvin/marvin/integration/lib/base/Capacity.py new file mode 100644 index 00000000000..8f992a78977 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Capacity.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Capacity(CloudStackEntity): + + def list(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/CloudIdentifier.py b/tools/marvin/marvin/integration/lib/base/CloudIdentifier.py new file mode 100644 index 00000000000..06c1d72cd4c --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/CloudIdentifier.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class CloudIdentifier(CloudStackEntity): + + def get(self, apiclient, userid, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Cluster.py b/tools/marvin/marvin/integration/lib/base/Cluster.py new file mode 100644 index 00000000000..58a73fa0cee --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Cluster.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Cluster(CloudStackEntity): + + def add(self, apiclient, clustername, hypervisor, zoneid, clustertype, podid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Condition.py b/tools/marvin/marvin/integration/lib/base/Condition.py new file mode 100644 index 00000000000..3672da482cb --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Condition.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Condition(CloudStackEntity): + + def create(self, apiclient, ConditionFactory, threshold, relationaloperator, counterid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Config.py b/tools/marvin/marvin/integration/lib/base/Config.py new file mode 100644 index 00000000000..b7669ac52bc --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Config.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Config(CloudStackEntity): + + def ldap(self, apiclient, queryfilter, hostname, searchbase, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Configuration.py b/tools/marvin/marvin/integration/lib/base/Configuration.py new file mode 100644 index 00000000000..c40ee16a780 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Configuration.py @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Configuration(CloudStackEntity): + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, name, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Counter.py b/tools/marvin/marvin/integration/lib/base/Counter.py new file mode 100644 index 00000000000..877dfd14086 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Counter.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Counter(CloudStackEntity): + + def create(self, apiclient, CounterFactory, source, name, value, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/CustomCertificate.py b/tools/marvin/marvin/integration/lib/base/CustomCertificate.py new file mode 100644 index 00000000000..542dc062eb4 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/CustomCertificate.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class CustomCertificate(CloudStackEntity): + + def upload(self, apiclient, domainsuffix, certificate, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/DefaultZoneForAccount.py b/tools/marvin/marvin/integration/lib/base/DefaultZoneForAccount.py new file mode 100644 index 00000000000..2c1da6d3e9a --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/DefaultZoneForAccount.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class DefaultZoneForAccount(CloudStackEntity): + + def mark(self, apiclient, account, domainid, zoneid, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/DiskOffering.py b/tools/marvin/marvin/integration/lib/base/DiskOffering.py new file mode 100644 index 00000000000..4ff91ef0718 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/DiskOffering.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class DiskOffering(CloudStackEntity): + + def create(self, apiclient, DiskOfferingFactory, displaytext, name, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Domain.py b/tools/marvin/marvin/integration/lib/base/Domain.py new file mode 100644 index 00000000000..ca99d7d2ec7 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Domain.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Domain(CloudStackEntity): + + def create(self, apiclient, DomainFactory, name, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/DomainChildren.py b/tools/marvin/marvin/integration/lib/base/DomainChildren.py new file mode 100644 index 00000000000..40094be8b2a --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/DomainChildren.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class DomainChildren(CloudStackEntity): + + def list(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/EventTypes.py b/tools/marvin/marvin/integration/lib/base/EventTypes.py new file mode 100644 index 00000000000..0325217f9da --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/EventTypes.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class EventTypes(CloudStackEntity): + + def list(self, apiclient): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Events.py b/tools/marvin/marvin/integration/lib/base/Events.py new file mode 100644 index 00000000000..099aaa0811a --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Events.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Events(CloudStackEntity): + + def list(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/FirewallRule.py b/tools/marvin/marvin/integration/lib/base/FirewallRule.py new file mode 100644 index 00000000000..dd489ee346c --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/FirewallRule.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class FirewallRule(CloudStackEntity): + + def create(self, apiclient, FirewallRuleFactory, protocol, ipaddressid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/FromLoadBalancerRule.py b/tools/marvin/marvin/integration/lib/base/FromLoadBalancerRule.py new file mode 100644 index 00000000000..8b52aa5dd25 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/FromLoadBalancerRule.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class FromLoadBalancerRule(CloudStackEntity): + + def remove(self, apiclient, id, virtualmachineids, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Host.py b/tools/marvin/marvin/integration/lib/base/Host.py new file mode 100644 index 00000000000..526d0df7ef3 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Host.py @@ -0,0 +1,32 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Host(CloudStackEntity): + + def add(self, apiclient, username, podid, url, hypervisor, zoneid, password, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def reconnect(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/HostForMaintenance.py b/tools/marvin/marvin/integration/lib/base/HostForMaintenance.py new file mode 100644 index 00000000000..e53d5587803 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/HostForMaintenance.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class HostForMaintenance(CloudStackEntity): + + def prepare(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/HostMaintenance.py b/tools/marvin/marvin/integration/lib/base/HostMaintenance.py new file mode 100644 index 00000000000..af40d9c3a61 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/HostMaintenance.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class HostMaintenance(CloudStackEntity): + + def cancel(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/HostPassword.py b/tools/marvin/marvin/integration/lib/base/HostPassword.py new file mode 100644 index 00000000000..018c02bdc80 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/HostPassword.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class HostPassword(CloudStackEntity): + + def update(self, apiclient, username, password, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/HypervisorCapabilities.py b/tools/marvin/marvin/integration/lib/base/HypervisorCapabilities.py new file mode 100644 index 00000000000..205bf464ca0 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/HypervisorCapabilities.py @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class HypervisorCapabilities(CloudStackEntity): + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Hypervisors.py b/tools/marvin/marvin/integration/lib/base/Hypervisors.py new file mode 100644 index 00000000000..36e964e83fb --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Hypervisors.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Hypervisors(CloudStackEntity): + + def list(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/InstanceGroup.py b/tools/marvin/marvin/integration/lib/base/InstanceGroup.py new file mode 100644 index 00000000000..6c968fcb90c --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/InstanceGroup.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class InstanceGroup(CloudStackEntity): + + def create(self, apiclient, InstanceGroupFactory, name, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/IpAddress.py b/tools/marvin/marvin/integration/lib/base/IpAddress.py new file mode 100644 index 00000000000..b7152e29d4b --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/IpAddress.py @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class IpAddress(CloudStackEntity): + + def disassociate(self, apiclient, id, **kwargs): + pass + + def associate(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/IpForwardingRule.py b/tools/marvin/marvin/integration/lib/base/IpForwardingRule.py new file mode 100644 index 00000000000..5b60452acab --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/IpForwardingRule.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class IpForwardingRule(CloudStackEntity): + + def create(self, apiclient, IpForwardingRuleFactory, startport, protocol, ipaddressid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Iso.py b/tools/marvin/marvin/integration/lib/base/Iso.py new file mode 100644 index 00000000000..41361b65e35 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Iso.py @@ -0,0 +1,41 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Iso(CloudStackEntity): + + def copy(self, apiclient, sourcezoneid, id, destzoneid, **kwargs): + pass + + def register(self, apiclient, url, displaytext, name, zoneid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def attach(self, apiclient, id, virtualmachineid, **kwargs): + pass + + def detach(self, apiclient, virtualmachineid, **kwargs): + pass + + def extract(self, apiclient, id, mode, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/IsoPermissions.py b/tools/marvin/marvin/integration/lib/base/IsoPermissions.py new file mode 100644 index 00000000000..df545a67bde --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/IsoPermissions.py @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class IsoPermissions(CloudStackEntity): + + def list(self, apiclient, id, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/LBStickinessPolicies.py b/tools/marvin/marvin/integration/lib/base/LBStickinessPolicies.py new file mode 100644 index 00000000000..0c4d2bfef73 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/LBStickinessPolicies.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class LBStickinessPolicies(CloudStackEntity): + + def list(self, apiclient, lbruleid, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/LBStickinessPolicy.py b/tools/marvin/marvin/integration/lib/base/LBStickinessPolicy.py new file mode 100644 index 00000000000..ca1bcfb8f24 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/LBStickinessPolicy.py @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class LBStickinessPolicy(CloudStackEntity): + + def create(self, apiclient, LBStickinessPolicyFactory, lbruleid, methodname, name, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/LoadBalancerRule.py b/tools/marvin/marvin/integration/lib/base/LoadBalancerRule.py new file mode 100644 index 00000000000..40b17935fef --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/LoadBalancerRule.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class LoadBalancerRule(CloudStackEntity): + + def create(self, apiclient, LoadBalancerRuleFactory, publicport, name, algorithm, privateport, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/LoadBalancerRuleInstances.py b/tools/marvin/marvin/integration/lib/base/LoadBalancerRuleInstances.py new file mode 100644 index 00000000000..01d03f6ccc0 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/LoadBalancerRuleInstances.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class LoadBalancerRuleInstances(CloudStackEntity): + + def list(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Network.py b/tools/marvin/marvin/integration/lib/base/Network.py new file mode 100644 index 00000000000..3bcdeab5f64 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Network.py @@ -0,0 +1,32 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Network(CloudStackEntity): + + def create(self, apiclient, NetworkFactory, displaytext, name, networkofferingid, zoneid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def restart(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/NetworkACL.py b/tools/marvin/marvin/integration/lib/base/NetworkACL.py new file mode 100644 index 00000000000..d297f810cd7 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/NetworkACL.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class NetworkACL(CloudStackEntity): + + def create(self, apiclient, NetworkACLFactory, networkid, protocol, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/NetworkDevice.py b/tools/marvin/marvin/integration/lib/base/NetworkDevice.py new file mode 100644 index 00000000000..1881e9dd555 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/NetworkDevice.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class NetworkDevice(CloudStackEntity): + + def add(self, apiclient, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/NetworkOffering.py b/tools/marvin/marvin/integration/lib/base/NetworkOffering.py new file mode 100644 index 00000000000..874855cefb5 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/NetworkOffering.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class NetworkOffering(CloudStackEntity): + + def create(self, apiclient, NetworkOfferingFactory, guestiptype, traffictype, displaytext, name, supportedservices, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/NetworkServiceProvider.py b/tools/marvin/marvin/integration/lib/base/NetworkServiceProvider.py new file mode 100644 index 00000000000..56150c472d8 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/NetworkServiceProvider.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class NetworkServiceProvider(CloudStackEntity): + + def add(self, apiclient, physicalnetworkid, name, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/NiciraNvpDevice.py b/tools/marvin/marvin/integration/lib/base/NiciraNvpDevice.py new file mode 100644 index 00000000000..662e11de7f6 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/NiciraNvpDevice.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class NiciraNvpDevice(CloudStackEntity): + + def add(self, apiclient, username, physicalnetworkid, password, hostname, transportzoneuuid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, nvpdeviceid, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/NiciraNvpDeviceNetworks.py b/tools/marvin/marvin/integration/lib/base/NiciraNvpDeviceNetworks.py new file mode 100644 index 00000000000..de234a3838b --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/NiciraNvpDeviceNetworks.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class NiciraNvpDeviceNetworks(CloudStackEntity): + + def list(self, apiclient, nvpdeviceid, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/OsCategories.py b/tools/marvin/marvin/integration/lib/base/OsCategories.py new file mode 100644 index 00000000000..8828f5337b1 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/OsCategories.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class OsCategories(CloudStackEntity): + + def list(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/OsTypes.py b/tools/marvin/marvin/integration/lib/base/OsTypes.py new file mode 100644 index 00000000000..790c883ee58 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/OsTypes.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class OsTypes(CloudStackEntity): + + def list(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/PasswordForVirtualMachine.py b/tools/marvin/marvin/integration/lib/base/PasswordForVirtualMachine.py new file mode 100644 index 00000000000..ec72881282f --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/PasswordForVirtualMachine.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class PasswordForVirtualMachine(CloudStackEntity): + + def reset(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/PhysicalNetwork.py b/tools/marvin/marvin/integration/lib/base/PhysicalNetwork.py new file mode 100644 index 00000000000..60969760cab --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/PhysicalNetwork.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class PhysicalNetwork(CloudStackEntity): + + def create(self, apiclient, PhysicalNetworkFactory, name, zoneid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Pod.py b/tools/marvin/marvin/integration/lib/base/Pod.py new file mode 100644 index 00000000000..913643ce466 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Pod.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Pod(CloudStackEntity): + + def create(self, apiclient, PodFactory, startip, netmask, zoneid, gateway, name, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/PortForwardingRule.py b/tools/marvin/marvin/integration/lib/base/PortForwardingRule.py new file mode 100644 index 00000000000..dac7f4c7d44 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/PortForwardingRule.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class PortForwardingRule(CloudStackEntity): + + def create(self, apiclient, PortForwardingRuleFactory, publicport, virtualmachineid, protocol, ipaddressid, privateport, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, publicport, protocol, ipaddressid, privateport, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/PrivateGateway.py b/tools/marvin/marvin/integration/lib/base/PrivateGateway.py new file mode 100644 index 00000000000..2a55d770fda --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/PrivateGateway.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class PrivateGateway(CloudStackEntity): + + def create(self, apiclient, PrivateGatewayFactory, netmask, vlan, ipaddress, gateway, vpcid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Project.py b/tools/marvin/marvin/integration/lib/base/Project.py new file mode 100644 index 00000000000..db5b2664572 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Project.py @@ -0,0 +1,35 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Project(CloudStackEntity): + + def suspend(self, apiclient, id, **kwargs): + pass + + def create(self, apiclient, ProjectFactory, displaytext, name, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def activate(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/ProjectAccounts.py b/tools/marvin/marvin/integration/lib/base/ProjectAccounts.py new file mode 100644 index 00000000000..b3139f081c7 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/ProjectAccounts.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class ProjectAccounts(CloudStackEntity): + + def list(self, apiclient, projectid, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/ProjectInvitation.py b/tools/marvin/marvin/integration/lib/base/ProjectInvitation.py new file mode 100644 index 00000000000..ec2257d33a5 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/ProjectInvitation.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class ProjectInvitation(CloudStackEntity): + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, projectid, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/PublicIpAddresses.py b/tools/marvin/marvin/integration/lib/base/PublicIpAddresses.py new file mode 100644 index 00000000000..20f55a4a6a5 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/PublicIpAddresses.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class PublicIpAddresses(CloudStackEntity): + + def list(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/RemoteAccessVpn.py b/tools/marvin/marvin/integration/lib/base/RemoteAccessVpn.py new file mode 100644 index 00000000000..a5a1f09ea96 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/RemoteAccessVpn.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class RemoteAccessVpn(CloudStackEntity): + + def create(self, apiclient, RemoteAccessVpnFactory, publicipid, **kwargs): + pass + + def list(self, apiclient, publicipid, **kwargs): + pass + + def delete(self, apiclient, publicipid, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Remove.py b/tools/marvin/marvin/integration/lib/base/Remove.py new file mode 100644 index 00000000000..b3651d6cd83 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Remove.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Remove(CloudStackEntity): + + def ldap(self, apiclient): + pass diff --git a/tools/marvin/marvin/integration/lib/base/ResourceCount.py b/tools/marvin/marvin/integration/lib/base/ResourceCount.py new file mode 100644 index 00000000000..dcead1d23ad --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/ResourceCount.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class ResourceCount(CloudStackEntity): + + def update(self, apiclient, domainid, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/ResourceLimit.py b/tools/marvin/marvin/integration/lib/base/ResourceLimit.py new file mode 100644 index 00000000000..9f1f873b2ec --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/ResourceLimit.py @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class ResourceLimit(CloudStackEntity): + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, resourcetype, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Router.py b/tools/marvin/marvin/integration/lib/base/Router.py new file mode 100644 index 00000000000..63fb9d6a769 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Router.py @@ -0,0 +1,32 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Router(CloudStackEntity): + + def destroy(self, apiclient, id, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def stop(self, apiclient, id, **kwargs): + pass + + def reboot(self, apiclient, id, **kwargs): + pass + + def start(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/S3.py b/tools/marvin/marvin/integration/lib/base/S3.py new file mode 100644 index 00000000000..a39763632cd --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/S3.py @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class S3(CloudStackEntity): + + def add(self, apiclient, secretkey, accesskey, bucket, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/SSHKeyPair.py b/tools/marvin/marvin/integration/lib/base/SSHKeyPair.py new file mode 100644 index 00000000000..fb7852b3462 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/SSHKeyPair.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class SSHKeyPair(CloudStackEntity): + + def create(self, apiclient, SSHKeyPairFactory, name, **kwargs): + pass + + def register(self, apiclient, publickey, name, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, name, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/SecondaryStorage.py b/tools/marvin/marvin/integration/lib/base/SecondaryStorage.py new file mode 100644 index 00000000000..7a3eae0bf4b --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/SecondaryStorage.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class SecondaryStorage(CloudStackEntity): + + def add(self, apiclient, url, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/SecurityGroup.py b/tools/marvin/marvin/integration/lib/base/SecurityGroup.py new file mode 100644 index 00000000000..7695fb159c5 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/SecurityGroup.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class SecurityGroup(CloudStackEntity): + + def create(self, apiclient, SecurityGroupFactory, name, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/SecurityGroupEgress.py b/tools/marvin/marvin/integration/lib/base/SecurityGroupEgress.py new file mode 100644 index 00000000000..ab233f009a2 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/SecurityGroupEgress.py @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class SecurityGroupEgress(CloudStackEntity): + + def authorize(self, apiclient, **kwargs): + pass + + def revoke(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/SecurityGroupIngress.py b/tools/marvin/marvin/integration/lib/base/SecurityGroupIngress.py new file mode 100644 index 00000000000..84efa1902a5 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/SecurityGroupIngress.py @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class SecurityGroupIngress(CloudStackEntity): + + def authorize(self, apiclient, **kwargs): + pass + + def revoke(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/ServiceForRouter.py b/tools/marvin/marvin/integration/lib/base/ServiceForRouter.py new file mode 100644 index 00000000000..f90fd49faa5 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/ServiceForRouter.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class ServiceForRouter(CloudStackEntity): + + def change(self, apiclient, id, serviceofferingid, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/ServiceForSystemVm.py b/tools/marvin/marvin/integration/lib/base/ServiceForSystemVm.py new file mode 100644 index 00000000000..39666ba00be --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/ServiceForSystemVm.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class ServiceForSystemVm(CloudStackEntity): + + def change(self, apiclient, id, serviceofferingid, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/ServiceForVirtualMachine.py b/tools/marvin/marvin/integration/lib/base/ServiceForVirtualMachine.py new file mode 100644 index 00000000000..4600c225e29 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/ServiceForVirtualMachine.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class ServiceForVirtualMachine(CloudStackEntity): + + def change(self, apiclient, id, serviceofferingid, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/ServiceOffering.py b/tools/marvin/marvin/integration/lib/base/ServiceOffering.py new file mode 100644 index 00000000000..68e8383a10f --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/ServiceOffering.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class ServiceOffering(CloudStackEntity): + + def create(self, apiclient, ServiceOfferingFactory, displaytext, memory, cpunumber, name, cpuspeed, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Snapshot.py b/tools/marvin/marvin/integration/lib/base/Snapshot.py new file mode 100644 index 00000000000..e65b93105f7 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Snapshot.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Snapshot(CloudStackEntity): + + def create(self, apiclient, SnapshotFactory, volumeid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/SnapshotPolicies.py b/tools/marvin/marvin/integration/lib/base/SnapshotPolicies.py new file mode 100644 index 00000000000..d5b2b3f28b6 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/SnapshotPolicies.py @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class SnapshotPolicies(CloudStackEntity): + + def list(self, apiclient, volumeid, **kwargs): + pass + + def delete(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/SnapshotPolicy.py b/tools/marvin/marvin/integration/lib/base/SnapshotPolicy.py new file mode 100644 index 00000000000..31d76f54886 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/SnapshotPolicy.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class SnapshotPolicy(CloudStackEntity): + + def create(self, apiclient, SnapshotPolicyFactory, timezone, maxsnaps, schedule, volumeid, intervaltype, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/StaticNat.py b/tools/marvin/marvin/integration/lib/base/StaticNat.py new file mode 100644 index 00000000000..50831895f47 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/StaticNat.py @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class StaticNat(CloudStackEntity): + + def enable(self, apiclient, ipaddressid, virtualmachineid, **kwargs): + pass + + def disable(self, apiclient, ipaddressid, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/StaticRoute.py b/tools/marvin/marvin/integration/lib/base/StaticRoute.py new file mode 100644 index 00000000000..9d1eec3417a --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/StaticRoute.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class StaticRoute(CloudStackEntity): + + def create(self, apiclient, StaticRouteFactory, gatewayid, cidr, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/StorageMaintenance.py b/tools/marvin/marvin/integration/lib/base/StorageMaintenance.py new file mode 100644 index 00000000000..ce8270ed869 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/StorageMaintenance.py @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class StorageMaintenance(CloudStackEntity): + + def cancel(self, apiclient, id, **kwargs): + pass + + def enable(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/StorageNetworkIpRange.py b/tools/marvin/marvin/integration/lib/base/StorageNetworkIpRange.py new file mode 100644 index 00000000000..22b508e8a3c --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/StorageNetworkIpRange.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class StorageNetworkIpRange(CloudStackEntity): + + def create(self, apiclient, StorageNetworkIpRangeFactory, startip, netmask, gateway, podid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/StoragePool.py b/tools/marvin/marvin/integration/lib/base/StoragePool.py new file mode 100644 index 00000000000..e06b24b30d9 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/StoragePool.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class StoragePool(CloudStackEntity): + + def create(self, apiclient, StoragePoolFactory, url, zoneid, clusterid, name, podid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/SupportedNetworkServices.py b/tools/marvin/marvin/integration/lib/base/SupportedNetworkServices.py new file mode 100644 index 00000000000..3557ab59a53 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/SupportedNetworkServices.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class SupportedNetworkServices(CloudStackEntity): + + def list(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Swift.py b/tools/marvin/marvin/integration/lib/base/Swift.py new file mode 100644 index 00000000000..642d10a9c93 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Swift.py @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Swift(CloudStackEntity): + + def add(self, apiclient, url, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/SystemVm.py b/tools/marvin/marvin/integration/lib/base/SystemVm.py new file mode 100644 index 00000000000..a01b4ab8081 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/SystemVm.py @@ -0,0 +1,35 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class SystemVm(CloudStackEntity): + + def migrate(self, apiclient, hostid, virtualmachineid, **kwargs): + pass + + def stop(self, apiclient, id, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def reboot(self, apiclient, id, **kwargs): + pass + + def start(self, apiclient, id, **kwargs): + pass + + def destroy(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Tags.py b/tools/marvin/marvin/integration/lib/base/Tags.py new file mode 100644 index 00000000000..8eb5da61ec4 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Tags.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Tags(CloudStackEntity): + + def create(self, apiclient, TagsFactory, resourcetype, resourceids, tags, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, resourcetype, resourceids, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Template.py b/tools/marvin/marvin/integration/lib/base/Template.py new file mode 100644 index 00000000000..bb287c51c9f --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Template.py @@ -0,0 +1,41 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Template(CloudStackEntity): + + def prepare(self, apiclient, zoneid, templateid, **kwargs): + pass + + def create(self, apiclient, TemplateFactory, displaytext, name, ostypeid, **kwargs): + pass + + def register(self, apiclient, name, format, url, hypervisor, zoneid, displaytext, ostypeid, **kwargs): + pass + + def list(self, apiclient, templatefilter, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def copy(self, apiclient, sourcezoneid, id, destzoneid, **kwargs): + pass + + def extract(self, apiclient, id, mode, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/TemplatePermissions.py b/tools/marvin/marvin/integration/lib/base/TemplatePermissions.py new file mode 100644 index 00000000000..e7e04f5dfd2 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/TemplatePermissions.py @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class TemplatePermissions(CloudStackEntity): + + def list(self, apiclient, id, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/ToLoadBalancerRule.py b/tools/marvin/marvin/integration/lib/base/ToLoadBalancerRule.py new file mode 100644 index 00000000000..502d14e18d8 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/ToLoadBalancerRule.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class ToLoadBalancerRule(CloudStackEntity): + + def assign(self, apiclient, id, virtualmachineids, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/TrafficMonitor.py b/tools/marvin/marvin/integration/lib/base/TrafficMonitor.py new file mode 100644 index 00000000000..9cf9540199e --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/TrafficMonitor.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class TrafficMonitor(CloudStackEntity): + + def add(self, apiclient, url, zoneid, **kwargs): + pass + + def list(self, apiclient, zoneid, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/TrafficType.py b/tools/marvin/marvin/integration/lib/base/TrafficType.py new file mode 100644 index 00000000000..30e0691e55c --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/TrafficType.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class TrafficType(CloudStackEntity): + + def add(self, apiclient, traffictype, physicalnetworkid, **kwargs): + pass + + def list(self, apiclient, physicalnetworkid, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/TrafficTypeImplementors.py b/tools/marvin/marvin/integration/lib/base/TrafficTypeImplementors.py new file mode 100644 index 00000000000..a60e6b5a8e8 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/TrafficTypeImplementors.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class TrafficTypeImplementors(CloudStackEntity): + + def list(self, apiclient, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/UsageRecords.py b/tools/marvin/marvin/integration/lib/base/UsageRecords.py new file mode 100644 index 00000000000..62933e77917 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/UsageRecords.py @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class UsageRecords(CloudStackEntity): + + def list(self, apiclient, startdate, enddate, **kwargs): + pass + + def generate(self, apiclient, startdate, enddate, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/UsageTypes.py b/tools/marvin/marvin/integration/lib/base/UsageTypes.py new file mode 100644 index 00000000000..13a5d9117ad --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/UsageTypes.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class UsageTypes(CloudStackEntity): + + def list(self, apiclient): + pass diff --git a/tools/marvin/marvin/integration/lib/base/User.py b/tools/marvin/marvin/integration/lib/base/User.py new file mode 100644 index 00000000000..1a129419b56 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/User.py @@ -0,0 +1,41 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class User(CloudStackEntity): + + def enable(self, apiclient, id, **kwargs): + pass + + def get(self, apiclient, userapikey, **kwargs): + pass + + def lock(self, apiclient, id, **kwargs): + pass + + def create(self, apiclient, UserFactory, username, account, firstname, lastname, password, email, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def disable(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/UserKeys.py b/tools/marvin/marvin/integration/lib/base/UserKeys.py new file mode 100644 index 00000000000..7e6a2761fbb --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/UserKeys.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class UserKeys(CloudStackEntity): + + def register(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/VMPassword.py b/tools/marvin/marvin/integration/lib/base/VMPassword.py new file mode 100644 index 00000000000..5da49bc0383 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/VMPassword.py @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class VMPassword(CloudStackEntity): + + def get(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/VPC.py b/tools/marvin/marvin/integration/lib/base/VPC.py new file mode 100644 index 00000000000..e38e662dca9 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/VPC.py @@ -0,0 +1,32 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class VPC(CloudStackEntity): + + def create(self, apiclient, VPCFactory, cidr, zoneid, displaytext, name, vpcofferingid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, **kwargs): + pass + + def restart(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/VPCOffering.py b/tools/marvin/marvin/integration/lib/base/VPCOffering.py new file mode 100644 index 00000000000..89091dec0e9 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/VPCOffering.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class VPCOffering(CloudStackEntity): + + def create(self, apiclient, VPCOfferingFactory, displaytext, name, supportedservices, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/VirtualMachine.py b/tools/marvin/marvin/integration/lib/base/VirtualMachine.py new file mode 100644 index 00000000000..d99d844d494 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/VirtualMachine.py @@ -0,0 +1,47 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class VirtualMachine(CloudStackEntity): + + def restore(self, apiclient, virtualmachineid, **kwargs): + pass + + def deploy(self, apiclient, zoneid, serviceofferingid, templateid, **kwargs): + pass + + def migrate(self, apiclient, virtualmachineid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def stop(self, apiclient, id, **kwargs): + pass + + def reboot(self, apiclient, id, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def start(self, apiclient, id, **kwargs): + pass + + def destroy(self, apiclient, id, **kwargs): + pass + + def assign(self, apiclient, account, domainid, virtualmachineid, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/VirtualRouterElement.py b/tools/marvin/marvin/integration/lib/base/VirtualRouterElement.py new file mode 100644 index 00000000000..e30206303f4 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/VirtualRouterElement.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class VirtualRouterElement(CloudStackEntity): + + def create(self, apiclient, VirtualRouterElementFactory, nspid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def configure(self, apiclient, enabled, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/VlanIpRange.py b/tools/marvin/marvin/integration/lib/base/VlanIpRange.py new file mode 100644 index 00000000000..c5d6a3ebf0b --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/VlanIpRange.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class VlanIpRange(CloudStackEntity): + + def create(self, apiclient, VlanIpRangeFactory, startip, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Volume.py b/tools/marvin/marvin/integration/lib/base/Volume.py new file mode 100644 index 00000000000..b7788118d41 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Volume.py @@ -0,0 +1,41 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Volume(CloudStackEntity): + + def migrate(self, apiclient, storageid, volumeid, **kwargs): + pass + + def create(self, apiclient, VolumeFactory, name, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def upload(self, apiclient, url, zoneid, name, format, **kwargs): + pass + + def attach(self, apiclient, id, virtualmachineid, **kwargs): + pass + + def detach(self, apiclient, **kwargs): + pass + + def extract(self, apiclient, zoneid, id, mode, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/VpnConnection.py b/tools/marvin/marvin/integration/lib/base/VpnConnection.py new file mode 100644 index 00000000000..1fefe7b932b --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/VpnConnection.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class VpnConnection(CloudStackEntity): + + def reset(self, apiclient, id, **kwargs): + pass + + def create(self, apiclient, VpnConnectionFactory, s2scustomergatewayid, s2svpngatewayid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/VpnCustomerGateway.py b/tools/marvin/marvin/integration/lib/base/VpnCustomerGateway.py new file mode 100644 index 00000000000..ad438b05d87 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/VpnCustomerGateway.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class VpnCustomerGateway(CloudStackEntity): + + def create(self, apiclient, VpnCustomerGatewayFactory, ipsecpsk, cidrlist, esppolicy, ikepolicy, gateway, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, ikepolicy, cidrlist, gateway, ipsecpsk, esppolicy, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/VpnGateway.py b/tools/marvin/marvin/integration/lib/base/VpnGateway.py new file mode 100644 index 00000000000..c260a86d658 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/VpnGateway.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class VpnGateway(CloudStackEntity): + + def create(self, apiclient, VpnGatewayFactory, vpcid, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/VpnUser.py b/tools/marvin/marvin/integration/lib/base/VpnUser.py new file mode 100644 index 00000000000..821ec8ac660 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/VpnUser.py @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class VpnUser(CloudStackEntity): + + def add(self, apiclient, username, password, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def remove(self, apiclient, username, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/Zone.py b/tools/marvin/marvin/integration/lib/base/Zone.py new file mode 100644 index 00000000000..1fb32f500bd --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/Zone.py @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +class Zone(CloudStackEntity): + + def create(self, apiclient, ZoneFactory, networktype, dns1, internaldns1, name, **kwargs): + pass + + def list(self, apiclient, **kwargs): + pass + + def update(self, apiclient, id, **kwargs): + pass + + def delete(self, apiclient, id, **kwargs): + pass diff --git a/tools/marvin/marvin/integration/lib/base/__init__.py b/tools/marvin/marvin/integration/lib/base/__init__.py new file mode 100644 index 00000000000..d216be4ddc9 --- /dev/null +++ b/tools/marvin/marvin/integration/lib/base/__init__.py @@ -0,0 +1,16 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. \ No newline at end of file diff --git a/tools/marvin/marvin/integration/lib/factory/AccountFactory.py b/tools/marvin/marvin/integration/lib/factory/AccountFactory.py index aeed02a78c6..124d3e0dd47 100644 --- a/tools/marvin/marvin/integration/lib/factory/AccountFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/AccountFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import Account class AccountFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/AutoScalePolicyFactory.py b/tools/marvin/marvin/integration/lib/factory/AutoScalePolicyFactory.py index 22f7eb1f834..a652968b643 100644 --- a/tools/marvin/marvin/integration/lib/factory/AutoScalePolicyFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/AutoScalePolicyFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import AutoScalePolicy class AutoScalePolicyFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/AutoScaleVmGroupFactory.py b/tools/marvin/marvin/integration/lib/factory/AutoScaleVmGroupFactory.py index ac156e4471b..3ebe3de78b0 100644 --- a/tools/marvin/marvin/integration/lib/factory/AutoScaleVmGroupFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/AutoScaleVmGroupFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import AutoScaleVmGroup class AutoScaleVmGroupFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/AutoScaleVmProfileFactory.py b/tools/marvin/marvin/integration/lib/factory/AutoScaleVmProfileFactory.py index 56a5b781841..521541934a8 100644 --- a/tools/marvin/marvin/integration/lib/factory/AutoScaleVmProfileFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/AutoScaleVmProfileFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import AutoScaleVmProfile class AutoScaleVmProfileFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/ConditionFactory.py b/tools/marvin/marvin/integration/lib/factory/ConditionFactory.py index 621dc53d5d1..c796e7db381 100644 --- a/tools/marvin/marvin/integration/lib/factory/ConditionFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/ConditionFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import Condition class ConditionFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/CounterFactory.py b/tools/marvin/marvin/integration/lib/factory/CounterFactory.py index e1952272109..5fc34a4b7aa 100644 --- a/tools/marvin/marvin/integration/lib/factory/CounterFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/CounterFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import Counter class CounterFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/DiskOfferingFactory.py b/tools/marvin/marvin/integration/lib/factory/DiskOfferingFactory.py index 11fb5c26792..c1b36acf9e3 100644 --- a/tools/marvin/marvin/integration/lib/factory/DiskOfferingFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/DiskOfferingFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import DiskOffering class DiskOfferingFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/DomainFactory.py b/tools/marvin/marvin/integration/lib/factory/DomainFactory.py index 0c51f027c50..cf46d1e078f 100644 --- a/tools/marvin/marvin/integration/lib/factory/DomainFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/DomainFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import Domain class DomainFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/FirewallRuleFactory.py b/tools/marvin/marvin/integration/lib/factory/FirewallRuleFactory.py index bdc6a4875fd..81c3366d859 100644 --- a/tools/marvin/marvin/integration/lib/factory/FirewallRuleFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/FirewallRuleFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import FirewallRule class FirewallRuleFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/InstanceGroupFactory.py b/tools/marvin/marvin/integration/lib/factory/InstanceGroupFactory.py index b4cca6743b7..b3b81f80806 100644 --- a/tools/marvin/marvin/integration/lib/factory/InstanceGroupFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/InstanceGroupFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import InstanceGroup class InstanceGroupFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/IpAddressFactory.py b/tools/marvin/marvin/integration/lib/factory/IpAddressFactory.py index 28b82ac34b4..57399afde9b 100644 --- a/tools/marvin/marvin/integration/lib/factory/IpAddressFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/IpAddressFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import IpAddress class IpAddressFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/IpForwardingRuleFactory.py b/tools/marvin/marvin/integration/lib/factory/IpForwardingRuleFactory.py index 2e297c0a6c0..35847cc2878 100644 --- a/tools/marvin/marvin/integration/lib/factory/IpForwardingRuleFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/IpForwardingRuleFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import IpForwardingRule class IpForwardingRuleFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/IsoFactory.py b/tools/marvin/marvin/integration/lib/factory/IsoFactory.py index ac4cd2ed59c..534be28f431 100644 --- a/tools/marvin/marvin/integration/lib/factory/IsoFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/IsoFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import Iso class IsoFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/LBStickinessPolicyFactory.py b/tools/marvin/marvin/integration/lib/factory/LBStickinessPolicyFactory.py index d05b375ace9..a23c53318f2 100644 --- a/tools/marvin/marvin/integration/lib/factory/LBStickinessPolicyFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/LBStickinessPolicyFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import LBStickinessPolicy class LBStickinessPolicyFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/LoadBalancerRuleFactory.py b/tools/marvin/marvin/integration/lib/factory/LoadBalancerRuleFactory.py index 469f425f495..5b911c6740d 100644 --- a/tools/marvin/marvin/integration/lib/factory/LoadBalancerRuleFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/LoadBalancerRuleFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import LoadBalancerRule class LoadBalancerRuleFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/NetworkACLFactory.py b/tools/marvin/marvin/integration/lib/factory/NetworkACLFactory.py index aab418c3ee2..7923cb2eb6d 100644 --- a/tools/marvin/marvin/integration/lib/factory/NetworkACLFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/NetworkACLFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import NetworkACL class NetworkACLFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/NetworkFactory.py b/tools/marvin/marvin/integration/lib/factory/NetworkFactory.py index 17368f97931..239df4d0883 100644 --- a/tools/marvin/marvin/integration/lib/factory/NetworkFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/NetworkFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import Network class NetworkFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/NetworkOfferingFactory.py b/tools/marvin/marvin/integration/lib/factory/NetworkOfferingFactory.py index 18629db2e80..b1acff9cffd 100644 --- a/tools/marvin/marvin/integration/lib/factory/NetworkOfferingFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/NetworkOfferingFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import NetworkOffering class NetworkOfferingFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/PhysicalNetworkFactory.py b/tools/marvin/marvin/integration/lib/factory/PhysicalNetworkFactory.py index 61ae19d3b30..8a93fe29bb3 100644 --- a/tools/marvin/marvin/integration/lib/factory/PhysicalNetworkFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/PhysicalNetworkFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import PhysicalNetwork class PhysicalNetworkFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/PodFactory.py b/tools/marvin/marvin/integration/lib/factory/PodFactory.py index 117cf2620a0..65740ba33e8 100644 --- a/tools/marvin/marvin/integration/lib/factory/PodFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/PodFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import Pod class PodFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/PortForwardingRuleFactory.py b/tools/marvin/marvin/integration/lib/factory/PortForwardingRuleFactory.py index dfb463595da..681dc68c7ac 100644 --- a/tools/marvin/marvin/integration/lib/factory/PortForwardingRuleFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/PortForwardingRuleFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import PortForwardingRule class PortForwardingRuleFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/PrivateGatewayFactory.py b/tools/marvin/marvin/integration/lib/factory/PrivateGatewayFactory.py index 057375707a4..929f2dd7eea 100644 --- a/tools/marvin/marvin/integration/lib/factory/PrivateGatewayFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/PrivateGatewayFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import PrivateGateway class PrivateGatewayFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/ProjectFactory.py b/tools/marvin/marvin/integration/lib/factory/ProjectFactory.py index 0b91585e027..01ba771b926 100644 --- a/tools/marvin/marvin/integration/lib/factory/ProjectFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/ProjectFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import Project class ProjectFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/RemoteAccessVpnFactory.py b/tools/marvin/marvin/integration/lib/factory/RemoteAccessVpnFactory.py index 445a8d3b733..c34b8244118 100644 --- a/tools/marvin/marvin/integration/lib/factory/RemoteAccessVpnFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/RemoteAccessVpnFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import RemoteAccessVpn class RemoteAccessVpnFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/SSHKeyPairFactory.py b/tools/marvin/marvin/integration/lib/factory/SSHKeyPairFactory.py index 7181c8b5d09..784e8d860f8 100644 --- a/tools/marvin/marvin/integration/lib/factory/SSHKeyPairFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/SSHKeyPairFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import SSHKeyPair class SSHKeyPairFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/SecurityGroupFactory.py b/tools/marvin/marvin/integration/lib/factory/SecurityGroupFactory.py index 6b7cc8a7182..fd15db3ee30 100644 --- a/tools/marvin/marvin/integration/lib/factory/SecurityGroupFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/SecurityGroupFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import SecurityGroup class SecurityGroupFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/ServiceOfferingFactory.py b/tools/marvin/marvin/integration/lib/factory/ServiceOfferingFactory.py index 0a654cdcc6c..c9710e4555f 100644 --- a/tools/marvin/marvin/integration/lib/factory/ServiceOfferingFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/ServiceOfferingFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import ServiceOffering class ServiceOfferingFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/SnapshotFactory.py b/tools/marvin/marvin/integration/lib/factory/SnapshotFactory.py index 0bf7188c2a9..ae084145383 100644 --- a/tools/marvin/marvin/integration/lib/factory/SnapshotFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/SnapshotFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import Snapshot class SnapshotFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/SnapshotPolicyFactory.py b/tools/marvin/marvin/integration/lib/factory/SnapshotPolicyFactory.py index 6749f89c675..6be23a59808 100644 --- a/tools/marvin/marvin/integration/lib/factory/SnapshotPolicyFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/SnapshotPolicyFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import SnapshotPolicy class SnapshotPolicyFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/StaticRouteFactory.py b/tools/marvin/marvin/integration/lib/factory/StaticRouteFactory.py index 765a25a0203..1b7c948ab70 100644 --- a/tools/marvin/marvin/integration/lib/factory/StaticRouteFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/StaticRouteFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import StaticRoute class StaticRouteFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/StorageNetworkIpRangeFactory.py b/tools/marvin/marvin/integration/lib/factory/StorageNetworkIpRangeFactory.py index 2233c643c0d..1a8cc56d7eb 100644 --- a/tools/marvin/marvin/integration/lib/factory/StorageNetworkIpRangeFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/StorageNetworkIpRangeFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import StorageNetworkIpRange class StorageNetworkIpRangeFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/StoragePoolFactory.py b/tools/marvin/marvin/integration/lib/factory/StoragePoolFactory.py index 62baff96065..74092ff571b 100644 --- a/tools/marvin/marvin/integration/lib/factory/StoragePoolFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/StoragePoolFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import StoragePool class StoragePoolFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/TagsFactory.py b/tools/marvin/marvin/integration/lib/factory/TagsFactory.py index eedf1fdd5d2..55a23fa6e40 100644 --- a/tools/marvin/marvin/integration/lib/factory/TagsFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/TagsFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import Tags class TagsFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/TemplateFactory.py b/tools/marvin/marvin/integration/lib/factory/TemplateFactory.py index 93a1526d36c..fc142e1f5c6 100644 --- a/tools/marvin/marvin/integration/lib/factory/TemplateFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/TemplateFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import Template class TemplateFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/UserFactory.py b/tools/marvin/marvin/integration/lib/factory/UserFactory.py index ed857f9fbdb..0fc97b04088 100644 --- a/tools/marvin/marvin/integration/lib/factory/UserFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/UserFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import User class UserFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/UserKeysFactory.py b/tools/marvin/marvin/integration/lib/factory/UserKeysFactory.py index 9c16c183ed4..7594ac4d5e4 100644 --- a/tools/marvin/marvin/integration/lib/factory/UserKeysFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/UserKeysFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import UserKeys class UserKeysFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/VPCFactory.py b/tools/marvin/marvin/integration/lib/factory/VPCFactory.py index 47f0ffc2cfb..7d7f55e6d65 100644 --- a/tools/marvin/marvin/integration/lib/factory/VPCFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/VPCFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import VPC class VPCFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/VPCOfferingFactory.py b/tools/marvin/marvin/integration/lib/factory/VPCOfferingFactory.py index 92be188eb54..b73f47f3b6d 100644 --- a/tools/marvin/marvin/integration/lib/factory/VPCOfferingFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/VPCOfferingFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import VPCOffering class VPCOfferingFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/VirtualMachineFactory.py b/tools/marvin/marvin/integration/lib/factory/VirtualMachineFactory.py index 96b1eac7de1..28300fd15ab 100644 --- a/tools/marvin/marvin/integration/lib/factory/VirtualMachineFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/VirtualMachineFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import VirtualMachine class VirtualMachineFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/VirtualRouterElementFactory.py b/tools/marvin/marvin/integration/lib/factory/VirtualRouterElementFactory.py index f8dd5f2a760..e21489d3afc 100644 --- a/tools/marvin/marvin/integration/lib/factory/VirtualRouterElementFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/VirtualRouterElementFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import VirtualRouterElement class VirtualRouterElementFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/VlanIpRangeFactory.py b/tools/marvin/marvin/integration/lib/factory/VlanIpRangeFactory.py index ff64183fba3..45120f7f4c5 100644 --- a/tools/marvin/marvin/integration/lib/factory/VlanIpRangeFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/VlanIpRangeFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import VlanIpRange class VlanIpRangeFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/VolumeFactory.py b/tools/marvin/marvin/integration/lib/factory/VolumeFactory.py index 483cf822527..cde08c14a94 100644 --- a/tools/marvin/marvin/integration/lib/factory/VolumeFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/VolumeFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import Volume class VolumeFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/VpnConnectionFactory.py b/tools/marvin/marvin/integration/lib/factory/VpnConnectionFactory.py index eb104c209f5..d969ab2f0d7 100644 --- a/tools/marvin/marvin/integration/lib/factory/VpnConnectionFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/VpnConnectionFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import VpnConnection class VpnConnectionFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/VpnCustomerGatewayFactory.py b/tools/marvin/marvin/integration/lib/factory/VpnCustomerGatewayFactory.py index 77c3b8056ce..87d0b7555f7 100644 --- a/tools/marvin/marvin/integration/lib/factory/VpnCustomerGatewayFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/VpnCustomerGatewayFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import VpnCustomerGateway class VpnCustomerGatewayFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/VpnGatewayFactory.py b/tools/marvin/marvin/integration/lib/factory/VpnGatewayFactory.py index 5cce2c4938a..8685740628e 100644 --- a/tools/marvin/marvin/integration/lib/factory/VpnGatewayFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/VpnGatewayFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import VpnGateway class VpnGatewayFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/factory/ZoneFactory.py b/tools/marvin/marvin/integration/lib/factory/ZoneFactory.py index 9b9e4156bca..90989e67235 100644 --- a/tools/marvin/marvin/integration/lib/factory/ZoneFactory.py +++ b/tools/marvin/marvin/integration/lib/factory/ZoneFactory.py @@ -1,3 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. import factory from marvin.integration.lib.newbase import Zone class ZoneFactory(factory.Factory): diff --git a/tools/marvin/marvin/integration/lib/generateBase.py b/tools/marvin/marvin/integration/lib/generateBase.py index 9fe0338b079..370cf14e1aa 100644 --- a/tools/marvin/marvin/integration/lib/generateBase.py +++ b/tools/marvin/marvin/integration/lib/generateBase.py @@ -29,7 +29,23 @@ grammar = ['create', 'list', 'delete', 'update', 'copy', 'extract', 'migrate', 'restore', 'suspend', 'get', 'query', 'prepare', 'deploy', 'upload', 'lock', 'disassociate'] -aslv2 = "" +LICENSE = """# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +""" def get_api_cmds(): @@ -89,11 +105,11 @@ def get_actionable_entities(): def write_entity_classes(entities): tabspace = ' ' - classlist = [] + entitydict = {} #TODO: Add license header for ASLv2 - code = '' for entity, actions in entities.iteritems(): - code += 'class %s:'%entity + code = '' + code += 'class %s(CloudStackEntity):'%entity for action, args in actions.iteritems(): code += '\n\n' code += tabspace @@ -110,9 +126,12 @@ def write_entity_classes(entities): code += tabspace*2 code += 'pass' code += '\n\n' - classlist.append(code) + entitydict[entity] = code write_entity_factory(entity, actions) - return list(set(classlist)) + with open("./base/%s.py"%entity, "w") as writer: + writer.write(LICENSE) + writer.write(code) + def write_entity_factory(entity, actions): tabspace = ' ' @@ -133,6 +152,10 @@ def write_entity_factory(entity, actions): if os.path.exists("./factory/%sFactory.py"%entity): for arg in factory_defaults[0]: code += tabspace + '%s = None\n'%arg + with open("./factory/%sFactory.py"%entity, "r") as reader: + rcode = reader.read() + if rcode.find(code) > 0: + return with open("./factory/%sFactory.py"%entity, "a") as writer: writer.write(code) else: @@ -144,10 +167,9 @@ def write_entity_factory(entity, actions): for arg in factory_defaults[0]: code += tabspace + '%s = None\n'%arg with open("./factory/%sFactory.py"%entity, "w") as writer: + writer.write(LICENSE) writer.write(code) if __name__=='__main__': entities = get_actionable_entities() - clslist = write_entity_classes(entities) - for cls in clslist: - print cls + write_entity_classes(entities) diff --git a/tools/marvin/marvin/integration/lib/base.py b/tools/marvin/marvin/integration/lib/oldbase.py similarity index 99% rename from tools/marvin/marvin/integration/lib/base.py rename to tools/marvin/marvin/integration/lib/oldbase.py index 4f151378cc9..f7f88bf5094 100755 --- a/tools/marvin/marvin/integration/lib/base.py +++ b/tools/marvin/marvin/integration/lib/oldbase.py @@ -3420,25 +3420,25 @@ class VmSnapshot: if description: cmd.description = description return VmSnapshot(apiclient.createVMSnapshot(cmd).__dict__) - + @classmethod def list(cls, apiclient, **kwargs): cmd = listVMSnapshot.listVMSnapshotCmd() [setattr(cmd, k, v) for k, v in kwargs.items()] return(apiclient.listVMSnapshot(cmd)) - + @classmethod def revertToSnapshot(cls, apiclient,vmsnapshotid): cmd = revertToVMSnapshot.revertToVMSnapshotCmd() cmd.vmsnapshotid = vmsnapshotid - + return apiclient.revertToVMSnapshot(cmd) - + @classmethod def deleteVMSnapshot(cls,apiclient,vmsnapshotid): cmd = deleteVMSnapshot.deleteVMSnapshotCmd() cmd.vmsnapshotid = vmsnapshotid - + return apiclient.deleteVMSnapshot(cmd) class Region: