def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]], user: Optional[str] = None) -> None:
        """
        Instantiates a new AllowedCalendarSharingRolesWithUserRequestBuilder and sets the default values.
        param path_parameters: The raw url or the url-template parameters for the request.
        param request_adapter: The request adapter to use to execute the requests.
        param user: Usage: User='{User}'
        Returns: None
        """
        if isinstance(path_parameters, dict):
            path_parameters['User'] = user
        super().__init__(request_adapter, "{+baseurl}/users/{user%2Did}/calendar/allowedCalendarSharingRoles(User='{User}'){?%24count,%24filter,%24search,%24skip,%24top}", path_parameters)

        Instantiates a new AllowedCalendarSharingRolesWithUserRequestBuilder and sets the default values.
        param path_parameters: The raw url or the url-template parameters for the request.
        param request_adapter: The request adapter to use to execute the requests.
        param user: Usage: User='{User}'
        Returns: None
        
msgraph/generated/users/item/calendar/allowed_calendar_sharing_roles_with_user/allowed_calendar_sharing_roles_with_user_request_builder.py