Skip to content

Commit

Permalink
[QI2-728] generated hash for commits
Browse files Browse the repository at this point in the history
  • Loading branch information
NischalQuTech committed Jan 19, 2024
1 parent 3675928 commit 2ce24d8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion compute_api_client/docs/CommitIn.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**hash** | **str** | |
**description** | **str** | |
**algorithm_id** | **int** | |

Expand Down
6 changes: 1 addition & 5 deletions compute_api_client/models/commit_in.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

from typing import Any, ClassVar, Dict, List
from pydantic import BaseModel, StrictInt, StrictStr
from pydantic import Field
from typing_extensions import Annotated
try:
from typing import Self
except ImportError:
Expand All @@ -31,10 +29,9 @@ class CommitIn(BaseModel):
"""
CommitIn
""" # noqa: E501
hash: Annotated[str, Field(strict=True, max_length=32)]
description: StrictStr
algorithm_id: StrictInt
__properties: ClassVar[List[str]] = ["hash", "description", "algorithm_id"]
__properties: ClassVar[List[str]] = ["description", "algorithm_id"]

model_config = {
"populate_by_name": True,
Expand Down Expand Up @@ -84,7 +81,6 @@ def from_dict(cls, obj: Dict) -> Self:
return cls.model_validate(obj)

_obj = cls.model_validate({
"hash": obj.get("hash"),
"description": obj.get("description"),
"algorithm_id": obj.get("algorithm_id")
})
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "qi-compute-api-client"
version = "0.20.0"
version = "0.21.0"
description = "An API client for the Compute Job Manager of Quantum Inspire."
license = "Apache-2.0"
authors = ["Quantum Inspire <support@quantum-inspire.eu>"]
Expand Down

0 comments on commit 2ce24d8

Please sign in to comment.