def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]], scope: Optional[str] = None) -> None:
        """
        Instantiates a new GetEffectivePermissionsWithScopeRequestBuilder 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 scope: Usage: scope='{scope}'
        Returns: None
        """
        if isinstance(path_parameters, dict):
            path_parameters['scope'] = scope
        super().__init__(request_adapter, "{+baseurl}/deviceManagement/getEffectivePermissions(scope='{scope}'){?%24count,%24filter,%24search,%24skip,%24top}", path_parameters)

        Instantiates a new GetEffectivePermissionsWithScopeRequestBuilder 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 scope: Usage: scope='{scope}'
        Returns: None
        
msgraph/generated/device_management/get_effective_permissions_with_scope/get_effective_permissions_with_scope_request_builder.py