mirror of https://github.com/apache/cloudstack.git
142 lines
6.1 KiB
Python
142 lines
6.1 KiB
Python
# 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.
|
|
|
|
|
|
"""Activates a project"""
|
|
from baseCmd import *
|
|
from baseResponse import *
|
|
class activateProjectCmd (baseCmd):
|
|
def __init__(self):
|
|
self.isAsync = "true"
|
|
"""id of the project to be modified"""
|
|
"""Required"""
|
|
self.id = None
|
|
self.required = ["id",]
|
|
|
|
class activateProjectResponse (baseResponse):
|
|
def __init__(self):
|
|
"""the id of the project"""
|
|
self.id = None
|
|
"""the account name of the project's owner"""
|
|
self.account = None
|
|
"""the total number of cpu cores available to be created for this project"""
|
|
self.cpuavailable = None
|
|
"""the total number of cpu cores the project can own"""
|
|
self.cpulimit = None
|
|
"""the total number of cpu cores owned by project"""
|
|
self.cputotal = None
|
|
"""the displaytext of the project"""
|
|
self.displaytext = None
|
|
"""the domain name where the project belongs to"""
|
|
self.domain = None
|
|
"""the domain id the project belongs to"""
|
|
self.domainid = None
|
|
"""the total number of public ip addresses available for this project to acquire"""
|
|
self.ipavailable = None
|
|
"""the total number of public ip addresses this project can acquire"""
|
|
self.iplimit = None
|
|
"""the total number of public ip addresses allocated for this project"""
|
|
self.iptotal = None
|
|
"""the total memory (in MB) available to be created for this project"""
|
|
self.memoryavailable = None
|
|
"""the total memory (in MB) the project can own"""
|
|
self.memorylimit = None
|
|
"""the total memory (in MB) owned by project"""
|
|
self.memorytotal = None
|
|
"""the name of the project"""
|
|
self.name = None
|
|
"""the total number of networks available to be created for this project"""
|
|
self.networkavailable = None
|
|
"""the total number of networks the project can own"""
|
|
self.networklimit = None
|
|
"""the total number of networks owned by project"""
|
|
self.networktotal = None
|
|
"""the total primary storage space (in GiB) available to be used for this project"""
|
|
self.primarystorageavailable = None
|
|
"""the total primary storage space (in GiB) the project can own"""
|
|
self.primarystoragelimit = None
|
|
"""the total primary storage space (in GiB) owned by project"""
|
|
self.primarystoragetotal = None
|
|
"""the total secondary storage space (in GiB) available to be used for this project"""
|
|
self.secondarystorageavailable = None
|
|
"""the total secondary storage space (in GiB) the project can own"""
|
|
self.secondarystoragelimit = None
|
|
"""the total secondary storage space (in GiB) owned by project"""
|
|
self.secondarystoragetotal = None
|
|
"""the total number of snapshots available for this project"""
|
|
self.snapshotavailable = None
|
|
"""the total number of snapshots which can be stored by this project"""
|
|
self.snapshotlimit = None
|
|
"""the total number of snapshots stored by this project"""
|
|
self.snapshottotal = None
|
|
"""the state of the project"""
|
|
self.state = None
|
|
"""the total number of templates available to be created by this project"""
|
|
self.templateavailable = None
|
|
"""the total number of templates which can be created by this project"""
|
|
self.templatelimit = None
|
|
"""the total number of templates which have been created by this project"""
|
|
self.templatetotal = None
|
|
"""the total number of virtual machines available for this project to acquire"""
|
|
self.vmavailable = None
|
|
"""the total number of virtual machines that can be deployed by this project"""
|
|
self.vmlimit = None
|
|
"""the total number of virtual machines running for this project"""
|
|
self.vmrunning = None
|
|
"""the total number of virtual machines stopped for this project"""
|
|
self.vmstopped = None
|
|
"""the total number of virtual machines deployed by this project"""
|
|
self.vmtotal = None
|
|
"""the total volume available for this project"""
|
|
self.volumeavailable = None
|
|
"""the total volume which can be used by this project"""
|
|
self.volumelimit = None
|
|
"""the total volume being used by this project"""
|
|
self.volumetotal = None
|
|
"""the total number of vpcs available to be created for this project"""
|
|
self.vpcavailable = None
|
|
"""the total number of vpcs the project can own"""
|
|
self.vpclimit = None
|
|
"""the total number of vpcs owned by project"""
|
|
self.vpctotal = None
|
|
"""the list of resource tags associated with vm"""
|
|
self.tags = []
|
|
|
|
class tags:
|
|
def __init__(self):
|
|
""""the account associated with the tag"""
|
|
self.account = None
|
|
""""customer associated with the tag"""
|
|
self.customer = None
|
|
""""the domain associated with the tag"""
|
|
self.domain = None
|
|
""""the ID of the domain associated with the tag"""
|
|
self.domainid = None
|
|
""""tag key name"""
|
|
self.key = None
|
|
""""the project name where tag belongs to"""
|
|
self.project = None
|
|
""""the project id the tag belongs to"""
|
|
self.projectid = None
|
|
""""id of the resource"""
|
|
self.resourceid = None
|
|
""""resource type"""
|
|
self.resourcetype = None
|
|
""""tag value"""
|
|
self.value = None
|
|
|