From d75f265d0ae6eddc85823a8cd4fca8487dd773d1 Mon Sep 17 00:00:00 2001 From: Jake Herrmann Date: Fri, 1 Sep 2023 12:03:50 -0800 Subject: [PATCH] Remove `Job.subscription_id` attribute --- CHANGELOG.md | 4 ++++ src/hyp3_sdk/jobs.py | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a7ff46..6251c83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/) and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.0.0] +### Removed +* Removed the `Job.subscription_id` attribute in response to the Subscriptions feature being removed from HyP3. + ## [2.1.1] ### Fixed * The `user_id` parameter has been moved to the end of the `HyP3.find_jobs` parameter list, to avoid diff --git a/src/hyp3_sdk/jobs.py b/src/hyp3_sdk/jobs.py index efe2aca..13d02ca 100644 --- a/src/hyp3_sdk/jobs.py +++ b/src/hyp3_sdk/jobs.py @@ -23,7 +23,6 @@ def __init__( request_time: datetime, status_code: str, user_id: str, - subscription_id: Optional[str] = None, name: Optional[str] = None, job_parameters: Optional[dict] = None, files: Optional[List] = None, @@ -38,7 +37,6 @@ def __init__( self.request_time = request_time self.status_code = status_code self.user_id = user_id - self.subscription_id = subscription_id self.name = name self.job_parameters = job_parameters self.files = files @@ -66,7 +64,6 @@ def from_dict(input_dict: dict): request_time=parse_date(input_dict['request_time']), status_code=input_dict['status_code'], user_id=input_dict['user_id'], - subscription_id=input_dict.get('subscription_id'), name=input_dict.get('name'), job_parameters=input_dict.get('job_parameters'), files=input_dict.get('files'),