<filename>tools/ccs_marvin_wrappers/marvin/ccsAPI/createContainerCluster.py
# 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.


"""Creates a cluster of VM's for launching containers."""
from baseCmd import *
from baseResponse import *
class createContainerClusterCmd (baseCmd):
    typeInfo = {}
    def __init__(self):
        self.isAsync = "true"
        """name for the container cluster"""
        """Required"""
        self.name = None
        self.typeInfo['name'] = 'string'
        """the ID of the service offering for the virtual machines in the cluster."""
        """Required"""
        self.serviceofferingid = None
        self.typeInfo['serviceofferingid'] = 'uuid'
        """number of container cluster nodes"""
        """Required"""
        self.size = None
        self.typeInfo['size'] = 'long'
        """availability zone in which container cluster to be launched"""
        """Required"""
        self.zoneid = None
        self.typeInfo['zoneid'] = 'uuid'
        """an optional account for the virtual machine. Must be used with domainId."""
        self.account = None
        self.typeInfo['account'] = 'string'
        """description for the container cluster"""
        self.description = None
        self.typeInfo['description'] = 'string'
        """email of the docker image private registry user"""
        self.dockerregistryemail = None
        self.typeInfo['dockerregistryemail'] = 'string'
        """password for the docker image private registry"""
        self.dockerregistrypassword = None
        self.typeInfo['dockerregistrypassword'] = 'string'
        """URL for the docker image private registry"""
        self.dockerregistryurl = None
        self.typeInfo['dockerregistryurl'] = 'string'
        """user name for the docker image private registry"""
        self.dockerregistryusername = None
        self.typeInfo['dockerregistryusername'] = 'string'
        """an optional domainId for the virtual machine. If the account parameter is used, domainId must also be used."""
        self.domainid = None
        self.typeInfo['domainid'] = 'uuid'
        """name of the ssh key pair used to login to the virtual machines"""
        self.keypair = None
        self.typeInfo['keypair'] = 'string'
        """Network in which container cluster is to be launched"""
        self.networkid = None
        self.typeInfo['networkid'] = 'uuid'
        """Deploy cluster for the project"""
        self.projectid = None
        self.typeInfo['projectid'] = 'uuid'
        self.required = ["name","serviceofferingid","size","zoneid",]

class createContainerClusterResponse (baseResponse):
    typeInfo = {}
    def __init__(self):
        """the id of the container cluster"""
        self.id = None
        self.typeInfo['id'] = 'string'
        """the name of the Network associated with the IP address"""
        self.associatednetworkname = None
        self.typeInfo['associatednetworkname'] = 'string'
        """URL end point for the cluster UI"""
        self.consoleendpoint = None
        self.typeInfo['consoleendpoint'] = 'string'
        """cluster cpu cores"""
        self.cpunumber = None
        self.typeInfo['cpunumber'] = 'string'
        """Description of the container cluster"""
        self.description = None
        self.typeInfo['description'] = 'string'
        """URL end point for the cluster"""
        self.endpoint = None
        self.typeInfo['endpoint'] = 'string'
        """keypair details"""
        self.keypair = None
        self.typeInfo['keypair'] = 'string'
        """cluster size"""
        self.memory = None
        self.typeInfo['memory'] = 'string'
        """Name of the container cluster"""
        self.name = None
        self.typeInfo['name'] = 'string'
        """network id details"""
        self.networkid = None
        self.typeInfo['networkid'] = 'string'
        """Password with which container cluster is setup"""
        self.password = None
        self.typeInfo['password'] = 'string'
        """Service Offering id"""
        self.serviceofferingid = None
        self.typeInfo['serviceofferingid'] = 'string'
        """the name of the service offering of the virtual machine"""
        self.serviceofferingname = None
        self.typeInfo['serviceofferingname'] = 'string'
        """cluster size"""
        self.size = None
        self.typeInfo['size'] = 'string'
        """state of the cluster"""
        self.state = None
        self.typeInfo['state'] = 'string'
        """template id"""
        self.templateid = None
        self.typeInfo['templateid'] = 'string'
        """Username with which container cluster is setup"""
        self.username = None
        self.typeInfo['username'] = 'string'
        """the list of virtualmachine ids associated with this container cluster"""
        self.virtualmachineids = None
        self.typeInfo['virtualmachineids'] = 'list'
        """zone id"""
        self.zoneid = None
        self.typeInfo['zoneid'] = 'string'
        """zone name"""
        self.zonename = None
        self.typeInfo['zonename'] = 'string'


<filename>tools/ccs_marvin_wrappers/marvin/ccsAPI/createContainerCluster.py
# 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.


