14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
- # IBM OpenAPI SDK Code Generator Version: 3.105.1-067d600b-20250616-154447
17
+ # IBM OpenAPI SDK Code Generator Version: 3.106.0-09823488-20250707-071701
18
18
19
19
"""
20
20
The IAM Identity Service API allows for the management of Account Settings and Identities
@@ -12471,9 +12471,9 @@ class TemplateAssignmentResponseResource:
12471
12471
:param str target: Target account where the IAM resource is created.
12472
12472
:param TemplateAssignmentResponseResourceDetail profile: (optional)
12473
12473
:param TemplateAssignmentResponseResourceDetail account_settings: (optional)
12474
- :param List[TemplateAssignmentResponseResourceDetail] policy_template_refs:
12475
- (optional) Policy resource(s) included only for trusted profile assignments with
12476
- policy references.
12474
+ :param List[TemplateAssignmentResponseResourceDetail]
12475
+ policy_template_references: (optional) Policy resource(s) included only for
12476
+ trusted profile assignments with policy references.
12477
12477
"""
12478
12478
12479
12479
def __init__(
@@ -12482,7 +12482,7 @@ def __init__(
12482
12482
*,
12483
12483
profile: Optional['TemplateAssignmentResponseResourceDetail'] = None,
12484
12484
account_settings: Optional['TemplateAssignmentResponseResourceDetail'] = None,
12485
- policy_template_refs : Optional[List['TemplateAssignmentResponseResourceDetail']] = None,
12485
+ policy_template_references : Optional[List['TemplateAssignmentResponseResourceDetail']] = None,
12486
12486
) -> None:
12487
12487
"""
12488
12488
Initialize a TemplateAssignmentResponseResource object.
@@ -12491,14 +12491,14 @@ def __init__(
12491
12491
:param TemplateAssignmentResponseResourceDetail profile: (optional)
12492
12492
:param TemplateAssignmentResponseResourceDetail account_settings:
12493
12493
(optional)
12494
- :param List[TemplateAssignmentResponseResourceDetail] policy_template_refs:
12495
- (optional) Policy resource(s) included only for trusted profile assignments
12496
- with policy references.
12494
+ :param List[TemplateAssignmentResponseResourceDetail]
12495
+ policy_template_references: (optional) Policy resource(s) included only for
12496
+ trusted profile assignments with policy references.
12497
12497
"""
12498
12498
self.target = target
12499
12499
self.profile = profile
12500
12500
self.account_settings = account_settings
12501
- self.policy_template_refs = policy_template_refs
12501
+ self.policy_template_references = policy_template_references
12502
12502
12503
12503
@classmethod
12504
12504
def from_dict(cls, _dict: Dict) -> 'TemplateAssignmentResponseResource':
@@ -12512,9 +12512,9 @@ def from_dict(cls, _dict: Dict) -> 'TemplateAssignmentResponseResource':
12512
12512
args['profile'] = TemplateAssignmentResponseResourceDetail.from_dict(profile)
12513
12513
if (account_settings := _dict.get('account_settings')) is not None:
12514
12514
args['account_settings'] = TemplateAssignmentResponseResourceDetail.from_dict(account_settings)
12515
- if (policy_template_refs := _dict.get('policy_template_refs ')) is not None:
12516
- args['policy_template_refs '] = [
12517
- TemplateAssignmentResponseResourceDetail.from_dict(v) for v in policy_template_refs
12515
+ if (policy_template_references := _dict.get('policy_template_references ')) is not None:
12516
+ args['policy_template_references '] = [
12517
+ TemplateAssignmentResponseResourceDetail.from_dict(v) for v in policy_template_references
12518
12518
]
12519
12519
return cls(**args)
12520
12520
@@ -12538,14 +12538,14 @@ def to_dict(self) -> Dict:
12538
12538
_dict['account_settings'] = self.account_settings
12539
12539
else:
12540
12540
_dict['account_settings'] = self.account_settings.to_dict()
12541
- if hasattr(self, 'policy_template_refs ') and self.policy_template_refs is not None:
12542
- policy_template_refs_list = []
12543
- for v in self.policy_template_refs :
12541
+ if hasattr(self, 'policy_template_references ') and self.policy_template_references is not None:
12542
+ policy_template_references_list = []
12543
+ for v in self.policy_template_references :
12544
12544
if isinstance(v, dict):
12545
- policy_template_refs_list .append(v)
12545
+ policy_template_references_list .append(v)
12546
12546
else:
12547
- policy_template_refs_list .append(v.to_dict())
12548
- _dict['policy_template_refs '] = policy_template_refs_list
12547
+ policy_template_references_list .append(v.to_dict())
12548
+ _dict['policy_template_references '] = policy_template_references_list
12549
12549
return _dict
12550
12550
12551
12551
def _to_dict(self):
0 commit comments