Skip to main content
Glama
test_hash_map_value.py2.5 kB
# 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.hash_map_value import HashMapValue class TestHashMapValue(unittest.TestCase): """HashMapValue unit test stubs""" def setUp(self): pass def tearDown(self): pass def make_instance(self, include_optional) -> HashMapValue: """Test HashMapValue 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 `HashMapValue` """ model = HashMapValue() if include_optional: return HashMapValue( definition = system_initiative_api_client.models.secret_definition_v1.SecretDefinitionV1( form_data = [{name=access_key_id, kind=string}, {name=secret_access_key, kind=password}], secret_definition = 'aws_credentials', ), secrets = [{id=01HAXYZF3GC9CYA6ZVSM3E4YHH, name=Production AWS Key, definition=aws_credentials, description=AWS credentials for production environment}, {id=01HAXYZF3GC9CYA6ZVSM3E4YHI, name=Development AWS Key, definition=aws_credentials, description=AWS credentials for development environment}] ) else: return HashMapValue( definition = system_initiative_api_client.models.secret_definition_v1.SecretDefinitionV1( form_data = [{name=access_key_id, kind=string}, {name=secret_access_key, kind=password}], secret_definition = 'aws_credentials', ), secrets = [{id=01HAXYZF3GC9CYA6ZVSM3E4YHH, name=Production AWS Key, definition=aws_credentials, description=AWS credentials for production environment}, {id=01HAXYZF3GC9CYA6ZVSM3E4YHI, name=Development AWS Key, definition=aws_credentials, description=AWS credentials for development environment}], ) """ def testHashMapValue(self): """Test HashMapValue""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server