From 192f29c076913e0d42c5957542837c1c4db3435c Mon Sep 17 00:00:00 2001 From: Anurag Sharma Date: Tue, 29 Oct 2024 23:32:04 +0530 Subject: [PATCH] Added missing field in AccessPolicy model (#189) --- CHANGELOG.md | 4 ++++ docs/models/admin.md | 2 ++ spotinst_sdk2/models/admin/organization.py | 3 +++ spotinst_sdk2/version.py | 2 +- 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b41890..b12a0b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [3.18.1] - 2024-10-29 +### Fixed +- Updated `AccessPolicy` model for Admin Organization + ## [3.18.0] - 2024-10-28 ### Added - Added support for organization user, usergroup and access policy APIs diff --git a/docs/models/admin.md b/docs/models/admin.md index 03d4b89..323537b 100644 --- a/docs/models/admin.md +++ b/docs/models/admin.md @@ -55,6 +55,7 @@ AccessPolicy( self, description: str = 'd3043820717d74d9a17694c176d39733', name: str = 'd3043820717d74d9a17694c176d39733', + type: str = 'd3043820717d74d9a17694c176d39733', policy_content: PolicyContent = 'd3043820717d74d9a17694c176d39733') ``` @@ -62,6 +63,7 @@ __Arguments__ - __description__: str - __name__: str +- __type__: str - __policy_content__: PolicyContent

PolicyMapping

diff --git a/spotinst_sdk2/models/admin/organization.py b/spotinst_sdk2/models/admin/organization.py index 415e6e1..3fabd3e 100644 --- a/spotinst_sdk2/models/admin/organization.py +++ b/spotinst_sdk2/models/admin/organization.py @@ -43,6 +43,7 @@ class AccessPolicy: # Arguments description: str name: str + type: str policy_content: PolicyContent """ @@ -50,10 +51,12 @@ def __init__( self, description: str = none, name: str = none, + type: str = none, policy_content: PolicyContent = none): self.description = description self.name = name + self.type = type self.policy_content = policy_content diff --git a/spotinst_sdk2/version.py b/spotinst_sdk2/version.py index c754d32..12879d5 100644 --- a/spotinst_sdk2/version.py +++ b/spotinst_sdk2/version.py @@ -1 +1 @@ -__version__ = '3.18.0' +__version__ = '3.18.1'