Skip to content

Commit 4155bc4

Browse files
authored
fix(IAM Policy Management): update subject attribute value based on API def (#237)
Signed-off-by: Shaun Colley <[email protected]>
1 parent 656e0f0 commit 4155bc4

File tree

2 files changed

+48
-41
lines changed

2 files changed

+48
-41
lines changed

ibm_platform_services/iam_policy_management_v1.py

Lines changed: 37 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
# IBM OpenAPI SDK Code Generator Version: 3.84.0-a4533f12-20240103-170852
17+
# IBM OpenAPI SDK Code Generator Version: 3.84.1-55f6d880-20240110-194020
1818

1919
"""
2020
IAM Policy Management API
@@ -5682,9 +5682,9 @@ class RuleAttribute:
56825682
56835683
:param str key: The name of an attribute.
56845684
:param str operator: The operator of an attribute.
5685-
:param object value: The value of a rule or resource attribute; can be boolean
5686-
or string for resource attribute. Can be string or an array of strings (e.g.,
5687-
array of days to permit access) for rule attribute.
5685+
:param object value: The value of a rule, resource, or subject attribute; can be
5686+
boolean or string for resource and subject attribute. Can be string or an array
5687+
of strings (e.g., array of days to permit access) for rule attribute.
56885688
"""
56895689

56905690
def __init__(
@@ -5698,9 +5698,10 @@ def __init__(
56985698
56995699
:param str key: The name of an attribute.
57005700
:param str operator: The operator of an attribute.
5701-
:param object value: The value of a rule or resource attribute; can be
5702-
boolean or string for resource attribute. Can be string or an array of
5703-
strings (e.g., array of days to permit access) for rule attribute.
5701+
:param object value: The value of a rule, resource, or subject attribute;
5702+
can be boolean or string for resource and subject attribute. Can be string
5703+
or an array of strings (e.g., array of days to permit access) for rule
5704+
attribute.
57045705
"""
57055706
self.key = key
57065707
self.operator = operator
@@ -6525,9 +6526,9 @@ class V2PolicyResourceAttribute:
65256526
65266527
:param str key: The name of a resource attribute.
65276528
:param str operator: The operator of an attribute.
6528-
:param object value: The value of a rule or resource attribute; can be boolean
6529-
or string for resource attribute. Can be string or an array of strings (e.g.,
6530-
array of days to permit access) for rule attribute.
6529+
:param object value: The value of a rule, resource, or subject attribute; can be
6530+
boolean or string for resource and subject attribute. Can be string or an array
6531+
of strings (e.g., array of days to permit access) for rule attribute.
65316532
"""
65326533

65336534
def __init__(
@@ -6541,9 +6542,10 @@ def __init__(
65416542
65426543
:param str key: The name of a resource attribute.
65436544
:param str operator: The operator of an attribute.
6544-
:param object value: The value of a rule or resource attribute; can be
6545-
boolean or string for resource attribute. Can be string or an array of
6546-
strings (e.g., array of days to permit access) for rule attribute.
6545+
:param object value: The value of a rule, resource, or subject attribute;
6546+
can be boolean or string for resource and subject attribute. Can be string
6547+
or an array of strings (e.g., array of days to permit access) for rule
6548+
attribute.
65476549
"""
65486550
self.key = key
65496551
self.operator = operator
@@ -6790,24 +6792,27 @@ class V2PolicySubjectAttribute:
67906792
67916793
:param str key: The name of a subject attribute, e.g., iam_id, access_group_id.
67926794
:param str operator: The operator of an attribute.
6793-
:param str value: The value of the ID of the subject, e.g., service ID, access
6794-
group ID, IAM ID.
6795+
:param object value: The value of a rule, resource, or subject attribute; can be
6796+
boolean or string for resource and subject attribute. Can be string or an array
6797+
of strings (e.g., array of days to permit access) for rule attribute.
67956798
"""
67966799

67976800
def __init__(
67986801
self,
67996802
key: str,
68006803
operator: str,
6801-
value: str,
6804+
value: object,
68026805
) -> None:
68036806
"""
68046807
Initialize a V2PolicySubjectAttribute object.
68056808
68066809
:param str key: The name of a subject attribute, e.g., iam_id,
68076810
access_group_id.
68086811
:param str operator: The operator of an attribute.
6809-
:param str value: The value of the ID of the subject, e.g., service ID,
6810-
access group ID, IAM ID.
6812+
:param object value: The value of a rule, resource, or subject attribute;
6813+
can be boolean or string for resource and subject attribute. Can be string
6814+
or an array of strings (e.g., array of days to permit access) for rule
6815+
attribute.
68116816
"""
68126817
self.key = key
68136818
self.operator = operator
@@ -7251,9 +7256,9 @@ class NestedConditionRuleAttribute(NestedCondition):
72517256
72527257
:param str key: The name of an attribute.
72537258
:param str operator: The operator of an attribute.
7254-
:param object value: The value of a rule or resource attribute; can be boolean
7255-
or string for resource attribute. Can be string or an array of strings (e.g.,
7256-
array of days to permit access) for rule attribute.
7259+
:param object value: The value of a rule, resource, or subject attribute; can be
7260+
boolean or string for resource and subject attribute. Can be string or an array
7261+
of strings (e.g., array of days to permit access) for rule attribute.
72577262
"""
72587263

72597264
def __init__(
@@ -7267,9 +7272,10 @@ def __init__(
72677272
72687273
:param str key: The name of an attribute.
72697274
:param str operator: The operator of an attribute.
7270-
:param object value: The value of a rule or resource attribute; can be
7271-
boolean or string for resource attribute. Can be string or an array of
7272-
strings (e.g., array of days to permit access) for rule attribute.
7275+
:param object value: The value of a rule, resource, or subject attribute;
7276+
can be boolean or string for resource and subject attribute. Can be string
7277+
or an array of strings (e.g., array of days to permit access) for rule
7278+
attribute.
72737279
"""
72747280
# pylint: disable=super-init-not-called
72757281
self.key = key
@@ -7440,9 +7446,9 @@ class V2PolicyRuleRuleAttribute(V2PolicyRule):
74407446
74417447
:param str key: The name of an attribute.
74427448
:param str operator: The operator of an attribute.
7443-
:param object value: The value of a rule or resource attribute; can be boolean
7444-
or string for resource attribute. Can be string or an array of strings (e.g.,
7445-
array of days to permit access) for rule attribute.
7449+
:param object value: The value of a rule, resource, or subject attribute; can be
7450+
boolean or string for resource and subject attribute. Can be string or an array
7451+
of strings (e.g., array of days to permit access) for rule attribute.
74467452
"""
74477453

74487454
def __init__(
@@ -7456,9 +7462,10 @@ def __init__(
74567462
74577463
:param str key: The name of an attribute.
74587464
:param str operator: The operator of an attribute.
7459-
:param object value: The value of a rule or resource attribute; can be
7460-
boolean or string for resource attribute. Can be string or an array of
7461-
strings (e.g., array of days to permit access) for rule attribute.
7465+
:param object value: The value of a rule, resource, or subject attribute;
7466+
can be boolean or string for resource and subject attribute. Can be string
7467+
or an array of strings (e.g., array of days to permit access) for rule
7468+
attribute.
74627469
"""
74637470
# pylint: disable=super-init-not-called
74647471
self.key = key

0 commit comments

Comments
 (0)