"""Creates a cluster of VM's for launching containers."""
from baseCmd import *
from baseResponse import *
class createContainerClusterCmd (baseCmd):
    typeInfo = {}
    def __init__(self):
        self.isAsync = "true"
        """name for the container cluster"""
        """Required"""
        self.name = None
        self.typeInfo['name'] = 'string'
        """the ID of the service offering for the virtual machines in the cluster."""
        """Required"""
        self.serviceofferingid = None
        self.typeInfo['serviceofferingid'] = 'uuid'
        """number of container cluster nodes"""
        """Required"""
        self.size = None
        self.typeInfo['size'] = 'long'
        """availability zone in which container cluster to be launched"""
        """Required"""
        self.zoneid = None
        self.typeInfo['zoneid'] = 'uuid'
        """an optional account for the virtual machine. Must be used with domainId."""
        self.account = None
        self.typeInfo['account'] = 'string'
        """description for the container cluster"""
        self.description = None
        self.typeInfo['description'] = 'string'
        """email of the docker image private registry user"""
        self.dockerregistryemail = None
        self.typeInfo['dockerregistryemail'] = 'string'
        """password for the docker image private registry"""
        self.dockerregistrypassword = None
        self.typeInfo['dockerregistrypassword'] = 'string'
        """URL for the docker image private registry"""
        self.dockerregistryurl = None
        self.typeInfo['dockerregistryurl'] = 'string'
        """user name for the docker image private registry"""
        self.dockerregistryusername = None
        self.typeInfo['dockerregistryusername'] = 'string'
        """an optional domainId for the virtual machine. If the account parameter is used, domainId must also be used."""
        self.domainid = None
        self.typeInfo['domainid'] = 'uuid'
        """name of the ssh key pair used to login to the virtual machines"""
        self.keypair = None
        self.typeInfo['keypair'] = 'string'
        """Network in which container cluster is to be launched"""
        self.networkid = None
        self.typeInfo['networkid'] = 'uuid'
        """Deploy cluster for the project"""
        self.projectid = None
        self.typeInfo['projectid'] = 'uuid'
        self.required = ["name","serviceofferingid","size","zoneid",]

class createContainerClusterResponse (baseResponse):
    typeInfo = {}
    def __init__(self):
        """the id of the container cluster"""
        self.id = None
        self.typeInfo['id'] = 'string'
        """the name of the Network associated with the IP address"""
        self.associatednetworkname = None
        self.typeInfo['associatednetworkname'] = 'string'
        """URL end point for the cluster UI"""
        self.consoleendpoint = None
        self.typeInfo['consoleendpoint'] = 'string'
        """cluster cpu cores"""
        self.cpunumber = None
        self.typeInfo['cpunumber'] = 'string'
        """Description of the container cluster"""
        self.description = None
        self.typeInfo['description'] = 'string'
        """URL end point for the cluster"""
        self.endpoint = None
        self.typeInfo['endpoint'] = 'string'
        """keypair details"""
        self.keypair = None
        self.typeInfo['keypair'] = 'string'
        """cluster size"""
        self.memory = None
        self.typeInfo['memory'] = 'string'
        """Name of the container cluster"""
        self.name = None
        self.typeInfo['name'] = 'string'
        """network id details"""
        self.networkid = None
        self.typeInfo['networkid'] = 'string'
        """Password with which container cluster is setup"""
        self.password = None
        self.typeInfo['password'] = 'string'
        """Service Offering id"""
        self.serviceofferingid = None
        self.typeInfo['serviceofferingid'] = 'string'
        """the name of the service offering of the virtual machine"""
        self.serviceofferingname = None
        self.typeInfo['serviceofferingname'] = 'string'
        """cluster size"""
        self.size = None
        self.typeInfo['size'] = 'string'
        """state of the cluster"""
        self.state = None
        self.typeInfo['state'] = 'string'
        """template id"""
        self.templateid = None
        self.typeInfo['templateid'] = 'string'
        """Username with which container cluster is setup"""
        self.username = None
        self.typeInfo['username'] = 'string'
        """the list of virtualmachine ids associated with this container cluster"""
        self.virtualmachineids = None
        self.typeInfo['virtualmachineids'] = 'list'
        """zone id"""
        self.zoneid = None
        self.typeInfo['zoneid'] = 'string'
        """zone name"""
        self.zonename = None
        self.typeInfo['zonename'] = 'string'


# 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. Creates a cluster of VM's for launching containers. name for the container cluster Required the ID of the service offering for the virtual machines in the cluster. Required number of container cluster nodes Required availability zone in which container cluster to be launched Required an optional account for the virtual machine. Must be used with domainId. description for the container cluster email of the docker image private registry user password for the docker image private registry URL for the docker image private registry user name for the docker image private registry an optional domainId for the virtual machine. If the account parameter is used, domainId must also be used. name of the ssh key pair used to login to the virtual machines Network in which container cluster is to be launched Deploy cluster for the project the id of the container cluster the name of the Network associated with the IP address URL end point for the cluster UI cluster cpu cores Description of the container cluster URL end point for the cluster keypair details cluster size Name of the container cluster network id details Password with which container cluster is setup Service Offering id the name of the service offering of the virtual machine cluster size state of the cluster template id Username with which container cluster is setup the list of virtualmachine ids associated with this container cluster zone id zone name