Holocron
- class q2_sdk.models.holocron.Result(success=False, error_message=None, data=<factory>)[source]
Result of the query.
- class q2_sdk.models.holocron.EnvStackEntry(env_stack='', aba='', customer_key='', db_name='', core_only=False)[source]
Stores the envstack details returned from Holocron.
- envstack
The environment stack. Typically set in the format of <FI Number>-<environment>.
- Type:
- class q2_sdk.models.holocron.EnvStackResponse(success=False, reason='', data=None)[source]
Stores envstack response from Holocron.
- data
The environment stack for the provided customer key.
- Type:
- class q2_sdk.models.holocron.EnvStackListResponse(success=False, reason='', data=<factory>)[source]
Stores envstack response information from Holocron.
- data
The list of environment stacks returned.
- Type:
list[
EnvStackEntry
]
- enum q2_sdk.models.holocron.SearchType(value)[source]
Valid values are as follows:
- Name = <SearchType.Name: 'name'>
- CustomerKey = <SearchType.CustomerKey: 'customer_key'>
- ABA = <SearchType.ABA: 'aba'>
- DbName = <SearchType.DbName: 'db_name'>
- class q2_sdk.models.holocron.SearchFilter(key, search_type)[source]
SearchFilter(key: ‘str’, search_type: ‘SearchType’)
- class q2_sdk.models.holocron.HolocronEndpoint(logger=None, environment=None)[source]
Interacts with Holocron for a given environment.
- Parameters:
- async get_envstack(key, search_type=SearchType.Name)[source]
Retrieves the envstack information from Holocron using the customer key.
- Parameters:
key (
str
) – Key to filter by. Note: the response will be marked as unsuccessful if more than one envstack is returned for the provided key.search_type (
SearchType
) – Can be any value from the SearchType enum. Defaults to searching by EnvStack name.
- Return type:
- Returns:
EnvStackResponse dataclass containing information on the response status (success or otherwise), reasoning for any failures, and the environment stack on success.
- async get_envstack_list(filter=None)[source]
Retrieves the envstack information from Holocron.
- Parameters:
key – Key to filter by.
- Return type:
- Returns:
EnvStackListResponse containing information on the response status (success or otherwise), reasoning for any failures, and a list of environment stacks on success.
- async create_or_update_envstack(envstack, updated_by)[source]
Envstacks are the base objects that have configs and facets attached to them. This upserts (creates or updates) a given envstack.
- Parameters:
envstack (
EnvStackEntry
) – EnvStack metadata to createupdated_by (
str
) – An identifier to who is creating (your name perhaps)
- async get_facets(envstack_name, facet_id)[source]
Facets are key/value pairs attached to envstacks, but segmented one level further. Good for if multiple groups are accessing the envstack, each one can have their own facet_id.
- async add_configs(envstack_name, config)[source]
Configs are key/value pairs attached to envstacks. This adds arbitrary pairs under the service_configs config location