diff --git a/ibm_platform_services/iam_identity_v1.py b/ibm_platform_services/iam_identity_v1.py index 9ab581d7..fe7e9cfc 100644 --- a/ibm_platform_services/iam_identity_v1.py +++ b/ibm_platform_services/iam_identity_v1.py @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -# IBM OpenAPI SDK Code Generator Version: 3.113.0-3f9df07a-20260317-160650 +# IBM OpenAPI SDK Code Generator Version: 3.113.1-d76630af-20260320-135953 """ The IAM Identity Service API allows for the management of Account Settings and Identities @@ -1796,7 +1796,7 @@ def create_claim_rule( 'Profile-SAML'. :param str cr_type: (optional) The compute resource type the rule applies to, required only if type is specified as 'Profile-CR'. Valid values are - VSI, IKS_SA, ROKS_SA. + VSI, PVS, BMS, IKS_SA, ROKS_SA, CE. :param int expiration: (optional) Session expiration in seconds, only required if type is 'Profile-SAML'. :param dict headers: A `dict` containing the request headers @@ -1985,7 +1985,7 @@ def update_claim_rule( 'Profile-SAML'. :param str cr_type: (optional) The compute resource type the rule applies to, required only if type is specified as 'Profile-CR'. Valid values are - VSI, IKS_SA, ROKS_SA. + VSI, PVS, BMS, IKS_SA, ROKS_SA, CE. :param int expiration: (optional) Session expiration in seconds, only required if type is 'Profile-SAML'. :param dict headers: A `dict` containing the request headers @@ -2115,8 +2115,8 @@ def create_link( trusted profile. :param str profile_id: ID of the trusted profile. - :param str cr_type: The compute resource type. Valid values are VSI, - IKS_SA, ROKS_SA. + :param str cr_type: The compute resource type. Valid values are VSI, PVS, + BMS, IKS_SA, ROKS_SA, CE. :param CreateProfileLinkRequestLink link: Link details. :param str name: (optional) Optional name of the Link. :param bool is_cross_account: (optional) Flag to indicate that the link @@ -2233,9 +2233,10 @@ def delete_link_by_parameters( Deletes compute resource link of a Trusted Profile matching the given parameters. :param str profile_id: The unique ID of the Trusted Profile. - :param str type: The compute resource type. Valid values are VSI, BMS, + :param str type: The compute resource type. Valid values are VSI, PVS, BMS, IKS_SA, ROKS_SA, CE. - :param str crn: (optional) CRN of the compute resource (IKS/ROKS/VSI/BMS). + :param str crn: (optional) CRN of the compute resource + (VSI/PVS/BMS/IKS/ROKS/CE). :param str namespace: (optional) Namespace of the compute resource (IKS/ROKS). :param str name: (optional) Name of the compute resource (IKS/ROKS). @@ -3241,8 +3242,8 @@ def update_preference_on_scope_account( iam_id: str, service: str, preference_id: str, - value_string: str, *, + value_string: Optional[str] = None, value_list_of_strings: Optional[List[str]] = None, **kwargs, ) -> DetailedResponse: @@ -3286,9 +3287,9 @@ def update_preference_on_scope_account( :param str iam_id: IAM id to update the preference for. :param str service: Service of the preference to be updated. :param str preference_id: Identifier of preference to be updated. - :param str value_string: contains a string value of the preference. only - one value property is set, either 'value_string' or 'value_list_of_strings' - is present. + :param str value_string: (optional) contains a string value of the + preference. only one value property is set, either 'value_string' or + 'value_list_of_strings' is present. :param List[str] value_list_of_strings: (optional) contains a list of string values of the preference. only one value property is set, either 'value_string' or 'value_list_of_strings' is present. @@ -3305,8 +3306,6 @@ def update_preference_on_scope_account( raise ValueError('service must be provided') if not preference_id: raise ValueError('preference_id must be provided') - if value_string is None: - raise ValueError('value_string must be provided') headers = {} sdk_headers = get_sdk_headers( service_name=self.DEFAULT_SERVICE_NAME, @@ -10587,7 +10586,7 @@ class IdentityPreferenceResponse: :param str value_string: (optional) String value of the preference, only one value property is set, either 'value_string' or 'value_list_of_strings' is present. - :param List[str] value_list_of_strings: (optional) List of value of the + :param List[str] value_list_of_strings: (optional) List of values of the preference, only one value property is set, either 'value_string' or 'value_list_of_strings' is present. """ @@ -10614,7 +10613,7 @@ def __init__( :param str value_string: (optional) String value of the preference, only one value property is set, either 'value_string' or 'value_list_of_strings' is present. - :param List[str] value_list_of_strings: (optional) List of value of the + :param List[str] value_list_of_strings: (optional) List of values of the preference, only one value property is set, either 'value_string' or 'value_list_of_strings' is present. """ @@ -10973,7 +10972,7 @@ class ProfileClaimRule: applies to. :param int expiration: Session expiration in seconds. :param str cr_type: (optional) The compute resource type. Not required if type - is Profile-SAML. Valid values are VSI, IKS_SA, ROKS_SA. + is Profile-SAML. Valid values are VSI, PVS, BMS, IKS_SA, ROKS_SA, CE. :param List[ProfileClaimRuleConditions] conditions: Conditions of this claim rule. """ @@ -11010,7 +11009,7 @@ def __init__( :param str realm_name: (optional) The realm name of the Idp this claim rule applies to. :param str cr_type: (optional) The compute resource type. Not required if - type is Profile-SAML. Valid values are VSI, IKS_SA, ROKS_SA. + type is Profile-SAML. Valid values are VSI, PVS, BMS, IKS_SA, ROKS_SA, CE. """ self.id = id self.entity_tag = entity_tag @@ -11669,7 +11668,7 @@ class ProfileLink: :param datetime modified_at: If set contains a date time string of the last modification date in ISO format. :param str name: (optional) Optional name of the Link. - :param str cr_type: The compute resource type. Valid values are VSI, BMS, + :param str cr_type: The compute resource type. Valid values are VSI, PVS, BMS, IKS_SA, ROKS_SA, CE. :param bool is_cross_account: (optional) Flag to indicate that the link provides cross account access. If not provided then the account scope of the CRN must @@ -11698,8 +11697,8 @@ def __init__( creation date in ISO format. :param datetime modified_at: If set contains a date time string of the last modification date in ISO format. - :param str cr_type: The compute resource type. Valid values are VSI, BMS, - IKS_SA, ROKS_SA, CE. + :param str cr_type: The compute resource type. Valid values are VSI, PVS, + BMS, IKS_SA, ROKS_SA, CE. :param ProfileLinkLink link: :param str name: (optional) Optional name of the Link. :param bool is_cross_account: (optional) Flag to indicate that the link diff --git a/test/unit/test_iam_identity_v1.py b/test/unit/test_iam_identity_v1.py index 0be7513f..7a32cdd4 100644 --- a/test/unit/test_iam_identity_v1.py +++ b/test/unit/test_iam_identity_v1.py @@ -30,7 +30,6 @@ import urllib from ibm_platform_services.iam_identity_v1 import * - _service = IamIdentityV1(authenticator=NoAuthAuthenticator()) _base_url = 'https://iam.cloud.ibm.com' @@ -5617,7 +5616,7 @@ def test_update_preference_on_scope_account_all_params(self): iam_id, service, preference_id, - value_string, + value_string=value_string, value_list_of_strings=value_list_of_strings, headers={}, ) @@ -5669,7 +5668,6 @@ def test_update_preference_on_scope_account_value_error(self): "iam_id": iam_id, "service": service, "preference_id": preference_id, - "value_string": value_string, } for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()}