Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add models for StArMap APIv2 Query #46

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

WIP: Add models for StArMap APIv2 Query #46

wants to merge 1 commit into from

Conversation

JAVGan
Copy link
Collaborator

@JAVGan JAVGan commented Sep 19, 2024

This commit introduces the following new models for the StArMap APIv2:

  • QueryResponseContainer: holds the whole Query APIv2 response within its property responses which is a list of QueryResponseEntity.

  • QueryResponseEntity: Represents a single mapping for a given workflow, name and cloud. It can be converted to the QueryResponse from APIv1 model which works in an analogue way (without support for cloud name as a property).

  • MappingResponseObject: Represent a single mapping entity which is part of QueryResponseEntity. It holds a list of Destination object, similar to what QueryResponse does on its clouds attribute.

  • BillingCodeRule: A dedicated model to represent a Billing Code Rule for the comnmunity workflow.

Refers to SPSTRAT-382

This commit introduces the following new models for the StArMap APIv2:

- `QueryResponseContainer`: holds the whole Query APIv2 response within
  its property `responses` which is a list of `QueryResponseEntity`.

- `QueryResponseEntity`: Represents a single mapping for a given
  workflow, name and cloud. It can be converted to the `QueryResponse`
  from APIv1 model which works in an analogue way (without support for
  cloud name as a property).

- `MappingResponseObject`: Represent a single mapping entity which is
  part of `QueryResponseEntity`. It holds a list of `Destination`
  object, similar to what `QueryResponse` does on its `clouds`
  attribute.

- `BillingCodeRule`: A dedicated model to represent a Billing Code Rule
  for the comnmunity workflow.

Refers to SPSTRAT-382
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant