def by_access_package_resource_role_id1(self,access_package_resource_role_id1: str) -> AccessPackageResourceRoleItemRequestBuilder:
        """
        Provides operations to manage the roles property of the microsoft.graph.accessPackageResource entity.
        param access_package_resource_role_id1: The unique identifier of accessPackageResourceRole
        Returns: AccessPackageResourceRoleItemRequestBuilder
        """
        if access_package_resource_role_id1 is None:
            raise TypeError("access_package_resource_role_id1 cannot be null.")
        from .item.access_package_resource_role_item_request_builder import AccessPackageResourceRoleItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["accessPackageResourceRole%2Did1"] = access_package_resource_role_id1
        return AccessPackageResourceRoleItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the roles property of the microsoft.graph.accessPackageResource entity.
        param access_package_resource_role_id1: The unique identifier of accessPackageResourceRole
        Returns: AccessPackageResourceRoleItemRequestBuilder
        
msgraph/generated/identity_governance/entitlement_management/resource_requests/item/catalog/resource_roles/item/resource/scopes/item/resource/roles/roles_request_builder.py