# coding: utf-8
"""
System Initiative API
The API Server for interacting with a System Initiative workspace
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from system_initiative_api_client.models.get_component_v1_response import GetComponentV1Response
class TestGetComponentV1Response(unittest.TestCase):
"""GetComponentV1Response unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> GetComponentV1Response:
"""Test GetComponentV1Response
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `GetComponentV1Response`
"""
model = GetComponentV1Response()
if include_optional:
return GetComponentV1Response(
action_functions = [{prototypeId=01HAXYZF3GC9CYA6ZVSM3E4YGG, funcName=Terminate Instance}],
component = system_initiative_api_client.models.component_view_v1.ComponentViewV1(
attributes = {/domain/region=us-east-1, /secrets/credential={$source={component=demo-credential, path=/secrets/AWS Credential}}},
can_be_upgraded = True,
connections = [
null
],
domain_props = [
system_initiative_api_client.models.component_prop_view_v1.ComponentPropViewV1(
id = '',
path = 'path/to/prop',
prop_id = '',
value = null, )
],
id = '',
name = '',
resource_id = '',
resource_props = [
system_initiative_api_client.models.component_prop_view_v1.ComponentPropViewV1(
id = '',
path = 'path/to/prop',
prop_id = '',
value = null, )
],
schema_id = '',
schema_variant_id = '',
to_delete = True,
views = [
system_initiative_api_client.models.view_v1.ViewV1(
id = '',
is_default = True,
name = '', )
], ),
management_functions = [{managementPrototypeId=01HAXYZF3GC9CYA6ZVSM3E4YFF, funcName=Start Instance}]
)
else:
return GetComponentV1Response(
action_functions = [{prototypeId=01HAXYZF3GC9CYA6ZVSM3E4YGG, funcName=Terminate Instance}],
component = system_initiative_api_client.models.component_view_v1.ComponentViewV1(
attributes = {/domain/region=us-east-1, /secrets/credential={$source={component=demo-credential, path=/secrets/AWS Credential}}},
can_be_upgraded = True,
connections = [
null
],
domain_props = [
system_initiative_api_client.models.component_prop_view_v1.ComponentPropViewV1(
id = '',
path = 'path/to/prop',
prop_id = '',
value = null, )
],
id = '',
name = '',
resource_id = '',
resource_props = [
system_initiative_api_client.models.component_prop_view_v1.ComponentPropViewV1(
id = '',
path = 'path/to/prop',
prop_id = '',
value = null, )
],
schema_id = '',
schema_variant_id = '',
to_delete = True,
views = [
system_initiative_api_client.models.view_v1.ViewV1(
id = '',
is_default = True,
name = '', )
], ),
management_functions = [{managementPrototypeId=01HAXYZF3GC9CYA6ZVSM3E4YFF, funcName=Start Instance}],
)
"""
def testGetComponentV1Response(self):
"""Test GetComponentV1Response"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()