def METHOD_NAME(
    self,
    resource_id: str,
    body: RestrictionPolicyUpdateRequest,
) -> RestrictionPolicyResponse:
    """Update a restriction policy.
    Updates the restriction policy associated with a resource.
    **Supported resources**
    Restriction policies can be applied to the following resources:
    * Connections: ``connection``
    * Dashboards: ``dashboard``
    * Notebooks: ``notebook``
    * Security Rules: ``security-rule``
    * Service Level Objectives: ``slo``
    **Supported relations for resources**
    .. list-table::
       :header-rows: 1
       * - Resource Type
         - Supported Relations
       * - Connections
         - ``viewer`` , ``editor`` , ``resolver``
       * - Dashboards
         - ``viewer`` , ``editor``
       * - Notebooks
         - ``viewer`` , ``editor``
       * - Security Rules
         - ``viewer`` , ``editor``
       * - Service Level Objectives
         - ``viewer`` , ``editor``
    :param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``security-rule`` , ``slo``.
    :type resource_id: str
    :param body: Restriction policy payload
    :type body: RestrictionPolicyUpdateRequest
    :rtype: RestrictionPolicyResponse
    """
    kwargs: Dict[str, Any] = {}
    kwargs["resource_id"] = resource_id
    kwargs["body"] = body
    return self._update_restriction_policy_endpoint.call_with_http_info(**kwargs)