Exemplo n.º 1
0
    def __init__(self, id=None, local_vars_configuration=None):  # noqa: E501
        """PostResponse - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self.discriminator = None

        if id is not None:
            self.id = id
Exemplo n.º 2
0
    def __init__(self,
                 status=None,
                 local_vars_configuration=None):  # noqa: E501
        """AttachDrive - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._status = None
        self.discriminator = None

        if status is not None:
            self.status = status
Exemplo n.º 3
0
Arquivo: error.py Projeto: qarax/qarax
    def __init__(self,
                 error=None,
                 local_vars_configuration=None):  # noqa: E501
        """Error - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._error = None
        self.discriminator = None

        if error is not None:
            self.error = error
Exemplo n.º 4
0
    def __init__(self,
                 host_status=None,
                 local_vars_configuration=None):  # noqa: E501
        """HealthResponse - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._host_status = None
        self.discriminator = None

        if host_status is not None:
            self.host_status = host_status
Exemplo n.º 5
0
Arquivo: vm.py Projeto: qarax/qarax
    def __init__(self,
                 address=None,
                 host_id=None,
                 id=None,
                 kernel=None,
                 kernel_params=None,
                 memory=None,
                 name=None,
                 network_mode=None,
                 status=None,
                 vcpu=None,
                 local_vars_configuration=None):  # noqa: E501
        """Vm - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._address = None
        self._host_id = None
        self._id = None
        self._kernel = None
        self._kernel_params = None
        self._memory = None
        self._name = None
        self._network_mode = None
        self._status = None
        self._vcpu = None
        self.discriminator = None

        if address is not None:
            self.address = address
        if host_id is not None:
            self.host_id = host_id
        if id is not None:
            self.id = id
        if kernel is not None:
            self.kernel = kernel
        if kernel_params is not None:
            self.kernel_params = kernel_params
        if memory is not None:
            self.memory = memory
        if name is not None:
            self.name = name
        if network_mode is not None:
            self.network_mode = network_mode
        if status is not None:
            self.status = status
        if vcpu is not None:
            self.vcpu = vcpu
Exemplo n.º 6
0
    def __init__(self,
                 configuration=None,
                 header_name=None,
                 header_value=None,
                 cookie=None,
                 pool_threads=1):
        if configuration is None:
            configuration = Configuration.get_default_copy()
        self.configuration = configuration
        self.pool_threads = pool_threads

        self.rest_client = rest.RESTClientObject(configuration)
        self.default_headers = {}
        if header_name is not None:
            self.default_headers[header_name] = header_value
        self.cookie = cookie
        # Set default User-Agent.
        self.user_agent = 'OpenAPI-Generator/1.0.0/python'
        self.client_side_validation = configuration.client_side_validation
Exemplo n.º 7
0
    def __init__(self,
                 id=None,
                 name=None,
                 storage_id=None,
                 local_vars_configuration=None):  # noqa: E501
        """Kernel - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._name = None
        self._storage_id = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if storage_id is not None:
            self.storage_id = storage_id
Exemplo n.º 8
0
    def __init__(self,
                 local_node_path=None,
                 fcversion=None,
                 status=None,
                 local_vars_configuration=None):  # noqa: E501
        """InstallHost - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._local_node_path = None
        self._fcversion = None
        self._status = None
        self.discriminator = None

        if local_node_path is not None:
            self.local_node_path = local_node_path
        if fcversion is not None:
            self.fcversion = fcversion
        if status is not None:
            self.status = status
Exemplo n.º 9
0
    def __init__(self, config=None, id=None, name=None, status=None, storage_type=None, local_vars_configuration=None):  # noqa: E501
        """Storage - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._config = None
        self._id = None
        self._name = None
        self._status = None
        self._storage_type = None
        self.discriminator = None

        if config is not None:
            self.config = config
        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if status is not None:
            self.status = status
        if storage_type is not None:
            self.storage_type = storage_type
Exemplo n.º 10
0
Arquivo: host.py Projeto: qarax/qarax
    def __init__(self,
                 address=None,
                 host_user=None,
                 id=None,
                 name=None,
                 password=None,
                 port=None,
                 status=None,
                 local_vars_configuration=None):  # noqa: E501
        """Host - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._address = None
        self._host_user = None
        self._id = None
        self._name = None
        self._password = None
        self._port = None
        self._status = None
        self.discriminator = None

        if address is not None:
            self.address = address
        if host_user is not None:
            self.host_user = host_user
        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if password is not None:
            self.password = password
        if port is not None:
            self.port = port
        if status is not None:
            self.status = status