# coding: utf-8

"""
    Algorithmia Management APIs

    APIs for managing actions on the Algorithmia platform  # noqa: E501

    The version of the OpenAPI document: 1.0.1
    Contact: support@algorithmia.com
    Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

import unittest
import datetime

import algorithmia_api_client
from algorithmia_api_client.models.create_request import CreateRequest  # noqa: E501
from algorithmia_api_client.rest import ApiException

class TestCreateRequest(unittest.TestCase):
    """CreateRequest unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test CreateRequest
            include_option is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # model = algorithmia_api_client.models.create_request.CreateRequest()  # noqa: E501
        if include_optional :
            return CreateRequest(
                name = '0', 
                details = algorithmia_api_client.models.details.Details(
                    summary = '0', 
                    label = '0', 
                    tagline = '0', ), 
                settings = algorithmia_api_client.models.settings_mandatory.SettingsMandatory(
                    source_visibility = 'open', 
                    language = 'java', 
                    environment = 'cpu', 
                    package_set = '0', 
                    license = 'apl', 
                    royalty_microcredits = 0, 
                    network_access = 'isolated', 
                    pipeline_enabled = True, ), 
                source = algorithmia_api_client.models.source_create.SourceCreate(
                    repository_name = '0', 
                    repository_owner = '0', 
                    scm = '0', ), 
                version_info = algorithmia_api_client.models.create_request_version_info.CreateRequest_version_info(
                    sample_input = '0', )
            )
        else :
            return CreateRequest(
                name = '0',
                details = algorithmia_api_client.models.details.Details(
                    summary = '0', 
                    label = '0', 
                    tagline = '0', ),
                settings = algorithmia_api_client.models.settings_mandatory.SettingsMandatory(
                    source_visibility = 'open', 
                    language = 'java', 
                    environment = 'cpu', 
                    package_set = '0', 
                    license = 'apl', 
                    royalty_microcredits = 0, 
                    network_access = 'isolated', 
                    pipeline_enabled = True, ),
        )

    def testCreateRequest(self):
        """Test CreateRequest"""
        inst_req_only = self.make_instance(include_optional=False)
        inst_req_and_optional = self.make_instance(include_optional=True)


if __name__ == '__main__':
    unittest.main()
