# 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.func_run_view_v1 import FuncRunViewV1
class TestFuncRunViewV1(unittest.TestCase):
"""FuncRunViewV1 unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> FuncRunViewV1:
"""Test FuncRunViewV1
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 `FuncRunViewV1`
"""
model = FuncRunViewV1()
if include_optional:
return FuncRunViewV1(
action_display_name = 'Destroy',
action_id = '01JQCHZZY99G3R0C1FA3W4AFR6',
action_kind = 'Destroy',
action_originating_change_set_id = '01JQCHZZVTAHHZ7DG0ZSCB9RXB',
action_originating_change_set_name = '2025-03-27-19:41',
action_prototype_id = '01JPNHEE9Z3DFW48XVZ1FX04KA',
action_result_state = 'Success',
attribute_value_id = 'null',
backend_kind = 'JsAction',
backend_response_type = 'Action',
component_id = '01JP8KHZP3DZKGNXRP83Q6WTQ5',
component_name = 'NAT Gateway IP 1',
created_at = '2025-03-27T19:41:58.493298051Z',
function_args = None,
function_code_base64 = 'YXN5bmMgZnVuY3Rpb24gbWFpbihjb21wb2...',
function_description = 'null',
function_display_name = 'null',
function_kind = 'Action',
function_link = 'null',
function_name = 'Delete Asset',
id = '01JQCJ0AAXGX5M9QY10AVF4GK1',
logs = system_initiative_api_client.models.func_run_log_view_v1.FuncRunLogViewV1(
created_at = '2025-03-27T19:41:58.514416748Z',
finalized = True,
func_run_id = '01JQCJ0AAXGX5M9QY10AVF4GK1',
id = '01JQCJ0ABJSCE01GNQDWVY1ZP5',
logs = [{stream=stdout, executionId=, level=info, group=log, message=Running CLI command: "aws 'cloudcontrol' 'delete-resource'", timestamp=1743104518}, {stream=output, executionId=01JQCJ0AAXGX5M9QY10AVF4GK1, level=info, group=log, message=Output: {"protocol":"result","status":"success"}, timestamp=1743104521}],
updated_at = '2025-03-27T19:41:58.514416748Z', ),
result_value = None,
schema_name = 'AWS::EC2::EIP',
state = 'Success',
updated_at = '2025-03-27T19:42:02.192033089Z'
)
else:
return FuncRunViewV1(
backend_kind = 'JsAction',
backend_response_type = 'Action',
created_at = '2025-03-27T19:41:58.493298051Z',
function_args = None,
function_code_base64 = 'YXN5bmMgZnVuY3Rpb24gbWFpbihjb21wb2...',
function_kind = 'Action',
function_name = 'Delete Asset',
id = '01JQCJ0AAXGX5M9QY10AVF4GK1',
state = 'Success',
updated_at = '2025-03-27T19:42:02.192033089Z',
)
"""
def testFuncRunViewV1(self):
"""Test FuncRunViewV1"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()